1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-04 22:47:21 -05:00
notes/_sass/navigation.scss

121 lines
1.6 KiB
SCSS
Raw Normal View History

2017-03-24 09:47:37 -04:00
//
// Main nav, breadcrumb, etc...
//
2017-03-09 13:16:08 -05:00
.navigation-list {
padding: 0;
margin-top: 0;
2018-10-23 11:40:39 -04:00
margin-bottom: 0;
2017-03-26 21:09:19 -04:00
list-style: none;
2017-03-09 13:16:08 -05:00
}
.navigation-list-child-list {
padding-left: $sp-3;
2017-03-26 21:09:19 -04:00
list-style: none;
2017-03-09 13:16:08 -05:00
.navigation-list-link {
2018-11-15 15:12:12 -05:00
color: $nav-child-link-color;
2017-03-09 13:16:08 -05:00
}
.navigation-list-item {
2018-11-15 15:12:12 -05:00
position: relative;
2017-03-09 13:16:08 -05:00
&::before {
position: absolute;
2017-03-26 21:09:19 -04:00
margin-top: 0.3em;
2017-03-09 13:16:08 -05:00
margin-left: -0.8em;
2018-11-18 11:07:45 -05:00
color: rgba($body-text-color, 0.3);
2017-03-26 21:09:19 -04:00
content: "- ";
2017-03-09 13:16:08 -05:00
}
2017-03-24 09:47:37 -04:00
&.active {
&::before {
2018-11-15 15:12:12 -05:00
color: $body-text-color;
2017-03-24 09:47:37 -04:00
}
}
2017-03-09 13:16:08 -05:00
}
}
.navigation-list-item {
2018-10-23 11:40:39 -04:00
@include fs-4;
2017-03-26 21:09:19 -04:00
margin: 0;
2018-10-23 11:40:39 -04:00
@include mq(md) {
@include fs-3;
}
2018-11-19 13:28:59 -05:00
.navigation-list-child-list {
display: none;
}
&.active {
.navigation-list-child-list {
display: block;
}
}
2017-03-09 13:16:08 -05:00
}
.navigation-list-link {
display: block;
2017-03-26 21:09:19 -04:00
padding-top: $sp-1;
padding-bottom: $sp-1;
2017-03-09 13:16:08 -05:00
&.active {
2017-03-26 21:09:19 -04:00
font-weight: 600;
2018-11-15 15:12:12 -05:00
color: $body-heading-color;
2017-03-09 13:16:08 -05:00
text-decoration: none;
}
}
2017-03-24 09:47:37 -04:00
// Small screen nav
.main-nav {
2017-03-24 09:47:37 -04:00
display: none;
&.nav-open {
display: block;
}
@include mq(md) {
display: block;
}
}
.aux-nav {
align-self: center;
2017-03-24 09:47:37 -04:00
}
// Breadcrumb nav
2018-11-19 13:29:17 -05:00
.breadcrumb-nav {
@include mq(md) {
margin-top: -$sp-4;
}
}
2017-03-24 09:47:37 -04:00
2017-03-09 13:16:08 -05:00
.breadcrumb-nav-list {
padding-left: 0;
2017-03-26 21:09:19 -04:00
margin-bottom: $sp-3;
list-style: none;
2017-03-09 13:16:08 -05:00
}
.breadcrumb-nav-list-item {
display: table-cell;
@include fs-2;
2017-03-24 09:47:37 -04:00
&::before {
display: none;
}
2017-03-09 13:16:08 -05:00
&::after {
display: inline-block;
margin-right: $sp-2;
2017-03-26 21:09:19 -04:00
margin-left: $sp-2;
2017-03-09 13:16:08 -05:00
color: $grey-dk-000;
2017-03-26 21:09:19 -04:00
content: "/";
2017-03-09 13:16:08 -05:00
}
&:last-child {
&::after {
content: "";
}
}
}