MediaWiki:Common.css: Difference between revisions

From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Jump to navigationJump to search
Post style v2: kill sidebar, center card, byline-driven attribution (via update-page on MediaWiki MCP Server)
Post style v3: keep wiki chrome (logo, login, page tabs); hide only the Tools/Nav sidebar (via update-page on MediaWiki MCP Server)
Line 19: Line 19:
  * Post style — applied via body.pickipedia-post (added by Common.js
  * Post style — applied via body.pickipedia-post (added by Common.js
  * to any User:<name>/<subpage> page). Substack-ish reading layout.
  * to any User:<name>/<subpage> page). Substack-ish reading layout.
  * v2: kill sidebar, center the card, byline-driven attribution.
  * v3: keep wiki affordances (logo, login, page tabs) reachable;
* hide only the encyclopedia sidebar (Navigation / Search / Tools).
  * ============================================================ */
  * ============================================================ */


/* --- Layout: hide the left sidebar so the content can center on the
/* --- Layout: hide the encyclopedia portlets but keep the wiki
      page like a real post, not a wiki page squeezed to one side. --- */
      chrome (logo, personal tools, page tabs) reachable. --- */
body.pickipedia-post #sidebar {
display: none;
}
 
/* Reset the column-one float so its remaining children can sit
  at the top of the page like a header bar instead of a left rail. */
body.pickipedia-post #column-one {
body.pickipedia-post #column-one {
position: static !important;
float: none !important;
width: auto !important;
min-height: 0 !important;
}
/* Hide the implicit "navigation" H2 inside #column-one. */
body.pickipedia-post #column-one > h2 {
display: none;
display: none;
}
}


body.pickipedia-post #globalWrapper,
/* PickiPedia logo — pin to top-left of the viewport. */
body.pickipedia-post #column-content {
body.pickipedia-post #p-logo {
float: none;
position: fixed !important;
margin: 0 auto;
top: 0.5em;
left: 1em;
width: 60px !important;
height: 60px !important;
z-index: 5;
}
}


body.pickipedia-post #content {
body.pickipedia-post #p-logo a.mw-wiki-logo {
max-width: 720px;
width: 60px;
margin: 1.5em auto 3em auto !important;
height: 60px;
padding: 2.5em 2.5em 3em 2.5em;
background-size: contain !important;
background: #fff;
background-repeat: no-repeat;
border: none;
background-position: center;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
border-radius: 4px;
float: none;
}
}


/* The page-actions tabs (user page / discussion / view source / history)
/* Personal tools (login / account) — top-right of the viewport. */
  sit absolutely at left:138.7px in monobook that's relative to a
body.pickipedia-post #p-personal {
  layout that no longer exists when we hide column-one. Pin them to
  the top-right of the viewport instead, small and unobtrusive. */
body.pickipedia-post #p-cactions {
position: fixed !important;
position: fixed !important;
top: 0.5em;
top: 0.5em;
Line 55: Line 68:
left: auto !important;
left: auto !important;
width: auto !important;
width: auto !important;
z-index: 5;
font-size: 0.85em;
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 (user page / discussion / view source / history /
  refresh) — 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;
z-index: 5;
font-size: 0.85em;
background: rgba(255, 255, 255, 0.85);
background: rgba(255, 255, 255, 0.85);
padding: 0.25em 0.5em;
padding: 0.25em 0.5em;
Line 62: Line 102:
}
}


body.pickipedia-post #p-cactions .pBody {
body.pickipedia-post #p-cactions h2 {
background: transparent;
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: 4.5em auto 3em auto !important;
padding: 2.5em 2.5em 3em 2.5em;
background: #fff;
border: none;
border: none;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
border-radius: 4px;
float: none;
}
}


/* --- Title: drop the namespace prefix and the User_/ part visually,
/* --- Title and byline --- */
      then style what remains as a real post title. --- */
body.pickipedia-post .firstHeading,
body.pickipedia-post .firstHeading,
body.pickipedia-post h1.firstHeading {
body.pickipedia-post h1.firstHeading {
Line 86: Line 160:
}
}


/* --- Byline (injected by Common.js): small sans, under the title --- */
.pickipedia-post-byline {
.pickipedia-post-byline {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;

Revision as of 01:00, 29 April 2026

/* 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.
 * v3: keep wiki affordances (logo, login, page tabs) reachable;
 * hide only the encyclopedia sidebar (Navigation / Search / Tools).
 * ============================================================ */

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

/* Reset the column-one float so its remaining children can sit
   at the top of the page like a header bar instead of a left rail. */
body.pickipedia-post #column-one {
	position: static !important;
	float: none !important;
	width: auto !important;
	min-height: 0 !important;
}

/* Hide the implicit "navigation" H2 inside #column-one. */
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: 60px !important;
	height: 60px !important;
	z-index: 5;
}

body.pickipedia-post #p-logo a.mw-wiki-logo {
	width: 60px;
	height: 60px;
	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 (user page / discussion / view source / history /
   refresh) — 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: 4.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 (if any) 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 — overrides the
   inline width=400px the user might have set in {{HLSVideo}}. */
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;
}