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
|
|
|
*/
|
|
|
|
|
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 {
|
2023-03-15 02:49:14 +00:00
|
|
|
@extend %body-100-regular;
|
2020-12-02 09:43:34 +00:00
|
|
|
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 {
|
|
|
|
& {
|
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-foreground-faint);
|
|
|
|
color: var(--token-color-surface-primary);
|
2020-11-30 16:52:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
%tooltip-tail {
|
|
|
|
--size: 5px;
|
|
|
|
& {
|
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
|
|
|
color: var(--token-color-foreground-faint);
|
2020-11-30 16:52:13 +00:00
|
|
|
width: calc(var(--size) * 2);
|
|
|
|
height: calc(var(--size) * 2);
|
|
|
|
}
|
|
|
|
&::before {
|
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
|
|
|
border-color: 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;
|
|
|
|
}
|
|
|
|
}
|