Skip to content

Commit

Permalink
Gazette: Align quote icon to right when text is right aligned. See #594.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurelfulford committed Feb 15, 2019
1 parent 1220d42 commit 4e68c8c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions gazette/css/blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ p.has-drop-cap:not(:focus)::first-letter {

/* Quote */

.wp-block-quote[style*="text-align:right"]::before {
float: right;
}

.rtl .wp-block-quote[style*="text-align:left"]::before {
float: left;
}

/* Audio */

.wp-block-audio {
Expand Down
10 changes: 10 additions & 0 deletions gazette/css/editor-blocks.css
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,11 @@ p.has-drop-cap:not(:focus)::first-letter {
width: 30px;
}

.wp-block-quote[style*="text-align:right"]:before,
.wp-block-quote[style*="text-align: right"]:before {
float: right;
}

.wp-block-quote .wp-block-quote__citation {
color: #555;
font-family: Lato, sans-serif;
Expand All @@ -318,6 +323,11 @@ p.has-drop-cap:not(:focus)::first-letter {
float: right;
}

.rtl .wp-block-quote[style*="text-align:left"]:before,
.rtl .wp-block-quote[style*="text-align: left"]:before {
float: left;
}


/* Cover */

Expand Down

0 comments on commit 4e68c8c

Please sign in to comment.