From 09fbaa06f90ddbd0ec75424e7c0e7130dc32aefb Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Wed, 28 Aug 2019 18:05:41 +0200 Subject: [PATCH] style: add rules for figure tag Co-Authored-by: Igor Milhit --- static/style.css | 47 +++++++++++++++++++++++++++++++++++------------ 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/static/style.css b/static/style.css index 05b37f7..75bcede 100644 --- a/static/style.css +++ b/static/style.css @@ -8,21 +8,10 @@ html, body { font-size: 1.25rem; } -code, .footnotes, .footnote-ref { +code, .footnotes, .footnote-ref, figure p { font-size: 1rem; } -code, pre { - background-color: lightgrey; - border-radius: 5px; - padding: 0.2rem; -} - -pre { - overflow: auto; - max-width: 95vw; -} - /* * ************** * * LAYOUT * @@ -173,3 +162,37 @@ dd { display: flex; padding: 0; } + +/* + * ************** * + * DIVERS * + * ************** * +*/ + +code, pre { + background-color: lightgrey; + border-radius: 5px; + padding: .2rem; +} + +pre { + overflow: auto; + max-width: 95vw; +} + +figure { + background-color: lightgrey; + padding: .4rem; + border-radius: 5px; + margin-right: .4rem; + margin-left: .4rem; +} + +figure img { + width: 100%; +} + +figure p { + text-align: center; + margin: .2rem 0; +}