forked from olton/Metro-UI-CSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popovers.less
57 lines (50 loc) · 806 Bytes
/
popovers.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
@import (once) "utils";
.popover {
display: block;
min-width: 12.5rem;
height: auto;
position: relative;
background-color: @grayLighter;
padding: 1.25rem;
* {
color: inherit;
}
&.popover-shadow {
box-shadow: 0 0 10px 0 rgba(0,0,0,.4);
}
&:before {
content: "";
width: .625rem;
height: .625rem;
display: block;
position: absolute;
background-color: inherit;
left: -.3125rem;
top: 50%;
margin-top: -.3125rem;
.rotate(45deg);
}
&.marker-on-top {
&:before {
top: 0;
left: 50%;
margin-left: -.3125rem;
}
}
&.marker-on-right {
&:before {
top: 50%;
margin-top: -.3125rem;
left: 100%;
margin-left: -.3125rem;
}
}
&.marker-on-bottom {
&:before {
top: 100%;
margin-left: -.3125rem;
left: 50%;
margin-top: -.3125rem;
}
}
}