2016-02-03 21:03:41 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor ContentEditable MediaWiki MWReferenceNode styles.
|
|
|
|
*
|
2018-01-03 01:05:45 +00:00
|
|
|
* @copyright 2011-2018 VisualEditor Team's Cite sub-team and others; see AUTHORS.txt
|
2017-12-29 12:12:35 +00:00
|
|
|
* @license MIT
|
2016-02-03 21:03:41 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* In IE, force hasLayout so the <sup>'s box gets measured correctly */
|
|
|
|
.ve-init-target-ie .ve-ce-mwReferenceNode {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
2016-08-04 20:59:44 +00:00
|
|
|
|
2020-01-04 12:48:37 +00:00
|
|
|
/* 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.
|
|
|
|
*/
|
2016-08-04 20:59:44 +00:00
|
|
|
.ve-ce-mwReferenceNode span.mw-reflink-text {
|
2020-01-04 12:48:37 +00:00
|
|
|
color: transparent;
|
|
|
|
position: absolute;
|
2016-08-04 20:59:44 +00:00
|
|
|
display: inline;
|
|
|
|
}
|
2019-03-27 12:54:18 +00:00
|
|
|
|
|
|
|
.ve-ce-mwReferenceNode-placeholder a:after {
|
|
|
|
content: '[…]';
|
|
|
|
}
|