2021-05-27 12:23:54 +00:00
|
|
|
.tippy-box[data-theme~='tooltip'] {
|
2020-11-30 16:52:13 +00:00
|
|
|
& {
|
|
|
|
@extend %tooltip-bubble;
|
|
|
|
}
|
2020-12-02 09:43:34 +00:00
|
|
|
.tippy-content {
|
|
|
|
@extend %tooltip-content;
|
|
|
|
}
|
|
|
|
.tippy-arrow {
|
|
|
|
@extend %tooltip-tail;
|
|
|
|
}
|
2021-05-27 12:23:54 +00:00
|
|
|
&[data-placement^='bottom'] > .tippy-arrow {
|
2020-11-30 16:52:13 +00:00
|
|
|
@extend %tooltip-tail-bottom;
|
|
|
|
}
|
2021-05-27 12:23:54 +00:00
|
|
|
&[data-placement^='top'] > .tippy-arrow {
|
2020-11-30 16:52:13 +00:00
|
|
|
@extend %tooltip-tail-top;
|
|
|
|
}
|
2021-05-27 12:23:54 +00:00
|
|
|
&[data-placement^='left'] > .tippy-arrow {
|
2020-11-30 16:52:13 +00:00
|
|
|
@extend %tooltip-tail-left;
|
|
|
|
}
|
2021-05-27 12:23:54 +00:00
|
|
|
&[data-placement^='right'] > .tippy-arrow {
|
2020-11-30 16:52:13 +00:00
|
|
|
@extend %tooltip-tail-right;
|
|
|
|
}
|
|
|
|
}
|
2020-12-02 09:43:34 +00:00
|
|
|
%tooltip-content {
|
|
|
|
@extend %p3;
|
|
|
|
padding: 12px;
|
2021-03-26 15:47:47 +00:00
|
|
|
max-width: 224px;
|
2020-12-02 09:43:34 +00:00
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
2020-11-30 16:52:13 +00:00
|
|
|
}
|
2020-12-02 09:43:34 +00:00
|
|
|
|
2020-11-30 16:52:13 +00:00
|
|
|
%tooltip-bubble {
|
|
|
|
& {
|
2021-10-07 18:21:11 +00:00
|
|
|
background-color: rgb(var(--tone-gray-700));
|
2021-11-23 18:32:11 +00:00
|
|
|
color: rgb(var(--tone-gray-000));
|
2020-11-30 16:52:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
%tooltip-tail {
|
|
|
|
--size: 5px;
|
|
|
|
& {
|
2021-10-07 18:21:11 +00:00
|
|
|
color: rgb(var(--tone-gray-700));
|
2020-11-30 16:52:13 +00:00
|
|
|
width: calc(var(--size) * 2);
|
|
|
|
height: calc(var(--size) * 2);
|
|
|
|
}
|
|
|
|
&::before {
|
2021-10-07 18:21:11 +00:00
|
|
|
border-color: var(--transparent);
|
2020-11-30 16:52:13 +00:00
|
|
|
border-style: solid;
|
|
|
|
}
|
|
|
|
}
|
2020-12-02 09:43:34 +00:00
|
|
|
|
2020-11-30 16:52:13 +00:00
|
|
|
%tooltip-tail-top {
|
|
|
|
&::before {
|
|
|
|
border-width: var(--size) var(--size) 0;
|
|
|
|
border-top-color: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%tooltip-tail-bottom {
|
|
|
|
&::before {
|
|
|
|
border-width: 0 var(--size) var(--size);
|
|
|
|
border-bottom-color: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%tooltip-tail-left {
|
|
|
|
&::before {
|
|
|
|
border-width: var(--size) 0 var(--size) var(--size);
|
|
|
|
border-left-color: initial;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%tooltip-tail-right {
|
|
|
|
&::before {
|
|
|
|
border-width: var(--size) var(--size) var(--size) 0;
|
|
|
|
border-right-color: initial;
|
|
|
|
}
|
|
|
|
}
|