mirror of
https://github.com/thangisme/notes.git
synced 2024-09-06 19:24:22 -04:00
194 lines
3.6 KiB
SCSS
194 lines
3.6 KiB
SCSS
//
|
|
// Main nav, breadcrumb, etc...
|
|
//
|
|
|
|
.nav-list {
|
|
padding: 0;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
list-style: none;
|
|
|
|
.nav-list-item {
|
|
@include fs-4;
|
|
position: relative;
|
|
margin: 0;
|
|
|
|
@include mq(md) {
|
|
@include fs-3;
|
|
}
|
|
|
|
.nav-list-link {
|
|
display: block;
|
|
min-height: $nav-list-item-height-sm;
|
|
line-height: #{$nav-list-item-height-sm - 2 * $sp-1};
|
|
padding-top: $sp-1;
|
|
padding-bottom: $sp-1;
|
|
@if $nav-list-expander-right {
|
|
padding-right: $nav-list-item-height-sm;
|
|
padding-left: $gutter-spacing-sm;
|
|
} @else {
|
|
padding-right: $gutter-spacing-sm;
|
|
padding-left: $nav-list-item-height-sm;
|
|
}
|
|
|
|
@include mq(md) {
|
|
min-height: $nav-list-item-height;
|
|
line-height: #{$nav-list-item-height - 2 * $sp-1};
|
|
@if $nav-list-expander-right {
|
|
padding-right: $nav-list-item-height;
|
|
padding-left: $gutter-spacing;
|
|
} @else {
|
|
padding-right: $gutter-spacing;
|
|
padding-left: $nav-list-item-height;
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
font-weight: 600;
|
|
text-decoration: none;
|
|
}
|
|
|
|
&:hover,
|
|
&.active {
|
|
background-color: $feedback-color;
|
|
}
|
|
}
|
|
|
|
.nav-list-expander {
|
|
position: absolute;
|
|
@if $nav-list-expander-right {
|
|
right: 0;
|
|
}
|
|
width: $nav-list-item-height-sm;
|
|
height: $nav-list-item-height-sm;
|
|
padding-top: #{$nav-list-item-height-sm / 4};
|
|
padding-right: #{$nav-list-item-height-sm / 4};
|
|
padding-bottom: #{$nav-list-item-height-sm / 4};
|
|
padding-left: #{$nav-list-item-height-sm / 4};
|
|
fill: $link-color;
|
|
|
|
@include mq(md) {
|
|
width: $nav-list-item-height;
|
|
height: $nav-list-item-height;
|
|
padding-top: #{$nav-list-item-height / 4};
|
|
padding-right: #{$nav-list-item-height / 4};
|
|
padding-bottom: #{$nav-list-item-height / 4};
|
|
padding-left: #{$nav-list-item-height / 4};
|
|
}
|
|
|
|
&:hover {
|
|
background-color: $feedback-color;
|
|
}
|
|
|
|
@if $nav-list-expander-right {
|
|
svg {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
}
|
|
|
|
> .nav-list {
|
|
display: none;
|
|
padding-left: $sp-3;
|
|
list-style: none;
|
|
|
|
.nav-list-item {
|
|
position: relative;
|
|
|
|
.nav-list-link {
|
|
color: $nav-child-link-color;
|
|
}
|
|
|
|
.nav-list-expander {
|
|
fill: $nav-child-link-color;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
> .nav-list-expander svg {
|
|
@if $nav-list-expander-right {
|
|
transform: rotate(-90deg);
|
|
} @else {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
|
|
> .nav-list {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Small screen nav
|
|
|
|
.site-nav {
|
|
display: none;
|
|
|
|
&.nav-open {
|
|
display: block;
|
|
}
|
|
@include mq(md) {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.aux-nav {
|
|
align-self: center;
|
|
|
|
.aux-nav-list {
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
@include fs-2;
|
|
}
|
|
|
|
.aux-nav-list-item {
|
|
display: inline-block;
|
|
margin-right: $sp-2;
|
|
@include fs-2;
|
|
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Breadcrumb nav
|
|
|
|
.breadcrumb-nav {
|
|
@include mq(md) {
|
|
margin-top: -$sp-4;
|
|
}
|
|
}
|
|
|
|
.breadcrumb-nav-list {
|
|
padding-left: 0;
|
|
margin-bottom: $sp-3;
|
|
list-style: none;
|
|
}
|
|
|
|
.breadcrumb-nav-list-item {
|
|
display: table-cell;
|
|
@include fs-2;
|
|
|
|
&::before {
|
|
display: none;
|
|
}
|
|
|
|
&::after {
|
|
display: inline-block;
|
|
margin-right: $sp-2;
|
|
margin-left: $sp-2;
|
|
color: $grey-dk-000;
|
|
content: "/";
|
|
}
|
|
|
|
&:last-child {
|
|
&::after {
|
|
content: "";
|
|
}
|
|
}
|
|
}
|