Skip to content

Commit

Permalink
Swapped site title in for site logo.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjcooper committed Jul 19, 2023
1 parent 03d18b6 commit 5039a6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions parts/site-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<div class="wp-block-group site-header__header" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:group {"gradient":"ucsc-header-gradient","layout":{"type":"constrained"}} -->
<div class="wp-block-group has-ucsc-header-gradient-gradient-background has-background"><!-- wp:columns -->
<div class="wp-block-columns"><!-- wp:column {"verticalAlignment":"center","style":{"spacing":{"padding":{"right":"0"}}}} -->
<div class="wp-block-column is-vertically-aligned-center" style="padding-right:0"><!-- wp:template-part {"slug":"ucsc-logo","theme":"ucsc-2022","area":"uncategorized"} /--></div>
<!-- /wp:column -->
<div class="wp-block-column is-vertically-aligned-center" style="padding-right:0"><!-- wp:site-title /--></div>
<!-- /wp:column -->

<!-- wp:column {"style":{"spacing":{"padding":{"top":"0","right":"0","bottom":"0","left":"0"}}},"layout":{"type":"default"}} -->
<div class="wp-block-column" style="padding-top:0;padding-right:0;padding-bottom:0;padding-left:0"><!-- wp:site-tagline {"style":{"typography":{"textTransform":"uppercase","fontStyle":"normal","fontWeight":"700"}},"textColor":"ucsc-primary-yellow"} /--></div>
<!-- /wp:column --></div>
Expand Down
12 changes: 9 additions & 3 deletions src/scss/theme-regions/_site-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,17 @@
}

////////////////////////////////////////////////////////////////////////////////
// Logo
// Site title
////////////////////////////////////////////////////////////////////////////////

.ucsc__logo a:hover {
transform: none;
.site-header .wp-block-site-title a {
color: var(--wp--preset--color--white);
transition: 0.2s ease;

&:hover,
&:focus-visible {
color: var(--wp--preset--color--ucsc-primary-yellow);
}
}

////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 5039a6d

Please sign in to comment.