mirror of
https://github.com/LukasJoswiak/etch.git
synced 2024-05-17 05:28:31 -04:00
add slanted bar to header menu
This commit is contained in:
parent
fafb8148f3
commit
c51225fc22
|
@ -280,3 +280,21 @@ footer#footer {
|
|||
color: #b3b3b3;
|
||||
margin: 40px 0;
|
||||
}
|
||||
|
||||
.header-content {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.header-content:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0%;
|
||||
left: -5%;
|
||||
width: 110%;
|
||||
height: 100%;
|
||||
background-color: #B0E0E6;
|
||||
transform: skewX(-15deg);
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
<header id="banner">
|
||||
<h2><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h2>
|
||||
<nav>
|
||||
<ul>
|
||||
{{ range .Site.Menus.main.ByWeight -}}
|
||||
<li>
|
||||
{{ .Pre }}<a href="{{ .URL }}" title="{{ .Title }}">{{- .Name -}}</a>{{ .Post }}
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="header-content">
|
||||
<h2><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h2>
|
||||
<nav>
|
||||
<ul>
|
||||
{{ range .Site.Menus.main.ByWeight -}}
|
||||
<li>
|
||||
{{ .Pre }}<a href="{{ .URL }}" title="{{ .Title }}">{{- .Name -}}</a>{{ .Post }}
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
|
Loading…
Reference in a new issue