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 Infobox tournament: auto-generate a lead paragraph from the same infobox parameters
m Let the championship box fill full width on mobile instead of a fixed 179px meant for the desktop two-column layout
 
(56 intermediate revisions by the same user not shown)
Line 1: Line 1:
.loka-tournament-columns {
.loka-infobox.loka-infobox--wide { width:400px; position:relative; }
display: grid;
 
grid-template-columns: 1fr 1fr;
.loka-tournament-edit-hover-zone {
/* No overlap trick here anymore -- the header photo's own scrim (see
position:absolute;
  Template:Infobox/styles.css) now runs its full fade to nearly opaque
top:0;
  before this block even starts, so there's no sharp edge left for it
left:0;
  to sit against; it just continues straight into the plain
right:0;
  .loka-infobox background underneath, already a near-match. */
height:64px;
z-index:4;
}
.loka-infobox-header-photo ~ .loka-tournament-edit-hover-zone { height:140px; }
.loka-tournament-edit-pencil {
display:none;
position:absolute;
top:.5em;
right:.5em;
z-index:5;
border-radius:3px;
background:rgba(0,0,0,.3);
}
}


.loka-tournament-details {
.loka-tournament-edit-hover-zone:hover .loka-tournament-edit-pencil,
padding: .5em;
.loka-tournament-edit-hover-zone:hover .loka-tournament-view-image { display:flex; }
 
.loka-tournament-edit-pencil a.external {
display:flex;
align-items:center;
padding:.22em .4em;
background:none;
color:#f0ece2;
text-decoration:none;
line-height:1;
opacity:.7;
}
}
.loka-tournament-edit-pencil a.external:hover { opacity:1; }


.loka-tournament-col-heading {
.loka-tournament-edit-pencil a.external::after { display:none; }
font-size: .7em;
.loka-tournament-edit-pencil-icon { font-size:.78em; }
font-weight: 700;
 
color: #f0cf8e;
.loka-tournament-edit-pencil-label {
text-transform: uppercase;
max-width:0;
letter-spacing: .04em;
margin-left:0;
overflow:hidden;
white-space:nowrap;
font-size:.56em;
opacity:0;
transition:max-width .2s ease,margin-left .2s ease,opacity .2s ease;
}
}
.loka-tournament-edit-pencil:hover .loka-tournament-edit-pencil-label { max-width:160px; margin-left:.3em; opacity:1; }


.loka-tournament-details .loka-tournament-col-heading {
.loka-tournament-view-image {
margin-bottom: .45em;
display:none;
position:absolute;
top:2.1em;
right:.5em;
z-index:5;
border-radius:3px;
background:rgba(0,0,0,.3);
}
}
 
.loka-tournament-view-image a {
.loka-tournament-details-grid {
display:block;
display: grid;
padding:.22em .4em;
grid-template-columns: 1fr 1fr;
color:#f0ece2;
gap: .45em .5em;
text-decoration:none;
font-size:.56em;
line-height:1;
opacity:.7;
}
}
.loka-tournament-view-image a:hover { opacity:1; }


.loka-tournament-detail-label {
@media (prefers-color-scheme: light) {
display: block;
.loka-tournament-edit-pencil { background:rgba(255,255,255,.4); }
font-size: .68em;
.loka-tournament-edit-pencil a.external { color:#241f1a; }
opacity: .65;
.loka-tournament-view-image { background:rgba(255,255,255,.4); }
text-transform: uppercase;
.loka-tournament-view-image a { color:#241f1a; }
letter-spacing: .03em;
margin-bottom: .1em;
}
}


.loka-tournament-detail-value {
.loka-infobox.loka-infobox--wide .loka-infobox-header-photo { height:140px; }
display: block;
.loka-infobox.loka-infobox--wide .loka-infobox-header-photo img {
font-size: .85em;
object-position:center 26%;
word-break: break-word;
-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-runners-tile {
.loka-tournament-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
grid-column: 1 / -1;
.loka-tournament-details { padding:.52em; }
margin-top: .45em;
}


.loka-podium-row {
.loka-tournament-results { padding-top:2.56px; }
display: flex;
.loka-tournament-col-heading,.loka-podium-label,.loka-championship-heading,.loka-chrono-header-title,.loka-chrono-header-side {
align-items: center;
color:#f0cf8e;
gap: .5em;
font-size:.7em;
padding: .4em .5em;
font-weight:700;
letter-spacing:.04em;
text-transform:uppercase;
}
}


.loka-podium-row img {
.loka-tournament-event-results-heading {
image-rendering: pixelated;
color:#f0cf8e;
font-size:.7em;
font-weight:700;
letter-spacing:.04em;
}
}
.loka-tournament-details .loka-tournament-col-heading { margin-bottom:.42em; }


.loka-podium-label {
.loka-tournament-inline-icon { display:inline-block; margin-right:.25em; vertical-align:middle; }
font-size: .7em;
.loka-tournament-inline-icon.loka-tournament-host-shield { margin-right:.4em; }
font-weight: 700;
color: #f0cf8e;
text-transform: uppercase;
letter-spacing: .04em;
}


.loka-podium-team,
.loka-tournament-host-shield img { vertical-align: -1.72px; }
.loka-podium-single {
font-weight: 600;
}


.loka-podium-info .loka-hlist {
.loka-tournament-mode-icon { display:inline-block; margin-right:.25em; vertical-align:1.5px; }
font-size: .82em;
font-weight: normal;
opacity: .72;
}


.loka-podium-disclaimer {
.loka-tournament-event-summary { padding:.36em .42em; background:rgba(255,255,255,.035); border-radius:3px; }
font-size: .7em;
.loka-tournament-event-summary--secondary { margin-top:.35em; }
font-style: italic;
.loka-tournament-event-summary-heading { font-size:.86em; }
opacity: .6;
.loka-tournament-event-summary-date,.loka-tournament-event-summary-bracket { display:block; margin-top:.12em; font-size:.73em; opacity:.74; }
text-align: center;
.loka-tournament-bracket-icon { display:inline-block; }
padding: .25em .6em .4em;
}


.loka-chrono-box {
.loka-tournament-bracket-icon img { vertical-align:-3.5px; }
border-top: 1px solid rgba(255, 255, 255, .08);
.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-chrono-header {
.loka-tournament-event-results--secondary { margin-top:.25em; padding-top:.25em; border-top:1px solid rgba(255,255,255,.07); }
display: grid;
.loka-tournament-event-results-heading { padding:.35em .55em .05em; }
grid-template-columns: 1fr 1fr 1fr;
align-items: center;
background: #9c6b2e;
color: #ffffff;
font-size: .75em;
padding: .35em .5em;
}


.loka-chrono-header-title {
.loka-podium-row { display:flex; align-items:center; gap:.45em; padding:.36em .5em; }
font-weight: 700;
.loka-podium-row + .loka-podium-row { margin-top:.35em; }
text-align: center;
.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-chrono-header-side {
.loka-championship { display:flex; align-items:center; gap:.45em; box-sizing:border-box; margin:.1em 0 0; max-width:179px; padding:.36em 2.3em .55em .5em; background:rgba(255,255,255,.035); border-radius:3px; }
font-size: .85em;
.loka-championship-info { flex:1; min-width:0; }
font-weight: normal;
.loka-championship-name { display:block; font-size:.82em; font-weight:normal; overflow-wrap:anywhere; }
opacity: .8;
.loka-championship-status { display:block; margin-top:.06em; font-size:.61em; opacity:.72; letter-spacing:.03em; text-transform:uppercase; }
text-align: center;
.loka-championship-status--no-show { color:#e5b0a8; text-transform:none; }
}
.loka-championship-previous { display:block; margin-top:.14em; font-size:.61em; opacity:.68; }


.loka-chrono-grid {
.loka-championship-previous-link { white-space:nowrap; }
display: grid;
grid-template-columns: 1fr 1fr 1fr;
}


.loka-chrono-pane {
.loka-podium-disclaimer { padding:.65em .6em .4em; font-size:.7em; font-style:italic; font-weight:normal; opacity:.6; text-align:center; }
display: flex;
flex-direction: column;
justify-content: center;
padding: .4em .35em;
text-align: center;
font-size: .78em;
}


.loka-chrono-title--current {
.loka-chrono-box { padding-top:.45em; }
font-weight: 700;
.loka-chrono-header { position:relative; display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; padding:.48em .3em; background:rgba(255,255,255,.045); }
}
.loka-chrono-header-side--prev { grid-column:1; }
.loka-chrono-header-side--next { grid-column:3; }


.loka-chrono-year {
.loka-chrono-header-title { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); max-width:45%; text-align:center; line-height:1.25; }
font-weight: normal;
.loka-chrono-header-side { text-align:center; white-space:nowrap; }
opacity: .75;
.loka-chrono-grid { display:grid; grid-template-columns:1fr 1fr 1fr; }
font-size: .9em;
margin-top: .2em;
}


.loka-chrono-tba {
.loka-chrono-pane { display:flex; flex-direction:column; justify-content:flex-start; min-height:2.9em; padding:.4em .3em; text-align:center; font-size:.76em; }
color: rgba(255, 255, 255, .4);
.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:last-child { padding-bottom:.5em; }


.loka-chrono-empty {
@media (max-width:600px) {
color: rgba(255, 255, 255, .4);
font-style: italic;
.loka-infobox.loka-infobox--wide { width:100%; max-width:100%; }
.loka-tournament-event-summary { padding:.42em .48em; }
}
}


/* Below this width the box itself has already gone full-width and
@media (prefers-color-scheme:light) {
  unfloated (see Template:Infobox/styles.css), but Details|Results side
.loka-tournament-col-heading,.loka-tournament-event-results-heading,.loka-podium-label,.loka-championship-heading,.loka-chrono-header-title,.loka-chrono-header-side { color:#9c6b2e; }
  by side would still squeeze each into an unreadably narrow column, so
.loka-tournament-event-summary,.loka-championship { background:rgba(0,0,0,.035); }
  they stack instead. */
.loka-chrono-header { background:rgba(0,0,0,.035); }
@media (max-width: 600px) {
.loka-tournament-event-results--secondary { border-top-color:rgba(0,0,0,.08); }
.loka-tournament-columns {
.loka-championship-status--no-show { color:#8f3028; }
grid-template-columns: 1fr;
.loka-chrono-tba,.loka-chrono-pane--empty { color:rgba(0,0,0,.38); }
}
}
}

Latest revision as of 20:26, 22 August 2026

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

.loka-tournament-edit-hover-zone {
	position:absolute;
	top:0;
	left:0;
	right:0;
	height:64px;
	z-index:4;
}
.loka-infobox-header-photo ~ .loka-tournament-edit-hover-zone { height:140px; }
.loka-tournament-edit-pencil {
	display:none;
	position:absolute;
	top:.5em;
	right:.5em;
	z-index:5;
	border-radius:3px;
	background:rgba(0,0,0,.3);
}

.loka-tournament-edit-hover-zone:hover .loka-tournament-edit-pencil,
.loka-tournament-edit-hover-zone:hover .loka-tournament-view-image { display:flex; }

.loka-tournament-edit-pencil a.external {
	display:flex;
	align-items:center;
	padding:.22em .4em;
	background:none;
	color:#f0ece2;
	text-decoration:none;
	line-height:1;
	opacity:.7;
}
.loka-tournament-edit-pencil a.external:hover { opacity:1; }

.loka-tournament-edit-pencil a.external::after { display:none; }
.loka-tournament-edit-pencil-icon { font-size:.78em; }

.loka-tournament-edit-pencil-label {
	max-width:0;
	margin-left:0;
	overflow:hidden;
	white-space:nowrap;
	font-size:.56em;
	opacity:0;
	transition:max-width .2s ease,margin-left .2s ease,opacity .2s ease;
}
.loka-tournament-edit-pencil:hover .loka-tournament-edit-pencil-label { max-width:160px; margin-left:.3em; opacity:1; }

.loka-tournament-view-image {
	display:none;
	position:absolute;
	top:2.1em;
	right:.5em;
	z-index:5;
	border-radius:3px;
	background:rgba(0,0,0,.3);
}
.loka-tournament-view-image a {
	display:block;
	padding:.22em .4em;
	color:#f0ece2;
	text-decoration:none;
	font-size:.56em;
	line-height:1;
	opacity:.7;
}
.loka-tournament-view-image a:hover { opacity:1; }

@media (prefers-color-scheme: light) {
	.loka-tournament-edit-pencil { background:rgba(255,255,255,.4); }
	.loka-tournament-edit-pencil a.external { color:#241f1a; }
	.loka-tournament-view-image { background:rgba(255,255,255,.4); }
	.loka-tournament-view-image a { color:#241f1a; }
}

.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-results { padding-top:2.56px; }
.loka-tournament-col-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-event-results-heading {
	color:#f0cf8e;
	font-size:.7em;
	font-weight:700;
	letter-spacing:.04em;
}
.loka-tournament-details .loka-tournament-col-heading { margin-bottom:.42em; }

.loka-tournament-inline-icon { display:inline-block; margin-right:.25em; vertical-align:middle; }
.loka-tournament-inline-icon.loka-tournament-host-shield { margin-right:.4em; }

.loka-tournament-host-shield img { vertical-align: -1.72px; }

.loka-tournament-mode-icon { display:inline-block; margin-right:.25em; vertical-align:1.5px; }

.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-bracket-icon { display:inline-block; }

.loka-tournament-bracket-icon img { vertical-align:-3.5px; }
.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-row + .loka-podium-row { margin-top:.35em; }
.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; box-sizing:border-box; margin:.1em 0 0; max-width:179px; padding:.36em 2.3em .55em .5em; 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-championship-previous-link { white-space:nowrap; }

.loka-podium-disclaimer { padding:.65em .6em .4em; font-size:.7em; font-style:italic; font-weight:normal; opacity:.6; text-align:center; }

.loka-chrono-box { padding-top:.45em; }
.loka-chrono-header { position:relative; display:grid; grid-template-columns:1fr 1fr 1fr; align-items:center; padding:.48em .3em; background:rgba(255,255,255,.045); }
.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%); max-width:45%; text-align:center; line-height:1.25; }
.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:flex-start; min-height:2.9em; padding:.4em .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:last-child { padding-bottom:.5em; }

@media (max-width:600px) {
	
	.loka-infobox.loka-infobox--wide { width:100%; max-width:100%; }
	.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:#9c6b2e; }
	.loka-tournament-event-summary,.loka-championship { background:rgba(0,0,0,.035); }
	.loka-chrono-header { 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); }
}