Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template:Colored box/styles.css

Permanently protected template
From Wikipedia, the free encyclopedia
/* {{pp-template}} */
.colored-box {
	box-sizing: border-box;
	margin: 0.5em 0.5em 1em 0.5em;
	border-radius: 0.2em;
	background: var( --background-color-base, #fff );
	color: var( --color-base, #202122 );
	border: 1px solid var( --border-color-base, #a2a9b1 );
	overflow-x: hidden;
}

.colored-box-title {
	background: var( --background-color-interactive, #eaecf0 );
	color: var( --color-emphasized, #000000 );
	border-radius: 0.2em 0.2em 0 0;
	display: flex;
	gap: 0.5rem;
	line-height: 2.4rem;
	
}

.colored-box-title.center {
  justify-content: center;
}
.colored-box-title.center .colored-box-title-text {
  text-align: center;
  width: 100%;
}


.colored-box-title--linked:hover {
	background: var( --background-color-progressive-subtle, #eaf3ff );
}

.colored-box-title > *:first-child {
	padding-left: 1rem;
}

.colored-box-title > *:last-child {
	padding-right: 1rem;
}

/* Let title-link take up whole heading area for easy target.
 * Direct strong or link child is the title, as icon and view-link have their own element.
 * we can't add class names to links in wikitext.
 */
.colored-box-title-text {
	flex-grow: 1;
	font-weight: bold;
}

.colored-box-title-text a {
	display: block;
}

.colored-box-title-icon {
	opacity: 0.8;
}

.colored-box-title-corner {
	float: right;
	font-size: 0.85em;
}

.colored-box-content {
	padding: 0.5rem 1rem;
}

.colored-box-content::after {
	content: "";
	display: block;
	clear: both;
}