MediaWiki:Minerva.css: Difference between revisions
Appearance
Import from wiki-src |
Import from wiki-src |
||
| (One intermediate revision by the same user not shown) | |||
| Line 14: | Line 14: | ||
/* Main Page: no title, no tagline */ | /* Main Page: no title, no tagline */ | ||
body.page-Main_Page.action-view .mw-first-heading, | body.page-Main_Page.action-view .mw-first-heading, | ||
body.page-Main_Page.action-view #siteSub { display: none; } | body.page-Main_Page.action-view #siteSub, | ||
body.page-మొదటి_పేజీ.action-view .mw-first-heading, | |||
body.page-మొదటి_పేజీ.action-view #siteSub { display: none; } | |||
/* Dark mode for the wordmark and tagline needs no rule here: Vector puts | /* Dark mode for the wordmark and tagline needs no rule here: Vector puts | ||
| Line 186: | Line 188: | ||
/* ------------------------------------------------------------- Phones */ | /* ------------------------------------------------------------- Phones */ | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
.infobox { float: none; width: 100%; margin: 0 0 1em; } | .infobox { float: none; width: auto; max-width: 100%; margin: 0 0 1em; box-sizing: border-box; } | ||
.navbox-group { white-space: normal; } | .navbox-group { white-space: normal; } | ||
} | } | ||
/* Minerva only: | /* Minerva only: let the infobox fill the screen width without overflowing it */ | ||
.infobox { float: none !important; width: 100% !important; margin: 0 0 1em !important; } | .infobox { float: none !important; width: auto !important; max-width: 100% !important; margin: 0 0 1em !important; box-sizing: border-box; } | ||
.infobox img { max-width: 100%; height: auto; } | |||
#mp-left, #mp-right { float: none; width: auto; } | #mp-left, #mp-right { float: none; width: auto; } | ||
Latest revision as of 03:44, 17 September 2026
/* Mobile site styles. Generated from MediaWiki:Common.css by copy - edit Common.css, then copy. */
/* =========================================================================
Mohan Wiki — site-wide styles (MediaWiki:Common.css)
Recreates the article furniture readers know from Wikipedia: infoboxes,
hatnotes, message boxes, navboxes, reference lists and the Main Page.
Colours use Codex design tokens (var(--...)) with light fallbacks, so every
component follows Vector 2022's light/dark setting automatically.
========================================================================= */
/* "From Mohan Wiki" under each title, as on Wikipedia */
#siteSub { display: block; }
/* Main Page: no title, no tagline */
body.page-Main_Page.action-view .mw-first-heading,
body.page-Main_Page.action-view #siteSub,
body.page-మొదటి_పేజీ.action-view .mw-first-heading,
body.page-మొదటి_పేజీ.action-view #siteSub { display: none; }
/* Dark mode for the wordmark and tagline needs no rule here: Vector puts
.skin-invert on .mw-logo-container, which already inverts them. */
/* ---------------------------------------------------------------- Infobox */
.infobox {
float: right; clear: right;
width: 22em;
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
border: 1px solid var(--border-color-base, #a2a9b1);
border-spacing: 3px;
background-color: var(--background-color-neutral-subtle, #f8f9fa);
color: var(--color-base, #202122);
font-size: 88%;
line-height: 1.5em;
}
.infobox-title {
caption-side: top;
padding: 0.2em;
font-size: 125%;
font-weight: bold;
text-align: center;
line-height: 1.3em;
}
.infobox-above { font-size: 125%; font-weight: bold; text-align: center; }
.infobox-image { text-align: center; padding: 0.3em 0; }
.infobox-caption { font-size: 94%; text-align: center; padding-top: 0.2em; }
.infobox-header {
text-align: center;
background-color: var(--background-color-interactive, #eaecf0);
padding: 0.2em 0.3em;
}
.infobox-label { text-align: left; vertical-align: top; padding-right: 0.6em; white-space: normal; }
.infobox-data, .infobox-full-data { vertical-align: top; text-align: left; }
.infobox-full-data { text-align: center; }
.infobox-below { text-align: center; font-size: 94%; }
.infobox th, .infobox td { padding: 0.15em 0.3em; }
/* ---------------------------------------------------------------- Hatnote */
.hatnote {
font-style: italic;
padding-left: 1.6em;
margin-bottom: 0.5em;
}
.hatnote i { font-style: normal; }
/* ---------------------------------------------------------- Message boxes */
.ambox {
/* flex + overflow:hidden starts a new formatting context, so the box
shrinks to fit beside a floated infobox instead of dropping below it */
display: flex;
align-items: center;
gap: 0.7em;
overflow: hidden;
margin: 0 0 0.8em;
padding: 0.35em 0.8em 0.35em 0.9em;
border: 1px solid var(--border-color-base, #a2a9b1);
border-left: 10px solid #36c;
background-color: var(--background-color-neutral-subtle, #fbfbfb);
font-size: 95%;
}
.ambox .mbox-image { flex: 0 0 auto; }
.ambox .mbox-text { flex: 1 1 auto; min-width: 0; }
.mbox-icon {
display: inline-block; width: 36px; height: 36px; line-height: 36px;
border-radius: 50%; color: #fff; font-weight: bold; font-size: 22px;
font-family: Georgia, "Times New Roman", serif; text-align: center;
background-color: #36c;
}
.ambox-content { border-left-color: #f28500; }
.ambox-content .mbox-icon { background-color: #f28500; }
.ambox-style { border-left-color: #fc3; }
.ambox-style .mbox-icon { background-color: #d9a400; }
.ambox-delete { border-left-color: #b32424; }
.ambox-delete .mbox-icon { background-color: #b32424; }
/* Inline [citation needed] / [confirmation needed] */
.Inline-Template { font-size: 80%; white-space: nowrap; }
/* ----------------------------------------------------------- References */
.reflist { font-size: 90%; margin-bottom: 0.5em; }
.reflist ol.references { margin-top: 0.3em; }
cite.citation { font-style: inherit; word-wrap: break-word; }
/* ---------------------------------------------------------------- Navbox */
.navbox {
clear: both;
box-sizing: border-box;
width: 100%;
margin: 1em auto 0;
padding: 1px;
border: 1px solid var(--border-color-base, #a2a9b1);
font-size: 88%;
text-align: center;
background-color: var(--background-color-base, #fdfdfd);
}
.navbox-inner { width: 100%; border-spacing: 0; }
.navbox-title {
padding: 0.25em 1em;
font-weight: bold;
font-size: 114%;
background-color: var(--background-color-progressive-subtle, #ccccff);
}
.navbox-group {
white-space: nowrap;
text-align: right;
font-weight: bold;
padding: 0.25em 1em;
background-color: var(--background-color-progressive-subtle, #ddddff);
width: 1%;
}
.navbox-list { text-align: left; padding: 0.25em 0.5em; border-left: 2px solid var(--background-color-base, #fdfdfd); }
.navbox-odd { background-color: transparent; }
.navbox-even { background-color: var(--background-color-neutral-subtle, #f7f7f7); }
/* ----------------------------------------------------------- Main Page */
#mp-topbanner {
position: relative;
margin: 0.6em 0 1em;
padding: 0.7em 1em;
border: 1px solid var(--border-color-base, #a2a9b1);
background-color: var(--background-color-neutral-subtle, #f8f9fa);
text-align: center;
}
#mp-welcome { font-size: 162%; line-height: 1.4; margin: 0.2em 0; font-family: "Linux Libertine", Georgia, Times, serif; }
#mp-free { font-size: 95%; margin: 0.2em 0 0; }
#mp-upper { display: flex; gap: 1em; flex-wrap: wrap; margin-bottom: 1em; }
#mp-left, #mp-right {
flex: 1 1 22em;
border: 1px solid #a3bfb1;
background-color: var(--background-color-success-subtle, #f5fffa);
padding: 0 0.6em 0.6em;
}
#mp-right { border-color: #a3b0bf; background-color: var(--background-color-progressive-subtle, #f5faff); }
.mp-h2 {
margin: 0.5em 0 0.4em !important;
padding: 0.2em 0.4em !important;
font-size: 120% !important;
font-weight: bold !important;
font-family: inherit !important;
border: 1px solid #a3bfb1 !important;
background-color: #cef2e0;
color: #000;
}
#mp-right .mp-h2 { border-color: #a3b0bf !important; background-color: #cedff2; }
#mp-lower, #mp-bottom {
border: 1px solid #a3b0bf;
padding: 0 0.6em 0.6em;
margin-bottom: 1em;
background-color: var(--background-color-base, #fff);
}
#mp-lower .mp-h2 { border-color: #a3b0bf !important; background-color: #cedff2; }
#mp-bottom .mp-h2 { border-color: #a2a9b1 !important; background-color: #eaecf0; }
.mp-more { text-align: right; font-weight: bold; font-size: 95%; }
html.skin-theme-clientpref-night .mp-h2 { color: #202122; }
/* Grid of links on the Main Page */
.mp-areas { display: flex; flex-wrap: wrap; gap: 0.4em 1.5em; }
.mp-areas > div { flex: 1 1 14em; }
/* ------------------------------------------------ Block quotations {{Quote}} */
blockquote.templatequote { margin: 1em 1.6em; padding: 0 0 0 0.8em; border-left: 3px solid var(--border-color-subtle, #c8ccd1); }
blockquote.templatequote .templatequotecite { margin-top: 0.3em; font-size: 95%; }
/* ------------------------------------------- File description table (Commons style) */
table.fileinfotpl { width: 100%; }
table.fileinfotpl th { text-align: left; vertical-align: top; background-color: var(--background-color-neutral, #eaecf0); }
/* ------------------------------------------------------------- Phones */
@media screen and (max-width: 720px) {
.infobox { float: none; width: auto; max-width: 100%; margin: 0 0 1em; box-sizing: border-box; }
.navbox-group { white-space: normal; }
}
/* Minerva only: let the infobox fill the screen width without overflowing it */
.infobox { float: none !important; width: auto !important; max-width: 100% !important; margin: 0 0 1em !important; box-sizing: border-box; }
.infobox img { max-width: 100%; height: auto; }
#mp-left, #mp-right { float: none; width: auto; }