-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add block spacing and layout to Post Template #49050
Changes from all commits
38b3978
0392956
f9fc8a1
0c32a08
4650b73
7d276e7
b2ff831
e6cccad
15619f5
0edf24b
1a96536
75006ca
e150eea
e178bce
2ad9d02
c16dd86
41f86d6
5cc52b0
51a4cda
d7929b3
6297e85
2e89c29
8adb657
be98e31
5c23ca9
82b6193
bb9695c
3392f83
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
&.wp-block-post-template { | ||
background: none; | ||
} | ||
|
||
// These rules no longer apply but should be kept for backwards compatibility. | ||
&.is-flex-container { | ||
flex-direction: row; | ||
display: flex; | ||
|
@@ -30,3 +30,10 @@ | |
} | ||
} | ||
} | ||
|
||
@media ( max-width: $break-small ) { | ||
// Temporary specificity bump until "wp-container" layout specificity is revisited. | ||
.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid.wp-block-post-template-is-layout-grid { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Going with a block-specific media query for now to copy the current responsive behaviour. This selector is far from ideal though. I wonder if, now that layout rule specificity has been reduced, it would also be possible to reduce specificity for the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This is an interesting thought. I think it shouldn't be too hard to support media/container queries in the future. I've added an item to the style engine project board. |
||
grid-template-columns: 1fr; | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional without curlies: