Template:Infobox country/styles.css: Difference between revisions
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..." |
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: # | 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 | .infobox-country th, | ||
.infobox-country | .infobox-country td { | ||
color: inherit; | |||
} | } | ||
. | /* Forced dark mode (Vector 2022) */ | ||
@media screen { | |||
html.skin-theme-clientpref-night .infobox-country { | |||
} | background-color: #202122 !important; | ||
color: #eaecf0 !important; | |||
border-color: #54595d !important; | |||
} | |||
. | html.skin-theme-clientpref-night .infobox-country .infobox-title, | ||
html.skin-theme-clientpref-night .infobox-country .infobox-subtitle { | |||
background-color: #27292d; | |||
} | |||
.infobox-country .infobox- | |||
.infobox-country .infobox- | |||
} | |||
.infobox-country .infobox- | html.skin-theme-clientpref-night .infobox-country th, | ||
html.skin-theme-clientpref-night .infobox-country td { | |||
border-top-color: #54595d !important; | |||
} | |||
} | } | ||
. | /* Automatic OS dark mode (Vector 2022) */ | ||
@media screen and (prefers-color-scheme: dark) { | |||
html.skin-theme-clientpref-os .infobox-country { | |||
} | background-color: #202122 !important; | ||
color: #eaecf0 !important; | |||
border-color: #54595d !important; | |||
} | |||
.infobox-country .infobox- | html.skin-theme-clientpref-os .infobox-country .infobox-title, | ||
html.skin-theme-clientpref-os .infobox-country .infobox-subtitle { | |||
background-color: #27292d; | |||
} | |||
} | |||
.infobox-country .infobox- | html.skin-theme-clientpref-os .infobox-country th, | ||
html.skin-theme-clientpref-os .infobox-country td { | |||
border-top-color: #54595d !important; | |||
} | |||
} | } | ||