mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +00:00
Upstream CSS hacks from skins
Change-Id: Ic2aca1e005c5d5f89a97372de40bd8aa6f4b2aa0
This commit is contained in:
parent
3085fba0f3
commit
4332698408
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue