Template:Featured box/styles.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
border-radius: 8px; | border-radius: 8px; | ||
background: #ffffff; | background: #ffffff; | ||
color: #202122; | |||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
| Line 22: | Line 23: | ||
font-size: 105%; | font-size: 105%; | ||
line-height: 1.5; | line-height: 1.5; | ||
background: #ffffff; | |||
color: #202122; | |||
} | } | ||
| Line 51: | Line 54: | ||
} | } | ||
/* Default dark mode */ | /* Default dark mode, only when the wiki skin is actually in dark mode */ | ||
.skin-theme-clientpref-night .featured-box, | |||
.skin-theme-clientpref-night .featured-box-body { | |||
background: #101418; | |||
color: #f8f9fa; | |||
border-color: #54595d; | |||
} | |||
.skin-theme-clientpref-night .featured-box-title { | |||
background: #12284a; | |||
color: #ffffff; | |||
border-bottom-color: #54595d; | |||
} | |||
@media screen and (prefers-color-scheme: dark) { | @media screen and (prefers-color-scheme: dark) { | ||
.featured-box { | .skin-theme-clientpref-os .featured-box, | ||
.skin-theme-clientpref-os .featured-box-body { | |||
background: #101418; | background: #101418; | ||
color: #f8f9fa; | |||
border-color: #54595d; | border-color: #54595d; | ||
} | } | ||
.featured-box-title { | .skin-theme-clientpref-os .featured-box-title { | ||
background: #12284a; | background: #12284a; | ||
color: #ffffff; | color: #ffffff; | ||
Revision as of 10:32, 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;
}
/* Default dark mode, only when the wiki skin is actually in dark mode */
.skin-theme-clientpref-night .featured-box,
.skin-theme-clientpref-night .featured-box-body {
background: #101418;
color: #f8f9fa;
border-color: #54595d;
}
.skin-theme-clientpref-night .featured-box-title {
background: #12284a;
color: #ffffff;
border-bottom-color: #54595d;
}
@media screen and (prefers-color-scheme: dark) {
.skin-theme-clientpref-os .featured-box,
.skin-theme-clientpref-os .featured-box-body {
background: #101418;
color: #f8f9fa;
border-color: #54595d;
}
.skin-theme-clientpref-os .featured-box-title {
background: #12284a;
color: #ffffff;
border-bottom-color: #54595d;
}
}
/* Topic 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;
}