Skip to content

Commit

Permalink
Fix post list spacing and nav on tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
johno committed Jul 10, 2015
1 parent f60ed4b commit 364e225
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 31 deletions.
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="mt2 wrap">
<div class="measure">
<a href="{{ site.url }}" class="site-title">{{ site.title }}</a>
<nav class="site-nav right">
<nav class="site-nav">
{% include navigation.html %}
</nav>
<div class="clearfix"></div>
Expand Down
21 changes: 20 additions & 1 deletion _sass/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
}

.site-header nav a {
font-size: 1rem;
font-size: $h6;
color: #666;
}

Expand All @@ -31,3 +31,22 @@
.posts .post a:hover .post-summary {
opacity: 0.88;
}

.site-header {
text-align: center;
}

.site-header .site-title {
float: center;
}

.site-header .site-nav {
text-align: center;
margin-top: 0.666em;
margin-bottom: 1.333em;
}

.social-icons .left, .social-icons .right {
text-align: center;
float: none;
}
30 changes: 4 additions & 26 deletions _sass/_media-queries.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,16 @@
}
}

@media screen and (min-width: $viewport-medium) {
.site-header .site-title {
float: left;
}
}

// TODO FIX ME TO BE MOBILE FIRST
@media screen and (max-width: $viewport-medium) {
blockquote {
margin-left: 1rem;
margin-right: 0;
padding: 0.5em;
}

@media screen and (min-width: $viewport-small) {
.site-header {
text-align: center;
text-align: left;
}

.site-header .site-title {
float: center;
}

.site-header .site-nav {
width: 100%;
float: left;
text-align: center;
margin-top: 0.666em;
margin-bottom: 1.333em;
}

.social-icons .left, .social-icons .right {
text-align: center;
float: none;
.site-header .site-nav {
float: right;
}
}
1 change: 0 additions & 1 deletion _sass/_posts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

.posts .post {
margin-bottom: 0.75em;
padding-bottom: .375em;
border-bottom: thin solid #f3f3f3;
}

Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

<div class="posts">
{% for post in paginator.posts %}
<div class="post">
<div class="post py3">
<p class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</p>
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link"><h3 class="h2 post-title">{{ post.title }}</h3></a>
<a href="{{ post.url | prepend: site.baseurl }}" class="post-link"><h3 class="h1 post-title">{{ post.title }}</h3></a>
<p class="post-summary">
{% if post.summary %}
{{ post.summary }}
Expand Down

0 comments on commit 364e225

Please sign in to comment.