|
1 // Tooltip |
|
2 |
|
3 .@{prefix}-tooltip { |
|
4 position: absolute; |
|
5 padding: 5px; |
|
6 .opacity(0.8); |
|
7 } |
|
8 |
|
9 .@{prefix}-tooltip-inner { |
|
10 font-size: @tooltip-font-size; |
|
11 background-color: @tooltip-bg; |
|
12 color: @tooltip-text; |
|
13 max-width: 200px; |
|
14 padding: 5px 8px 4px 8px; |
|
15 text-align: center; |
|
16 white-space: normal; |
|
17 } |
|
18 |
|
19 .@{prefix}-tooltip-inner { |
|
20 .border-radius(3px); |
|
21 } |
|
22 |
|
23 .@{prefix}-tooltip-inner { |
|
24 .box-shadow(0 0 5px @tooltip-bg); |
|
25 } |
|
26 |
|
27 .@{prefix}-tooltip-arrow { |
|
28 position: absolute; |
|
29 width: 0; |
|
30 height: 0; |
|
31 line-height: 0; |
|
32 border: 5px dashed @tooltip-bg; |
|
33 } |
|
34 |
|
35 .@{prefix}-tooltip-arrow-n { |
|
36 border-bottom-color: @tooltip-bg; |
|
37 } |
|
38 |
|
39 .@{prefix}-tooltip-arrow-s { |
|
40 border-top-color: @tooltip-bg; |
|
41 } |
|
42 |
|
43 .@{prefix}-tooltip-arrow-e { |
|
44 border-left-color: @tooltip-bg; |
|
45 } |
|
46 |
|
47 .@{prefix}-tooltip-arrow-w { |
|
48 border-right-color: @tooltip-bg; |
|
49 } |
|
50 |
|
51 .@{prefix}-tooltip-nw, .@{prefix}-tooltip-sw { |
|
52 margin-left: -14px; |
|
53 } |
|
54 |
|
55 .@{prefix}-tooltip-n .@{prefix}-tooltip-arrow { |
|
56 top: 0px; |
|
57 left: 50%; |
|
58 margin-left: -5px; |
|
59 border-bottom-style: solid; |
|
60 border-top: none; |
|
61 border-left-color: transparent; |
|
62 border-right-color: transparent; |
|
63 } |
|
64 |
|
65 .@{prefix}-tooltip-nw .@{prefix}-tooltip-arrow { |
|
66 top: 0; |
|
67 left: 10px; |
|
68 border-bottom-style: solid; |
|
69 border-top: none; |
|
70 border-left-color: transparent; |
|
71 border-right-color: transparent; |
|
72 } |
|
73 |
|
74 .@{prefix}-tooltip-ne .@{prefix}-tooltip-arrow { |
|
75 top: 0; |
|
76 right: 10px; |
|
77 border-bottom-style: solid; |
|
78 border-top: none; |
|
79 border-left-color: transparent; |
|
80 border-right-color: transparent; |
|
81 } |
|
82 |
|
83 .@{prefix}-tooltip-s .@{prefix}-tooltip-arrow { |
|
84 bottom: 0; |
|
85 left: 50%; |
|
86 margin-left: -5px; |
|
87 border-top-style: solid; |
|
88 border-bottom: none; |
|
89 border-left-color: transparent; |
|
90 border-right-color: transparent; |
|
91 } |
|
92 |
|
93 .@{prefix}-tooltip-sw .@{prefix}-tooltip-arrow { |
|
94 bottom: 0; |
|
95 left: 10px; |
|
96 border-top-style: solid; |
|
97 border-bottom: none; |
|
98 border-left-color: transparent; |
|
99 border-right-color: transparent; |
|
100 } |
|
101 |
|
102 .@{prefix}-tooltip-se .@{prefix}-tooltip-arrow { |
|
103 bottom: 0; |
|
104 right: 10px; |
|
105 border-top-style: solid; |
|
106 border-bottom: none; |
|
107 border-left-color: transparent; |
|
108 border-right-color: transparent; |
|
109 } |
|
110 |
|
111 .@{prefix}-tooltip-e .@{prefix}-tooltip-arrow { |
|
112 right: 0; |
|
113 top: 50%; |
|
114 margin-top: -5px; |
|
115 border-left-style: solid; |
|
116 border-right: none; |
|
117 border-top-color: transparent; |
|
118 border-bottom-color: transparent; |
|
119 } |
|
120 |
|
121 .@{prefix}-tooltip-w .@{prefix}-tooltip-arrow { |
|
122 left: 0; |
|
123 top: 50%; |
|
124 margin-top: -5px; |
|
125 border-right-style: solid; |
|
126 border-left: none; |
|
127 border-top-color: transparent; |
|
128 border-bottom-color: transparent; |
|
129 } |