File tree Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Expand file tree Collapse file tree 2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 85
85
86
86
.tooltip .tooltip-text {
87
87
visibility : hidden;
88
- width : 200 px ;
88
+ width : 120 px ;
89
89
background-color : # 1e1e2e ;
90
90
color : # cdd6f4 ;
91
91
text-align : center;
@@ -95,14 +95,16 @@ body {
95
95
z-index : 1000 ;
96
96
top : 125% ;
97
97
left : 50% ;
98
- margin-left : -100 px ;
98
+ transform : translateX ( -50 % ) ;
99
99
opacity : 0 ;
100
100
transition : opacity 0.2s ease-in-out;
101
101
font-size : 0.85rem ;
102
102
font-weight : 500 ;
103
103
border : 1px solid # 89b4fa ;
104
104
box-shadow : 0 4px 8px rgba (0 , 0 , 0 , 0.3 );
105
105
pointer-events : none;
106
+ white-space : nowrap;
107
+ overflow : visible;
106
108
}
107
109
108
110
.tooltip .tooltip-text ::after {
@@ -155,8 +157,10 @@ body {
155
157
}
156
158
157
159
.tooltip .tooltip-text {
158
- width : 160px ;
159
- margin-left : -80px ;
160
+ width : auto;
161
+ min-width : 80px ;
162
+ max-width : 160px ;
163
+ transform : translateX (-50% );
160
164
font-size : 0.8rem ;
161
165
}
162
166
}
@@ -182,8 +186,10 @@ body {
182
186
}
183
187
184
188
.tooltip .tooltip-text {
185
- width : 140px ;
186
- margin-left : -70px ;
189
+ width : auto;
190
+ min-width : 70px ;
191
+ max-width : 140px ;
192
+ transform : translateX (-50% );
187
193
font-size : 0.75rem ;
188
194
padding : 6px 10px ;
189
195
}
Original file line number Diff line number Diff line change 102
102
103
103
.social-links .tooltip {
104
104
display : inline-block;
105
+ position : relative;
106
+ }
107
+
108
+ .social-links .tooltip .tooltip-text {
109
+ width : auto;
110
+ min-width : 80px ;
111
+ max-width : 120px ;
112
+ left : 50% ;
113
+ transform : translateX (-50% );
114
+ white-space : nowrap;
105
115
}
106
116
107
117
.social-links a {
You can’t perform that action at this time.
0 commit comments