--bgColorBlue: #1b6694;
--bgColorSalamandra: rgb(236, 162, 143);
--globalScale: 1;
-
+ --navLinkColor: linear-gradient(#1482c8 0 0);
}
h1 {
overflow: auto;
}
-aside .item {
+aside > div, li {
color: var(--bgColorLight);
display: flex;
flex-flow: column nowrap;
overflow: hidden;
}
-.hover {
- --c:linear-gradient(#1482c8 0 0); /* update the color here */
-
+.nav-items {
padding-bottom: .15em;
- background: var(--c), var(--c);
+ background: var(--navLinkColor), var(--navLinkColor);
background-size: .3em .1em;
background-position:50% 100%;
background-repeat: no-repeat;
transition: .3s linear, background-size .3s .2s linear;
}
-.hover:hover {
+.nav-items:hover {
background-size: 50% .1em;
background-position: 10% 100%, 90% 100%;
}
}
aside {
- display: none;
+ display: none !important;
}
nav button, aside li a {
{{ "<!-- Bloque parcial para el aside -->" | safeHTML }}
<aside>
{{ range .Site.Menus.main }}
- <div class="item">
+ <div>
{{ .Pre }}<a href="{{ .URL }}" title="{{ .Identifier }}" target="_blank">{{ .Name }}</a>
</div>
{{ end }}
{{ range .Site.Sections }}
- <li class="item"><a class="hover" href="{{ .Permalink }}">{{ .Title }}</a></li>
+ <li><a class="nav-items" href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</aside>
{{ "<!-- Partial block for navbar -->" | safeHTML }}
<nav>
{{ with .Site.GetPage "home" }}
- <div><img src="{{ .Params.homeIcon | absURL }}" alt=""><a class="hover" href="{{ .Permalink }}">{{ .Title }}</a></div>
+ <div><img src="{{ .Params.homeIcon | absURL }}" alt=""><a class="nav-items" href="{{ .Permalink }}">{{ .Title }}</a></div>
{{ end }}
<ul>
{{ range .Site.Sections }}
- <li><a class="hover" href="{{ .Permalink }}">{{ .Title }}</a></li>
+ <li><a class="nav-items" href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
<button data-visible="false"></button>