aboutsummaryrefslogtreecommitdiff
path: root/styles
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-05-12 21:05:11 +0200
committerlonkaars <loek@pipeframe.xyz>2021-05-12 21:05:11 +0200
commit0eee3ce6321990244ac18e0f7e3b1f901e78279d (patch)
tree62b38249641d897beba7e64dbe901e48f1ad02c8 /styles
parent9422fa9dc4d9ee213fb25a03e5e60d7e99e79458 (diff)
the big class thing
Diffstat (limited to 'styles')
-rw-r--r--styles/presentation.css9
1 files changed, 7 insertions, 2 deletions
diff --git a/styles/presentation.css b/styles/presentation.css
index 3b659c6..0297484 100644
--- a/styles/presentation.css
+++ b/styles/presentation.css
@@ -2,13 +2,18 @@
background-color: var(--c100);
}
+.presentation {
+ --aspect-ratio-h: 16;
+ --aspect-ratio-v: 9;
+}
+
.slideWrapper {
margin: 0 auto;
- max-width: calc(16 / 9 * 100vh);
+ max-width: calc(var(--aspect-ratio-h) / var(--aspect-ratio-v) * 100vh);
}
.slideWrapper .slide {
- padding-top: calc(9 / 16 * 100%);
+ padding-top: calc(var(--aspect-ratio-v) / var(--aspect-ratio-h) * 100%);
background-color: var(--c200);
}