Skip to content

Commit 205fc48

Browse files
authored
Merge pull request #32 from olifre/fix-li-in-nav
Wrap <li> in <ul>, not directly in <nav>.
2 parents 3a3bc89 + f7d0561 commit 205fc48

File tree

2 files changed

+56
-48
lines changed

2 files changed

+56
-48
lines changed

_layouts/default.html

+8-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
<body>
2121
<div id="header">
2222
<nav>
23-
<li class="fork"><a href="{{ site.github.repository_url }}">View On GitHub</a></li>
24-
{% if site.show_downloads %}
25-
<li class="downloads"><a href="{{ site.github.zip_url }}">ZIP</a></li>
26-
<li class="downloads"><a href="{{ site.github.tar_url }}">TAR</a></li>
27-
<li class="title">DOWNLOADS</li>
28-
{% endif %}
23+
<ul>
24+
<li class="fork"><a href="{{ site.github.repository_url }}">View On GitHub</a></li>
25+
{% if site.show_downloads %}
26+
<li class="downloads"><a href="{{ site.github.zip_url }}">ZIP</a></li>
27+
<li class="downloads"><a href="{{ site.github.tar_url }}">TAR</a></li>
28+
<li class="title">DOWNLOADS</li>
29+
{% endif %}
30+
</ul>
2931
</nav>
3032
</div><!-- end header -->
3133

_sass/jekyll-theme-midnight.scss

+48-42
Original file line numberDiff line numberDiff line change
@@ -172,53 +172,59 @@ dt {
172172
background: blue;
173173
margin: 6px auto;
174174

175-
li {
176-
font-family: 'OpenSansLight', "Helvetica Neue", Helvetica, Arial, sans-serif;
177-
font-weight: normal;
178-
list-style: none;
179-
display: inline;
180-
color: white;
181-
line-height: 50px;
182-
text-shadow: 0px 1px 0px rgba(0,0,0,.2);
183-
font-size: 14px;
184-
185-
a {
175+
ul {
176+
list-style-type: none;
177+
margin: 0;
178+
padding: 0;
179+
180+
li {
181+
font-family: 'OpenSansLight', "Helvetica Neue", Helvetica, Arial, sans-serif;
182+
font-weight: normal;
183+
list-style: none;
184+
display: inline;
186185
color: white;
187-
border: 1px solid #5d910b;
188-
background: linear-gradient(#93bd20, #659e10);
189-
border-radius: 2px;
190-
box-shadow: inset 0px 1px 0px rgba(255,255,255,.3), 0px 3px 7px rgba(0,0,0,.7);
191-
192-
background-color: #93bd20;
193-
padding: 10px 12px;
194-
margin-top: 6px;
195-
line-height:14px;
196-
font-size:14px;
197-
display:inline-block;
198-
text-align:center;
199-
200-
&:hover {
201-
background: linear-gradient(#749619, #527f0e);
202-
background-color: #659e10;
203-
border: 1px solid #527f0e;
204-
box-shadow: inset 0px 1px 1px rgba(0,0,0,.2), 0px 1px 0px rgba(0,0,0,.0);
186+
line-height: 50px;
187+
text-shadow: 0px 1px 0px rgba(0,0,0,.2);
188+
font-size: 14px;
189+
190+
a {
191+
color: white;
192+
border: 1px solid #5d910b;
193+
background: linear-gradient(#93bd20, #659e10);
194+
border-radius: 2px;
195+
box-shadow: inset 0px 1px 0px rgba(255,255,255,.3), 0px 3px 7px rgba(0,0,0,.7);
196+
197+
background-color: #93bd20;
198+
padding: 10px 12px;
199+
margin-top: 6px;
200+
line-height:14px;
201+
font-size:14px;
202+
display:inline-block;
203+
text-align:center;
204+
205+
&:hover {
206+
background: linear-gradient(#749619, #527f0e);
207+
background-color: #659e10;
208+
border: 1px solid #527f0e;
209+
box-shadow: inset 0px 1px 1px rgba(0,0,0,.2), 0px 1px 0px rgba(0,0,0,.0);
210+
}
205211
}
206-
}
207212

208-
&.fork {
209-
float: left;
210-
margin-left: 0px;
211-
}
213+
&.fork {
214+
float: left;
215+
margin-left: 0px;
216+
}
212217

213-
&.downloads {
214-
float: right;
215-
margin-left: 6px;
216-
}
218+
&.downloads {
219+
float: right;
220+
margin-left: 6px;
221+
}
217222

218-
&.title {
219-
float: right;
220-
margin-right: 10px;
221-
font-size: 11px;
223+
&.title {
224+
float: right;
225+
margin-right: 10px;
226+
font-size: 11px;
227+
}
222228
}
223229
}
224230
}

0 commit comments

Comments
 (0)