MediaWiki:Common.css: Difference between revisions

Borrow some more wikipedia css
Fix more infobox stuff
 
(One intermediate revision by the same user not shown)
Line 200: Line 200:
.wraplinks a {
.wraplinks a {
white-space: normal;
white-space: normal;
}
/* No idea where this on wikipedia is but this fixes infoboxes... */
@media screen and (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .hatnote:not(.notheme), html.skin-theme-clientpref-os .dablink:not(.notheme), html.skin-theme-clientpref-os .rellink:not(.notheme), html.skin-theme-clientpref-os .infobox:not(.notheme) {
    color: var(--color-base,#202122) !important;
  }
}
@media screen and (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .infobox td:not(.notheme), html.skin-theme-clientpref-os .infobox th:not(.notheme), html.skin-theme-clientpref-os .infobox-above:not(.notheme), html.skin-theme-clientpref-os .infobox p:not(.notheme), html.skin-theme-clientpref-os .infobox > div:not(.notheme), html.skin-theme-clientpref-os .infobox caption:not(.notheme), html.skin-theme-clientpref-os .infobox--frwiki td:not(.notheme), html.skin-theme-clientpref-os .infobox--frwiki th:not(.notheme), html.skin-theme-clientpref-os .infobox--frwiki p:not(.notheme), html.skin-theme-clientpref-os .infobox--frwiki > div:not(.notheme), html.skin-theme-clientpref-os .infobox--frwiki caption:not(.notheme), html.skin-theme-clientpref-os .sinottico th:not(.notheme), html.skin-theme-clientpref-os .infobox-header:not(.notheme), html.skin-theme-clientpref-os .skin-nightmode-reset-color:not(.notheme), html.skin-theme-clientpref-os .navigation-box:not(.notheme), html.skin-theme-clientpref-os .metadata:not(.notheme), html.skin-theme-clientpref-os .quotebox:not(.notheme), html.skin-theme-clientpref-os .side-box:not(.notheme), html.skin-theme-clientpref-os .side-box div:not(.notheme), html.skin-theme-clientpref-os .navbox:not(.notheme), html.skin-theme-clientpref-os .navbox-subgroup:not(.notheme), html.skin-theme-clientpref-os .navbox-group:not(.notheme), html.skin-theme-clientpref-os .navbox-even:not(.notheme), html.skin-theme-clientpref-os .navbox-abovebelow:not(.notheme), html.skin-theme-clientpref-os .navbox-title:not(.notheme) {
    background: inherit !important;
    color: inherit !important;
    border-color: var(--border-color-subtle,#c8ccd1) !important;
  }
}
}