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

Commit cd858d6

Browse files
committed
Adjust nave spacing and keep nav menu (blog, product, about) visible on small displays. Hide "learn more" button instead.
1 parent ff41a92 commit cd858d6

File tree

2 files changed

+17
-22
lines changed

2 files changed

+17
-22
lines changed

_assets/stylesheets/_nav.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
.brand img {
1313
height:40px;
14-
margin-right:10px;
1514
margin-top:-2px;
1615
}
1716

@@ -27,7 +26,7 @@
2726

2827
a {
2928
border:0;
30-
margin:0 0.9em;
29+
margin-right: 1.8em;
3130
display:inline-block;
3231

3332
&:hover {

_assets/stylesheets/_responsive.scss

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@media (max-width: 1000px) {
1+
@media (max-width: 900px) {
22

33
// hide tagline
44
.tagline span {
@@ -82,17 +82,17 @@
8282
}
8383
}
8484

85-
// hide nav (blog, product, about links)
85+
// narrow nav spacing (blog, product, about links)
8686
.site-nav {
87+
nav {
88+
padding-left: 15px;
89+
padding-right: 15px;
90+
}
91+
8792
#navigation {
8893
a {
89-
display:none;
94+
margin-right: 1em;
9095
}
91-
92-
// don't hide brand logo
93-
.brand {
94-
display:inline-block;
95-
}
9696
}
9797
}
9898

@@ -125,6 +125,14 @@
125125
}
126126
}
127127

128+
@media (max-width: 500px) {
129+
// hide "learn more" button
130+
nav.tagline {
131+
display: none;
132+
}
133+
}
134+
135+
128136
@media (max-width: 400px) {
129137

130138
article {
@@ -153,18 +161,6 @@
153161
}
154162
}
155163

156-
// move brand logo to the left
157-
.site-nav {
158-
nav {
159-
padding-left: 10px;
160-
}
161-
}
162-
163-
// move product link to the right
164-
nav.tagline {
165-
padding-right: 20px;
166-
}
167-
168164
// reduce margin of post blocks
169165
.index {
170166
margin:0 5%;

0 commit comments

Comments
 (0)