Template:Infobox country/styles.css: Difference between revisions

Nota (talk | contribs)
Created page with ".infobox-country { width: 22em; float: right; clear: right; margin: 0.5em 0 1em 1em; border: 1px solid #a2a9b1; background-color: #f8f9fa; color: #000; font-size: 88%; line-height: 1.5em; border-collapse: collapse; } .infobox-country .infobox-title { text-align: center; font-size: 125%; font-weight: bold; padding: 0.4em; background-color: #eaecf0; } .infobox-country .infobox-subtitle { text-align: center; font-size: 100%; font-weight: normal; padding..."
 
Nota (talk | contribs)
No edit summary
 
Line 4: Line 4:
clear: right;
clear: right;
margin: 0.5em 0 1em 1em;
margin: 0.5em 0 1em 1em;
border: 1px solid #a2a9b1;
border: 1px solid #a2a9b1 !important;
background-color: #f8f9fa;
background-color: #f8f9fa !important;
color: #000;
color: #202122 !important;
font-size: 88%;
font-size: 88%;
line-height: 1.5em;
line-height: 1.5em;
Line 18: Line 18:
padding: 0.4em;
padding: 0.4em;
background-color: #eaecf0;
background-color: #eaecf0;
color: inherit;
}
}


Line 26: Line 27:
padding: 0.2em 0.4em;
padding: 0.2em 0.4em;
background-color: #eaecf0;
background-color: #eaecf0;
color: inherit;
}
}


.infobox-country tr.infobox-border-top > th,
.infobox-country th,
.infobox-country tr.infobox-border-top > td {
.infobox-country td {
border-top: 1px solid #a2a9b1;
color: inherit;
}
}


.infobox-country .infobox-images-cell {
/* Forced dark mode (Vector 2022) */
text-align: center;
@media screen {
padding: 0.5em;
html.skin-theme-clientpref-night .infobox-country {
}
background-color: #202122 !important;
color: #eaecf0 !important;
border-color: #54595d !important;
}


.infobox-country .infobox-images-table {
html.skin-theme-clientpref-night .infobox-country .infobox-title,
width: 100%;
html.skin-theme-clientpref-night .infobox-country .infobox-subtitle {
border-collapse: collapse;
background-color: #27292d;
background: transparent;
}
}
 
.infobox-country .infobox-image-item {
text-align: center;
vertical-align: middle;
padding: 0.2em;
}
 
.infobox-country .infobox-center-cell {
text-align: center;
padding: 0.4em;
}


.infobox-country .infobox-label {
html.skin-theme-clientpref-night .infobox-country th,
text-align: left;
html.skin-theme-clientpref-night .infobox-country td {
vertical-align: top;
border-top-color: #54595d !important;
padding: 0.4em;
}
width: 40%;
}
}


.infobox-country .infobox-data {
/* Automatic OS dark mode (Vector 2022) */
vertical-align: top;
@media screen and (prefers-color-scheme: dark) {
padding: 0.4em;
html.skin-theme-clientpref-os .infobox-country {
}
background-color: #202122 !important;
color: #eaecf0 !important;
border-color: #54595d !important;
}


.infobox-country .infobox-leader-label {
html.skin-theme-clientpref-os .infobox-country .infobox-title,
text-align: left;
html.skin-theme-clientpref-os .infobox-country .infobox-subtitle {
vertical-align: top;
background-color: #27292d;
padding: 0.2em 0.4em;
}
font-weight: normal;
width: 40%;
}


.infobox-country .infobox-leader-data {
html.skin-theme-clientpref-os .infobox-country th,
vertical-align: top;
html.skin-theme-clientpref-os .infobox-country td {
padding: 0.2em 0.4em;
border-top-color: #54595d !important;
}
}
}