feat: 组件解耦 提取样式文件

This commit is contained in:
ZiuChen
2022-08-15 13:58:11 +08:00
parent 2840f21b63
commit b4bb815ac8
9 changed files with 302 additions and 244 deletions

View File

@@ -0,0 +1,20 @@
.clip-full {
z-index: 9999999999;
position: fixed;
top: 0;
height: 100%;
width: 60%;
background: white;
padding: 0px 20px 0px 20px;
overflow-y: scroll;
word-break: break-all;
white-space: pre-wrap;
}
.clip-overlay {
z-index: 999999999;
position: fixed;
top: 0;
height: 100%;
width: 100%;
background: rgba(0, 0, 0, 0.5);
}

View File

@@ -0,0 +1,76 @@
@import '../style/variable.less';
.clip-item {
display: flex;
justify-content: space-between;
border: 0px solid #eee;
border-width: 0px 0px 1px 0px;
cursor: pointer;
&:hover {
background-color: @text-bg-color-lighter;
transition: all 0.15s;
}
.clip-info {
display: flex;
justify-content: center;
align-items: center;
font-size: 14px;
padding: 10px;
.clip-time {
display: flex;
justify-content: center;
align-items: center;
min-width: 100px;
span {
display: flex;
justify-content: center;
align-items: center;
font-size: 13px;
color: @text-color-lighter;
background-color: @text-bg-color;
border-radius: 5px;
min-width: 50px;
padding: 5px 10px 5px 10px;
}
}
.clip-data {
display: flex;
overflow: hidden;
word-break: break-all;
max-height: 150px;
padding: 5px;
white-space: pre-wrap;
flex-direction: column;
background-color: white;
img {
max-height: 150px;
}
.clip-image-size {
position: absolute;
background-color: white;
}
}
}
.clip-count {
display: flex;
align-items: center;
justify-content: center;
min-width: 50px;
padding: 10px;
font-size: 13px;
color: @text-color-lighter;
padding: 10px;
}
.clip-more {
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
font-size: 13px;
cursor: pointer;
border-radius: 0px 5px 5px 0px;
}
.clip-more:hover {
background-color: @text-bg-color;
transition: all 0.15s;
}
}

View File

@@ -0,0 +1,16 @@
.clip-file {
display: flex;
justify-content: flex-start;
align-items: center;
cursor: pointer;
&:hover {
font-weight: 600;
&::after {
content: '📤';
}
}
.clip-file-icon {
width: 15px;
height: 15px;
}
}

6
src/style/variable.less Normal file
View File

@@ -0,0 +1,6 @@
@primary-color: #8a2be2;
@primary-color-lighter: #d3b8ec;
@text-color: #333;
@text-color-lighter: rgb(138, 138, 138);
@text-bg-color: #e3d9ec;
@text-bg-color-lighter: #eeeaf3;