Skip to content

Commit

Permalink
resolviendo conflicto para rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
CrawKatt committed Mar 8, 2023
1 parent 00ff26b commit e563185
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
\#*#
public_html/
.hugo_build.lock
.idea/
21 changes: 16 additions & 5 deletions themes/droda/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
--bgColorMidDark: #353b43;
--bgColorLightDark: #4f5864;
--bgColorLight: #D2D2D2;
--navbarHoverColor: #111;
--globalScale: 1;

}
Expand Down Expand Up @@ -119,6 +118,22 @@ nav ul {
overflow: hidden;
}

.hover {
--c:linear-gradient(#1482c8 0 0); /* update the color here */

padding-bottom: .15em;
background: var(--c), var(--c);
background-size: .3em .1em;
background-position:50% 100%;
background-repeat: no-repeat;
transition: .3s linear, background-size .3s .2s linear;
}

.hover:hover {
background-size: 50% .1em;
background-position: 10% 100%, 90% 100%;
}

nav li {
display: flex;
align-items: center;
Expand All @@ -132,10 +147,6 @@ nav a {
padding: 1rem 1.5rem;
text-decoration: none;
}

nav li:hover {
background-color: var(--navbarHoverColor);
}

main {
grid-area: main;
Expand Down
4 changes: 2 additions & 2 deletions themes/droda/layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<nav>
<ul>
{{ with .Site.GetPage "home" }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li><a class="hover" href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
{{ range .Site.Sections }}
<li><a href="{{ .Permalink }}">{{ .Title }}</a></li>
<li><a class="hover" href="{{ .Permalink }}">{{ .Title }}</a></li>
{{ end }}
</ul>
</nav>

0 comments on commit e563185

Please sign in to comment.