<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.filipefonseca.pt/index.php?action=history&amp;feed=atom&amp;title=Module%3ARandom_slideshow%2Fstyles.css</id>
	<title>Module:Random slideshow/styles.css - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.filipefonseca.pt/index.php?action=history&amp;feed=atom&amp;title=Module%3ARandom_slideshow%2Fstyles.css"/>
	<link rel="alternate" type="text/html" href="http://wiki.filipefonseca.pt/index.php?title=Module:Random_slideshow/styles.css&amp;action=history"/>
	<updated>2026-04-19T06:13:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>http://wiki.filipefonseca.pt/index.php?title=Module:Random_slideshow/styles.css&amp;diff=8804&amp;oldid=prev</id>
		<title>imported&gt;Evad37: Better mobile view handling per Module talk:Random slideshow#Mobile view improvement</title>
		<link rel="alternate" type="text/html" href="http://wiki.filipefonseca.pt/index.php?title=Module:Random_slideshow/styles.css&amp;diff=8804&amp;oldid=prev"/>
		<updated>2021-05-07T06:25:45Z</updated>

		<summary type="html">&lt;p&gt;Better mobile view handling per &lt;a href=&quot;/index.php?title=Module_talk:Random_slideshow&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module talk:Random slideshow (page does not exist)&quot;&gt;Module talk:Random slideshow#Mobile view improvement&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* {{pp-template}} */&lt;br /&gt;
/* Hide the toggle gallery button */&lt;br /&gt;
.randomSlideshow-container &amp;gt; .gallery.mw-gallery-slideshow &amp;gt; .gallerycarousel &amp;gt; div &amp;gt; div &amp;gt; div &amp;gt; span:nth-child(2)  {&lt;br /&gt;
	display: none;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Visually hide the labels' text content, but retain screenreader access (hopefully) */&lt;br /&gt;
.randomSlideshow-container .randomSlideshow-sr-only {&lt;br /&gt;
	display:block;&lt;br /&gt;
	width:1px;&lt;br /&gt;
	height:1px;&lt;br /&gt;
	text-indent:-999px;&lt;br /&gt;
	overflow:hidden;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/*******************************************************************************&lt;br /&gt;
 * MOBILE-ONLY STYLES&lt;br /&gt;
 *******************************************************************************&lt;br /&gt;
 * Mobile-only can targeted by prefixing these selectors:&lt;br /&gt;
 *&lt;br /&gt;
 *    .randomSlideshow-container ul.gallery:first-child&lt;br /&gt;
 *&lt;br /&gt;
 * This is becaue the div with class &amp;quot;nomobile&amp;quot; only gets included in the html&lt;br /&gt;
 * for the desktop website, and not on mobile (except in Template namespace).&lt;br /&gt;
 ******************************************************************************/&lt;br /&gt;
&lt;br /&gt;
/* Make labels sit side-by-side */&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child label {&lt;br /&gt;
	display:inline-block !important; /* overrides inline style */&lt;br /&gt;
	padding:0.2em 0.3em;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Position the radio input in the center */&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child label,&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child input {&lt;br /&gt;
	vertical-align: middle;&lt;br /&gt;
}&lt;br /&gt;
/* Make radio inputs bigger */&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child input {&lt;br /&gt;
	transform: scale(1.4)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Hide the &amp;quot;Show all&amp;quot; option */&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child label:last-child {&lt;br /&gt;
	display:none !important; /* overrides inline style */&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child .gallerybox {&lt;br /&gt;
	/* Make sure the labels are underneath not alongside the gallery */&lt;br /&gt;
	display:block;&lt;br /&gt;
	/* Center gallery items within the gallery container */&lt;br /&gt;
	margin: auto;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Remove excess padding around captions */&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child .gallerybox li,&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child .gallerybox div,&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child .gallerybox p {&lt;br /&gt;
	padding-top:0;&lt;br /&gt;
	padding-bottom:0;&lt;br /&gt;
	margin:0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Center the gallery within its container */&lt;br /&gt;
.randomSlideshow-container ul.gallery.mw-gallery-slideshow:first-child {&lt;br /&gt;
    position: relative;&lt;br /&gt;
    left: 50%;&lt;br /&gt;
    transform: translateX(-50%);&lt;br /&gt;
    display: inline-block; /* fallback */&lt;br /&gt;
    text-align:center; /* fallback: place the radio inputs in the center */&lt;br /&gt;
    display: flex;&lt;br /&gt;
    flex-wrap: wrap;&lt;br /&gt;
    justify-content: center;&lt;br /&gt;
}&lt;br /&gt;
/* Place radio inputs at the top, and gallery contents below */&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child .gallerybox {&lt;br /&gt;
	order: 99999;&lt;br /&gt;
	flex-shrink: 0;&lt;br /&gt;
}&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child label {&lt;br /&gt;
	flex: 0 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* Allow descriptions to take up the full width of the container */&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child .gallerybox {&lt;br /&gt;
	width: 100% !important; /* overrides inline style */&lt;br /&gt;
}&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child .gallerybox &amp;gt; div,&lt;br /&gt;
.randomSlideshow-container ul.gallery:first-child .gallerybox &amp;gt; div &amp;gt; div {&lt;br /&gt;
	width: inherit !important; /* overrides inline style */&lt;br /&gt;
	max-width: 100%;&lt;br /&gt;
	text-align: center;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/*******************************************************************************&lt;br /&gt;
 * DESKTOP-ONLY STYLES&lt;br /&gt;
 *******************************************************************************&lt;br /&gt;
 * Desktop-only can targeted by prefixing these selectors:&lt;br /&gt;
 *&lt;br /&gt;
 *    .randomSlideshow-container .nomobile+ul&lt;br /&gt;
 *&lt;br /&gt;
 * This is becaue the div with class &amp;quot;nomobile&amp;quot; only gets included in the html&lt;br /&gt;
 * for the desktop website, and not on mobile (except in Template namespace).&lt;br /&gt;
 ******************************************************************************/&lt;br /&gt;
&lt;br /&gt;
/* Hide all the switcher labels */&lt;br /&gt;
.randomSlideshow-container .nomobile+ul label {&lt;br /&gt;
	display:none !important; /* overrides inline style */&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>imported&gt;Evad37</name></author>
	</entry>
</feed>