Skip to content

Commit

Permalink
Theme: Move the local nav mask to the query title banner.
Browse files Browse the repository at this point in the history
  • Loading branch information
iandunn committed Nov 17, 2021
1 parent 0e25cb4 commit b2ea203
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
%bottom-mask {
mask-image: url('assets/svg/local-nav-mask.svg');
mask-repeat: no-repeat;
mask-position: -200px -1px;
mask-size: cover;

@include break-small {
mask-position-x: -20px;
}
}

// Default/light version.
.local-header {
--bar-text-color: var(--wp--preset--color--white);
Expand All @@ -8,14 +19,7 @@
background-color: var( --bar-background-color );
color: var(--bar-text-color);

mask-image: url('assets/svg/local-nav-mask.svg');
mask-repeat: no-repeat;
mask-position: -200px -1px;
mask-size: cover;

@include break-small {
mask-position-x: -20px;
}
@extend %bottom-mask;

.wp-site-blocks & {
margin-top: 0;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,17 @@ body.news-posts-index .query-title-banner__title-all-posts,
body.search .query-title-banner__title-search-results {
display: block;
}

body.news-front-page,
body.news-posts-index,
body.search,
body.archive:not(.category) {
.local-header {
/* Remove mask so this element blends into `query-title-banner`. */
mask-image: none;
}

.query-title-banner {
@extend %bottom-mask;
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
body.news-front-page {
.local-header {
/* Remove mask so this element blends into `front__latest-release`. */
mask-image: none;
}

.wp-block-home-link__content {
/* Hide because `.front__site-title` will show it instead. */
display: none;
Expand Down
1 change: 0 additions & 1 deletion source/wp-content/themes/wporg-news-2021/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ GNU General Public License for more details.
@import "components/front-page/front-page";
@import "components/front-page/latest-release";
@import "components/front-page/people-of-wordpress";
@import "components/posts-index";
@import "components/categories";
@import "components/404";

Expand Down

0 comments on commit b2ea203

Please sign in to comment.