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

Wikipedia:Teahouse/Header/styles.css

From Wikipedia, the free encyclopedia
#teahouseheader .main {
	border: 3px solid #758c00;
	background-color: #e1e6db;
	color: inherit;
	border-radius:1em;
	padding: 1em;
}
#teahouseheader .host {
	min-width: 170px;
	max-width: 230px;
	margin-top: 2em;
	clear: right;
}
#teahouseheader .action {
	padding: 5px;
	display: inline-block;
}
#teahouseheader .mainaction {
	font-size: 2em;
	display: block;
}
#teahouseheader .announcements {
	text-align: center;
	color: #525563;
	font-size: 1.2em;
	padding: .5em;
	border: 3px double #CCC;
}
#teahouseheader .footer {
	border: 1px solid #a9a9a9;
	font-size:85%;
	width:auto;
	margin-left:auto;
	margin-right:auto;
}
.thh-toc {
	background: none;
	width: 30%;
	min-width: 20em;
	clear: right;
	float: right;
	margin-left: 5px;
	margin-top: 5px;
	overflow: auto;
}
.thh-toc .toctext {
	/* Fix horizontal overflow on narrow viewports */
	word-break: break-word;
}
@media (max-width: 720px) {
	#teahouseheader .mainaction, #teahouseheader .action {
		width: 100%;
		display: block;
		box-sizing: border-box;
	}
	#teahouseheader .action .mw-ui-button {
		width: 100%;
		max-width: 30em;
	}
	#teahouseheader .mainaction .mw-ui-button {
		max-width: 15em;
	}
	
	.thh-left {
		max-width: 50%;
	}
	
	.thh-left img {
		max-width: 100%;
		height: auto;
	}
}
@media (max-width: 1200px) {
	#teahouseheader .nosmall {
		display: none !important;
	}
}
@media (min-width: 1201px) {
	#teahouseheader .mainaction {
		margin-top: 2em;
	}
}
@media (min-width: 1600px) {
	#teahouseheader .thh-smallscreenclear {
		display: none;
	}
}

.teahouse-title {
	background: #e1e6db;
	border-left:solid 1.5px #758c00;
	border-right:solid 1.5px #758c00;
	border-radius:0.25em; padding:4px;
}

.teahouse-title-colon {
	color: #a0a0a0;
}

@media screen {
	html.skin-theme-clientpref-night #teahouseheader .main {
		background: #293626;
	}
	html.skin-theme-clientpref-night .teahouse-title {
		background: #293626;
	}
	html.skin-theme-clientpref-night .teahouse-title-colon {
		color: #616161;
	}
}

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os #teahouseheader .main {
		background: #293626;
	}
	html.skin-theme-clientpref-os .teahouse-title {
		background: #293626;
	}
	html.skin-theme-clientpref-os .teahouse-title-colon {
		color: #616161;
	}
}