2014-12-08 23:42:19 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MediaWiki Initialization Target styles.
|
|
|
|
*
|
2023-12-01 16:06:11 +00:00
|
|
|
* @copyright See AUTHORS.txt
|
2014-12-08 23:42:19 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* Dialogs */
|
|
|
|
|
|
|
|
/* Override overflow: hidden; from MW styles */
|
|
|
|
.ve-ui-commandHelpDialog-section h3 {
|
|
|
|
overflow: visible;
|
|
|
|
}
|
2014-12-08 23:45:23 +00:00
|
|
|
|
2018-07-05 15:32:37 +00:00
|
|
|
/* Override MediaWiki's styles that make sense in read mode only */
|
|
|
|
|
2019-11-13 22:44:33 +00:00
|
|
|
// Prevent jQuery.makeCollapsible from hiding things, even if collapsed by default.
|
|
|
|
// These selectors must exactly match those in jquery.makeCollapsible.styles.less in MediaWiki.
|
|
|
|
@exclude: ~'.mw-made-collapsible';
|
|
|
|
|
|
|
|
.client-js {
|
|
|
|
.ve-ce-surface,
|
|
|
|
.ve-ui-diffElement {
|
|
|
|
.mw-collapsed:not( @{exclude} ) {
|
|
|
|
> p {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
> table {
|
|
|
|
display: table;
|
|
|
|
}
|
|
|
|
|
|
|
|
> thead + tbody {
|
|
|
|
display: table-row-group;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr:not( :first-child ) {
|
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mw-collapsible-content {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-10-30 13:46:51 +00:00
|
|
|
}
|
|
|
|
|
2018-07-05 15:32:37 +00:00
|
|
|
/*
|
|
|
|
* Grey out the fake toggles to make it more obvious they are not interactive.
|
|
|
|
* Don't bother trying to float the toggles, as the text they are floating around
|
|
|
|
* is now paragraph wrapped. Making these paragraphs display:inline would fix the
|
|
|
|
* rendering but causes them to be destroyed by the CE when empty (T197987).
|
|
|
|
*/
|
2023-03-12 22:02:20 +00:00
|
|
|
.ve-ce-mwTableNode.mw-collapsible :first-child tr:first-child th:last-child::before,
|
|
|
|
.ve-ce-mwTableNode.mw-collapsible > caption:first-child::after,
|
|
|
|
.ve-ui-diffElement table.mw-collapsible :first-child tr:first-child th:last-child::before,
|
|
|
|
.ve-ui-diffElement table.mw-collapsible > caption:first-child::after {
|
2018-07-05 15:32:37 +00:00
|
|
|
color: #999;
|
|
|
|
float: none;
|
|
|
|
}
|
2019-02-13 13:21:26 +00:00
|
|
|
|
2023-03-12 22:02:20 +00:00
|
|
|
.ve-ce-surface div.mw-collapsible::before,
|
|
|
|
.ve-ui-diffElement div.mw-collapsible::before {
|
2019-10-30 13:46:51 +00:00
|
|
|
color: #999;
|
|
|
|
}
|
|
|
|
|
2022-01-19 16:01:44 +00:00
|
|
|
/* Categories */
|
|
|
|
|
|
|
|
// Don't show categories from converter preview mode (e.g. <ref>[[Category:Foo]]</ref)...
|
|
|
|
a[ rel~='mw:PageProp/Category' ] {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
// ... unless in a category list (e.g. visual diff)
|
|
|
|
.catlinks & { /* stylelint-disable-line selector-class-pattern */
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Increase specificity of catlink margin reset when nested in body content (e.g. in visual diff)
|
|
|
|
.mw-body-content .catlinks ul { /* stylelint-disable-line selector-class-pattern */
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2019-02-13 13:21:26 +00:00
|
|
|
/* Reset section node styles */
|
2023-03-12 22:02:20 +00:00
|
|
|
.ve-init-mw-target .ve-ce-sectionNode::before,
|
|
|
|
.ve-init-mw-target .ve-ce-sectionNode::after {
|
2019-02-13 13:21:26 +00:00
|
|
|
content: normal;
|
|
|
|
}
|
|
|
|
|
2023-06-22 15:26:47 +00:00
|
|
|
.ve-init-mw-target .ve-ce-surface .ve-ce-sectionNode:not( .ve-ce-activeNode-active ) {
|
2019-02-13 13:21:26 +00:00
|
|
|
opacity: 1;
|
|
|
|
}
|
2019-04-15 22:39:56 +00:00
|
|
|
|
|
|
|
/* Save button */
|
|
|
|
.ve-ui-toolbar-saveButton {
|
2019-06-20 18:29:52 +00:00
|
|
|
white-space: nowrap;
|
2019-04-15 22:39:56 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
2024-11-22 13:05:41 +00:00
|
|
|
|
|
|
|
/* 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 );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|