mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
87 lines
2.5 KiB
SCSS
87 lines
2.5 KiB
SCSS
@import "./mixins/mixins.scss";
|
|
@import "./themes/vars.scss";
|
|
|
|
@include themes-mixin {
|
|
.n-tooltip-detached-content-container {
|
|
@include b(popover-content) {
|
|
background: none;
|
|
color: $--tooltip-color;
|
|
box-shadow: $--tooltip-box-shadow;
|
|
&[n-placement$="top-start"] {
|
|
@include b(popover-arrow) {
|
|
border-top-color: $--tooltip-background-color;
|
|
}
|
|
}
|
|
&[n-placement$="top"] {
|
|
@include b(popover-arrow) {
|
|
border-top-color: $--tooltip-background-color;
|
|
}
|
|
}
|
|
&[n-placement$="top-end"] {
|
|
@include b(popover-arrow) {
|
|
border-top-color: $--tooltip-background-color;
|
|
}
|
|
}
|
|
&[n-placement$="bottom-start"] {
|
|
@include b(popover-arrow) {
|
|
border-bottom-color: $--tooltip-background-color;
|
|
}
|
|
}
|
|
&[n-placement$="bottom"] {
|
|
@include b(popover-arrow) {
|
|
border-bottom-color: $--tooltip-background-color;
|
|
}
|
|
}
|
|
&[n-placement$="bottom-end"] {
|
|
@include b(popover-arrow) {
|
|
border-bottom-color: $--tooltip-background-color;
|
|
}
|
|
}
|
|
&[n-placement$="left-start"] {
|
|
@include b(popover-arrow) {
|
|
border-left-color: $--tooltip-background-color;
|
|
}
|
|
}
|
|
&[n-placement$="left"] {
|
|
@include b(popover-arrow) {
|
|
border-left-color: $--tooltip-background-color;
|
|
}
|
|
}
|
|
&[n-placement$="left-end"] {
|
|
@include b(popover-arrow) {
|
|
border-left-color: $--tooltip-background-color;
|
|
}
|
|
}
|
|
&[n-placement$="right-start"] {
|
|
@include b(popover-arrow) {
|
|
border-right-color: $--tooltip-background-color;
|
|
}
|
|
}
|
|
&[n-placement$="right"] {
|
|
@include b(popover-arrow) {
|
|
border-right-color: $--tooltip-background-color;
|
|
}
|
|
}
|
|
&[n-placement$="right-end"] {
|
|
@include b(popover-arrow) {
|
|
border-right-color: $--tooltip-background-color;
|
|
}
|
|
}
|
|
@include b(tooltip-content) {
|
|
padding: 8px 14px;
|
|
white-space: nowrap;
|
|
background-color: $--tooltip-background-color;
|
|
color: $--tooltip-color;
|
|
border-radius: 6px;
|
|
transition: background-color .3s $default-cubic-bezier, color .3s $default-cubic-bezier;
|
|
@include m(fix-width) {
|
|
white-space: normal;
|
|
width: max-content;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|