templates/vitekit/__/vite-template-main/scss/libs/tippy.scss
2026-04-12 21:03:18 +03:00

88 lines
1.8 KiB
SCSS

.tippy-box[data-animation='fade'][data-state='hidden'] {
opacity: 0;
}
[data-tippy-root] {
max-width: calc(100vw - 10px);
}
.tippy-box {
position: relative;
font-size: 14px;
line-height: 1.4;
color: #fff;
outline: 0;
background-color: #333;
border-radius: 4px;
transition-property: transform, visibility, opacity;
}
.tippy-arrow {
width: 16px;
height: 16px;
color: #333;
}
.tippy-arrow::before {
position: absolute;
content: '';
border-color: transparent;
border-style: solid;
}
.tippy-box[data-placement^='top'] > .tippy-arrow {
bottom: 0;
}
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
bottom: -7px;
left: 0;
border-width: 8px 8px 0;
border-top-color: initial;
transform-origin: center top;
}
.tippy-box[data-placement^='bottom'] > .tippy-arrow {
top: 0;
}
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
top: -7px;
left: 0;
border-width: 0 8px 8px;
border-bottom-color: initial;
transform-origin: center bottom;
}
.tippy-box[data-placement^='left'] > .tippy-arrow {
right: 0;
}
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
right: -7px;
border-width: 8px 0 8px 8px;
border-left-color: initial;
transform-origin: center left;
}
.tippy-box[data-placement^='right'] > .tippy-arrow {
left: 0;
}
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
left: -7px;
border-width: 8px 8px 8px 0;
border-right-color: initial;
transform-origin: center right;
}
.tippy-box[data-inertia][data-state='visible'] {
transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
}
.tippy-content {
position: relative;
z-index: 1;
padding: 5px 9px;
}