-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.less
79 lines (78 loc) · 1.65 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
.inner-shadow(@x: 0px, @y: 2px, @blur: 4px, @opacity: 0.15) {
-webkit-box-shadow: inset @x @y @blur rgba(0, 0, 0, @opacity);
-moz-box-shadow: inset @x @y @blur rgba(0, 0, 0, @opacity);
-ms-box-shadow: inset @x @y @blur rgba(0, 0, 0, @opacity);
box-shadow: inset @x @y @blur rgba(0, 0, 0, @opacity);
}
.box-shadow(@x: 0px, @y: 0px, @blur: 8px, @opacity: 0.5) {
-webkit-box-shadow: @x @y @blur rgba(0, 0, 0, @opacity);
-moz-box-shadow: @x @y @blur rgba(0, 0, 0, @opacity);
-ms-box-shadow: @x @y @blur rgba(0, 0, 0, @opacity);
box-shadow: @x @y @blur rgba(0, 0, 0, @opacity);
}
.data-color-group {
position: relative;
display: inline-block;
.data-color-menu {
display: none;
position: absolute;
top: 100%;
left: 0;
z-index: 999;
float: left;
}
}
.data-color-group.open {
.data-color-head {
.inner-shadow();
}
.data-color-menu {
display: block;
}
}
.data-color-menu {
min-width: 160px;
padding: 0;
margin: 0;
border: 1px solid #ccc;
.box-shadow(0, 5px, 10px, 0.2);
list-style: none;
background-color: #fff;
cursor: pointer;
li {
line-height: 20px;
padding: 10px 25px;
&:hover {
background-color: #007bb9;
}
}
}
.data-color-head {
display: inline-block;
width: 64px;
padding: 4px 12px;
margin-bottom: 0;
border: 1px solid #ccc;
line-height: 20px;
text-align: right;
text-decoration: none;
vertical-align: middle;
cursor: pointer;
&:hover {
text-decoration: none;
}
.color-caret {
margin-top: 8px;
margin-left: 0;
}
}
.color-caret {
display: inline-block;
height: 0;
width: 0;
vertical-align: top;
border-top: 4px solid #000;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
content: "";
}