_layout.scss 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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:100%; max-height:100%;
  35. overflow-y: hidden;
  36. overflow-x: hidden;
  37. }
  38. .main-content-layout{
  39. max-height: 100%;
  40. >header,
  41. >section,
  42. >nav{
  43. max-height: 100%;
  44. padding-top:1em;
  45. padding-bottom:1em;
  46. }
  47. >section,
  48. >nav{
  49. overflow-x: hidden;
  50. overflow-y: auto;
  51. }
  52. }
  53. }
  54. footer[role="tools"]{
  55. flex:0 0 auto;
  56. @extend %layout-element;
  57. // padding-bottom: 1em;
  58. // >*{
  59. // padding:0.5em 1em;
  60. // }
  61. }
  62. }