feat: update pill style
This commit is contained in:
parent
f576d237d7
commit
da1035826f
2 changed files with 8 additions and 2 deletions
|
@ -1,11 +1,17 @@
|
|||
.pill {
|
||||
background-color: var(--color-bg-soft);
|
||||
border-radius: 0.5rem;
|
||||
border-radius: 1rem;
|
||||
transition: transform var(--transition-duration);
|
||||
}
|
||||
|
||||
.pill:hover {
|
||||
background-color: var(--color-text);
|
||||
color: var(--color-bg);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.pill:active {
|
||||
transform: translateY(2px);
|
||||
}
|
||||
|
||||
a.pill {
|
||||
|
|
|
@ -12,7 +12,7 @@ title: All tags
|
|||
{% set key = tag | first %}
|
||||
{% set count = tag | last %}
|
||||
<li>
|
||||
<a href="/tag/{{ key }}" class="[ pill ] [ px-1 py-0.5 ]">{{ key }} <span class="[ pill-count ]">{{ count }}</span></a>
|
||||
<a href="/tag/{{ key }}" class="[ pill ] [ flex px-1 py-0.5 gap-0.5 ]">{{ key }} <span class="[ pill-count ]">{{ count }}</span></a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ol>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue