Merge "jquery.tablesorter: Silence an expected "sort-rowspan-error" warning"
[mediawiki.git] / resources / src / mediawiki.Upload.BookletLayout / mw.widgets.StashedFileWidget.less
blob4c5389f9c800e5b09c7cae51af965f6c5ee670a2
1 @import 'mediawiki.skin.variables.less';
3 .mw-widgets-stashedFileWidget {
4         display: inline-block;
5         vertical-align: middle;
6         width: 100%;
7         max-width: 50em;
8         margin-right: 0.5em;
10         &:last-child {
11                 margin-right: 0;
12         }
14         &.oo-ui-iconElement .mw-widgets-stashedFileWidget-info .mw-widgets-stashedFileWidget-label {
15                 left: 2.875em;
16         }
18         &.oo-ui-indicatorElement .mw-widgets-stashedFileWidget-info .mw-widgets-stashedFileWidget-label {
19                 right: 4.4625em;
20         }
23 .mw-widgets-stashedFileWidget-info {
24         height: 2.4em;
25         background-color: #fff;
26         border: @border-subtle;
27         border-radius: @border-radius-base;
28         width: 100%;
29         display: table-cell;
30         vertical-align: middle;
31         position: relative;
32         overflow: hidden;
33         box-sizing: border-box;
35         > .mw-widgets-stashedFileWidget-label {
36                 line-height: 2.3em;
37                 margin: 0;
38                 overflow: hidden;
39                 white-space: nowrap;
40                 box-sizing: border-box;
41                 text-overflow: ellipsis;
42                 left: 0.5em;
43                 right: 2.375em;
44                 position: absolute;
45                 top: 0;
46                 bottom: 0;
48                 > .mw-widgets-stashedFileWidget-fileName {
49                         float: left;
50                 }
52                 > .mw-widgets-stashedFileWidget-fileType {
53                         color: #72777d;
54                         float: right;
55                 }
56         }
58         > .oo-ui-indicatorElement-indicator,
59         > .oo-ui-iconElement-icon {
60                 position: absolute;
61                 top: 0;
62                 height: 2.3em;
63         }
65         > .oo-ui-indicatorElement-indicator {
66                 right: 0;
67                 width: 0.9375em;
68                 margin-right: 0.775em;
69         }
71         > .oo-ui-iconElement-icon {
72                 width: 1.875em;
73                 margin-left: 0.5em;
74         }
76         &.oo-ui-widget-disabled {
77                 .mw-widgets-stashedFileWidget-info {
78                         background-color: @background-color-neutral;
79                         color: #72777d;
80                         border-color: #c8ccd1;
81                         text-shadow: 0 1px 1px #fff;
83                         > .oo-ui-iconElement-icon,
84                         > .oo-ui-indicatorElement-indicator {
85                                 opacity: 0.15;
86                         }
87                 }
88         }
91 .mw-widgets-stashedFileWidget-thumbnail-container {
92         cursor: default;
93         height: 5.5em;
94         text-align: left;
95         padding: 0;
96         background-color: @background-color-base;
97         border: @border-subtle;
98         margin-bottom: 0.5em;
99         vertical-align: middle;
100         overflow: hidden;
101         border-radius: 2px;
103         .mw-widgets-stashedFileWidget-thumbnail {
104                 height: 5.5em;
105                 width: 5.5em;
106                 position: absolute;
107                 background-size: cover;
108                 background-position: center center;
110                 &.oo-ui-pendingElement-pending {
111                         background-size: auto;
112                 }
114                 > .mw-widgets-stashedFileWidget-noThumbnail-icon {
115                         opacity: 0.4;
116                         background-color: #c8ccd1;
117                         height: 5.5em;
118                         width: 5.5em;
119                 }
120         }
122         .mw-widgets-stashedFileWidget-info {
123                 border: 0;
124                 background: none;
125                 display: block;
126                 height: 100%;
127                 width: auto;
128                 margin-left: 5.5em;
130                 > .mw-widgets-stashedFileWidget-label {
131                         position: relative;
133                         > .mw-widgets-stashedFileWidget-fileName,
134                         > .mw-widgets-stashedFileWidget-fileType {
135                                 display: block;
136                                 float: none;
137                         }
138                 }
139         }
142 .mw-widgets-stashedFileWidget-empty {
143         .mw-widgets-stashedFileWidget-thumbnail-container {
144                 text-align: center;
146                 .mw-widgets-stashedFileWidget-thumbnail,
147                 .mw-widgets-stashedFileWidget-info {
148                         margin: 0;
149                         display: none;
150                 }
151         }
153         .mw-widgets-stashedFileWidget-label {
154                 color: #c8ccd1;
155                 right: 0.5em;
156         }
158         &.oo-ui-indicatorElement {
159                 .mw-widgets-stashedFileWidget-label {
160                         right: 2em;
161                 }
162         }