0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
wagtail/client/scss/overrides/_vendor.tippy.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.4 KiB
SCSS
Raw Normal View History

// stylelint-disable selector-attribute-name-disallowed-list
@import '../../../node_modules/tippy.js/dist/tippy';
.tippy-box {
// Special font size 12px for tooltips
@apply w-bg-surface-tooltip w-text-text-button w-text-[0.75rem] w-rounded-sm w-font-medium;
}
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
@apply w-border-t-surface-tooltip;
}
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
@apply w-border-b-surface-tooltip;
}
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
@apply w-border-l-surface-tooltip;
}
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
@apply w-border-r-surface-tooltip;
}
// Dropdown theme for tippy tooltips
.tippy-box[data-theme='dropdown'] {
@apply w-rounded;
.tippy-content {
@apply w-p-0;
}
}
.tippy-box[data-theme='drilldown'] {
@apply w-rounded w-bg-surface-page w-shadow-md;
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;
}
}
// Media for Windows High Contrast mode
@media (forced-colors: active) {
2023-06-23 15:22:07 +02:00
.tippy-box {
.tippy-content {
border: 2px solid transparent;
}
}
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
@apply w-border-b-surface-tooltip;
clip-path: polygon(50% 0, 0 100%, 100% 100%);
}
}