aboutsummaryrefslogtreecommitdiff
path: root/css
diff options
context:
space:
mode:
Diffstat (limited to 'css')
-rw-r--r--css/reveal.scss19
1 files changed, 17 insertions, 2 deletions
diff --git a/css/reveal.scss b/css/reveal.scss
index e94f79e..97f1894 100644
--- a/css/reveal.scss
+++ b/css/reveal.scss
@@ -213,17 +213,32 @@ html.reveal-full-page {
position: relative;
}
-.reveal .stretch {
+// Layout helper: Stretch an element vertically based on available space
+.reveal .stretch,
+.reveal .r-stretch {
max-width: none;
max-height: none;
}
-.reveal pre.stretch code {
+.reveal pre.stretch code,
+.reveal pre.r-stretch code {
height: 100%;
max-height: 100%;
box-sizing: border-box;
}
+// Layout helper: Stack multiple elements on top of each other
+.reveal .r-stack {
+ display: grid;
+ justify-content: center;
+ align-items: center;
+}
+
+.reveal .r-stack > * {
+ grid-area: 1/1;
+ margin: auto;
+}
+
/*********************************************
* CONTROLS