Skip to content

Commit 3eadaad

Browse files
committed
Back Room: tidier layout, avatar pencil chip, editorial What's new, Flux banner
- Online panel: the "You" and Name tile rows become a chip (avatar + pencil, name, seat) in the panel's corner that opens a popover with name, Edit avatar, name tile colour, Hide me and Let people join. Esc / outside click / x close it. - Hot now, Climbing, Playing now, Party and Online join into one card in the default order (Back Room and phone page). - What's new strip: editorial look (rule, dateline, headline, first points of the latest entry), plain tags instead of glowing pills. - Flux Preformance: a full-width partner banner under the strip with the brand's photo (flux-oats.webp replaces flux-oats.png), no Sponsored tag. - Your school: uses the full width; folds to one line with a pencil once picked. - Game cards: rows sized to their own cards; wide cards centre their text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cw2rM8nbFgNAf9r2nRiXw6
1 parent 17f75ce commit 3eadaad

9 files changed

Lines changed: 283 additions & 120 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

‎e63334287a3deaa3/flux-oats.png‎

-45.2 KB
Binary file not shown.

‎e63334287a3deaa3/flux-oats.webp‎

56.7 KB
Loading

‎e63334287a3deaa3/games.css‎

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@
7373
Even rows: layout.js counts each section's visible cards and picks how many columns it uses (--ev-cols, up to
7474
--ev-max) and which cards are wide (data-ev-w), so every row ends flush (see README: Even rows). Without it
7575
(the script not loaded yet) the grid uses --ev-max columns and the .wide / .pw cards below. */
76-
.gc-grid{--ev-max:4;display:grid;grid-template-columns:repeat(var(--ev-cols,var(--ev-max)),minmax(0,1fr));grid-auto-rows:1fr;gap:18px}
77-
@media (max-width:959px){.gc-grid{--ev-max:3;grid-auto-rows:auto}}
76+
/* Rows are as tall as their own cards (not all as tall as the tallest row), so a short row has no dead space. */
77+
.gc-grid{--ev-max:4;display:grid;grid-template-columns:repeat(var(--ev-cols,var(--ev-max)),minmax(0,1fr));grid-auto-rows:auto;gap:18px}
78+
@media (max-width:959px){.gc-grid{--ev-max:3}}
7879
@media (max-width:879px){.gc-grid{--ev-max:2;gap:14px}}
7980
@media (max-width:330px){.gc-grid{--ev-max:1}}
8081

@@ -109,19 +110,21 @@
109110
.br-games .gc-grid[data-ev] > .gc[data-ev-w]{grid-column:span 2}
110111
@media (min-width:960px), (min-width:561px) and (max-width:879px){
111112
.br-games .gc-grid:not([data-ev]) > .gc.wide{flex-direction:row}
112-
.br-games .gc-grid:not([data-ev]) > .gc.wide .shot{flex:0 0 52%;aspect-ratio:auto;min-height:220px;margin:7px 0 7px 7px}
113+
.br-games .gc-grid:not([data-ev]) > .gc.wide .shot{flex:0 0 52%;aspect-ratio:auto;min-height:200px;margin:7px 0 7px 7px}
113114
.br-games .gc-grid:not([data-ev]) > .gc.wide .shot img{position:absolute;inset:0}
114-
.br-games .gc-grid:not([data-ev]) > .gc.wide .body{padding:16px 18px 16px;gap:9px}
115+
.br-games .gc-grid:not([data-ev]) > .gc.wide .body{padding:16px 22px 16px;gap:9px;justify-content:center}
116+
.br-games .gc-grid:not([data-ev]) > .gc.wide .actions{margin-top:6px}
115117
.br-games .gc-grid:not([data-ev]) > .gc.wide h3{font-size:31px}
116118
.br-games .gc-grid:not([data-ev]) > .gc.wide .gc-blurb{font-size:15px;-webkit-line-clamp:4;min-height:0}
117119
.br-games .gc-grid:not([data-ev]) > .gc.wide .gc-more summary{right:auto;left:calc(52% - 31px)}
118120
.br-games .gc-grid:not([data-ev]) > .gc.wide .gc-more[open] summary{left:auto;right:15px} /* open: the info covers the whole card, so the × goes back to its corner */
119121
}
120122
@media (min-width:561px){
121123
.br-games .gc-grid[data-ev] > .gc[data-ev-w]{flex-direction:row}
122-
.br-games .gc-grid[data-ev] > .gc[data-ev-w] .shot{flex:0 0 52%;aspect-ratio:auto;min-height:220px;margin:7px 0 7px 7px}
124+
.br-games .gc-grid[data-ev] > .gc[data-ev-w] .shot{flex:0 0 52%;aspect-ratio:auto;min-height:200px;margin:7px 0 7px 7px}
123125
.br-games .gc-grid[data-ev] > .gc[data-ev-w] .shot img{position:absolute;inset:0}
124-
.br-games .gc-grid[data-ev] > .gc[data-ev-w] .body{padding:16px 18px 16px;gap:9px}
126+
.br-games .gc-grid[data-ev] > .gc[data-ev-w] .body{padding:16px 22px 16px;gap:9px;justify-content:center}
127+
.br-games .gc-grid[data-ev] > .gc[data-ev-w] .actions{margin-top:6px}
125128
.br-games .gc-grid[data-ev] > .gc[data-ev-w] h3{font-size:31px}
126129
.br-games .gc-grid[data-ev] > .gc[data-ev-w] .gc-blurb{font-size:15px;-webkit-line-clamp:4;min-height:0}
127130
.br-games .gc-grid[data-ev] > .gc[data-ev-w] .gc-more summary{right:auto;left:calc(52% - 31px)}
@@ -234,3 +237,18 @@
234237
.br-games .pz a:focus-visible{outline:3px solid var(--gs-c);outline-offset:2px}
235238
@media (hover: hover){.br-games .pz a:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--gs-c) 50%,var(--line))}}
236239
@media (max-width:560px){.br-games .pz img{width:46px;height:36px}.pz-t b{font-size:12.5px}}
240+
241+
/* ---------- the live panels as one surface ----------
242+
Hot right now, Fastest climbing, Playing now, Party and Online (hot.js, climb.js, playingnow.js, party.js, social.js)
243+
sit one under another in the page's default order. Instead of five boxes with gaps between them they read as one
244+
card with a hairline between its parts. Only while they're direct children of .wrap: a custom order from Edit layout
245+
moves them into .br-games, where each keeps its own box. Each script's own styles are untouched. */
246+
.wrap > :is(#hotnow,#climbing,#playingnow,#party,#online){padding-top:0;margin-top:22px}
247+
.wrap > :is(#hotnow,#climbing,#playingnow,#party,#online):not([hidden]) ~ :is(#climbing,#playingnow,#party,#online){margin-top:0}
248+
.wrap > :is(#hotnow,#climbing,#playingnow,#party,#online):not([hidden]) ~ :is(#climbing,#playingnow,#party,#online) > :is(.pty,.onl){border-top-left-radius:0;border-top-right-radius:0;border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)}
249+
.wrap > :is(#hotnow,#climbing,#playingnow,#party,#online):has(~ :is(#climbing,#playingnow,#party,#online):not([hidden])) > :is(.pty,.onl){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0}
250+
html.tv-on .wrap > :is(#hotnow,#climbing,#playingnow,#party,#online):not([hidden]) ~ :is(#climbing,#playingnow,#party,#online) > :is(.pty,.onl){border-top-width:1px!important}
251+
html.tv-on .wrap > :is(#hotnow,#climbing,#playingnow,#party,#online):has(~ :is(#climbing,#playingnow,#party,#online):not([hidden])) > :is(.pty,.onl){border-bottom-width:0!important}
252+
/* the Online part takes the same hard shadow as the others on the Retro TV, so the card's edge is one line */
253+
html.tv-on .wrap > #online > .onl{box-shadow:4px 4px 0 rgba(4,14,40,.45);border-width:2px}
254+
html.tv-on .wrap > :is(#hotnow,#climbing,#playingnow,#party):not([hidden]) ~ #online > .onl{border-top-width:1px}

‎e63334287a3deaa3/m/index.html‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@
148148
body .pty h2{font-family:var(--f-d);font-weight:800;font-size:30px;letter-spacing:.01em;text-transform:uppercase;color:var(--ink)}
149149
.pty .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 18px;border-radius:10px;border:1px solid var(--line);background:var(--panel-2);font-family:var(--f-b);font-size:15px}
150150
.pty .btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
151+
/* The live panels (Hot right now, Fastest climbing, Playing now, Party, Online) as one card with a hairline between its
152+
parts, as on the computer version (games.css). Only in the page's own order: Edit layout's rows sit between them otherwise. */
153+
body .wrap > :is(#hotnow,#climbing,#playingnow,#party,#online):has(~ :is(#climbing,#playingnow,#party,#online):not([hidden])){margin-bottom:0!important}
154+
body .wrap > :is(#hotnow,#climbing,#playingnow,#party,#online):not([hidden]) ~ :is(#climbing,#playingnow,#party,#online){padding-top:0!important}
155+
body .wrap > :is(#hotnow,#climbing,#playingnow,#party,#online):not([hidden]) ~ :is(#climbing,#playingnow,#party,#online) > :is(.pty,.onl){border-top-left-radius:0;border-top-right-radius:0;border-top:1px solid color-mix(in srgb,var(--line) 70%,transparent)!important}
156+
body .wrap > :is(#hotnow,#climbing,#playingnow,#party,#online):has(~ :is(#climbing,#playingnow,#party,#online):not([hidden])) > :is(.pty,.onl){border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-width:0!important}
157+
html.tv-on body .wrap > #online > .onl{box-shadow:4px 4px 0 rgba(4,14,40,.45);border-width:2px}
151158
</style>
152159
</head>
153160
<body>

0 commit comments

Comments
 (0)