Template:Infobox larian/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-item { border-spacing: 2px 5px; } .ib-item .infobox-above, .ib-item .infobox-header { text-align: center; background-color: #DEDEE2; } →light background for transparent images: .ib-item .infobox-image img { background-color: transparent; } @media screen..." |
No edit summary |
||
| Line 11: | Line 11: | ||
object-fit: cover; | object-fit: cover; | ||
} | } | ||
.ib- | .ib-larian { | ||
border-spacing: 2px 5px; | border-spacing: 2px 5px; | ||
} | } | ||
.ib- | .ib-larian .infobox-above, | ||
.ib- | .ib-larian .infobox-header { | ||
text-align: center; | text-align: center; | ||
background-color: #DEDEE2; | background-color: #DEDEE2; | ||
| Line 22: | Line 22: | ||
/* light background for transparent images */ | /* light background for transparent images */ | ||
.ib- | .ib-larian .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-larian .infobox-above, | ||
html.skin-theme-clientpref-night .ib- | html.skin-theme-clientpref-night .ib-larian .infobox-header { | ||
background: hsl(240, 6%, 20%); | background: hsl(240, 6%, 20%); | ||
color: inherit; | color: inherit; | ||
| Line 35: | Line 35: | ||
@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-larian .infobox-above, | ||
html.skin-theme-clientpref-os .ib- | html.skin-theme-clientpref-os .ib-larian .infobox-header { | ||
background: hsl(240, 6%, 20%); | background: hsl(240, 6%, 20%); | ||
color: inherit; | color: inherit; | ||
} | } | ||
} | } | ||
Revision as of 16:57, 28 March 2025
.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-larian {
border-spacing: 2px 5px;
}
.ib-larian .infobox-above,
.ib-larian .infobox-header {
text-align: center;
background-color: #DEDEE2;
}
/* light background for transparent images */
.ib-larian .infobox-image img {
background-color: transparent;
}
@media screen {
html.skin-theme-clientpref-night .ib-larian .infobox-above,
html.skin-theme-clientpref-night .ib-larian .infobox-header {
background: hsl(240, 6%, 20%);
color: inherit;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .ib-larian .infobox-above,
html.skin-theme-clientpref-os .ib-larian .infobox-header {
background: hsl(240, 6%, 20%);
color: inherit;
}
}