John Cowen 82a62cd2ed
ui: Sidebar navigation / redesign (#9553)
* CSS for moving from a horizontal main menu to a side/vertical one
* Add <App /> Component and rearrange <HashcorpConsul /> to use it

1. HashicorpConsul now uses <App />
2. <App /> is now translated and adds 'skip to main content' functionality
3. Adds ember-in-viewport addon in order to visibly hide main navigation
items in order to take them out of focus/tabbing
4. Slight amends to the dom service while I was there
2021-01-26 17:40:33 +00:00

54 lines
1.3 KiB
SCSS

%main-nav-vertical-action {
cursor: pointer;
border-right: $decor-border-400;
border-color: $transparent;
font-size: $typo-size-600;
}
%main-nav-vertical-action > a {
color: inherit;
font-size: inherit;
}
%main-nav-vertical [role="separator"] {
text-transform: uppercase;
}
%main-nav-vertical-action-intent {
text-decoration: underline;
}
%main-nav-vertical-action-active-intent {
text-decoration: none;
}
%main-nav-vertical {
background-color: var(--gray-050);
color: var(--gray-700);
}
%main-nav-vertical [role="separator"] {
color: var(--gray-600);
}
%main-nav-vertical-action {
color: var(--gray-800);
}
%main-nav-vertical-action-intent,
%main-nav-vertical-action-active {
color: var(--gray-999);
}
%main-nav-vertical-action-active {
background-color: var(--gray-150);
border-color: var(--gray-999);
}
%main-nav-vertical .is-local span:last-of-type {
@extend %pill-200;
color: var(--gray-000);
background-color: var(--gray-500);
}
%main-nav-vertical .nspaces .menu-panel > div {
background-color: var(--gray-050);
color: var(--gray-999);
padding-left: 36px;
}
%main-nav-vertical .nspaces .menu-panel > div::before {
@extend %with-info-circle-fill-mask, %as-pseudo;
color: $blue-500;
/* sizes the icon not the text */
font-size: 1.1em;
}