Modèle:Infobox/mainInfobox.css
Apparence
.infobox {
border: 1px solid var(--border-color-base, #a2a9b1);
background: var(--background-color-neutral-subtle, #f8f9fa);
margin-bottom: .5em;
margin-left: 1em;
padding: .4em;
float: right;
clear: right;
font-size: 90%;
width: 23em;
vertical-align: middle;
text-align: left;
border-collapse: separate;
border-spacing: 2px;
}
.infobox > caption {
font-size: 125%;
font-weight: bold;
padding: .2em;
}
.infobox-above {
background: var(--ruwiki-background-color-blue200, #cfe3ff);
font-size: 120%;
text-align: center;
}
.infobox-image {
padding-left: 0;
padding-right: 0;
text-align: center;
margin-bottom: 4px;
}
.infobox-image-description {
text-align: center;
margin-bottom: 4px;
}
.infobox-header, .infobox-section {
background: var(--ruwiki-background-color-blue150, #dcebff);
text-align: center;
font-weight: bold;
margin-bottom: 4px;
padding: 4px;
border: 1px solid #a2a9b1;
}
.infobox-below {
background: var(--ruwiki-background-color-blue150, #dcebff);
text-align: center;
}
.infobox-row {
display: flex;
align-items: baseline;
margin-bottom: 4px;
}
.infobox-label {
font-weight: bold;
color: #555;
white-space: nowrap;
width: 50%;
padding-left: 4px;
}
.infobox-value {
color: #222;
width: 50%;
padding-right: 4px;
}
.infobox small,
.navbox small,
.references small {
font-size: 90%;
}
.infobox-map {
margin-top: 2px;
margin-bottom: 4px;
}
.infobox-portal {
text-align: center;
font-weight: bold;
}
/* Мобильная версия */
@media only screen and (max-width: 600px) {
.infobox {
width:100%;
}
}
@media screen {
html.skin-theme-clientpref-night .infobox {
background-color: #383838;
color: #ace;
}
html.skin-theme-clientpref-night .nameHeadofInfobox,
html.skin-theme-clientpref-night .additionalHead {
background-color: black;
color: white;
}
html.skin-theme-clientpref-night .infobox-header, html.skin-theme-clientpref-night .infobox-section {
background-color: black!important;
color: white;
}
html.skin-theme-clientpref-night .infobox-row {
color: white!important;
}
}