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

View File

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

File diff suppressed because one or more lines are too long