scss: introduce $mobile-width (#60039)
This commit is contained in:
parent
34f18d9b73
commit
1de5bdae20
|
@ -343,6 +343,11 @@ paramètre, la deuxième sa description et la troisième la valeur par défaut.
|
|||
<td><p>Largeur sous laquelle adopter le style "mobile"</p></td>
|
||||
<td><p><var>800px</var></p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><code>$mobile-width</code></p></td>
|
||||
<td><p>Largeur maximale de la page "mobile"</p></td>
|
||||
<td><p><var>null</var></p></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><p><code>$nav-mobile-limit</code></p></td>
|
||||
<td><p>Largeur sous laquelle adopter la navigation "mobile"</p></td>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
$width: 1000px !default;
|
||||
$mobile-limit: 800px !default;
|
||||
$mobile-width: null !default;
|
||||
$very-small-limit: 480px !default;
|
||||
$columns-gutter: 20px !default;
|
||||
$footer-background: #666666 !default;
|
||||
|
@ -45,10 +46,16 @@ div#page main {
|
|||
|
||||
div#header,
|
||||
div#nav,
|
||||
div#footer {
|
||||
div#footer,
|
||||
div#main-content-wrapper {
|
||||
clear: both;
|
||||
max-width: $width;
|
||||
margin: 0 auto;
|
||||
@if ($mobile-width) {
|
||||
@media ($max-mobile-viewport) {
|
||||
max-width: $mobile-width;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
div#header {
|
||||
|
@ -63,8 +70,6 @@ div#header {
|
|||
div#main-content-wrapper {
|
||||
position: relative;
|
||||
z-index: 100;
|
||||
max-width: $width;
|
||||
margin: 0px auto 0px auto;
|
||||
padding: 0;
|
||||
@media screen and ($max-mobile-viewport) {
|
||||
position: static;
|
||||
|
|
Loading…
Reference in New Issue