chore: colors for band icons

This commit is contained in:
Cory Dransfeldt 2023-12-28 10:21:09 -08:00
parent c3f031a229
commit fa10c0ff1c
No known key found for this signature in database
4 changed files with 91 additions and 8 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "coryd.dev", "name": "coryd.dev",
"version": "4.0.4", "version": "4.0.5",
"description": "The source for my personal site, blog and portfolio. Built using 11ty and hosted on Netlify.", "description": "The source for my personal site, blog and portfolio. Built using 11ty and hosted on Netlify.",
"type": "module", "type": "module",
"scripts": { "scripts": {

View file

@ -9,7 +9,7 @@
</span> </span>
{% else %} {% else %}
{% if icon %} {% if icon %}
<a class="link--icon" href="/{{ link | downcase }}"> <a class="link--icon {{ icon | downcase }}" href="/{{ link | downcase }}">
{% tablericon icon link %} {% tablericon icon link %}
</a> </a>
{% else %} {% else %}

View file

@ -1,6 +1,6 @@
<a <a
class="link--icon" class="link--icon {{ icon }}"
href="{{ link }}" href="{{ link | downcase }}"
rel="me" rel="me"
title="{{ name }}"> title="{{ name }}">
{% tablericon icon name %} {% tablericon icon name %}

View file

@ -25,6 +25,17 @@
--white: #fff; --white: #fff;
--black: #000; --black: #000;
--brand-github: #333;
--brand-github-light: #f5f5f5;
--brand-gmail: #34a853;
--brand-mastodon: #6364ff;
--brand-lastfm: #d51007;
--brand-trakt: #ed1c24;
--brand-storygraph: #14919b;
--brand-buy-me-a-coffee: #ffdd00;
--brand-rss: #f26522;
--webrings: #ec8fd0;
/* fonts */ /* fonts */
--font-sans: silka, Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, system-ui, sans-serif; --font-sans: silka, Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, system-ui, sans-serif;
--font-mono: ml, ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace; --font-mono: ml, ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
@ -61,6 +72,10 @@
/* transitions */ /* transitions */
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1); --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
/* svgs */
--stroke-width-default: 1.4;
--stroke-width-bold: 2;
} }
@keyframes spin { @keyframes spin {
@ -161,7 +176,7 @@ h4 > svg,
h5 > svg, h5 > svg,
h6 > svg { h6 > svg {
margin-right: .25rem; margin-right: .25rem;
stroke-width: 2 !important; stroke-width: var(--stroke-width-bold) !important;
} }
hr { hr {
@ -277,10 +292,60 @@ nav ul li a {
} }
nav svg { nav svg {
stroke: var(--black);
margin-top: .125rem; margin-top: .125rem;
} }
nav svg:hover {
stroke-width: var(--stroke-width-bold);
}
nav .at svg {
stroke: var(--brand-gmail);
}
nav .brand-github svg {
stroke: var(--brand-github);
}
nav .brand-mastodon svg {
stroke: var(--brand-mastodon);
}
nav .brand-lastfm svg {
stroke: var(--brand-lastfm);
}
nav .device-tv svg {
stroke: var(--brand-trakt);
}
nav .books svg {
stroke: var(--brand-storygraph);
}
nav .cup svg {
stroke: var(--brand-buy-me-a-coffee);
}
nav .heart-handshake svg {
stroke: var(--webrings);
}
nav .rss svg {
stroke: var(--brand-rss);
}
nav .tags svg,
nav .search svg {
stroke: var(--black);
}
nav .tags svg:hover,
nav .search svg:hover {
stroke: var(--blue-800);
stroke-width: var(--stroke-width-default);
}
nav ul li:last-child { nav ul li:last-child {
margin-right: 0; margin-right: 0;
} }
@ -292,6 +357,10 @@ nav ul li:last-child {
cursor: not-allowed; cursor: not-allowed;
} }
.active svg:hover {
stroke-width: var(--stroke-width-default);
}
.link--icon { .link--icon {
stroke: var(--black); stroke: var(--black);
} }
@ -529,11 +598,11 @@ article time {
/* icons */ /* icons */
[data-tablericon-name] { [data-tablericon-name] {
stroke-width: 1.4; stroke-width: var(--stroke-width-default);
} }
.icon--bold > svg { .icon--bold > svg {
stroke-width: 2; stroke-width: var(--stroke-width-bold);
} }
.icon--spin > svg { .icon--spin > svg {
@ -1184,6 +1253,20 @@ textarea {
color: var(--white); color: var(--white);
} }
nav .brand-github svg {
stroke: var(--brand-github-light);
}
nav .tags svg,
nav .search svg {
stroke: var(--white);
}
nav .tags svg:hover,
nav .search svg:hover {
stroke: var(--blue-200);
}
.active, .active,
.active svg { .active svg {
color: var(--blue-400); color: var(--blue-400);