blob: c7c2ca40fcd2340c568a286b69ac5391deb69807 (
plain) (
blame)
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
|
@import 'mediawiki.skin.variables.less';
/* stylelint-disable selector-class-pattern */
/* Galleries */
/* Don't forget to update gallery.print.css */
// Increase specificity to override `.mw-content-rtl .mw-content-ltr ul` (T326017)
// TODO: Galleries should not use `<ul>` (T38755)
ul.gallery.gallery.gallery {
margin: 2px;
padding: 2px;
display: block;
}
li.gallerycaption {
font-weight: bold;
text-align: center;
display: block;
word-wrap: break-word;
}
li.gallerybox {
vertical-align: top;
display: inline-block;
div.thumb {
text-align: center;
margin: 2px;
img {
display: block;
margin: 0 auto;
}
}
}
div.gallerytext {
overflow: hidden;
font-size: 94%;
padding: 9px 4px 17px;
word-wrap: break-word;
// FIXME: This is for backwards compatibility with parser markup generated prior
// to I5039c7ef9e07199c256fd568b4f94714e5831d17. It can be removed when we no longer
// need to worry about that HTML.
p {
margin: 0;
}
}
.galleryfilename {
display: block;
&-truncate {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
/* new gallery stuff */
ul.mw-gallery-nolines li.gallerybox {
div.thumb {
background-color: transparent;
border: 0;
}
div.gallerytext {
text-align: center;
}
}
/* height constrained gallery */
ul.mw-gallery-packed,
ul.mw-gallery-packed-overlay,
ul.mw-gallery-packed-hover {
text-align: center;
li.gallerybox div.thumb {
background-color: transparent;
border: 0;
img {
margin: 0 auto;
}
}
}
ul.mw-gallery-packed-hover,
ul.mw-gallery-packed-overlay {
li.gallerybox {
position: relative;
}
}
ul.mw-gallery-packed-hover div.gallerytextwrapper {
overflow: hidden;
height: 0;
}
ul.mw-gallery-packed-hover li.gallerybox:hover div.gallerytextwrapper,
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper,
ul.mw-gallery-packed-hover li.gallerybox.mw-gallery-focused div.gallerytextwrapper {
position: absolute;
background: @background-color-backdrop-light;
padding: 5px 10px;
bottom: 0;
left: 0; /* Needed for IE */
height: auto;
max-height: 40%;
overflow: hidden;
font-weight: bold;
margin: 2px; /* correspond to style on div.thumb */
p {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
&:hover {
overflow: visible;
max-height: none;
p {
text-overflow: clip;
white-space: normal;
overflow: visible;
}
}
}
/* Slideshow */
// Increase specificity to override `.mw-content-rtl .mw-content-ltr ul` (T326017)
// TODO: Galleries should not use `<ul>` (T38755)
ul.gallery.gallery.gallery.mw-gallery-slideshow {
display: block;
margin: 4em 0;
}
.mw-gallery-slideshow {
.gallerycaption {
font-size: 1.3em;
margin: 0;
}
/* `li` item */
.gallerycarousel {
display: block;
text-align: center;
&.mw-gallery-slideshow-thumbnails-toggled {
margin-bottom: 1.3em;
}
}
.mw-gallery-slideshow-buttons {
opacity: 0.5;
padding: 1.3em 0;
white-space: nowrap;
.oo-ui-buttonElement {
margin: 0 2em;
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
}
}
.gallerybox {
&.slideshow-current {
background: @background-color-interactive;
}
> div {
max-width: 120px;
}
div.thumb {
border: 0;
background: transparent;
}
}
}
.mw-gallery-slideshow-img-container a {
display: block;
}
@media screen {
/* Background and border colors are defined separately for print mode */
li.gallerybox div.thumb {
background-color: @background-color-neutral-subtle;
border: @border-subtle;
}
}
|