From ff33b4a670362ddb27cdbf42e51b0b2030135452 Mon Sep 17 00:00:00 2001 From: vintro Date: Wed, 17 Jan 2024 23:20:50 -0500 Subject: [PATCH] center images, captions, and tweets w/ clever wrapper --- quartz/styles/custom.scss | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/quartz/styles/custom.scss b/quartz/styles/custom.scss index b0c09dcb9..c642fb892 100644 --- a/quartz/styles/custom.scss +++ b/quartz/styles/custom.scss @@ -1,3 +1,22 @@ @use "./base.scss"; // put your custom CSS here! + +// captions! +img + em { + display: block; + text-align: center; + font-size: 0.9em; +} + +// center all images by default +img { + display: block; + margin-left: auto; + margin-right: auto; +} + +.tweet-wrapper { + display: flex; + justify-content: center; +}