_layout.scss 792 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. $side-padding:3em;
  2. body, html{
  3. position: relative;
  4. width: 100%;
  5. height:100%;
  6. font-family: sans-serif;
  7. font-style: normal;
  8. margin:0;
  9. padding:0;
  10. }
  11. body{
  12. overflow:hidden;
  13. }
  14. #root{
  15. display: flex;
  16. flex-direction: column;
  17. width: 100vw;
  18. height:100vh;
  19. %layout-element{
  20. width:100vw;
  21. box-sizing:border-box;
  22. }
  23. header[role="banner"]{
  24. flex: 0 0 auto;
  25. @extend %layout-element;
  26. padding:1em $side-padding 0 $side-padding;
  27. }
  28. section[role="main-content"]{
  29. flex:1 1 auto;
  30. @extend %layout-element;
  31. padding:0 $side-padding 0 $side-padding;
  32. overflow-y: auto;
  33. overflow-x: hidden;
  34. }
  35. footer[role="tools"]{
  36. flex:0 0 auto;
  37. @extend %layout-element;
  38. // padding-bottom: 1em;
  39. // >*{
  40. // padding:0.5em 1em;
  41. // }
  42. }
  43. }