layout.scss 713 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * Layout helpers.
  3. */
  4. // Stretch an element vertically based on available space
  5. .reveal .stretch,
  6. .reveal .r-stretch {
  7. max-width: none;
  8. max-height: none;
  9. }
  10. .reveal pre.stretch code,
  11. .reveal pre.r-stretch code {
  12. height: 100%;
  13. max-height: 100%;
  14. box-sizing: border-box;
  15. }
  16. // Stack multiple elements on top of each other
  17. .reveal .r-stack {
  18. display: grid;
  19. }
  20. .reveal .r-stack > * {
  21. grid-area: 1/1;
  22. margin: auto;
  23. }
  24. // Horizontal and vertical stacks
  25. .reveal .r-vstack,
  26. .reveal .r-hstack {
  27. display: flex;
  28. }
  29. .reveal .r-vstack {
  30. flex-direction: column;
  31. }
  32. .reveal .r-hstack {
  33. flex-direction: row;
  34. }
  35. .reveal .items-center {
  36. align-items: center;
  37. }
  38. .reveal .justify-center {
  39. justify-content: center;
  40. }