_layout.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. body, html{
  2. position: relative;
  3. width: 100%;
  4. height:100%;
  5. font-family: sans-serif;
  6. font-style: normal;
  7. margin:0;
  8. padding:0;
  9. }
  10. body{
  11. overflow-x:hidden;
  12. }
  13. div.dialog-off-canvas-main-canvas{
  14. width: 100vw;
  15. height:100vh;
  16. display: flex;
  17. flex-direction: column;
  18. }
  19. body.toolbar-horizontal.toolbar-themes.toolbar-no-tabs{
  20. padding-top: 24px!important;
  21. }
  22. // build break points for each multiple of cards row
  23. // cards will always be centered, using all available space
  24. %grided-width{
  25. margin:0 auto;
  26. $m: $column_goutiere;
  27. $colw: $column_width;
  28. $bp: $colw + $m;
  29. @while $bp < 4096px {
  30. $upbp: $bp + $colw + $m;
  31. @media only screen and (min-width: $bp + 1px) and (max-width: $upbp) {
  32. width:$bp;
  33. }
  34. $bp: $upbp;
  35. }
  36. // outline:1px blue solid;
  37. // &>*{
  38. // outline:1px red solid;
  39. // }
  40. }
  41. // _ _ _
  42. // | || |___ __ _ __| |___ _ _
  43. // | __ / -_) _` / _` / -_) '_|
  44. // |_||_\___\__,_\__,_\___|_|
  45. header[role="banner"]{
  46. flex:0 0 auto;
  47. background-color: #fff;
  48. // overflow: visible;
  49. // position: fixed;
  50. // z-index: 20;
  51. width:100vw;
  52. // height: $header_height;
  53. .wrapper{
  54. @extend %grided-width;
  55. // box-sizing:border-box;
  56. background-color: #fff;
  57. &:after{
  58. content:"";
  59. clear:both;
  60. display: block;
  61. }
  62. .header-block{
  63. min-height: 15px;
  64. font-size: 0;
  65. &.header-right{
  66. text-align: right;
  67. }
  68. &>*{
  69. display: inline-block;
  70. vertical-align:top;
  71. font-size: $base_font_size;
  72. text-align: left;
  73. }
  74. }
  75. }
  76. }
  77. // __ __ _
  78. // | \/ |__ _(_)_ _
  79. // | |\/| / _` | | ' \
  80. // |_| |_\__,_|_|_||_|
  81. main[role="main"]{
  82. flex:1 1 auto;
  83. overflow-y: auto;
  84. overflow-x: hidden;
  85. >.scroller{
  86. width:100vw;
  87. >.wrapper{
  88. @extend %grided-width;
  89. display: flex;
  90. flex-direction: row-reverse;
  91. #content-left{
  92. flex-basis: $column_width;
  93. flex-shrink: 0;
  94. // width:$column_width*2+$column_goutiere;
  95. >*{
  96. width:100%;
  97. box-sizing: border-box;
  98. padding:0.5em $column_goutiere;
  99. }
  100. }
  101. #content-center{
  102. flex-basis: 110%;
  103. }
  104. }
  105. }
  106. }