mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
324e34fb12
TODO: This can be merged as-is, since it only affects pages with subrefs, but it behaves surprisingly when the ref body is long. In this case, the text wraps around and flows onto the next lines unindented. A full implementation would require deeper changes to the item pane layout, which is happening in a separate patch. Recommend merging this as a quick visual fix and then we come back to the subref+long content edge case once the pane is easier to adjust layout in. Bug: T375841 Change-Id: I65510f1550e033e57a3493676d8fc24f628c0600
44 lines
1 KiB
Plaintext
44 lines
1 KiB
Plaintext
/*!
|
|
* VisualEditor MediaWiki UserInterface MWReferenceSearchWidget styles.
|
|
*
|
|
* @copyright 2011-2018 VisualEditor Team's Cite sub-team and others; see AUTHORS.txt
|
|
* @license MIT
|
|
*/
|
|
|
|
@import 'mediawiki.skin.variables.less';
|
|
|
|
.ve-ui-mwReferenceSearchWidget {
|
|
// How the footnote marker appears in the text, e.g. [1]
|
|
&-footnote {
|
|
float: left;
|
|
margin-right: 0.75em;
|
|
|
|
// Class applied only to subrefs
|
|
&-sub {
|
|
margin-left: 2em;
|
|
}
|
|
}
|
|
|
|
// A reference's unique identifier as provided via the name="…" attribute
|
|
&-name {
|
|
opacity: @opacity-medium;
|
|
float: right;
|
|
margin-left: 0.75em;
|
|
margin-bottom: 0.05em;
|
|
// Limit overly long names and push them to the side
|
|
max-width: 40%;
|
|
text-align: right;
|
|
|
|
// Names like ":0" are less meaningful, still useful esp. when switching to wikitext
|
|
&-autogenerated {
|
|
opacity: @opacity-low;
|
|
}
|
|
}
|
|
|
|
// Preview the reference's content with less whitespace, relevant when it contains e.g. tables
|
|
.ve-ui-mwPreviewElement * {
|
|
margin-bottom: 0;
|
|
margin-top: 0;
|
|
}
|
|
}
|