Skip to content

Commit

Permalink
Fix hovering tags in posts (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernatBC committed Feb 13, 2024
1 parent 35bca71 commit b8bee52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
13 changes: 0 additions & 13 deletions assets/styles/components/buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,12 @@
font-size: 0.5em;
list-style-type: none;
display: inline-block;
background: get-light-color('accent-color');
margin-left: 0.2em;
margin-right: 0.2em;
margin-top: 0.6em;
margin-bottom: 0.6em;
}
a {
color: get-light-color('text-over-accent-color');
text-decoration: none !important;
}
}
Expand Down Expand Up @@ -143,17 +141,6 @@ html[data-theme='dark'] {
color: get-dark-color('muted-text-color');
}

.tags {
li {
background: get-dark-color('accent-color');
a {
background-color: get-dark-color('bg-card');
border: 1px solid get-dark-color('muted-text-color');
color: get-dark-color('text-over-accent-color');
}
}
}

.icon-button {
background-color: get-dark-color('muted-text-color');
color: get-dark-color('text-over-accent-color') !important;
Expand Down
12 changes: 6 additions & 6 deletions layouts/partials/misc/tags.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="tags">
<ul style="padding-left: 0;">
{{ range . }}
{{ $url:= printf "tags/%s/" . }}
<li class="rounded"><a href="{{ $url | urlize | relLangURL }}" class="btn, btn-sm">{{ . }}</a></li>
{{ end }}
</ul>
<ul style="padding-left: 0;">
{{ range . }}
{{ $url:= printf "tags/%s/" . }}
<li class="rounded"><a href="{{ $url | urlize | relLangURL }}" class="btn btn-sm btn-info">{{ . }}</a></li>
{{ end }}
</ul>
</div>

0 comments on commit b8bee52

Please sign in to comment.