MediaWiki:Common.css

From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Revision as of 01:06, 29 April 2026 by Magent (talk | contribs) (Post style v4: bigger logo, mobile-friendly above-the-fold sizing (via update-page on MediaWiki MCP Server))
Jump to navigationJump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* CSS placed here will be applied to all skins */

#siteSub {
    display: block;
    font-size: 10px;
}

/* Responsive infobox for Show template - full width on mobile */
@media screen and (max-width: 600px) {
    .show-infobox {
        float: none !important;
        width: 100% !important;
        margin: 0 0 1em 0 !important;
        box-sizing: border-box;
    }
}

/* ============================================================
 * Post style — applied via body.pickipedia-post (added by Common.js
 * to any User:<name>/<subpage> page). Substack-ish reading layout.
 * v4: bigger logo, mobile-friendly above-the-fold sizing.
 * ============================================================ */

/* --- Layout: hide the encyclopedia portlets but keep the wiki
       chrome (logo, personal tools, page tabs) reachable. --- */
body.pickipedia-post #sidebar {
	display: none;
}

body.pickipedia-post #column-one {
	position: static !important;
	float: none !important;
	width: auto !important;
	min-height: 0 !important;
}

body.pickipedia-post #column-one > h2 {
	display: none;
}

/* PickiPedia logo — pin to top-left of the viewport. */
body.pickipedia-post #p-logo {
	position: fixed !important;
	top: 0.5em;
	left: 1em;
	width: 100px !important;
	height: 100px !important;
	z-index: 5;
}

body.pickipedia-post #p-logo a.mw-wiki-logo {
	display: block;
	width: 100px;
	height: 100px;
	background-size: contain !important;
	background-repeat: no-repeat;
	background-position: center;
}

/* Personal tools (login / account) — top-right of the viewport. */
body.pickipedia-post #p-personal {
	position: fixed !important;
	top: 0.5em;
	right: 1em;
	left: auto !important;
	width: auto !important;
	z-index: 5;
	font-size: 0.85em;
	background: rgba(255, 255, 255, 0.85);
	padding: 0.25em 0.5em;
	border-radius: 3px;
}

body.pickipedia-post #p-personal h2 {
	display: none;
}

body.pickipedia-post #p-personal ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	gap: 0.75em;
}

/* Page-actions tabs — pin just below the personal tools, top-right. */
body.pickipedia-post #p-cactions {
	position: fixed !important;
	top: 2.5em;
	right: 1em;
	left: auto !important;
	width: auto !important;
	z-index: 5;
	font-size: 0.85em;
	background: rgba(255, 255, 255, 0.85);
	padding: 0.25em 0.5em;
	border-radius: 3px;
}

body.pickipedia-post #p-cactions h2 {
	display: none;
}

body.pickipedia-post #p-cactions ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	gap: 0.75em;
}

body.pickipedia-post #p-cactions li {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
}

body.pickipedia-post #p-cactions-mobile {
	display: none;
}

/* --- The card that holds the post --- */
body.pickipedia-post #globalWrapper,
body.pickipedia-post #column-content {
	float: none;
	margin: 0 auto;
}

body.pickipedia-post #content {
	max-width: 720px;
	margin: 5.5em auto 3em auto !important;
	padding: 2.5em 2.5em 3em 2.5em;
	background: #fff;
	border: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	float: none;
}

/* --- Title and byline --- */
body.pickipedia-post .firstHeading,
body.pickipedia-post h1.firstHeading {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2.5em;
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.01em;
	border-bottom: none;
	margin: 0 0 0.25em 0;
	color: #1a1a1a;
}

body.pickipedia-post .mw-page-title-namespace,
body.pickipedia-post .mw-page-title-separator {
	display: none;
}

.pickipedia-post-byline {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
	font-size: 0.95em;
	color: #666;
	margin: 0 0 2em 0;
	letter-spacing: 0.01em;
}

.pickipedia-post-byline a {
	color: #1a1a1a;
	font-weight: 600;
	text-decoration: none;
}

.pickipedia-post-byline a:hover {
	text-decoration: underline;
}

/* --- The wiki cruft we don't want on a post --- */
body.pickipedia-post #siteSub,
body.pickipedia-post .subpages,
body.pickipedia-post #contentSub,
body.pickipedia-post #jump-to-nav,
body.pickipedia-post .printfooter {
	display: none;
}

/* --- Body copy: serif, generous line-height --- */
body.pickipedia-post .mw-parser-output {
	font-family: Charter, "Iowan Old Style", Georgia, serif;
	font-size: 1.1em;
	line-height: 1.7;
	color: #2a2a2a;
}

body.pickipedia-post .mw-parser-output h2,
body.pickipedia-post .mw-parser-output h3,
body.pickipedia-post .mw-parser-output h4 {
	font-family: Georgia, serif;
	font-weight: 700;
	color: #1a1a1a;
	margin-top: 1.6em;
	margin-bottom: 0.5em;
}

body.pickipedia-post .mw-parser-output h2 {
	font-size: 1.55em;
	border-bottom: none;
	padding-bottom: 0;
}

body.pickipedia-post .mw-parser-output h3 {
	font-size: 1.22em;
}

body.pickipedia-post .mw-parser-output p {
	margin: 0 0 1.15em 0;
}

body.pickipedia-post .mw-parser-output a {
	color: #1a4480;
	text-decoration: underline;
	text-decoration-color: rgba(26, 68, 128, 0.3);
	text-underline-offset: 2px;
}

body.pickipedia-post .mw-parser-output a:hover {
	text-decoration-color: #1a4480;
}

body.pickipedia-post .mw-parser-output blockquote {
	border-left: 3px solid #aaa;
	margin: 1.4em 0;
	padding: 0.2em 0 0.2em 1.2em;
	color: #555;
	font-style: italic;
}

body.pickipedia-post .mw-parser-output pre,
body.pickipedia-post .mw-parser-output code {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.92em;
}

/* Categories sit at the bottom in a quiet strip */
body.pickipedia-post .catlinks {
	border: none;
	background: transparent;
	font-size: 0.82em;
	color: #888;
	margin-top: 2.5em;
	padding-top: 1em;
	border-top: 1px solid #eee;
}

/* Embedded videos breathe inside the reading column. */
body.pickipedia-post .hls-video-player {
	margin: 1.8em 0;
	width: 100% !important;
	max-width: 100% !important;
}

body.pickipedia-post .hls-video-player + br,
body.pickipedia-post .mw-parser-output > div[style*="width:400px"] {
	width: 100% !important;
	max-width: 100% !important;
}

body.pickipedia-post .hls-video-player video {
	max-width: 100% !important;
	width: 100% !important;
	border-radius: 4px;
}

/* --- Mobile: shrink the above-the-fold so the title doesn't eat
       half the screen on a phone. --- */
@media screen and (max-width: 600px) {
	body.pickipedia-post #p-logo {
		width: 50px !important;
		height: 50px !important;
		top: 0.4em;
		left: 0.5em;
	}
	body.pickipedia-post #p-logo a.mw-wiki-logo {
		width: 50px;
		height: 50px;
	}

	body.pickipedia-post #p-personal,
	body.pickipedia-post #p-cactions {
		font-size: 0.75em;
		padding: 0.2em 0.4em;
	}
	body.pickipedia-post #p-cactions {
		top: 2em;
	}

	body.pickipedia-post #content {
		max-width: none;
		margin: 4em 0.5em 2em 0.5em !important;
		padding: 1.25em 1.25em 2em 1.25em;
	}

	body.pickipedia-post .firstHeading,
	body.pickipedia-post h1.firstHeading {
		font-size: 1.7em;
		line-height: 1.22;
	}

	body.pickipedia-post .mw-parser-output {
		font-size: 1.02em;
		line-height: 1.6;
	}

	.pickipedia-post-byline {
		font-size: 0.88em;
		margin-bottom: 1.2em;
	}

	body.pickipedia-post .hls-video-player {
		margin: 1.2em 0;
	}
}