You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.3KB

  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. align-items: center;
  32. justify-content: center;
  33. }
  34. .reveal .r-hstack {
  35. flex-direction: row;
  36. align-items: center;
  37. justify-content: center;
  38. }
  39. // Naming based on tailwindcss
  40. .reveal .items-stretch { align-items: stretch; }
  41. .reveal .items-start { align-items: flex-start; }
  42. .reveal .items-center { align-items: center; }
  43. .reveal .items-end { align-items: flex-end; }
  44. .reveal .justify-between { justify-content: space-between; }
  45. .reveal .justify-around { justify-content: space-around; }
  46. .reveal .justify-start { justify-content: flex-start; }
  47. .reveal .justify-center { justify-content: center; }
  48. .reveal .justify-end { justify-content: flex-end; }
  49. .scrollable-slide {
  50. overflow-y: auto !important;
  51. }
  52. .fit-picture {
  53. max-width: 100% !important;
  54. max-height: 75vh !important;
  55. }