feat(layout): center header elements on mobile

This commit is contained in:
Rafael Bardini 2021-06-20 22:37:59 +02:00
parent 7b99852f5f
commit 57c0b460e7
2 changed files with 26 additions and 6 deletions

View File

@ -154,6 +154,7 @@ svg {
grid-column: full;
grid-template-columns: inherit;
padding: 4em 0;
text-align: center;
}
.masthead > *,
@ -163,9 +164,8 @@ section {
.masthead > img {
border-radius: 50%;
grid-column: side;
grid-row: span 2;
max-width: 100%;
margin: 0 auto;
max-width: 12em;
}
article > * + *,
@ -225,11 +225,21 @@ blockquote > * + * {
margin-bottom: inherit;
}
.masthead {
text-align: inherit;
}
.masthead > *,
section {
grid-column: content;
}
.masthead img {
grid-column: side;
grid-row: span 2;
max-width: 100%;
}
section {
display: contents;
}

View File

@ -170,6 +170,7 @@ svg {
grid-column: full;
grid-template-columns: inherit;
padding: 4em 0;
text-align: center;
}
.masthead > *,
@ -179,9 +180,8 @@ section {
.masthead > img {
border-radius: 50%;
grid-column: side;
grid-row: span 2;
max-width: 100%;
margin: 0 auto;
max-width: 12em;
}
article > * + *,
@ -241,11 +241,21 @@ blockquote > * + * {
margin-bottom: inherit;
}
.masthead {
text-align: inherit;
}
.masthead > *,
section {
grid-column: content;
}
.masthead img {
grid-column: side;
grid-row: span 2;
max-width: 100%;
}
section {
display: contents;
}