Skip to content

Commit

Permalink
Merge pull request #1072 from WebDevStudios/feature/WDSUS-45-wd_s-cle…
Browse files Browse the repository at this point in the history
…anup

Feature/WDSUS-45 WDS Cleanup
  • Loading branch information
thatmitchcanter authored Sep 28, 2023
2 parents 2645b23 + de45f2e commit 2cc09c0
Show file tree
Hide file tree
Showing 35 changed files with 8,248 additions and 3,599 deletions.
44 changes: 44 additions & 0 deletions assets/scss/blocks/core/_navigation.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* stylelint-disable selector-class-pattern, declaration-no-important, value-keyword-case */

/* Navigation
--------------------------------------------- */

.wp-block-navigation__responsive-container.is-menu-open {
padding-left: var( --wp--preset--spacing--50 ) !important;
padding-right: var( --wp--preset--spacing--50 ) !important;
width: 100%;
}

/* Submenu
--------------------------------------------- */

.wp-block-navigation:not( .has-background )
.wp-block-navigation__submenu-container {
min-width: 180px !important;
padding: var( --wp--preset--spacing--20 );
}

.wp-block-navigation
:where( .wp-block-navigation__submenu-container )
.wp-block-navigation-item__content {
padding: 2px var( --wp--preset--spacing--20 );
}

.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__submenu-container {
padding-left: var( --wp--preset--spacing--20 ) !important;
padding-right: var( --wp--preset--spacing--20 ) !important;
}

/* Media Queries
---------------------------------------------------------------------------- */

@media only screen and ( max-width: 600px ) {
.wp-block-navigation__container.is-responsive.items-justified-right.wp-block-navigation {
--navigation-layout-justification-setting: flex-start;
--navigation-layout-justify: flex-start;
width: 100%;
}
}

/* stylelint-enable selector-class-pattern, declaration-no-important, value-keyword-case */
2 changes: 2 additions & 0 deletions assets/scss/blocks/core/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
// Core Gutenberg Block Styles
// Import supported Core Gutenberg block partials.
//----------------------------------------

@import 'navigation';
16 changes: 8 additions & 8 deletions assets/scss/critical/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
// Global Site Header
//--------------------------------------------------------------
.site-header {
@apply flex px-10 py-4 flex-nowrap justify-between items-center;

.site-header-content {
@apply m-0;

.site-branding {
@apply flex-auto;
a {
@apply no-underline;
.wp-block-site-logo {
.site-branding {
@apply flex-auto;
a {
@apply no-underline;

.custom-logo {
@apply w-auto max-h-14;
.custom-logo {
@apply w-auto max-h-14;
}
}
}
}
Expand Down
19 changes: 0 additions & 19 deletions assets/scss/critical/_menus.scss

This file was deleted.

2 changes: 0 additions & 2 deletions assets/scss/critical/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@
//----------------------------------------

@import 'header';
@import 'menus';
@import 'footer';
File renamed without changes.
1 change: 1 addition & 0 deletions assets/scss/global/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

@import 'global';
@import 'editor';
@import 'footer';
Loading

0 comments on commit 2cc09c0

Please sign in to comment.