/*!
 * MediaWiki Widgets - TitleInputWidget styles.
 *
 * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
 * @license The MIT License (MIT); see LICENSE.txt
 */

.mw-widget-titleInputWidget-menu-withImages .mw-widget-titleOptionWidget {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	min-height: 3.75em;
	margin-left: 3.75em;
}

.mw-widget-titleInputWidget-menu-withImages .mw-widget-titleOptionWidget:not(:last-child) {
	margin-bottom: 1px;
}

.mw-widget-titleInputWidget-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;
}

.mw-widget-titleInputWidget-menu-withImages .oo-ui-iconElement .mw-widget-titleOptionWidget-hasImage {
	border: 0;
	background-size: cover;
	opacity: 1;
}

.mw-widget-titleInputWidget-menu-withImages .mw-widget-titleOptionWidget .oo-ui-labelElement-label {
	line-height: 2.8em;
}

.mw-widget-titleOptionWidget-description {
	display: none;
}

.mw-widget-titleInputWidget-menu-withDescriptions .mw-widget-titleOptionWidget .oo-ui-labelElement-label {
	line-height: 1.5em;
}

.mw-widget-titleInputWidget-menu-withDescriptions .mw-widget-titleOptionWidget-description {
	display: block;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.oo-ui-menuOptionWidget:not(.oo-ui-optionWidget-selected) .mw-widget-titleOptionWidget-description,
.oo-ui-menuOptionWidget.oo-ui-optionWidget-highlighted .mw-widget-titleOptionWidget-description {
	color: #888;
}
