From 1496f0cf73c9a7fcdf13bb752101278dd3660658 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 25 Feb 2023 20:06:19 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20style:=20set=20style=20for=20fig?= =?UTF-8?q?ure=20&=20figure=20captions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/main.scss | 2 ++ sass/parts/_image.scss | 13 +++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/sass/main.scss b/sass/main.scss index 4a17f4a..00d16d1 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -56,6 +56,7 @@ --secondary-color: rgb(158, 158, 158); --links: #78cfcb; --text-color: #222226; + --text-color-2: #45454b; --quote-color: #355f62; --border-color: rgb(114, 114, 114); --light-border-color: rgba(255, 255, 255, 0.1); @@ -73,6 +74,7 @@ --secondary-color: #696969; --links: #8fdfe5; --text-color: #eae9e9; + --text-color-2: #c7c7c7; --quote-color: #a9c5c7; --code: #ef476f; --border-color: rgb(0, 0, 0); diff --git a/sass/parts/_image.scss b/sass/parts/_image.scss index 6d32413..bc54438 100644 --- a/sass/parts/_image.scss +++ b/sass/parts/_image.scss @@ -6,6 +6,13 @@ figure { height: auto; } +figcaption { + font-family: var(--serif-font); + font-size: 0.72rem; + color: var(--text-color-2); + text-align: center; +} + figure img { max-height: 500px; } @@ -17,12 +24,6 @@ img { height: auto; } -@media screen and (min-width: 600px) { - figure { - padding: 0 40px; - } -} - figure h4 { font-size: 1rem; margin: 0;