Skip to content

Commit

Permalink
Libre 2: Remove figure left and right margins, plus some confusing st…
Browse files Browse the repository at this point in the history
…yles from the blocks.css. See #404.
  • Loading branch information
laurelfulford committed Jan 1, 2019
1 parent ddee78d commit bbf96a6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
20 changes: 1 addition & 19 deletions libre-2/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
}

Expand All @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion libre-2/editor-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ svg:not(:root) {
}

figure {
margin: 1em 40px;
margin: 1em 0;
}

hr {
Expand Down
2 changes: 1 addition & 1 deletion libre-2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ svg:not(:root) {
}

figure {
margin: 1em 40px;
margin: 1em 0;
}

hr {
Expand Down

0 comments on commit bbf96a6

Please sign in to comment.