Files
chess-endgame-trainer/assets/css/app.css
T
owenrees bd8be4d10d Privacy and terms pages with config-driven branding (#91)
* comment out begin with basics until lessons are on the way

* route to footer link dead views

* proposed >7 piece engame processing

* basic privacy and terms pages with default text

* add branding to config and reference across the site

* disclose guest puzzle limit in privacy policy (#87)
2026-11-06 13:56:20 +01:00

73 lines
4.8 KiB
CSS

/* See the Tailwind configuration guide for advanced usage
https://tailwindcss.com/docs/configuration */
@import "tailwindcss" source(none);
@import "phoenix-colocated/chesstrainer/colocated.css";
/* Chessground imports */
@import "../node_modules/chessground/assets/chessground.base.css";
@import "../node_modules/chessground/assets/chessground.brown.css";
@import "../node_modules/chessground/assets/chessground.cburnett.css";
@import "./helpers/_variables.css";
@import "./base/_theme.css";
@import "./base/_globals.css";
@import "./base/_typography.css";
@import "./layouts/_nav.css";
@import "./layouts/_footer.css";
@import "./layouts/_hero.css";
@import "./layouts/_section.css";
@import "./components/_icon.css";
@import "./components/_button.css";
@import "./components/_learning-strip.css";
@import "./components/_board.css";
@import "./components/_promotion.css";
@import "./pages/_legal.css";
@source "../css";
@source "../js";
@source "../../lib/chesstrainer_web";
@source "../../_build/dev/phoenix-colocated/chesstrainer/*/";
/* A Tailwind plugin that makes "hero-#{ICON}" classes available.
The heroicons installation itself is managed by your mix.exs */
@plugin "../vendor/heroicons";
.rating-note { display: flex; align-items: center; gap: 11px; color: var(--color-muted); font-size: 11px; line-height: 1.3; }
.rating-note strong { display: block; color: var(--color-body); font-size: 12px; }
.avatar-stack { display: flex; }
.avatar-stack i { width: 29px; height: 29px; display: grid; place-items: center; margin-left: -7px; border: 2px solid var(--color-canvas); border-radius: 50%; background: var(--color-mint-chip); color: var(--color-body); font-style: normal; }
.avatar-stack i:first-child { margin-left: 0; background: var(--color-coral-control); color: #fff; }
.avatar-stack i:last-child { background: var(--color-deep); color: var(--color-on-deep); }
.puzzle-section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 110px 0 125px; }
.puzzle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.puzzle-card { display: block; position: relative; min-height: 285px; padding: 25px; text-align: left; text-decoration: none; color: inherit; cursor: pointer; border: 1px solid var(--color-hairline); border-radius: 12px; background: rgba(255,255,255,.28); overflow: hidden; transition: transform .25s, background .25s, box-shadow .25s; }
.puzzle-card:hover, .puzzle-card.active { transform: translateY(-5px); background: var(--color-canvas-raised); box-shadow: 0 18px 36px rgba(23,53,45,.08); }
.puzzle-card.active { border-color: var(--color-success-text); }
.card-number { color: var(--color-muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.mini-piece { display: block; margin: 27px 0 22px; font-family: Georgia, serif; color: var(--color-body); font-size: 57px; line-height: 1; }
.difficulty { display: block; margin-bottom: 8px; color: var(--color-coral-text); font-size: 9px; text-transform: uppercase; font-weight: 700; letter-spacing: .12em; }
.puzzle-card strong { display: block; font-family: 'DM Serif Display', serif; font-size: 24px; font-weight: 400; }
.puzzle-card small { color: var(--color-muted); font-size: 11px; }
.card-arrow { position: absolute; right: 22px; bottom: 23px; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--color-hairline); border-radius: 50%; transition: background .2s, color .2s; }
.puzzle-card:hover .card-arrow, .puzzle-card.active .card-arrow { background: var(--color-coral-control); color: white; border-color: var(--color-coral-control); }
.progress-banner { width: min(1180px, calc(100% - 48px)); margin: 0 auto 60px; padding: 70px 76px; display: flex; justify-content: space-between; align-items: end; border-radius: 16px; color: white; background: var(--color-coral-control); }
.progress-banner .section-kicker { color: var(--color-on-accent-muted); }
/* Dark mode needs a few tuned surfaces: tints and shadows are meaningless when
the canvas flips, and they are not worth a role token each. */
html[data-theme="dark"] .puzzle-card { background: rgba(233, 239, 233, .045); }
html[data-theme="dark"] .puzzle-card:hover,
html[data-theme="dark"] .puzzle-card.active { box-shadow: 0 18px 36px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .board-shell { box-shadow: 0 26px 65px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .primary-button { box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .learning-strip { box-shadow: inset 0 1px 0 var(--color-hairline); }
@media (max-width: 650px) {
.puzzle-section { width: calc(100% - 36px); padding: 80px 0; }
.puzzle-grid { grid-template-columns: 1fr; }
.puzzle-card { min-height: 255px; }
.progress-banner { width: calc(100% - 36px); padding: 48px 28px; flex-direction: column; align-items: flex-start; gap: 34px; }
}