frontend: refactor $mobileThreshold and container media queries

This commit is contained in:
Alice Gaudon 2020-11-03 20:29:07 +01:00
parent 04f19f5a28
commit f16d63c74f
2 changed files with 19 additions and 7 deletions

View File

@ -28,4 +28,4 @@ $errorText: darken($error, 30%);
$errorColor: desaturate($errorText, 50%);
// Responsivity
$menuLayoutSwitchTreshold: 700px;
$mobileThreshold: 632px;

View File

@ -183,7 +183,7 @@ body > header {
}
}
@media (max-width: $menuLayoutSwitchTreshold) {
@media (max-width: $mobileThreshold) {
flex-direction: row-reverse;
.logo {
@ -246,7 +246,7 @@ body > header {
}
}
@media (min-width: $menuLayoutSwitchTreshold) {
@media (min-width: $mobileThreshold) {
nav ul li {
a, button, .button {
@include tip;
@ -274,7 +274,7 @@ footer {
main {
flex: 1;
padding: 8px;
padding: 8px 0;
button, .button {
@include tip;
@ -649,10 +649,22 @@ button, .button {
text-align: center;
}
.container {
@mixin container {
width: $mobileThreshold;
padding: 0 16px;
max-width: 632px;
margin: 0 auto;
@media (min-width: $mobileThreshold) {
margin: 0 auto;
}
@media (max-width: $mobileThreshold) {
width: 100%;
padding: 0 8px;
}
}
.container {
@include container;
}
.panel {