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

TT1 blocks: moved block CSS to theme.json #306

Merged
merged 2 commits into from
Jul 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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