Import: Handle uploads with sha1 starting with 0 properly
[mediawiki.git] / resources / src / mediawiki.widgets / mw.widgets.TitleWidget.less
blob86d4cfea1a4682bf6d260d961eaf4cff3df7abc2
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  */
8 .mw-widget-titleWidget-menu {
9         .mw-widget-titleOptionWidget {
10                 line-height: normal;
12                 &-description {
13                         color: #888;
14                 }
15         }
17         &-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;
25                         &:not( :last-child ) {
26                                 margin-bottom: 2px;
27                         }
29                         > .oo-ui-labelElement-label {
30                                 line-height: 2.8em;
31                         }
33                         &.oo-ui-iconElement {
34                                 > .oo-ui-iconElement-icon {
35                                         display: block;
36                                         width: 3.75em;
37                                         height: 3.75em;
38                                         left: 0;
39                                         &:not( .mw-widget-titleOptionWidget-hasImage ) {
40                                                 background-color: #ccc;
41                                                 opacity: 0.4;
42                                         }
43                                         &.mw-widget-titleOptionWidget-hasImage {
44                                                 border: 0;
45                                                 background-size: cover;
46                                                 opacity: 0.7;
47                                         }
48                                 }
49                         }
51                         &.oo-ui-optionWidget-highlighted, &.oo-ui-optionWidget-selected {
52                                 &.oo-ui-iconElement > .mw-widget-titleOptionWidget-hasImage {
53                                         opacity: 1;
54                                 }
55                         }
56                 }
57         }
59         &-withDescriptions {
60                 .mw-widget-titleOptionWidget {
61                         > .oo-ui-labelElement-label {
62                                 line-height: 1.5em;
63                         }
65                         &-description {
66                                 display: block;
67                                 white-space: nowrap;
68                                 text-overflow: ellipsis;
69                                 overflow: hidden;
70                         }
71                 }
72         }
74         &:not(&-withDescriptions) {
75                 .mw-widget-titleOptionWidget-description {
76                         display: none;
77                 }
78         }