]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blob - resources/src/mediawiki.widgets/mw.widgets.TitleWidget.less
MediaWiki 1.30.2
[autoinstalls/mediawiki.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 @import 'mediawiki.mixins';
8
9 .mw-widget-titleWidget-menu {
10         .mw-widget-titleOptionWidget {
11                 line-height: normal;
12
13                 &-description {
14                         color: #72777d;
15                 }
16         }
17
18         &-withImages {
19                 .mw-widget-titleOptionWidget {
20                         .box-sizing( border-box );
21                         min-height: 3.75em;
22                         padding-left: 4.75em;
23
24                         &:not( :last-child ) {
25                                 margin-bottom: 2px;
26                         }
27
28                         > .oo-ui-labelElement-label {
29                                 line-height: 2.8em;
30                         }
31
32                         &.oo-ui-iconElement {
33                                 > .oo-ui-iconElement-icon {
34                                         display: block;
35                                         width: 3.75em;
36                                         height: 3.75em;
37                                         left: 0;
38                                         &:not( .mw-widget-titleOptionWidget-hasImage ) {
39                                                 background-color: #c8ccd1;
40                                                 opacity: 0.4;
41                                         }
42                                         &.mw-widget-titleOptionWidget-hasImage {
43                                                 border: 0;
44                                                 background-size: cover;
45                                                 opacity: 0.7;
46                                         }
47                                 }
48                         }
49
50                         &.oo-ui-optionWidget-highlighted,
51                         &.oo-ui-optionWidget-selected {
52                                 &.oo-ui-iconElement > .mw-widget-titleOptionWidget-hasImage {
53                                         opacity: 1;
54                                 }
55                         }
56                 }
57         }
58
59         &-withDescriptions {
60                 .mw-widget-titleOptionWidget {
61                         > .oo-ui-labelElement-label {
62                                 line-height: 1.5em;
63                         }
64
65                         &-description {
66                                 display: block;
67                                 white-space: nowrap;
68                                 text-overflow: ellipsis;
69                                 overflow: hidden;
70                         }
71                 }
72         }
73
74         &:not( &-withDescriptions ) {
75                 .mw-widget-titleOptionWidget-description {
76                         display: none;
77                 }
78         }
79 }