|
14 | 14 | </thead> |
15 | 15 | <tbody> |
16 | 16 | <tr> |
17 | | - <td class="tooltip"> |
| 17 | + <td class="tooltip flex"> |
18 | 18 | <p>{{ $t("skipIntroSwitch") }}</p> |
19 | | - <p class="tooltiptext">{{ $t("skipIntroDescription") }}</p> |
| 19 | + <i-mdi-help-circle height="1rem" /> |
| 20 | + <div |
| 21 | + class="tooltip-content text-primary-content" |
| 22 | + style="transform: unset; inset: auto auto var(--tt-off) 0%" |
| 23 | + > |
| 24 | + {{ $t("skipIntroDescription") }} |
| 25 | + </div> |
20 | 26 | </td> |
21 | 27 | <td> |
22 | 28 | <Switch |
|
62 | 68 | </td> |
63 | 69 | </tr> |
64 | 70 | <tr> |
65 | | - <td class="tooltip"> |
| 71 | + <td class="tooltip flex"> |
66 | 72 | <p>{{ $t("skipCreditsSwitch") }}</p> |
67 | | - <p class="tooltiptext">{{ $t("skipCreditsDescription") }}</p> |
| 73 | + <i-mdi-help-circle height="1rem" /> |
| 74 | + <div |
| 75 | + class="tooltip-content text-primary-content" |
| 76 | + style="transform: unset; inset: auto auto var(--tt-off) 0%" |
| 77 | + > |
| 78 | + {{ $t("skipCreditsDescription") }} |
| 79 | + </div> |
68 | 80 | </td> |
69 | 81 | <td> |
70 | 82 | <Switch |
|
110 | 122 | </td> |
111 | 123 | </tr> |
112 | 124 | <tr> |
113 | | - <td class="tooltip"> |
| 125 | + <td class="tooltip flex"> |
114 | 126 | <p>{{ $t("watchCreditsSwitch") }}</p> |
115 | | - <p class="tooltiptext">{{ $t("watchCreditsDescription") }}</p> |
| 127 | + <i-mdi-help-circle height="1rem" /> |
| 128 | + <div |
| 129 | + class="tooltip-content text-primary-content" |
| 130 | + style="transform: unset; inset: auto auto var(--tt-off) 0%" |
| 131 | + > |
| 132 | + {{ $t("watchCreditsDescription") }} |
| 133 | + </div> |
116 | 134 | </td> |
117 | 135 | <td> |
118 | 136 | <Switch |
|
153 | 171 | </td> |
154 | 172 | </tr> |
155 | 173 | <tr> |
156 | | - <td class="tooltip"> |
| 174 | + <td class="tooltip flex"> |
157 | 175 | <p>{{ $t("skipAdSwitch") }}</p> |
158 | | - <p class="tooltiptext">{{ $t("skipAdDescription") }}</p> |
| 176 | + <i-mdi-help-circle height="1rem" /> |
| 177 | + <div |
| 178 | + class="tooltip-content text-primary-content" |
| 179 | + style="transform: unset; inset: auto auto var(--tt-off) 0%" |
| 180 | + > |
| 181 | + {{ $t("skipAdDescription") }} |
| 182 | + </div> |
159 | 183 | </td> |
160 | 184 | <td> |
161 | 185 | <Switch |
|
191 | 215 | </td> |
192 | 216 | </tr> |
193 | 217 | <tr> |
194 | | - <td class="tooltip"> |
| 218 | + <td class="tooltip flex"> |
195 | 219 | <p>{{ $t("showRatingSwitch") }}</p> |
196 | | - <p class="tooltiptext">{{ $t("showRatingDescription") }}</p> |
| 220 | + <i-mdi-help-circle height="1rem" /> |
| 221 | + <div |
| 222 | + class="tooltip-content text-primary-content" |
| 223 | + style="transform: unset; inset: auto auto var(--tt-off) 0%" |
| 224 | + > |
| 225 | + {{ $t("showRatingDescription") }} |
| 226 | + </div> |
197 | 227 | </td> |
198 | 228 | <td> |
199 | 229 | <Switch |
|
234 | 264 | </td> |
235 | 265 | </tr> |
236 | 266 | <tr> |
237 | | - <td class="tooltip"> |
| 267 | + <td class="tooltip flex"> |
238 | 268 | <p>{{ $t("speedSliderSwitch") }}</p> |
239 | | - <p class="tooltiptext">{{ $t("speedSliderDescription") }}</p> |
| 269 | + <i-mdi-help-circle height="1rem" /> |
| 270 | + <div |
| 271 | + class="tooltip-content text-primary-content" |
| 272 | + style="transform: unset; inset: auto auto var(--tt-off) 0%" |
| 273 | + > |
| 274 | + {{ $t("speedSliderDescription") }} |
| 275 | + </div> |
240 | 276 | </td> |
241 | 277 | <td> |
242 | 278 | <Switch |
|
282 | 318 | </td> |
283 | 319 | </tr> |
284 | 320 | <tr> |
285 | | - <td class="tooltip"> |
| 321 | + <td class="tooltip flex"> |
286 | 322 | <p>{{ $t("hideTitlesSwitch") }}</p> |
287 | | - <p class="tooltiptext">{{ $t("hideTitlesDescription") }}</p> |
| 323 | + <i-mdi-help-circle height="1rem" /> |
| 324 | + <div |
| 325 | + class="tooltip-content text-primary-content" |
| 326 | + style="transform: unset; inset: auto auto var(--tt-off) 0%" |
| 327 | + > |
| 328 | + {{ $t("hideTitlesDescription") }} |
| 329 | + </div> |
288 | 330 | </td> |
289 | 331 | <td> |
290 | 332 | <Switch |
|
494 | 536 | @apply m-0; |
495 | 537 | } |
496 | 538 |
|
497 | | -.tooltip { |
498 | | - border-bottom: 1px dotted white; |
499 | | - @apply whitespace-nowrap inline-block relative; |
500 | | -} |
501 | 539 | @media only screen and (max-width: 800px), only screen and (max-height: 600px) { |
502 | | - .tooltip { |
503 | | - white-space: wrap; |
504 | | - } |
505 | 540 | /* label { |
506 | 541 | transform: scale(0.8); |
507 | 542 | } */ |
|
512 | 547 | display: none; |
513 | 548 | } |
514 | 549 | } |
515 | | -
|
516 | | -.tooltip .tooltiptext { |
517 | | - visibility: hidden; |
518 | | - width: 300px; |
519 | | - color: #000; |
520 | | - text-align: center; |
521 | | - border-radius: 6px; |
522 | | - padding: 5px 0; |
523 | | - position: absolute; |
524 | | - z-index: 1; |
525 | | - bottom: 100%; |
526 | | - left: 0%; |
527 | | - @apply bg-primary-content text-primary; |
528 | | -} |
529 | | -.tooltiptext { |
530 | | - white-space: normal; |
531 | | -} |
532 | | -.tooltip .tooltiptext::after { |
533 | | - content: ""; |
534 | | - position: absolute; |
535 | | - top: 100%; |
536 | | - left: 50%; |
537 | | - margin-left: -5px; |
538 | | - border-width: 5px; |
539 | | - border-style: solid; |
540 | | - border-color: #fff transparent transparent transparent; |
541 | | -} |
542 | | -
|
543 | | -.tooltip:hover .tooltiptext { |
544 | | - visibility: visible; |
545 | | -} |
546 | 550 | </style> |
0 commit comments