presentazione-papero/css/layout.scss

58 lines
1.2 KiB
SCSS
Raw Normal View History

2020-05-19 10:22:19 +02:00
/**
* 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;
}
// 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;
}
.reveal .r-vstack {
flex-direction: column;
2020-05-20 14:33:52 +02:00
align-items: center;
justify-content: center;
2020-05-19 10:22:19 +02:00
}
.reveal .r-hstack {
flex-direction: row;
align-items: center;
2020-05-20 14:33:52 +02:00
justify-content: center;
2020-05-19 10:22:19 +02:00
}
2020-05-20 14:33:52 +02:00
// 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; }