mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 00:40:12 +00:00
25d474b866
It was originally added in I661493ab2f in 2013, to hide errors that would appear when templates containing re-uses of references were previewed separately from the rest of the page. It has been made unnecessary when VisualEditor was changed to render wikitext fragments (such as previewing templates) using Parsoid rather than legacy parser, in 2014: I8a61d2fab8. However it wasn't removed then, and then Ide82c96db4 changed the selector and made it more difficult to understand its purpose (and caused T301845, seven years later), and then Iba0f25b3eb / I39936ed83d moved it to this repo in 2016, and then everyone forgot about it. Bug: T53141 Bug: T301845 Change-Id: I7ac5ed6544575877fe1b6f09951e58b35df9648d
31 lines
973 B
CSS
31 lines
973 B
CSS
/*!
|
|
* VisualEditor ContentEditable MediaWiki MWReferenceNode styles.
|
|
*
|
|
* @copyright 2011-2018 VisualEditor Team's Cite sub-team and others; see AUTHORS.txt
|
|
* @license MIT
|
|
*/
|
|
|
|
/* In IE, force hasLayout so the <sup>'s box gets measured correctly */
|
|
.ve-init-target-ie .ve-ce-mwReferenceNode {
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Use transparency to hide the default rendering, rather than display:none.
|
|
* This allows the browser to paint the native selection background over it.
|
|
*
|
|
* The real content is displayed using the :after pseudo-element, but browsers
|
|
* do not allow them to be selected, which makes for a poor editing experience.
|
|
*
|
|
* Previously this was also required to work around a cursoring bug in Chromium
|
|
* (T123608), but as of 2020 that bug seems to be fixed in the browser.
|
|
*/
|
|
.ve-ce-mwReferenceNode span.mw-reflink-text {
|
|
color: transparent;
|
|
position: absolute;
|
|
display: inline;
|
|
}
|
|
|
|
.ve-ce-mwReferenceNode-placeholder a:after {
|
|
content: '[…]';
|
|
}
|