Template:Infobox tournament/styles.css: Difference between revisions
Template page
More actions
m Infobox tournament: auto-generate a lead paragraph from the same infobox parameters |
m Build reusable tournament data and rendering system |
||
| Line 88: | Line 88: | ||
font-weight: normal; | font-weight: normal; | ||
opacity: .72; | opacity: .72; | ||
} | |||
.loka-championship { | |||
margin: .35em .5em .5em; | |||
padding: .45em .5em; | |||
border: 1px solid rgba(240, 207, 142, .18); | |||
border-radius: 3px; | |||
background: rgba(240, 207, 142, .045); | |||
} | |||
.loka-championship-heading { | |||
margin-bottom: .4em; | |||
color: #f0cf8e; | |||
font-size: .7em; | |||
font-weight: 700; | |||
letter-spacing: .04em; | |||
text-align: center; | |||
text-transform: uppercase; | |||
} | |||
.loka-championship-transition { | |||
display: grid; | |||
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); | |||
align-items: center; | |||
gap: .35em; | |||
} | |||
.loka-championship-person { | |||
min-width: 0; | |||
text-align: center; | |||
} | |||
.loka-championship-label, | |||
.loka-championship-name { | |||
display: block; | |||
} | |||
.loka-championship-label { | |||
font-size: .62em; | |||
letter-spacing: .03em; | |||
opacity: .62; | |||
text-transform: uppercase; | |||
} | |||
.loka-championship-name { | |||
margin-top: .08em; | |||
font-size: .84em; | |||
font-weight: 600; | |||
overflow-wrap: anywhere; | |||
} | |||
.loka-championship-arrow { | |||
color: #f0cf8e; | |||
opacity: .72; | |||
} | |||
.loka-championship-attendance { | |||
display: flex; | |||
justify-content: space-between; | |||
gap: .5em; | |||
margin-top: .4em; | |||
padding-top: .35em; | |||
border-top: 1px solid rgba(255, 255, 255, .08); | |||
font-size: .68em; | |||
} | |||
.loka-championship-attendance span:first-child { | |||
letter-spacing: .03em; | |||
opacity: .62; | |||
text-transform: uppercase; | |||
} | } | ||
| Line 250: | Line 320: | ||
.loka-tournament-col-heading, | .loka-tournament-col-heading, | ||
.loka-podium-label, | .loka-podium-label, | ||
.loka-championship-heading, | |||
.loka-championship-arrow, | |||
.loka-chrono-header-title, | .loka-chrono-header-title, | ||
.loka-chrono-header-side { | .loka-chrono-header-side { | ||
color: #9c6b2e; | color: #9c6b2e; | ||
} | |||
.loka-championship { | |||
border-color: rgba(156, 107, 46, .2); | |||
background: rgba(156, 107, 46, .045); | |||
} | |||
.loka-championship-attendance { | |||
border-top-color: rgba(0, 0, 0, .08); | |||
} | } | ||
Revision as of 22:52, 18 August 2026
.loka-tournament-columns {
display: grid;
grid-template-columns: 1fr 1fr;
}
.loka-tournament-details {
padding: .5em;
}
.loka-tournament-col-heading {
font-size: .7em;
font-weight: 700;
color: #f0cf8e;
text-transform: uppercase;
letter-spacing: .04em;
}
.loka-tournament-details .loka-tournament-col-heading {
margin-bottom: .45em;
}
/* Single column, not 2 -- side by side each tile only got ~half the
Details column's own width (itself already half the box), so anything
longer than a short word (a full town name, a full written-out date)
wrapped awkwardly. Stacked, each tile gets the Details column's full
width instead. */
.loka-tournament-details-grid {
display: grid;
grid-template-columns: 1fr;
gap: .45em;
}
.loka-tournament-detail-label {
display: block;
font-size: .68em;
opacity: .65;
text-transform: uppercase;
letter-spacing: .03em;
margin-bottom: .1em;
}
.loka-tournament-detail-value {
display: block;
font-size: .85em;
word-break: break-word;
}
.loka-tournament-runners-tile {
grid-column: 1 / -1;
margin-top: .45em;
}
.loka-podium-row {
display: flex;
align-items: center;
gap: .5em;
padding: .4em .5em;
}
/* Without this the text block only ever shrink-wraps to its own content,
leaving the rest of the row's width as visible dead space on the right
(worse the shorter the team/player name) -- stretching it to fill the
row means that space goes to normal left-aligned text instead. */
.loka-podium-info {
flex: 1;
min-width: 0;
}
.loka-podium-row img {
image-rendering: pixelated;
}
.loka-podium-label {
font-size: .7em;
font-weight: 700;
color: #f0cf8e;
text-transform: uppercase;
letter-spacing: .04em;
}
.loka-podium-team,
.loka-podium-single {
font-weight: 600;
}
.loka-podium-info .loka-hlist {
font-size: .82em;
font-weight: normal;
opacity: .72;
}
.loka-championship {
margin: .35em .5em .5em;
padding: .45em .5em;
border: 1px solid rgba(240, 207, 142, .18);
border-radius: 3px;
background: rgba(240, 207, 142, .045);
}
.loka-championship-heading {
margin-bottom: .4em;
color: #f0cf8e;
font-size: .7em;
font-weight: 700;
letter-spacing: .04em;
text-align: center;
text-transform: uppercase;
}
.loka-championship-transition {
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
align-items: center;
gap: .35em;
}
.loka-championship-person {
min-width: 0;
text-align: center;
}
.loka-championship-label,
.loka-championship-name {
display: block;
}
.loka-championship-label {
font-size: .62em;
letter-spacing: .03em;
opacity: .62;
text-transform: uppercase;
}
.loka-championship-name {
margin-top: .08em;
font-size: .84em;
font-weight: 600;
overflow-wrap: anywhere;
}
.loka-championship-arrow {
color: #f0cf8e;
opacity: .72;
}
.loka-championship-attendance {
display: flex;
justify-content: space-between;
gap: .5em;
margin-top: .4em;
padding-top: .35em;
border-top: 1px solid rgba(255, 255, 255, .08);
font-size: .68em;
}
.loka-championship-attendance span:first-child {
letter-spacing: .03em;
opacity: .62;
text-transform: uppercase;
}
.loka-podium-disclaimer {
font-size: .7em;
font-style: italic;
opacity: .6;
text-align: center;
padding: .25em .6em .4em;
}
/* Small centred flourish under the disclaimer -- deliberately full colour
(not muted like the disclaimer text itself) so it reads as a closing
accent rather than more faded text. Inset from the sides rather than a
full-width rule, since the box no longer uses full dividers anywhere
else. Deliberately NOT repeated under the chronology header bar --
there, it sat visually between the heading and the current tournament's
own name in the pane below, reading as an odd divider between two
things that belong together rather than a closing accent. */
.loka-podium-disclaimer::after {
content: "";
display: block;
width: 48px;
height: 1px;
margin: .35em auto 0;
background: #f0cf8e;
}
/* Plain row, not a solid coloured bar, no dividers above or below --
fully matches the same "eyebrow" label used for Tournament Details,
Winning Team, and Winner/2nd Place/3rd Place (loka-tournament-col-heading
/ loka-podium-label): identical font-size, weight, case, letter-spacing
and colour on all three (title and both side labels alike), so the
whole set reads as one consistent family instead of some being bold
and gold while others are smaller and muted. */
.loka-chrono-header {
position: relative;
display: grid;
grid-template-columns: 1fr 1fr 1fr;
align-items: center;
padding: .35em 0;
}
.loka-chrono-header-title,
.loka-chrono-header-side {
font-size: .7em;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .04em;
color: #f0cf8e;
text-align: center;
white-space: nowrap;
}
.loka-chrono-header-side--prev {
grid-column: 1;
}
.loka-chrono-header-side--next {
grid-column: 3;
}
/* The side label's own column now runs edge-to-edge with the infobox (no
header padding, see .loka-chrono-header), so an arrow positioned off the
*column's* edge would land outside .loka-infobox's overflow:hidden and
get clipped invisible. Instead the arrow anchors to this inner,
shrink-wrapped text span -- it sits just outside the actual glyphs,
safely inside the box, and (being outside the centred string itself)
never shifts where "Previous"/"Next" centres. */
.loka-chrono-header-side-text {
position: relative;
display: inline-block;
}
.loka-chrono-header-side--prev .loka-chrono-header-side-text::before {
content: "\2190";
position: absolute;
right: 100%;
margin-right: .35em;
}
.loka-chrono-header-side--next .loka-chrono-header-side-text::after {
content: "\2192";
position: absolute;
left: 100%;
margin-left: .35em;
}
/* Pulled out of the grid entirely and centred against the whole header's
width instead of being confined to column 2's share of it -- lets a
wide, non-wrapping title extend past where column 2 alone would end
without affecting the side labels' position (they're independently
pinned to columns 1/3 above) or the grid's own track sizing. */
.loka-chrono-header-title {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.loka-chrono-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}
.loka-chrono-pane {
display: flex;
flex-direction: column;
justify-content: center;
padding: .4em .35em;
text-align: center;
font-size: .78em;
}
.loka-chrono-title--current {
font-weight: 700;
}
.loka-chrono-year {
font-weight: normal;
opacity: .75;
font-size: .9em;
margin-top: .2em;
}
.loka-chrono-tba {
color: rgba(255, 255, 255, .4);
}
.loka-chrono-empty {
color: rgba(255, 255, 255, .4);
font-style: italic;
}
/* Below this width the box itself has already gone full-width and
unfloated (see Template:Infobox/styles.css), but Details|Results side
by side would still squeeze each into an unreadably narrow column, so
they stack instead -- the extra top margin (on top of Details' own
bottom padding and Results' own top padding) keeps the two from reading
as one continuous block once stacked. */
@media (max-width: 600px) {
.loka-tournament-columns {
grid-template-columns: 1fr;
}
.loka-tournament-results {
margin-top: .3em;
}
}
/* The light gold accent (#f0cf8e) and the semi-transparent white "TBA"/
"--" text both assume a dark box background to show up against -- now
that .loka-infobox switches to a light card in light mode (see
Template:Infobox/styles.css), these need darker equivalents of their
own or they'd wash out to near-invisible pastel/white-on-cream. Reuses
the same darker amber (#9c6b2e) Template:Biome already uses for its own
light-card label variant, for a consistent look. Doesn't touch the
header photo's own overlay text (name/type, "Winning Team" etc. sitting
directly on the photo) -- that has its own permanent dark scrim/shadow
independent of page theme, so it's already fine in both modes. */
@media (prefers-color-scheme: light) {
.loka-tournament-col-heading,
.loka-podium-label,
.loka-championship-heading,
.loka-championship-arrow,
.loka-chrono-header-title,
.loka-chrono-header-side {
color: #9c6b2e;
}
.loka-championship {
border-color: rgba(156, 107, 46, .2);
background: rgba(156, 107, 46, .045);
}
.loka-championship-attendance {
border-top-color: rgba(0, 0, 0, .08);
}
.loka-chrono-tba,
.loka-chrono-empty {
color: rgba(0, 0, 0, .35);
}
.loka-podium-disclaimer::after {
background: #9c6b2e;
}
}