mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 19:50:36 +00:00
06ff4228b4
* update red color variables to hds * change background red to be one step lighter * map oranges * map greens * map blues * map greys * delete themes, colours: lemon, magenta, strawberry, and vault color aliases * add unmapped rainbow colours * replace white and transparent vars, remove unused semantic vars and frame placeholders * small tweaks to improve contrast, change node health status x/check colours for non-voters to match design doc, replace semantic colour action w hds colour * add unmapped grays, remove dark theme, manually set nav bar to use dark colours * map consul pink colour * map yellows * add unmapped oranges, delete light theme * remove readme, base variables, clean up dangling colours * Start working on the nav disclosure menus * Update main-nav-horizontal dropdowns * Format template * Update box-shadow tokens * Replace --tone- usage with tokens * Update nav disabled state and panel border colour * Replace rgb usage on tile * Fix permissions modal overlay * More fixes * Replace orange-500 with amber-200 * Update badge colors * Update vertical sidebar colors * Remove top border on consul peer list ul --------- Co-authored-by: wenincode <tyler.wendlandt@hashicorp.com>
94 lines
1.8 KiB
SCSS
94 lines
1.8 KiB
SCSS
.tippy-box {
|
|
@extend %overlay;
|
|
}
|
|
[data-tippy-root] {
|
|
@extend %overlay-layer;
|
|
}
|
|
%overlay-layer {
|
|
max-width: calc(100vw - 10px);
|
|
}
|
|
%overlay {
|
|
& {
|
|
position: relative;
|
|
outline: 0;
|
|
transition-property: transform, visibility, opacity;
|
|
}
|
|
&[data-animation='fade'][data-state='hidden'] {
|
|
opacity: 0;
|
|
}
|
|
&[data-inertia][data-state='visible'] {
|
|
transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
|
|
}
|
|
&[data-animation='fade'][data-state='hidden'] {
|
|
opacity: 0;
|
|
}
|
|
&[data-inertia][data-state='visible'] {
|
|
transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
|
|
}
|
|
& {
|
|
background-color: var(--token-color-surface-primary);
|
|
border-radius: var(--decor-radius-100);
|
|
box-shadow: var(--token-surface-mid-box-shadow);
|
|
}
|
|
.tippy-arrow {
|
|
@extend %overlay-tail;
|
|
}
|
|
&[data-placement^='bottom'] > .tippy-arrow {
|
|
@extend %overlay-tail-bottom;
|
|
}
|
|
&[data-placement^='top'] > .tippy-arrow {
|
|
@extend %overlay-tail-top;
|
|
}
|
|
&[data-placement^='left'] > .tippy-arrow {
|
|
@extend %overlay-tail-left;
|
|
}
|
|
&[data-placement^='right'] > .tippy-arrow {
|
|
@extend %overlay-tail-right;
|
|
}
|
|
}
|
|
%overlay-tail {
|
|
--size: 5px;
|
|
&::before {
|
|
content: '';
|
|
position: absolute;
|
|
}
|
|
}
|
|
%overlay-tail-top {
|
|
& {
|
|
bottom: 0;
|
|
}
|
|
&::before {
|
|
left: 0;
|
|
bottom: calc(0px - var(--size));
|
|
transform-origin: center top;
|
|
}
|
|
}
|
|
%overlay-tail-bottom {
|
|
& {
|
|
top: 0;
|
|
}
|
|
&::before {
|
|
left: 0;
|
|
top: calc(0px - var(--size));
|
|
transform-origin: center bottom;
|
|
}
|
|
}
|
|
%overlay-tail-left {
|
|
& {
|
|
right: 0;
|
|
}
|
|
&::before {
|
|
right: calc(0px - var(--size));
|
|
transform-origin: center left;
|
|
}
|
|
}
|
|
%overlay-tail-right {
|
|
& {
|
|
left: 0;
|
|
}
|
|
&::before {
|
|
left: calc(0px - var(--size));
|
|
transform-origin: center right;
|
|
}
|
|
}
|