Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap <li> in <ul>, not directly in <nav>. #32

Merged
merged 2 commits into from
Jul 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@
<body>
<div id="header">
<nav>
<li class="fork"><a href="{{ site.github.repository_url }}">View On GitHub</a></li>
{% if site.show_downloads %}
<li class="downloads"><a href="{{ site.github.zip_url }}">ZIP</a></li>
<li class="downloads"><a href="{{ site.github.tar_url }}">TAR</a></li>
<li class="title">DOWNLOADS</li>
{% endif %}
<ul>
<li class="fork"><a href="{{ site.github.repository_url }}">View On GitHub</a></li>
{% if site.show_downloads %}
<li class="downloads"><a href="{{ site.github.zip_url }}">ZIP</a></li>
<li class="downloads"><a href="{{ site.github.tar_url }}">TAR</a></li>
<li class="title">DOWNLOADS</li>
{% endif %}
</ul>
</nav>
</div><!-- end header -->

Expand Down
90 changes: 48 additions & 42 deletions _sass/jekyll-theme-midnight.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,53 +172,59 @@ dt {
background: blue;
margin: 6px auto;

li {
font-family: 'OpenSansLight', "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
list-style: none;
display: inline;
color: white;
line-height: 50px;
text-shadow: 0px 1px 0px rgba(0,0,0,.2);
font-size: 14px;

a {
ul {
list-style-type: none;
margin: 0;
padding: 0;

li {
font-family: 'OpenSansLight', "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
list-style: none;
display: inline;
color: white;
border: 1px solid #5d910b;
background: linear-gradient(#93bd20, #659e10);
border-radius: 2px;
box-shadow: inset 0px 1px 0px rgba(255,255,255,.3), 0px 3px 7px rgba(0,0,0,.7);

background-color: #93bd20;
padding: 10px 12px;
margin-top: 6px;
line-height:14px;
font-size:14px;
display:inline-block;
text-align:center;

&:hover {
background: linear-gradient(#749619, #527f0e);
background-color: #659e10;
border: 1px solid #527f0e;
box-shadow: inset 0px 1px 1px rgba(0,0,0,.2), 0px 1px 0px rgba(0,0,0,.0);
line-height: 50px;
text-shadow: 0px 1px 0px rgba(0,0,0,.2);
font-size: 14px;

a {
color: white;
border: 1px solid #5d910b;
background: linear-gradient(#93bd20, #659e10);
border-radius: 2px;
box-shadow: inset 0px 1px 0px rgba(255,255,255,.3), 0px 3px 7px rgba(0,0,0,.7);

background-color: #93bd20;
padding: 10px 12px;
margin-top: 6px;
line-height:14px;
font-size:14px;
display:inline-block;
text-align:center;

&:hover {
background: linear-gradient(#749619, #527f0e);
background-color: #659e10;
border: 1px solid #527f0e;
box-shadow: inset 0px 1px 1px rgba(0,0,0,.2), 0px 1px 0px rgba(0,0,0,.0);
}
}
}

&.fork {
float: left;
margin-left: 0px;
}
&.fork {
float: left;
margin-left: 0px;
}

&.downloads {
float: right;
margin-left: 6px;
}
&.downloads {
float: right;
margin-left: 6px;
}

&.title {
float: right;
margin-right: 10px;
font-size: 11px;
&.title {
float: right;
margin-right: 10px;
font-size: 11px;
}
}
}
}
Expand Down