1 @import 'mediawiki.skin.variables.less';
3 /* stylelint-disable selector-class-pattern */
6 /* Don't forget to update gallery.print.css */
8 // Increase specificity to override `.mw-content-rtl .mw-content-ltr ul` (T326017)
9 // TODO: Galleries should not use `<ul>` (T38755)
10 ul.gallery.gallery.gallery {
20 word-wrap: break-word;
25 display: inline-block;
41 padding: 9px 4px 17px;
42 word-wrap: break-word;
44 // FIXME: This is for backwards compatibility with parser markup generated prior
45 // to I5039c7ef9e07199c256fd568b4f94714e5831d17. It can be removed when we no longer
46 // need to worry about that HTML.
58 text-overflow: ellipsis;
62 /* new gallery stuff */
63 ul.mw-gallery-nolines li.gallerybox {
65 background-color: transparent;
74 /* height constrained gallery */
77 ul.mw-gallery-packed-overlay,
78 ul.mw-gallery-packed-hover {
81 li.gallerybox div.thumb {
82 background-color: transparent;
91 ul.mw-gallery-packed-hover,
92 ul.mw-gallery-packed-overlay {
98 ul.mw-gallery-packed-hover div.gallerytextwrapper {
103 ul.mw-gallery-packed-hover li.gallerybox:hover div.gallerytextwrapper,
104 ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper,
105 ul.mw-gallery-packed-hover li.gallerybox.mw-gallery-focused div.gallerytextwrapper {
107 background: @background-color-backdrop-light;
110 left: 0; /* Needed for IE */
115 margin: 2px; /* correspond to style on div.thumb */
118 text-overflow: ellipsis;
136 // Increase specificity to override `.mw-content-rtl .mw-content-ltr ul` (T326017)
137 // TODO: Galleries should not use `<ul>` (T38755)
138 ul.gallery.gallery.gallery.mw-gallery-slideshow {
143 .mw-gallery-slideshow {
154 &.mw-gallery-slideshow-thumbnails-toggled {
155 margin-bottom: 1.3em;
159 .mw-gallery-slideshow-buttons {
164 .oo-ui-buttonElement {
178 &.slideshow-current {
179 background: @background-color-interactive;
188 background: transparent;
193 .mw-gallery-slideshow-img-container a {
198 /* Background and border colors are defined separately for print mode */
199 li.gallerybox div.thumb {
200 background-color: @background-color-neutral-subtle;
201 border: @border-subtle;