2016-02-03 21:03:41 +00:00
|
|
|
/*!
|
|
|
|
* VisualEditor MediaWiki UserInterface MWReferenceResultWidget 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
|
|
|
*/
|
|
|
|
|
2024-07-19 15:45:17 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
|
|
|
|
2016-02-03 21:03:41 +00:00
|
|
|
.ve-ui-mwReferenceResultWidget {
|
|
|
|
padding: 1em;
|
2024-03-13 12:42:57 +00:00
|
|
|
// Limit extremely large references to not overflow the dialog
|
|
|
|
max-height: 12em;
|
|
|
|
overflow: hidden;
|
2024-07-19 15:45:17 +00:00
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-muted;
|
2016-02-03 21:03:41 +00:00
|
|
|
|
2024-09-27 22:01:15 +00:00
|
|
|
// Class applied only to subrefs
|
|
|
|
&-sub .oo-ui-labelElement-label {
|
|
|
|
margin-left: 2em;
|
|
|
|
}
|
|
|
|
|
2024-01-21 14:59:20 +00:00
|
|
|
&:last-child {
|
|
|
|
border-bottom: 0;
|
|
|
|
}
|
2016-02-03 21:03:41 +00:00
|
|
|
|
2024-07-19 15:54:15 +00:00
|
|
|
&.oo-ui-optionWidget-highlighted {
|
|
|
|
// OOUI's SearchWidget doesn't come with a style for this, so we copy MenuOptionWidget
|
|
|
|
background-color: @background-color-interactive;
|
|
|
|
color: @color-emphasized;
|
|
|
|
}
|
|
|
|
|
2024-01-21 14:59:20 +00:00
|
|
|
&.oo-ui-labelElement .oo-ui-labelElement-label {
|
|
|
|
white-space: normal;
|
2024-03-13 12:42:57 +00:00
|
|
|
// Ignore clicks on e.g. <a> elements that are part of the reference's text
|
2024-06-14 12:46:53 +00:00
|
|
|
pointer-events: none;
|
2024-03-13 12:42:57 +00:00
|
|
|
word-wrap: break-word;
|
2024-01-21 14:59:20 +00:00
|
|
|
}
|
2024-09-27 22:01:15 +00:00
|
|
|
|
|
|
|
// How the footnote marker appears in the text, e.g. [1]
|
|
|
|
&-footnote {
|
|
|
|
float: left;
|
|
|
|
margin-right: 0.75em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|
2016-02-03 21:03:41 +00:00
|
|
|
}
|