aboutsummaryrefslogtreecommitdiffstats
path: root/resources/src/mediawiki.page.gallery.styles/print.less
blob: bd657a24670050808e408f6a28c38bb7a553c6d1 (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
/* stylelint-disable selector-class-pattern */
li.gallerybox {
	vertical-align: top;
	display: inline-block;

	div.thumb {
		background-color: #fff;
		border: 1px solid #ccc;
	}
}

// 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;
}

div.gallerytext {
	overflow: visible;
	padding: 8px auto;
}

ul.mw-gallery-packed-hover div.gallerytextwrapper {
	overflow: visible;
	height: auto;
}

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: static;
	background: transparent;
	padding: 0;
	max-height: none;
	overflow: visible;
	font-weight: normal;
	margin: 0; /* correspond to style on div.thumb */

	p {
		text-overflow: clip;
		white-space: normal;
		overflow: visible;
	}
}