-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDropDefault.less
55 lines (53 loc) · 1.18 KB
/
DropDefault.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
.box-shadow(@shadow) {
-webkit-box-shadow: @shadow; // iOS <4.3 & Android <4.1
box-shadow: @shadow;
}
.triangle-base() {
content: '';
display: block;
width: 0;
height: 0;
-moz-transform: scale(.9999);
}
.templ-drop {
background-color: white;
.box-shadow(0 0 7px 0 fade(black, 30%));
border-radius: 2px;
&.templ-drop-top {
.templ-drop-arrow:before {
content: '▼';
right: 7px;
top: 4px;
text-shadow: 0 2px 3px fade(black, 30%);
}
}
&.templ-drop-right {
.templ-drop-arrow:before {
content: '◄';
bottom: 9px;
right: 1px;
text-shadow: -2px 0 3px fade(black, 30%);
}
}
&.templ-drop-bottom {
.templ-drop-arrow:before {
content: '▲';
right: 7px;
bottom: 4px;
text-shadow: 0 -2px 3px fade(black, 30%);
}
}
&.templ-drop-left {
.templ-drop-arrow:before {
content: '►';
bottom: 9px;
left: 1px;
text-shadow: 2px 0 3px fade(black, 30%);
}
}
.templ-drop-arrow:before {
font-size: 14px;
position: relative;
color: white;
}
}