last try
This commit is contained in:
1 parent
7294c71c1d
commit
d1f8661568
1 file changed
+9
-21
+9
-21
@@ -1,6 +1,3 @@
|
||||
/* "The Chess Column" — the app styled as a newspaper chess column.
|
||||
Ivory paper, ink serif, one gold rule; move quality as annotation marks. */
|
||||
|
||||
:root {
|
||||
--paper: #f7f3e8;
|
||||
--paper-shade: #efe8d6;
|
||||
@@ -10,8 +7,6 @@
|
||||
--gold: #a8892e;
|
||||
--red: #9c2b23;
|
||||
|
||||
/* Classification colors — green is good, red is bad. Darkened a notch from
|
||||
the board-arrow shades so they stay readable as text on paper. */
|
||||
--best: #2f9e4f;
|
||||
--good: #5a9e44;
|
||||
--inaccuracy: #b98a00;
|
||||
@@ -35,7 +30,6 @@ body {
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
/* ---- Masthead ---- */
|
||||
.masthead { border-bottom: 4px double var(--ink); }
|
||||
.masthead-inner {
|
||||
max-width: 68rem;
|
||||
@@ -116,14 +110,12 @@ input::placeholder { color: var(--muted); font-style: italic; }
|
||||
|
||||
input { flex: 1; min-width: 200px; }
|
||||
|
||||
/* The username lookup is the front page's one job — let it read like a headline.
|
||||
Always one line: the input flexes, the Load button holds the right edge. */
|
||||
.lookup-row { max-width: 40rem; margin: 0 auto; flex-wrap: nowrap; }
|
||||
#player-search {
|
||||
font-size: 1.45rem;
|
||||
padding: 0.4rem 0.3rem;
|
||||
min-width: 0;
|
||||
-webkit-appearance: none; /* keep the underline look for type="search" */
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
@@ -137,23 +129,25 @@ input { flex: 1; min-width: 200px; }
|
||||
}
|
||||
.month-nav { display: flex; gap: 0.5rem; align-items: center; }
|
||||
.month-nav select { height: 2.3rem; padding-top: 0; padding-bottom: 0; }
|
||||
/* SVG chevrons, zero padding: sidesteps Safari's unfixable button-text centering. */
|
||||
|
||||
.month-step {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
width: 2.5rem;
|
||||
height: 2.3rem;
|
||||
padding: 0;
|
||||
}
|
||||
.month-step svg { display: block; flex: none; }
|
||||
.month-step svg {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
margin: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.res-win { color: var(--best); font-weight: 700; }
|
||||
.res-draw { color: var(--muted); }
|
||||
.res-loss { color: var(--blunder); font-weight: 700; }
|
||||
.res-why { color: var(--muted); font-weight: 400; font-size: 0.85em; font-style: italic; }
|
||||
|
||||
/* Never let the table force the page to scroll sideways. */
|
||||
#games-panel { overflow-x: auto; }
|
||||
|
||||
button {
|
||||
@@ -252,7 +246,6 @@ tbody tr.analyzing { background: var(--paper-shade); font-style: italic; cursor:
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* ---- Eval graph: an ink line on paper, like a stock listing ---- */
|
||||
#eval-graph-wrap {
|
||||
position: relative;
|
||||
width: 560px;
|
||||
@@ -327,7 +320,6 @@ tbody tr.analyzing { background: var(--paper-shade); font-style: italic; cursor:
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* Annotation marks carry the verdict in color, print-style. */
|
||||
.tag.best, .chip.best { color: var(--best); }
|
||||
.tag.good, .chip.good { color: var(--good); }
|
||||
.tag.inaccuracy, .chip.inaccuracy { color: var(--inaccuracy); }
|
||||
@@ -335,7 +327,6 @@ tbody tr.analyzing { background: var(--paper-shade); font-style: italic; cursor:
|
||||
.tag.blunder, .chip.blunder { color: var(--blunder); }
|
||||
.tag.unknown, .chip.unknown { color: var(--muted); }
|
||||
|
||||
/* ---- Analysis-in-progress popup ---- */
|
||||
#busy-overlay {
|
||||
position: fixed; inset: 0; z-index: 100;
|
||||
background: rgba(35, 36, 42, 0.5);
|
||||
@@ -363,7 +354,6 @@ tbody tr.analyzing { background: var(--paper-shade); font-style: italic; cursor:
|
||||
.busy-spinner { animation: none; border-top-color: var(--rule); }
|
||||
}
|
||||
|
||||
/* ---- Mobile ---- */
|
||||
@media (max-width: 700px) {
|
||||
body { font-size: 1rem; }
|
||||
.masthead-inner {
|
||||
@@ -376,7 +366,6 @@ tbody tr.analyzing { background: var(--paper-shade); font-style: italic; cursor:
|
||||
|
||||
#player-search { font-size: 1.2rem; }
|
||||
|
||||
/* Roomier listings: drop the time-control column, keep cells readable. */
|
||||
th, td { padding: 0.6rem 0.35rem; font-size: 1rem; }
|
||||
#games-table th:nth-child(5), #games-table td:nth-child(5) { display: none; }
|
||||
#games-table td:nth-child(2) { overflow-wrap: anywhere; }
|
||||
@@ -392,7 +381,6 @@ tbody tr.analyzing { background: var(--paper-shade); font-style: italic; cursor:
|
||||
.summary { gap: 0.3rem 0.8rem; }
|
||||
}
|
||||
|
||||
/* Very narrow phones: drop the Color column too — Date, Opponent, Result is plenty. */
|
||||
@media (max-width: 480px) {
|
||||
#games-table th:nth-child(3), #games-table td:nth-child(3) { display: none; }
|
||||
}
|
||||
Reference in new issue
Block a user