MediaWiki:Vector-2022.css: Difference between revisions
Appearance
Orangestar (talk | contribs) No edit summary |
Orangestar (talk | contribs) No edit summary Tags: Mobile edit Mobile web edit |
||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* | /* Must be good in both dark and light mode. */ | ||
body | body | ||
{ | { | ||
background: #222; | /*background: #222; | ||
color: white; | color: white; | ||
--background-color-base: #222; | --background-color-base: #222; | ||
--primary: white; | --primary: white; */ | ||
--link: #FF2020; | --link: #FF2020; | ||
--link-new: # | --link-new: #A00000; | ||
--link--visited: # | --link--visited: #FF6A6A; | ||
--link-new--visited: # | --link-new--visited: #A06060; | ||
--heading: #CCC; | --heading: #CCC; | ||
} | } | ||
a { color: var(--link); } | a { color: var(--link); } | ||
Line 43: | Line 26: | ||
.vector-toc .vector-toc-list-item-active.vector-toc-level-1-active > .vector-toc-link | .vector-toc .vector-toc-list-item-active.vector-toc-level-1-active > .vector-toc-link | ||
{ | { | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
Line 59: | Line 35: | ||
.vector-toc .vector-toc-link, | .vector-toc .vector-toc-link, | ||
.vector-menu-tabs .mw-list-item a, | .vector-menu-tabs .mw-list-item a, | ||
#pt-userpage-2 a:not(.mw-selflink) | #pt-userpage-2 a:not(.mw-selflink), | ||
.mw-parser-output a.extiw, | |||
.mw-parser-output a.external | |||
{ | { | ||
color: var(--link) | color: var(--link) | ||
} | } | ||
/* links with higher specificity */ | |||
.vector-menu-tabs .mw-list-item a { | |||
color: var(--link) !important; | |||
} | |||
.vector-menu-tabs .mw-list-item a:visited { | |||
color: var(--link--visited) !important; /* complain where god can hear you, not here */ | |||
} | |||
/* | |||
.vector-pinnable-element .vector-menu-heading { | .vector-pinnable-element .vector-menu-heading { | ||
color: var(--heading); | color: var(--heading); | ||
Line 70: | Line 57: | ||
.mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend { | .mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend { | ||
background-color: var(--background-color-base); | background-color: var(--background-color-base); | ||
} | } */ | ||
/* override: our wordmark is designed for dark mode */ | |||
html header.mw-header a.mw-logo span.mw-logo-container, | |||
html header.mw-header a.mw-logo img.mw-logo-icon { | |||
color-scheme: dark; | |||
filter: none; | |||
} | } | ||
. | html.skin-theme-clientpref-day header.mw-header a.mw-logo span.mw-logo-container, | ||
html.skin-theme-clientpref-day header.mw-header a.mw-logo img.mw-logo-icon { | |||
filter: invert(1) hue-rotate(180deg) saturate(10) brightness(0.7); | |||
} | } | ||
@media screen and (prefers-color-scheme: light) { | |||
html header.mw-header a.mw-logo span.mw-logo-container, | |||
html header.mw-header a.mw-logo img.mw-logo-icon { | |||
filter: invert(1) hue-rotate(180deg) saturate(10) brightness(0.7); | |||
} | |||
} | } | ||
/* dumb hack to make our wordmark appear at different browser sizes */ | |||
. | .mw-logo-container { display: block; } | ||
.mw-logo-icon { display: none; } | |||
} | |||
.mw- | @media screen and (max-width:720px) { | ||
.mw-logo-container { display: none; } | |||
.mw-logo-icon { display: block; } | |||
} | } | ||
@media screen and (max-width: calc(639px)) { | |||
.vector-header { | |||
flex-flow: row; /* fuck off and stay a row forever asshole */ | |||
} | |||
} | |||
} | } | ||
.cdx-text-input { min-width: auto; } /* WHY IS THIS EVEN SET? WHO KLUDGED TOGETHER THIS AWFUL SKIN */ | |||
} | |||
@media | @media all { | ||
.mw-logo { | |||
min-width: auto; /* fixes width being too big on mobile */ | |||
} | |||
} | } |