2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
* SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 13:18:55 +00:00
|
|
|
*/
|
|
|
|
|
2020-12-02 09:43:34 +00:00
|
|
|
.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;
|
|
|
|
}
|
2021-05-27 12:23:54 +00:00
|
|
|
&[data-animation='fade'][data-state='hidden'] {
|
2020-12-02 09:43:34 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
2021-05-27 12:23:54 +00:00
|
|
|
&[data-inertia][data-state='visible'] {
|
|
|
|
transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
2021-05-27 12:23:54 +00:00
|
|
|
&[data-animation='fade'][data-state='hidden'] {
|
2020-12-02 09:43:34 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
2021-05-27 12:23:54 +00:00
|
|
|
&[data-inertia][data-state='visible'] {
|
|
|
|
transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
& {
|
UI: Update Consul UI colors to use HDS colors (#16111)
* 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>
2023-02-27 16:30:12 +00:00
|
|
|
background-color: var(--token-color-surface-primary);
|
2021-10-07 18:21:11 +00:00
|
|
|
border-radius: var(--decor-radius-100);
|
UI: Update Consul UI colors to use HDS colors (#16111)
* 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>
2023-02-27 16:30:12 +00:00
|
|
|
box-shadow: var(--token-surface-mid-box-shadow);
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
.tippy-arrow {
|
|
|
|
@extend %overlay-tail;
|
|
|
|
}
|
2021-05-27 12:23:54 +00:00
|
|
|
&[data-placement^='bottom'] > .tippy-arrow {
|
2020-12-02 09:43:34 +00:00
|
|
|
@extend %overlay-tail-bottom;
|
|
|
|
}
|
2021-05-27 12:23:54 +00:00
|
|
|
&[data-placement^='top'] > .tippy-arrow {
|
2020-12-02 09:43:34 +00:00
|
|
|
@extend %overlay-tail-top;
|
|
|
|
}
|
2021-05-27 12:23:54 +00:00
|
|
|
&[data-placement^='left'] > .tippy-arrow {
|
2020-12-02 09:43:34 +00:00
|
|
|
@extend %overlay-tail-left;
|
|
|
|
}
|
2021-05-27 12:23:54 +00:00
|
|
|
&[data-placement^='right'] > .tippy-arrow {
|
2020-12-02 09:43:34 +00:00
|
|
|
@extend %overlay-tail-right;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%overlay-tail {
|
|
|
|
--size: 5px;
|
|
|
|
&::before {
|
2021-05-27 12:23:54 +00:00
|
|
|
content: '';
|
2020-12-02 09:43:34 +00:00
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%overlay-tail-top {
|
|
|
|
& {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
&::before {
|
|
|
|
left: 0;
|
|
|
|
bottom: calc(0px - var(--size));
|
|
|
|
transform-origin: center top;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%overlay-tail-bottom {
|
|
|
|
& {
|
2021-05-27 12:23:54 +00:00
|
|
|
top: 0;
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
&::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 {
|
|
|
|
& {
|
2021-05-27 12:23:54 +00:00
|
|
|
left: 0;
|
2020-12-02 09:43:34 +00:00
|
|
|
}
|
|
|
|
&::before {
|
|
|
|
left: calc(0px - var(--size));
|
|
|
|
transform-origin: center right;
|
|
|
|
}
|
|
|
|
}
|