Jump to content

Template:Featured box/styles.css: Difference between revisions

From the Vrienden Universe, a fictional wiki
Created page with ".featured-box { width: 100%; max-width: 820px; margin: 0.5em 0; border: 1px solid #a2a9b1; border-radius: 8px; background: #ffffff; overflow: hidden; } .featured-box-title { padding: 0.5em 0.75em; font-size: 110%; font-weight: bold; background: #eaecf0; border-bottom: 1px solid #a2a9b1; } .featured-box-body { display: flex; gap: 0.8em; padding: 0.8em; font-size: 105%; align-items: flex-start; } .featured-box-image { flex: 0 0 auto; max-width: 160px;..."
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:
border-radius: 8px;
border-radius: 8px;
background: #ffffff;
background: #ffffff;
color: #202122;
overflow: hidden;
overflow: hidden;
}
}
Line 13: Line 14:
font-size: 110%;
font-size: 110%;
font-weight: bold;
font-weight: bold;
background: #eaecf0;
background: #ffffff;
color: #202122;
border-bottom: 1px solid #a2a9b1;
border-bottom: 1px solid #a2a9b1;
}
}


.featured-box-body {
.featured-box-body {
display: flex;
gap: 0.8em;
padding: 0.8em;
padding: 0.8em;
font-size: 105%;
font-size: 105%;
align-items: flex-start;
line-height: 1.5;
background: #ffffff;
color: #202122;
}
}


.featured-box-image {
.featured-box-image-frame {
flex: 0 0 auto;
float: right;
max-width: 160px;
width: 160px;
margin: 0 0 0.6em 0.9em;
text-align: center;
}
}


.featured-box-image img {
.featured-box-image-frame img {
border-radius: 6px;
max-width: 100%;
height: auto;
border-radius: 3px;
}
}


.featured-box-text {
.featured-box-page-title {
flex: 1 1 auto;
font-size: 110%;
min-width: 0;
margin-bottom: 0.35em;
}
 
.featured-box-lead {
margin-top: 0.25em;
}
 
.featured-box-open {
margin-top: 0.6em;
clear: both;
}
 
/* Normal link colours */
 
.featured-box a {
color: #0645ad;
}
 
.featured-box a:visited {
color: #0b0080;
}
 
/* Missing pages must stay red */
 
.featured-box a.new,
.featured-box a.new:link,
.featured-box a.new:visited,
.featured-box .new a,
.featured-box .new a:link,
.featured-box .new a:visited {
color: #ba0000 !important;
}
 
/* Forced dark mode */
 
@media screen {
html.skin-theme-clientpref-night .featured-box {
background: #101418;
color: #f8f9fa;
border-color: #54595d;
}
 
html.skin-theme-clientpref-night .featured-box-body {
background: #101418;
color: #f8f9fa;
}
 
html.skin-theme-clientpref-night .featured-box-title {
background: #12284a;
color: #ffffff;
border-bottom-color: #54595d;
}
 
html.skin-theme-clientpref-night .featured-box a {
color: #88aaff;
}
 
html.skin-theme-clientpref-night .featured-box a:visited {
color: #b19cd9;
}
 
html.skin-theme-clientpref-night .featured-box a.new,
html.skin-theme-clientpref-night .featured-box a.new:link,
html.skin-theme-clientpref-night .featured-box a.new:visited,
html.skin-theme-clientpref-night .featured-box .new a,
html.skin-theme-clientpref-night .featured-box .new a:link,
html.skin-theme-clientpref-night .featured-box .new a:visited {
color: #ff6b6b !important;
}
}
 
/* Automatic dark mode */
 
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .featured-box {
background: #101418;
color: #f8f9fa;
border-color: #54595d;
}
 
html.skin-theme-clientpref-os .featured-box-body {
background: #101418;
color: #f8f9fa;
}
 
html.skin-theme-clientpref-os .featured-box-title {
background: #12284a;
color: #ffffff;
border-bottom-color: #54595d;
}
 
html.skin-theme-clientpref-os .featured-box a {
color: #88aaff;
}
 
html.skin-theme-clientpref-os .featured-box a:visited {
color: #b19cd9;
}
 
html.skin-theme-clientpref-os .featured-box a.new,
html.skin-theme-clientpref-os .featured-box a.new:link,
html.skin-theme-clientpref-os .featured-box a.new:visited,
html.skin-theme-clientpref-os .featured-box .new a,
html.skin-theme-clientpref-os .featured-box .new a:link,
html.skin-theme-clientpref-os .featured-box .new a:visited {
color: #ff6b6b !important;
}
}
 
/* Topic header colours */
 
.featured-box.featured-noord .featured-box-title {
background: #b00020;
color: #ffffff;
}
 
.featured-box.featured-paap .featured-box-title {
background: #6a0dad;
color: #ffffff;
}
 
.featured-box.featured-van-hetten .featured-box-title {
background: #e67e00;
color: #000000;
}
}


.featured-box-headline {
.featured-box.featured-hoos .featured-box-title {
margin-top: 0.35em;
background: #ffd700;
color: #000000;
}
}


.featured-box-actions {
.featured-box.featured-schroeter .featured-box-title {
margin-top: 0.75em;
background: #e8dcc2;
display: flex;
color: #000000;
flex-wrap: wrap;
gap: 0.4em;
}
}


.featured-box-actions a {
.featured-box.featured-tanoa .featured-box-title {
display: inline-block;
background: #c9a227;
padding: 0.25em 0.55em;
color: #000000;
border: 1px solid #a2a9b1;
border-radius: 6px;
background: #f8f9fa;
text-decoration: none;
}
}


.featured-box-actions a:hover {
.featured-box.featured-bucharest .featured-box-title {
background: #eaecf0;
background: #7b001c;
color: #ffffff;
}
}

Latest revision as of 10:52, 14 May 2026

.featured-box {
	width: 100%;
	max-width: 820px;
	margin: 0.5em 0;
	border: 1px solid #a2a9b1;
	border-radius: 8px;
	background: #ffffff;
	color: #202122;
	overflow: hidden;
}

.featured-box-title {
	padding: 0.5em 0.75em;
	font-size: 110%;
	font-weight: bold;
	background: #ffffff;
	color: #202122;
	border-bottom: 1px solid #a2a9b1;
}

.featured-box-body {
	padding: 0.8em;
	font-size: 105%;
	line-height: 1.5;
	background: #ffffff;
	color: #202122;
}

.featured-box-image-frame {
	float: right;
	width: 160px;
	margin: 0 0 0.6em 0.9em;
	text-align: center;
}

.featured-box-image-frame img {
	max-width: 100%;
	height: auto;
	border-radius: 3px;
}

.featured-box-page-title {
	font-size: 110%;
	margin-bottom: 0.35em;
}

.featured-box-lead {
	margin-top: 0.25em;
}

.featured-box-open {
	margin-top: 0.6em;
	clear: both;
}

/* Normal link colours */

.featured-box a {
	color: #0645ad;
}

.featured-box a:visited {
	color: #0b0080;
}

/* Missing pages must stay red */

.featured-box a.new,
.featured-box a.new:link,
.featured-box a.new:visited,
.featured-box .new a,
.featured-box .new a:link,
.featured-box .new a:visited {
	color: #ba0000 !important;
}

/* Forced dark mode */

@media screen {
	html.skin-theme-clientpref-night .featured-box {
		background: #101418;
		color: #f8f9fa;
		border-color: #54595d;
	}

	html.skin-theme-clientpref-night .featured-box-body {
		background: #101418;
		color: #f8f9fa;
	}

	html.skin-theme-clientpref-night .featured-box-title {
		background: #12284a;
		color: #ffffff;
		border-bottom-color: #54595d;
	}

	html.skin-theme-clientpref-night .featured-box a {
		color: #88aaff;
	}

	html.skin-theme-clientpref-night .featured-box a:visited {
		color: #b19cd9;
	}

	html.skin-theme-clientpref-night .featured-box a.new,
	html.skin-theme-clientpref-night .featured-box a.new:link,
	html.skin-theme-clientpref-night .featured-box a.new:visited,
	html.skin-theme-clientpref-night .featured-box .new a,
	html.skin-theme-clientpref-night .featured-box .new a:link,
	html.skin-theme-clientpref-night .featured-box .new a:visited {
		color: #ff6b6b !important;
	}
}

/* Automatic dark mode */

@media screen and (prefers-color-scheme: dark) {
	html.skin-theme-clientpref-os .featured-box {
		background: #101418;
		color: #f8f9fa;
		border-color: #54595d;
	}

	html.skin-theme-clientpref-os .featured-box-body {
		background: #101418;
		color: #f8f9fa;
	}

	html.skin-theme-clientpref-os .featured-box-title {
		background: #12284a;
		color: #ffffff;
		border-bottom-color: #54595d;
	}

	html.skin-theme-clientpref-os .featured-box a {
		color: #88aaff;
	}

	html.skin-theme-clientpref-os .featured-box a:visited {
		color: #b19cd9;
	}

	html.skin-theme-clientpref-os .featured-box a.new,
	html.skin-theme-clientpref-os .featured-box a.new:link,
	html.skin-theme-clientpref-os .featured-box a.new:visited,
	html.skin-theme-clientpref-os .featured-box .new a,
	html.skin-theme-clientpref-os .featured-box .new a:link,
	html.skin-theme-clientpref-os .featured-box .new a:visited {
		color: #ff6b6b !important;
	}
}

/* Topic header colours */

.featured-box.featured-noord .featured-box-title {
	background: #b00020;
	color: #ffffff;
}

.featured-box.featured-paap .featured-box-title {
	background: #6a0dad;
	color: #ffffff;
}

.featured-box.featured-van-hetten .featured-box-title {
	background: #e67e00;
	color: #000000;
}

.featured-box.featured-hoos .featured-box-title {
	background: #ffd700;
	color: #000000;
}

.featured-box.featured-schroeter .featured-box-title {
	background: #e8dcc2;
	color: #000000;
}

.featured-box.featured-tanoa .featured-box-title {
	background: #c9a227;
	color: #000000;
}

.featured-box.featured-bucharest .featured-box-title {
	background: #7b001c;
	color: #ffffff;
}