-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.less
107 lines (101 loc) · 2.39 KB
/
index.less
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
@default-img-width: 140px;
@default-img-height: 100px;
.image-uploader-wrapper {
position: relative;
.button {
position: relative;
display: inline-block;
line-height: 1.25rem;
text-align: center;
padding: 4px 8px;
font-size: 14px;
font-weight: 500;
white-space: nowrap;
vertical-align: middle;
cursor: pointer;
-webkit-user-select: none;
user-select: none;
border: 1px solid;
border-radius: 2px;
-webkit-appearance: none;
appearance: none;
color: #24292f;
background-color: #f6f8fa;
border-color: rgba(27, 31, 36, 0.15);
box-shadow: 0 1px 0 rgba(27, 31, 36, 0.04),
inset 0 1px 0 rgba(255, 255, 255, 0.25);
transition: 80ms cubic-bezier(0.33, 1, 0.68, 1);
transition-property: color, background-color, box-shadow, border-color;
&:hover {
background-color: #f3f4f6;
border-color: rgba(27, 31, 36, 0.15);
transition-duration: 0.1s;
}
&:active {
background-color: hsla(220, 14%, 93%, 1);
border-color: rgba(27, 31, 36, 0.15);
transition: none;
}
&[aria-selected="true"] {
background-color: hsla(220, 14%, 94%, 1);
box-shadow: inset 0 1px 0 rgba(208, 215, 222, 0.2);
}
}
.button.disabled {
cursor: not-allowed;
color: #8c959f;
background-color: #f6f8fa;
border-color: rgba(27, 31, 36, 0.15);
box-shadow: none;
}
.native-input {
display: none;
}
.drag-box {
width: @default-img-width;
height: @default-img-height;
border: 1px dashed #ccc;
border-radius: 4px;
background-color: rgba(238, 238, 238, 0.6);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.images-list {
display: flex;
margin: 12px 0 0;
.image-item {
width: @default-img-width;
margin-right: 8px;
.image-preview {
width: 100%;
height: @default-img-height;
& > img {
max-width: @default-img-width;
max-height: @default-img-height;
}
}
.image-action-btn {
padding: 4px 0;
text-align: center;
.update {
margin-right: 4px;
}
}
}
.image-item:last-child {
margin-right: 0;
}
.remove-all {
height: 1.875rem;
margin-left: 0.5rem;
}
}
.images-upload {
padding-top: 12px;
.button {
width: @default-img-width;
}
}
}