diff options
author | Marvin Borner | 2021-07-13 19:40:17 +0200 |
---|---|---|
committer | Marvin Borner | 2021-07-13 19:40:17 +0200 |
commit | 08cd951ea8410bc87e316e6c11d34a118437ba8b (patch) | |
tree | f57baaee689ee81b590bb5d01df3591da10cccc7 /presentation/css/layout.scss | |
parent | 1b429c0fc28e5cd8b474ad5a1de1fa6f3d7c2e2a (diff) |
Added colloq summary and final presentation
Diffstat (limited to 'presentation/css/layout.scss')
-rw-r--r-- | presentation/css/layout.scss | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/presentation/css/layout.scss b/presentation/css/layout.scss new file mode 100644 index 0000000..6c4abd5 --- /dev/null +++ b/presentation/css/layout.scss @@ -0,0 +1,69 @@ +/** + * Layout helpers. + */ + +// 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.r-stretch code { + height: 100%; + max-height: 100%; + box-sizing: border-box; +} + +// Text that auto-fits it's container +.reveal .r-fit-text { + display: inline-block; // https://github.com/rikschennink/fitty#performance + white-space: nowrap; +} + +// Stack multiple elements on top of each other +.reveal .r-stack { + display: grid; +} + +.reveal .r-stack > * { + grid-area: 1/1; + margin: auto; +} + +// Horizontal and vertical stacks +.reveal .r-vstack, +.reveal .r-hstack { + display: flex; + + img, video { + min-width: 0; + min-height: 0; + object-fit: contain; + } +} + +.reveal .r-vstack { + flex-direction: column; + align-items: center; + justify-content: center; +} + +.reveal .r-hstack { + flex-direction: row; + align-items: center; + justify-content: center; +} + +// Naming based on tailwindcss +.reveal .items-stretch { align-items: stretch; } +.reveal .items-start { align-items: flex-start; } +.reveal .items-center { align-items: center; } +.reveal .items-end { align-items: flex-end; } + +.reveal .justify-between { justify-content: space-between; } +.reveal .justify-around { justify-content: space-around; } +.reveal .justify-start { justify-content: flex-start; } +.reveal .justify-center { justify-content: center; } +.reveal .justify-end { justify-content: flex-end; } |