mediawiki-extensions-Cite/modules/ve-cite/ve.ui.MWReferenceResultWidget.less

34 lines
907 B
Plaintext
Raw Normal View History

/*!
* VisualEditor MediaWiki UserInterface MWReferenceResultWidget styles.
*
* @copyright 2011-2018 VisualEditor Team's Cite sub-team and others; see AUTHORS.txt
* @license MIT
*/
@import 'mediawiki.skin.variables.less';
.ve-ui-mwReferenceResultWidget {
padding: 1em;
// Limit extremely large references to not overflow the dialog
max-height: 12em;
overflow: hidden;
border-bottom: @border-width-base @border-style-base @border-color-muted;
&:last-child {
border-bottom: 0;
}
&.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;
}
&.oo-ui-labelElement .oo-ui-labelElement-label {
white-space: normal;
// Ignore clicks on e.g. <a> elements that are part of the reference's text
pointer-events: none;
word-wrap: break-word;
}
}