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
|
|
|
|
@apply w-bg-primary w-text-white 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 {
|
|
|
|
@apply w-border-t-primary;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
|
|
|
@apply w-border-b-primary;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
|
|
|
|
@apply w-border-l-primary;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
|
|
|
|
@apply w-border-r-primary;
|
|
|
|
}
|
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
|
|
|
|
|
|
|
// Media for Windows High Contrast mode
|
|
|
|
@media (forced-colors: $media-forced-colours) {
|
|
|
|
.tippy-box[data-theme='dropdown'] {
|
|
|
|
.tippy-content {
|
|
|
|
border: 2px solid transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
|
|
|
@apply w-border-b-primary;
|
|
|
|
clip-path: polygon(50% 0, 0 100%, 100% 100%);
|
|
|
|
}
|
|
|
|
}
|