_layout.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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 + 1px;
  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. $bp: $colw + $m;
  73. $i: 1;
  74. @while $bp < 4096px {
  75. $upbp: $bp + $colw + $m;
  76. @if $i == 1 {
  77. @media only screen and (max-width: $bp) {
  78. width:$bp;
  79. }
  80. }@else{
  81. @media only screen and (min-width: $bp + 1px) and (max-width: $upbp) {
  82. width:$bp;
  83. }
  84. }
  85. $bp: $upbp;
  86. $i: $i + 1;
  87. }
  88. // outline:1px blue solid;
  89. // &>*{
  90. // outline:1px red solid;
  91. // }
  92. }
  93. // _ _ _
  94. // | || |___ __ _ __| |___ _ _
  95. // | __ / -_) _` / _` / -_) '_|
  96. // |_||_\___\__,_\__,_\___|_|
  97. header[role="banner"]{
  98. flex:0 0 auto;
  99. background-color: #fff;
  100. // overflow: visible;
  101. // position: fixed;
  102. // z-index: 20;
  103. width:100vw;
  104. // height: $header_height;
  105. >.wrapper{
  106. @extend %grided-width;
  107. // box-sizing:border-box;
  108. background-color: #fff;
  109. &:after{
  110. content:"";
  111. clear:both;
  112. display: block;
  113. }
  114. .header-block{
  115. min-height: 15px;
  116. font-size: 0;
  117. &>*{
  118. font-size: $base_font_size;
  119. }
  120. &.header-right{
  121. text-align: right;
  122. }
  123. .header-block-wrapper{
  124. &>*{
  125. display: inline-block;
  126. vertical-align:top;
  127. text-align: left;
  128. }
  129. }
  130. input#header-block-right-toggle{display: none;}
  131. label[for="header-block-right-toggle"]{display:none;}
  132. @include col-mediaquery-max(3){
  133. &.header-right{
  134. label[for="header-block-right-toggle"]{
  135. display:block;
  136. }
  137. .header-block-wrapper{
  138. position: absolute;
  139. right:0;
  140. background-color: green;
  141. transform: translateX(150px);
  142. transition: transform 0.5s ease-in-out;
  143. >*{
  144. display: block;
  145. }
  146. }
  147. input#header-block-right-toggle:checked ~ div.header-block-wrapper {
  148. transform: translateX(1px);
  149. }
  150. }
  151. }
  152. }
  153. }
  154. }
  155. // __ __ _
  156. // | \/ |__ _(_)_ _
  157. // | |\/| / _` | | ' \
  158. // |_| |_\__,_|_|_||_|
  159. main[role="main"]{
  160. flex:1 1 auto;
  161. overflow-y: auto;
  162. overflow-x: hidden;
  163. >.scroller{
  164. width:100vw;
  165. >.wrapper{
  166. @extend %grided-width;
  167. display: flex;
  168. flex-direction: row-reverse;
  169. @include col-mediaquery-max(2){
  170. display: block;
  171. }
  172. #content-left{
  173. flex-basis: $column_width;
  174. flex-shrink: 0;
  175. // width:$column_width*2+$column_goutiere;
  176. >*{
  177. width:100%;
  178. box-sizing: border-box;
  179. padding:0.5em $column_goutiere;
  180. }
  181. @include col-mediaquery-max(2){
  182. padding-right: $column_goutiere;
  183. }
  184. }
  185. #content-center{
  186. flex-basis: 110%;
  187. }
  188. }
  189. }
  190. }
  191. // ___ _
  192. // | __|__ ___| |_ ___ _ _
  193. // | _/ _ \/ _ \ _/ -_) '_|
  194. // |_|\___/\___/\__\___|_|
  195. footer[role="contentinfo"]{
  196. >.wrapper{
  197. @extend %grided-width;
  198. }
  199. }