Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
Tag: Reverted |
Tag: Reverted |
||
Line 89: | Line 89: | ||
html #simpleSearch #searchInput, | html #simpleSearch #searchInput, | ||
html #siteNotice #centralNotice .cnotice { | html #siteNotice #centralNotice .cnotice { | ||
background-color: # | background-color: #fff; | ||
} | } | ||
Revision as of 19:02, 9 March 2023
/* DARK MODE */ /* WikimediaUI Dark Mode * * Wikimedia Design Team 2019-2021 * Original authors: * - Volker E. – [[User:Volker_E._(WMF)]] * - Alex Hollender * - MusikAnimal * - Carolyn Li-Madeo * - Jdlrobson * * Original at https://en.wikipedia.org/wiki/User:Volker_E._(WMF)/dark-mode.css * Version for Gadget CSS skin override usage only. * Basically removed of all interaction element styles and * set to `html` instead of JS injected `.client-dark-mode` class. * * Last updated: 2021-04-20 * */ /** To prevent 'jumping' effect within #p-personal in Vector/Monobook. Overrides [[MediaWiki:Gadget-dark-mode-toggle-pagestyles.css]] **/ body.skin-vector-legacy :not(#pt-darkmode) + #pt-watchlist::before, body.skin-monobook :not(#pt-darkmode) + #pt-watchlist::before { content: "Light mode"; } @media screen { /* set height for monobook and timeless, because the filter in FF needs dimensions to get it to apply */ html { height: 100%; } /* Filter needs to reside on `html`, see https://phabricator.wikimedia.org/T221425#5153917 */ html, /* All other selectors have `filter` double-applied to turn back to “normal” by inheritance */ html img, html video, html ogvjs, html svg, html iframe, html .mw-no-invert, html td .diffchange, html .mwe-math-element, html .wvui-typeahead-suggestion__thumbnail, html .skin-minerva .mw-notification-visible .mw-notification-content, /* Extensions */ html .cdx-menu-item__thumbnail, /* T311835 */ html .cx-slitem__image, html .mw-mmv-overlay, html .mw-mmv-pre-image, html .media-viewer .image img, html .media-viewer .mw-file-description img, html .mw-kartographer-map, html .mw-kartographer-mapDialog-map, html .list-thumb, html .ext-related-articles-card-list .ext-related-articles-card-thumb { filter: invert( 1 ) hue-rotate( 180deg ); } /* Reset overrides, needed where double application above isn't working. */ /* Vector modern */ html .skin-vector .mw-logo-wordmark, html .skin-vector .mw-logo-tagline, html .skin-timeless .mw-wiki-title > img, html .wvui-icon svg { filter: none; } /* Backgrounds */ html table, html table.ambox-content, html table.toccolours, html .mw-notification, html .mwe-popups, html .infobox, html .toc, html .thumbinner, html figure[typeof~='mw:File/Thumb'], html figure[typeof~='mw:File/Frame'], html figure[typeof~='mw:File/Thumb'] > figcaption, html figure[typeof~='mw:File/Frame'] > figcaption, html .wikitable, html .cbnnr-main, html .cx-callout, html .overlay.media-viewer, html #simpleSearch, html #simpleSearch #searchInput, html #siteNotice #centralNotice .cnotice { background-color: #fff; } /* Borders */ html body, html h1, html h2, html h3, html h4, html h5, html h6, html table.ambox-content, html table.toccolours, html .mw-notification, html .infobox, html .toc, html .thumbinner, html figure[typeof~='mw:File/Thumb'], html figure[typeof~='mw:File/Frame'], html figure[typeof~='mw:File/Thumb'] > figcaption, html figure[typeof~='mw:File/Frame'] > figcaption, html #mw-head, html #mw-panel, /* Vector 2022 uses a transparent border for margin collapsing (T312822) so don't apply this rule there */ .skin-vector-legacy #content.mw-body, html #simpleSearch, html #simpleSearch #searchInput, html #siteNotice #centralNotice .cnotice { border-color: #cdcbc8; } /* Links */ /* Links: normal */ html a, html .vector-menu-tabs li a, /* Backwards compatible VectorTabs, deprecated in MW v1.35. */ html .vectorTabs li a, html .toctogglelabel, html .mw-parser-output a.external, html .mw-parser-output a.extiw, html .mw-parser-output a.extiw:active, html #mw-panel .portal .body li a { /* color: #69f; Proposal below for level AA conformance, see also https://phabricator.wikimedia.org/T233266 `#36c` is transformed by :root `filter` to be closer to chosen `#69f`. */ color: #36c; } /* Links: visited */ html a:visited, html .mw-parser-output a.extiw:visited, html #mw-panel .portal .body li a:visited { /* color: #709bbd; Proposal below uses to-be-standardized color from https://phabricator.wikimedia.org/T213778 */ color: #6b4ba1; } /* Links: red */ html a.new, html .vector-menu-tabs li.new a, html .vectorTabs li.new a { color: #ff6e6e; } /* ::: Special Element Treatments ::: */ /* Image thumbnails */ html .thumbimage, html figure[typeof~='mw:File/Thumb'] > *:first-child > *:first-child:not( .mw-broken-media ), html figure[typeof~='mw:File/Frame'] > *:first-child > *:first-child:not( .mw-broken-media ) { border: 0; } /* Content image (thumbnail) SVGs */ /* `*not( .mbox-image )` exception doesn't work for unclear reasons */ html .image img[ src*='svg' ], html .mw-file-description img[ src*='svg' ], html img[ src*='Wiktionary-logo'] { background-color: #fff; border-radius: 1px; } /* Dealing with false positives from selector above */ html .mw-echo-ui-notificationItemWidget-icon img[ src*='svg' ], html .mbox-image .image img[ src*='svg' ], html .mbox-image .mw-file-description img[ src*='svg' ], /* Emoji generated by [[Template:Emoji]] */ html .emoji .image img, html .emoji .mw-file-description img, /* Vote symbols on Talk pages */ html .image img[ alt^="Symbol" ], html .mw-file-description img[ alt^="Symbol" ] { background-color: transparent; } /* Page previews */ html .mwe-popups { box-shadow: 0 30px 90px -20px rgba( 0, 0, 0, 0.3 ), 0 0 1px #000; } html .mwe-popups.flipped-y:after, html .mwe-popups.flipped-x-y:after { border-top: 11px solid #ddd; } html .mwe-popups.mwe-popups-no-image-pointer:after { border-bottom: 11px solid #ddd; } /* Contributions menu */ html .cx-callout-1:after { border-bottom-color: #ddd; } /* Mobile Wikipedia logo mobile header */ html .branding-box img { filter: brightness( 0 ); } } @-moz-document url-prefix() { body { background: #000; } } @-moz-document url-prefix() { @supports (overflow-clip-margin: 1px) { body { background: #fff; } } } /* FONT */ @import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap'); body { font-family: 'Roboto', sans-serif; font-size: 17px; } #content h1, #content h2 { font-family: 'Roboto', sans-serif; } /* INFOBOX */ .infobox { background: #eee; border: 2px solid #aaa; float: right; margin: 0 0 1em 1em; /*padding: 1em;*/ width: 400px; } .infobox-title { background: #aaa; border: solid #aaa; border-width: 1px 0px 0px 0px; font-size: 1.5em; font-weight: bold; text-align: center; padding: 0.5em; } .infobox-image { text-align: center; margin: 1em 1em 1em 1em; } .infobox table { border-spacing: 0; border-collapse: collapse; } .infobox th { border: solid #aaa; border-width: 1px 0px 0px 0px; padding: 4px 6px; text-align: left; vertical-align: top; width: 120px; } .infobox td { border: solid #aaa; border-width: 1px 0px 0px 0px; padding: 4px 6px; vertical-align: top; width: 280px; } @-webkit-keyframes rainbow { 0% {border-color: hsl(0, 100%, 50%);} 100% {border-color: hsl(255, 100%, 50%);} } /* CUSTOM HEADER */ .customheader { background: #aaa; border: 1px solid transparent; border-radius: .3em; font-size: 130%; font-weight: bold; margin: 5px 0 10px; overflow: auto; padding: .3em .4em .2em; text-align: center; } /* CUSTOM HEADER - THEMES */ .customheader-theme-eeiten { background: #e8d985; border: 1px solid transparent; border-radius: .3em; font-size: 130%; font-weight: bold; margin: 5px 0 10px; overflow: auto; padding: .3em .4em .2em; text-align: center; } .customheader-theme-leiten { background: #7e8ccf; border: 1px solid transparent; border-radius: .3em; font-size: 130%; font-weight: bold; margin: 5px 0 10px; overflow: auto; padding: .3em .4em .2em; text-align: center; } .customheader-theme-seiten { background: #d37d7d; border: 1px solid transparent; border-radius: .3em; font-size: 130%; font-weight: bold; margin: 5px 0 10px; overflow: auto; padding: .3em .4em .2em; text-align: center; } .customheader-theme-new_moon { background: #7259b2; border: 1px solid transparent; border-radius: .3em; font-size: 130%; font-weight: bold; margin: 5px 0 10px; overflow: auto; padding: .3em .4em .2em; text-align: center; } .customheader-theme-red_rose { background: #ba4768; border: 1px solid transparent; border-radius: .3em; font-size: 130%; font-weight: bold; margin: 5px 0 10px; overflow: auto; padding: .3em .4em .2em; text-align: center; } .customheader-theme-corpus { background: #7F797E; border: 1px solid transparent; border-radius: .3em; font-size: 130%; font-weight: bold; margin: 5px 0 10px; overflow: auto; padding: .3em .4em .2em; text-align: center; } .customheader-theme-phantasma { background: #844267; border: 1px solid transparent; border-radius: .3em; font-size: 130%; font-weight: bold; margin: 5px 0 10px; overflow: auto; padding: .3em .4em .2em; text-align: center; } .customheader-theme-kryma { background: #004766; border: 1px solid transparent; border-radius: .3em; font-size: 130%; font-weight: bold; margin: 5px 0 10px; overflow: auto; padding: .3em .4em .2em; text-align: center; } .customheader-theme-mediala { background: #b49968; border: 1px solid transparent; border-radius: .3em; font-size: 130%; font-weight: bold; margin: 5px 0 10px; overflow: auto; padding: .3em .4em .2em; text-align: center; } .customheader-theme-ultimate { background: linear-gradient(45deg, #FFBAC1, #FFD7D3, #FFF9E8, #E5FFE6, #D8F9FF, #C6CCFF, #E0B7FF, #FFBAC1) hsl(0, 100%, 50%); -webkit-animation: rainbow 5s infinite alternate; border: 4px solid transparent; border-radius: .3em; font-size: 130%; font-weight: bold; margin: 5px 0 10px; overflow: auto; padding: .3em .4em .2em; text-align: center; } /* CHARACTER FRAME */ .charframe { background: #eee; border: 2px solid #aaa; float: left; padding: 0; width: 135px; } /* CHARACTER FRAME - THEMES */ .charframe-theme-eeiten { background: #fff6ca; border: 2px solid #e8d985; float: left; padding: 0; width: 135px; } .charframe-theme-leiten { background: #cad3ff; border: 2px solid #7e8ccf; float: left; padding: 0; width: 135px; } .charframe-theme-seiten { background: #ffd6ca; border: 2px solid #d37d7d; float: left; padding: 0; width: 135px; } .charframe-theme-new_moon { background: #9d8bb8; border: 2px solid #7259b2; float: left; padding: 0; width: 135px; } .charframe-theme-red_rose { background: #d298aa; border: 2px solid #ba4768; float: left; padding: 0; width: 135px; } .charframe-theme-corpus { background: #8d8d8d; border: 2px solid #7F797E; float: left; padding: 0; width: 135px; } .charframe-theme-phantasma { background: #ad8bb8; border: 2px solid #844267; float: left; padding: 0; width: 135px; } .charframe-theme-kryma { background: #8b9ab8; border: 2px solid #004766; float: left; padding: 0; width: 135px; } .charframe-theme-mediala { background: #e2d3b8; border: 2px solid #b49968; float: left; padding: 0; width: 135px; } .charframe-theme-ultimate { background: linear-gradient(45deg, #FFBAC1, #FFD7D3, #FFF9E8, #E5FFE6, #D8F9FF, #C6CCFF, #E0B7FF, #FFBAC1); border: 2px solid hsl(0, 100%, 50%); -webkit-animation: rainbow 5s infinite alternate; float: left; padding: 0; width: 135px; } /* CHARACTER FRAME - ELEMENTS*/ .charframe-gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; } .charframe-image { text-align: left; } .charframe-title { font-size: 14px; font-weight: bold; text-align: center; } .charframe-subtitle { font-size: 12px; font-weight: bold; text-align: center; }