Template:Infobox dos2 character/styles.css: Difference between revisions
Template page
More actions
Created page with ".infobox{ float:right; text-align: left; background-color: #001D3D; border-spacing: 5px; border: 1px solid #72777d; margin: 0 0 1em 1em; } .infobox-image { text-align:center; object-fit: cover; } .ib-dos-character { border-spacing: 2px 5px; } .infobox-label { vertical-align: top; } .ib-dos-character .infobox-above, .ib-dos-character .infobox-header { text-align:center; background: #000000; } →light background for transparent images: .ib-dos-characte..." |
No edit summary |
||
| Line 13: | Line 13: | ||
} | } | ||
.ib- | .ib-dos2-character { | ||
border-spacing: 2px 5px; | border-spacing: 2px 5px; | ||
} | } | ||
| Line 21: | Line 21: | ||
} | } | ||
.ib- | .ib-dos2-character .infobox-above, | ||
.ib- | .ib-dos2-character .infobox-header { | ||
text-align:center; | text-align:center; | ||
background: #000000; | background: #000000; | ||
| Line 28: | Line 28: | ||
/* light background for transparent images */ | /* light background for transparent images */ | ||
.ib- | .ib-dos2-character .infobox-image img { | ||
background-color: transparent; | background-color: transparent; | ||
} | } | ||
@media screen { | @media screen { | ||
html.skin-theme-clientpref-night .ib- | html.skin-theme-clientpref-night .ib-dos2-character .infobox-above, | ||
html.skin-theme-clientpref-night .ib- | html.skin-theme-clientpref-night .ib-dos2-character .infobox-header { | ||
background: hsl(240, 6%, 20%); | background: hsl(240, 6%, 20%); | ||
color: inherit; | color: inherit; | ||
| Line 41: | Line 41: | ||
@media screen and (prefers-color-scheme: dark) { | @media screen and (prefers-color-scheme: dark) { | ||
html.skin-theme-clientpref-os .ib- | html.skin-theme-clientpref-os .ib-dos2-character .infobox-above, | ||
html.skin-theme-clientpref-os .ib- | html.skin-theme-clientpref-os .ib-dos2-character .infobox-header { | ||
background: hsl(240, 6%, 20%); | background: hsl(240, 6%, 20%); | ||
color: inherit; | color: inherit; | ||
} | } | ||
} | } | ||
Revision as of 14:18, 11 February 2026
.infobox{
float:right;
text-align: left;
background-color: #001D3D;
border-spacing: 5px;
border: 1px solid #72777d;
margin: 0 0 1em 1em;
}
.infobox-image {
text-align:center;
object-fit: cover;
}
.ib-dos2-character {
border-spacing: 2px 5px;
}
.infobox-label {
vertical-align: top;
}
.ib-dos2-character .infobox-above,
.ib-dos2-character .infobox-header {
text-align:center;
background: #000000;
}
/* light background for transparent images */
.ib-dos2-character .infobox-image img {
background-color: transparent;
}
@media screen {
html.skin-theme-clientpref-night .ib-dos2-character .infobox-above,
html.skin-theme-clientpref-night .ib-dos2-character .infobox-header {
background: hsl(240, 6%, 20%);
color: inherit;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .ib-dos2-character .infobox-above,
html.skin-theme-clientpref-os .ib-dos2-character .infobox-header {
background: hsl(240, 6%, 20%);
color: inherit;
}
}