John Cowen a61e5cc08b
ui: Icon related fixups (#13183)
* ui: Use new icon-size and icon-color for popover-menus

* Remove the default currentColor plus add some more defaults

* Undo transparency overwrites now we don't need them

* Fixup discochain icons

* Undo a default icon rule for vert align

* Fixup expanded icon for meatball popovers

* Fixup intention permission labels/badges/icons

* Remove different res icon

* Remove icon resolutions
2022-05-25 14:28:42 +01:00

75 lines
1.4 KiB
SCSS

.tippy-box[data-theme~='tooltip'] {
& {
@extend %tooltip-bubble;
}
.tippy-content {
@extend %tooltip-content;
}
.tippy-arrow {
@extend %tooltip-tail;
}
&[data-placement^='bottom'] > .tippy-arrow {
@extend %tooltip-tail-bottom;
}
&[data-placement^='top'] > .tippy-arrow {
@extend %tooltip-tail-top;
}
&[data-placement^='left'] > .tippy-arrow {
@extend %tooltip-tail-left;
}
&[data-placement^='right'] > .tippy-arrow {
@extend %tooltip-tail-right;
}
}
%tooltip-content {
@extend %p3;
padding: 12px;
max-width: 224px;
position: relative;
z-index: 1;
}
%tooltip-bubble {
& {
background-color: rgb(var(--tone-gray-700));
color: rgb(var(--tone-gray-000));
}
}
%tooltip-tail {
--size: 5px;
& {
color: rgb(var(--tone-gray-700));
width: calc(var(--size) * 2);
height: calc(var(--size) * 2);
}
&::before {
border-color: var(--transparent);
border-style: solid;
}
}
%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;
}
}