web/SettingsTab: clean up

This commit is contained in:
wukko 2024-06-24 23:22:30 +06:00
parent 23911cbc92
commit b153c06294
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -9,18 +9,18 @@
</script>
<a
id="settings-category"
class="settings-category"
href="/settings/{categoryLink}"
class:active={isActive}
>
<div id="category-icon" style="background: var(--{iconColor})">
<div class="category-icon" style="background: var(--{iconColor})">
<slot></slot>
</div>
<span>{categoryName}</span>
</a>
<style>
#settings-category {
.settings-category {
display: flex;
flex-direction: row;
align-items: center;
@ -32,24 +32,24 @@
border-radius: var(--border-radius);
}
#settings-category:hover {
.settings-category:hover {
background: var(--button-hover-transparent);
}
#settings-category span {
.settings-category.active {
background: var(--secondary);
color: var(--primary);
}
.settings-category span {
font-size: 14.5px;
}
#category-icon {
.category-icon {
display: flex;
justify-content: center;
align-items: center;
padding: 5px;
border-radius: 5px;
}
#settings-category.active {
background: var(--secondary);
color: var(--primary);
}
</style>