_layout.scss 861 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. overflow: hidden;
  32. >.wrapper{
  33. padding:0 $side-padding 0 $side-padding;
  34. height:100vh;
  35. overflow-y: auto;
  36. overflow-x: hidden;
  37. }
  38. }
  39. footer[role="tools"]{
  40. flex:0 0 auto;
  41. @extend %layout-element;
  42. // padding-bottom: 1em;
  43. // >*{
  44. // padding:0.5em 1em;
  45. // }
  46. }
  47. }