layout.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. }
  50. html, body{
  51. // position:relative;
  52. // overflow:hidden;
  53. // width:100%;
  54. // height:100%;
  55. }
  56. body{
  57. overflow-y:scroll; top:0;
  58. }
  59. h1, h2, h3, h4, h5, h6{
  60. font-family: inherit;
  61. }
  62. h1{
  63. font-weight: bold;
  64. }
  65. figure {
  66. margin: 0;
  67. }
  68. $rootminwidth : 320px;
  69. /** NIVEAU 0 */
  70. #root{
  71. min-width:$rootminwidth;
  72. .ie8 &{min-width:1024px;}
  73. }
  74. /** NIVEAU 1 */
  75. #container{
  76. margin:0 auto; position:relative;
  77. @include transition(padding-top 0.5s ease-out); // change this
  78. }
  79. /** NIVEAU 2 */
  80. @mixin padded(){ $p:2%; width:100%-2*$p; padding-left:$p; padding-right:$p; }
  81. $header-z-index:1000;
  82. #header{
  83. @media #{$medium-up}{
  84. position:fixed; top:0; margin:0 auto; @include bgc(#fff); min-width:$rootminwidth*0.97;
  85. } //change this
  86. z-index:$header-z-index;
  87. @include padded;
  88. .editmenu-enabled &{ @include mt(30px); }
  89. .admin-menu &{ @include mt(35px); }
  90. }
  91. #utilities{
  92. @media #{$medium-up}{
  93. html.no-touch &{
  94. position:fixed; top:0; margin:0 auto; min-width:$rootminwidth*0.97;
  95. @include mt(60px);
  96. }
  97. html.no-touch .editmenu-enabled &{ @include mt(80px); }
  98. html.no-touch .admin-menu &{ @include mt(85px); }
  99. }
  100. @media #{$medium-only}{
  101. >.region{@include pt(5px); @include pb(5px);}
  102. } //change this
  103. z-index:999;
  104. @include bgc(#fff);
  105. @include padded;
  106. }
  107. #main{@include padded; overflow-x:hidden;}
  108. #footer{@include padded;}
  109. /** NIVEAU 3 */
  110. .js #content-top{}
  111. // .js #content{ overflow-y:hidden; }
  112. // #container, #header-blocks, #center{.transition(width, 0.5s, ease-out); }
  113. // .footer-block .region, .header-block{ @include inlineblock();} change this
  114. /** NIVEAU 4 */
  115. #center{ padding:5px; }
  116. /** Z-INDEX */
  117. #block-feedback-form{z-index:1001;}
  118. #admin-menu{z-index:1002;}
  119. #admin-toolbar{z-index:1003;}