|
@@ -49,38 +49,6 @@ pre {
|
|
/**
|
|
/**
|
|
* These are default block editor widths in case the theme doesn't provide them.
|
|
* These are default block editor widths in case the theme doesn't provide them.
|
|
*/
|
|
*/
|
|
-.wp-site-blocks {
|
|
|
|
- padding-left: var(--wp--custom--gap--horizontal);
|
|
|
|
- padding-right: var(--wp--custom--gap--horizontal);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.wp-site-blocks .alignfull {
|
|
|
|
- margin-left: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
|
|
|
|
- margin-right: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
|
|
|
|
- width: unset;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.wp-site-blocks .alignfull.wp-block-template-part, .wp-site-blocks .alignfull.wp-block-columns, .wp-site-blocks .alignfull.wp-block-group {
|
|
|
|
- padding-left: var(--wp--custom--gap--horizontal);
|
|
|
|
- padding-right: var(--wp--custom--gap--horizontal);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.is-root-container {
|
|
|
|
- padding-left: var(--wp--custom--gap--horizontal);
|
|
|
|
- padding-right: var(--wp--custom--gap--horizontal);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.is-root-container .wp-block[data-align="full"] {
|
|
|
|
- margin-left: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
|
|
|
|
- margin-right: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
|
|
|
|
- width: unset;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.is-root-container .wp-block[data-align="full"] > .wp-block-group {
|
|
|
|
- padding-left: var(--wp--custom--gap--horizontal);
|
|
|
|
- padding-right: var(--wp--custom--gap--horizontal);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
@media (min-width: 480px) {
|
|
@media (min-width: 480px) {
|
|
.wp-block[data-align="left"],
|
|
.wp-block[data-align="left"],
|
|
.wp-block[data-align="right"],
|
|
.wp-block[data-align="right"],
|
|
@@ -97,6 +65,43 @@ pre {
|
|
margin-left: auto;
|
|
margin-left: auto;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/*
|
|
|
|
+ * Alignment styles - from TT2
|
|
|
|
+ * These rules are temporary, and should not be relied on or
|
|
|
|
+ * modified too heavily by themes or plugins that build on
|
|
|
|
+ * Twenty Twenty-Two. These are meant to be a precursor to
|
|
|
|
+ * a global solution provided by the Block Editor.
|
|
|
|
+ *
|
|
|
|
+ * Relevant issues:
|
|
|
|
+ * https://github.com/WordPress/gutenberg/issues/35607
|
|
|
|
+ * https://github.com/WordPress/gutenberg/issues/35884
|
|
|
|
+ */
|
|
|
|
+.wp-site-blocks,
|
|
|
|
+body > .is-root-container,
|
|
|
|
+.edit-post-visual-editor__post-title-wrapper,
|
|
|
|
+.wp-block-group.alignfull,
|
|
|
|
+.is-root-container .wp-block[data-align="full"] > .wp-block-group {
|
|
|
|
+ padding-left: var(--wp--custom--gap--horizontal);
|
|
|
|
+ padding-right: var(--wp--custom--gap--horizontal);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.wp-site-blocks .alignfull,
|
|
|
|
+.is-root-container .wp-block[data-align="full"] {
|
|
|
|
+ margin-left: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
|
|
|
|
+ margin-right: calc(-1 * var(--wp--custom--gap--horizontal)) !important;
|
|
|
|
+ width: unset;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+/* Blocks inside columns don't have negative margins. */
|
|
|
|
+.wp-site-blocks .wp-block-columns .wp-block-column .alignfull,
|
|
|
|
+.is-root-container .wp-block-columns .wp-block-column .wp-block[data-align="full"],
|
|
|
|
+.wp-site-blocks .alignfull:not(.wp-block-group) .alignfull,
|
|
|
|
+.is-root-container .wp-block[data-align="full"] > *:not(.wp-block-group) .wp-block[data-align="full"] {
|
|
|
|
+ margin-left: auto !important;
|
|
|
|
+ margin-right: auto !important;
|
|
|
|
+ width: inherit;
|
|
|
|
+}
|
|
|
|
+
|
|
.has-primary-background-color {
|
|
.has-primary-background-color {
|
|
background-color: var(--wp--custom--color--primary) !important;
|
|
background-color: var(--wp--custom--color--primary) !important;
|
|
}
|
|
}
|