open-consul/ui/packages/consul-ui/app/components/overlay/square-tail.scss

51 lines
1.2 KiB
SCSS

[data-theme~='square-tail'] {
.tippy-arrow {
--size: 18px;
left: calc(0px - (var(--size) / 2)) !important;
}
.tippy-arrow::before {
background-color: rgb(var(--white));
width: calc(1px + var(--size));
height: calc(1px + var(--size));
border: var(--decor-border-100);
border-color: rgb(var(--tone-gray-300));
}
// potential icon
.tippy-arrow::after {
position: absolute;
left: 1px;
}
&[data-placement^='top'] {
& {
bottom: -10px;
}
.informed-action {
border-bottom-left-radius: 0 !important;
}
.tippy-arrow::before {
border-bottom-left-radius: var(--decor-radius-200);
border-bottom-right-radius: var(--decor-radius-200);
border-top: 0 !important;
}
.tippy-arrow::after {
bottom: calc(0px - var(--size));
}
}
&[data-placement^='bottom'] {
& {
top: -10px;
}
.informed-action {
border-top-left-radius: 0 !important;
}
.tippy-arrow::before {
border-top-left-radius: var(--decor-radius-200);
border-top-right-radius: var(--decor-radius-200);
border-bottom: 0 !important;
}
.tippy-arrow::after {
top: calc(0px - var(--size));
}
}
}