Skip to content

Commit

Permalink
Merge pull request #4446 from Automattic/fix/seedlet-blocks-overridin…
Browse files Browse the repository at this point in the history
…g-site-title-block-global-styles

Seedlet Blocks: Fix block-level global styling for site title block
  • Loading branch information
jeyip authored Aug 24, 2021
2 parents e8829f4 + 257494b commit c3be92a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 26 deletions.
20 changes: 6 additions & 14 deletions seedlet-blocks/assets/theme.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 2 additions & 9 deletions seedlet-blocks/sass/blocks/_links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
*/
.wp-block-navigation-link {
a {
text-underline-offset: 0.4rem;
:hover{
text-decoration: underline;
text-underline-offset: 0.4rem;
}
}
}
Expand All @@ -15,15 +15,8 @@
*/
.is-root-container, // Editor class hack.
.wp-block-post-content {
a:not(.wp-block-button__link):not([download]) {
color: var(--wp--custom--color--primary);
text-decoration-color: var(--wp--style--color--link);
a {
text-decoration-thickness: 1px;
text-underline-offset: 0.2em;

&:focus,
&:hover {
color: var(--wp--style--color--link);
}
}
}
3 changes: 0 additions & 3 deletions seedlet-blocks/sass/blocks/_site-title.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
a {
text-decoration: underline;
text-decoration-thickness: 2px;
text-decoration-color: var(--wp--custom--color--secondary);
text-underline-offset: 0.13em;
transition: background-size 0.1s ease-out;

&:hover,
&:focus {
text-decoration: none;
color: var(--wp--custom--color--secondary);
background-size: 8px 0px;
}

Expand Down

0 comments on commit c3be92a

Please sign in to comment.