2020-03-02 11:48:35 +00:00
|
|
|
@import './main-nav-horizontal/index';
|
|
|
|
|
2020-07-09 13:26:52 +00:00
|
|
|
%main-nav-horizontal-action,
|
|
|
|
%main-nav-horizontal-toggle-button {
|
|
|
|
color: var(--typo-brand-050, $black);
|
|
|
|
}
|
|
|
|
|
|
|
|
%main-nav-horizontal .docs-link a::after {
|
|
|
|
@extend %with-docs-icon, %as-pseudo;
|
|
|
|
}
|
|
|
|
%main-nav-horizontal .learn-link a::after {
|
|
|
|
@extend %with-learn-icon, %as-pseudo;
|
|
|
|
}
|
|
|
|
%main-nav-horizontal .feedback-link a::after {
|
|
|
|
@extend %with-logo-github-monochrome-mask, %as-pseudo;
|
|
|
|
}
|
|
|
|
|
2019-12-17 18:47:37 +00:00
|
|
|
%main-header-horizontal nav:first-of-type {
|
|
|
|
@extend %primary-nav;
|
|
|
|
}
|
|
|
|
%main-header-horizontal nav:last-of-type {
|
|
|
|
@extend %secondary-nav;
|
|
|
|
}
|
|
|
|
%primary-nav,
|
|
|
|
%secondary-nav {
|
|
|
|
@extend %main-nav-horizontal;
|
|
|
|
}
|
2020-07-09 13:26:52 +00:00
|
|
|
|
2020-06-09 10:10:14 +00:00
|
|
|
%primary-nav .nspaces .menu-panel > div {
|
|
|
|
background-color: $gray-050;
|
|
|
|
padding-left: 36px;
|
|
|
|
}
|
|
|
|
%primary-nav .nspaces .menu-panel > div::before {
|
|
|
|
@extend %with-info-circle-fill-mask, %as-pseudo;
|
|
|
|
color: $blue-500;
|
2020-07-09 13:26:52 +00:00
|
|
|
/* sizes the icon not the text */
|
2020-06-09 10:10:14 +00:00
|
|
|
font-size: 1.1em;
|
|
|
|
}
|
2020-03-02 11:48:35 +00:00
|
|
|
|
|
|
|
%main-header-horizontal > div {
|
|
|
|
@extend %main-nav-horizontal-panel;
|
|
|
|
}
|
|
|
|
%main-header-horizontal label[for='main-nav-toggle'] {
|
|
|
|
@extend %main-nav-horizontal-toggle-button;
|
|
|
|
}
|
|
|
|
%main-header-horizontal > input {
|
|
|
|
@extend %main-nav-horizontal-toggle;
|
|
|
|
}
|
2019-12-17 18:47:37 +00:00
|
|
|
@media #{$--lt-horizontal-nav} {
|
2020-07-09 13:26:52 +00:00
|
|
|
%main-nav-horizontal-panel {
|
|
|
|
background-color: var(--swatch-brand-600, $black);
|
|
|
|
}
|
2019-12-17 18:47:37 +00:00
|
|
|
%primary-nav {
|
|
|
|
margin-top: 65px;
|
|
|
|
}
|
|
|
|
%secondary-nav li:first-child {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
%primary-nav > ul > li.is-active > a {
|
|
|
|
font-weight: $typo-weight-bold;
|
|
|
|
}
|
|
|
|
}
|
2020-07-09 13:26:52 +00:00
|
|
|
@media #{$--horizontal-nav} {
|
|
|
|
%main-nav-horizontal-action-active {
|
|
|
|
background-color: var(--swatch-brand-800, $black);
|
|
|
|
}
|
|
|
|
}
|