Skip to content

Commit

Permalink
Merge pull request #306 from WordPress/tt1-blocks-css
Browse files Browse the repository at this point in the history
TT1 blocks: moved block CSS to theme.json
  • Loading branch information
carolinan authored Jul 6, 2022
2 parents 13ccf7b + 1e1d642 commit 909afba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
17 changes: 0 additions & 17 deletions tt1-blocks/assets/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -192,27 +192,10 @@ hr.is-style-twentytwentyone-separator-thick,
width: 100%;
}

/*--------------------------------------------------------------
# Site Tagline
--------------------------------------------------------------*/

.wp-block-site-tagline {
margin-top: 0;
margin-bottom: 0;
}

/*--------------------------------------------------------------
# Site Title
--------------------------------------------------------------*/

h1.wp-block-site-title a:not(:hover):not(:focus):not(:active) {
text-decoration: none;
}

/*--------------------------------------------------------------
# Single view Post Title
--------------------------------------------------------------*/

h1.wp-block-post-title {
font-weight: var(--wp--custom--font-weight--light);
}
2 changes: 1 addition & 1 deletion tt1-blocks/block-templates/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="wp-block-group">
<!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group">
<!-- wp:post-title {"level":1,"align":"wide"} /-->
<!-- wp:post-title {"level":1,"align":"wide","style":{"typography":{"fontWeight":"300"}}} /-->

<!-- wp:separator {"align":"wide","className":"is-style-twentytwentyone-separator-thick"} -->
<hr class="wp-block-separator alignwide is-style-twentytwentyone-separator-thick"/>
Expand Down
8 changes: 8 additions & 0 deletions tt1-blocks/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,14 @@
"width": "var(--wp--custom--border--width)"
}
},
"core/site-tagline": {
"spacing": {
"margin": {
"top": "0",
"bottom": "0"
}
}
},
"core/site-title": {
"typography": {
"fontSize": "var(--wp--preset--font-size--large)",
Expand Down

0 comments on commit 909afba

Please sign in to comment.