Files
chess-endgame-trainer/assets/css/base/_globals.css
T
owenrees 55d2e2a913 add puzzle training sessions with difficulty and ratings
- /train starts an ephemeral session by choosing easy/medium/hard, banded
  relative to the user's current rating (band width configurable)
- session timer, average per-puzzle time, net rating gain and per-puzzle delta
- next puzzle, plus review and retry reused from the play surface
- explicit stop/start: stopping returns to the difficulty picker
- puzzle rating shown once a puzzle completes, and a side-to-move indicator
- extract the play logic/markup into shared PlayCore and PlayComponents so the
  standalone play view and sessions share one implementation
- sticky footer; glossary entries for Difficulty and Session; ADR 0009
2026-11-05 15:44:11 +01:00

33 lines
912 B
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; }
}
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;
}