MediaWiki:Common.css: Difference between revisions
Appearance
Created page with "→*************************** * Mytholite MediaWiki Theme * Drop in: MediaWiki:Common.css ***************************: →==== Brand tokens ====: :root { --brand: #ff6a00; →Accent (Mytholite orange?): --brand-2: #6a38f0; →Secondary accent (purple): --text: #1f1f24; --muted: #5b5b6a; --bg: #ffffff; --bg-soft: #f7f7fb; --border: #e5e7eb; --link: #3a68ff; --link-hover: #2b50c7; --code-bg: #0b1020; --code-text: #e8eefc;..." |
No edit summary |
||
| Line 1: | Line 1: | ||
/**************************** | /**************************** | ||
* | * DEAD Wiki – Readability Pass (Vector 2022) | ||
****************************/ | ****************************/ | ||
/* | /* Brand tokens (tweak these) */ | ||
:root { | :root { | ||
--brand: #ff6a00; | --brand: #ff6a00; /* DEAD orange */ | ||
--brand-2: #6a38f0; | --brand-2: #6a38f0; /* Accent purple */ | ||
--text: # | --text: #1b1e23; | ||
--muted: # | --muted: #5a6070; | ||
--bg: #ffffff; | --bg: #ffffff; | ||
--bg-soft: # | --bg-soft: #f6f7fb; | ||
--border: # | --border: #e3e6ee; | ||
--link: # | --link: #0b57d0; | ||
--link-hover: # | --link-hover: #063b8f; | ||
--code-bg: # | --code-bg: #0d1117; | ||
--code-text: # | --code-text: #e6edf3; | ||
} | } | ||
/* Auto dark mode */ | /* Auto dark mode for folks on dark OS theme */ | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
:root { | :root { | ||
--text: # | --text: #e8eaf0; | ||
--muted: # | --muted: #b3b7c2; | ||
--bg: # | --bg: #0f131a; | ||
--bg-soft: # | --bg-soft: #141a23; | ||
--border: # | --border: #262c38; | ||
--link: #8ab4ff; | --link: #8ab4ff; | ||
--link-hover: # | --link-hover: #b8ccff; | ||
--code-bg: # | --code-bg: #0b0f16; | ||
--code-text: # | --code-text: #e8f0ff; | ||
} | } | ||
} | |||
/* ---- Make content wider & larger (Vector 2022) ---- */ | |||
.skin-vector-2022 .mw-page-container { | |||
max-width: 1320px; /* wider page frame */ | |||
} | |||
.skin-vector-2022 .mw-content-container, | |||
.skin-vector-2022 .vector-body, | |||
.mw-body { | |||
max-width: 960px; /* wider article column */ | |||
} | } | ||
/* | /* Base type & spacing */ | ||
.mw-parser-output { | |||
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif; | |||
font-size: 18px; | |||
line-height: 1.7; | |||
color: var(--text); | color: var(--text); | ||
letter-spacing: 0.1px; | letter-spacing: 0.1px; | ||
} | } | ||
.mw-parser-output p { margin: 0.75em 0; } | |||
.mw-parser-output ul, .mw-parser-output ol { margin: 0.4em 0 1em 1.4em; } | |||
/* Headings */ | /* Headings – darker, tighter, chunkier */ | ||
.mw-parser-output h1, | .mw-parser-output h1, | ||
.mw-parser-output h2, | .mw-parser-output h2, | ||
.mw-parser-output h3, | .mw-parser-output h3, | ||
.mw-parser-output h4 { | .mw-parser-output h4 { | ||
font- | font-weight: 800; | ||
line-height: 1.25; | line-height: 1.25; | ||
color: var(--text); | color: var(--text); | ||
margin: 1.4em 0 0.6em; | |||
} | } | ||
.mw-parser-output h1 { font-size: | .mw-parser-output h1 { font-size: 2.1rem; border: 0; } | ||
.mw-parser-output h2 { font-size: 1. | .mw-parser-output h2 { font-size: 1.7rem; border-bottom: 2px solid var(--border); padding-bottom: .25rem; } | ||
.mw-parser-output h3 { font-size: 1. | .mw-parser-output h3 { font-size: 1.3rem; color: var(--text); } | ||
.mw-parser-output h4 { font-size: 1.05rem; color: var(--muted); } | .mw-parser-output h4 { font-size: 1.05rem; color: var(--muted); } | ||
/* Links */ | /* Links – high contrast */ | ||
.mw-parser-output a { | .mw-parser-output a { | ||
color: var(--link); | color: var(--link); | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
.mw-parser-output a:hover, | .mw-parser-output a:hover, | ||
| Line 78: | Line 78: | ||
color: var(--link-hover); | color: var(--link-hover); | ||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
/* | /* Table of contents */ | ||
#toc, .toc { | #toc, .toc { | ||
background: var(--bg-soft); | background: var(--bg-soft); | ||
| Line 125: | Line 86: | ||
border-radius: 12px; | border-radius: 12px; | ||
padding: 0.8rem 1rem; | padding: 0.8rem 1rem; | ||
} | } | ||
.tocnumber { color: var(--brand-2); font-weight: | .tocnumber { color: var(--brand-2); font-weight: 800; } | ||
/* | /* Wikitables – clean & zebra’d */ | ||
.wikitable, .mw-parser-output table { | .wikitable, .mw-parser-output table.wikitable { | ||
border: 1px solid var(--border); | border: 1px solid var(--border); | ||
border-collapse: separate; | border-collapse: separate; | ||
border-spacing: 0; | border-spacing: 0; | ||
border-radius: 12px; | |||
overflow: hidden; | overflow: hidden; | ||
} | } | ||
.wikitable | .wikitable th { | ||
background: var(--bg-soft); | background: var(--bg-soft); | ||
color: var(--text); | color: var(--text); | ||
padding: .6rem .8rem; | padding: .6rem .8rem; | ||
text-align: left; | text-align: left; | ||
font-weight: | font-weight: 800; | ||
border-bottom: 1px solid var(--border); | |||
} | } | ||
.wikitable | .wikitable td { | ||
. | padding: .55rem .8rem; | ||
border-top: 1px solid var(--border); | border-top: 1px solid var(--border); | ||
} | } | ||
.wikitable tr:nth-child(even) td { | .wikitable tr:nth-child(even) td { | ||
| Line 156: | Line 113: | ||
} | } | ||
/* Responsive | /* Responsive table scroller */ | ||
.mw-parser-output table { | .mw-parser-output table { | ||
display: block; | display: block; | ||
| Line 163: | Line 120: | ||
} | } | ||
/* | /* Infobox pattern (use class="infobox") */ | ||
.infobox, | .infobox, table.infobox { | ||
table.infobox { | |||
float: right; | float: right; | ||
width: 320px; | width: 320px; | ||
| Line 173: | Line 129: | ||
border-radius: 14px; | border-radius: 14px; | ||
overflow: hidden; | overflow: hidden; | ||
font-size: | font-size: .95rem; | ||
} | } | ||
.infobox th { | .infobox th { | ||
background: linear-gradient(135deg, color-mix(in srgb, var(--brand) | background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--bg) 82%), var(--bg-soft)); | ||
padding: .6rem .8rem; | padding: .6rem .8rem; | ||
} | } | ||
.infobox td { | .infobox td { padding: .55rem .8rem; border-top: 1px solid var(--border); } | ||
} | |||
.infobox caption { | .infobox caption { | ||
caption-side: top; | caption-side: top; | ||
background: var(--brand); | background: var(--brand); | ||
color: #fff; | color: #fff; | ||
font-weight: 900; | |||
padding: .7rem .9rem; | |||
} | } | ||
/* | /* Code blocks & inline code */ | ||
pre, code, | pre, code, .mw-code, .mw-highlight pre { | ||
.mw-code, .mw-highlight pre { | |||
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; | font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; | ||
} | } | ||
| Line 201: | Line 152: | ||
color: var(--code-text); | color: var(--code-text); | ||
border-radius: 12px; | border-radius: 12px; | ||
padding: | padding: .85rem 1rem; | ||
border: 1px solid rgba(255,255,255,0. | border: 1px solid rgba(255,255,255,0.06); | ||
overflow: auto; | overflow: auto; | ||
} | } | ||
code { | code { | ||
background: color-mix(in srgb, var(--code-bg) | background: color-mix(in srgb, var(--code-bg) 75%, var(--bg) 25%); | ||
color: var(--code-text); | color: var(--code-text); | ||
padding: . | padding: .1rem .35rem; | ||
border-radius: 6px; | border-radius: 6px; | ||
} | } | ||
/* | /* Images / thumbs */ | ||
.thumb, .thumbinner { | .thumb, .thumbinner { border: 0; background: transparent; } | ||
.thumb img, .thumbimage, .gallerybox .thumb img { border-radius: 12px; display: block; } | |||
.thumbcaption { font-size: .9rem; color: var(--muted); margin-top: .35rem; } | |||
} | |||
. | /* Sidebar & right rail – make muted */ | ||
.gallerybox .thumb img { | #mw-panel .portal h3 { color: var(--muted); font-weight: 700; } | ||
#mw-panel .portal .body ul { padding-left: .75rem; } | |||
#mw-panel, #right-navigation, #p-personal { font-size: 15px; } | |||
} | |||
.thumbcaption { | |||
} | |||
/* | /* Search box visibility */ | ||
. | #p-search input[type="search"] { | ||
. | font-size: 16px; | ||
padding: .5rem .6rem; | |||
border-radius: 10px; | border-radius: 10px; | ||
border: 1px solid var(--border); | border: 1px solid var(--border); | ||
background: var(--bg | background: var(--bg); | ||
color: var(--text); | |||
} | } | ||
/* | /* Buttons (OOUI) */ | ||
.mw-ui-button, a.mw-ui-button { | |||
.mw-ui-button { | |||
border-radius: 10px !important; | border-radius: 10px !important; | ||
background: var(--brand); | |||
border: 1px solid var(--brand); | border: 1px solid var(--brand); | ||
color: #fff !important; | color: #fff !important; | ||
font-weight: 800; | |||
padding: .45rem .85rem; | padding: .45rem .85rem; | ||
} | } | ||
.mw-ui-button:hover { filter: brightness(1.06); } | |||
/* | /* Footer */ | ||
#footer { border-top: 1px solid var(--border); margin-top: 2rem; color: var(--muted); } | |||
#footer { | |||
} | |||
#footer a { color: var(--muted); } | #footer a { color: var(--muted); } | ||
#footer a:hover { color: var(--link-hover); } | #footer a:hover { color: var(--link-hover); } | ||
/* | /* Lead paragraph a little bigger for readability */ | ||
.mw-parser-output > p:first-of-type { font-size: 1.06em; } | |||
.mw-parser-output > p:first-of-type { | |||
} | |||
Revision as of 11:15, 5 September 2025
/****************************
* DEAD Wiki – Readability Pass (Vector 2022)
****************************/
/* Brand tokens (tweak these) */
:root {
--brand: #ff6a00; /* DEAD orange */
--brand-2: #6a38f0; /* Accent purple */
--text: #1b1e23;
--muted: #5a6070;
--bg: #ffffff;
--bg-soft: #f6f7fb;
--border: #e3e6ee;
--link: #0b57d0;
--link-hover: #063b8f;
--code-bg: #0d1117;
--code-text: #e6edf3;
}
/* Auto dark mode for folks on dark OS theme */
@media (prefers-color-scheme: dark) {
:root {
--text: #e8eaf0;
--muted: #b3b7c2;
--bg: #0f131a;
--bg-soft: #141a23;
--border: #262c38;
--link: #8ab4ff;
--link-hover: #b8ccff;
--code-bg: #0b0f16;
--code-text: #e8f0ff;
}
}
/* ---- Make content wider & larger (Vector 2022) ---- */
.skin-vector-2022 .mw-page-container {
max-width: 1320px; /* wider page frame */
}
.skin-vector-2022 .mw-content-container,
.skin-vector-2022 .vector-body,
.mw-body {
max-width: 960px; /* wider article column */
}
/* Base type & spacing */
.mw-parser-output {
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
font-size: 18px;
line-height: 1.7;
color: var(--text);
letter-spacing: 0.1px;
}
.mw-parser-output p { margin: 0.75em 0; }
.mw-parser-output ul, .mw-parser-output ol { margin: 0.4em 0 1em 1.4em; }
/* Headings – darker, tighter, chunkier */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4 {
font-weight: 800;
line-height: 1.25;
color: var(--text);
margin: 1.4em 0 0.6em;
}
.mw-parser-output h1 { font-size: 2.1rem; border: 0; }
.mw-parser-output h2 { font-size: 1.7rem; border-bottom: 2px solid var(--border); padding-bottom: .25rem; }
.mw-parser-output h3 { font-size: 1.3rem; color: var(--text); }
.mw-parser-output h4 { font-size: 1.05rem; color: var(--muted); }
/* Links – high contrast */
.mw-parser-output a {
color: var(--link);
text-decoration: none;
}
.mw-parser-output a:hover,
.mw-parser-output a:focus {
color: var(--link-hover);
text-decoration: underline;
}
/* Table of contents */
#toc, .toc {
background: var(--bg-soft);
border: 1px solid var(--border);
border-radius: 12px;
padding: 0.8rem 1rem;
}
.tocnumber { color: var(--brand-2); font-weight: 800; }
/* Wikitables – clean & zebra’d */
.wikitable, .mw-parser-output table.wikitable {
border: 1px solid var(--border);
border-collapse: separate;
border-spacing: 0;
border-radius: 12px;
overflow: hidden;
}
.wikitable th {
background: var(--bg-soft);
color: var(--text);
padding: .6rem .8rem;
text-align: left;
font-weight: 800;
border-bottom: 1px solid var(--border);
}
.wikitable td {
padding: .55rem .8rem;
border-top: 1px solid var(--border);
}
.wikitable tr:nth-child(even) td {
background: color-mix(in srgb, var(--bg-soft) 40%, var(--bg) 60%);
}
/* Responsive table scroller */
.mw-parser-output table {
display: block;
max-width: 100%;
overflow-x: auto;
}
/* Infobox pattern (use class="infobox") */
.infobox, table.infobox {
float: right;
width: 320px;
margin: 0 0 1rem 1rem;
background: var(--bg-soft);
border: 1px solid var(--border);
border-radius: 14px;
overflow: hidden;
font-size: .95rem;
}
.infobox th {
background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--bg) 82%), var(--bg-soft));
padding: .6rem .8rem;
}
.infobox td { padding: .55rem .8rem; border-top: 1px solid var(--border); }
.infobox caption {
caption-side: top;
background: var(--brand);
color: #fff;
font-weight: 900;
padding: .7rem .9rem;
}
/* Code blocks & inline code */
pre, code, .mw-code, .mw-highlight pre {
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
pre, .mw-code, .mw-highlight pre {
background: var(--code-bg);
color: var(--code-text);
border-radius: 12px;
padding: .85rem 1rem;
border: 1px solid rgba(255,255,255,0.06);
overflow: auto;
}
code {
background: color-mix(in srgb, var(--code-bg) 75%, var(--bg) 25%);
color: var(--code-text);
padding: .1rem .35rem;
border-radius: 6px;
}
/* Images / thumbs */
.thumb, .thumbinner { border: 0; background: transparent; }
.thumb img, .thumbimage, .gallerybox .thumb img { border-radius: 12px; display: block; }
.thumbcaption { font-size: .9rem; color: var(--muted); margin-top: .35rem; }
/* Sidebar & right rail – make muted */
#mw-panel .portal h3 { color: var(--muted); font-weight: 700; }
#mw-panel .portal .body ul { padding-left: .75rem; }
#mw-panel, #right-navigation, #p-personal { font-size: 15px; }
/* Search box visibility */
#p-search input[type="search"] {
font-size: 16px;
padding: .5rem .6rem;
border-radius: 10px;
border: 1px solid var(--border);
background: var(--bg);
color: var(--text);
}
/* Buttons (OOUI) */
.mw-ui-button, a.mw-ui-button {
border-radius: 10px !important;
background: var(--brand);
border: 1px solid var(--brand);
color: #fff !important;
font-weight: 800;
padding: .45rem .85rem;
}
.mw-ui-button:hover { filter: brightness(1.06); }
/* Footer */
#footer { border-top: 1px solid var(--border); margin-top: 2rem; color: var(--muted); }
#footer a { color: var(--muted); }
#footer a:hover { color: var(--link-hover); }
/* Lead paragraph a little bigger for readability */
.mw-parser-output > p:first-of-type { font-size: 1.06em; }