MediaWiki:Vector-2022.css: Difference between revisions
Appearance
Content deleted Content added
Can safely be removed per talk page. |
Update to use @media screen per Recommendations_for_night_mode_compatibility_on_Wikimedia_wikis |
||
Line 24: | Line 24: | ||
} |
} |
||
@media screen { |
|||
/* [[phab:T360844]] */ |
/* [[phab:T360844]] */ |
||
html.skin-theme-clientpref-night table:not(.infobox) [bgcolor] a, |
|||
html.skin-theme-clientpref-night table:not(.infobox) th[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a, |
html.skin-theme-clientpref-night table:not(.infobox) [bgcolor] a, |
||
html.skin-theme-clientpref-night table:not(.infobox) th[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a, |
|||
html.skin-theme-clientpref-night table:not(.infobox) td[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a, |
html.skin-theme-clientpref-night table:not(.infobox) td[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a, |
||
/* should not apply to th elements which have their own background. */ |
/* should not apply to th elements which have their own background. */ |
||
html.skin-theme-clientpref-night table:not(.infobox) tr[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) td a { |
html.skin-theme-clientpref-night table:not(.infobox) tr[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) td a { |
||
color: #202122; /* replace with --color-base-fixed when token is available */ |
color: #202122; /* replace with --color-base-fixed when token is available */ |
||
text-decoration: underline; |
text-decoration: underline; |
||
} |
} |
||
html.skin-theme-clientpref-night .infobox a { |
html.skin-theme-clientpref-night .infobox a { |
||
color: var( --color-progressive ) !important; |
color: var( --color-progressive ) !important; |
||
} |
|||
} |
} |
||
@media (prefers-color-scheme: dark) { |
@media screen and (prefers-color-scheme: dark) { |
||
html.skin-theme-clientpref-os table:not(.infobox) [bgcolor] a, |
html.skin-theme-clientpref-os table:not(.infobox) [bgcolor] a, |
||
html.skin-theme-clientpref-os table:not(.infobox) th[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a, |
html.skin-theme-clientpref-os table:not(.infobox) th[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a, |
Revision as of 23:08, 11 July 2024
/**
* Note: [[MediaWiki:Common.css]] is loaded in addition to these styles
* Please use [[Extension:TemplateStyles]] where possible.
*/
#coordinates {
line-height: 2;
font-size: 92%;
white-space: nowrap;
}
/* Don't display some stuff on the main page */
.page-Main_Page #deleteconfirm,
.page-Main_Page #t-cite,
.page-Main_Page #footer-info-lastmod,
.action-view.page-Main_Page #siteSub,
.action-view.page-Main_Page #contentSub,
.action-view.page-Main_Page #contentSub2 {
display: none !important;
}
/* Override [[phab:T265947]] */
.mw-body-content blockquote {
border-left: none;
}
@media screen {
/* [[phab:T360844]] */
html.skin-theme-clientpref-night table:not(.infobox) [bgcolor] a,
html.skin-theme-clientpref-night table:not(.infobox) th[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a,
html.skin-theme-clientpref-night table:not(.infobox) td[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a,
/* should not apply to th elements which have their own background. */
html.skin-theme-clientpref-night table:not(.infobox) tr[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) td a {
color: #202122; /* replace with --color-base-fixed when token is available */
text-decoration: underline;
}
html.skin-theme-clientpref-night .infobox a {
color: var( --color-progressive ) !important;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os table:not(.infobox) [bgcolor] a,
html.skin-theme-clientpref-os table:not(.infobox) th[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a,
html.skin-theme-clientpref-os table:not(.infobox) td[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) a,
html.skin-theme-clientpref-os table:not(.infobox) tr[style*="background"]:not([style*="transparent"]):not([style*="inherit"]) td a {
color: #202122; /* replace with --color-base-fixed when token is available */
text-decoration: underline;
}
html.skin-theme-clientpref-os .infobox a {
color: var( --color-progressive ) !important;
}
}