Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions e63334287a3deaa3/m/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,13 @@
body{padding:calc(18px + env(safe-area-inset-top,0px)) calc(16px + env(safe-area-inset-right,0px)) calc(28px + env(safe-area-inset-bottom,0px)) calc(16px + env(safe-area-inset-left,0px))}
.wrap{max-width:760px;margin:0 auto}
header{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:0 12px;margin-bottom:18px}
/* the title takes the room left of the Main site link, and the Turkey Week switch gets a line of its own under them (no height while it is hidden) */
header>div:first-child{flex:1 1 0;min-width:0}
/* the title takes the room left of the theme, language and Main site buttons (.hbtns), but never less than 264px, enough
for "ASCoding" on a line and the count line in at most two lines; where that room isn't there (a phone held upright)
the title gets a line of its own and the buttons go on the next line, under it on the left, wrapping if even they
don't fit on one line (their margin-top only shows then: next to the title, the title is taller).
The Turkey Week switch gets a line of its own under them (no height while it is hidden) */
header>div:first-child{flex:1 1 0;min-width:min(100%,264px)}
header>.hbtns{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;margin-top:12px}
header>.tkrow{flex:0 0 100%;order:1}
header>[data-school]{flex:0 0 100%;order:2;max-width:none}
h1{font-family:var(--f-d);font-weight:800;font-size:44px;line-height:.9;letter-spacing:.01em;margin:0;text-transform:uppercase}
Expand Down Expand Up @@ -152,9 +157,12 @@
<h1><span data-door>ASC</span>oding <span>games</span></h1>
<p class="count" id="count"></p>
</div>
<div data-theme-switch></div> <!-- Auto / Light / Dark (theme.js fills it in) -->
<div data-lang-toggle></div> <!-- English / Español (lang.js fills it in) -->
<a class="full" href="/" target="_top">Main site</a>
<!-- The buttons, kept together: right of the title when there is room, else on a line of their own under it -->
<div class="hbtns">
<div data-theme-switch></div> <!-- Auto / Light / Dark (theme.js fills it in) -->
<div data-lang-toggle></div> <!-- English / Español (lang.js fills it in) -->
<a class="full" href="/" target="_top">Main site</a>
</div>
<!-- The one Turkey Week switch for every game (events.js fills it in and shows it only during the event; see README). It is inside the header so the panels other scripts add under the header come after it. -->
<div class="tkrow"><button type="button" data-turkey-switch hidden></button></div>
<!-- Your school (school.js fills it in; see README). Inside the header too, so the panels added under the header come after it. -->
Expand Down
15 changes: 15 additions & 0 deletions e63334287a3deaa3/news/phone-header-fit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"kind": "fix",
"title": "Tidier top of the phone page",
"tags": ["Phone"],
"items": [
"On a phone held upright, the games count now sits right under the ASCoding Games title on one or two lines, instead of in a thin column with one word per line.",
"The theme, language and Main site buttons now go on their own line under the title, so nothing at the top overlaps any more, in English or Spanish."
],
"es": {
"Tidier top of the phone page": "La parte de arriba de la página para teléfonos, más ordenada",
"Phone": "Teléfono",
"On a phone held upright, the games count now sits right under the ASCoding Games title on one or two lines, instead of in a thin column with one word per line.": "Con el teléfono en vertical, el número de juegos ahora aparece justo debajo del título ASCoding Juegos en una o dos líneas, en vez de en una columna estrecha con una palabra por línea.",
"The theme, language and Main site buttons now go on their own line under the title, so nothing at the top overlaps any more, in English or Spanish.": "Los botones de tema, idioma y Sitio principal ahora van en su propia línea debajo del título, así que ya nada se encima en la parte de arriba, en inglés o en español."
}
}
Loading