aboutsummaryrefslogtreecommitdiff
path: root/frontend/scss
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-12-14 17:24:12 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2025-12-14 17:24:12 +0100
commit8edad5f9aee4625384485ad07180da751858839c (patch)
tree65d2e3a84b3b3ca014d3013b79b98d8ccee24379 /frontend/scss
parent1f8505e3b83d77a9cbed56c1182522efeba1f199 (diff)
feat(frontend): generalize .large class
Diffstat (limited to 'frontend/scss')
-rw-r--r--frontend/scss/general.scss19
1 files changed, 10 insertions, 9 deletions
diff --git a/frontend/scss/general.scss b/frontend/scss/general.scss
index 4df6da0..bab3ada 100644
--- a/frontend/scss/general.scss
+++ b/frontend/scss/general.scss
@@ -114,6 +114,7 @@ blockquote {
}
figure {
+ max-width: 100%;
display: flex;
flex-direction: column;
justify-content: center;
@@ -127,18 +128,18 @@ figure {
img {
max-width: 100%;
display: block;
-
- &.large {
- --max-width: var(--width-deco);
- --width: min(calc(100vw - 4rem), var(--max-width));
- margin-left: max(calc((100% - var(--max-width)) / 2), calc((100% - var(--width)) / 2));
- width: var(--width);
- max-width: var(--max-width);
- max-height: none;
- }
}
}
+.large {
+ --max-width: var(--width-deco);
+ --width: min(calc(100vw - 4rem), var(--max-width));
+ margin-left: max(calc((100% - var(--max-width)) / 2), calc((100% - var(--width)) / 2));
+ width: var(--width);
+ max-width: var(--max-width);
+ max-height: none;
+}
+
figcaption {
font-size: var(--font-size-tiny);