2023-10-27 08:55:37 +02:00
|
|
|
// stylelint-disable selector-attribute-name-disallowed-list
|
2022-03-28 16:43:35 +02:00
|
|
|
@import '../../../node_modules/tippy.js/dist/tippy';
|
|
|
|
|
|
|
|
.tippy-box {
|
2022-04-08 18:36:47 +02:00
|
|
|
// Special font size 12px for tooltips
|
2023-04-19 07:58:14 +02:00
|
|
|
@apply w-bg-surface-tooltip w-text-text-button w-text-[0.75rem] w-rounded-sm w-font-medium;
|
2022-03-28 16:43:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
|
2023-04-19 07:58:14 +02:00
|
|
|
@apply w-border-t-surface-tooltip;
|
2022-03-28 16:43:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
2023-04-19 07:58:14 +02:00
|
|
|
@apply w-border-b-surface-tooltip;
|
2022-03-28 16:43:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
|
2023-04-19 07:58:14 +02:00
|
|
|
@apply w-border-l-surface-tooltip;
|
2022-03-28 16:43:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
|
2023-04-19 07:58:14 +02:00
|
|
|
@apply w-border-r-surface-tooltip;
|
2022-03-28 16:43:35 +02:00
|
|
|
}
|
2022-04-08 18:36:47 +02:00
|
|
|
|
|
|
|
// Dropdown theme for tippy tooltips
|
|
|
|
.tippy-box[data-theme='dropdown'] {
|
|
|
|
@apply w-rounded;
|
|
|
|
|
|
|
|
.tippy-content {
|
|
|
|
@apply w-p-0;
|
|
|
|
}
|
|
|
|
}
|
2022-11-02 14:08:15 +01:00
|
|
|
|
2024-01-19 10:37:05 +01:00
|
|
|
.tippy-box[data-theme='drilldown'] {
|
2024-02-14 10:25:21 +01:00
|
|
|
@apply w-rounded w-bg-surface-page w-text-inherit w-shadow-md;
|
2024-01-19 10:37:05 +01:00
|
|
|
width: 300px;
|
|
|
|
|
|
|
|
.tippy-content {
|
|
|
|
@apply w-p-0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-06-23 15:22:07 +02:00
|
|
|
.tippy-box[data-theme='dropdown-button'] {
|
|
|
|
@apply w-rounded-none w-w-full w-bg-transparent;
|
|
|
|
|
|
|
|
.tippy-content {
|
|
|
|
@apply w-p-0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-02 14:08:15 +01:00
|
|
|
// Media for Windows High Contrast mode
|
2023-04-19 07:58:14 +02:00
|
|
|
@media (forced-colors: active) {
|
2023-06-23 15:22:07 +02:00
|
|
|
.tippy-box {
|
2022-11-02 14:08:15 +01:00
|
|
|
.tippy-content {
|
|
|
|
border: 2px solid transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
2023-04-19 07:58:14 +02:00
|
|
|
@apply w-border-b-surface-tooltip;
|
2022-11-02 14:08:15 +01:00
|
|
|
clip-path: polygon(50% 0, 0 100%, 100% 100%);
|
|
|
|
}
|
|
|
|
}
|