diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2024-05-26 15:41:32 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2024-05-26 15:41:56 +0200 |
commit | 32d8ce7c2e66d56ec35896c5a221bc6b5b387d10 (patch) | |
tree | 53bd925a645b808c7827cf70a984c8f7a572c61e /src/styles | |
parent | ef052a07c6c769f334a0954f84ca869c4d362444 (diff) | |
download | sousleciel.lol-32d8ce7c2e66d56ec35896c5a221bc6b5b387d10.tar.gz |
refactor(styles): introduce wrap container selector
Diffstat (limited to 'src/styles')
-rw-r--r-- | src/styles/main.css | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/src/styles/main.css b/src/styles/main.css index 4e25486..2cdb7be 100644 --- a/src/styles/main.css +++ b/src/styles/main.css @@ -103,6 +103,8 @@ img { max-width: 100%; } +/* figure container */ + .figure-container { display: flex; flex-direction: row; @@ -110,6 +112,14 @@ img { margin: 4em 0 4em 0; } +.figure-container:has(+ .figure-container) { + margin-bottom: 1em; +} + +.figure-container + .figure-container { + margin-top: 1em; +} + .figure-container figure { margin: 0; width: 100%; @@ -129,6 +139,31 @@ figcaption { /* title */ header h1 a { - font-size: 13vw; + font-size: 12vw; + } + + /* figure container */ + + .figure-container figure:not(:last-child) { + margin-right: .5em; + } + + /* wrap container */ + + .wrap-container { + flex-wrap: wrap; + } + + .wrap-container:has(+ .wrap-container) { + margin-bottom: 0em; + } + + .wrap-container + .wrap-container { + margin-top: 0em; + } + + .wrap-container figure, + .wrap-container figure:not(:last-child) { + margin: 1em 0 1em 0; } } |