mw.widgets.DateInputWidget: Actually display the indicator
[lhc/web/wiklou.git] / resources / src / mediawiki.widgets / mw.widgets.TitleWidget.less
1 /*!
2 * MediaWiki Widgets - TitleWidget styles.
3 *
4 * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
6 */
7
8 .mw-widget-titleWidget {
9 .mw-widget-titleOptionWidget {
10 line-height: normal;
11
12 &-description {
13 color: #888;
14 }
15 }
16
17 &-menu-withImages {
18 .mw-widget-titleOptionWidget {
19 -webkit-box-sizing: border-box;
20 -moz-box-sizing: border-box;
21 box-sizing: border-box;
22 min-height: 3.75em;
23 padding-left: 4.75em;
24
25 &:not(:last-child) {
26 margin-bottom: 2px;
27 }
28
29 > .oo-ui-labelElement-label {
30 line-height: 2.8em;
31 }
32
33 &.oo-ui-iconElement {
34 >.oo-ui-iconElement-icon {
35 display: block;
36 width: 3.75em;
37 height: 3.75em;
38 left: 0;
39 background-color: #ccc;
40 opacity: 0.4;
41 }
42
43 > .mw-widget-titleOptionWidget-hasImage {
44 border: 0;
45 background-size: cover;
46 opacity: 0.7;
47 }
48 }
49 }
50
51 &.oo-ui-optionWidget-highlighted, &.oo-ui-optionWidget-selected {
52 &.oo-ui-iconElement > .mw-widget-titleOptionWidget-hasImage {
53 opacity: 1;
54 }
55 }
56 }
57
58 &-menu-withDescriptions {
59 .mw-widget-titleOptionWidget {
60 > .oo-ui-labelElement-label {
61 line-height: 1.5em;
62 }
63
64 &-description {
65 white-space: nowrap;
66 text-overflow: ellipsis;
67 overflow: hidden;
68 }
69 }
70 }
71
72 &:not(&-menu-withDescriptions) {
73 .mw-widget-titleOptionWidget-description {
74 display: none;
75 }
76 }
77 }