mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 03:32:06 +00:00
* lesson library shown as com,ing soon. re-enable learngin strip * replace learning strip text with a lasker quote * remove admin login endpoint * fix crawler directives and prelaunch login - noindex the authenticated scope and the 404 catch-all, and cover the mailing-list confirmation redirect - emit noindex, nofollow from the robots meta and /health, and assert public pages stay indexable and followable - stop inventing lastmod values in the sitemap - log in through /users/log-in during prelaunch now that the admin login endpoint is gone; drop create_admin/2 and its orphaned tests * update caching length to 1 year - name change will invalidate cache * remove logger * fix tablebase path breaking tests * test: check cache headers without requiring built assets CI's test job does not run mix assets.build, so /assets/css/app.css is a 404 there. Committed piece art is already content-hashed and takes the same Plug.Static cache option, so the test no longer needs a build step and passes on a fresh checkout.
80 lines
5.4 KiB
CSS
80 lines
5.4 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/_mailing-list.css";
|
|
@import "./components/_board.css";
|
|
@import "./components/_promotion.css";
|
|
@import "./pages/_legal.css";
|
|
@import "./pages/_error.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-coming-soon { min-height: 285px; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 46px 28px; text-align: center; border: 1px dashed var(--color-hairline); border-radius: 12px; background: var(--color-canvas-raised); }
|
|
.puzzle-coming-soon .eyebrow { margin-bottom: 6px; }
|
|
.puzzle-coming-soon strong { font-family: 'DM Serif Display', serif; font-size: 30px; font-weight: 400; }
|
|
.puzzle-coming-soon p { max-width: 420px; margin: 0; color: var(--color-muted); font-size: 14px; line-height: 1.7; }
|
|
.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-coming-soon { min-height: 255px; padding: 38px 22px; }
|
|
.puzzle-card { min-height: 255px; }
|
|
.progress-banner { width: calc(100% - 36px); padding: 48px 28px; flex-direction: column; align-items: flex-start; gap: 34px; }
|
|
}
|