_layout.scss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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:33px;
  116. min-height: $min-height;
  117. font-size: 0;
  118. &>*{
  119. font-size: $base_font_size;
  120. }
  121. &.header-right{
  122. text-align: right;
  123. }
  124. .header-block-wrapper{
  125. &>*{
  126. display: inline-block;
  127. vertical-align:top;
  128. text-align: left;
  129. }
  130. }
  131. input#header-block-right-toggle{display: none;}
  132. label[for="header-block-right-toggle"]{display:none;}
  133. @include col-mediaquery-max(3){
  134. &.header-left{ width: 75%; }
  135. &.header-right{
  136. width: 23%;
  137. label[for="header-block-right-toggle"]{
  138. display:block;
  139. }
  140. // default position (hidden, translated right)
  141. .header-block-wrapper{
  142. z-index: 10;
  143. position: absolute;
  144. top: $min-height;
  145. $w: 300px;
  146. width: $w;
  147. right: - $w - 150px;
  148. box-sizing: border-box;
  149. // transform: translateX(150px);
  150. transition: right 0.5s ease-in-out;
  151. >*.block, >div#user-tools{
  152. display: block;
  153. padding:0 0 0.5em 0!important;
  154. margin:0 0 0.5em 0!important;
  155. text-align: right;
  156. border-left: none!important;
  157. border-right: none!important;
  158. &:not(:last-child){
  159. border-bottom: 1px solid #ccc!important;
  160. }
  161. }
  162. }
  163. // input checked, wrapper visible
  164. input#header-block-right-toggle:checked ~ div.header-block-wrapper {
  165. // transform: translateX(1px);
  166. right:1px;
  167. }
  168. }
  169. }
  170. }
  171. }
  172. }
  173. // __ __ _
  174. // | \/ |__ _(_)_ _
  175. // | |\/| / _` | | ' \
  176. // |_| |_\__,_|_|_||_|
  177. main[role="main"]{
  178. flex:1 1 auto;
  179. overflow-y: auto;
  180. overflow-x: hidden;
  181. >.scroller{
  182. width:100vw;
  183. >.wrapper{
  184. @extend %grided-width;
  185. display: flex;
  186. flex-direction: row-reverse;
  187. @include col-mediaquery-max(2){
  188. display: block;
  189. }
  190. #content-left{
  191. flex-basis: $column_width;
  192. flex-shrink: 0;
  193. // width:$column_width*2+$column_goutiere;
  194. >*{
  195. width:100%;
  196. box-sizing: border-box;
  197. padding:0.5em $column_goutiere;
  198. }
  199. @include col-mediaquery-max(2){
  200. padding-right: $column_goutiere;
  201. }
  202. }
  203. #content-center{
  204. flex-basis: 110%;
  205. }
  206. }
  207. }
  208. }
  209. // ___ _
  210. // | __|__ ___| |_ ___ _ _
  211. // | _/ _ \/ _ \ _/ -_) '_|
  212. // |_|\___/\___/\__\___|_|
  213. footer[role="contentinfo"]{
  214. >.wrapper{
  215. @extend %grided-width;
  216. }
  217. }