Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox tournament/styles.css: Difference between revisions

Template page
m Build reusable tournament data and rendering system
m Build reusable tournament data and rendering system
Line 1: Line 1:
.loka-infobox.loka-infobox--wide {
.loka-infobox.loka-infobox--wide { width:400px; }
width: 400px;
}
 
.loka-infobox.loka-infobox--wide .loka-infobox-header-photo {
height: 142px;
}


.loka-infobox.loka-infobox--wide .loka-infobox-header-photo { height:140px; }
.loka-infobox.loka-infobox--wide .loka-infobox-header-photo img {
.loka-infobox.loka-infobox--wide .loka-infobox-header-photo img {
object-position: center 30%;
object-position:center 26%;
-webkit-mask-image: linear-gradient(to bottom,
-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 42%,rgba(0,0,0,.96) 52%,rgba(0,0,0,.84) 64%,rgba(0,0,0,.62) 76%,rgba(0,0,0,.35) 88%,transparent 100%);
#000 0%, #000 44%,
mask-image:linear-gradient(to bottom,#000 0%,#000 42%,rgba(0,0,0,.96) 52%,rgba(0,0,0,.84) 64%,rgba(0,0,0,.62) 76%,rgba(0,0,0,.35) 88%,transparent 100%);
rgba(0, 0, 0, .92) 54%,
rgba(0, 0, 0, .74) 66%,
rgba(0, 0, 0, .48) 78%,
rgba(0, 0, 0, .24) 89%,
transparent 100%);
mask-image: linear-gradient(to bottom,
#000 0%, #000 44%,
rgba(0, 0, 0, .92) 54%,
rgba(0, 0, 0, .74) 66%,
rgba(0, 0, 0, .48) 78%,
rgba(0, 0, 0, .24) 89%,
transparent 100%);
}
}
.loka-infobox.loka-infobox--wide .loka-infobox-header-scrim { background:linear-gradient(to bottom,rgba(5,5,5,.75) 0,rgba(5,5,5,.32) 50px,transparent 92px); }


.loka-infobox.loka-infobox--wide .loka-infobox-header-scrim {
.loka-tournament-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
background: linear-gradient(to bottom,
.loka-tournament-details { padding:.52em; }
rgba(6, 6, 6, .72) 0,
.loka-tournament-col-heading,.loka-tournament-event-results-heading,.loka-podium-label,.loka-championship-heading,.loka-chrono-header-title,.loka-chrono-header-side {
rgba(6, 6, 6, .3) 48px,
color:#f0cf8e;
transparent 88px);
font-size:.7em;
font-weight:700;
letter-spacing:.04em;
text-transform:uppercase;
}
}
.loka-tournament-details .loka-tournament-col-heading { margin-bottom:.42em; }


.loka-tournament-columns {
.loka-tournament-event-summary { padding:.36em .42em; background:rgba(255,255,255,.035); border-radius:3px; }
display: grid;
.loka-tournament-event-summary--secondary { margin-top:.35em; }
grid-template-columns: 1fr 1fr;
.loka-tournament-event-summary-heading { font-size:.86em; }
}
.loka-tournament-event-summary-date,.loka-tournament-event-summary-bracket { display:block; margin-top:.12em; font-size:.73em; opacity:.74; }
.loka-tournament-shared-details { display:grid; gap:.38em; margin-top:.45em; }
.loka-tournament-detail-label { display:block; margin-bottom:.08em; font-size:.66em; opacity:.64; text-transform:uppercase; letter-spacing:.03em; }
.loka-tournament-detail-value { display:block; font-size:.83em; overflow-wrap:anywhere; }


.loka-tournament-details {
.loka-tournament-event-results--secondary { margin-top:.25em; padding-top:.25em; border-top:1px solid rgba(255,255,255,.07); }
padding: .5em;
.loka-tournament-event-results-heading { padding:.35em .55em .05em; }
}
.loka-podium-row { display:flex; align-items:center; gap:.45em; padding:.36em .5em; }
.loka-podium-info { flex:1; min-width:0; }
.loka-podium-row img,.loka-championship > img { image-rendering:pixelated; }
.loka-podium-team { font-size:.9em; font-weight:600; }
.loka-podium-single { font-weight:normal; }
.loka-podium-info .loka-hlist { font-size:.8em; font-weight:normal; opacity:.72; }


.loka-tournament-col-heading {
.loka-championship { display:flex; align-items:center; gap:.45em; margin:.1em auto 0; max-width:150px; padding:.32em .45em; background:rgba(255,255,255,.035); border-radius:3px; }
font-size: .7em;
.loka-championship-info { flex:1; min-width:0; }
font-weight: 700;
.loka-championship-name { display:block; font-size:.82em; font-weight:normal; overflow-wrap:anywhere; }
color: #f0cf8e;
.loka-championship-status { display:block; margin-top:.06em; font-size:.61em; opacity:.72; letter-spacing:.03em; text-transform:uppercase; }
text-transform: uppercase;
.loka-championship-status--no-show { color:#e5b0a8; text-transform:none; }
letter-spacing: .04em;
.loka-championship-previous { display:block; margin-top:.14em; font-size:.61em; opacity:.68; }
}


.loka-tournament-details .loka-tournament-col-heading {
.loka-podium-disclaimer { padding:.3em .6em .22em; font-size:.7em; font-style:italic; font-weight:normal; opacity:.6; text-align:center; }
margin-bottom: .45em;
.loka-podium-disclaimer::after,.loka-chrono-box::after { content:""; display:block; width:72px; height:1px; margin:.38em auto 0; background:#f0cf8e; }
}


.loka-tournament-details-grid {
.loka-chrono-box { padding-top:.15em; }
display: grid;
.loka-chrono-header { position:relative; display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; padding:.32em 0; }
grid-template-columns: 1fr;
.loka-chrono-header-side--prev { grid-column:1; }
gap: .45em;
.loka-chrono-header-side--next { grid-column:3; }
}
.loka-chrono-header-title { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); white-space:nowrap; }
.loka-chrono-header-side { text-align:center; white-space:nowrap; }
.loka-chrono-grid { display:grid; grid-template-columns:1fr 1fr 1fr; }
.loka-chrono-pane { display:flex; flex-direction:column; justify-content:center; min-height:2.65em; padding:.28em .3em; text-align:center; font-size:.76em; }
.loka-chrono-title--current { font-weight:700; }
.loka-chrono-year { margin-top:.12em; font-size:.88em; font-weight:normal; opacity:.72; }
.loka-chrono-tba,.loka-chrono-pane--empty { color:rgba(255,255,255,.42); }
.loka-chrono-box::after { margin-top:.25em; }
.loka-chrono-box:last-child { padding-bottom:.5em; }


.loka-tournament-detail-label {
@media (max-width:600px) {
display: block;
.loka-infobox.loka-infobox--wide { width:100%; max-width:100%; }
font-size: .68em;
.loka-tournament-columns { grid-template-columns:1fr; }
opacity: .65;
.loka-tournament-results { margin-top:.15em; }
text-transform: uppercase;
.loka-tournament-event-summary { padding:.42em .48em; }
letter-spacing: .03em;
margin-bottom: .1em;
}
}


.loka-tournament-detail-value {
@media (prefers-color-scheme:light) {
display: block;
.loka-tournament-col-heading,.loka-tournament-event-results-heading,.loka-podium-label,.loka-championship-heading,.loka-chrono-header-title,.loka-chrono-header-side { color:#8b5d22; }
font-size: .85em;
.loka-tournament-event-summary,.loka-championship { background:rgba(0,0,0,.035); }
word-break: break-word;
.loka-tournament-event-results--secondary { border-top-color:rgba(0,0,0,.08); }
}
.loka-championship-status--no-show { color:#8f3028; }
 
.loka-chrono-tba,.loka-chrono-pane--empty { color:rgba(0,0,0,.38); }
.loka-tournament-runners-tile {
.loka-podium-disclaimer::after,.loka-chrono-box::after { background:#8b5d22; }
grid-column: 1 / -1;
margin-top: .45em;
}
 
.loka-podium-row {
display: flex;
align-items: center;
gap: .5em;
padding: .4em .5em;
}
 
.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 {
font-weight: 600;
}
 
.loka-podium-single {
font-weight: normal;
}
 
.loka-podium-info .loka-hlist {
font-size: .82em;
font-weight: normal;
opacity: .72;
}
 
.loka-championship {
display: flex;
align-items: center;
gap: .5em;
margin: 0;
padding: .35em .5em;
text-align: left;
}
 
.loka-championship-info {
flex: 1;
min-width: 0;
}
 
.loka-championship > img {
image-rendering: pixelated;
}
 
.loka-championship-heading {
display: block;
color: #f0cf8e;
font-size: .7em;
font-weight: 700;
letter-spacing: .04em;
text-transform: uppercase;
}
 
.loka-championship-name {
display: block;
font-size: .84em;
font-weight: normal;
overflow-wrap: anywhere;
}
 
.loka-championship-status {
display: block;
min-width: 0;
margin-top: .08em;
font-size: .64em;
letter-spacing: .03em;
opacity: .72;
text-transform: uppercase;
white-space: normal;
}
 
.loka-championship-status--no-show {
color: #e5b0a8;
white-space: normal;
}
 
.loka-championship-previous {
display: block;
margin-top: .16em;
font-size: .64em;
opacity: .68;
}
 
.loka-podium-disclaimer {
font-size: .7em;
font-style: italic;
opacity: .6;
text-align: center;
padding: .25em .6em .4em;
}
 
.loka-podium-disclaimer::after {
content: "";
display: block;
width: 48px;
height: 1px;
margin: .35em auto 0;
background: #f0cf8e;
}
 
.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;
}
 
.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;
}
 
.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;
}
 
@media (max-width: 600px) {
.loka-infobox.loka-infobox--wide {
width: 100%;
max-width: 100%;
}
 
.loka-tournament-columns {
grid-template-columns: 1fr;
}
 
.loka-tournament-results {
margin-top: .3em;
}
}
 
@media (prefers-color-scheme: light) {
.loka-tournament-col-heading,
.loka-podium-label,
.loka-championship-heading,
.loka-chrono-header-title,
.loka-chrono-header-side {
color: #9c6b2e;
}
 
.loka-championship-status--no-show {
color: #8f3028;
}
 
.loka-chrono-tba,
.loka-chrono-empty {
color: rgba(0, 0, 0, .35);
}
 
.loka-podium-disclaimer::after {
background: #9c6b2e;
}
}
}

Revision as of 09:45, 19 August 2026

.loka-infobox.loka-infobox--wide { width:400px; }

.loka-infobox.loka-infobox--wide .loka-infobox-header-photo { height:140px; }
.loka-infobox.loka-infobox--wide .loka-infobox-header-photo img {
	object-position:center 26%;
	-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 42%,rgba(0,0,0,.96) 52%,rgba(0,0,0,.84) 64%,rgba(0,0,0,.62) 76%,rgba(0,0,0,.35) 88%,transparent 100%);
	mask-image:linear-gradient(to bottom,#000 0%,#000 42%,rgba(0,0,0,.96) 52%,rgba(0,0,0,.84) 64%,rgba(0,0,0,.62) 76%,rgba(0,0,0,.35) 88%,transparent 100%);
}
.loka-infobox.loka-infobox--wide .loka-infobox-header-scrim { background:linear-gradient(to bottom,rgba(5,5,5,.75) 0,rgba(5,5,5,.32) 50px,transparent 92px); }

.loka-tournament-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.loka-tournament-details { padding:.52em; }
.loka-tournament-col-heading,.loka-tournament-event-results-heading,.loka-podium-label,.loka-championship-heading,.loka-chrono-header-title,.loka-chrono-header-side {
	color:#f0cf8e;
	font-size:.7em;
	font-weight:700;
	letter-spacing:.04em;
	text-transform:uppercase;
}
.loka-tournament-details .loka-tournament-col-heading { margin-bottom:.42em; }

.loka-tournament-event-summary { padding:.36em .42em; background:rgba(255,255,255,.035); border-radius:3px; }
.loka-tournament-event-summary--secondary { margin-top:.35em; }
.loka-tournament-event-summary-heading { font-size:.86em; }
.loka-tournament-event-summary-date,.loka-tournament-event-summary-bracket { display:block; margin-top:.12em; font-size:.73em; opacity:.74; }
.loka-tournament-shared-details { display:grid; gap:.38em; margin-top:.45em; }
.loka-tournament-detail-label { display:block; margin-bottom:.08em; font-size:.66em; opacity:.64; text-transform:uppercase; letter-spacing:.03em; }
.loka-tournament-detail-value { display:block; font-size:.83em; overflow-wrap:anywhere; }

.loka-tournament-event-results--secondary { margin-top:.25em; padding-top:.25em; border-top:1px solid rgba(255,255,255,.07); }
.loka-tournament-event-results-heading { padding:.35em .55em .05em; }
.loka-podium-row { display:flex; align-items:center; gap:.45em; padding:.36em .5em; }
.loka-podium-info { flex:1; min-width:0; }
.loka-podium-row img,.loka-championship > img { image-rendering:pixelated; }
.loka-podium-team { font-size:.9em; font-weight:600; }
.loka-podium-single { font-weight:normal; }
.loka-podium-info .loka-hlist { font-size:.8em; font-weight:normal; opacity:.72; }

.loka-championship { display:flex; align-items:center; gap:.45em; margin:.1em auto 0; max-width:150px; padding:.32em .45em; background:rgba(255,255,255,.035); border-radius:3px; }
.loka-championship-info { flex:1; min-width:0; }
.loka-championship-name { display:block; font-size:.82em; font-weight:normal; overflow-wrap:anywhere; }
.loka-championship-status { display:block; margin-top:.06em; font-size:.61em; opacity:.72; letter-spacing:.03em; text-transform:uppercase; }
.loka-championship-status--no-show { color:#e5b0a8; text-transform:none; }
.loka-championship-previous { display:block; margin-top:.14em; font-size:.61em; opacity:.68; }

.loka-podium-disclaimer { padding:.3em .6em .22em; font-size:.7em; font-style:italic; font-weight:normal; opacity:.6; text-align:center; }
.loka-podium-disclaimer::after,.loka-chrono-box::after { content:""; display:block; width:72px; height:1px; margin:.38em auto 0; background:#f0cf8e; }

.loka-chrono-box { padding-top:.15em; }
.loka-chrono-header { position:relative; display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; padding:.32em 0; }
.loka-chrono-header-side--prev { grid-column:1; }
.loka-chrono-header-side--next { grid-column:3; }
.loka-chrono-header-title { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); white-space:nowrap; }
.loka-chrono-header-side { text-align:center; white-space:nowrap; }
.loka-chrono-grid { display:grid; grid-template-columns:1fr 1fr 1fr; }
.loka-chrono-pane { display:flex; flex-direction:column; justify-content:center; min-height:2.65em; padding:.28em .3em; text-align:center; font-size:.76em; }
.loka-chrono-title--current { font-weight:700; }
.loka-chrono-year { margin-top:.12em; font-size:.88em; font-weight:normal; opacity:.72; }
.loka-chrono-tba,.loka-chrono-pane--empty { color:rgba(255,255,255,.42); }
.loka-chrono-box::after { margin-top:.25em; }
.loka-chrono-box:last-child { padding-bottom:.5em; }

@media (max-width:600px) {
	.loka-infobox.loka-infobox--wide { width:100%; max-width:100%; }
	.loka-tournament-columns { grid-template-columns:1fr; }
	.loka-tournament-results { margin-top:.15em; }
	.loka-tournament-event-summary { padding:.42em .48em; }
}

@media (prefers-color-scheme:light) {
	.loka-tournament-col-heading,.loka-tournament-event-results-heading,.loka-podium-label,.loka-championship-heading,.loka-chrono-header-title,.loka-chrono-header-side { color:#8b5d22; }
	.loka-tournament-event-summary,.loka-championship { background:rgba(0,0,0,.035); }
	.loka-tournament-event-results--secondary { border-top-color:rgba(0,0,0,.08); }
	.loka-championship-status--no-show { color:#8f3028; }
	.loka-chrono-tba,.loka-chrono-pane--empty { color:rgba(0,0,0,.38); }
	.loka-podium-disclaimer::after,.loka-chrono-box::after { background:#8b5d22; }
}