Skip to content

Commit

Permalink
Update blocks.css
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurorum authored Dec 6, 2018
1 parent c08fb4c commit a404eed
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion libre-2/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ figure[class^="wp-block-"]:not(.aligncenter):not(.alignleft):not(.alignright):no
position: relative;
}

[class^="wp-block-"]:not(.wp-block-gallery) figcaption {
[class^="wp-block-"]:not(.wp-block-gallery) figcaption :not(.aligncenter) {
text-align: left;
}

Expand All @@ -105,11 +105,20 @@ 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 Expand Up @@ -234,6 +243,11 @@ p.has-drop-cap:not(:focus)::first-letter {
width: 100%;
}

/* Image */
.wp-block-image .aligncenter {
text-align: center;
}

/*--------------------------------------------------------------
4.0 Blocks - Formatting
--------------------------------------------------------------*/
Expand Down

0 comments on commit a404eed

Please sign in to comment.