1
1
tooltip {
2
2
z-index : 50000 ;
3
- position : absolute;
4
3
text-align : center;
5
4
pointer-events : none;
5
+ white-space : nowrap;
6
+ position : absolute;
7
+ position : fixed;
6
8
display : block;
7
9
}
8
10
9
- tooltip > content {
10
- display : block;
11
+ tooltip > padding {
11
12
background-color : white;
12
13
-webkit-box-shadow : 0 0 4px 0 rgba (0 , 0 , 0 , 0.4 );
13
14
box-shadow : 0 0 4px 0 rgba (0 , 0 , 0 , 0.4 );
15
+ display : inline-block;
14
16
border-radius : 4px ;
15
- text-align : center;
16
17
overflow : hidden;
18
+ padding : 6px ;
19
+ }
20
+
21
+ tooltip > padding > viewport {
17
22
max-width : 300px ;
23
+ display : block;
24
+ overflow : auto;
25
+ padding : 0px ;
26
+ }
27
+
28
+ tooltip > padding > viewport > content {
29
+ display : block;
30
+ white-space : normal;
31
+ text-align : left;
18
32
font-size : 14px ;
19
- padding : 12px ;
33
+ padding : 6px ;
34
+ width : auto;
20
35
color : # 444 ;
21
36
}
22
37
23
- tooltip > content h1 {
38
+ tooltip > padding > viewport > content h1 {
24
39
margin : 0px ;
25
40
font-size : 120% ;
26
41
text-align : center;
@@ -29,7 +44,7 @@ tooltip > content h1 {
29
44
margin-bottom : 2px ;
30
45
}
31
46
32
- tooltip > content h2 {
47
+ tooltip > padding > viewport > content h2 {
33
48
margin : 0px ;
34
49
font-size : 12px ;
35
50
text-transform : uppercase;
@@ -73,11 +88,11 @@ tooltip > arrow {
73
88
z-index : 500 ;
74
89
position : relative;
75
90
background : url ({{/ arrow- down.png }}) no-repeat ;
76
- dis play: inline- block;
91
+ dis play: block;
77
92
to p: -2px;
78
93
}
79
94
80
- tooltip > arrow .flip {
95
+ tooltip > arrow .vflip {
81
96
display : none;
82
97
top : 3px ;
83
98
}
@@ -86,12 +101,49 @@ tooltip.flipped > arrow {
86
101
display : none;
87
102
}
88
103
89
- tooltip .flipped > arrow .flip {
90
- display : inline- block;
104
+ tooltip .flipped > arrow .vflip {
105
+ display : block;
91
106
background : url ({{/ arrow- up.png }}) no-repeat ;
92
107
to p: 3px;
93
108
}
94
109
110
+ tooltip .xlock > arrow ,
111
+ tooltip .xlock > arrow .vflip {
112
+ display : none;
113
+ }
114
+
115
+ tooltip > arrow .xflip {
116
+ display : none;
117
+ }
118
+
119
+ tooltip .xlock > arrow .xflip {
120
+ left : 24px ;
121
+ width : 20px ;
122
+ height : 34px ;
123
+ background : url ({{/ arrow- right.png }}) no-repeat ;
124
+ dis play: inline-block;
125
+ float: right;
126
+ }
127
+
128
+ tooltip .xlock .flipped > arrow .xflip {
129
+ display : none;
130
+ }
131
+
132
+ tooltip .xlock .flipped > arrow .xflip .hflip {
133
+ background : url ({{/ arrow- left.png }}) no-repeat ;
134
+ dis play: inline-block;
135
+ float: left;
136
+ left: 0px;
137
+ }
138
+
139
+ tooltip .xlock > content {
140
+ margin-right : -24px ;
141
+ }
142
+
143
+ tooltip .xlock > arrow .xflip .hflip {
144
+ display : none;
145
+ }
146
+
95
147
tooltip label {
96
148
display : block;
97
149
font-size : 80% ;
0 commit comments