Improved appearance of details outline

This commit is contained in:
squidfunk 2021-09-19 15:22:57 +02:00
parent 726888cb56
commit 3c352bd356
8 changed files with 13 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -39,7 +39,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.4596ff4f.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.665c42a3.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.3f5d1f46.min.css' | url }}">

View File

@ -166,7 +166,7 @@ kbd {
color: var(--md-accent-fg-color);
}
// Text link on keyboard focus
// Show outline for keyboard devices
&.focus-visible {
outline-color: var(--md-accent-fg-color);
outline-offset: px2rem(4px);

View File

@ -84,6 +84,12 @@
padding: px2rem(8px) px2rem(44px) px2rem(8px) px2rem(36px);
}
// Show outline for keyboard devices
&.focus-visible {
outline-color: var(--md-accent-fg-color);
outline-offset: px2rem(4px);
}
// Hide outline for pointer devices
&:not(.focus-visible) {
outline: none;

View File

@ -140,7 +140,7 @@ body {
display: block;
}
// Show outline for pointer devices
// Show outline for keyboard devices
&.focus-visible + label {
outline-style: auto;
outline-color: var(--md-accent-fg-color);

View File

@ -125,7 +125,7 @@
color: var(--md-accent-fg-color);
}
// Navigation link on keyboard focus
// Show outline for keyboard devices
&.focus-visible {
outline-color: var(--md-accent-fg-color);
outline-offset: px2rem(4px);