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 v6: crop logo to hide baked-in wordmark, tighten mobile margins (via update-page on MediaWiki MCP Server) |
Post style v7: kill body background, tighten content margin-top on mobile (via update-page on MediaWiki MCP Server) |
||
| Line 6: | Line 6: | ||
} | } | ||
@media screen and (max-width: 600px) { | @media screen and (max-width: 600px) { | ||
.show-infobox { | .show-infobox { | ||
| Line 19: | Line 18: | ||
* 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. | ||
* | * v7: kill the busy body background; tight margin above the title. | ||
* ============================================================ */ | * ============================================================ */ | ||
/* Solid pale background on post pages — the wiki-wide SVG with | |||
swooshes makes the empty zone above the post feel huge even when | |||
the actual margin is small. */ | |||
body.pickipedia-post { | |||
background: #fafafa !important; | |||
} | |||
body.pickipedia-post #sidebar { | body.pickipedia-post #sidebar { | ||
| Line 43: | Line 43: | ||
} | } | ||
/* PickiPedia logo — pin to top-left | /* PickiPedia logo — pin to top-left, cropped to hide baked-in wordmark. */ | ||
body.pickipedia-post #p-logo { | body.pickipedia-post #p-logo { | ||
position: fixed !important; | position: fixed !important; | ||
| Line 63: | Line 63: | ||
} | } | ||
body.pickipedia-post #p-personal { | body.pickipedia-post #p-personal { | ||
position: fixed !important; | position: fixed !important; | ||
| Line 103: | Line 102: | ||
} | } | ||
body.pickipedia-post #pt-notifications-alert, | body.pickipedia-post #pt-notifications-alert, | ||
body.pickipedia-post #pt-notifications-notice { | body.pickipedia-post #pt-notifications-notice { | ||
| Line 133: | Line 131: | ||
} | } | ||
body.pickipedia-post #p-cactions { | body.pickipedia-post #p-cactions { | ||
position: fixed !important; | position: fixed !important; | ||
| Line 173: | Line 170: | ||
} | } | ||
body.pickipedia-post #globalWrapper, | body.pickipedia-post #globalWrapper, | ||
body.pickipedia-post #column-content { | body.pickipedia-post #column-content { | ||
| Line 183: | Line 179: | ||
max-width: 720px; | max-width: 720px; | ||
margin: 5em auto 3em auto !important; | margin: 5em auto 3em auto !important; | ||
padding: | padding: 1.75em 2.5em 3em 2.5em; | ||
background: #fff; | background: #fff; | ||
border: none; | border: none; | ||
| Line 191: | Line 187: | ||
} | } | ||
/* --- | /* The .monobook-body inside #content has its own top padding from | ||
monobook's stylesheet — kill it so the title hugs the top of the card. */ | |||
body.pickipedia-post .monobook-body, | |||
body.pickipedia-post #bodyContent { | |||
margin-top: 0 !important; | |||
padding-top: 0 !important; | |||
} | |||
body.pickipedia-post .firstHeading, | body.pickipedia-post .firstHeading, | ||
body.pickipedia-post h1.firstHeading { | body.pickipedia-post h1.firstHeading { | ||
| Line 213: | Line 216: | ||
font-size: 0.95em; | font-size: 0.95em; | ||
color: #666; | color: #666; | ||
margin: 0 0 | margin: 0 0 1.5em 0; | ||
letter-spacing: 0.01em; | letter-spacing: 0.01em; | ||
} | } | ||
| Line 227: | Line 230: | ||
} | } | ||
body.pickipedia-post #siteSub, | body.pickipedia-post #siteSub, | ||
body.pickipedia-post .subpages, | body.pickipedia-post .subpages, | ||
| Line 236: | Line 238: | ||
} | } | ||
body.pickipedia-post .mw-parser-output { | body.pickipedia-post .mw-parser-output { | ||
font-family: Charter, "Iowan Old Style", Georgia, serif; | font-family: Charter, "Iowan Old Style", Georgia, serif; | ||
| Line 321: | Line 322: | ||
} | } | ||
@media screen and (max-width: 600px) { | @media screen and (max-width: 600px) { | ||
body.pickipedia-post #p-logo { | body.pickipedia-post #p-logo { | ||
| Line 356: | Line 355: | ||
body.pickipedia-post #content { | body.pickipedia-post #content { | ||
max-width: none; | max-width: none; | ||
margin: | margin: 1em 0.5em 2em 0.5em !important; | ||
padding: | padding: 1em 1em 2em 1em; | ||
} | } | ||
| Line 373: | Line 372: | ||
.pickipedia-post-byline { | .pickipedia-post-byline { | ||
font-size: 0.88em; | font-size: 0.88em; | ||
margin-bottom: | margin-bottom: 1em; | ||
} | } | ||
body.pickipedia-post .hls-video-player { | body.pickipedia-post .hls-video-player { | ||
margin: | margin: 1em 0; | ||
} | } | ||
} | } | ||
Revision as of 01:30, 29 April 2026
/* CSS placed here will be applied to all skins */
#siteSub {
display: block;
font-size: 10px;
}
@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.
* v7: kill the busy body background; tight margin above the title.
* ============================================================ */
/* Solid pale background on post pages — the wiki-wide SVG with
swooshes makes the empty zone above the post feel huge even when
the actual margin is small. */
body.pickipedia-post {
background: #fafafa !important;
}
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, cropped to hide baked-in wordmark. */
body.pickipedia-post #p-logo {
position: fixed !important;
top: 0.5em;
left: 1em;
width: 80px !important;
height: 64px !important;
z-index: 5;
overflow: hidden;
}
body.pickipedia-post #p-logo a.mw-wiki-logo {
display: block;
width: 80px;
height: 80px;
background-size: 80px 80px !important;
background-repeat: no-repeat;
background-position: top center;
}
body.pickipedia-post #p-personal {
position: fixed !important;
top: 0.5em;
right: 1em;
left: auto !important;
width: auto !important;
max-width: calc(100vw - 110px);
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;
flex-wrap: wrap;
align-items: center;
gap: 0.5em 0.75em;
}
body.pickipedia-post #p-personal li {
display: flex;
align-items: center;
margin: 0 !important;
padding: 0 !important;
background: transparent !important;
border: none !important;
list-style: none;
min-height: 1.5em;
}
body.pickipedia-post #pt-notifications-alert,
body.pickipedia-post #pt-notifications-notice {
width: 22px !important;
height: 22px !important;
margin: 0 !important;
padding: 0 !important;
flex: 0 0 22px;
}
body.pickipedia-post #pt-notifications-alert a,
body.pickipedia-post #pt-notifications-notice a {
display: block;
width: 22px;
height: 22px;
background-size: 18px 18px !important;
background-position: center !important;
background-repeat: no-repeat !important;
padding: 0 !important;
margin: 0 !important;
text-indent: -9999px;
overflow: hidden;
}
body.pickipedia-post #pt-notifications-alert .mw-echo-notifications-badge,
body.pickipedia-post #pt-notifications-notice .mw-echo-notifications-badge {
width: 22px !important;
height: 22px !important;
}
body.pickipedia-post #p-cactions {
position: fixed !important;
top: 2.5em;
right: 1em;
left: auto !important;
width: auto !important;
max-width: calc(100vw - 110px);
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;
flex-wrap: wrap;
gap: 0.5em 0.75em;
align-items: center;
}
body.pickipedia-post #p-cactions li {
background: transparent !important;
border: none !important;
padding: 0 !important;
margin: 0 !important;
}
body.pickipedia-post #p-cactions-mobile {
display: none;
}
body.pickipedia-post #globalWrapper,
body.pickipedia-post #column-content {
float: none;
margin: 0 auto;
}
body.pickipedia-post #content {
max-width: 720px;
margin: 5em auto 3em auto !important;
padding: 1.75em 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;
}
/* The .monobook-body inside #content has its own top padding from
monobook's stylesheet — kill it so the title hugs the top of the card. */
body.pickipedia-post .monobook-body,
body.pickipedia-post #bodyContent {
margin-top: 0 !important;
padding-top: 0 !important;
}
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 1.5em 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;
}
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.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;
}
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;
}
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;
}
@media screen and (max-width: 600px) {
body.pickipedia-post #p-logo {
width: 44px !important;
height: 36px !important;
top: 0.3em;
left: 0.5em;
}
body.pickipedia-post #p-logo a.mw-wiki-logo {
width: 44px;
height: 44px;
background-size: 44px 44px !important;
}
body.pickipedia-post #p-personal,
body.pickipedia-post #p-cactions {
font-size: 0.75em;
padding: 0.2em 0.4em;
max-width: calc(100vw - 60px);
}
body.pickipedia-post #p-cactions {
top: 2em;
}
body.pickipedia-post #pt-notifications-alert,
body.pickipedia-post #pt-notifications-notice,
body.pickipedia-post #pt-notifications-alert a,
body.pickipedia-post #pt-notifications-notice a {
width: 20px !important;
height: 20px !important;
}
body.pickipedia-post #content {
max-width: none;
margin: 1em 0.5em 2em 0.5em !important;
padding: 1em 1em 2em 1em;
}
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: 1em;
}
body.pickipedia-post .hls-video-player {
margin: 1em 0;
}
}