mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 03:32:06 +00:00
* commented out lesson and learning strip until lessons are established * reword the hero section * change layout and working on puzzle section - remove top div as it was redundant * amend flash message on replay * switch cancel session for return home * remove system theme toggle since this is the default, leaving only light and dark toggles * add keyboard and screen reader support for play (#72) First draft covering the accessibility work in #72:\n\n- labelled SAN/UCI move input, validated against the tablebase and applied\n by the board hook, plus an accessible promotion picker\n- live-region announcements for moves, checks, checkmates and solve/fail,\n and a hidden text summary of the position\n- accessible labels, focus ring, skip link, keyboard-friendly review table\n and non-colour grade cues\n- WCAG AA text contrast roles and a responsive play surface\n- regression tests for move entry, announcements and link-style CTAs
37 lines
1.1 KiB
CSS
37 lines
1.1 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
}
|
|
|
|
@layer base {
|
|
html { scroll-behavior: smooth; }
|
|
body {
|
|
min-width: 320px;
|
|
min-height: 100vh;
|
|
min-height: 100dvh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--color-canvas);
|
|
color: var(--color-body);
|
|
font-family: 'DM Sans', sans-serif;
|
|
}
|
|
button, a { -webkit-tap-highlight-color: transparent; }
|
|
button { cursor: pointer; }
|
|
|
|
/* A consistent focus ring for links, buttons and native controls. Components
|
|
that provide their own ring (form inputs) override this through utilities. */
|
|
:focus-visible { outline: 2px solid var(--color-coral-text); outline-offset: 2px; }
|
|
}
|
|
|
|
main { overflow: hidden; flex: 1 0 auto; }
|
|
|
|
/* LiveView */
|
|
@custom-variant phx-click-loading (.phx-click-loading&, .phx-click-loading &);
|
|
@custom-variant phx-submit-loading (.phx-submit-loading&, .phx-submit-loading &);
|
|
@custom-variant phx-change-loading (.phx-change-loading&, .phx-change-loading &);
|
|
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
|
|
|
|
/* Make LiveView wrapper divs transparent for layout */
|
|
[data-phx-session],
|
|
[data-phx-teleported-src] {
|
|
display: contents;
|
|
} |