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/styles.css: Difference between revisions

Template page
m Infobox tournament: auto-generate a lead paragraph from the same infobox parameters
m Infobox tournament: auto-generate a lead paragraph from the same infobox parameters
Line 76: Line 76:
position: absolute;
position: absolute;
inset: 0;
inset: 0;
/* Dark at the top for the name/type text, clear through the middle to
/* Dark at the top for the name/type text, then clear the rest of the
  actually show the photo, then only lightly eases toward the box's own
  way down -- fully transparent well before the bottom edge, so the
  background colour (rgba(20, 16, 12)) near the bottom -- deliberately
  photo is shown at full clarity there. Content below (see
  left short of fully opaque here, since content below (see
  loka-tournament-columns) overlaps up into that fully-clear zone and
  loka-tournament-columns) overlaps up into this photo and finishes the
  starts ITS OWN fade from fully transparent too, so the two meet at
  fade itself, so the two blend into one continuous transition instead
  the same value (0) with no visible seam, then it does the work of
  of a hard seam between image and content. */
  darkening back down to the box's normal panel colour. */
background: linear-gradient(to bottom,
background: linear-gradient(to bottom,
rgba(8, 6, 3, .78) 0%,
rgba(8, 6, 3, .78) 0%,
rgba(8, 6, 3, .4) 35%,
rgba(8, 6, 3, .4) 35%,
rgba(8, 6, 3, 0) 60%,
rgba(8, 6, 3, 0) 55%);
rgba(20, 16, 12, .35) 100%);
}
}



Revision as of 09:00, 18 August 2026

.loka-infobox {
	float: right;
	clear: right;
	width: 300px;
	margin: 0 0 1em 1em;
	background: rgba(20, 16, 12, .45);
	border: 1px solid rgba(255, 255, 255, .08);
}

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

/* Below this width a floated fixed-width box (300px, or 520px for --wide)
   either overflows the viewport or squeezes body text into an unreadably
   narrow column, so every infobox drops the float and goes full-width
   instead -- applies wiki-wide since this is the shared shell every
   specific infobox is built on. */
@media (max-width: 600px) {
	.loka-infobox,
	.loka-infobox--wide {
		float: none;
		clear: none;
		width: 100%;
		max-width: 100%;
		margin: 0 0 1em 0;
		box-sizing: border-box;
	}
}

.loka-infobox-name {
	text-align: center;
	font-size: 1.25em;
	font-weight: 700;
	padding: .6em;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.loka-infobox-type {
	background: #9c6b2e;
	color: #ffffff;
	font-weight: 700;
	font-size: .72em;
	text-transform: uppercase;
	letter-spacing: .04em;
	text-align: center;
	padding: .35em .5em;
}

.loka-infobox-image {
	line-height: 0;
	text-align: center;
	padding: 10px;
}

.loka-infobox-image img {
	max-width: 100%;
	height: auto;
}

.loka-infobox-header-photo {
	position: relative;
	height: 180px;
	overflow: hidden;
}

.loka-infobox-header-photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.loka-infobox-header-scrim {
	position: absolute;
	inset: 0;
	/* Dark at the top for the name/type text, then clear the rest of the
	   way down -- fully transparent well before the bottom edge, so the
	   photo is shown at full clarity there. Content below (see
	   loka-tournament-columns) overlaps up into that fully-clear zone and
	   starts ITS OWN fade from fully transparent too, so the two meet at
	   the same value (0) with no visible seam, then it does the work of
	   darkening back down to the box's normal panel colour. */
	background: linear-gradient(to bottom,
		rgba(8, 6, 3, .78) 0%,
		rgba(8, 6, 3, .4) 35%,
		rgba(8, 6, 3, 0) 55%);
}

.loka-infobox-header-text {
	position: relative;
}

.loka-infobox-header-text .loka-infobox-name {
	border-bottom: none;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}

.loka-infobox-header-text .loka-infobox-type {
	background: rgba(156, 107, 46, .55);
	text-transform: none;
	letter-spacing: normal;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}

.loka-infobox-row {
	display: flex;
	padding: .4em .6em;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: .9em;
}

.loka-infobox-row-key {
	flex: 0 0 38%;
	font-weight: 700;
	text-align: left;
}

.loka-infobox-row-value {
	flex: 1;
	text-align: left;
}

.loka-infobox-row--wide {
	flex-direction: column;
	align-items: flex-start;
	gap: .3em;
}

.loka-hlist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline;
}

.loka-hlist li {
	display: inline;
}

.loka-hlist li:not(:last-child)::after {
	content: ", ";
}

.loka-hlist--stacked {
	display: block;
}

.loka-hlist--stacked li {
	display: block;
}

.loka-hlist--stacked li:not(:last-child)::after {
	content: none;
}