Debian Codegraph @

resources/src/mediawiki.page.gallery.styles/print.less

raw
1 /* stylelint-disable selector-class-pattern */
2 li.gallerybox {
3 vertical-align: top;
4 display: inline-block;
5
6 div.thumb {
7 background-color: #fff;
8 border: 1px solid #ccc;
9 }
10 }
11
12 // Increase specificity to override `.mw-content-rtl .mw-content-ltr ul` (T326017)
13 // TODO: Galleries should not use `<ul>` (T38755)
14 ul.gallery.gallery.gallery {
15 margin: 2px;
16 padding: 2px;
17 display: block;
18 }
19
20 li.gallerycaption {
21 font-weight: bold;
22 text-align: center;
23 display: block;
24 word-wrap: break-word;
25 }
26
27 div.gallerytext {
28 overflow: visible;
29 padding: 8px auto;
30 }
31
32 ul.mw-gallery-packed-hover div.gallerytextwrapper {
33 overflow: visible;
34 height: auto;
35 }
36
37 ul.mw-gallery-packed-hover li.gallerybox:hover div.gallerytextwrapper,
38 ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper,
39 ul.mw-gallery-packed-hover li.gallerybox.mw-gallery-focused div.gallerytextwrapper {
40 position: static;
41 background: transparent;
42 padding: 0;
43 max-height: none;
44 overflow: visible;
45 font-weight: normal;
46 margin: 0; /* correspond to style on div.thumb */
47
48 p {
49 text-overflow: clip;
50 white-space: normal;
51 overflow: visible;
52 }
53 }