Techno03 commited on
Commit
bc377e9
路
verified 路
1 Parent(s): 02c53f0

Heavier box borders, shaded givens

Browse files
Files changed (1) hide show
  1. index.html +6 -6
index.html CHANGED
@@ -20,11 +20,11 @@
20
  .card .big{font-size:20px;font-weight:700}
21
  table.g{border-collapse:collapse;margin:0 auto;font-family:ui-monospace,monospace}
22
  table.g td{width:26px;height:26px;text-align:center;font-size:15px;border:1px solid #cbd5e1;padding:0}
23
- table.g tr:nth-child(3n) td{border-bottom:2px solid #334155}
24
- table.g tr:first-child td{border-top:2px solid #334155}
25
- table.g td:nth-child(3n){border-right:2px solid #334155}
26
- table.g td:first-child{border-left:2px solid #334155}
27
- .gv{background:#e5e7eb;font-weight:700}
28
  .ok{background:#bbf7d0;color:#14532d}
29
  .bad{background:#fecaca;color:#7f1d1d}
30
  .na{background:#f1f5f9;color:#94a3b8}
@@ -107,7 +107,7 @@ function render() {
107
  const id = document.getElementById("pick").value;
108
  const s = SAMPLES.find(x => x.id === id);
109
  const given = promptGrid(s.prompt_text);
110
- let html = `<div class="card"><h3>Puzzle</h3>${table(given.map(v => v || ""), given.map(v => v ? "gv" : ""))}
111
  <div class="sub">${given.filter(v => !v).length} blanks 路 difficulty ${s.difficulty} (${bucket(s.difficulty)})</div></div>`;
112
  for (const [key, name, kind] of MODELS) {
113
  const r = score(s, key);
 
20
  .card .big{font-size:20px;font-weight:700}
21
  table.g{border-collapse:collapse;margin:0 auto;font-family:ui-monospace,monospace}
22
  table.g td{width:26px;height:26px;text-align:center;font-size:15px;border:1px solid #cbd5e1;padding:0}
23
+ table.g tr:nth-child(3n) td{border-bottom:3px solid #111}
24
+ table.g tr:first-child td{border-top:3px solid #111}
25
+ table.g td:nth-child(3n){border-right:3px solid #111}
26
+ table.g td:first-child{border-left:3px solid #111}
27
+ .gv{background:#d1d5db;font-weight:700}
28
  .ok{background:#bbf7d0;color:#14532d}
29
  .bad{background:#fecaca;color:#7f1d1d}
30
  .na{background:#f1f5f9;color:#94a3b8}
 
107
  const id = document.getElementById("pick").value;
108
  const s = SAMPLES.find(x => x.id === id);
109
  const given = promptGrid(s.prompt_text);
110
+ let html = `<div class="card"><h3>Puzzle<br><span style="font-weight:400;font-size:12px">input</span></h3>${table(given.map(v => v || ""), given.map(v => v ? "gv" : ""))}
111
  <div class="sub">${given.filter(v => !v).length} blanks 路 difficulty ${s.difficulty} (${bucket(s.difficulty)})</div></div>`;
112
  for (const [key, name, kind] of MODELS) {
113
  const r = score(s, key);