@sensiblestats/widget-react 0.26.2 → 0.27.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 +6 -0
- package/dist/index.cjs +96 -86
- 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 +96 -86
- package/dist/index.js.map +1 -1
- package/dist/styles.css +24 -21
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -89,10 +89,9 @@
|
|
|
89
89
|
/* entity cards */
|
|
90
90
|
.ss-w-cards { display: flex; flex-direction: column; gap: 8px; }
|
|
91
91
|
|
|
92
|
-
/*
|
|
93
|
-
.ss-w-ecard { display:
|
|
92
|
+
/* Entity card: identity header row over a horizontal stat strip */
|
|
93
|
+
.ss-w-ecard { display: flex; flex-direction: column; width: 100%; background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; overflow: hidden; text-align: left; }
|
|
94
94
|
|
|
95
|
-
.ss-w-ecard-id { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; padding: 13px 10px; border-right: 1px solid var(--ss-w-line); background: linear-gradient(158deg, var(--ss-w-bubble), color-mix(in srgb, var(--ss-w-accent) 9%, var(--ss-w-bubble))); }
|
|
96
95
|
.ss-w-ecard-idtext { display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 100%; }
|
|
97
96
|
.ss-w-thumb { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 700; color: #fff; background-color: var(--ss-w-nav); background-size: cover; background-position: center; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
|
|
98
97
|
.ss-w-thumb.ss-w-team { border-radius: 12px; }
|
|
@@ -102,27 +101,31 @@
|
|
|
102
101
|
|
|
103
102
|
/* bare card (no stat scopes): simple avatar + name row */
|
|
104
103
|
.ss-w-ecard-bare { display: flex; align-items: center; }
|
|
105
|
-
.ss-w-ecard-bare .ss-w-ecard-
|
|
106
|
-
|
|
107
|
-
.ss-w-ecard-
|
|
108
|
-
|
|
109
|
-
.ss-w-ecard-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
.ss-w-ecard-
|
|
115
|
-
.ss-w-ecard-
|
|
116
|
-
.ss-w-ecard-
|
|
117
|
-
.ss-w-ecard-
|
|
104
|
+
.ss-w-ecard-bare .ss-w-ecard-hd { padding: 10px 12px; }
|
|
105
|
+
|
|
106
|
+
.ss-w-ecard-hd { display: flex; align-items: center; gap: 11px; padding: 11px 13px; }
|
|
107
|
+
.ss-w-ecard-hd .ss-w-thumb { width: 40px; height: 40px; font-size: 13px; box-shadow: none; }
|
|
108
|
+
.ss-w-ecard-hd .ss-w-thumb.ss-w-team { border-radius: 10px; }
|
|
109
|
+
.ss-w-ecard-meta { display: inline-flex; align-items: center; gap: 7px; flex: none; align-self: flex-start; margin-left: auto; }
|
|
110
|
+
.ss-w-ecard-meta .ss-w-ecard-season { margin: 0; }
|
|
111
|
+
|
|
112
|
+
/* scope tabs: reuse the underline pattern, relocated above the strip */
|
|
113
|
+
.ss-w-ecard-scopes { display: flex; align-items: stretch; gap: 2px; padding: 0 11px; border-top: 1px solid var(--ss-w-line); flex-wrap: wrap; }
|
|
114
|
+
.ss-w-ecard-scope { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 620; color: var(--ss-w-faint); background: none; border: none; cursor: pointer; padding: 7px 8px; margin-bottom: -1px; border-bottom: 2px solid transparent; }
|
|
115
|
+
.ss-w-ecard-scope[aria-selected="true"] { color: var(--ss-w-ink); border-bottom-color: var(--ss-w-accent); }
|
|
116
|
+
.ss-w-ecard-scope .ss-w-ecard-crest { width: 14px; height: 14px; }
|
|
117
|
+
.ss-w-ecard-scopes + .ss-w-ecard-strip { border-top: none; }
|
|
118
|
+
|
|
118
119
|
.ss-w-ecard-crest { width: 15px; height: 15px; flex: none; display: block; border-radius: 4px; background-size: cover; background-position: center; }
|
|
119
120
|
.ss-w-ecard-season { flex: none; margin-left: auto; align-self: center; margin-bottom: 5px; font-size: 10.5px; font-weight: 700; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 13%, var(--ss-w-panel)); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
|
|
120
|
-
.ss-w-ecard-tabs-static .ss-w-ecard-season { margin-bottom: 4px; }
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
.ss-w-ecard-
|
|
124
|
-
.ss-w-ecard-
|
|
125
|
-
.ss-w-ecard-
|
|
122
|
+
/* stat strip: 1px gap over a line-colored ground paints hairlines between cells, wrap-safe */
|
|
123
|
+
.ss-w-ecard-strip { display: grid; gap: 1px; background: var(--ss-w-line); border-top: 1px solid var(--ss-w-line); }
|
|
124
|
+
.ss-w-ecard-cell { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 10px 4px 11px; background: var(--ss-w-panel); }
|
|
125
|
+
.ss-w-ecard-cval { height: 20px; display: flex; align-items: center; font-size: 17px; font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
|
|
126
|
+
.ss-w-ecard-cval .ss-w-form { width: 42px; }
|
|
127
|
+
.ss-w-ecard-clabel { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--ss-w-faint); font-weight: 600; font-variant-numeric: tabular-nums; }
|
|
128
|
+
|
|
126
129
|
.ss-w-form { justify-self: end; display: flex; height: 6px; width: 48px; border-radius: 4px; overflow: hidden; gap: 2px; }
|
|
127
130
|
.ss-w-form span { display: block; border-radius: 2px; }
|
|
128
131
|
.ss-w-form-w { background: var(--ss-w-pos); }
|