blob: 8be1e869aaa0fb5725059e6bf36220e5fd320fb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
@import 'mediawiki.mixins';
.mw-widgets-stashedFileWidget {
display: inline-block;
vertical-align: middle;
width: 100%;
max-width: 50em;
margin-right: 0.5em;
&:last-child {
margin-right: 0;
}
&.oo-ui-iconElement .mw-widgets-stashedFileWidget-info .mw-widgets-stashedFileWidget-label {
left: 2.875em;
}
&.oo-ui-indicatorElement .mw-widgets-stashedFileWidget-info .mw-widgets-stashedFileWidget-label {
right: 4.4625em;
}
}
.mw-widgets-stashedFileWidget-info {
height: 2.4em;
background-color: #fff;
border: 1px solid #c8ccd1;
border-radius: 2px;
width: 100%;
display: table-cell;
vertical-align: middle;
position: relative;
overflow: hidden;
.box-sizing( border-box );
> .mw-widgets-stashedFileWidget-label {
line-height: 2.3em;
margin: 0;
overflow: hidden;
white-space: nowrap;
.box-sizing( border-box );
text-overflow: ellipsis;
left: 0.5em;
right: 2.375em;
position: absolute;
top: 0;
bottom: 0;
> .mw-widgets-stashedFileWidget-fileName {
float: left;
}
> .mw-widgets-stashedFileWidget-fileType {
color: #72777d;
float: right;
}
}
> .oo-ui-indicatorElement-indicator,
> .oo-ui-iconElement-icon {
position: absolute;
top: 0;
height: 2.3em;
}
> .oo-ui-indicatorElement-indicator {
right: 0;
width: 0.9375em;
margin-right: 0.775em;
}
> .oo-ui-iconElement-icon {
width: 1.875em;
margin-left: 0.5em;
}
&.oo-ui-widget-disabled {
.mw-widgets-stashedFileWidget-info {
background-color: #eaecf0;
color: #72777d;
border-color: #c8ccd1;
text-shadow: 0 1px 1px #fff;
> .oo-ui-iconElement-icon,
> .oo-ui-indicatorElement-indicator {
opacity: 0.15;
}
}
}
}
.mw-widgets-stashedFileWidget-thumbnail-container {
cursor: default;
height: 5.5em;
text-align: left;
padding: 0;
background-color: #fff;
border: 1px solid #c8ccd1;
margin-bottom: 0.5em;
vertical-align: middle;
overflow: hidden;
border-radius: 2px;
.mw-widgets-stashedFileWidget-thumbnail {
height: 5.5em;
width: 5.5em;
position: absolute;
background-size: cover;
background-position: center center;
&.oo-ui-pendingElement-pending {
background-size: auto;
}
> .mw-widgets-stashedFileWidget-noThumbnail-icon {
opacity: 0.4;
background-color: #c8ccd1;
height: 5.5em;
width: 5.5em;
}
}
.mw-widgets-stashedFileWidget-info {
border: 0;
background: none;
display: block;
height: 100%;
width: auto;
margin-left: 5.5em;
> .mw-widgets-stashedFileWidget-label {
position: relative;
> .mw-widgets-stashedFileWidget-fileName,
> .mw-widgets-stashedFileWidget-fileType {
display: block;
float: none;
}
}
}
}
.mw-widgets-stashedFileWidget-empty {
.mw-widgets-stashedFileWidget-thumbnail-container {
text-align: center;
.mw-widgets-stashedFileWidget-thumbnail,
.mw-widgets-stashedFileWidget-info {
margin: 0;
display: none;
}
}
.mw-widgets-stashedFileWidget-label {
color: #c8ccd1;
right: 0.5em;
}
&.oo-ui-indicatorElement {
.mw-widgets-stashedFileWidget-label {
right: 2em;
}
}
}
|