Skip to content

Commit 9263155

Browse files
committed
Update sidebar
1 parent 86718e5 commit 9263155

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

assets/css/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,6 +1266,10 @@ svg {
12661266
color: rgb(12 74 110 / var(--tw-text-opacity));
12671267
}
12681268

1269+
.opacity-75 {
1270+
opacity: 0.75;
1271+
}
1272+
12691273
.shadow-xl {
12701274
--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
12711275
--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);

templates/layout.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<a class="pb-2 text-white hidden md:block" href="index.php">{{ svg('logo', null) }}</a>
1515
{% for link, title in nav %}
1616
<a class="block py-2 text-white hover:text-gray-200{{ current == link ? ' font-bold' : '' }}" href="?type={{ link }}">
17-
<span class="mr-1">{{ svg(link) }}</span> {{ title }}
17+
<span class="mr-1{{ current == link ? '' : ' opacity-75' }}">{{ svg(link) }}</span> {{ title }}
1818
</a>
1919
{% endfor %}
2020
<footer class="text-center text-white my-4">

0 commit comments

Comments
 (0)