MediaWiki:Common.CSS: Difference between revisions
Appearance
No edit summary |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
/* ========================================= | /* ========================================= | ||
GLOBAL WIKI STYLES | GLOBAL WIKI STYLES | ||
========================================= */ | ========================================= */ | ||
/* | :root { | ||
--bg: #f5f1e8; | |||
--panel: #fcfaf6; | |||
--border: #c9bea8; | |||
--text: #222; | |||
--muted: #666; | |||
--link: #2f5fa7; | |||
--link-hover: #4a7fd1; | |||
--link-visited: #6d5ca8; | |||
--new-link: #b33; | |||
--new-link-visited: #8a5555; | |||
--heading: #3a2f1f; | |||
} | |||
/* ========================================= | |||
BODY + TYPOGRAPHY | |||
========================================= */ | |||
body, | |||
.vector-body, | |||
.mw-body { | |||
background: var(--bg); | |||
color: var(--text); | |||
font-family: | |||
Georgia, | |||
"Times New Roman", | |||
serif; | |||
line-height: 1.7; | |||
} | |||
/* Main content area */ | |||
.mw-parser-output { | |||
max-width: 1000px; | |||
} | |||
/* ========================================= | |||
HEADINGS | |||
========================================= */ | |||
h1, | |||
h2, | |||
h3, | |||
h4, | |||
h5, | |||
h6 { | |||
color: var(--heading); | |||
font-family: | |||
Georgia, | |||
"Times New Roman", | |||
serif; | |||
font-weight: bold; | |||
letter-spacing: 0.3px; | |||
} | |||
h1 { | |||
border-bottom: 2px solid var(--border); | |||
padding-bottom: 0.25em; | |||
} | |||
h2 { | |||
border-bottom: 1px solid var(--border); | |||
padding-bottom: 0.2em; | |||
} | |||
/* ========================================= | |||
LINKS | |||
========================================= */ | |||
a { | a { | ||
color: | color: var(--link) !important; | ||
text-decoration: none; | |||
} | } | ||
a:visited { | a:visited { | ||
color: | color: var(--link-visited) !important; | ||
} | } | ||
a:hover { | a:hover { | ||
color: | color: var(--link-hover) !important; | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
a.new { | a.new { | ||
color: | color: var(--new-link) !important; | ||
} | } | ||
a.new:visited { | a.new:visited { | ||
color: | color: var(--new-link-visited) !important; | ||
} | } | ||
/* ========================================= | |||
INFOBOXES | |||
========================================= */ | |||
.infobox { | .infobox { | ||
float: right; | float: right; | ||
width: | width: 320px; | ||
max-width: 100%; | max-width: 100%; | ||
margin: 0 0 | margin: 0 0 1.2em 1.2em; | ||
padding: | padding: 12px; | ||
border: 1px solid | |||
background: var(--panel); | |||
border: 1px solid var(--border); | |||
border-radius: 6px; | |||
box-shadow: 0 1px 4px rgba(0,0,0,0.08); | |||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
.infobox th { | |||
background: #ece4d3; | |||
color: #222; | |||
text-align: left; | |||
padding: 6px; | |||
} | |||
.infobox td { | |||
padding: 6px; | |||
} | } | ||
/* | /* ========================================= | ||
TABLES | |||
========================================= */ | |||
table { | table { | ||
width: 100%; | |||
max-width: 100%; | max-width: 100%; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
background: var(--panel); | |||
} | |||
th, | |||
td { | |||
border: 1px solid var(--border); | |||
padding: 8px; | |||
} | |||
th { | |||
background: #ece4d3; | |||
} | |||
/* ========================================= | |||
BLOCKQUOTES | |||
========================================= */ | |||
blockquote { | |||
margin: 1em 0; | |||
padding: 0.8em 1.2em; | |||
border-left: 4px solid var(--border); | |||
background: #f0ebe0; | |||
color: var(--muted); | |||
font-style: italic; | |||
} | |||
/* ========================================= | |||
IMAGES | |||
========================================= */ | |||
img { | |||
max-width: 100%; | |||
height: auto; | |||
} | } | ||
/* ========================================= | /* ========================================= | ||
MOBILE STYLES | MOBILE STYLES | ||
========================================= */ | ========================================= */ | ||
| Line 58: | Line 180: | ||
html { | html { | ||
font-size: 20px !important; | |||
text-size-adjust: 100%; | text-size-adjust: 100%; | ||
} | } | ||
| Line 70: | Line 190: | ||
font-size: 1rem !important; | font-size: 1rem !important; | ||
line-height: 1.8 !important; | line-height: 1.8 !important; | ||
padding-left: 14px; | padding-left: 14px; | ||
padding-right: 14px; | padding-right: 14px; | ||
overflow-x: hidden; | overflow-x: hidden; | ||
overflow-wrap: break-word; | overflow-wrap: break-word; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
h1 { | h1 { | ||
font-size: | font-size: 2rem !important; | ||
} | } | ||
h2 { | h2 { | ||
font-size: 1. | font-size: 1.6rem !important; | ||
} | } | ||
h3 { | h3 { | ||
font-size: 1. | font-size: 1.3rem !important; | ||
} | } | ||
| Line 104: | Line 214: | ||
float: none !important; | float: none !important; | ||
width: 100% !important; | width: 100% !important; | ||
margin: 1em 0 !important; | margin: 1em 0 !important; | ||
} | } | ||
| Line 110: | Line 219: | ||
table { | table { | ||
display: block; | display: block; | ||
overflow-x: auto; | overflow-x: auto; | ||
} | } | ||
Revision as of 06:32, 18 May 2026
/* =========================================
GLOBAL WIKI STYLES
========================================= */
:root {
--bg: #f5f1e8;
--panel: #fcfaf6;
--border: #c9bea8;
--text: #222;
--muted: #666;
--link: #2f5fa7;
--link-hover: #4a7fd1;
--link-visited: #6d5ca8;
--new-link: #b33;
--new-link-visited: #8a5555;
--heading: #3a2f1f;
}
/* =========================================
BODY + TYPOGRAPHY
========================================= */
body,
.vector-body,
.mw-body {
background: var(--bg);
color: var(--text);
font-family:
Georgia,
"Times New Roman",
serif;
line-height: 1.7;
}
/* Main content area */
.mw-parser-output {
max-width: 1000px;
}
/* =========================================
HEADINGS
========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--heading);
font-family:
Georgia,
"Times New Roman",
serif;
font-weight: bold;
letter-spacing: 0.3px;
}
h1 {
border-bottom: 2px solid var(--border);
padding-bottom: 0.25em;
}
h2 {
border-bottom: 1px solid var(--border);
padding-bottom: 0.2em;
}
/* =========================================
LINKS
========================================= */
a {
color: var(--link) !important;
text-decoration: none;
}
a:visited {
color: var(--link-visited) !important;
}
a:hover {
color: var(--link-hover) !important;
text-decoration: underline;
}
a.new {
color: var(--new-link) !important;
}
a.new:visited {
color: var(--new-link-visited) !important;
}
/* =========================================
INFOBOXES
========================================= */
.infobox {
float: right;
width: 320px;
max-width: 100%;
margin: 0 0 1.2em 1.2em;
padding: 12px;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 6px;
box-shadow: 0 1px 4px rgba(0,0,0,0.08);
box-sizing: border-box;
}
.infobox th {
background: #ece4d3;
color: #222;
text-align: left;
padding: 6px;
}
.infobox td {
padding: 6px;
}
/* =========================================
TABLES
========================================= */
table {
width: 100%;
max-width: 100%;
border-collapse: collapse;
background: var(--panel);
}
th,
td {
border: 1px solid var(--border);
padding: 8px;
}
th {
background: #ece4d3;
}
/* =========================================
BLOCKQUOTES
========================================= */
blockquote {
margin: 1em 0;
padding: 0.8em 1.2em;
border-left: 4px solid var(--border);
background: #f0ebe0;
color: var(--muted);
font-style: italic;
}
/* =========================================
IMAGES
========================================= */
img {
max-width: 100%;
height: auto;
}
/* =========================================
MOBILE STYLES
========================================= */
@media screen and (max-width: 768px) {
html {
font-size: 20px !important;
text-size-adjust: 100%;
}
body,
.vector-body,
.mw-body,
.mw-parser-output {
font-size: 1rem !important;
line-height: 1.8 !important;
padding-left: 14px;
padding-right: 14px;
overflow-x: hidden;
overflow-wrap: break-word;
box-sizing: border-box;
}
h1 {
font-size: 2rem !important;
}
h2 {
font-size: 1.6rem !important;
}
h3 {
font-size: 1.3rem !important;
}
.infobox {
float: none !important;
width: 100% !important;
margin: 1em 0 !important;
}
table {
display: block;
overflow-x: auto;
}
input,
button,
select,
textarea {
font-size: 1rem !important;
}
}