浏览代码

Update alignment styles (#5475)

* Update alignment styles

* tidy up formatting
Ben Dwyer 3 年之前
父节点
当前提交
7d8fdd5f92
共有 5 个文件被更改,包括 8 次插入11 次删除
  1. 2 5
      archeo/style.css
  2. 1 1
      blockbase/assets/ponyfill.css
  3. 1 1
      blockbase/sass/base/_alignment.scss
  4. 1 1
      livro/style.css
  5. 3 3
      stewart/style.css

+ 2 - 5
archeo/style.css

@@ -125,16 +125,13 @@ body > .is-root-container,
 .wp-site-blocks > .wp-block-cover,
 .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
 .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
-body > .is-root-container > .wp-block-group.has-background,
 body > .is-root-container > .wp-block-cover,
-body
-	> .is-root-container
-	> .wp-block-template-part
-	> .wp-block-group.has-background,
+body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
 body > .is-root-container > .wp-block-template-part > .wp-block-cover,
 .is-root-container .wp-block[data-align='full'] {
 	margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
 	margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
+	max-width: unset;
 	width: unset;
 }
 

+ 1 - 1
blockbase/assets/ponyfill.css

@@ -93,13 +93,13 @@ body > .is-root-container,
 .wp-site-blocks > .wp-block-cover,
 .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
 .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
-body > .is-root-container > .wp-block-group.has-background,
 body > .is-root-container > .wp-block-cover,
 body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
 body > .is-root-container > .wp-block-template-part > .wp-block-cover,
 .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;
+  max-width: unset;
   width: unset;
 }
 

+ 1 - 1
blockbase/sass/base/_alignment.scss

@@ -47,13 +47,13 @@ body > .is-root-container,
 .wp-site-blocks > .wp-block-cover,
 .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
 .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
-body > .is-root-container > .wp-block-group.has-background,
 body > .is-root-container > .wp-block-cover,
 body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
 body > .is-root-container > .wp-block-template-part > .wp-block-cover,
 .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;
+	max-width: unset;
 	width: unset;
 }
 

+ 1 - 1
livro/style.css

@@ -124,8 +124,8 @@ body > .is-root-container > .wp-block-template-part > .wp-block-cover,
 .is-root-container .wp-block[data-align="full"] {
 	margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
 	margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
-	width: unset;
 	max-width: unset;
+	width: unset;
 }
 
 /* Blocks inside columns don't have negative margins. */

+ 3 - 3
stewart/style.css

@@ -3,7 +3,7 @@ Theme Name: Stewart
 Theme URI: https://github.com/Automattic/themes/tree/trunk/stewart
 Author: Automattic
 Author URI: https://automattic.com/
-Description: Stewart is a modern blogging theme with a left sidebar. Its default color scheme is a striking combination of orange and light gray, to give your blog a sophisticated appearance from day one. 
+Description: Stewart is a modern blogging theme with a left sidebar. Its default color scheme is a striking combination of orange and light gray, to give your blog a sophisticated appearance from day one.
 Requires at least: 5.8
 Tested up to: 5.8
 Requires PHP: 5.7
@@ -89,7 +89,7 @@ a:hover,
 .wp-block-file .wp-block-file__button:hover,
 .wp-block-button__link:hover {
 	opacity: 0.90;
-} 
+}
 
 /*
  * Search and File Block button styles.
@@ -147,13 +147,13 @@ body > .is-root-container,
 .wp-site-blocks > .wp-block-cover,
 .wp-site-blocks > .wp-block-template-part > .wp-block-group.has-background,
 .wp-site-blocks > .wp-block-template-part > .wp-block-cover,
-body > .is-root-container > .wp-block-group.has-background,
 body > .is-root-container > .wp-block-cover,
 body > .is-root-container > .wp-block-template-part > .wp-block-group.has-background,
 body > .is-root-container > .wp-block-template-part > .wp-block-cover,
 .is-root-container .wp-block[data-align="full"] {
 	margin-left: calc(-1 * var(--wp--custom--spacing--outer)) !important;
 	margin-right: calc(-1 * var(--wp--custom--spacing--outer)) !important;
+	max-width: unset;
 	width: unset;
 }