Upstream CSS hacks from skins

Change-Id: Ic2aca1e005c5d5f89a97372de40bd8aa6f4b2aa0
This commit is contained in:
Ed Sanders 2024-11-22 13:05:41 +00:00
parent 3085fba0f3
commit 4332698408
2 changed files with 27 additions and 0 deletions

View file

@ -96,3 +96,23 @@ a[ rel~='mw:PageProp/Category' ] {
white-space: nowrap;
font-weight: bold;
}
/* Night mode */
// FIXME: Can be removed when T369092 is resolved
&.skin-theme-clientpref-night {
.ve-ce-branchNode-blockSlug,
body p.ve-ce-branchNode-newSlug {
background-color: rgba( 241, 247, 251, 0.1 );
}
}
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
@media ( prefers-color-scheme: dark ) {
&.skin-theme-clientpref-os {
.ve-ce-branchNode-blockSlug,
body p.ve-ce-branchNode-newSlug {
background-color: rgba( 241, 247, 251, 0.1 );
}
}
}

View file

@ -5,6 +5,13 @@
* @license The MIT License (MIT); see LICENSE.txt
*/
// Temporarily disable TOC in edit mode until TOC
// works with both visual and source editors (T294950)
/* stylelint-disable-next-line selector-class-pattern */
.ve-activated .vector-toc {
display: none;
}
.ve-init-mw-desktopArticleTarget-toolbar,
.ve-init-mw-desktopArticleTarget-toolbarPlaceholder,
.ve-ui-overlay-local,