Skip to content

Commit

Permalink
Responsiveness tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
roryg committed Jan 21, 2014
1 parent 901bcde commit 94eecff
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 7 deletions.
23 changes: 20 additions & 3 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ table {
#latest-post {
display: none; }

.post {
.post-container {
margin: 0 40px; }

.post-header {
Expand Down Expand Up @@ -363,13 +363,30 @@ table {
/* ============================================================ */
/* Media Queries */
/* ============================================================ */
@media only screen and (max-width: 800px) {
.post-stub-tag {
display: none; } }
@media only screen and (max-width: 600px) {
.site-nav-item {
display: block;
margin: 15px 0; }

.post-stub-title {
display: block; }

.post-stub-date:before {
content: "";
display: block; } }
display: block; }

.post-container,
.post-list {
margin-right: 25px;
margin-left: 25px; } }
@media only screen and (max-width: 400px) {
.post-title {
font-size: 32px; } }
font-size: 32px; }

.post-container,
.post-list {
margin-right: 15px;
margin-left: 15px; } }
Binary file not shown.
23 changes: 22 additions & 1 deletion assets/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ table {

#latest-post { display: none; }

.post { margin: 0 40px; }
.post-container { margin: 0 40px; }

.post-header {
border-bottom: 6px solid $secondary;
Expand Down Expand Up @@ -420,15 +420,36 @@ table {
/* Media Queries */
/* ============================================================ */

@media only screen and (max-width: 800px) {
.post-stub-tag { display: none; }
}

@media only screen and (max-width: 600px) {
.site-nav-item {
display: block;
margin: 15px 0;
}

.post-stub-title { display: block; }

.post-stub-date:before {
content: "";
display: block;
}

.post-container,
.post-list {
margin-right: 25px;
margin-left: 25px;
}
}

@media only screen and (max-width: 400px) {
.post-title { font-size: 32px; }

.post-container,
.post-list {
margin-right: 15px;
margin-left: 15px;
}
}
2 changes: 1 addition & 1 deletion index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div id="latest-post" class="container">
{{#foreach posts}}
{{#if @first}}
<article class="{{post_class}}">
<article class="post-container {{post_class}}">
<header class="post-header">
<h1 class="post-title">{{title}}</h1>

Expand Down
2 changes: 1 addition & 1 deletion page.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="container">
{{#post}}
<article class="{{post_class}}">
<article class="post-container {{post_class}}">
<header class="post-header">
<h1 class="post-title">{{title}}</h1>

Expand Down
2 changes: 1 addition & 1 deletion post.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div class="container">
{{#post}}
<article class="{{post_class}}">
<article class="post-container {{post_class}}">
<header class="post-header">
<h1 class="post-title">{{title}}</h1>

Expand Down

0 comments on commit 94eecff

Please sign in to comment.