make things a lot prettier

This commit is contained in:
Pat Dryburgh
2019-04-15 00:30:16 -04:00
parent bdc62b06a9
commit f9e1f20440
6 changed files with 29 additions and 16 deletions

View File

@@ -8,6 +8,7 @@ layout: default
{% include back-link.html %} {% include back-link.html %}
{% else %} {% else %}
<header class="site-masthead"> <header class="site-masthead">
{% include menu.html %}
{% if site.title %} {% if site.title %}
<h1> <h1>
{{ site.title }} {{ site.title }}
@@ -18,7 +19,6 @@ layout: default
{{ site.description }} {{ site.description }}
</h2> </h2>
{% endif %} {% endif %}
{% include menu.html %}
</header> </header>
{% endif %} {% endif %}

View File

@@ -1,3 +1,11 @@
.post {
background: white;
margin: 2em auto;
max-width: 60rem;
padding: 2em 0;
box-shadow: 12px 18px 24px rgba(darken($brand-color, 50%), .1);
}
.post > * { .post > * {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;

View File

@@ -1,4 +1,5 @@
body { body {
background: $brand-color;
color: $text-color; color: $text-color;
font-family: $font-family; font-family: $font-family;
font-size: 1.3125em; font-size: 1.3125em;
@@ -151,7 +152,6 @@ figcaption {
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
text-transform: uppercase; text-transform: uppercase;
transition: all .125s ease-in-out;
&:hover, &:hover,
&:focus { &:focus {
background: lighten($brand-color, 2.5%); background: lighten($brand-color, 2.5%);

View File

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

View File

@@ -5,6 +5,7 @@
} }
#search__input { #search__input {
background: transparent;
border: 0; border: 0;
font: 1em $font-family; font: 1em $font-family;
padding: .5em; padding: .5em;
@@ -18,3 +19,16 @@
#search button[type="submit"] { #search button[type="submit"] {
display: none; display: none;
} }
::-webkit-input-placeholder {
color: $muted-text-color;
}
::-moz-placeholder {
color: $muted-text-color;
}
:-ms-input-placeholder {
color: $muted-text-color;
}
:-moz-placeholder {
color: $muted-text-color;
}

View File

@@ -1,4 +1,4 @@
$brand-color: #f2e300; $brand-color: #fede00;
$highlight: lighten($brand-color, 35%); $highlight: lighten($brand-color, 35%);
$text-color: #0b0404; $text-color: #0b0404;
$muted-text-color: #64644B; $muted-text-color: #64644B;
@@ -6,5 +6,5 @@ $font-family: "EB Garamond", Garamond, "Times New Roman", serif;
$on-bigphone: 375px; $on-bigphone: 375px;
$on-tablet: 768px; $on-tablet: 768px;
$on-laptop: 928px; $on-laptop: 960px;
$on-desktop: 1024px; $on-desktop: 1200px;