200 lines
5.1 KiB
SCSS
200 lines
5.1 KiB
SCSS
/*
|
|
* top navbar css grid layout
|
|
*/
|
|
nav#top-navbar-grid-outer {
|
|
@extend .container-fluid;
|
|
@extend .mt-4;
|
|
@extend .mt-md-5;
|
|
@extend .mb-4;
|
|
@extend .px-3;
|
|
@extend .px-sm-4;
|
|
@extend .px-md-5;
|
|
@extend .d-grid;
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
grid-template-rows: calc(4.3rem / 2) calc(4.3rem / 2) auto;
|
|
@include media-breakpoint-up(md) {
|
|
grid-template-rows: calc(5.3rem / 2) calc(5.3rem / 2) auto;
|
|
}
|
|
div#top-navbar-grid-brand-outer {
|
|
grid-column-start: 1;
|
|
grid-column-end: 2;
|
|
grid-row-start: 1;
|
|
grid-row-end: 3;
|
|
a#top-navbar-grid-brand-link {
|
|
color: $gray-300;
|
|
svg.header-logo {
|
|
height: 4.3rem;
|
|
@include media-breakpoint-up(md) {
|
|
height: 5.3rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
div#top-navbar-grid-toggle-button-outer {
|
|
grid-column-start: 2;
|
|
grid-column-end: 3;
|
|
grid-row-start: 1;
|
|
grid-row-end: 2;
|
|
display: grid;
|
|
justify-items: end;
|
|
@extend .d-lg-none;
|
|
}
|
|
div#top-navbar-grid-socialicon-widget-outer {
|
|
grid-column-start: 2;
|
|
grid-column-end: 3;
|
|
grid-row-start: 2;
|
|
grid-row-end: 3;
|
|
display: grid;
|
|
justify-items: end;
|
|
align-items: end;
|
|
@include media-breakpoint-up(lg) {
|
|
grid-row-start: 1;
|
|
grid-row-end: 2;
|
|
align-items: start;
|
|
}
|
|
section.widget_block {
|
|
ul.wp-block-social-links {
|
|
@extend .mb-0;
|
|
li.wp-social-link {
|
|
@extend .mx-0;
|
|
@extend .my-0;
|
|
@extend .px-0;
|
|
@extend .py-0;
|
|
a.wp-block-social-link-anchor {
|
|
@extend .px-1;
|
|
@extend .px-md-2;
|
|
@extend .py-0;
|
|
color: $gray-300;
|
|
&:hover {
|
|
color: $primary;
|
|
}
|
|
svg {
|
|
height: 1.1em;
|
|
width: 1.1em;
|
|
@include media-breakpoint-up(md) {
|
|
height: 1.25em;
|
|
width: 1.25em;
|
|
}
|
|
}
|
|
}
|
|
&:first-child {
|
|
a.wp-block-social-link-anchor {
|
|
@extend .ps-0;
|
|
}
|
|
}
|
|
&:last-child {
|
|
a.wp-block-social-link-anchor {
|
|
@extend .pe-0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
div#top-navbar-grid-main-menu-outer {
|
|
@include media-breakpoint-down(lg) {
|
|
display: none;
|
|
margin: 1em 0 0 0;
|
|
&.show, &.collapsing {
|
|
display: grid;
|
|
grid-column-start: 1;
|
|
grid-column-end: 3;
|
|
grid-row-start: 3;
|
|
grid-row-end: 4;
|
|
justify-items: center;
|
|
}
|
|
}
|
|
@include media-breakpoint-up(lg) {
|
|
display: grid;
|
|
margin: 0 !important;
|
|
grid-column-start: 2;
|
|
grid-column-end: 3;
|
|
grid-row-start: 2;
|
|
grid-row-end: 3;
|
|
justify-items: end;
|
|
align-items: end;
|
|
}
|
|
ul#menu-navbar-main-menu {
|
|
list-style: none;
|
|
@extend .d-grid;
|
|
grid-template-columns: 1fr;
|
|
@extend .d-lg-flex;
|
|
@extend .flex-lg-row;
|
|
@extend .p-0;
|
|
@extend .m-0;
|
|
& > li.menu-item {
|
|
@extend .text-center;
|
|
@extend .my-2;
|
|
@extend .my-lg-0;
|
|
@include media-breakpoint-up(lg) {
|
|
display: list-item;
|
|
padding: 0 0 0 1.5em !important;
|
|
}
|
|
.top-navbar-grid-main-menu-item-link {
|
|
@extend .fw-bold;
|
|
@extend .text-uppercase;
|
|
@extend .text-decoration-none;
|
|
color: $gray-300;
|
|
&:hover {
|
|
@extend .text-decoration-underline;
|
|
text-decoration-color: $primary !important;
|
|
color: $gray-300;
|
|
}
|
|
&.active {
|
|
color: $primary;
|
|
}
|
|
}
|
|
.dropdown-toggle {
|
|
cursor: pointer;
|
|
div.icon.baseline {
|
|
transform: rotate(0deg);
|
|
transition: transform 150ms ease;
|
|
svg {
|
|
top: inherit;
|
|
height: .75em;
|
|
width: .75em;
|
|
}
|
|
}
|
|
&.show {
|
|
color: $primary;
|
|
&:hover {
|
|
@extend .text-decoration-none;
|
|
}
|
|
div.icon.baseline {
|
|
transform: rotate(180deg);
|
|
transition: transform 150ms ease;
|
|
}
|
|
}
|
|
&::after {
|
|
@extend .d-none;
|
|
}
|
|
}
|
|
.dropdown-menu.dropdown-menu-dark {
|
|
background-color: shade-color($gray-800, 50%);
|
|
li.menu-item {
|
|
.dropdown-item.top-navbar-grid-main-menu-item-link {
|
|
@extend .fw-normal;
|
|
padding: 0.25rem 1rem 0 1rem !important;
|
|
text-transform: inherit !important;
|
|
&:hover {
|
|
@extend .text-decoration-none;
|
|
color: $gray-900;
|
|
background-color: $primary;
|
|
}
|
|
}
|
|
&.active {
|
|
.dropdown-item.top-navbar-grid-main-menu-item-link {
|
|
color: $gray-900;
|
|
background-color: shade-color($primary, 25%);
|
|
&:hover {
|
|
@extend .text-decoration-none;
|
|
background-color: $primary;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|