mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
3963b1daf2
Fetches images from PageImages extension and descriptions from Wikibase. Bug: T93693 Bug: T93694 (partial) Change-Id: I1bea6b7b57ab951e79468cfa00e9eecddc113d18
59 lines
1.7 KiB
CSS
59 lines
1.7 KiB
CSS
/*!
|
|
* VisualEditor MediaWiki UserInterface MWInternalLinkMenuOptionWidget styles.
|
|
*
|
|
* @copyright 2011-2015 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
.ve-ui-mwLinkTargetInputWidget-menu-withImages .ve-ui-mwInternalLinkMenuOptionWidget {
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
min-height: 3.75em;
|
|
margin-left: 3.75em;
|
|
}
|
|
|
|
.ve-ui-mwLinkTargetInputWidget-menu-withImages .ve-ui-mwInternalLinkMenuOptionWidget:not(:last-child) {
|
|
margin-bottom: 1px;
|
|
}
|
|
|
|
.ve-ui-mwLinkTargetInputWidget-menu-withImages .oo-ui-iconElement .oo-ui-iconElement-icon {
|
|
display: block;
|
|
width: 3.75em;
|
|
height: 3.75em;
|
|
left: -3.75em;
|
|
background-color: #ccc;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.ve-ui-mwLinkTargetInputWidget-menu-withImages .oo-ui-iconElement .ve-ui-mwInternalLinkMenuOptionWidget-hasImage {
|
|
border: 0;
|
|
background-size: cover;
|
|
opacity: 1;
|
|
}
|
|
|
|
.ve-ui-mwLinkTargetInputWidget-menu-withImages .ve-ui-mwInternalLinkMenuOptionWidget .oo-ui-labelElement-label {
|
|
line-height: 3em;
|
|
}
|
|
|
|
.ve-ui-mwInternalLinkMenuOptionWidget-description {
|
|
display: none;
|
|
}
|
|
|
|
.ve-ui-mwLinkTargetInputWidget-menu-withDescriptions .ve-ui-mwInternalLinkMenuOptionWidget .oo-ui-labelElement-label {
|
|
line-height: 1.5em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ve-ui-mwLinkTargetInputWidget-menu-withDescriptions .ve-ui-mwInternalLinkMenuOptionWidget-description {
|
|
display: block;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.oo-ui-menuOptionWidget:not(.oo-ui-optionWidget-selected) .ve-ui-mwInternalLinkMenuOptionWidget-description,
|
|
.oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted .ve-ui-mwInternalLinkMenuOptionWidget-description {
|
|
color: #888;
|
|
}
|