improve layout

This commit is contained in:
Pat Dryburgh
2018-08-25 10:31:29 -07:00
parent 65f1e7d262
commit 00a6f6d883
9 changed files with 28 additions and 9 deletions

View File

@ -5,6 +5,11 @@ body {
line-height: 1.5;
}
h1 {
font-size: 3em;
margin: .5em auto;
}
h2 {
font-size: 2em;
margin: 1em auto;

View File

@ -2,18 +2,22 @@
background: $brand-color;
box-sizing: border-box;
min-height: 50vh;
padding: 8em 2em;
padding: 2em;
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
@media screen and (min-width: $on-laptop) {
padding: 6em 2em;
}
}
.site-masthead h1 {
font-size: 3em;
margin-bottom: 0;
margin-top: 0;
@media (min-width: $on-tablet) {
font-size: 6em;
}

View File

@ -1,5 +1,5 @@
.site-navigation {
margin-top: 4rem;
margin-top: 2rem;
}
.site-navigation ul {

View File

@ -29,6 +29,11 @@
@media (min-width: $on-tablet) {
padding: .25em 0;
}
h1 {
font-size: 1em;
margin-bottom: 0;
margin-top: 0;
}
}
.post-link__title + .post-link__excerpt {
@ -41,9 +46,11 @@
display: flex;
flex-direction: row;
justify-content: space-between;
* > {
text-align: center;
> * {
flex-grow: 1;
flex-basis: 0;
padding: 1em 0;
}
a {
text-decoration: none;