Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

Commit

Permalink
Adjust nav spacing and keep nav menu (blog, product, about) visible o…
Browse files Browse the repository at this point in the history
…n small displays. Hide "learn more" button instead.
  • Loading branch information
willkoehler committed Aug 21, 2014
1 parent ff41a92 commit 808ee69
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
3 changes: 1 addition & 2 deletions _assets/stylesheets/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

.brand img {
height:40px;
margin-right:10px;
margin-top:-2px;
}

Expand All @@ -27,7 +26,7 @@

a {
border:0;
margin:0 0.9em;
margin-right: 1.8em;
display:inline-block;

&:hover {
Expand Down
36 changes: 16 additions & 20 deletions _assets/stylesheets/_responsive.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@media (max-width: 1000px) {
@media (max-width: 900px) {

// hide tagline
.tagline span {
Expand Down Expand Up @@ -82,17 +82,17 @@
}
}

// hide nav (blog, product, about links)
// narrow nav spacing (blog, product, about links)
.site-nav {
nav {
padding-left: 15px;
padding-right: 15px;
}

#navigation {
a {
display:none;
margin-right: 1em;
}

// don't hide brand logo
.brand {
display:inline-block;
}
}
}

Expand Down Expand Up @@ -125,6 +125,14 @@
}
}

@media (max-width: 500px) {
// hide "learn more" button
nav.tagline {
display: none;
}
}


@media (max-width: 400px) {

article {
Expand Down Expand Up @@ -153,18 +161,6 @@
}
}

// move brand logo to the left
.site-nav {
nav {
padding-left: 10px;
}
}

// move product link to the right
nav.tagline {
padding-right: 20px;
}

// reduce margin of post blocks
.index {
margin:0 5%;
Expand Down

0 comments on commit 808ee69

Please sign in to comment.