@sensiblestats/widget-react 0.60.5 → 0.61.0
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 +270 -37
- 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 +270 -37
- package/dist/index.js.map +1 -1
- package/dist/styles.css +38 -2
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -1098,6 +1098,16 @@
|
|
|
1098
1098
|
/* Labels stay on one line: Turkish "DAHA FAZLA" wrapped to two in a ~115px button. */
|
|
1099
1099
|
.ss-g-hl-btns .ss-g-btn { font-weight: 800; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
|
|
1100
1100
|
.ss-g-hl-btns .ss-g-btn svg { flex: none; }
|
|
1101
|
+
/* Phone-width cards: the info column is ~230px, too narrow for "DAHA FAZLA" + icon side by side.
|
|
1102
|
+
Drop the icons and tighten the type first; stack the buttons only when even that cannot fit. */
|
|
1103
|
+
.ss-g-hl-info { container: hlinfo / inline-size; }
|
|
1104
|
+
@container hlinfo (max-width: 280px) {
|
|
1105
|
+
.ss-g-hl-btns .ss-g-btn svg { display: none; }
|
|
1106
|
+
.ss-g-hl-btns .ss-g-btn { font-size: 12px; letter-spacing: 0; padding: 0 4px; }
|
|
1107
|
+
}
|
|
1108
|
+
@container hlinfo (max-width: 180px) {
|
|
1109
|
+
.ss-g-hl-btns { flex-direction: column; }
|
|
1110
|
+
}
|
|
1101
1111
|
.ss-g-hl-vs { position: relative; z-index: 1; flex: none; align-self: center; width: 44px; height: 44px; margin: -28px 0; border-radius: 50%; display: grid; place-items: center; background: var(--ss-g-ground); border: 2px solid var(--ss-g-line-warm); color: var(--ss-w-accent); font: 800 18px var(--ss-g-font-display); }
|
|
1102
1112
|
/* Clear the VS badge that straddles the seam between the two cards. */
|
|
1103
1113
|
.ss-g-hl-pair > .ss-g-hl-card:first-child .ss-g-hl-info { padding-bottom: 24px; }
|
|
@@ -1134,11 +1144,20 @@
|
|
|
1134
1144
|
.ss-g-gxi-node { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; max-width: 72px; }
|
|
1135
1145
|
.ss-g-gxi-disc { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ss-g-pitch-chip); border: 2px solid var(--ss-g-pitch-ink); font-size: 22px; line-height: 1; }
|
|
1136
1146
|
.ss-g-gxi-node[data-revealed] .ss-g-gxi-disc { border-color: var(--ss-w-accent); }
|
|
1147
|
+
.ss-g-gxi-disc[data-code] { font-family: var(--ss-g-font-body); font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--ss-g-pitch-ink); }
|
|
1137
1148
|
.ss-g-gxi-pos { max-width: 100%; padding: 1px 6px; border-radius: 4px; background: var(--ss-g-pitch-chip); color: var(--ss-g-pitch-ink); font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
1138
1149
|
.ss-g-gxi-pos--name { color: var(--ss-w-accent); text-transform: uppercase; }
|
|
1139
1150
|
.ss-g-gxi-wrong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
1140
1151
|
.ss-g-gxi-wrong-l { font-size: 12px; color: var(--ss-g-muted); }
|
|
1141
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; }
|
|
1142
1161
|
|
|
1143
1162
|
/* ---- Daily Quiz (u393) ---- */
|
|
1144
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; }
|
|
@@ -1163,6 +1182,10 @@
|
|
|
1163
1182
|
.ss-g-dq-rq-opt--correct { background: var(--ss-g-correct); color: var(--ss-g-on-correct); }
|
|
1164
1183
|
.ss-g-dq-rq-opt--wrong { background: var(--ss-g-wrong); color: var(--ss-g-on-correct); }
|
|
1165
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; }
|
|
1166
1189
|
|
|
1167
1190
|
/* ---- Career Path (u393) ---- */
|
|
1168
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); }
|
|
@@ -1239,9 +1262,11 @@
|
|
|
1239
1262
|
/* While the search sheet is pinned below, the grid shrinks its rows to share the body with it
|
|
1240
1263
|
instead of pushing the bottom row under the sheet. */
|
|
1241
1264
|
.ss-g-btg-grid--fit { flex: 0 1 auto; min-height: 0; }
|
|
1242
|
-
.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; }
|
|
1243
1267
|
.ss-g-btg-colhdr svg { color: var(--ss-w-accent); flex: none; }
|
|
1244
|
-
.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; }
|
|
1245
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; }
|
|
1246
1271
|
.ss-g-btg-cell:disabled { cursor: default; }
|
|
1247
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); }
|
|
@@ -1269,6 +1294,17 @@
|
|
|
1269
1294
|
.ss-g-btg-sheet .ss-g-opts { max-height: 160px; }
|
|
1270
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; }
|
|
1271
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; }
|
|
1272
1308
|
|
|
1273
1309
|
/* ── Starting XI (u393) ── */
|
|
1274
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); }
|