Implementing nav pills (experimental)

pull/4/head
gianmarco 2023-04-04 22:51:00 +02:00
parent 6174648b6f
commit 67aafb1aca
10 changed files with 25 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
static/images/dot-blue.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
static/images/dot-green.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
static/images/dot-red.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -527,6 +527,26 @@ body{
letter-spacing:-.5px;
text-transform:none
}
.site-nav-pill{
position:relative;
z-index:100;
flex-shrink:0;
display:inline-block;
margin-right:-20px;
margin-left:30px;
padding:18px 0;
color:#fff;
font-size:1.7rem;
line-height:1.8rem;
font-weight:700;
letter-spacing:-.5px;
text-transform:none
}
.site-nav-pill img{
display:block;
width:auto;
height:16px
}
.site-nav-logo:hover{
text-decoration:none
}

View File

@ -10,9 +10,13 @@
{{ range $.Site.Menus.main }}
<li class="nav-home" role="menuitem"><a href="{{ .URL }}">{{- .Name -}}</a></li>
{{ end }}
<!--<a class="site-nav-pill" href="/"><img src="/images/dot-red-open.png" alt="{{ $.Site.Title }}" /></a>
<a class="site-nav-pill" href="/"><img src="/images/dot-blue.png" alt="{{ $.Site.Title }}" /></a>
<a class="site-nav-pill" href="/"><img src="/images/dot-green.png" alt="{{ $.Site.Title }}" /></a>
<a class="site-nav-pill" href="/"><img src="/images/dot-yellow.png" alt="{{ $.Site.Title }}" /></a>-->
</ul>
</div>
</div>
</nav>