Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/WDSUS-45 WDS Cleanup #1072

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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