wp-rdnyc/assets/css/_layout-top-navbar-main.scss

251 lines
6.2 KiB
SCSS
Raw Normal View History

/* continaer-fluid modifications */
.container-fluid {
padding-right: var(--bs-gutter-x, 1rem);
padding-left: var(--bs-gutter-x, 1rem);
@include media-breakpoint-up(md) {
padding-right: var(--bs-gutter-x, 2.75rem);
padding-left: var(--bs-gutter-x, 2.75rem);
}
&:not(.container-lg) {
@include media-breakpoint-up(xl) {
padding-right: var(--bs-gutter-x, 4rem);
padding-left: var(--bs-gutter-x, 4rem);
}
@include media-breakpoint-up(xxl) {
max-width: 1400px;
}
}
}
.container-lg {
@include media-breakpoint-up(xl) {
max-width: 960px;
}
}
/*
* main section layout
*/
main.rdnyc-single-outer {
@extend .container-lg;
@extend .mt-4;
@extend .mb-3;
@extend .mt-md-4;
@extend .d-flex;
@extend .justify-content-center;
2021-07-28 16:39:40 -04:00
& > div.content {
@extend .w-100;
}
}
2021-07-26 13:07:57 -04:00
/*
* top navbar css grid layout
*/
nav#top-navbar-grid-outer {
@extend .container-fluid;
@include media-breakpoint-down(md) {
margin-top: 1.25rem !important;
}
2021-07-26 13:07:57 -04:00
@extend .mt-md-5;
@extend .mb-4;
@include media-breakpoint-up(sm) {
margin-bottom: 2rem !important;
}
@include media-breakpoint-up(lg) {
margin-bottom: 2.5rem !important;
}
@include media-breakpoint-up(xl) {
margin-bottom: 3rem !important;
}
@include media-breakpoint-up(xxl) {
margin-bottom: 4rem !important;
}
2021-07-26 13:07:57 -04:00
@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;
2021-07-26 13:07:57 -04:00
svg.header-logo {
height: 4.3rem;
@include media-breakpoint-up(md) {
height: 5.3rem;
}
}
}
}
2021-07-26 13:07:57 -04:00
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;
}
}
}
2021-07-26 13:07:57 -04:00
&:first-child {
a.wp-block-social-link-anchor {
@extend .ps-0;
}
}
&:last-child {
a.wp-block-social-link-anchor {
@extend .pe-0;
}
}
}
}
}
}
2021-07-26 13:07:57 -04:00
div#top-navbar-grid-main-menu-outer {
@include media-breakpoint-down(lg) {
display: none;
2021-07-27 08:16:01 -04:00
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;
}
}
2021-07-26 13:07:57 -04:00
@include media-breakpoint-up(lg) {
display: grid;
2021-07-27 08:16:01 -04:00
margin: 0 !important;
2021-07-26 13:07:57 -04:00
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 {
2021-07-27 08:16:01 -04:00
list-style: none;
2021-07-26 13:07:57 -04:00
@extend .d-grid;
grid-template-columns: 1fr;
2021-07-27 08:16:01 -04:00
@extend .d-lg-flex;
@extend .flex-lg-row;
@extend .p-0;
@extend .m-0;
& > li.menu-item {
2021-07-26 13:07:57 -04:00
@extend .text-center;
2021-07-27 08:16:01 -04:00
@extend .my-2;
@extend .my-lg-0;
2021-07-26 13:07:57 -04:00
@include media-breakpoint-up(lg) {
2021-07-27 08:16:01 -04:00
display: list-item;
2021-07-26 13:07:57 -04:00
padding: 0 0 0 1.5em !important;
}
.top-navbar-grid-main-menu-item-link {
2021-07-26 13:07:57 -04:00
@extend .fw-bold;
@extend .text-uppercase;
@extend .text-decoration-none;
color: $gray-300;
&:hover {
2021-07-28 19:05:47 -04:00
@extend .text-decoration-none;
color: $primary;
}
&.active {
2021-07-28 19:05:47 -04:00
opacity: 0.5;
&:hover {
@extend .text-decoration-none;
color: $gray-300;
}
}
}
.dropdown-toggle {
cursor: pointer;
div.icon.baseline {
transform: rotate(0deg);
transition: transform 150ms ease;
svg {
top: inherit;
height: .75em;
width: .75em;
}
}
&.show {
2021-07-28 19:05:47 -04:00
// color: $primary;
opacity: 0.5;
&:hover {
2021-07-27 08:16:01 -04:00
@extend .text-decoration-none;
}
div.icon.baseline {
transform: rotate(180deg);
transition: transform 150ms ease;
}
}
&::after {
2021-07-27 08:16:01 -04:00
@extend .d-none;
}
}
.dropdown-menu.dropdown-menu-dark {
2021-07-28 19:05:47 -04:00
background-color: $spaceblue-900;
li.menu-item {
2021-07-27 08:16:01 -04:00
.dropdown-item.top-navbar-grid-main-menu-item-link {
@extend .fw-normal;
// padding: 0.25rem 1rem 0 1rem !important;
2021-07-27 08:16:01 -04:00
text-transform: inherit !important;
&:hover {
2021-07-27 08:16:01 -04:00
@extend .text-decoration-none;
2021-07-28 19:05:47 -04:00
color: $spaceblue-800;
background-color: $primary;
}
2021-07-27 08:16:01 -04:00
}
&.active {
.dropdown-item.top-navbar-grid-main-menu-item-link {
2021-07-28 19:05:47 -04:00
color: $spaceblue-100;
background-color: $spaceblue-600;
}
}
}
}
}
}
}
}