2019-06-28 18:14:06 +08:00
|
|
|
@import "./mixins/mixins.scss";
|
2019-09-17 19:21:07 +08:00
|
|
|
@import "./themes/vars.scss";
|
2019-06-20 12:46:29 +08:00
|
|
|
|
2019-09-28 13:47:54 +08:00
|
|
|
@include themes-mixin {
|
|
|
|
.n-tooltip-detached-content-container {
|
|
|
|
@include b(popover-content) {
|
2019-12-01 22:55:39 +08:00
|
|
|
background: none;
|
2019-09-28 13:47:54 +08:00
|
|
|
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;
|
2019-12-01 22:55:39 +08:00
|
|
|
background-color: $--tooltip-background-color;
|
|
|
|
color: $--tooltip-color;
|
|
|
|
border-radius: 6px;
|
|
|
|
transition: background-color .3s $default-cubic-bezier, color .3s $default-cubic-bezier;
|
2019-09-28 13:47:54 +08:00
|
|
|
@include m(fix-width) {
|
|
|
|
white-space: normal;
|
|
|
|
width: max-content;
|
|
|
|
max-width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-07-26 17:40:49 +08:00
|
|
|
}
|
2019-06-28 18:14:06 +08:00
|
|
|
}
|