Toggle menu
91
205
64
19.1K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Portal pictures/sandbox/style.css: Difference between revisions

Portal pictures/sandbox/style.css
From Kenshi Wiki
Created page with "Hide the toggle gallery button: div.portalSlideshow-container > ul.gallery.mw-gallery-slideshow > li.gallerycarousel > div > div > div > span:nth-child(2) { display: none; } Reduce spacing around buttons: div.portalSlideshow-container > ul.gallery.mw-gallery-slideshow > li.gallerycarousel > div > div:nth-child(1) { padding-top: 0.3em; padding-bottom: 0; } --- Rules for when gallerycarousel isn't present (i.e. mobile website) ---: /* only show the fi..."
 
Prd changed the content model of the page Portal pictures/sandbox/style.css from "wikitext" to "Sanitized CSS"
(No difference)

Revision as of 19:03, 17 February 2025

/* Hide the toggle gallery button */
div.portalSlideshow-container > ul.gallery.mw-gallery-slideshow > li.gallerycarousel > div > div > div > span:nth-child(2)  {
	display: none;
}

/* Reduce spacing around buttons */
div.portalSlideshow-container > ul.gallery.mw-gallery-slideshow > li.gallerycarousel > div > div:nth-child(1)  {
	padding-top: 0.3em;
	padding-bottom: 0;
}

/* --- Rules for when gallerycarousel isn't present (i.e. mobile website) --- */
/* only show the first item (if on desktop site, this is just the gallerycarousel) */
div.portalSlideshow-container > ul.gallery.mw-gallery-slideshow > li:nth-child(n+2) {
	display: none;
}

/* use the full available width */
div.portalSlideshow-container .gallery .gallerybox,
div.portalSlideshow-container .gallery .gallerybox div {
	width:100% !important; /* overrides inline style */
	max-width:100%;
}

/* Hide only the blank placeholder image */
.mw-gallery-slideshow-img-container > a[href="/wiki/File:Blank.png"] {
	display: none;
}

/* fixes for default slideshow CSS */
.gallerytext {
	font-size: 100% !important;
	text-align: left;
}