mirror of
https://github.com/LukeHagar/unicorn-utterances.git
synced 2025-12-06 12:57:44 +00:00
add focus background/outline styling for post chapter items
This commit is contained in:
@@ -27,6 +27,10 @@
|
|||||||
|
|
||||||
--series-nav_chapter-item_background-color_hovered: var(--surface_primary_emphasis-none);
|
--series-nav_chapter-item_background-color_hovered: var(--surface_primary_emphasis-none);
|
||||||
--series-nav_chapter-item_background-color_pressed: var(--surface_primary_emphasis-low);
|
--series-nav_chapter-item_background-color_pressed: var(--surface_primary_emphasis-low);
|
||||||
|
--series-nav_chapter-item_background-color_focused: var(--background_focus);
|
||||||
|
|
||||||
|
--series-nav_chapter-item_outline-color_focused: var(--focus-outline_primary);
|
||||||
|
|
||||||
--series-nav_chapter-item_arrow_color: var(--foreground_emphasis-medium);
|
--series-nav_chapter-item_arrow_color: var(--foreground_emphasis-medium);
|
||||||
--series-nav_chapter-item_title_color: var(--primary_default);
|
--series-nav_chapter-item_title_color: var(--primary_default);
|
||||||
--series-nav_chapter-item_title_color_pressed: var(--foreground_emphasis-high);
|
--series-nav_chapter-item_title_color_pressed: var(--foreground_emphasis-high);
|
||||||
@@ -151,6 +155,17 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navigationItem:focus-visible::before {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navigationItem:focus-visible {
|
||||||
|
background-color: var(--series-nav_chapter-item_background-color_focused);
|
||||||
|
outline: solid var(--series-nav_chapter-item_outline-color_focused) var(--series-nav_chapter-item_border_width);
|
||||||
|
outline-offset: calc(-1 * var(--series-nav_chapter-item_border_width));
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
.buttonContainer {
|
.buttonContainer {
|
||||||
padding: var(--spc-4x) var(--spc-4x) 0;
|
padding: var(--spc-4x) var(--spc-4x) 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user