Merge "Skin: Make skins aware of their registered skin name"
[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 @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 padding-top: 0.5em;
24 padding-bottom: 0.5em;
25
26 &:not( :last-child ) {
27 margin-bottom: 2px;
28 }
29
30 > .oo-ui-labelElement-label {
31 line-height: 2.8em;
32 }
33
34 &.oo-ui-iconElement {
35 > .oo-ui-iconElement-icon {
36 display: block;
37 width: 3.75em;
38 height: 3.75em;
39 left: 0;
40 &:not( .mw-widget-titleOptionWidget-hasImage ) {
41 background-color: #c8ccd1;
42 opacity: 0.4;
43 }
44 &.mw-widget-titleOptionWidget-hasImage {
45 border: 0;
46 background-size: cover;
47 opacity: 0.7;
48 }
49 }
50 }
51
52 &.oo-ui-optionWidget-highlighted,
53 &.oo-ui-optionWidget-selected {
54 &.oo-ui-iconElement > .mw-widget-titleOptionWidget-hasImage {
55 opacity: 1;
56 }
57 }
58 }
59 }
60
61 &-withDescriptions {
62 .mw-widget-titleOptionWidget {
63 > .oo-ui-labelElement-label {
64 line-height: 1.5em;
65 }
66
67 &-description {
68 display: block;
69 white-space: nowrap;
70 text-overflow: ellipsis;
71 overflow: hidden;
72 }
73 }
74 }
75
76 &:not( &-withDescriptions ) {
77 .mw-widget-titleOptionWidget-description {
78 display: none;
79 }
80 }
81 }
82
83 /* Icons */
84
85 .oo-ui-icon-page-disambiguation {
86 /* @embed */
87 background-image: url( images/page-disambiguation-ltr.svg );
88 }
89
90 .oo-ui-icon-page-existing {
91 /* @embed */
92 background-image: url( images/page-existing-ltr.svg );
93 }
94
95 .oo-ui-icon-page-not-found {
96 /* @embed */
97 background-image: url( images/page-not-found-ltr.svg );
98 }
99
100 .oo-ui-icon-page-not-found:lang( he ) {
101 /* @embed */
102 background-image: url( images/page-not-found-he-yi.svg );
103 }
104
105 .oo-ui-icon-page-redirect {
106 /* @embed */
107 background-image: url( images/page-redirect-ltr.svg );
108 }