_layout.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. // define breakpoints media query for each card column number
  23. // $i: 1;
  24. // $colw: $column_width;
  25. // $m: $column_goutiere;
  26. // $bp: $colw + $m;
  27. // @while $bp < 4096px {
  28. // $upbp: $bp + $colw + $m;
  29. // // @media only screen and (min-width: $bp + 1px) and (max-width: $upbp) {
  30. // // width:$bp;
  31. // // }
  32. // breakpoint-#{$i}: ("bp":$bp, "upbp":$upbp);
  33. // // @mixin col_breakpoint_#{$i}() {
  34. // // @media (min-width: $bp + 1px) and (max-width: $upbp) {
  35. // // @content;
  36. // // }
  37. // // }
  38. // $bp: $upbp;
  39. // $i: $i + 1;
  40. // }
  41. // @mixin col-mediaquery($i) {
  42. // @media (min-width: map.get(#{$breakpoint-$i}, "bp") + 1px) and (max-width: map.get(#{$breakpoint-$i}, "upbp")) {
  43. // @content;
  44. // }
  45. // }
  46. @mixin col-mediaquery-min-max($i) {
  47. $bp: ($column_width + $column_goutiere) * $i + 1px;
  48. $upbp: ($column_width + $column_goutiere) * ($i + 1);
  49. @media (min-width: $bp) and (max-width: $upbp) {
  50. @content;
  51. }
  52. }
  53. @mixin col-mediaquery-min($i) {
  54. $bp: ($column_width + $column_goutiere) * $i;
  55. @media (min-width: $bp) {
  56. @content;
  57. }
  58. }
  59. @mixin col-mediaquery-max($i) {
  60. $bp: ($column_width + $column_goutiere) * $i;
  61. @media (max-width: $bp) {
  62. @content;
  63. }
  64. }
  65. // build break points for each multiple of cards row
  66. // cards will always be centered, using all available space
  67. %grided-width{
  68. margin:0 auto;
  69. $m: $column_goutiere;
  70. $colw: $column_width;
  71. $bp: ($colw + $m) * 2;
  72. $i: 2;
  73. @while $bp < 4096px {
  74. $upbp: $bp + $colw + $m;
  75. @if $i == 2 {
  76. @media only screen and (max-width: $bp) {
  77. width:$bp;
  78. }
  79. }@else{
  80. @media only screen and (min-width: $bp + 1px) and (max-width: $upbp) {
  81. width:$bp;
  82. }
  83. }
  84. $bp: $upbp;
  85. $i: $i + 1;
  86. }
  87. // outline:1px blue solid;
  88. // &>*{
  89. // outline:1px red solid;
  90. // }
  91. }
  92. // _ _ _
  93. // | || |___ __ _ __| |___ _ _
  94. // | __ / -_) _` / _` / -_) '_|
  95. // |_||_\___\__,_\__,_\___|_|
  96. header[role="banner"]{
  97. flex:0 0 auto;
  98. background-color: #fff;
  99. // overflow: visible;
  100. // position: fixed;
  101. // z-index: 20;
  102. width:100vw;
  103. // height: $header_height;
  104. .wrapper{
  105. @extend %grided-width;
  106. // box-sizing:border-box;
  107. background-color: #fff;
  108. &:after{
  109. content:"";
  110. clear:both;
  111. display: block;
  112. }
  113. .header-block{
  114. min-height: 15px;
  115. font-size: 0;
  116. &.header-right{
  117. text-align: right;
  118. }
  119. &>*{
  120. display: inline-block;
  121. vertical-align:top;
  122. font-size: $base_font_size;
  123. text-align: left;
  124. }
  125. }
  126. }
  127. }
  128. // __ __ _
  129. // | \/ |__ _(_)_ _
  130. // | |\/| / _` | | ' \
  131. // |_| |_\__,_|_|_||_|
  132. main[role="main"]{
  133. flex:1 1 auto;
  134. overflow-y: auto;
  135. overflow-x: hidden;
  136. >.scroller{
  137. width:100vw;
  138. >.wrapper{
  139. @extend %grided-width;
  140. display: flex;
  141. flex-direction: row-reverse;
  142. #content-left{
  143. flex-basis: $column_width;
  144. flex-shrink: 0;
  145. // width:$column_width*2+$column_goutiere;
  146. >*{
  147. width:100%;
  148. box-sizing: border-box;
  149. padding:0.5em $column_goutiere;
  150. }
  151. }
  152. #content-center{
  153. flex-basis: 110%;
  154. }
  155. }
  156. }
  157. }
  158. // ___ _
  159. // | __|__ ___| |_ ___ _ _
  160. // | _/ _ \/ _ \ _/ -_) '_|
  161. // |_|\___/\___/\__\___|_|
  162. footer[role="contentinfo"]{
  163. >.wrapper{
  164. @extend %grided-width;
  165. }
  166. }