Skip to content

Commit

Permalink
make things a lot prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
patdryburgh committed Apr 15, 2019
1 parent bdc62b0 commit f9e1f20
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 16 deletions.
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{% include back-link.html %}
{% else %}
<header class="site-masthead">
{% include menu.html %}
{% if site.title %}
<h1>
{{ site.title }}
Expand All @@ -18,7 +19,6 @@ <h2>
{{ site.description }}
</h2>
{% endif %}
{% include menu.html %}
</header>
{% endif %}

Expand Down
8 changes: 8 additions & 0 deletions _sass/_article.scss
Original file line number Diff line number Diff line change
@@ -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 > * {
margin-left: auto;
margin-right: auto;
Expand Down
2 changes: 1 addition & 1 deletion _sass/_base.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
body {
background: $brand-color;
color: $text-color;
font-family: $font-family;
font-size: 1.3125em;
Expand Down Expand Up @@ -151,7 +152,6 @@ figcaption {
text-align: center;
text-decoration: none;
text-transform: uppercase;
transition: all .125s ease-in-out;
&:hover,
&:focus {
background: lighten($brand-color, 2.5%);
Expand Down
13 changes: 2 additions & 11 deletions _sass/_masthead.scss
Original file line number Diff line number Diff line change
@@ -1,23 +1,14 @@
.site-masthead {
background: $brand-color;
box-sizing: border-box;
min-height: 50vh;
padding: 2em;
padding: 0 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;
margin-top: 1em;
@media (min-width: $on-tablet) {
font-size: 6em;
}
Expand Down
14 changes: 14 additions & 0 deletions _sass/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
}

#search__input {
background: transparent;
border: 0;
font: 1em $font-family;
padding: .5em;
Expand All @@ -17,4 +18,17 @@

#search button[type="submit"] {
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;
}
6 changes: 3 additions & 3 deletions _sass/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
$brand-color: #f2e300;
$brand-color: #fede00;
$highlight: lighten($brand-color, 35%);
$text-color: #0b0404;
$muted-text-color: #64644B;
$font-family: "EB Garamond", Garamond, "Times New Roman", serif;

$on-bigphone: 375px;
$on-tablet: 768px;
$on-laptop: 928px;
$on-desktop: 1024px;
$on-laptop: 960px;
$on-desktop: 1200px;

0 comments on commit f9e1f20

Please sign in to comment.