modified padding for different screen sizes

This commit is contained in:
jorge 2022-12-02 16:14:31 +01:00
parent 080068bb48
commit cf2d611a09
3 changed files with 20 additions and 9 deletions

View File

@ -8,7 +8,7 @@
"main" "main"
"footer"; "footer";
margin: auto; margin: auto;
padding: 0 3rem; padding: 0 1rem;
max-width: 80em; max-width: 80em;
} }
.site-header { .site-header {
@ -18,6 +18,9 @@
align-items: center; align-items: center;
} }
.secondary { .secondary {
display: flex;
flex-flow: column;
align-items: center;
} }
} }
} }
@ -25,14 +28,14 @@
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
.no-sidebar { .no-sidebar {
.site { .site {
padding: 0 2rem;
} }
.site-header { .site-header {
.main { .main {
border-bottom: 1px solid $color__grey-lighter; border-bottom: 1px solid $color__grey-lighter;
} }
.secondary { .secondary {
display:flex; //justify-content: center;
justify-content: center;
} }
} }
} }
@ -40,6 +43,7 @@
@media screen and (min-width: 80em) { @media screen and (min-width: 80em) {
.no-sidebar { .no-sidebar {
.site { .site {
padding: 0 3rem;
} }
.site-header { .site-header {
.main { .main {

View File

@ -736,7 +736,7 @@ textarea {
grid-template-columns: auto; grid-template-columns: auto;
grid-template-areas: "header" "main" "footer"; grid-template-areas: "header" "main" "footer";
margin: auto; margin: auto;
padding: 0 3rem; padding: 0 1rem;
max-width: 80em; max-width: 80em;
} }
.no-sidebar .site-header .main { .no-sidebar .site-header .main {
@ -744,19 +744,26 @@ textarea {
flex-flow: column; flex-flow: column;
align-items: center; align-items: center;
} }
.no-sidebar .site-header .secondary {
display: flex;
flex-flow: column;
align-items: center;
}
} }
@media screen and (min-width: 48em) { @media screen and (min-width: 48em) {
.no-sidebar .site {
padding: 0 2rem;
}
.no-sidebar .site-header .main { .no-sidebar .site-header .main {
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
} }
.no-sidebar .site-header .secondary {
display: flex;
justify-content: center;
}
} }
@media screen and (min-width: 80em) { @media screen and (min-width: 80em) {
.no-sidebar .site {
padding: 0 3rem;
}
.no-sidebar .site-header .main { .no-sidebar .site-header .main {
flex-flow: row; flex-flow: row;
align-items: center; align-items: center;

File diff suppressed because one or more lines are too long