MediaWiki:Timeless.css: Difference between revisions
From The E28 Wiki
No edit summary Tags: Mobile edit Mobile web edit |
MyE28 brand theme (wiki-theme/) |
||
| Line 1: | Line 1: | ||
/* | /* | ||
* MyE28 wiki brand — MediaWiki:Timeless.css | |||
* Default skin chrome. Mirrors forums `mye28` style. | |||
* | |||
* Bars: | |||
* Page header (#mw-header-container) → classic M light blue #0066B3 | |||
* Color bar stripes → light blue / violet / red (oldest M) | |||
* Sidebar chunk titles → classic M violet-blue #2B1C6B + white | |||
* Content container bottom edge → violet-blue | |||
* | |||
* Source: https://github.com/mye28/mye28 (wiki-theme/) | |||
*/ | |||
/* ------------------------------------------------------------------ | |||
* Fonts (preserve existing Timeless preference) | |||
* ------------------------------------------------------------------ */ | |||
#mw-header *, | #mw-header *, | ||
#mw-site-navigation *, | #mw-site-navigation *, | ||
#mw-related-navigation * { | #mw-related-navigation * { | ||
font-family: 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lato', | |||
'Liberation Sans', 'Noto Sans', 'Helvetica Neue', 'Helvetica', sans-serif; | |||
} | } | ||
.mw-body .mw-heading, .mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body h5, .mw-body h6, .mw-body dt, | .mw-body .mw-heading, | ||
.mw-body h1, | |||
.mw-body h2, | |||
.mw-body h3, | |||
.mw-body h4, | |||
.mw-body h5, | |||
.mw-body h6, | |||
.mw-body dt, | |||
#p-logo-text a { | #p-logo-text a { | ||
font-family: 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lato', | |||
'Liberation Sans', 'Noto Sans', 'Helvetica Neue', 'Helvetica', sans-serif; | |||
} | } | ||
/* Avoid cutting off letters with descenders: g,j,p,q,y */ | /* Avoid cutting off letters with descenders: g,j,p,q,y */ | ||
#personal h2 span { | #personal h2 span { | ||
height: 1.5em; | |||
position: relative; | |||
bottom: 0.1em; | |||
} | } | ||
/* Triangle position patch */ | /* Triangle position patch */ | ||
#personal h2::after { | #personal h2::after { | ||
position: relative; | |||
bottom: 0.5em; | |||
} | |||
/* ------------------------------------------------------------------ | |||
* Page chrome | |||
* ------------------------------------------------------------------ */ | |||
html, | |||
body { | |||
color: #121417; | |||
background-color: #E2E5E9 !important; | |||
} | |||
/* Header bar — classic M light blue (forums .headerbar / .navbar) */ | |||
#mw-header-container { | |||
background-color: #0066B3 !important; | |||
background-image: none !important; | |||
border: none !important; | |||
box-shadow: none !important; | |||
color: #FFFFFF; | |||
} | |||
#mw-header { | |||
color: #FFFFFF; | |||
} | |||
#mw-header a, | |||
#mw-header a:visited { | |||
color: #FFFFFF !important; | |||
} | |||
#mw-header a:hover, | |||
#mw-header a:focus { | |||
color: #E6F0F8 !important; | |||
text-decoration: none; | |||
} | |||
/* Site name text in header */ | |||
#p-logo-text a { | |||
color: #FFFFFF !important; | |||
font-variant: normal; | |||
font-weight: 600; | |||
} | |||
#p-logo-text a:hover { | |||
color: #E6F0F8 !important; | |||
} | } | ||
/* Personal tools / user menu toggle */ | |||
#personal h2, | |||
#personal .dropdown-toggle, | |||
#mw-header .dropdown-toggle { | |||
color: #FFFFFF !important; | |||
background-color: transparent !important; | |||
border-radius: 0 !important; | |||
box-shadow: none !important; | |||
} | |||
#personal h2:hover, | |||
#mw-header .dropdown-toggle:hover { | |||
background-color: #005A9E !important; | |||
color: #FFFFFF !important; | |||
} | |||
/* Search field on blue header */ | |||
#simpleSearch { | |||
background: #FFFFFF !important; | |||
border: 1px solid #1F1450 !important; | |||
border-radius: 0 !important; | |||
box-shadow: none !important; | |||
} | } | ||
#searchInput { | |||
color: #121417 !important; | |||
background: transparent !important; | |||
} | |||
#searchButton, | |||
#mw-searchButton { | |||
/* keep icon; no soft chrome */ | |||
border-radius: 0 !important; | |||
box-shadow: none !important; | |||
} | |||
/* Suggestions dropdown */ | |||
.suggestions { | |||
border-radius: 0 !important; | |||
box-shadow: none !important; | |||
border: 1px solid #B8BDC4 !important; | |||
} | |||
.suggestions .suggestions-result-current { | |||
background-color: #2B1C6B !important; | |||
color: #FFFFFF !important; | |||
} | |||
/* ------------------------------------------------------------------ | |||
* Classic M color bar (oldest logo order L→R: blue · violet · red) | |||
* Timeless: color-left | color-middle (center band) | color-right | |||
* ------------------------------------------------------------------ */ | |||
.color-left { | |||
background: #0066B3 !important; | |||
} | |||
.color-middle { | |||
background: #2B1C6B !important; | |||
} | |||
.color-right { | |||
background: #D52B1E !important; | |||
} | |||
/* ------------------------------------------------------------------ | |||
* Content area — white plate on aluminum field | |||
* ------------------------------------------------------------------ */ | |||
#mw-content-container { | #mw-content-container { | ||
background-color: #E2E5E9 !important; | |||
background-image: none !important; | |||
border-bottom: solid 4px #2B1C6B !important; | |||
} | |||
#mw-content { | |||
background: #FFFFFF !important; | |||
border: 1px solid #B8BDC4 !important; | |||
border-radius: 0 !important; | |||
box-shadow: none !important; | |||
} | |||
.mw-body { | |||
color: #121417; | |||
} | |||
/* Page tools underline (namespaces / views) */ | |||
.tools-inline li.selected { | |||
border-bottom-color: #2B1C6B !important; | |||
} | |||
.tools-inline li:hover { | |||
border-bottom-color: #D52B1E !important; | |||
} | |||
.tools-inline li a { | |||
color: #2B1C6B !important; | |||
} | |||
.tools-inline li a:hover { | |||
color: #D52B1E !important; | |||
} | |||
/* First heading accent */ | |||
.mw-body h1.firstHeading, | |||
.mw-body .firstHeading { | |||
border-bottom: solid 4px #2B1C6B !important; | |||
color: #121417 !important; | |||
} | |||
/* ------------------------------------------------------------------ | |||
* Sidebars / portlets — aluminum plates, violet headers | |||
* ------------------------------------------------------------------ */ | |||
.sidebar-chunk, | |||
#mw-site-navigation .sidebar-chunk, | |||
#mw-related-navigation .sidebar-chunk, | |||
.nav-block, | |||
#mw-site-navigation .sidebar-inner, | |||
#mw-related-navigation .sidebar-inner { | |||
background-color: #E6E8EC !important; | |||
border: 1px solid #B8BDC4 !important; | |||
border-radius: 0 !important; | |||
box-shadow: none !important; | |||
} | |||
/* Sidebar section titles */ | |||
.sidebar-chunk h2, | |||
.sidebar-chunk h3, | |||
#mw-site-navigation h2, | |||
#mw-site-navigation h3, | |||
#mw-related-navigation h2, | |||
#mw-related-navigation h3, | |||
.mw-portlet h3, | |||
.mw-portlet > h3 { | |||
background-color: #2B1C6B !important; | |||
color: #FFFFFF !important; | |||
border-bottom: none !important; | |||
border-radius: 0 !important; | |||
margin: -0.5em -0.75em 0.75em !important; | |||
padding: 0.45em 0.75em !important; | |||
font-weight: 600 !important; | |||
text-transform: uppercase !important; | |||
letter-spacing: 0.02em; | |||
font-size: 0.85em !important; | |||
} | |||
/* Some Timeless layouts put padding on the chunk; keep header flush */ | |||
.sidebar-chunk > h2, | |||
.sidebar-chunk > h3 { | |||
margin-left: -1.5em !important; | |||
margin-right: -1.5em !important; | |||
margin-top: -1.5em !important; | |||
padding-left: 1.5em !important; | |||
padding-right: 1.5em !important; | |||
padding-top: 0.55em !important; | |||
padding-bottom: 0.55em !important; | |||
} | |||
.sidebar-chunk a, | |||
#mw-site-navigation a, | |||
#mw-related-navigation a { | |||
color: #2B1C6B !important; | |||
} | |||
.sidebar-chunk a:hover, | |||
#mw-site-navigation a:hover, | |||
#mw-related-navigation a:hover { | |||
color: #D52B1E !important; | |||
} | |||
/* Logo box in left column */ | |||
#p-logo { | |||
background-color: #FFFFFF !important; | |||
border: 1px solid #B8BDC4 !important; | |||
border-radius: 0 !important; | |||
box-shadow: none !important; | |||
padding: 0.5em; | |||
margin-bottom: 0.5em; | |||
} | |||
/* ------------------------------------------------------------------ | |||
* Dropdowns (personal menu, tools) | |||
* ------------------------------------------------------------------ */ | |||
.dropdown, | |||
.dropdown-menu, | |||
#personal .dropdown, | |||
#mw-header .dropdown { | |||
border-radius: 0 !important; | |||
box-shadow: none !important; | |||
border: 1px solid #B8BDC4 !important; | |||
background: #FFFFFF !important; | |||
} | |||
.dropdown a, | |||
.dropdown-menu a { | |||
color: #2B1C6B !important; | |||
} | |||
.dropdown a:hover, | |||
.dropdown-menu a:hover { | |||
background-color: #D0D7DE !important; | |||
color: #D52B1E !important; | |||
} | |||
/* ------------------------------------------------------------------ | |||
* Footer | |||
* ------------------------------------------------------------------ */ | |||
.mw-footer-container { | |||
background-color: #2B1C6B !important; | |||
border-top: none !important; | |||
box-shadow: none !important; | |||
color: #FFFFFF !important; | |||
} | |||
.mw-footer, | |||
.mw-footer a, | |||
.mw-footer a:visited { | |||
color: #E6F0F8 !important; | |||
} | |||
.mw-footer a:hover { | |||
color: #FFFFFF !important; | |||
text-decoration: underline; | |||
} | |||
/* ------------------------------------------------------------------ | |||
* Clean geometry — square corners, no soft shadows (forums match) | |||
* ------------------------------------------------------------------ */ | |||
#mw-content, | |||
.sidebar-chunk, | |||
.toc, | |||
.thumbinner, | |||
.catlinks, | |||
#simpleSearch, | |||
.dropdown, | |||
.oo-ui-buttonElement-button, | |||
.oo-ui-inputWidget-input, | |||
input, | |||
textarea, | |||
select, | |||
.wikitable, | |||
.mw-code, | |||
pre, | |||
code { | |||
border-radius: 0 !important; | |||
} | |||
#mw-content, | |||
.sidebar-chunk, | |||
#simpleSearch, | |||
.dropdown, | |||
.suggestions { | |||
box-shadow: none !important; | |||
} | |||
/* ------------------------------------------------------------------ | |||
* Mobile (Timeless < 851px) | |||
* ------------------------------------------------------------------ */ | |||
@media screen and (max-width: 850px) { | |||
#mw-header-container { | |||
background-color: #0066B3 !important; | |||
} | |||
/* Menu toggles stay readable on blue */ | |||
#mw-header .dropdown-toggle, | |||
#personal h2 { | |||
color: #FFFFFF !important; | |||
} | |||
#mw-content-container { | |||
border-bottom: solid 3px #2B1C6B !important; | |||
} | |||
} | } | ||
Revision as of 20:14, 2 August 2026
/*
* MyE28 wiki brand — MediaWiki:Timeless.css
* Default skin chrome. Mirrors forums `mye28` style.
*
* Bars:
* Page header (#mw-header-container) → classic M light blue #0066B3
* Color bar stripes → light blue / violet / red (oldest M)
* Sidebar chunk titles → classic M violet-blue #2B1C6B + white
* Content container bottom edge → violet-blue
*
* Source: https://github.com/mye28/mye28 (wiki-theme/)
*/
/* ------------------------------------------------------------------
* Fonts (preserve existing Timeless preference)
* ------------------------------------------------------------------ */
#mw-header *,
#mw-site-navigation *,
#mw-related-navigation * {
font-family: 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lato',
'Liberation Sans', 'Noto Sans', 'Helvetica Neue', 'Helvetica', sans-serif;
}
.mw-body .mw-heading,
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6,
.mw-body dt,
#p-logo-text a {
font-family: 'Segoe UI', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Lato',
'Liberation Sans', 'Noto Sans', 'Helvetica Neue', 'Helvetica', sans-serif;
}
/* Avoid cutting off letters with descenders: g,j,p,q,y */
#personal h2 span {
height: 1.5em;
position: relative;
bottom: 0.1em;
}
/* Triangle position patch */
#personal h2::after {
position: relative;
bottom: 0.5em;
}
/* ------------------------------------------------------------------
* Page chrome
* ------------------------------------------------------------------ */
html,
body {
color: #121417;
background-color: #E2E5E9 !important;
}
/* Header bar — classic M light blue (forums .headerbar / .navbar) */
#mw-header-container {
background-color: #0066B3 !important;
background-image: none !important;
border: none !important;
box-shadow: none !important;
color: #FFFFFF;
}
#mw-header {
color: #FFFFFF;
}
#mw-header a,
#mw-header a:visited {
color: #FFFFFF !important;
}
#mw-header a:hover,
#mw-header a:focus {
color: #E6F0F8 !important;
text-decoration: none;
}
/* Site name text in header */
#p-logo-text a {
color: #FFFFFF !important;
font-variant: normal;
font-weight: 600;
}
#p-logo-text a:hover {
color: #E6F0F8 !important;
}
/* Personal tools / user menu toggle */
#personal h2,
#personal .dropdown-toggle,
#mw-header .dropdown-toggle {
color: #FFFFFF !important;
background-color: transparent !important;
border-radius: 0 !important;
box-shadow: none !important;
}
#personal h2:hover,
#mw-header .dropdown-toggle:hover {
background-color: #005A9E !important;
color: #FFFFFF !important;
}
/* Search field on blue header */
#simpleSearch {
background: #FFFFFF !important;
border: 1px solid #1F1450 !important;
border-radius: 0 !important;
box-shadow: none !important;
}
#searchInput {
color: #121417 !important;
background: transparent !important;
}
#searchButton,
#mw-searchButton {
/* keep icon; no soft chrome */
border-radius: 0 !important;
box-shadow: none !important;
}
/* Suggestions dropdown */
.suggestions {
border-radius: 0 !important;
box-shadow: none !important;
border: 1px solid #B8BDC4 !important;
}
.suggestions .suggestions-result-current {
background-color: #2B1C6B !important;
color: #FFFFFF !important;
}
/* ------------------------------------------------------------------
* Classic M color bar (oldest logo order L→R: blue · violet · red)
* Timeless: color-left | color-middle (center band) | color-right
* ------------------------------------------------------------------ */
.color-left {
background: #0066B3 !important;
}
.color-middle {
background: #2B1C6B !important;
}
.color-right {
background: #D52B1E !important;
}
/* ------------------------------------------------------------------
* Content area — white plate on aluminum field
* ------------------------------------------------------------------ */
#mw-content-container {
background-color: #E2E5E9 !important;
background-image: none !important;
border-bottom: solid 4px #2B1C6B !important;
}
#mw-content {
background: #FFFFFF !important;
border: 1px solid #B8BDC4 !important;
border-radius: 0 !important;
box-shadow: none !important;
}
.mw-body {
color: #121417;
}
/* Page tools underline (namespaces / views) */
.tools-inline li.selected {
border-bottom-color: #2B1C6B !important;
}
.tools-inline li:hover {
border-bottom-color: #D52B1E !important;
}
.tools-inline li a {
color: #2B1C6B !important;
}
.tools-inline li a:hover {
color: #D52B1E !important;
}
/* First heading accent */
.mw-body h1.firstHeading,
.mw-body .firstHeading {
border-bottom: solid 4px #2B1C6B !important;
color: #121417 !important;
}
/* ------------------------------------------------------------------
* Sidebars / portlets — aluminum plates, violet headers
* ------------------------------------------------------------------ */
.sidebar-chunk,
#mw-site-navigation .sidebar-chunk,
#mw-related-navigation .sidebar-chunk,
.nav-block,
#mw-site-navigation .sidebar-inner,
#mw-related-navigation .sidebar-inner {
background-color: #E6E8EC !important;
border: 1px solid #B8BDC4 !important;
border-radius: 0 !important;
box-shadow: none !important;
}
/* Sidebar section titles */
.sidebar-chunk h2,
.sidebar-chunk h3,
#mw-site-navigation h2,
#mw-site-navigation h3,
#mw-related-navigation h2,
#mw-related-navigation h3,
.mw-portlet h3,
.mw-portlet > h3 {
background-color: #2B1C6B !important;
color: #FFFFFF !important;
border-bottom: none !important;
border-radius: 0 !important;
margin: -0.5em -0.75em 0.75em !important;
padding: 0.45em 0.75em !important;
font-weight: 600 !important;
text-transform: uppercase !important;
letter-spacing: 0.02em;
font-size: 0.85em !important;
}
/* Some Timeless layouts put padding on the chunk; keep header flush */
.sidebar-chunk > h2,
.sidebar-chunk > h3 {
margin-left: -1.5em !important;
margin-right: -1.5em !important;
margin-top: -1.5em !important;
padding-left: 1.5em !important;
padding-right: 1.5em !important;
padding-top: 0.55em !important;
padding-bottom: 0.55em !important;
}
.sidebar-chunk a,
#mw-site-navigation a,
#mw-related-navigation a {
color: #2B1C6B !important;
}
.sidebar-chunk a:hover,
#mw-site-navigation a:hover,
#mw-related-navigation a:hover {
color: #D52B1E !important;
}
/* Logo box in left column */
#p-logo {
background-color: #FFFFFF !important;
border: 1px solid #B8BDC4 !important;
border-radius: 0 !important;
box-shadow: none !important;
padding: 0.5em;
margin-bottom: 0.5em;
}
/* ------------------------------------------------------------------
* Dropdowns (personal menu, tools)
* ------------------------------------------------------------------ */
.dropdown,
.dropdown-menu,
#personal .dropdown,
#mw-header .dropdown {
border-radius: 0 !important;
box-shadow: none !important;
border: 1px solid #B8BDC4 !important;
background: #FFFFFF !important;
}
.dropdown a,
.dropdown-menu a {
color: #2B1C6B !important;
}
.dropdown a:hover,
.dropdown-menu a:hover {
background-color: #D0D7DE !important;
color: #D52B1E !important;
}
/* ------------------------------------------------------------------
* Footer
* ------------------------------------------------------------------ */
.mw-footer-container {
background-color: #2B1C6B !important;
border-top: none !important;
box-shadow: none !important;
color: #FFFFFF !important;
}
.mw-footer,
.mw-footer a,
.mw-footer a:visited {
color: #E6F0F8 !important;
}
.mw-footer a:hover {
color: #FFFFFF !important;
text-decoration: underline;
}
/* ------------------------------------------------------------------
* Clean geometry — square corners, no soft shadows (forums match)
* ------------------------------------------------------------------ */
#mw-content,
.sidebar-chunk,
.toc,
.thumbinner,
.catlinks,
#simpleSearch,
.dropdown,
.oo-ui-buttonElement-button,
.oo-ui-inputWidget-input,
input,
textarea,
select,
.wikitable,
.mw-code,
pre,
code {
border-radius: 0 !important;
}
#mw-content,
.sidebar-chunk,
#simpleSearch,
.dropdown,
.suggestions {
box-shadow: none !important;
}
/* ------------------------------------------------------------------
* Mobile (Timeless < 851px)
* ------------------------------------------------------------------ */
@media screen and (max-width: 850px) {
#mw-header-container {
background-color: #0066B3 !important;
}
/* Menu toggles stay readable on blue */
#mw-header .dropdown-toggle,
#personal h2 {
color: #FFFFFF !important;
}
#mw-content-container {
border-bottom: solid 3px #2B1C6B !important;
}
}
