浏览代码

Libre 2: Remove figure left and right margins, plus some confusing styles from the blocks.css. See #404.

Laurel Fulford 6 年之前
父节点
当前提交
bbf96a6e9e
共有 3 个文件被更改,包括 3 次插入21 次删除
  1. 1 19
      libre-2/css/blocks.css
  2. 1 1
      libre-2/editor-style.css
  3. 1 1
      libre-2/style.css

+ 1 - 19
libre-2/css/blocks.css

@@ -73,15 +73,6 @@ Description: Used to style Gutenberg Blocks.
 2.0 General Block Styles
 --------------------------------------------------------------*/
 
-/* Figures */
-
-figure[class^="wp-block-"]:not(.aligncenter):not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull),
-[class^="wp-block-"]:not(.aligncenter):not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) figure,
-[class^="wp-block-"] figure:not(.aligncenter):not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) {
-	margin-left: 0;
-	margin-right: 0;
-}
-
 /* Captions */
 
 [class^="wp-block-"] figcaption {
@@ -91,7 +82,7 @@ figure[class^="wp-block-"]:not(.aligncenter):not(.alignleft):not(.alignright):no
 	position: relative;
 }
 
-[class^="wp-block-"]:not(.wp-block-gallery) figcaption :not(.aligncenter) {
+[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
 	text-align: left;
 }
 
@@ -105,20 +96,11 @@ figure[class^="wp-block-"]:not(.aligncenter):not(.alignleft):not(.alignright):no
 	width: 25%;
 }
 
-[class^="wp-block-"]:not(.wp-block-gallery) .aligncenter figcaption::after {
-        margin-right: auto;
-        margin-left: auto;
-}
-
 [class^="wp-block-"].alignfull:not(.wp-block-gallery) figcaption {
 	padding-left: 2vw;
 	padding-right: 2vw;
 }
 
-[class^="wp-block-"]:not(.wp-block-gallery) .aligncenter figcaption {
-        text-align: center;
-}
-
 .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption {
 	text-align: right;
 }

+ 1 - 1
libre-2/editor-style.css

@@ -63,7 +63,7 @@ svg:not(:root) {
 }
 
 figure {
-	margin: 1em 40px;
+	margin: 1em 0;
 }
 
 hr {

+ 1 - 1
libre-2/style.css

@@ -152,7 +152,7 @@ svg:not(:root) {
 }
 
 figure {
-	margin: 1em 40px;
+	margin: 1em 0;
 }
 
 hr {