mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-19 04:05:57 +00:00
eddd0b384a
Since we're now only loading the light-weight init on page load, the section editing wasn't just deferred to after page load (like it was before), but wasn't happening at all until you clicked "Edit" (at which point the library loads). It only worked when going back to "View" after "Edit". Contrary to tab layout, edit section handling needs to be accessible both in the top init and in the main target class because we need to run it both at run time and after the user has saved a page when we show them the updated page without refresh. This is why we need to transfer the method at run time and give the main class access to it as well. Can't wait for bug 50707 to get rid of this mess... Bug: 50731 Bug: 49993 Change-Id: Iab9c81222df7f1084179c3643d158374a89ca14b
46 lines
1.2 KiB
CSS
46 lines
1.2 KiB
CSS
/*!
|
|
* VisualEditor MediaWiki ViewPageTarget init styles.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/* Section edit links */
|
|
|
|
.mw-editsection {
|
|
white-space: nowrap;
|
|
padding-right: 0.25em;
|
|
/* bidi isolation: */
|
|
unicode-bidi: -moz-isolate;
|
|
unicode-bidi: -webkit-isolate;
|
|
unicode-bidi: isolate;
|
|
}
|
|
|
|
.mw-editsection-divider {
|
|
color: #ccc;
|
|
}
|
|
|
|
.mw-editsection-bracket {
|
|
-webkit-transition: color 100ms ease-out, margin 100ms ease-out;
|
|
-moz-transition: color 100ms ease-out, margin 100ms ease-out;
|
|
-ms-transition: color 100ms ease-out, margin 100ms ease-out;
|
|
-o-transition: color 100ms ease-out, margin 100ms ease-out;
|
|
transition: color 100ms ease-out, margin 100ms ease-out;
|
|
}
|
|
|
|
/* @noflip */
|
|
.mw-content-ltr .mw-editsection-expanded .mw-editsection-bracket:first-of-type,
|
|
.mw-content-rtl .mw-editsection-expanded .mw-editsection-bracket:not(:first-of-type) {
|
|
margin-left: -0.25em;
|
|
margin-right: 0.25em;
|
|
color: #ccc;
|
|
}
|
|
|
|
/* @noflip */
|
|
.mw-content-rtl .mw-editsection-expanded .mw-editsection-bracket:first-of-type,
|
|
.mw-content-ltr .mw-editsection-expanded .mw-editsection-bracket:not(:first-of-type) {
|
|
margin-right: -0.25em;
|
|
margin-left: 0.25em;
|
|
color: #ccc;
|
|
}
|