diff options
author | Francesco <tomaselli.fr@gmail.com> | 2024-05-23 13:09:47 +0200 |
---|---|---|
committer | Francesco <tomaselli.fr@gmail.com> | 2024-05-23 13:09:47 +0200 |
commit | 721a958eafc3ab5c921cb3f95ac1538c0e8964a6 (patch) | |
tree | b7e0574be7d3baa39f9f3e2fda8b0c6cb8cdd83a /assets/css/main.css | |
parent | 379c37e43ae51cc6823e00c2ce4a6d8bad241592 (diff) |
Image tags for sizing
Diffstat (limited to 'assets/css/main.css')
-rw-r--r-- | assets/css/main.css | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/assets/css/main.css b/assets/css/main.css index 4c5e085..9c0ca9d 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -337,7 +337,7 @@ footer a { content: counter(h2-counter) "." counter(h3-counter) "." counter(h4-counter) "\00a0\00a0"; } -/* light and dark images */ +/* images */ .dark .img-light { display: none !important; @@ -347,6 +347,41 @@ footer a { display: none !important; } +.img-small div { + display: flex; + align-items: center; + justify-content: center; +} + +.img-small img { + scale: 80%; +} + +.img-full div { + display: flex; + align-items: center; + justify-content: center; +} + +.img-full img { + width: 100vw !important; + max-width: 100vw !important; +} + +.caption-container { + display: flex; + justify-content: center; +} + +figcaption { + color: var(--content-secondary); + padding-left: var(--caption-padding); + padding-right: var(--caption-padding); + font-size: var(--caption-font-size); + margin-top: 1rem; + margin-bottom: 1rem; +} + /* 404 */ .not-found { |