@sensiblestats/widget-react 0.60.6 → 0.61.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +253 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +253 -36
- package/dist/index.js.map +1 -1
- package/dist/styles.css +27 -2
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -1150,6 +1150,14 @@
|
|
|
1150
1150
|
.ss-g-gxi-wrong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
1151
1151
|
.ss-g-gxi-wrong-l { font-size: 12px; color: var(--ss-g-muted); }
|
|
1152
1152
|
.ss-g-gxi-wrong-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); font-size: 13px; color: var(--ss-g-muted); }
|
|
1153
|
+
/* u407: lineup photo — fills the 44px disc like the flag does */
|
|
1154
|
+
.ss-g-gxi-disc--photo { overflow: hidden; border: 2px solid var(--ss-w-accent); }
|
|
1155
|
+
.ss-g-gxi-disc--photo img { width: 100%; height: 100%; object-fit: cover; }
|
|
1156
|
+
.ss-g-gxi-disc--photo .ss-w-av-initials { font-family: var(--ss-g-font-body); font-size: 11px; font-weight: 800; color: var(--ss-g-pitch-ink); }
|
|
1157
|
+
/* u407: answer reveal — prominent row using theme tokens, works on dark/navy/light surfaces */
|
|
1158
|
+
.ss-g-gxi-answer { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 16px; border-radius: 14px; background: var(--ss-g-warm); border: 1.5px solid var(--ss-g-line-warm); }
|
|
1159
|
+
.ss-g-gxi-answer-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ss-g-muted); flex: none; }
|
|
1160
|
+
.ss-g-gxi-answer-name { font-family: var(--ss-g-font-display); font-weight: 800; font-size: 20px; text-transform: uppercase; color: var(--ss-g-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
1153
1161
|
|
|
1154
1162
|
/* ---- Daily Quiz (u393) ---- */
|
|
1155
1163
|
.ss-g-dq-stem { font-family: var(--ss-g-font-display); font-weight: 700; font-size: 30px; line-height: 1.05; overflow-wrap: anywhere; }
|
|
@@ -1174,6 +1182,10 @@
|
|
|
1174
1182
|
.ss-g-dq-rq-opt--correct { background: var(--ss-g-correct); color: var(--ss-g-on-correct); }
|
|
1175
1183
|
.ss-g-dq-rq-opt--wrong { background: var(--ss-g-wrong); color: var(--ss-g-on-correct); }
|
|
1176
1184
|
.ss-g-dq-why { font-size: 13px; color: var(--ss-g-ink-2); }
|
|
1185
|
+
/* u407: player avatar in quiz option — centered in top half, badge at top-left unaffected */
|
|
1186
|
+
.ss-g-dq-opt-av { position: absolute; top: 7px; right: 10px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--ss-g-raised); display: grid; place-items: center; color: var(--ss-g-muted); font-size: 13px; font-weight: 700; flex: none; }
|
|
1187
|
+
.ss-g-dq-opt-av img { width: 100%; height: 100%; object-fit: cover; }
|
|
1188
|
+
.ss-g-dq-opt-av .ss-w-av-initials { font-size: 11px; }
|
|
1177
1189
|
|
|
1178
1190
|
/* ---- Career Path (u393) ---- */
|
|
1179
1191
|
.ss-g-cp-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--ss-g-warm); border: 1px solid var(--ss-g-line-warm); }
|
|
@@ -1250,9 +1262,11 @@
|
|
|
1250
1262
|
/* While the search sheet is pinned below, the grid shrinks its rows to share the body with it
|
|
1251
1263
|
instead of pushing the bottom row under the sheet. */
|
|
1252
1264
|
.ss-g-btg-grid--fit { flex: 0 1 auto; min-height: 0; }
|
|
1253
|
-
.ss-g-btg-colhdr { min-height: 0; border-radius: 12px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 0 4px; font-size: 12px; font-weight: 700; line-height: 1.1; min-width: 0; overflow-wrap: anywhere; }
|
|
1265
|
+
.ss-g-btg-colhdr { min-height: 0; border-radius: 12px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 0 4px; font-size: 12px; font-weight: 700; line-height: 1.1; min-width: 0; overflow-wrap: anywhere; overflow: hidden; }
|
|
1266
|
+
.ss-g-btg-colhdr[data-meta] { overflow-wrap: normal; word-break: normal; hyphens: none; font-size: 11px; letter-spacing: 0; }
|
|
1254
1267
|
.ss-g-btg-colhdr svg { color: var(--ss-w-accent); flex: none; }
|
|
1255
|
-
.ss-g-btg-rowhdr { border-radius: 12px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); display: grid; place-items: center; font-family: var(--ss-g-font-display); font-weight: 800; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; text-align: center; }
|
|
1268
|
+
.ss-g-btg-rowhdr { border-radius: 12px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); display: grid; place-items: center; font-family: var(--ss-g-font-display); font-weight: 800; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; text-align: center; overflow: hidden; }
|
|
1269
|
+
.ss-g-btg-rowhdr[data-meta] { font-size: 10px; font-family: var(--ss-g-font-body); font-weight: 700; letter-spacing: -0.01em; text-transform: none; word-break: normal; overflow-wrap: normal; hyphens: none; line-height: 1.25; padding: 0 2px; }
|
|
1256
1270
|
.ss-g-btg-cell { position: relative; min-height: 0; min-width: 0; border-radius: 12px; border: 1.5px dashed var(--ss-g-strong-line); background: transparent; color: var(--ss-g-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; font: inherit; padding: 0; }
|
|
1257
1271
|
.ss-g-btg-cell:disabled { cursor: default; }
|
|
1258
1272
|
.ss-g-btg-cell[data-state="active"] { border: 2px solid var(--ss-w-accent); background: var(--ss-g-warm); color: var(--ss-w-accent); }
|
|
@@ -1280,6 +1294,17 @@
|
|
|
1280
1294
|
.ss-g-btg-sheet .ss-g-opts { max-height: 160px; }
|
|
1281
1295
|
.ss-g-btg-result-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1282
1296
|
.ss-g-btg-result-plus { color: var(--ss-w-accent); display: flex; }
|
|
1297
|
+
/* u407: cell avatar replaces Silhouette */
|
|
1298
|
+
.ss-g-btg-av { width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; background: var(--ss-g-raised); display: grid; place-items: center; color: var(--ss-g-muted); font-size: 12px; font-weight: 700; }
|
|
1299
|
+
.ss-g-btg-av img { width: 100%; height: 100%; object-fit: cover; }
|
|
1300
|
+
.ss-g-btg-av .ss-w-av-initials { font-size: 12px; }
|
|
1301
|
+
/* u407: coach photo in row/col header */
|
|
1302
|
+
.ss-g-btg-coach-av { width: 28px; height: 28px; flex: none; border-radius: 50%; overflow: hidden; background: var(--ss-g-raised); display: grid; place-items: center; color: var(--ss-g-muted); font-size: 10px; font-weight: 700; }
|
|
1303
|
+
.ss-g-btg-coach-av img { width: 100%; height: 100%; object-fit: cover; }
|
|
1304
|
+
/* u407: country flag emoji in header — sized to match other header icons */
|
|
1305
|
+
.ss-g-btg-hdr-flag { font-size: 20px; line-height: 1; flex: none; }
|
|
1306
|
+
/* u407: club crest in col/row header */
|
|
1307
|
+
.ss-g-btg-colhdr .ss-g-crest, .ss-g-btg-rowhdr .ss-g-crest { width: 28px; height: 28px; flex: none; }
|
|
1283
1308
|
|
|
1284
1309
|
/* ── Starting XI (u393) ── */
|
|
1285
1310
|
.ss-g-xi-pitch { position: relative; flex: none; height: 400px; border-radius: 18px; overflow: hidden; background: repeating-linear-gradient(180deg, var(--ss-g-pitch) 0 40px, color-mix(in srgb, var(--ss-g-pitch) 88%, var(--ss-g-pitch-mark)) 40px 80px); border: 1px solid var(--ss-g-pitch-line); }
|