Content deleted Content added
make sure styles intended for mobile-only and desktop-only are properly targeted |
fix |
||
(6 intermediate revisions by the same user not shown) | |||
Line 23:
* for the desktop website, and not on mobile (except in Template namespace).
******************************************************************************/
.randomSlideshow-container ul.gallery:first-child {border:5px solid red}▼
/* Make labels sit side-by-side */
Line 31 ⟶ 28:
display:inline-block !important; /* overrides inline style */
padding:0.2em 0.3em;
}
/* Position the radio input in the center */
.randomSlideshow-container ul.gallery:first-child label,
.randomSlideshow-container ul.gallery:first-child input {
vertical-align: middle;
}
/* Make radio inputs bigger */
.randomSlideshow-container ul.gallery:first-child input {
transform: scale(1.4)
}
Line 38 ⟶ 45:
}
.randomSlideshow-container ul.gallery:first-child .gallerybox {▼
/* Make sure the labels are underneath not alongside the gallery */
▲.randomSlideshow-container .gallerybox {
display:block;
margin: auto;
}
/* Remove excess padding around captions */
▲/* Center the gallery within its container *
.randomSlideshow-container ul.gallery
.randomSlideshow-container ul.gallery:first-child .gallerybox div,
padding-top:0;
padding-bottom:0;
margin:0;
}
/* Center the gallery within its container */
.randomSlideshow-container ul.gallery.mw-gallery-slideshow:first-child {
position: relative;
left: 50%;
transform: translateX(-50%);
display: inline-block; /* fallback */
text-align:center; /* fallback: place the radio inputs in the center */
display: flex;
flex-wrap: wrap;
justify-content: center;
}
/* Place radio inputs at the top, and gallery contents below */
.randomSlideshow-container ul.gallery:first-child .gallerybox {
order: 99999;
flex-shrink: 0;
}
flex: 0 0;
}
/* Allow descriptions to take up the full width of the container */
.randomSlideshow-container ul.gallery:first-child .gallerybox {
width: 100% !important; /* overrides inline style */
}
.randomSlideshow-container ul.gallery:first-child .gallerybox > div,
.randomSlideshow-container ul.gallery:first-child .gallerybox > div > div {
width: inherit !important; /* overrides inline style */
max-width: 100%;
text-align: center;
}
/*******************************************************************************
Line 59 ⟶ 99:
* .randomSlideshow-container .nomobile+ul
*
* This is becaue the div with class "nomobile"
* for the desktop website, and not on mobile (except in Template namespace).
******************************************************************************/
▲.randomSlideshow-container .nomobile+ul {border:5px solid green}
/* Hide all the switcher labels */
|