Ship Steam login, D1 player sync, and cached「我」dashboard.
Players get a fast TTL-backed homepage (local profile / Cloudflare D1) with dense UI polish; login unlocks /home without blocking on every OpenDota refresh. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+656
-61
@@ -65,6 +65,8 @@
|
||||
/* Matches list + right filter aside (centered column must leave aside room). */
|
||||
--content-data: 1200px;
|
||||
--aside-gap: 20px;
|
||||
/* Patches "AI 解读": grows with right gutter up to this cap. */
|
||||
--patches-aside-max: 420px;
|
||||
--focus-ring: 2px solid var(--sel);
|
||||
}
|
||||
|
||||
@@ -106,6 +108,8 @@ body {
|
||||
.tagbar button:focus-visible,
|
||||
.search:focus-visible,
|
||||
.rankings-region-btn:focus-visible,
|
||||
.steam-login-btn:focus-visible,
|
||||
.auth-logout:focus-visible,
|
||||
.contact-mail:focus-visible,
|
||||
.mobile-demand-btn:focus-visible,
|
||||
#patch-select:focus-visible {
|
||||
@@ -232,6 +236,79 @@ body {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
}
|
||||
.auth-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs);
|
||||
flex: 0 0 auto;
|
||||
min-height: 44px;
|
||||
}
|
||||
.steam-login-btn {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 36px;
|
||||
padding: 0 12px;
|
||||
border-radius: var(--radius-sm);
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
color: var(--text);
|
||||
font: inherit;
|
||||
font-size: var(--fs-body-sm);
|
||||
line-height: var(--lh-body);
|
||||
letter-spacing: 0.04em;
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
transition: color 0.15s, background 0.15s, border-color 0.15s;
|
||||
}
|
||||
.steam-login-btn:hover {
|
||||
color: var(--text);
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
border-color: rgba(140, 170, 210, 0.35);
|
||||
}
|
||||
.auth-user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs);
|
||||
min-width: 0;
|
||||
}
|
||||
.auth-avatar {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: var(--radius-full);
|
||||
object-fit: cover;
|
||||
flex: 0 0 auto;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
.auth-name {
|
||||
max-width: 9em;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: var(--text);
|
||||
font-size: var(--fs-body-sm);
|
||||
line-height: var(--lh-body);
|
||||
}
|
||||
.auth-logout {
|
||||
min-height: 32px;
|
||||
padding: 0 8px;
|
||||
border: 0;
|
||||
border-radius: var(--radius-sm);
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
font: inherit;
|
||||
font-size: var(--fs-label-sm);
|
||||
letter-spacing: 0.04em;
|
||||
cursor: pointer;
|
||||
transition: color 0.15s, background 0.15s;
|
||||
}
|
||||
.auth-logout:hover {
|
||||
color: var(--text);
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
.auth-home-gate .steam-login-btn {
|
||||
margin-top: var(--space-sm);
|
||||
}
|
||||
.contact-mail {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -278,7 +355,7 @@ body {
|
||||
cursor: pointer;
|
||||
transition: color 0.15s;
|
||||
}
|
||||
.main-tab + .main-tab::before {
|
||||
.main-tab:not(.hidden) + .main-tab:not(.hidden)::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
@@ -443,6 +520,7 @@ body.detail-drawer-open .hero-role-toolbar {
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.brand-title { display: none; }
|
||||
.auth-name { display: none; }
|
||||
.main-tab {
|
||||
min-width: 56px;
|
||||
padding: 10px 10px;
|
||||
@@ -2919,7 +2997,12 @@ body:has(#items-view:not(.hidden)) {
|
||||
left: calc(100% + var(--aside-gap));
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 280px;
|
||||
/* Fill available right gutter (centered 820px main); floor 280, cap 420. */
|
||||
width: clamp(
|
||||
280px,
|
||||
calc((100vw - var(--content-read)) / 2 - var(--aside-gap) - 24px),
|
||||
var(--patches-aside-max)
|
||||
);
|
||||
pointer-events: none;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@@ -3047,7 +3130,7 @@ button.patch-summary-chip.is-clickable:hover .patch-summary-chip-name {
|
||||
color: var(--muted);
|
||||
line-height: 1.4;
|
||||
}
|
||||
/* Need ~820 main + 300 aside gutter on each side of optical center. */
|
||||
/* Need ~820 main + ~300 aside gutter on each side of optical center. */
|
||||
@media (max-width: 1440px) {
|
||||
.patches-center-wrap {
|
||||
display: flex;
|
||||
@@ -4423,9 +4506,11 @@ html.mobile-client #mobile-gate {
|
||||
|
||||
/* —— PC post-match player pages (/players) —— */
|
||||
.players-board .players-cluster {
|
||||
max-width: 1100px;
|
||||
width: 100%;
|
||||
max-width: 1224px;
|
||||
margin: 0 auto;
|
||||
padding: var(--space-lg) var(--space-md) 48px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.players-body {
|
||||
display: flex;
|
||||
@@ -4435,27 +4520,301 @@ html.mobile-client #mobile-gate {
|
||||
.players-back {
|
||||
appearance: none;
|
||||
align-self: flex-start;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: 36px;
|
||||
margin: 0;
|
||||
padding: 0 14px 0 10px;
|
||||
border: 1px solid var(--border);
|
||||
background: transparent;
|
||||
color: var(--muted);
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
padding: 6px 12px;
|
||||
border-radius: var(--radius-md);
|
||||
cursor: pointer;
|
||||
}
|
||||
.players-back:hover {
|
||||
background: var(--surface-raised);
|
||||
color: var(--text);
|
||||
border-color: rgba(94, 200, 255, 0.45);
|
||||
font: inherit;
|
||||
font-size: 14px;
|
||||
font-weight: var(--fw-semibold);
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
transition: border-color 0.15s, color 0.15s, background 0.15s;
|
||||
}
|
||||
.players-profile-head,
|
||||
.players-match-head {
|
||||
.players-back-icon {
|
||||
flex: 0 0 auto;
|
||||
display: block;
|
||||
opacity: 0.9;
|
||||
}
|
||||
.players-back:hover,
|
||||
.players-back:focus-visible {
|
||||
color: var(--accent, #5ec8ff);
|
||||
border-color: rgba(94, 200, 255, 0.5);
|
||||
background: rgba(94, 200, 255, 0.08);
|
||||
outline: none;
|
||||
}
|
||||
.players-profile-head {
|
||||
margin-bottom: var(--space-sm);
|
||||
}
|
||||
.players-home {
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
padding: var(--space-md) 0 var(--space-xl);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md);
|
||||
}
|
||||
.players-identity {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-md);
|
||||
padding: 12px 16px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
.players-identity-avatar {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: var(--radius-full);
|
||||
object-fit: cover;
|
||||
flex: 0 0 auto;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
}
|
||||
.players-identity-body {
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
.players-profile-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
.players-profile-title .page-title {
|
||||
margin: 0;
|
||||
}
|
||||
.players-identity .page-sub {
|
||||
margin: 4px 0 0;
|
||||
}
|
||||
.rank-medal {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
flex: 0 0 auto;
|
||||
line-height: 0;
|
||||
}
|
||||
.rank-medal-base,
|
||||
.rank-medal-stars {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
pointer-events: none;
|
||||
}
|
||||
/* OpenDota medals keep ~15–20% canvas padding; size the box to match the 56px avatar so the glyph reads at similar optical weight. */
|
||||
.players-rank-medal {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
margin-inline: -4px;
|
||||
}
|
||||
.players-rank-board {
|
||||
color: var(--muted);
|
||||
font-size: var(--fs-body-sm);
|
||||
font-variant-numeric: tabular-nums;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
.match-rank-medal {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
}
|
||||
.players-section-title {
|
||||
margin: 0 0 8px;
|
||||
font-size: 14px;
|
||||
font-weight: var(--fw-semibold);
|
||||
letter-spacing: 0.06em;
|
||||
color: var(--muted);
|
||||
text-transform: none;
|
||||
}
|
||||
.players-snapshot {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: var(--space-md);
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
.players-snapshot-col {
|
||||
min-width: 0;
|
||||
}
|
||||
.players-stat-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
gap: 6px;
|
||||
}
|
||||
.players-stat-card {
|
||||
min-width: 0;
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--surface-raised);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
.players-stat-label {
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.04em;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.players-stat-value {
|
||||
font-variant-numeric: tabular-nums;
|
||||
font-size: 16px;
|
||||
font-weight: var(--fw-semibold);
|
||||
color: var(--text);
|
||||
line-height: 1.2;
|
||||
}
|
||||
.players-analysis {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
|
||||
gap: var(--space-md);
|
||||
}
|
||||
.players-analysis-side {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md);
|
||||
min-width: 0;
|
||||
}
|
||||
.players-analysis-block {
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--panel-soft);
|
||||
min-width: 0;
|
||||
}
|
||||
.players-top-heroes {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
.players-peers {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
|
||||
gap: 6px;
|
||||
}
|
||||
.players-top-hero,
|
||||
.players-peer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 6px 8px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--surface-raised);
|
||||
color: inherit;
|
||||
text-align: left;
|
||||
font: inherit;
|
||||
cursor: default;
|
||||
min-width: 0;
|
||||
}
|
||||
.players-peer {
|
||||
cursor: pointer;
|
||||
border-color: var(--border);
|
||||
}
|
||||
.players-peer:hover {
|
||||
border-color: rgba(94, 200, 255, 0.4);
|
||||
}
|
||||
.players-top-hero img {
|
||||
width: 48px;
|
||||
height: 27px;
|
||||
object-fit: cover;
|
||||
border-radius: var(--radius-sm);
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.players-peer img {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: var(--radius-full);
|
||||
object-fit: cover;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.players-top-hero > div,
|
||||
.players-peer > div {
|
||||
min-width: 0;
|
||||
}
|
||||
.players-top-hero strong,
|
||||
.players-peer strong {
|
||||
display: block;
|
||||
font-size: var(--fs-body-sm);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.players-top-hero span,
|
||||
.players-peer span {
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.players-highs {
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
margin: 0 0 8px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.players-heatmap {
|
||||
display: grid;
|
||||
grid-template-rows: repeat(7, 9px);
|
||||
grid-auto-flow: column;
|
||||
grid-auto-columns: 9px;
|
||||
gap: 2px;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.players-heatmap-wrap {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: flex-start;
|
||||
gap: 12px;
|
||||
}
|
||||
.players-heatmap-legend {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.players-heatmap-legend .players-heat-cell {
|
||||
display: inline-block;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.players-heat-cell {
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
border-radius: 2px;
|
||||
background: rgba(140, 170, 210, 0.12);
|
||||
}
|
||||
.players-heat-cell.lv1 { background: rgba(61, 206, 122, 0.25); }
|
||||
.players-heat-cell.lv2 { background: rgba(61, 206, 122, 0.45); }
|
||||
.players-heat-cell.lv3 { background: rgba(61, 206, 122, 0.7); }
|
||||
.players-heat-cell.lv4 { background: rgba(61, 206, 122, 0.95); }
|
||||
.players-recent-section {
|
||||
margin-top: 4px;
|
||||
}
|
||||
.players-recent-section > .players-section-title {
|
||||
margin-bottom: 10px;
|
||||
color: var(--text);
|
||||
font-size: 16px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
.players-recent {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
gap: 4px;
|
||||
}
|
||||
.players-recent-row {
|
||||
appearance: none;
|
||||
@@ -4468,12 +4827,14 @@ html.mobile-client #mobile-gate {
|
||||
background: var(--surface-raised);
|
||||
color: var(--text);
|
||||
border-radius: var(--radius-md);
|
||||
padding: 10px 12px;
|
||||
padding: 8px 12px;
|
||||
cursor: pointer;
|
||||
transition: border-color 0.15s, background 0.15s;
|
||||
}
|
||||
.players-recent-row:hover {
|
||||
border-color: rgba(94, 200, 255, 0.4);
|
||||
.players-recent-row:hover,
|
||||
.players-recent-row:focus-visible {
|
||||
border-color: rgba(94, 200, 255, 0.45);
|
||||
outline: none;
|
||||
}
|
||||
.players-recent-row.won {
|
||||
border-left: 3px solid var(--good);
|
||||
@@ -4482,49 +4843,186 @@ html.mobile-client #mobile-gate {
|
||||
border-left: 3px solid var(--danger);
|
||||
}
|
||||
.players-recent-portrait {
|
||||
width: 64px;
|
||||
height: 36px;
|
||||
width: 56px;
|
||||
height: 32px;
|
||||
object-fit: cover;
|
||||
border-radius: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.players-recent-body {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
/* hero/KDA grows left | duration/when + result/id tight on the right */
|
||||
grid-template-columns: minmax(0, 1fr) auto auto;
|
||||
column-gap: 20px;
|
||||
align-items: center;
|
||||
}
|
||||
.players-recent-top,
|
||||
.players-recent-bot {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
.players-recent-hero-col,
|
||||
.players-recent-meta,
|
||||
.players-recent-end {
|
||||
display: grid;
|
||||
grid-template-rows: 1.3em 1.15em;
|
||||
row-gap: 2px;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
.players-recent-top {
|
||||
.players-recent-hero-col {
|
||||
min-width: 0;
|
||||
}
|
||||
.players-recent-meta {
|
||||
justify-items: end;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.players-recent-end {
|
||||
justify-items: end;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.players-recent-hero {
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
line-height: 1.3em;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.players-recent-bot {
|
||||
margin-top: 4px;
|
||||
.players-recent-kda {
|
||||
font-size: 12px;
|
||||
line-height: 1.15em;
|
||||
color: var(--muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.players-recent-dur {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
line-height: 1.2;
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
color: var(--text);
|
||||
}
|
||||
.players-recent-when {
|
||||
font-size: 12px;
|
||||
line-height: 1.2;
|
||||
color: var(--muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.players-recent-wl {
|
||||
font-size: 13px;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.04em;
|
||||
line-height: 1.3em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.players-recent-id {
|
||||
font-size: 12px;
|
||||
line-height: 1.15em;
|
||||
color: var(--muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.players-recent-wl.won {
|
||||
color: var(--good);
|
||||
}
|
||||
.players-recent-wl.lost {
|
||||
color: var(--danger);
|
||||
}
|
||||
@media (max-width: 980px) {
|
||||
.players-snapshot {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.players-analysis {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.players-stat-row {
|
||||
grid-template-columns: repeat(5, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.players-board .players-cluster {
|
||||
padding-inline: 12px;
|
||||
}
|
||||
.players-recent-body {
|
||||
column-gap: 14px;
|
||||
}
|
||||
}
|
||||
.players-match-shell {
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
padding: var(--space-md) 0 var(--space-xl);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-md);
|
||||
}
|
||||
.players-match-shell > .players-back {
|
||||
margin-bottom: -4px;
|
||||
}
|
||||
.players-match-head {
|
||||
margin: 0;
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--panel-soft);
|
||||
}
|
||||
.players-match-summary .page-title {
|
||||
margin: 0;
|
||||
font-size: 18px;
|
||||
}
|
||||
.players-match-summary .page-sub {
|
||||
margin: 6px 0 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 14px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.players-match-winner {
|
||||
color: var(--good);
|
||||
font-weight: 700;
|
||||
}
|
||||
.player-scoreboard {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 18px;
|
||||
gap: 12px;
|
||||
}
|
||||
.player-scoreboard-columns,
|
||||
.player-match-row {
|
||||
/* name capped | metrics fill remaining | items fixed */
|
||||
grid-template-columns: minmax(11rem, 16rem) minmax(0, 1fr) 14.5rem;
|
||||
}
|
||||
.player-scoreboard-columns {
|
||||
display: grid;
|
||||
column-gap: 12px;
|
||||
align-items: center;
|
||||
padding: 0 12px;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
.player-scoreboard-metric-labels,
|
||||
.player-match-metrics {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
column-gap: 12px;
|
||||
width: 100%;
|
||||
justify-self: stretch;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.player-scoreboard-items-label {
|
||||
text-align: right;
|
||||
}
|
||||
.player-team {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
border-radius: var(--radius-lg);
|
||||
background: var(--panel-soft);
|
||||
overflow: hidden;
|
||||
}
|
||||
.player-team.radiant {
|
||||
.player-team.won {
|
||||
border-color: rgba(61, 206, 122, 0.35);
|
||||
}
|
||||
.player-team.dire {
|
||||
.player-team.lost {
|
||||
border-color: rgba(232, 106, 106, 0.35);
|
||||
}
|
||||
.player-team-head {
|
||||
@@ -4532,13 +5030,13 @@ html.mobile-client #mobile-gate {
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
gap: 12px;
|
||||
padding: 10px 14px;
|
||||
font-size: 14px;
|
||||
padding: 8px 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.player-team.radiant .player-team-head {
|
||||
.player-team.won .player-team-head {
|
||||
background: rgba(61, 206, 122, 0.12);
|
||||
}
|
||||
.player-team.dire .player-team-head {
|
||||
.player-team.lost .player-team-head {
|
||||
background: rgba(232, 106, 106, 0.12);
|
||||
}
|
||||
.player-team-name {
|
||||
@@ -4547,7 +5045,8 @@ html.mobile-client #mobile-gate {
|
||||
}
|
||||
.player-team-stats {
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
font-size: 12px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.player-team-rows {
|
||||
display: flex;
|
||||
@@ -4555,10 +5054,9 @@ html.mobile-client #mobile-gate {
|
||||
}
|
||||
.player-match-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(160px, 1.2fr) minmax(220px, 1.4fr) auto;
|
||||
gap: 12px;
|
||||
column-gap: 12px;
|
||||
align-items: center;
|
||||
padding: 10px 14px;
|
||||
padding: 8px 12px;
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
.player-match-row.is-focus {
|
||||
@@ -4574,24 +5072,48 @@ html.mobile-client #mobile-gate {
|
||||
min-width: 0;
|
||||
}
|
||||
.player-match-portrait {
|
||||
width: 72px;
|
||||
height: 40px;
|
||||
width: 64px;
|
||||
height: 36px;
|
||||
object-fit: cover;
|
||||
border-radius: 4px;
|
||||
border-radius: var(--radius-sm);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.player-match-meta {
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
.player-match-name {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font-weight: 700;
|
||||
min-width: 0;
|
||||
}
|
||||
a.player-match-name-link,
|
||||
.player-match-name-anon {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
a.player-match-name-link {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
border-bottom: 1px solid transparent;
|
||||
}
|
||||
a.player-match-name-link:hover {
|
||||
color: var(--accent, #5ec8ff);
|
||||
border-bottom-color: rgba(94, 200, 255, 0.45);
|
||||
}
|
||||
.player-match-name-anon {
|
||||
color: var(--muted, #8fa3bc);
|
||||
font-weight: 600;
|
||||
}
|
||||
.players-enrich-status {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
}
|
||||
.player-mvp-badge {
|
||||
flex-shrink: 0;
|
||||
font-size: 10px;
|
||||
@@ -4606,28 +5128,78 @@ html.mobile-client #mobile-gate {
|
||||
margin-top: 2px;
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
.player-match-sub > span:first-child {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.player-match-badges {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.player-party-badge {
|
||||
flex-shrink: 0;
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 0.06em;
|
||||
border-radius: 3px;
|
||||
padding: 1px 5px;
|
||||
color: #0b1018;
|
||||
background: #8fa3bc;
|
||||
}
|
||||
.player-party-badge.party-a {
|
||||
background: #5ec8ff;
|
||||
}
|
||||
.player-party-badge.party-b {
|
||||
background: #e8c878;
|
||||
}
|
||||
.player-party-badge.party-c {
|
||||
background: #9b7ebd;
|
||||
}
|
||||
.player-party-badge.party-d {
|
||||
background: #3dce7a;
|
||||
}
|
||||
.player-match-metrics {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px 14px;
|
||||
align-items: baseline;
|
||||
font-size: 13px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.player-match-metrics > span {
|
||||
display: inline-flex;
|
||||
align-items: baseline;
|
||||
justify-content: center;
|
||||
gap: 4px;
|
||||
white-space: nowrap;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.player-scoreboard-metric-labels > span {
|
||||
text-align: center;
|
||||
}
|
||||
.player-match-metrics em {
|
||||
font-style: normal;
|
||||
color: var(--muted);
|
||||
margin-right: 4px;
|
||||
font-size: 11px;
|
||||
display: none;
|
||||
}
|
||||
.player-match-items {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px;
|
||||
justify-content: flex-end;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, 34px);
|
||||
gap: 3px;
|
||||
justify-content: end;
|
||||
width: 14.5rem;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.player-match-item {
|
||||
width: 36px;
|
||||
height: 28px;
|
||||
width: 34px;
|
||||
height: 26px;
|
||||
border-radius: 3px;
|
||||
background: rgba(8, 12, 20, 0.55);
|
||||
overflow: hidden;
|
||||
@@ -4643,11 +5215,34 @@ html.mobile-client #mobile-gate {
|
||||
.player-match-item.empty {
|
||||
opacity: 0.35;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
@media (max-width: 1100px) {
|
||||
.player-scoreboard-columns,
|
||||
.player-match-row {
|
||||
grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr) 14.5rem;
|
||||
}
|
||||
}
|
||||
@media (max-width: 760px) {
|
||||
.player-scoreboard-columns {
|
||||
display: none;
|
||||
}
|
||||
.player-match-row {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 8px;
|
||||
}
|
||||
.player-match-metrics {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
column-gap: 10px;
|
||||
row-gap: 4px;
|
||||
width: 100%;
|
||||
justify-self: stretch;
|
||||
}
|
||||
.player-match-metrics em {
|
||||
display: inline;
|
||||
font-style: normal;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.player-match-items {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user