2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2021-01-26 17:40:33 +00:00
|
|
|
@import './skin';
|
|
|
|
@import './layout';
|
|
|
|
/* things that should look like nav buttons */
|
2021-10-26 18:26:04 +00:00
|
|
|
|
|
|
|
/* items are single things that look like button */
|
|
|
|
/* but aren't clickable */
|
|
|
|
%main-nav-vertical > ul > li[aria-label] {
|
|
|
|
@extend %main-nav-vertical-item;
|
|
|
|
}
|
|
|
|
/**/
|
|
|
|
/* actual clickable button-y things plus states */
|
2022-09-01 17:26:12 +00:00
|
|
|
%main-nav-vertical a {
|
2021-01-26 17:40:33 +00:00
|
|
|
@extend %main-nav-vertical-action;
|
|
|
|
}
|
|
|
|
%main-nav-vertical > ul > li.is-active > a {
|
|
|
|
@extend %main-nav-vertical-action-active;
|
|
|
|
}
|
|
|
|
|
|
|
|
%main-nav-vertical-action-active:hover:not(:active),
|
|
|
|
%main-nav-vertical-action-active:focus:not(:active) {
|
|
|
|
@extend %main-nav-vertical-action-active-intent;
|
|
|
|
}
|
|
|
|
|
2021-03-17 11:23:00 +00:00
|
|
|
%main-nav-vertical-action:hover,
|
|
|
|
%main-nav-vertical-action:focus {
|
2021-01-26 17:40:33 +00:00
|
|
|
@extend %main-nav-vertical-action-intent;
|
|
|
|
}
|
|
|
|
|
|
|
|
%main-nav-vertical > ul > li > label {
|
|
|
|
@extend %main-nav-vertical-action;
|
|
|
|
}
|
|
|
|
/* menu-panels in the main navigation are treated slightly differently */
|
2022-02-21 12:22:59 +00:00
|
|
|
%main-nav-vertical-popover-menu .disclosure-menu button + * {
|
2021-01-26 17:40:33 +00:00
|
|
|
@extend %main-nav-vertical-menu-panel;
|
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
/**/
|
|
|
|
%main-nav-vertical-popover-menu .disclosure-menu > button {
|
|
|
|
@extend %main-nav-vertical-popover-menu-trigger;
|
|
|
|
@extend %internal-button;
|
|
|
|
}
|