fix: bluesky icon cut off, nicer focus styles with new button variant
This commit is contained in:
parent
236bc76d12
commit
612c8c9693
7 changed files with 27 additions and 13 deletions
|
|
@ -23,7 +23,13 @@
|
||||||
|
|
||||||
<nav class="cluster" aria-label="{{ meta.navigation.ariaPlatforms }}">
|
<nav class="cluster" aria-label="{{ meta.navigation.ariaPlatforms }}">
|
||||||
<!-- gets the first item from the feed loop set in meta -->
|
<!-- gets the first item from the feed loop set in meta -->
|
||||||
<a href="{{ meta.blog.feedLinks[0].url }}" rel="alternate" type="{{ meta.blog.feedLinks[0].type }}">
|
<a
|
||||||
|
href="{{ meta.blog.feedLinks[0].url }}"
|
||||||
|
rel="alternate"
|
||||||
|
type="{{ meta.blog.feedLinks[0].type }}"
|
||||||
|
class="button"
|
||||||
|
data-icon
|
||||||
|
>
|
||||||
<span class="visually-hidden">{{ meta.blog.feedLinks[0].title }}</span>
|
<span class="visually-hidden">{{ meta.blog.feedLinks[0].title }}</span>
|
||||||
{% svg "misc/rss" %}
|
{% svg "misc/rss" %}
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -31,7 +37,7 @@
|
||||||
{% for key, value in personal.platforms %}
|
{% for key, value in personal.platforms %}
|
||||||
{% if value != "" %}
|
{% if value != "" %}
|
||||||
<!-- regular platforms -->
|
<!-- regular platforms -->
|
||||||
<a class="no-indicator" href="{{ value }}" rel="me">
|
<a class="no-indicator button" data-icon href="{{ value }}" rel="me">
|
||||||
<span class="visually-hidden">{{ key | capitalize }}</span>
|
<span class="visually-hidden">{{ key | capitalize }}</span>
|
||||||
{% svg 'platform/' + key %}
|
{% svg 'platform/' + key %}
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,6 @@ html:has(dialog[open]:modal) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* View transition */
|
|
||||||
@view-transition {
|
@view-transition {
|
||||||
navigation: auto;
|
navigation: auto;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
--button-bg: var(--color-text);
|
--button-bg: var(--color-text);
|
||||||
--button-color: color-mix(in oklab, var(--button-bg) 10%, var(--color-bg));
|
--button-color: color-mix(in oklab, var(--button-bg) 10%, var(--color-bg));
|
||||||
--button-hover-bg: color-mix(in oklab, var(--button-bg) 90%, var(--color-bg));
|
--button-hover-bg: color-mix(in oklab, var(--button-bg) 90%, var(--color-bg));
|
||||||
|
--button-hover-color: var(--button-color);
|
||||||
--button-border-width: var(--border-thickness);
|
--button-border-width: var(--border-thickness);
|
||||||
--button-border-style: solid;
|
--button-border-style: solid;
|
||||||
--button-border-color: color-mix(in oklab, var(--button-bg) 80%, var(--color-text));
|
--button-border-color: color-mix(in oklab, var(--button-bg) 80%, var(--color-text));
|
||||||
|
|
@ -48,11 +49,7 @@
|
||||||
.button[aria-pressed='true'],
|
.button[aria-pressed='true'],
|
||||||
.button[data-state='active'] {
|
.button[data-state='active'] {
|
||||||
background: var(--button-hover-bg);
|
background: var(--button-hover-bg);
|
||||||
color: var(--button-color);
|
color: var(--button-hover-color);
|
||||||
}
|
|
||||||
|
|
||||||
.button:focus {
|
|
||||||
outline-color: var(--button-outline-color, var(--button-border-color));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.button:active {
|
.button:active {
|
||||||
|
|
@ -104,3 +101,15 @@
|
||||||
.button[data-button-radius='hard'] {
|
.button[data-button-radius='hard'] {
|
||||||
--button-radius: 0;
|
--button-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.button[data-icon] {
|
||||||
|
--button-padding: var(--space-2xs);
|
||||||
|
--button-bg: var(--color-bg);
|
||||||
|
--button-border-color: var(--color-bg);
|
||||||
|
--button-color: var(--color-text);
|
||||||
|
--button-hover-color: var(--color-primary);
|
||||||
|
--button-radius: 50%;
|
||||||
|
aspect-ratio: 1;
|
||||||
|
display: inline-grid;
|
||||||
|
place-items: center;
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
--button-bg: var(--_color-contrast);
|
--button-bg: var(--_color-contrast);
|
||||||
--button-color: var(--color-dark);
|
--button-color: var(--color-dark);
|
||||||
--button-border-color: var(--_color-contrast);
|
--button-border-color: var(--_color-contrast);
|
||||||
outline-color: var(--_color-contrast);
|
--focus-color: var(--_color-contrast);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hide without JS */
|
/* Hide without JS */
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
<svg
|
<svg
|
||||||
role="img"
|
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
width="1em"
|
width="1em"
|
||||||
height="1em"
|
height="1em"
|
||||||
|
|
@ -8,7 +7,6 @@
|
||||||
stroke-width="2"
|
stroke-width="2"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
>
|
>
|
||||||
<title>RSS</title>
|
|
||||||
<path d="M4 11a9 9 0 0 1 9 9"></path>
|
<path d="M4 11a9 9 0 0 1 9 9"></path>
|
||||||
<path d="M4 4a16 16 0 0 1 16 16"></path>
|
<path d="M4 4a16 16 0 0 1 16 16"></path>
|
||||||
<circle cx="5" cy="19" r="1"></circle>
|
<circle cx="5" cy="19" r="1"></circle>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 317 B After Width: | Height: | Size: 283 B |
|
|
@ -1,7 +1,7 @@
|
||||||
<svg
|
<svg
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
width="1em"
|
width="1em"
|
||||||
height="1em"
|
height="0.9em"
|
||||||
fill="var(--color-bg)"
|
fill="var(--color-bg)"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
stroke-width="2"
|
stroke-width="2"
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 742 B After Width: | Height: | Size: 744 B |
|
|
@ -45,7 +45,6 @@ customGradients:
|
||||||
<li>
|
<li>
|
||||||
<a href="#" class="button" data-button-variant="tertiary">tertiary button</a>
|
<a href="#" class="button" data-button-variant="tertiary">tertiary button</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="#" class="button" data-ghost-button>Ghost button</a>
|
<a href="#" class="button" data-ghost-button>Ghost button</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
@ -58,6 +57,9 @@ customGradients:
|
||||||
<li>
|
<li>
|
||||||
<a href="#" class="button" data-small-button>small button</a>
|
<a href="#" class="button" data-small-button>small button</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#" class="button" data-icon>{% svg "misc/star" %}</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue