Template:Featured box/styles.css
Appearance
.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;
}