MikaFil commited on
Commit
7237480
·
verified ·
1 Parent(s): ec31a92

Update style/defaults/style.css

Browse files
Files changed (1) hide show
  1. style/defaults/style.css +56 -22
style/defaults/style.css CHANGED
@@ -175,6 +175,9 @@ progress::-moz-progress-bar {
175
  :-moz-full-screen .widget-button,
176
  :-ms-fullscreen .widget-button { z-index: 10000; }
177
 
 
 
 
178
  /* --------- TOOLTIP PANEL ----------- */
179
  .tooltip-panel {
180
  position: absolute;
@@ -185,7 +188,7 @@ progress::-moz-progress-bar {
185
  color: #545454;
186
  border: 1px solid #ddd;
187
  border-radius: 6px;
188
- padding: 16px 15px 15px 15px;
189
  max-width: 340px;
190
  width: 92vw;
191
  min-width: 180px;
@@ -198,14 +201,11 @@ progress::-moz-progress-bar {
198
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
199
  overflow: auto;
200
  box-sizing: border-box;
201
- /* New: ensure padding on right/top for close btn always visible */
202
- /* Add a little more space for top/right close btn so it's never hidden */
203
- padding-top: 32px;
204
- padding-right: 24px;
205
  }
206
 
 
207
  .tooltip-content {
208
- position: relative;
209
  width: 100%;
210
  min-width: 160px;
211
  max-width: 100%;
@@ -214,33 +214,39 @@ progress::-moz-progress-bar {
214
  flex-direction: column;
215
  align-items: flex-start;
216
  overflow: hidden;
 
217
  }
 
 
218
  .tooltip-close {
219
  position: absolute;
220
- top: 8px;
221
- right: 8px;
222
- /* Always visible: increased padding above/right in parent */
223
- background: #B0B0B0;
 
224
  color: #333;
225
- border-radius: 50%;
226
- width: 28px;
227
- height: 28px;
228
- border: none;
229
  display: flex;
230
  align-items: center;
231
  justify-content: center;
232
- padding: 0;
233
- font-size: 17px;
234
  line-height: 1;
235
- vertical-align: middle;
236
- text-align: center;
237
  cursor: pointer;
238
- font-weight: bold;
239
  z-index: 2;
240
- box-shadow: 0 0 2px 0 rgba(0,0,0,0.10);
241
- user-select: none;
 
 
 
 
 
 
242
  }
243
- .tooltip-close:active, .tooltip-close:focus { outline: none; background: #9e9e9e; }
 
244
  .tooltip-text {
245
  margin-bottom: 10px;
246
  font-size: 14px;
@@ -259,6 +265,34 @@ progress::-moz-progress-bar {
259
  box-sizing: border-box;
260
  }
261
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
  /* --- Mobile adjustments --- */
263
  @media (max-width: 600px) {
264
  .tooltip-panel {
 
175
  :-moz-full-screen .widget-button,
176
  :-ms-fullscreen .widget-button { z-index: 10000; }
177
 
178
+ /* --------- TOOLTIP PANEL ----------- */
179
+ /* ...rest of your CSS remains unchanged... */
180
+
181
  /* --------- TOOLTIP PANEL ----------- */
182
  .tooltip-panel {
183
  position: absolute;
 
188
  color: #545454;
189
  border: 1px solid #ddd;
190
  border-radius: 6px;
191
+ padding: 20px 20px 16px 16px; /* Extra top/right for button */
192
  max-width: 340px;
193
  width: 92vw;
194
  min-width: 180px;
 
201
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
202
  overflow: auto;
203
  box-sizing: border-box;
204
+ position: absolute;
 
 
 
205
  }
206
 
207
+ /* Ensure content does not go under close button */
208
  .tooltip-content {
 
209
  width: 100%;
210
  min-width: 160px;
211
  max-width: 100%;
 
214
  flex-direction: column;
215
  align-items: flex-start;
216
  overflow: hidden;
217
+ margin-top: 0;
218
  }
219
+
220
+ /* CLOSE BUTTON AS SQUARE WITH ROUNDED CORNERS */
221
  .tooltip-close {
222
  position: absolute;
223
+ top: 12px;
224
+ right: 12px;
225
+ width: 32px;
226
+ height: 32px;
227
+ background: #F2F0EF;
228
  color: #333;
229
+ border: 1px solid #ccc;
230
+ border-radius: 8px;
231
+ font-size: 17px;
232
+ font-weight: bold;
233
  display: flex;
234
  align-items: center;
235
  justify-content: center;
 
 
236
  line-height: 1;
 
 
237
  cursor: pointer;
 
238
  z-index: 2;
239
+ transition: background 0.18s;
240
+ box-sizing: border-box;
241
+ padding: 0;
242
+ }
243
+ .tooltip-close:hover,
244
+ .tooltip-close:focus {
245
+ background: #e0e0e0;
246
+ outline: none;
247
  }
248
+
249
+ /* Tooltip text and image */
250
  .tooltip-text {
251
  margin-bottom: 10px;
252
  font-size: 14px;
 
265
  box-sizing: border-box;
266
  }
267
 
268
+ /* --- MOBILE adjustments --- */
269
+ @media (max-width: 600px) {
270
+ .tooltip-panel {
271
+ top: auto;
272
+ bottom: 8px;
273
+ right: 3vw;
274
+ left: 3vw;
275
+ transform: none;
276
+ width: auto;
277
+ max-width: 94vw;
278
+ min-width: 0;
279
+ max-height: 55vh;
280
+ padding: 16px 10px 12px 10px;
281
+ font-size: 13.5px;
282
+ }
283
+ .tooltip-close {
284
+ top: 8px;
285
+ right: 8px;
286
+ width: 26px;
287
+ height: 26px;
288
+ font-size: 15px;
289
+ }
290
+ .tooltip-image {
291
+ max-height: 22vh;
292
+ }
293
+ }
294
+
295
+
296
  /* --- Mobile adjustments --- */
297
  @media (max-width: 600px) {
298
  .tooltip-panel {