forked from designmodo/Flat-UI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtooltip.less
55 lines (50 loc) · 990 Bytes
/
tooltip.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
// Tooltip
// --------------------------------------------------
.tooltip {
font-size: @font-size-base;
&.in {
opacity: 1;
}
&.top {
padding-bottom: 9px;
.tooltip-arrow {
border-top-color: @base;
border-width: 9px 9px 0;
bottom: 0;
margin-left: -9px;
}
}
&.right {
.tooltip-arrow {
border-right-color: @base;
border-width: 9px 9px 9px 0;
margin-top: -9px;
left: -3px;
}
}
&.bottom {
padding-top: 8px;
.tooltip-arrow {
border-bottom-color: @base;
border-width: 0 9px 9px;
margin-left: -9px;
top: -1px;
}
}
&.left {
.tooltip-arrow {
border-left-color: @base;
border-width: 9px 0 9px 9px;
margin-top: -9px;
right: -3px;
}
}
}
.tooltip-inner {
background-color: @base;
line-height: ceil(@font-size-base * 1.285);
padding: 12px 12px;
text-align: center;
width: 183px;
border-radius: @border-radius-large;
}