MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 95: | Line 95: | ||
} | } | ||
.client-darkmode .vector-search-box-input, .client-darkmode #searchInput, .client-darkmode th, .client-darkmode .editOptions, .client-darkmode .oo-ui-textInputWidget .oo-ui-inputWidget-input, .client-darkmode textarea.mw-editfont-monospace, .client-darkmode pre, .client-darkmode .mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend, .client-darkmode .mw-rcfilters-ui-filterTagMultiselectWidget.oo-ui-widget-enabled .oo-ui-tagMultiselectWidget-handle, .client-darkmode .mw-search-profile-tabs, .client-darkmode .mw-code, .client-darkmode .tocnumber, .client-darkmode .suggestions- | .client-darkmode .vector-search-box-input, .client-darkmode #searchInput, .client-darkmode th, .client-darkmode .editOptions, .client-darkmode .oo-ui-textInputWidget .oo-ui-inputWidget-input, .client-darkmode textarea.mw-editfont-monospace, .client-darkmode pre, .client-darkmode .mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend, .client-darkmode .mw-rcfilters-ui-filterTagMultiselectWidget.oo-ui-widget-enabled .oo-ui-tagMultiselectWidget-handle, .client-darkmode .mw-search-profile-tabs, .client-darkmode .mw-code, .client-darkmode .tocnumber, .client-darkmode .suggestions-result, .client-darkmode .suggestions-special .special-query { | ||
background-color: var(--light-bg) !important; | background-color: var(--light-bg) !important; | ||
color: var(--text-color) !important; | color: var(--text-color) !important; |
Revision as of 02:13, 3 April 2024
/* CSS placed here will be applied to all skins */ /* Hides the rollback option. Not needed when we don't have large vandalism issues. */ .mw-rollback-link { display: none; } /* Implements section-collapse and stop-section-collapse */ .section-collapse { border-color: #000000; border-style: solid; border-width: 2px 2px 0 0; content: ""; cursor: pointer; display: inline-block; height: 7px; margin-right: 5px; position: relative; right: 0; top: 5px; transform: rotate(-45deg); vertical-align: middle; width: 7px; } .section-collapsed { display: none; } .collapsed-icon { margin-top: 1px; transform: rotate(135deg); } .mw-collapsible-toggle { padding-left: 5px; } /* Hide the page header on the Main_Page */ body.page-Main_Page h1 { display: none; } /* Make TabberNeue not have arrows on the list and instead wrap it */ .tabber__tabs { margin: 0 auto; flex-wrap: wrap; } /* Hide default tab indicator */ .tabber__indicator { display: none; } /* Change style of selected tab */ .tabber__tab[aria-selected='true'] { background-color: #2859a8; color: white !important; } /* Center the buttons better */ .tabber__tab { margin: 0 auto !important; } /* Change the size of the button text, note that this also proportionally changes the button padding */ /*.tabber__tab { font-size: calc(1em * 0.7); }*/ /* DARKMODE STYLING STARTS HERE */ /* Color variables, use with var() */ :root { --text-color: #cbd9f4; --link-color: #8cabe6; --regular-bg: #0B0B3B; --light-bg: #181857; --newpage-color: #aa0000; --button-bg: #343d56; --border-button: #3f5073; --code-bg: #777777; --code-text: #f2f2f2; --code-border: #7e8592; --ooui-input: #384766; } /* Cancel inversion to use better styling */ :root, img { filter: unset !important; } .client-darkmode, .client-darkmode body, .client-darkmode html, .client-darkmode .mw-body, .client-darkmode #mw-navigation, .client-darkmode #mw-page-base, .client-darkmode #mw-head-base, .client-darkmode .vector-legacy-sidebar, .client-darkmode h1, .client-darkmode h2, .client-darkmode h3, .client-darkmode h4, .client-darkmode h5, .client-darkmode h6, .client-darkmode .mw-footer, .client-darkmode table, .client-darkmode figure[typeof~='mw:File/Thumb'], .client-darkmode .mw-content-ltr figure[typeof~='mw:File/Thumb'] > figcaption, .client-darkmode .mw-content-ltr figure[typeof~='mw:File/Frame'] > figcaption, .client-darkmode figure[typeof~='mw:File/Frame'], .client-darkmode .vector-menu-heading-label, .client-darkmode .mw-footer li, .client-darkmode .mw-wiki-logo { background-color: var(--regular-bg) !important; color: var(--text-color) !important; } .client-darkmode a, .client-darkmode a:visited { color: var(--link-color) !important; } .client-darkmode .catlinks, .client-darkmode .toc { background-color: var(--light-bg) !important; } .client-darkmode .vector-search-box-input, .client-darkmode #searchInput, .client-darkmode th, .client-darkmode .editOptions, .client-darkmode .oo-ui-textInputWidget .oo-ui-inputWidget-input, .client-darkmode textarea.mw-editfont-monospace, .client-darkmode pre, .client-darkmode .mw-rcfilters-ui-changesListWrapperWidget .mw-changeslist-legend, .client-darkmode .mw-rcfilters-ui-filterTagMultiselectWidget.oo-ui-widget-enabled .oo-ui-tagMultiselectWidget-handle, .client-darkmode .mw-search-profile-tabs, .client-darkmode .mw-code, .client-darkmode .tocnumber, .client-darkmode .suggestions-result, .client-darkmode .suggestions-special .special-query { background-color: var(--light-bg) !important; color: var(--text-color) !important; } .client-darkmode .vector-menu-checkbox, .client-darkmode .vector-menu-content, .client-darkmode .vector-menu-tabs-legacy .selected { background-color: var(--regular-bg) !important; } .client-darkmode .vector-menu-tabs-legacy .selected a:visited { color: var(--text-color) !important; } .client-darkmode .searchButton, .client-darkmode .vector-menu-dropdown .vector-menu-heading::after, .client-darkmode .wikiEditor-ui-toolbar, .client-darkmode .diff-context, .client-darkmode .oo-ui-textInputWidget-type-search .oo-ui-iconElement-icon, .client-darkmode .oo-ui-textInputWidget-type-search .oo-ui-indicatorElement-indicator, .client-darkmode .mw-indicator, .client-darkmode .ext-WikiEditor-ResizingDragBar { filter: invert( 1 ) hue-rotate( 180deg ) } .client-darkmode .vector-menu-tabs-legacy li, .client-darkmode #right-navigation.vector-menu-dropdown, .client-darkmode #mw-page-base { background: unset; background-image: unset; } .client-darkmode li.new a, .client-darkmode a.new, .client-darkmode .oo-ui-buttonElement-frameless.oo-ui-widget-enabled.oo-ui-flaggedElement-destructive > .oo-ui-buttonElement-button { color: var(--newpage-color) !important; } .client-darkmode #wpPreviewWidget > input, .client-darkmode #wpDiffWidget > input { background-color: var(--button-bg) !important; color: var(--text-color) !important; border-color: var(--border-button); } .client-darkmode code { border-color: var(--code-border); color: var(--code-text); background-color: var(--code-bg); } .client-darkmode .oo-ui-checkboxInputWidget [type='checkbox'] + span { background-color: var(--ooui-input); }