From dea1a5e7bb19728e39682e8e4a499aedbd16966e Mon Sep 17 00:00:00 2001 From: Alexander Agnarson Date: Tue, 24 Mar 2020 14:07:31 +0100 Subject: [PATCH] Gutenberg css fixes --- style.css | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/style.css b/style.css index c7bf7e8..3245b82 100644 --- a/style.css +++ b/style.css @@ -246,7 +246,7 @@ input, textarea, button, select, label { font-family: inherit; } .entry ol ul ol li { list-style: decimal; } .entry dt { font-weight: 600;} .entry address { margin-bottom: 1em; } -.entry blockquote { position: relative; color: #777; font-style: italic; margin: 0 0 20px 0; padding-left: 50px; } +.entry blockquote { position: relative; font-style: italic; margin: 0 0 20px 0; padding-left: 50px; } .entry blockquote p { margin-bottom: 0.75em; } .entry blockquote:before { content: "\f10d"; color: #ccc; font-size: 32px; font-style: normal; font-family: "Font Awesome 5 Free"; font-weight: 900; text-align: center; position: absolute; left: 0; top: 0; } .entry blockquote.twitter-tweet:before { content: "\f099"; } @@ -330,6 +330,23 @@ h1, h2, h3, h4, h5, h6 { color: #222; font-weight: 600; -ms-word-wrap: break-wor .heading i { font-size: 22px; margin-right: 6px; } +/* ------------------------------------------------------------------------- * + * Gutenberg +/* ------------------------------------------------------------------------- */ +.entry .wp-block-image figcaption, +.entry .wp-block-audio figcaption, +.entry .wp-block-embed figcaption { font-size: 14px; text-align: center; } +.entry .wp-block-gallery { padding: 0; margin-left: 0; } +.entry .wp-block-gallery .blocks-gallery-grid { margin: 0; padding: 0; } +.entry .wp-block-gallery .blocks-gallery-item figcaption { box-sizing: border-box; } +.entry .wp-block-quote { margin-bottom: 20px; } +.entry .wp-block-quote.is-large { padding-left: 50px; } +.entry .wp-block-pullquote.alignleft { margin-right: 2em; } +.entry .wp-block-pullquote.alignright { margin-left: 2em; } +.entry .wp-block-pullquote blockquote { padding-left: 50px; text-align: left; } +.entry .wp-block-pullquote blockquote p { line-height: 1.4em; } + + /* ------------------------------------------------------------------------- * * Base Structure /* ------------------------------------------------------------------------- */