This is an old revision of this page, as edited by Evad37(talk | contribs) at 09:54, 29 April 2021(Position the radio input in the center; Remove excess padding around captions). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.Revision as of 09:54, 29 April 2021 by Evad37(talk | contribs)(Position the radio input in the center; Remove excess padding around captions)
/* Hide the toggle gallery button */.randomSlideshow-container>.gallery.mw-gallery-slideshow>.gallerycarousel>div>div>div>span:nth-child(2){display:none;}/* Visually hide the labels' text content, but retain screenreader access (hopefully) */.randomSlideshow-container.randomSlideshow-sr-only{display:block;width:1px;height:1px;text-indent:-999px;overflow:hidden;}/******************************************************************************* * MOBILE-ONLY STYLES ******************************************************************************* * Mobile-only can targeted by prefixing these selectors: * * .randomSlideshow-container ul.gallery:first-child * * This is becaue the div with class "nomobile" only gets included in the html * for the desktop website, and not on mobile (except in Template namespace). ******************************************************************************//* Make labels sit side-by-side */.randomSlideshow-containerul.gallery:first-childlabel{display:inline-block!important;/* overrides inline style */padding:0.2em0.3em;}/* Position the radio input in the center */.randomSlideshow-containerul.gallery:first-childlabel,.randomSlideshow-containerul.gallery:first-childinput{vertical-align:middle;}/* Hide the "Show all" option */.randomSlideshow-containerul.gallery:first-childlabel:last-child{display:none!important;/* overrides inline style */}/* Make sure the labels are underneath not alongside the gallery */.randomSlideshow-containerul.gallery:first-child.gallerybox{display:block;}/* Remove excess padding around captions */.randomSlideshow-containerul.gallery:first-child.galleryboxli,.randomSlideshow-containerul.gallery:first-child.galleryboxdiv,.randomSlideshow-containerul.gallery:first-child.galleryboxp{padding-top:0;padding-bottom:0;margin:0;}/* Center the gallery within its container */.randomSlideshow-containerul.gallery.mw-gallery-slideshow:first-child{position:relative;left:50%;transform:translateX(-50%);display:inline-block;}/******************************************************************************* * DESKTOP-ONLY STYLES ******************************************************************************* * Desktop-only can targeted by prefixing these selectors: * * .randomSlideshow-container .nomobile+ul * * This is becaue the div with class "nomobile" is only get included in the html * for the desktop website, and not on mobile (except in Template namespace). ******************************************************************************//* Hide all the switcher labels */.randomSlideshow-container.nomobile+ullabel{display:none!important;/* overrides inline style */}