mediawiki-extensions-Visual.../modules/ve-mw/ui/styles/widgets/ve.ui.MWInternalLinkMenuOptionWidget.css
Ed Sanders 59a638491d Fix height when descriptions not present
Change-Id: I9ae9043ebcc99c99d1226635ff408ae1d4015925
2015-04-28 23:26:15 +00:00

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: 2.8em;
}
.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;
}