layout.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. /** RESPONSIVE break points */
  2. // @max-480 : ~"screen and (max-width: 479px)";
  3. // @min-480 : ~"screen and (min-width: 480px)";
  4. // @480-768 : ~"screen and (min-width: 480px) and (max-width: 767px)";
  5. // @max-768 : ~"screen and (max-width: 767px)";
  6. // @min-768 : ~"screen and (min-width: 768px)";
  7. // @768-980 : ~"screen and (min-width: 768px) and (max-width: 979px)";
  8. // @max-980 : ~"screen and (max-width: 979px)";
  9. // @min-980 : ~"screen and (min-width: 980px)";
  10. // @980-1200 : ~"screen and (min-width: 980px) and (max-width: 1199px)";
  11. // @max-1200 : ~"screen and (max-width: 1199px)";
  12. // @min-1200 : ~"screen and (min-width: 1200px)";
  13. // change this
  14. // Here we define the breakpoints which will become the upper border for each media size.
  15. // The function em-calc() calculates the em-value from a px-value.
  16. $small-breakpoint: em-calc(480) !default;
  17. $medium-breakpoint: em-calc(768) !default;
  18. $large-breakpoint: em-calc(980) !default;
  19. $xlarge-breakpoint: em-calc(1200) !default;
  20. $small-range: (0, $small-breakpoint) !default; /* 0, 480px */
  21. $medium-range: ($small-breakpoint + em-calc(1), $medium-breakpoint) !default; /* 481px, 768px */
  22. $large-range: ($medium-breakpoint + em-calc(1), $large-breakpoint) !default; /* 769px, 980px */
  23. $xlarge-range: ($large-breakpoint + em-calc(1), $xlarge-breakpoint) !default; /* 981px, 1200px */
  24. $xxlarge-range: ($xlarge-breakpoint + em-calc(1), em-calc(99999999)) !default; /* 1201px, ... */
  25. // Media Queries
  26. $screen: "only screen" !default;
  27. $landscape: "#{$screen} and (orientation: landscape)" !default;
  28. $portrait: "#{$screen} and (orientation: portrait)" !default;
  29. $small-up: $screen !default;
  30. $small-only: "#{$screen} and (max-width: #{upper-bound($small-range)})" !default;
  31. $medium-up: "#{$screen} and (min-width:#{lower-bound($medium-range)})" !default;
  32. $medium-only: "#{$screen} and (min-width:#{lower-bound($medium-range)}) and (max-width:#{upper-bound($medium-range)})" !default;
  33. $large-up: "#{$screen} and (min-width:#{lower-bound($large-range)})" !default;
  34. $large-only: "#{$screen} and (min-width:#{lower-bound($large-range)}) and (max-width:#{upper-bound($large-range)})" !default;
  35. $xlarge-up: "#{$screen} and (min-width:#{lower-bound($xlarge-range)})" !default;
  36. $xlarge-only: "#{$screen} and (min-width:#{lower-bound($xlarge-range)}) and (max-width:#{upper-bound($xlarge-range)})" !default;
  37. $xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})" !default;
  38. $xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})" !default;
  39. $retina: (
  40. "#{$screen} and (-webkit-min-device-pixel-ratio: 2)",
  41. "#{$screen} and (min--moz-device-pixel-ratio: 2)",
  42. "#{$screen} and (-o-min-device-pixel-ratio: 2/1)",
  43. "#{$screen} and (min-device-pixel-ratio: 2)",
  44. "#{$screen} and (min-resolution: 192dpi)",
  45. "#{$screen} and (min-resolution: 2dppx)"
  46. );
  47. *{
  48. box-sizing: content-box;
  49. &:before, &:after{
  50. box-sizing: content-box;
  51. }
  52. }
  53. html, body{
  54. // position:relative;
  55. // overflow:hidden;
  56. // width:100%;
  57. // height:100%;
  58. }
  59. body{
  60. overflow-y:scroll; top:0;
  61. }
  62. h1, h2, h3, h4, h5, h6{
  63. font-family: inherit;
  64. }
  65. h1{
  66. font-weight: bold;
  67. }
  68. figure {
  69. margin: 0;
  70. }
  71. input[type="checkbox"] + label{
  72. margin:0;
  73. }
  74. p{
  75. font-family: inherit;
  76. font-weight: inherit;
  77. font-size: inherit;
  78. line-height: inherit;
  79. margin-bottom: inherit;
  80. }
  81. a{
  82. font-size: inherit;
  83. }
  84. .column, .columns {
  85. padding: inherit;
  86. float: inherit;
  87. }
  88. $rootminwidth : 320px;
  89. /** NIVEAU 0 */
  90. #root{
  91. min-width:$rootminwidth;
  92. .ie8 &{min-width:1024px;}
  93. }
  94. /** NIVEAU 1 */
  95. #container{
  96. margin:0 auto; position:relative;
  97. @include transition(padding-top 0.5s ease-out); // change this
  98. }
  99. /** NIVEAU 2 */
  100. @mixin padded(){ $p:2%; width:100%-2*$p; padding-left:$p; padding-right:$p; }
  101. $header-z-index:1000;
  102. #header{
  103. @media #{$medium-up}{
  104. position:fixed; top:0; margin:0 auto; @include bgc(#fff); min-width:$rootminwidth*0.97;
  105. } //change this
  106. z-index:$header-z-index;
  107. @include padded;
  108. .editmenu-enabled &{ @include mt(30px); }
  109. .admin-menu &{ @include mt(35px); }
  110. }
  111. #utilities{
  112. @media #{$medium-up}{
  113. html.no-touch &{
  114. position:fixed; top:0; margin:0 auto; min-width:$rootminwidth*0.97;
  115. @include mt(60px);
  116. }
  117. html.no-touch .editmenu-enabled &{ @include mt(80px); }
  118. html.no-touch .admin-menu &{ @include mt(85px); }
  119. }
  120. @media #{$small-only}{
  121. >.region{@include pt(5px); @include pb(5px);}
  122. } //change this
  123. z-index:999;
  124. @include bgc(#fff);
  125. @include padded;
  126. }
  127. #main{@include padded; overflow-x:hidden;}
  128. #footer{@include padded;}
  129. /** NIVEAU 3 */
  130. .js #content-top{}
  131. // .js #content{ overflow-y:hidden; }
  132. // #container, #header-blocks, #center{.transition(width, 0.5s, ease-out); }
  133. // .footer-block .region, .header-block{ @include inlineblock();} change this
  134. /** NIVEAU 4 */
  135. #center{ padding:5px; }
  136. /** Z-INDEX */
  137. #block-feedback-form{z-index:1001;}
  138. #admin-menu{z-index:1002;}
  139. #admin-toolbar{z-index:1003;}