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
Add responsive CSS for Show template infobox on mobile (via update-page on MediaWiki MCP Server) |
No edit summary |
||
| Line 14: | Line 14: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
} | |||
/* ============================================================ | |||
* APPEND TO MediaWiki:Common.css | |||
* Post style — applied via body.pickipedia-post (added by Common.js | |||
* to any User:<name>/<subpage> page). Substack-ish reading layout. | |||
* ============================================================ */ | |||
body.pickipedia-post .mw-body { | |||
max-width: 720px; | |||
margin: 0 auto; | |||
padding: 2em 2em 3em 2em; | |||
background: #fff; | |||
border: none; | |||
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); | |||
border-radius: 4px; | |||
} | |||
body.pickipedia-post .firstHeading, | |||
body.pickipedia-post h1.firstHeading { | |||
font-family: Georgia, "Times New Roman", serif; | |||
font-size: 2.4em; | |||
font-weight: 700; | |||
line-height: 1.18; | |||
letter-spacing: -0.01em; | |||
border-bottom: none; | |||
margin: 0 0 0.4em 0; | |||
color: #1a1a1a; | |||
} | |||
/* Hide the namespace prefix in the title — readers don't care that it's | |||
"User:JMyles/...", they care about the post name. The page-title-main | |||
piece is the bit after the slash. */ | |||
body.pickipedia-post .mw-page-title-namespace, | |||
body.pickipedia-post .mw-page-title-separator { | |||
display: none; | |||
} | |||
body.pickipedia-post .subpages { | |||
font-size: 0.85em; | |||
color: #888; | |||
margin-bottom: 1.5em; | |||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; | |||
} | |||
body.pickipedia-post .mw-parser-output { | |||
font-family: Charter, "Iowan Old Style", Georgia, serif; | |||
font-size: 1.08em; | |||
line-height: 1.65; | |||
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.5em; | |||
border-bottom: none; | |||
padding-bottom: 0; | |||
} | |||
body.pickipedia-post .mw-parser-output h3 { | |||
font-size: 1.2em; | |||
} | |||
body.pickipedia-post .mw-parser-output p { | |||
margin: 0 0 1.1em 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 .printfooter { | |||
display: none; | |||
} | |||
/* Embedded video player feels good unconstrained on a post — let | |||
.hls-video-player fill the reading column instead of being capped. */ | |||
body.pickipedia-post .hls-video-player { | |||
margin: 1.5em -0.5em; | |||
} | |||
body.pickipedia-post .hls-video-player video { | |||
max-width: 100% !important; | |||
width: 100% !important; | |||
border-radius: 4px; | |||
} | } | ||
Revision as of 23:52, 28 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;
}
}
/* ============================================================
* APPEND TO MediaWiki:Common.css
* Post style — applied via body.pickipedia-post (added by Common.js
* to any User:<name>/<subpage> page). Substack-ish reading layout.
* ============================================================ */
body.pickipedia-post .mw-body {
max-width: 720px;
margin: 0 auto;
padding: 2em 2em 3em 2em;
background: #fff;
border: none;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
border-radius: 4px;
}
body.pickipedia-post .firstHeading,
body.pickipedia-post h1.firstHeading {
font-family: Georgia, "Times New Roman", serif;
font-size: 2.4em;
font-weight: 700;
line-height: 1.18;
letter-spacing: -0.01em;
border-bottom: none;
margin: 0 0 0.4em 0;
color: #1a1a1a;
}
/* Hide the namespace prefix in the title — readers don't care that it's
"User:JMyles/...", they care about the post name. The page-title-main
piece is the bit after the slash. */
body.pickipedia-post .mw-page-title-namespace,
body.pickipedia-post .mw-page-title-separator {
display: none;
}
body.pickipedia-post .subpages {
font-size: 0.85em;
color: #888;
margin-bottom: 1.5em;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.pickipedia-post .mw-parser-output {
font-family: Charter, "Iowan Old Style", Georgia, serif;
font-size: 1.08em;
line-height: 1.65;
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.5em;
border-bottom: none;
padding-bottom: 0;
}
body.pickipedia-post .mw-parser-output h3 {
font-size: 1.2em;
}
body.pickipedia-post .mw-parser-output p {
margin: 0 0 1.1em 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 .printfooter {
display: none;
}
/* Embedded video player feels good unconstrained on a post — let
.hls-video-player fill the reading column instead of being capped. */
body.pickipedia-post .hls-video-player {
margin: 1.5em -0.5em;
}
body.pickipedia-post .hls-video-player video {
max-width: 100% !important;
width: 100% !important;
border-radius: 4px;
}