Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Remove the site header
Browse files Browse the repository at this point in the history
  • Loading branch information
seanh committed Feb 17, 2020
1 parent afbc656 commit 18c70dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 64 deletions.
15 changes: 0 additions & 15 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,6 @@
<img width="149" height="149" src="https://github.blog/wp-content/uploads/2008/12/forkme_right_darkblue_121621.png?resize=149%2C149" alt="Fork me on GitHub" data-recalc-dims="1">
</a>
{% endif %}
<header class="site-header">
<nav class="site-header__navbar">
<ul class="site-header__nav-links">
{% for item in site.data.header_links %}
<li class="site-header__nav-item">
{% if item.url == page.url %}
<a class="site-header__nav-link site-header__nav-link--active" href="{{ item.url | relative_url }}" {%- if item.title %}title="{{ item.title }}"{% endif -%}>{{ item.text }}</a>
{% else %}
<a class="site-header__nav-link" href="{{ item.url | relative_url }}" {%- if item.title %}title="{{ item.title }}"{% endif -%}>{{ item.text }}</a>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
</header>

{{ content }}

Expand Down
49 changes: 0 additions & 49 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,55 +77,6 @@ body {
flex-direction: column;
}

.site-header {
padding-left: 20px;
padding-right: 20px;
padding-top: 12px;
padding-bottom: 12px;
background-color: var(--body-color);
color: var(--muted-color);
}

.site-header__navbar {
text-align: center;
overflow-x: auto;
white-space: nowrap;
}

.site-header__nav-links {
list-style: none;
margin-bottom: 0;
}

.site-header__nav-item {
display: inline-block;
vertical-align: bottom;
margin-left: 0;
}

.site-header__nav-item:first-child a {
padding-left: 0;
}

.site-header__nav-item:last-child a {
padding-right: 0;
}

.site-header__nav-link {
color: hsla(0,0%,100%,.75);
text-decoration: none;
border: none;
padding-right: 16px;
line-height: 32px;
transition: color 250ms linear;
font-size: var(--navbar-font-size);
font-weight: var(--navbar-font-weight);
}

.site-header__nav-link--active {
color: white;
}

.content {
flex-shrink: 0;
}
Expand Down

0 comments on commit 18c70dc

Please # to comment.