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

Theme: Add workaround for unsupported CSS4 selectors #111

Merged
merged 4 commits into from
Sep 1, 2022
Prev Previous commit
Next Next commit
Update workaround styles for Gutenberg 14
Co-Authored-By: Kelly Dwan <ryelle@users.noreply.github.com>
  • Loading branch information
iandunn and ryelle committed Sep 1, 2022
commit f30de437a7c66868c56b6117a46bce9a2d346eea
21 changes: 8 additions & 13 deletions source/wp-content/themes/wporg-main-2022/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -238,23 +238,18 @@
*
* Remove this when the above issue is fixed in a stable release.
*/
.wp-block-group[class*="wp-container-"],
.wp-block-columns[class*="wp-container-"],
.wp-block-group[class*="wp-container-"] > *,
.wp-block-columns[class*="wp-container-"] > *,
[class*="wp-container-"] .wp-block-buttons {
body .is-layout-constrained > * {
max-width: var(--wp--style--global--content-size);
margin-left: auto !important;
margin-right: auto !important;
}

.wp-block-group[class*="wp-container-"].entry-content,
.wp-block-group[class*="wp-container-"][class*="is-content-justification-"] > * {
margin-left: unset !important;
margin-right: unset !important;
body .is-layout-constrained > .alignwide {
max-width: var(--wp--style--global--wide-size);
}

#benefits .wp-block-group[class*="wp-container-"],
#community .wp-block-group[class*="wp-container-"],
#editor .wp-block-group[class*="wp-container-"] {
max-width: 520px;
body .is-layout-constrained > .alignfull {
max-width: unset;
margin-left: unset !important;
margin-right: unset !important;
}