|
@@ -1,34 +1,27 @@
|
|
|
-.wp-block-navigation {
|
|
|
|
|
|
+
|
|
|
+.wp-block-navigation {
|
|
|
a {
|
|
|
border-bottom: none;
|
|
|
}
|
|
|
-
|
|
|
.wp-block-navigation-link {
|
|
|
padding: 0;
|
|
|
-
|
|
|
.wp-block-navigation-link__content {
|
|
|
padding: var(--wp--custom--navigation--padding);
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
.wp-block-navigation-link__submenu-icon {
|
|
|
padding: 0;
|
|
|
+ text-indent: -8px;
|
|
|
}
|
|
|
-
|
|
|
.wp-block-navigation__container {
|
|
|
.wp-block-navigation-link {
|
|
|
-
|
|
|
- color: var(--wp--custom--navigation--color--text);
|
|
|
- background-color: var(--wp--custom--navigation--color--background);
|
|
|
- :hover {
|
|
|
- color: var(--wp--custom--navigation--color--hover-text);
|
|
|
- background-color: var(--wp--custom--navigation--color--hover-background);
|
|
|
- }
|
|
|
-
|
|
|
+ color: var(--wp--custom--navigation--color--text);
|
|
|
+ background-color: var(--wp--custom--navigation--color--background);
|
|
|
+ :hover {
|
|
|
+ color: var(--wp--custom--navigation--color--hover-text);
|
|
|
+ background-color: var(--wp--custom--navigation--color--hover-background);
|
|
|
+ }
|
|
|
}
|
|
|
.has-child {
|
|
|
.wp-block-navigation-link__container {
|
|
@@ -39,6 +32,7 @@
|
|
|
border-color: var(--wp--custom--navigation--submenu--border--color);
|
|
|
color: var(--wp--custom--navigation--submenu--color--text);
|
|
|
background-color: var(--wp--custom--navigation--submenu--color--background);
|
|
|
+ box-shadow: var(--wp--custom--navigation--submenu--shadow);
|
|
|
:hover {
|
|
|
color: var(--wp--custom--navigation--submenu--color--hover-text);
|
|
|
background-color: var(--wp--custom--navigation--submenu--color--hover-background);
|
|
@@ -49,5 +43,81 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+@include media(mobile) {
|
|
|
+ header .wp-block-navigation {
|
|
|
+ .wp-block-navigation__mobile-menu-open-button,
|
|
|
+ .wp-block-navigation__mobile-menu-close-button {
|
|
|
+ display:none;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+@include media(mobile-only) {
|
|
|
+ header .wp-block-navigation:not(.show) {
|
|
|
+ text-align: right;
|
|
|
+ padding-left: var(--wp--custom--margin--horizontal);
|
|
|
+ padding-right: var(--wp--custom--margin--horizontal);
|
|
|
+
|
|
|
+ .wp-block-navigation__container {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .wp-block-navigation__mobile-menu-open-button {
|
|
|
+ font-size: var(--wp--custom--navigation--mobile--menu--typography--font-size);
|
|
|
+ font-weight: var(--wp--custom--navigation--mobile--menu--typography--font-weight);
|
|
|
+ font-family: var(--wp--custom--navigation--mobile--menu--typography--font-family);
|
|
|
+ background-color: transparent;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .wp-block-navigation__mobile-menu-close-button {
|
|
|
+ display: none;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
+ header .wp-block-navigation.show {
|
|
|
+ opacity: 1;
|
|
|
+ position:absolute;
|
|
|
+ top: 0;
|
|
|
+ bottom: 0;
|
|
|
+ right: 0;
|
|
|
+ width: 100%;
|
|
|
+
|
|
|
+ .wp-block-navigation__mobile-menu-close-button {
|
|
|
+ display: inline-block;
|
|
|
+ position: absolute;
|
|
|
+ top: var(--wp--custom--margin--vertical);
|
|
|
+ right: var(--wp--custom--margin--horizontal);
|
|
|
+ font-size: var(--wp--custom--navigation--mobile--menu--typography--font-size);
|
|
|
+ font-weight: var(--wp--custom--navigation--mobile--menu--typography--font-weight);
|
|
|
+ font-family: var(--wp--custom--navigation--mobile--menu--typography--font-family);
|
|
|
+ background-color: transparent;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .wp-block-navigation__container {
|
|
|
+ background-color: var(--wp--custom--navigation--submenu--color--background);
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: var(--wp--custom--navigation--mobile--horizontal-alignment);
|
|
|
+ justify-content: var(--wp--custom--navigation--mobile--vertical-alignment);
|
|
|
+ position:fixed;
|
|
|
+ top: 0;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ z-index: 99999;
|
|
|
+ overflow-y: scroll;
|
|
|
+ }
|
|
|
+ .wp-block-navigation-link {
|
|
|
+ padding: 0;
|
|
|
+ .wp-block-navigation-link__content {
|
|
|
+ padding: var(--wp--custom--navigation--mobile--padding);
|
|
|
+ font-family: var(--wp--custom--navigation--mobile--typography--font-family);
|
|
|
+ font-size: var(--wp--custom--navigation--mobile--typography--font-size);
|
|
|
+ font-weight: var(--wp--custom--navigation--mobile--typography--font-weight);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|