MediaWiki:Gadget-ResponsiveStyle.css: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(10 intermediate revisions by the same user not shown)
Line 3: Line 3:
/* Mobile phone */
/* Mobile phone */
@media all and (max-width: 719px) {
@media all and (max-width: 719px) {
/* Responsive tables */
/* Template:Spoiler */
table.responsive > tbody > tr {
.notice#spoiler {
display: block;
padding: 2px 6px !important;
margin-bottom: 0.5em;
margin: 18px 6px !important;
}
}
table.responsive > tbody > tr > td {
/* Template:Columns */
display: block;
.columns {
text-align: right;
column-count: 1 !important;
}
table.responsive > tbody > tr > td::before {
float: left;
font-weight: bold;
content: attr(data-label);
margin-right: 0.75em;
}
table.responsive.jquery-tablesorter > thead,
table.responsive:not(.jquery-tablesorter) > tbody > tr:first-child {
display: none;
}
}


/* Site styles */
/* Template:Switchable */
.medialist.listenlist {
div[style*="float"]:has(> .switchable) {
width: auto !important;
float: none !important;
}
}
.notice#spoiler {
.switchabletabs {
padding: 2px 6px !important;
text-align: center;
margin: 18px 6px !important;
}
}
.columns {
.switchabletabs li {
column-count: 2 !important;
line-height: 2;
}
}
}
}

Latest revision as of 21:16, March 29, 2024

/* Responsive CSS applied to both desktop and mobile */

/* Mobile phone */
@media all and (max-width: 719px) {
	/* Template:Spoiler */
	.notice#spoiler {
		padding: 2px 6px !important;
		margin: 18px 6px !important;
	}
	/* Template:Columns */
	.columns {
		column-count: 1 !important;
	}

	/* Template:Switchable */
	div[style*="float"]:has(> .switchable) {
		float: none !important;
	}
	.switchabletabs {
		text-align: center;
	}
	.switchabletabs li {
		line-height: 2;
	}
}