fix: menu styles

This commit is contained in:
Cory Dransfeldt 2024-04-28 19:33:00 -07:00
parent 8c0c27b5ee
commit 56154b0c63
No known key found for this signature in database
5 changed files with 23 additions and 15 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "13.0.2", "version": "13.0.3",
"description": "The source for my personal site. Built using 11ty.", "description": "The source for my personal site. Built using 11ty.",
"type": "module", "type": "module",
"scripts": { "scripts": {

View file

@ -3,6 +3,7 @@
<span class="active {{ class }}" aria-current="page"> <span class="active {{ class }}" aria-current="page">
{% if icon %} {% if icon %}
{% tablericon icon link %} {% tablericon icon link %}
<span>{{ link }}</span>
{% else %} {% else %}
{{ link }} {{ link }}
{% endif %} {% endif %}
@ -14,7 +15,7 @@
<span>{{ link }}</span> <span>{{ link }}</span>
</a> </a>
{% else %} {% else %}
<a class="icon" href="/{{ link | downcase }}"> <a href="/{{ link | downcase }}">
{{ link }} {{ link }}
</a> </a>
{% endif %} {% endif %}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 KiB

After

Width:  |  Height:  |  Size: 422 KiB

View file

@ -113,12 +113,12 @@ blockquote {
/* links */ /* links */
a { a {
text-decoration: none;
}
a,
.active {
color: var(--accent-color); color: var(--accent-color);
text-decoration: none;
& svg {
stroke: var(--accent-color);
}
} }
a:hover, a:hover,
@ -303,10 +303,12 @@ a.view-all:focus svg {
cursor: not-allowed; cursor: not-allowed;
} }
a svg, .active {
nav .active svg, color: var(--accent-color) !important;
nav ul li .active svg { }
stroke: var(--accent-color);
.active svg {
stroke: var(--accent-color) !important;
} }
/* social icons */ /* social icons */

View file

@ -10,11 +10,13 @@
overflow: hidden; overflow: hidden;
margin: 0; margin: 0;
& .icon > svg { & .icon > svg,
& .active > svg {
display: block; display: block;
} }
& .icon > span { & .icon > span,
& .active > span {
display: none; display: none;
} }
} }
@ -78,6 +80,7 @@ theme-toggle {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
gap: 0; gap: 0;
z-index: 1;
& > li { & > li {
display: flex; display: flex;
@ -89,11 +92,13 @@ theme-toggle {
color: var(--text-color); color: var(--text-color);
background: var(--background-color); background: var(--background-color);
& .icon > svg { & .icon > svg,
& .active > svg {
display: none; display: none;
} }
& .icon > span { & .icon > span,
& .active > span {
display: inline; display: inline;
} }
} }