ToolTip.less
2.41 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Tooltip
.@{prefix}-tooltip {
position: absolute;
padding: 5px;
.opacity(0.8);
}
.@{prefix}-tooltip-inner {
font-size: @tooltip-font-size;
background-color: @tooltip-bg;
color: @tooltip-text;
max-width: 200px;
padding: 5px 8px 4px 8px;
text-align: center;
white-space: normal;
}
.@{prefix}-tooltip-inner {
.border-radius(3px);
}
.@{prefix}-tooltip-inner {
.box-shadow(0 0 5px @tooltip-bg);
}
.@{prefix}-tooltip-arrow {
position: absolute;
width: 0;
height: 0;
line-height: 0;
border: 5px dashed @tooltip-bg;
}
.@{prefix}-tooltip-arrow-n {
border-bottom-color: @tooltip-bg;
}
.@{prefix}-tooltip-arrow-s {
border-top-color: @tooltip-bg;
}
.@{prefix}-tooltip-arrow-e {
border-left-color: @tooltip-bg;
}
.@{prefix}-tooltip-arrow-w {
border-right-color: @tooltip-bg;
}
.@{prefix}-tooltip-nw, .@{prefix}-tooltip-sw {
margin-left: -14px;
}
.@{prefix}-tooltip-n .@{prefix}-tooltip-arrow {
top: 0px;
left: 50%;
margin-left: -5px;
border-bottom-style: solid;
border-top: none;
border-left-color: transparent;
border-right-color: transparent;
}
.@{prefix}-tooltip-nw .@{prefix}-tooltip-arrow {
top: 0;
left: 10px;
border-bottom-style: solid;
border-top: none;
border-left-color: transparent;
border-right-color: transparent;
}
.@{prefix}-tooltip-ne .@{prefix}-tooltip-arrow {
top: 0;
right: 10px;
border-bottom-style: solid;
border-top: none;
border-left-color: transparent;
border-right-color: transparent;
}
.@{prefix}-tooltip-s .@{prefix}-tooltip-arrow {
bottom: 0;
left: 50%;
margin-left: -5px;
border-top-style: solid;
border-bottom: none;
border-left-color: transparent;
border-right-color: transparent;
}
.@{prefix}-tooltip-sw .@{prefix}-tooltip-arrow {
bottom: 0;
left: 10px;
border-top-style: solid;
border-bottom: none;
border-left-color: transparent;
border-right-color: transparent;
}
.@{prefix}-tooltip-se .@{prefix}-tooltip-arrow {
bottom: 0;
right: 10px;
border-top-style: solid;
border-bottom: none;
border-left-color: transparent;
border-right-color: transparent;
}
.@{prefix}-tooltip-e .@{prefix}-tooltip-arrow {
right: 0;
top: 50%;
margin-top: -5px;
border-left-style: solid;
border-right: none;
border-top-color: transparent;
border-bottom-color: transparent;
}
.@{prefix}-tooltip-w .@{prefix}-tooltip-arrow {
left: 0;
top: 50%;
margin-top: -5px;
border-right-style: solid;
border-left: none;
border-top-color: transparent;
border-bottom-color: transparent;
}