new 'r-stack' helper class for stacking & centering multiple elements

This commit is contained in:
Hakim El Hattab
2020-05-11 10:54:02 +02:00
parent 1288a3280c
commit eeedaa17e1
7 changed files with 122 additions and 12 deletions

View File

@ -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