2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2019-12-17 18:47:37 +00:00
|
|
|
@import './skin';
|
|
|
|
@import './layout';
|
2020-07-09 13:26:52 +00:00
|
|
|
|
|
|
|
/* things that should look like nav buttons */
|
2019-12-17 18:47:37 +00:00
|
|
|
%main-nav-horizontal > ul > li > a,
|
|
|
|
%main-nav-horizontal > ul > li > span,
|
2021-04-06 12:40:40 +00:00
|
|
|
%main-nav-horizontal > ul > li > button,
|
2022-02-21 12:22:59 +00:00
|
|
|
%main-nav-horizontal-popover-menu-trigger,
|
2020-07-09 13:26:52 +00:00
|
|
|
%main-nav-horizontal > ul > li > .popover-menu > label > button {
|
2019-12-17 18:47:37 +00:00
|
|
|
@extend %main-nav-horizontal-action;
|
|
|
|
}
|
2020-07-09 13:26:52 +00:00
|
|
|
%main-nav-horizontal .popover-menu [type='checkbox']:checked + label > *,
|
|
|
|
%main-nav-horizontal > ul > li.is-active > a,
|
2021-04-06 12:40:40 +00:00
|
|
|
%main-nav-horizontal > ul > li.is-active > button {
|
2020-07-09 13:26:52 +00:00
|
|
|
@extend %main-nav-horizontal-action-active;
|
|
|
|
}
|
|
|
|
/* Whilst we want spans to look the same as actions */
|
|
|
|
/* we don't want them to act the same */
|
2019-12-17 18:47:37 +00:00
|
|
|
%main-nav-horizontal-action:not(span):hover,
|
|
|
|
%main-nav-horizontal-action:not(span):focus {
|
|
|
|
@extend %main-nav-horizontal-action-intent;
|
|
|
|
}
|
2020-05-11 15:37:11 +00:00
|
|
|
%main-nav-horizontal > ul > li > span {
|
|
|
|
cursor: default;
|
|
|
|
}
|
2020-07-09 13:26:52 +00:00
|
|
|
/**/
|
|
|
|
|
|
|
|
/* menu-panels in the main navigation are treated slightly differently */
|
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
|
|
|
%main-nav-horizontal .disclosure-menu button + * {
|
2020-07-09 13:26:52 +00:00
|
|
|
@extend %main-nav-horizontal-menu-panel;
|
2019-12-17 18:47:37 +00:00
|
|
|
}
|