summaryrefslogtreecommitdiff
path: root/resources/src/mediawiki.widgets/mw.widgets.TitleInputWidget.css
blob: 2c24b2bbab71525b7c00165a1e82b7e2ff03b80e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*!
 * 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;
}