User:Admin/vector.css: Difference between revisions

From RuneSaga Wiki
Jump to navigation Jump to search
(Created page with "→‎<pre>: :root { --ul-list-style-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='13'%3E%3Ccircle cx='2.5' cy='9' r='2.5' fill='%23000'/%3E%3C/svg%3E"); } html { -webkit-text-size-adjust: 100%; } body { background: var(--body-background-image) var(--body-background-color) top left / 1500px 375px no-repeat; font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', s...")
 
No edit summary
Line 1: Line 1:
/* <pre> */
/* ------------------------------------------------------------------------------
:root {
  This is the root LESS file that is parsed to produce [[MediaWiki:Vector-darkmode.css]].
    --ul-list-style-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='13'%3E%3Ccircle cx='2.5' cy='9' r='2.5' fill='%23000'/%3E%3C/svg%3E");
}
 
html {
    -webkit-text-size-adjust: 100%;
}
 
body {
    background: var(--body-background-image) var(--body-background-color) top left / 1500px 375px no-repeat;
    font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
}
 
.vector-body {
    font-size: 0.9em;
}
 
#firstHeading {
    font-weight: bold;
}
 
pre,
code,
.mw-code {
    color: inherit;
    background-color: var(--mw-code-background-color);
    border: 1px solid var(--body-border);
}
 
dl {
    margin: 0;
}
 
ul {
    list-style-image: var(--ul-list-style-image);
}
 
hr {
    background: none;
    border-color: var(--sidebar);
    border-style: solid;
    border-width: 1px 0 0 0;
    height: initial;
}
 
fieldset {
    border-color: var(--sidebar);
}
 
.vector-body blockquote {
    border-color: var(--body-mid);
}
 
:root {
    --personal-links-bg: var(--body-main);
    --arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M11.05 3.996l-.965-1.053-4.035 3.86-3.947-3.86L1.05 3.996l5 5 5-5' fill='%23444'/%3E%3C/svg%3E");
}
 
.vector-menu-dropdown .vector-menu-heading {
    background-color: var(--vector-tab-background);
    padding: 1em 0.75em 0.6923em;
    margin: 0;
}
 
.vector-menu-dropdown .vector-menu-heading,
.vector-menu-dropdown .vector-menu-heading:hover,
.vector-menu-dropdown .vector-menu-heading:focus {
    color: var(--background-text-color);
}
 
.vector-menu-dropdown .vector-menu-heading:after {
    background-image: var(--arrow-down);
    opacity: 1;
}
 
.vector-menu-dropdown .vector-menu-content {
    border-color: transparent;
    background-color: var(--body-light);
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.1);
    left: 0;
}
 
.vector-menu-dropdown .mw-list-item a {
    color: var(--link-color);
}
 
.vector-menu-dropdown .mw-list-item.selected a,
.vector-menu-dropdown .mw-list-item.selected a:visited {
    color: var(--text-color);
}
 
#p-personal {
    background: var(--personal-links-bg);
    top: 0;
    right: 0;
    border-radius: 0 0 0 4px;
    height: 1.875em;
}
 
#p-personal ul {
    padding: 0 1em 0 0.4375em;
}
 
.vector-search-box-inner {
    background: var(--search-box);
    height: 2.5em;
    margin-top: 0;
    box-shadow: inset 0 -7px 7px -7px rgba(0, 0, 0, 0.15);
}
 
.vector-search-box-input {
    color: var(--text-color);
    height: 100%;
    border: none;
    background: none;
    padding-left: 0.75em;
}
 
.vector-search-box-input::placeholder {
    color: var(--text-color);
    opacity: 0.67;
}
 
.vector-search-box-inner:hover .vector-search-box-input,
.vector-search-box-input:focus,
.vector-search-box-inner:hover .vector-search-box-input:focus {
    border: none;
    box-shadow: none;
}
 
:root {
    --searchbutton-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='13'%3E%3Cg fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M11.29 11.71l-4-4'/%3E%3Ccircle cx='5' cy='5' r='4'/%3E%3C/g%3E%3C/svg%3E");
}
 
.searchButton[name='go'] {
    background: no-repeat center var(--searchbutton-icon);
}
 
.vector-search-box {
    margin: 0;
}
 
.vector-search-box form {
    margin-top: 0;
}
 
.suggestions-results {
    background-color: var(--body-light);
    border-color: var(--body-border);
}
 
.suggestions-result {
    color: var(--text-color);
}
 
.suggestions a.mw-searchSuggest-link,
.suggestions a.mw-searchSuggest-link:hover,
.suggestions a.mw-searchSuggest-link:active,
.suggestions a.mw-searchSuggest-link:focus {
    color: var(--text-color);
}
 
.suggestions-special {
    background-color: var(--body-light);
    border-color: var(--body-border);
}
 
.suggestions-special .special-label {
    color: var(--byline-color);
}
 
.suggestions-special .special-query {
    color: var(--text-color);
}
 
.suggestions-result-current {
    background-color: var(--body-mid);
    color: var(--text-color);
}
 
.suggestions-result-current .special-label,
.suggestions-result-current .special-query {
    color: var(--text-color);
}
 
#mw-panel {
    padding-top: 2.5em;
}
 
.vector-menu-portal .vector-menu-heading {
    color: var(--background-text-color);
    font-weight: bold;
    background: none;
}
 
.vector-menu-portal .vector-menu-content li a,
.vector-menu-portal .vector-menu-content li a:visited {
    color: var(--background-link-color);
}
 
#p-logo {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
    margin: -1.5em 0 0;
}
 
#n-Discord a {
    color: #fff !important;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid #4c57d0;
    background-color: #5865f2;
    display: block;
    position: relative;
    padding: 4px 4px 5px calc(17px + 6.5px * 2);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    transition: 0.2s;
}
 
#n-Discord a::before {
    content: 'Chat on ';
    font-weight: normal;
    opacity: 0.85;
}
 
#n-Discord a::after {
    content: '';
    background: url('filepath://Discord_logo_icon.svg') no-repeat;
    background-size: 17px 13px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
    position: absolute;
    top: 5px;
    left: 7px;
    width: 17px;
    height: 13px;
}
 
#n-Discord a:hover {
    text-decoration: none;
    background-color: #525ee0;
}
 
.wgl-theme-dark #n-Discord a {
    background-color: #525ee0;
}
 
.wgl-theme-dark #n-Discord a:hover {
    background-color: #4c57d0;
}
 
:root {
    --vector-tab-background: var(--body-background-color);
    --vector-tab-background--hover: var(--body-mid);
    --vector-tab-link-color: var(--background-link-color);
    --watch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath fill='transparent' stroke='%2352351e' stroke-width='.8' d='m8.1 1.1 2.2 4.5 4.8.7-3.5 3.4.9 4.8L8 12.2l-4.3 2.3.8-4.8L1 6.3l4.8-.7z'/%3E%3C/svg%3E");
    --unwatch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath fill='%2352351e' stroke='%2352351e' stroke-width='.8' d='m8.1 1.1 2.2 4.5 4.8.7-3.5 3.4.9 4.8L8 12.2l-4.3 2.3.8-4.8L1 6.3l4.8-.7z'/%3E%3C/svg%3E");
}
 
.vector-menu-tabs-legacy {
    padding: 0;
}
 
.vector-menu-tabs-legacy .new a,
.vector-menu-tabs-legacy .new a:visited {
    color: var(--redlink-color);
}
 
.vector-menu-tabs-legacy .selected {
    background: var(--body-main);
}
 
.vector-menu-tabs-legacy .selected a,
.vector-menu-tabs-legacy .selected a:visited {
    color: var(--text-color);
}
 
.vector-menu-tabs-legacy li a {
    color: var(--vector-tab-link-color);
    padding: 0 0.75em;
    padding-top: 1em;
}
 
.vector-menu-tabs-legacy li a:visited {
    color: var(--vector-tab-link-color);
}
 
.vector-menu-tabs-legacy ul li {
    background: var(--vector-tab-background);
}
 
.vector-menu-tabs-legacy ul a:hover {
    text-decoration: none;
}
 
#ca-view {
    display: none !important;
}
 
.vector-menu-tabs ul li:not(.selected):hover,
#p-cactions:hover #p-cactions-label {
    background: var(--vector-tab-background--hover);
}
 
.vector-menu-tabs ul li:not(.selected),
#mw-head .vector-menu-dropdown .vector-menu-heading {
    box-shadow: inset 0 -7px 7px -7px rgba(0, 0, 0, 0.15);
}
 
.vector-menu-tabs,
.vector-menu-tabs a,
#mw-head .vector-menu-dropdown .vector-menu-heading {
    background-image: none;
}
 
.ve-activated .vector-menu-tabs .selected {
    box-shadow: none;
}
 
.vector-menu-tabs #ca-watch.icon a:before,
.vector-menu-tabs #ca-watch.icon a:hover:before,
.vector-menu-tabs #ca-watch.icon a:focus:before {
    background-image: var(--watch-icon);
}
 
.vector-menu-tabs #ca-unwatch.icon a:before,
.vector-menu-tabs #ca-unwatch.icon a:hover:before,
.vector-menu-tabs #ca-unwatch.icon a:focus:before {
    background-image: var(--unwatch-icon);
}
 
#p-Recent_changes {
    display: block;
}
 
#p-Recent_changes .vector-menu-content {
    display: none;
}
 
#p-Recent_changes .vector-menu-heading:after {
    content: '';
    position: relative;
    left: 0.5em;
    display: inline-block;
    background-color: #3c7b07;
    width: 6px;
    height: 6px;
    border-radius: 100%;
}
 
#p-Recent_changes .rc-sidebar-item {
    position: relative;
    font-size: 0.75em;
    margin: 0.5em 0.25em 0 0.66em;
}
 
#p-Recent_changes .rc-sidebar-page {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: max-content;
}
 
#p-Recent_changes .rc-sidebar-page,
#p-Recent_changes .rc-sidebar-page:active,
#p-Recent_changes .rc-sidebar-page:visited {
    color: var(--background-link-color);
}
 
#p-Recent_changes .rc-sidebar-user {
    color: var(--byline-color);
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
 
#p-Recent_changes .rc-sidebar-user a {
    color: inherit;
}
 
#p-Recent_changes .rc-sidebar-more {
    text-align: left;
}
 
#p-Recent_changes .rc-sidebar-more .rc-sidebar-page {
    display: inline-block;
}
 
div.thumbinner {
    border: none;
    background-color: var(--thumb-bg);
    padding: 0;
}
 
.thumbimage {
    background-color: transparent;
    border-color: transparent;
    border-bottom: none;
}
 
.thumbcaption {
    background: var(--thumb-caption-bg);
    padding: 4px 6px;
}
 
:root {
    --toc-bg: var(--body-light);
    --toc-title-bg: var(--body-dark);
    --toc-border-color: var(--body-border);
    --toc-list-border-color: var(--body-border);
}
 
.toc {
    font-size: 0.9em;
    background: var(--toc-bg);
    margin-top: 1em;
    padding: 0;
    border-color: var(--toc-border-color);
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
    clear: left;
}
 
.toc .toctitle {
    background: var(--toc-title-bg);
    padding: 0.25em 1em;
}
 
.toc .toctitle h2 {
    font-family: inherit;
}
 
.toc > ul {
    line-height: 1.8em;
    padding: 0.75em 1.75em;
    margin: 0;
}
 
.toc ul ul {
    border-left: 1px dotted var(--toc-list-border-color);
    padding-left: 0.5em;
}
 
.tocnumber {
    display: none;
}
 
.toctogglespan {
    padding-left: 0.2em;
    font-size: 0.9em;
}
 
.toctogglelabel {
    color: var(--link-color);
}
 
.toclimit-2 #toc .toclevel-2,
.toclimit-3 #toc .toclevel-3,
.toclimit-4 #toc .toclevel-4,
.toclimit-5 #toc .toclevel-5,
.toclimit-6 #toc .toclevel-6,
.toclimit-7 #toc .toclevel-7 {
    display: none;
}
 
:root {
    --external-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23936039' d='M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16L6 1Z M2 3h2v1H2v6h6V8h1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
}
 
.mw-parser-output a.external {
    background-image: var(--external-icon);
    background-size: 0.833em;
}
 
.mw-editsection {
    font-family: 'IBM Plex Sans', 'Helvetica Neue', 'Arial', sans-serif;
}
 
.client-js .mw-content-ltr .mw-editsection-bracket:first-of-type,
.client-js .mw-content-ltr .mw-editsection-bracket:not(:first-of-type),
.mw-editsection-divider {
    color: var(--text-color);
}
 
#contentSub,
#contentSub2 {
    color: var(--byline-color);
    margin: 0;
}
 
#contentSub:not(:empty),
#contentSub2:not(:empty) {
    margin: 0 0 1.4em 0;
}
 
.mw-collapsible.mw-collapsed {
    min-width: 250px;
}
 
.mw-collapsible:not( .mw-made-collapsible) th::before,
.mw-collapsible .mw-collapsible-toggle {
    font-weight: normal;
    margin-left: 0.2em;
}
 
.wikiEditor-ui .wikiEditor-ui-view,
.wikiEditor-ui .wikiEditor-ui-top {
    border-color: var(--sourceeditor-border);
}
 
.wikiEditor-ui-toolbar {
    background-color: var(--sourceeditor-background);
}
 
.wikiEditor-ui-toolbar .tabs span.tab > a,
.wikiEditor-ui-toolbar .tabs span.tab > a:visited {
    color: var(--link-color);
}
 
.wikiEditor-ui-toolbar .tabs span.tab a.current,
.wikiEditor-ui-toolbar .tabs span.tab a.current:visited {
    color: var(--text-colour);
}
 
.wikiEditor-ui-toolbar .group {
    border-color: var(--sourceeditor-border);
}
 
.wikiEditor-ui-toolbar .group .tool-select {
    background-color: var(--sourceeditor-background);
    border-color: var(--sourceeditor-border);
}
 
.wikiEditor-ui-toolbar .group .tool-select .options {
    border-color: var(--sourceeditor-border);
    background-color: var(--body-main);
}
 
.wikiEditor-ui-toolbar .group .tool-select .options .option {
    color: var(--link-color);
}
 
.wikiEditor-ui-toolbar .group .tool-select .menu .options .option:hover {
    background-color: var(--ooui-normal--hover);
}
 
.wikiEditor-ui-toolbar .group-search {
    border-left-color: var(--body-mid);
}
 
.wikiEditor-ui-toolbar .page-table td {
    border-color: var(--body-mid);
    color: var(--text-color);
}
 
.wikiEditor-ui-toolbar .page-table th {
    color: var(--text-color);
}
 
.wikiEditor-ui-toolbar .sections .section {
    border-color: var(--body-mid);
}
 
.wikiEditor-ui-toolbar .sections .toolbar .group > .label {
    color: var(--text-color);
}
 
.wikiEditor-ui-toolbar .sections .toolbar .tool > .label {
    color: var(--text-color);
}
 
.wikiEditor-ui-toolbar .booklet > .index > :hover {
    background-color: var(--body-mid);
    color: var(--text-color);
}
 
.wikiEditor-ui-toolbar .booklet .index > .current {
    background-color: var(--body-mid);
    color: var(--link-color);
}
 
.wikiEditor-ui-toolbar .page-characters div span {
    border-color: var(--body-mid);
    color: var(--text-color);
}
 
.wikiEditor-ui-toolbar .page-characters div span:hover {
    border-color: var(--body-dark);
    background-color: transparent;
}
 
.wikiEditor-ui-toolbar .tabs span.tab a:before,
.wikiEditor-ui-toolbar .group .tool-select .label:after {
    background: var(--text-color);
    -webkit-mask: var(--arrow-down) center no-repeat;
    mask: var(--arrow-down) center no-repeat;
}
 
.ace-tm {
    background-color: var(--sourceeditor-input-background);
    color: var(--text-color);
}
 
.ace-tm .ace_gutter {
    background: var(--body-mid);
    color: var(--text-color);
}
 
.ace-tm .ace_gutter-cell {
    color: var(--text-color);
}
 
.ace-tm .ace_gutter-active-line {
    background-color: var(--body-light);
}
 
.ace_search {
    background-color: var(--body-light);
    color: var(--text-color);
    border-color: var(--body-mid);
}
 
.ace_search_field {
    background-color: var(--ooui-input);
    color: var(--ooui-text);
    border-color: var(--ooui-input-border);
}
 
.ace_searchbtn {
    border-color: var(--ooui-normal-border);
    background-color: var(--ooui-normal);
    color: var(--ooui-text);
}
 
.ace_searchbtn:last-child {
    border-color: var(--ooui-normal-border);
}
 
.ace_searchbtn:hover {
    background-color: var(--ooui-normal--hover);
}
 
.ace_searchbtn.prev:after,
.ace_searchbtn.next:after {
    border-color: var(--ooui-text);
}
 
.ace_button {
    color: var(--text-color);
}
 
.ace_button:hover {
    background-color: rgba(0, 23, 70, 0.086);
}
 
.ace_button:active {
    background-color: rgba(0, 23, 70, 0.06);
}
 
.ace_button.checked {
    border-color: var(--ooui-accent);
}
 
.CodeMirror {
    background: var(--sourceeditor-input-background);
}
 
.CodeMirror pre {
    color: var(--text-color);
}
 
.codeEditor-status {
    border-color: var(--sourceeditor-border);
    background-color: var(--sourceeditor-background);
}
 
.codeEditor-status-message {
    border-color: var(--sourceeditor-border);
}
 
.CodeMirror-gutters {
    background-color: var(--codemirror-gutter-background);
    border-color: var(--sourceeditor-border);
}
 
.CodeMirror-linenumber {
    color: var(--text-color);
}
 
.ve-init-mw-desktopArticleTarget .CodeMirror-linenumber {
    color: var(--byline-color);
}
 
.mw-editform #wpTextbox1 {
    color: var(--text-color);
    background: var(--sourceeditor-input-background);
    border-color: var(--sourceeditor-border);
}
 
input[name="model"][value="Scribunto"] ~ .wikiEditor-ui #wpTextbox1,
input[name="model"][value="css"] ~ .wikiEditor-ui #wpTextbox1,
input[name="model"][value="less"] ~ .wikiEditor-ui #wpTextbox1,
input[name="model"][value="javascript"] ~ .wikiEditor-ui #wpTextbox1,
input[name="model"][value="json"] ~ .wikiEditor-ui #wpTextbox1 {
    height: 600px;
}
 
.tdg-templateDataDialog-listParamsPanel textarea.oo-ui-textInputWidget-autosized {
    resize: vertical;
}
 
#wpAceFilterEditor {
    resize: horizontal;
}
 
.warn-userupload,
.ns-2 .upload-own-work {
    display: none;
}
 
.ns-2 .warn-userupload {
    display: inline;
}
 
textarea[name="wfUploadDescription"] {
    height: 3em;
}
 
#editform {
    margin-top: 1.25em;
}
 
#mw-scribunto-input,
#mw-scribunto-output {
    padding: 3px;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5em;
}
 
#mw-scribunto-input {
    background-color: var(--ooui-input);
    border-color: var(--ooui-input-border);
}
 
:root {
    --scribuntoconsole-input: #0b5884;
    --scibuntoconsole-print: #a48900;
    --scribuntoconsole-error: #9f261e;
    --scribuntoconsole-message: #3c780a;
    --scribuntoconsole-tabcomplete: #4f348b;
    --scribuntoconsole-clear: #9f261e;
}
 
.mw-scribunto-console-fieldset {
    color: inherit;
    background-color: var(--ooui-interface);
    border-color: var(--ooui-interface-border);
}
 
.mw-scribunto-normalOutput,
.mw-scribunto-print,
.mw-scribunto-error,
.mw-scribunto-propList,
.mw-scribunto-message,
.mw-scribunto-tabcomplete {
    background: none;
}
 
.mw-scribunto-input {
    color: var(--scribuntoconsole-input);
}
 
.mw-scribunto-normalOutput {
    color: inherit;
}
 
.mw-scribunto-print {
    color: var(--scibuntoconsole-print);
}
 
.mw-scribunto-error {
    color: var(--scribuntoconsole-error);
}
 
.mw-scribunto-propList,
.mw-scribunto-message {
    color: var(--scribuntoconsole-message);
}
 
.mw-scribunto-tabcomplete {
    color: var(--scribuntoconsole-tabcomplete);
}
 
.mw-scribunto-clear {
    color: var(--scribuntoconsole-clear);
    border-bottom-color: var(--scribuntoconsole-clear);
}
 
.ui-widget-overlay {
    background: var(--ooui-window-background);
}
 
.ui-dialog,
.ui-widget-content {
    background-color: var(--body-light);
    border-color: var(--body-border);
    background-image: none;
    color: var(--text-color);
}
 
.ui-dialog .ui-dialog-titlebar.ui-widget-header,
.ui-widget-content .ui-dialog-titlebar.ui-widget-header {
    background-image: none !important;
    background-color: var(--body-dark) !important;
    border-color: var(--body-border) !important;
}
 
.ui-dialog .ui-dialog-titlebar .ui-dialog-title,
.ui-widget-content .ui-dialog-titlebar .ui-dialog-title {
    color: var(--text-color);
}
 
.ui-dialog .ui-dialog-titlebar-close,
.ui-widget-content .ui-dialog-titlebar-close {
    background-color: var(--ooui-normal);
}
 
.ui-dialog .ui-dialog-titlebar-close:hover,
.ui-widget-content .ui-dialog-titlebar-close:hover {
    background: var(--ooui-normal--hover);
    border: var(--link-color);
}
 
.ui-button,
.ui-state-default,
.ui-widget-content .ui-state-default,
.ui-widget-header .ui-state-default {
    background: var(--ooui-normal) !important;
    color: var(--ooui-text);
    border-color: var(--ooui-normal-border) !important;
}
 
.ui-button:hover,
.ui-state-default:hover,
.ui-widget-content .ui-state-default:hover,
.ui-widget-header .ui-state-default:hover {
    background: var(--ooui-normal--hover) !important;
    color: var(--ooui-text);
}
 
.infobox {
    background: var(--body-light);
    border: 1px solid var(--body-border);
    font-size: 0.85em;
    width: 300px;
    margin: 0.5em 0 1em 1em;
    border-collapse: collapse;
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
    float: right;
    table-layout: fixed;
    word-break: break-word;
}
 
.infobox .infobox-header {
    color: var(--infobox-text-color);
    font-size: 1.15em;
    line-height: 1.4em;
    background: var(--body-dark);
    padding: 0.5em 0;
}
 
.infobox .infobox-header a {
    color: inherit;
    font-size: 1.15em;
    font-weight: bold;
}
 
.infobox .infobox-subheader {
    background: var(--body-dark);
    color: var(--infobox-text-color);
    line-height: 2em;
}
 
.infobox .infobox-subheader a {
    color: inherit;
}
 
.infobox .infobox-subheader + .infobox-subheader {
    border-left: 2px solid var(--body-light);
}
 
.infobox .infobox-image {
    text-align: center;
}
 
.infobox .infobox-image.inventory-image {
    height: 32px;
}
 
.infobox .infobox-image a.image + a.image {
    margin-left: 0.1em;
}
 
.infobox .infobox-image img {
    max-width: 300px;
    height: auto;
}
 
.infobox th:not(.infobox-header):not(.infobox-subheader):not(.infobox-nested) {
    text-align: right;
    vertical-align: top;
    border-right: 2px solid var(--body-dark);
    padding: 0.2em 0.5em;
}
 
.infobox td {
    padding: 0.25em 0.5em;
    line-height: 1.6em;
}
 
.infobox td.infobox-nested {
    padding: 0.25em 0;
    line-height: 1em;
}
 
.infobox th ~ td {
    vertical-align: top;
}
 
.infobox .infobox-padding {
    height: 0.5em;
    padding: 0;
    border: 0;
}
 
.infobox .infobox-nested {
    text-align: center;
}
 
.infobox .infobox-nested + .infobox-nested {
    border-left: 2px solid var(--body-dark);
}
 
.infobox .infobox-cell-hidden {
    display: none;
}
 
.infobox .infobox-full-width-content {
    max-width: 300px;
    text-align: center;
    overflow: hidden;
    padding: 0;
}
 
.infobox .infobox-caption {
    font-weight: bold;
}
 
.infobox select {
    max-width: 300px;
}
 
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .infobox-item .infobox-image {
          image-rendering: pixelated;
          image-rendering: crisp-edges;
    }
 
}
 
.infobox.skill-info {
    float: none;
    margin: 1em 0;
}
 
.infobox-bonuses {
    clear: left;
    float: none;
    word-break: break-word;
    font-size: 100%;
    margin: 1em 0;
}
 
.infobox-bonuses .infobox-bonuses-image {
    width: 125px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid var(--body-border);
}
 
.infobox-bonuses .infobox-bonuses-image-caption {
    font-size: 0.85em;
}
 
.infobox-bonuses .infobox-subheader {
    width: 250px;
}
 
.skill-info a[href$="?action=edit"] + a[href$="?action=edit"] {
    display: none;
}
 
.poh-room {
    background-color: var(--infobox-room-poh-color);
    margin: auto;
    width: 100px;
}
 
.poh-room img {
    display: block;
}
 
.poh-room-row {
    display: flex;
}
 
.poh-room-text {
    margin: auto;
    width: 92px;
}
 
.infobox-buttons {
    text-align: center;
    max-width: 300px;
    display: none;
}
 
.infobox-switch-resources {
    display: none;
}
 
.switch-infobox .switch-infobox-triggers,
.switch-infobox .loading-button {
    clear: left;
}
 
.infobox-pure .max-hit-list a {
    display: inline-block;
    min-width: 32px;
    min-height: 32px;
    text-align: center;
}
 
.advanced-data {
    display: none;
}
 
.multi-infobox {
    float: right;
    margin: 0 0 calc(1em - 5px) calc(1em - 5px);
}
 
.multi-infobox .tabber {
    margin: 0;
}
 
.multi-infobox .tabber .tabbernav {
    text-align: center;
    margin: 0;
}
 
.multi-infobox .tabber .tabbernav a {
    padding: 0.5em 0.8em;
}
 
.multi-infobox .tabber .tabbertab {
    padding: 5px;
    display: flex;
    justify-content: center;
}
 
.multi-infobox .infobox {
    margin: 0;
}
 
:root {
    --navbox-background: var(--body-light);
    --navbox-border: var(--body-dark);
    --navbox-title-background: var(--body-dark);
    --navbox-footer-background: var(--body-dark);
    --navbox-group-title-background: var(--body-mid);
}
 
.navbox {
    font-size: 0.85em;
    background: var(--navbox-background);
    border-collapse: collapse;
    margin: 1em auto 0;
    width: 100%;
    clear: both;
    box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
}
 
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbox img {
          image-rendering: pixelated;
          image-rendering: crisp-edges;
    }
 
}
 
.navbox .navbox {
    font-size: 100%;
    margin: 0.5em auto 0;
    box-shadow: none;
}
 
.navbox-title {
    font-size: 110%;
    line-height: 1.6em;
    background: var(--navbox-title-background);
    text-align: center;
    padding: 0.25em 1em;
}
 
.navbox-title-name {
    margin: 0 4em;
}
 
.navbox-title .mw-collapsible-toggle {
    font-size: 0.9em;
    text-align: right;
}
 
.navbox-title .navbox {
    font-size: 100%;
}
 
.navbox-group:nth-child(2) {
    border-top: 1px solid var(--navbox-border);
}


.navbox-group-title {
  Previously compiled via subpages at [[Special:PrefixIndex/MediaWiki:Vector-darkmode.less/]],
    background: var(--navbox-group-title-background);
  now adjusted via CSS Variables.
    border: 1px solid var(--navbox-border);
    border-width: 0 1px 1px 0;
    text-align: left;
    padding: 0.25em 1em;
    width: 1%;
    white-space: nowrap;
}


.navbox-list {
  To update [[MediaWiki:Vector-darkmode.css]] from here, users with the appropriate
    border-bottom: 1px solid var(--navbox-border);
  permissions can click the "Update CSS" button found to the left of the edit button.
    padding: 0.25em 0.5em;
  ------------------------------------------------------------------------------ */
}


.navbox-list ul {
/* --------------------
    margin: 0;
          COLORS
}
  -------------------- */
@dark-body:          @black-pearl;
@dark-page:          @big-stone;    // page bg color
@dark-links:        @portage;      // link color
@red-links:          lighten( @flamingo, 10% );
@dark-links-escape : escape("@{dark-links}"); // For use in SVGs
@dark-text:         lighten( @portage, 15% );
@dark-text-escape:  escape("@{dark-text}"); // For use in SVGs


.navbox-list li {
@dark-wikitable-header:            @cloud-burst;
    display: inline;
@dark-wikitable-background:        @pickled-bluewood;
    white-space: nowrap;
@dark-wikitable-background-lighter: lighten(@dark-wikitable-background, 4%); // Used on hover effect
}
@dark-wikitable-background-darker: darken(@dark-wikitable-background, 20%);  
@dark-wikitable-border:            @big-stone;


.navbox-list li + li::before {
@dark-button: #617ebc;
    content: '• ';
}


.navbox-parent {
@dir: 'MediaWiki:Vector-darkmode.less';
    padding: 0;
@common: 'MediaWiki:Common.less';
}


.navbox-subgroup {
// Variables: Colours, shadows, etc.
    border-collapse: collapse;
@import '@{common}/variables.less';
    border-spacing: 0;
// Mixins
    width: 100%;
@import '@{common}/mixins.less';
}


.navbox-subgroup > tbody > tr:last-child > th,
// style browser default forms; :has() is relatively new - shouldnt pose a problem
.navbox-subgroup > tbody > tr:last-child > td {
// targetting html otherwise page scrollbar wouldnt be affected
    border-bottom: none;
html:has(body.wgl-theme-dark) {
color-scheme: dark;
}
}


.navbox-footer {
/* The following imports are nested inside body.wgl-theme-dark for good reason.
    background: var(--navbox-footer-background);
* Please do not change this. It is needed for "hot loading" darkmode when the
    text-align: center;
* user tries to switch to it. */
    padding: 0.25em 1em;
body.wgl-theme-dark {
}
// fallback as the above wont work on firefox
color-scheme: dark;


.navbox-data {
// == CSS Variables ==
     display: none;
--body-background-image: url('filepath://Old_School_RuneScape_Wiki_background_darkmode.jpg');
}
--body-background-color: @dark-body;
--body-main: @dark-page;
--body-light: @pickled-bluewood;
--body-mid: @cloud-burst;
--body-dark: @cloud-burst;
--body-border: @waikawa-grey;
--link-color: @dark-links;
--background-link-color: var(--link-color);
--redlink-color: @red-links;
--text-color: @dark-text;
--background-text-color: @dark-text;
--byline-color: desaturate( darken(@dark-text, 22%), 47% );
--subtle-color: var(--byline-color);
--search-box: var(--body-light);
// /highlight.less
--admin-blue: #0087ff;
--bearcat-green: #00ff55;
--awb-purple: #f319ff;
--sidebar: @waikawa-grey;
--button-background: @dark-button;
--button-dark: @dark-button;
--button-border: @dark-button;
--button-light: @dark-button;
// /wikitables.less
--wikitable-header-bg: @dark-wikitable-header;
--wikitable-border: @dark-wikitable-border;
--wikitable-bg: @dark-wikitable-background;
--wikitable-bg-lighter: @dark-wikitable-background-lighter;
--wikitable-color: var(--text-color);
--wikitable-alternating-bg: saturate( darken( @dark-wikitable-background, 3% ), 3% );
--table-na-background: fade( @black, 20 );
--table-na-color: var(--subtle-color);
--table-yes-background: @san-felix;
--table-yes-color: @caper;
--table-no-background: @mocaccino;
--table-no-color: @apricot-peach;
--table-maybe-background: @cinnamon;
--table-maybe-color: @golden;
--droptable-text-color: @white;
--droptable-text-color: @white;
--droptable-always-background: @venice-blue;
--droptable-common-background: @la-palma;
--droptable-uncommon-background: @olive;
--droptable-rare-background: @korma;
--droptable-veryrare-background: @old-brick;
--droptable-random-background: @cannon-pink;
// /ooui.less
--ooui-text: @dark-text;
@ooui-interface: @cloud-burst;
--ooui-interface: @ooui-interface;
--ooui-interface-border: lighten( @ooui-interface, 8% );
--ooui-window-background: rgba(25,25,25,0.6);
@ooui-input: lighten( @pickled-bluewood, 4% );
--ooui-input: @ooui-input;
@ooui-input-border: lighten( @ooui-input, 8% );
--ooui-input-border: @ooui-input-border;
--ooui-input-border--hover: lighten( @ooui-input-border, 8% );
@ooui-normal: @pickled-bluewood;
--ooui-normal: @ooui-normal;
--ooui-normal--hover: lighten( @ooui-normal, 4% );
--ooui-normal-border: lighten( @ooui-normal, 8% );
@ooui-progressive: @dark-button;
--ooui-progressive: @ooui-progressive;
--ooui-progressive--hover: lighten(@ooui-progressive, 10%);
--ooui-accent: var(--link-color);
--ooui-disabled: desaturate( lighten( @ooui-normal, 32% ), 16%);
--ooui-disabled-border: desaturate( lighten( @ooui-normal, 32% ), 16%);
--ooui-disabled-text: var(--ooui-text);
--ooui-pending-background-image: repeating-linear-gradient(-45deg, var(--search-box), var(--search-box) 20px, var(--body-main) 20px, var(--body-main) 30px);
--tile-border-color: var(--body-border);
--tile-background-color: var(--body-light);
--tile-link-button-color: var(--body-mid);
--tile-link-button-highlight-color: #2a3956;
--tile-dark-color: @white;
--tile-dark-bg: #5d6773;
--tile-dark-link-color: #ccc;
--tile-dark-byline-color: rgba(255, 255, 255, 0.7);
--tile-dark-header-color: @white;
--documentation-background: var(--body-light);
--documentation-border: var(--sidebar);
--documentation-link-color: var(--link-color);
--documentation-headers-color: var(--text-color);
--documentation-header-background: var(--body-dark);
--documentation-subheader-background: darken( @dark-wikitable-header, 2% );
--base-text-color: var(--text-color);
--base-heading-color: var(--text-color);
--base-heading-border: var(--sidebar);
--mainpage-recent-updates-description-color: var(--text-color);
// switch mid/light
--thumb-bg: var(--body-mid);
--thumb-caption-bg: var(--body-light);
--diff-context-border-color: var(--body-mid);
--diff-context-background: var(--body-mid);
--diff-addedline-background: #438ab5;
--diff-addedline-border-color: #438ab5;
--diff-addedline-color: @white;
--diff-deletedline-background: #379541;
--diff-deletedline-border-color: #379541;
--diff-deletedline-color: @white;
--errorbox-bg: @mocaccino;
--errorbox-border: @old-brick;
--warningbox-bg: var(--errorbox-bg);
--warningbox-border: var(--errorbox-border);
--successbox-bg: @san-felix;
--successbox-border: @la-palma;
.mboxvar(obsolete, #464646, #333, #ddd, #bbb);
.mboxvar(info, var(--messagebox-obsolete-background), var(--messagebox-obsolete-border),  var(--messagebox-obsolete-color), var(--messagebox-obsolete-link-color));
.mboxvar(action, #45697d, #2d5266, var(--text-color), #b8d5e5);
.mboxvar(warn, #95271b, #6b130a, #f8ebe9, #e8b8b3);
.mboxvar(safe, #1b8408, #126802, #e9f6e7, #c1e0bb);
.mboxvar(disambig, var(--messagebox-obsolete-background), var(--messagebox-obsolete-border), var(--messagebox-obsolete-color), var(--messagebox-obsolete-link-color));
--mw-code-background-color: @cloud-burst;
// common /tabber.less
--tabber-tab-bg: var(--body-light);
--tabber-tab-border-color: var(--body-border);
--tabber-active-tab-bg: var(--body-light);
--tabber-active-tab-color: var(--text-color);
--tabber-active-tab-hover-bg: var(--body-light);
--tabber-active-tab-hover-border-color: var(--body-border);
--tabber-active-tab-hover-color: var(--text-color);
--tabber-active-tab-border-hider-color: var(--body-light);
--tabber-inactive-tab-bg: var(--body-mid);
--tabber-inactive-tab-border-color: var(--body-border);
--tabber-inactive-tab-color: var(--text-color);
--tabber-inactive-tab-hover-bg: var(--body-light);
--tabber-inactive-tab-hover-border-color: var(--body-border);
--scribuntoconsole-input: @curious-blue;
--scibuntoconsole-print: @supernova;
--scribuntoconsole-error: @flamingo;
--scribuntoconsole-message: @lima;
--scribuntoconsole-tabcomplete: @medium-purple;
--scribuntoconsole-clear: @flamingo;
// common /templates.less
--blockquote-color: var(--text-color);
--coins-color: @lima;
--coins-pos-color: @curious-blue;
--coins-neg-color: @flamingo;
--questdetails-header-background: var(--body-dark);
--questdetails-header-background-alt: var(--body-dark);
--fact-text-color: @curious-blue;
--production-selected-background: @la-palma;
--production-selected-color: @white;
--wikipedia-border: var(--body-border);
--wikipedia-background: var(--body-light);
--keypress-background: var(--body-light);
--keypress-border: var(--body-border);
--keypress-color: var(--text-color);
// common /poll.less
--ajaxpoll-background: var(--body-light);
--ajaxpoll-text-color: var(--base-text-color);
--ajaxpoll-answerbar-background: var(--body-mid);
--ajaxpoll-answerbar-border: var(--body-border);
// common /specials.less
--rc-negative-color: @flamingo;
--rc-positive-color: @lima;
--filter-black-to-link: invert(63%) sepia(67%) saturate(242%) hue-rotate(182deg) brightness(93%) contrast(94%);
// common /transcripts.less
--transcript-border-color: @waikawa-grey;
--transcript-border-hover-color: lighten( @waikawa-grey, 15% );
--transcript-strikethrough-color: @white;
// vector /navbox.less
--navbox-background: var(--body-light);
--navbox-border: var(--body-main);
--navbox-title-background: var(--body-dark);
--navbox-footer-background: var(--navbox-title-background);
--navbox-group-title-background: var(--navbox-title-background);
// vector /infobox.less
--infobox-bg: var(--body-light);
--infobox-border: var(--body-border);
--infobox-header: var(--body-dark);
--infobox-subheader: var(--body-mid);
--infobox-text-color: var(--text-color);
--infobox-room-poh-color: @river-bed;
// vector /sourceeditor.less
--sourceeditor-input-background: var(--body-mid);
--sourceeditor-background: var(--body-light);
--sourceeditor-background-secondary: var(--body-mid);
--sourceeditor-border: var(--body-main);
--codemirror-gutter-background: var(--body-light);
// vector /toc.less
--toc-bg: var(--body-light);
--toc-title-bg: var(--body-dark);
--toc-border-color: var(--body-border);
--toc-list-border-color: var(--body-border);
// vector /vectortabs.less
--vector-tab-background: @cloud-burst;
--vector-tab-background--hover: lighten( @cloud-burst, 4% );
--vector-tab-link-color: var(--background-link-color);
// gadget-highlighttable.css
--lighttable-bg-hover: @la-palma;
--lighttable-bg-active: @san-felix;
--lighttable-link-color: @caper;
--personal-links-bg: rgba(7, 16, 34, 0.75);
// trailblazer region highlight
--tbz-unlocked-background: repeating-linear-gradient(-45deg, #315d30 0 20px, #13421e 20px 30px);
--tbz-unlocked-border-color: #00e417;
--tbz-locked-background-color: #8a2525;
--tbz-locked-border-color: #b32828;
--tbz-partial-unlock-background: #5a5a5a;
--tbz-partial-unlock-border-color: #13421e;
// SVG clutter
--echo-icon-moon-bg-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg height='21' viewBox='0 0 21 21' width='21' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8.85464918.37900488c-1.91149353 1.51069427-3.13816124 3.84973402-3.13816124 6.47527736 0 4.55564936 3.69308349 8.24873286 8.24873286 8.24873286 2.5815709 0 4.8861545-1.1859235 6.3986798-3.0426994-.8206378 4.7389755-4.9523867 8.343122-9.9259291 8.343122-5.56375572 0-10.07407088-4.5103151-10.07407088-10.0740709 0-5.02506013 3.67919933-9.19079725 8.49074856-9.95036192z' fill='@{dark-text-escape}' fill-rule='evenodd'/%3E%3C/svg%3E");
--echo-icon-person-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='13.836' viewBox='0 0 12 13.836'%3E%3Cpath fill='@{dark-text-escape}' d='M1.938,6.656c-1.32,1.485-1.47,3.15-0.97,4.25c0.323,0.707,0.78,1.127,1.313,1.375 c0.496,0.229,1.074,0.273,1.658,0.282c0.023,0,0.04,0.03,0.062,0.03h4.187c0.61,0,1.225-0.125,1.75-0.405 c0.527-0.28,0.961-0.718,1.188-1.376c0.335-0.964,0.175-2.529-1.094-4.03C9.094,7.954,7.68,8.719,6.065,8.719 c-1.677,0-3.182-0.812-4.125-2.063H1.938z'/%3E%3Cpath fill='@{dark-text-escape}' d='M6.063,0c-1.89,0-3.595,1.674-3.594,3.563C2.467,5.45,4.173,7.155,6.06,7.155 c1.89,0,3.564-1.705,3.563-3.593C9.625,1.673,7.95,0,6.063,0L6.063,0z'/%3E%3C/svg%3E");
--echo-icon-bell-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E bell %3C/title%3E%3Cpath fill='@{dark-text-escape}' d='M16 7a5.38 5.38 0 0 0-4.46-4.85C11.6 1.46 11.53 0 10 0S8.4 1.46 8.46 2.15A5.38 5.38 0 0 0 4 7v6l-2 2v1h16v-1l-2-2zm-6 13a3 3 0 0 0 3-3H7a3 3 0 0 0 3 3z'/%3E%3C/svg%3E");
--echo-icon-tray-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E tray %3C/title%3E%3Cpath fill='@{dark-text-escape}' d='M17 1H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2zm0 12h-4l-1 2H8l-1-2H3V3h14z'/%3E%3C/svg%3E");
--echo-icon-cog-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E settings %3C/title%3E%3Cg transform='translate(10 10)'%3E%3Cpath fill='@{dark-text-escape}' id='a' d='M1.5-10h-3l-1 6.5h5m0 7h-5l1 6.5h3'/%3E%3Cuse xlink:href='%23a' transform='rotate(45)'/%3E%3Cuse xlink:href='%23a' transform='rotate(90)'/%3E%3Cuse xlink:href='%23a' transform='rotate(135)'/%3E%3C/g%3E%3Cpath fill='@{dark-text-escape}' d='M10 2.5a7.5 7.5 0 0 0 0 15 7.5 7.5 0 0 0 0-15v4a3.5 3.5 0 0 1 0 7 3.5 3.5 0 0 1 0-7'/%3E%3C/svg%3E%0A");
--echo-icon-fullscreen-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E fullscreen %3C/title%3E%3Cg fill='@{dark-text-escape}'%3E%3Cpath d='M1 1v6h2V3h4V1zm2 12H1v6h6v-2H3zm14 4h-4v2h6v-6h-2zm0-16h-4v2h4v4h2V1z'/%3E%3C/g%3E%3Cscript xmlns=''/%3E%3C/svg%3E");
--echo-icon-exitFullscreen-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E exit fullscreen %3C/title%3E%3Cg fill='@{dark-text-escape}'%3E%3Cpath d='M7 7V1H5v4H1v2zM5 19h2v-6H1v2h4zm10-4h4v-2h-6v6h2zm0-8h4V5h-4V1h-2v6z'/%3E%3C/g%3E%3Cscript xmlns=''/%3E%3C/svg%3E");
--searchbutton-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='13'%3E%3Cg fill='none' stroke='@{dark-links-escape}' stroke-width='2'%3E%3Cpath d='M11.29 11.71l-4-4'/%3E%3Ccircle cx='5' cy='5' r='4'/%3E%3C/g%3E%3C/svg%3E");
--arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M11.05 3.996l-.965-1.053-4.035 3.86-3.947-3.86L1.05 3.996l5 5 5-5' fill='@{dark-text-escape}'/%3E%3C/svg%3E");
--watch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath fill='transparent' stroke='@{dark-links-escape}' stroke-width='.8' d='m8.1 1.1 2.2 4.5 4.8.7-3.5 3.4.9 4.8L8 12.2l-4.3 2.3.8-4.8L1 6.3l4.8-.7z'/%3E%3C/svg%3E%0A");
--unwatch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath fill='@{dark-links-escape}' stroke='@{dark-links-escape}' stroke-width='.8' d='m8.1 1.1 2.2 4.5 4.8.7-3.5 3.4.9 4.8L8 12.2l-4.3 2.3.8-4.8L1 6.3l4.8-.7z'/%3E%3C/svg%3E%0A");
--external-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='@{dark-links-escape}' d='M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16L6 1Z M2 3h2v1H2v6h6V8h1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
--ul-list-style-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='13'%3E%3Ccircle cx='2.5' cy='9' r='2.5' fill='@{dark-text-escape}'/%3E%3C/svg%3E");
// prob need to be removed: because of the specificity added by nesting, it can override and add background etc when
// not expected. a good example is `.vector-search-box-input` where it adds border both to input and search icon
// maybe worth relying on `color-scheme` instead but without the `:has()` in its selector
//input,
select,
textarea {
background: var(--body-light);
border: 1px solid var(--body-border);
color: var(--text-color);
}
// == Syntax highlighter imports ==
// Editors
@codehighlight-background: var(--mw-code-background-color);
@import '@{dir}/codehighlight.less';     // Code highlight
@code-bg: @cloud-burst;
@gutter-bg: @pickled-bluewood;
@gutter-text: @dark-text;
@import '@{dir}/aceeditor.less';        // ace editor (for css, js, lua, etc.)
@codemirror-background: @cloud-burst;
@codemirror-text-color: @dark-text;
@codemirror-selection-color: @portage;
@codemirror-bracket-matcher-background: @dark-wikitable-background;
@import '@{dir}/darksyntax.less';      // CodeMirror aka source editor syntax
// ==== Misc ====
// mainly stuff that may need to be changed via vars instead
.oo-ui-iconElement-icon:not(.oo-ui-image-destructive):not(.oo-ui-image-warning):not(.oo-ui-image-progressive):not(.oo-ui-checkboxInputWidget-checkIcon):not(.oo-ui-icon-page-existing),
.oo-ui-indicatorElement-indicator,
.mwe-math-element img,
.mw-ui-icon:before,
.soft-redirect > div:nth-child(1) img {
filter: invert(1) hue-rotate(180deg); // hue-rotate to preserve color if possible; not very accurate tho
}


:root {
.client-js & .sortable:not(.jquery-tablesorter) > * > tr:first-child > th:not(.unsortable),
    --echo-icon-moon-bg-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg height='21' viewBox='0 0 21 21' width='21' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8.85464918.37900488c-1.91149353 1.51069427-3.13816124 3.84973402-3.13816124 6.47527736 0 4.55564936 3.69308349 8.24873286 8.24873286 8.24873286 2.5815709 0 4.8861545-1.1859235 6.3986798-3.0426994-.8206378 4.7389755-4.9523867 8.343122-9.9259291 8.343122-5.56375572 0-10.07407088-4.5103151-10.07407088-10.0740709 0-5.02506013 3.67919933-9.19079725 8.49074856-9.95036192z' fill='%234c4c4c'/%3E%3C/svg%3E");
.jquery-tablesorter th.headerSort {
    --echo-icon-person-bg-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2213.836%22 viewBox=%220 0 12 13.836%22%3E %3Cpath fill='%234c4c4c' d=%22M1.938%2C6.656c-1.32%2C1.485-1.47%2C3.15-0.97%2C4.25c0.323%2C0.707%2C0.78%2C1.127%2C1.313%2C1.375 c0.496%2C0.229%2C1.074%2C0.273%2C1.658%2C0.282c0.023%2C0%2C0.04%2C0.03%2C0.062%2C0.03h4.187c0.61%2C0%2C1.225-0.125%2C1.75-0.405 c0.527-0.28%2C0.961-0.718%2C1.188-1.376c0.335-0.964%2C0.175-2.529-1.094-4.03C9.094%2C7.954%2C7.68%2C8.719%2C6.065%2C8.719 c-1.677%2C0-3.182-0.812-4.125-2.063H1.938z%22/%3E %3Cpath fill='%234c4c4c' d=%22M6.063%2C0c-1.89%2C0-3.595%2C1.674-3.594%2C3.563C2.467%2C5.45%2C4.173%2C7.155%2C6.06%2C7.155 c1.89%2C0%2C3.564-1.705%2C3.563-3.593C9.625%2C1.673%2C7.95%2C0%2C6.063%2C0L6.063%2C0z%22/%3E %3C/svg%3E");
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='9' viewBox='0 0 21 9'%3E%3Cg fill='@{dark-text-escape}'%3E%3Cpath d='M14.5 5l-4 4-4-4zM14.5 4l-4-4-4 4z'/%3E%3C/g%3E%3C/svg%3E");
    --echo-icon-bell-bg-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Ebell%3C/title%3E%3Cpath d=%22M16 7a5.38 5.38 0 00-4.46-4.85C11.6 1.46 11.53 0 10 0S8.4 1.46 8.46 2.15A5.38 5.38 0 004 7v6l-2 2v1h16v-1l-2-2zm-6 13a3 3 0 003-3H7a3 3 0 003 3z%22 fill='%234c4c4c'/%3E%3C/svg%3E");
}
    --echo-icon-tray-bg-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Etray%3C/title%3E%3Cpath d=%22M3 1a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V3a2 2 0 00-2-2zm14 12h-4l-1 2H8l-1-2H3V3h14z%22 fill='%234c4c4c'/%3E%3C/svg%3E");
    --echo-icon-fullscreen-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E fullscreen %3C/title%3E%3Cg fill='%234c4c4c'%3E%3Cpath d='M1 1v6h2V3h4V1zm2 12H1v6h6v-2H3zm14 4h-4v2h6v-6h-2zm0-16h-4v2h4v4h2V1z'/%3E%3C/g%3E%3Cscript xmlns=''/%3E%3C/svg%3E");
    --echo-icon-exitFullscreen-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E exit fullscreen %3C/title%3E%3Cg fill='%234c4c4c'%3E%3Cpath d='M7 7V1H5v4H1v2zM5 19h2v-6H1v2h4zm10-4h4v-2h-6v6h2zm0-8h4V5h-4V1h-2v6z'/%3E%3C/g%3E%3Cscript xmlns=''/%3E%3C/svg%3E");
}


.vector-user-menu-legacy #pt-userpage a,
.jquery-tablesorter {
.vector-user-menu-legacy #pt-anonuserpage {
th.headerSortUp {
    background-image: var(--echo-icon-person-bg-image);
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='4' viewBox='0 0 21 4'%3E%3Cg fill='@{dark-text-escape}'%3E%3Cpath d='M6.5 4l4-4 4 4z'/%3E%3C/g%3E%3C/svg%3E");
    padding-top: 0;
}
    background-position-y: 0;
}
 
.vector-user-menu-legacy #pt-anonuserpage {
    color: var(--byline-color);
}
 
#pt-notifications-alert .mw-echo-notifications-badge,
#pt-notifications-notice .mw-echo-notifications-badge {
    background-size: 75%;
    background-position: center 80%;
    background-repeat: no-repeat;
    opacity: unset;
}
 
#pt-notifications-alert .mw-echo-notifications-badge.mw-echo-notifications-badge-all-read,
#pt-notifications-notice .mw-echo-notifications-badge.mw-echo-notifications-badge-all-read {
    opacity: unset;
}
 
#pt-notifications-alert .oo-ui-icon-bell {
    background-image: var(--echo-icon-bell-bg-image);
}
 
#pt-notifications-notice .oo-ui-icon-tray {
    background-image: var(--echo-icon-tray-bg-image);
}
 
#pt-fixed-width .oo-ui-icon-advanced {
    background-image: var(--echo-icon-exitFullscreen-bg-image);
}
 
body.wgl-fixedWidth #pt-fixed-width .oo-ui-icon-advanced {
    background-image: var(--echo-icon-fullscreen-bg-image);
}
 
#pt-theme-toggles .oo-ui-icon-advanced {
    background-image: var(--echo-icon-moon-bg-image);
}
 
#pt-anontalk {
    padding-top: 0.6em;
}
 
.ns-120 .mw-parser-output > ul,
.transcript > ul {
    margin: 5px 0 0 0;
}
 
.ns-120 .mw-parser-output > ul ul,
.transcript > ul ul,
.ns-120 .mw-parser-output > ul ol,
.transcript > ul ol {
    margin: 5px 0 0 15px;
}
 
.ns-120 .mw-parser-output > ul,
.transcript > ul,
.ns-120 .mw-parser-output > ul ul,
.transcript > ul ul,
.ns-120 .mw-parser-output > ul ol,
.transcript > ul ol {
    list-style: none;
    border-left: 1px dashed var(--transcript-border-color);
}
 
.ns-120 .mw-parser-output > ul:hover,
.transcript > ul:hover,
.ns-120 .mw-parser-output > ul ul:hover,
.transcript > ul ul:hover,
.ns-120 .mw-parser-output > ul ol:hover,
.transcript > ul ol:hover {
    border-color: var(--transcript-border-hover-color);
}
 
.ns-120 .mw-parser-output > ul li,
.transcript > ul li,
.ns-120 .mw-parser-output > ul ul li,
.transcript > ul ul li,
.ns-120 .mw-parser-output > ul ol li,
.transcript > ul ol li {
    flex-direction: column;
    padding-left: 15px;
    margin: 14px 0;
}
 
.ns-120 .mw-parser-output > ul li:last-of-type,
.transcript > ul li:last-of-type,
.ns-120 .mw-parser-output > ul ul li:last-of-type,
.transcript > ul ul li:last-of-type,
.ns-120 .mw-parser-output > ul ol li:last-of-type,
.transcript > ul ol li:last-of-type {
    margin-bottom: 0;
}
 
.nodesktop {
    display: none;
}


.tabber {
th.headerSortDown {
    display: inline-grid;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='4' viewBox='0 0 21 4'%3E%3Cg fill='@{dark-text-escape}'%3E%3Cpath d='M14.5 0l-4 4-4-4z'/%3E%3C/g%3E%3C/svg%3E");
}
}
}
}

Revision as of 03:57, 17 February 2024

/* ------------------------------------------------------------------------------
   This is the root LESS file that is parsed to produce [[MediaWiki:Vector-darkmode.css]].

   Previously compiled via subpages at [[Special:PrefixIndex/MediaWiki:Vector-darkmode.less/]],
   now adjusted via CSS Variables.

   To update [[MediaWiki:Vector-darkmode.css]] from here, users with the appropriate
   permissions can click the "Update CSS" button found to the left of the edit button.
   ------------------------------------------------------------------------------ */

/* --------------------
          COLORS
   -------------------- */
@dark-body:          @black-pearl;
@dark-page:          @big-stone;     // page bg color
@dark-links:         @portage;       // link color
@red-links:          lighten( @flamingo, 10% );
@dark-links-escape : escape("@{dark-links}"); // For use in SVGs
@dark-text:          lighten( @portage, 15% );
@dark-text-escape:   escape("@{dark-text}"); // For use in SVGs

@dark-wikitable-header:             @cloud-burst;
@dark-wikitable-background:         @pickled-bluewood;
@dark-wikitable-background-lighter: lighten(@dark-wikitable-background, 4%); // Used on hover effect
@dark-wikitable-background-darker:  darken(@dark-wikitable-background, 20%); 
@dark-wikitable-border:             @big-stone;

@dark-button: #617ebc;

@dir: 'MediaWiki:Vector-darkmode.less';
@common: 'MediaWiki:Common.less';

// Variables: Colours, shadows, etc.
@import '@{common}/variables.less';
// Mixins
@import '@{common}/mixins.less';

// style browser default forms; :has() is relatively new - shouldnt pose a problem
// targetting html otherwise page scrollbar wouldnt be affected
html:has(body.wgl-theme-dark) {
	color-scheme: dark;
}

/* The following imports are nested inside body.wgl-theme-dark for good reason.
 * Please do not change this. It is needed for "hot loading" darkmode when the
 * user tries to switch to it. */
body.wgl-theme-dark {
	// fallback as the above wont work on firefox
	color-scheme: dark;

	// == CSS Variables ==
	--body-background-image: url('filepath://Old_School_RuneScape_Wiki_background_darkmode.jpg');
	--body-background-color: @dark-body;
	--body-main: @dark-page;
	
	--body-light: @pickled-bluewood;
	--body-mid: @cloud-burst;
	--body-dark: @cloud-burst;
	--body-border: @waikawa-grey;
	
	--link-color: @dark-links;
	--background-link-color: var(--link-color);
	--redlink-color: @red-links;
	--text-color: @dark-text;
	--background-text-color: @dark-text;
	--byline-color: desaturate( darken(@dark-text, 22%), 47% );
	--subtle-color: var(--byline-color);
	
	--search-box: var(--body-light);
	
	// /highlight.less
	--admin-blue: #0087ff;
	--bearcat-green: #00ff55;
	--awb-purple: #f319ff;
	
	--sidebar: @waikawa-grey;
	--button-background: @dark-button;
	--button-dark: @dark-button;
	--button-border: @dark-button;
	--button-light: @dark-button;
	
	// /wikitables.less
	--wikitable-header-bg: @dark-wikitable-header;
	--wikitable-border: @dark-wikitable-border;
	--wikitable-bg: @dark-wikitable-background;
	--wikitable-bg-lighter: @dark-wikitable-background-lighter;
	--wikitable-color: var(--text-color);
	--wikitable-alternating-bg: saturate( darken( @dark-wikitable-background, 3% ), 3% );
	--table-na-background: fade( @black, 20 );
	--table-na-color: var(--subtle-color);
	--table-yes-background: @san-felix;
	--table-yes-color: @caper;
	--table-no-background: @mocaccino;
	--table-no-color: @apricot-peach;
	--table-maybe-background: @cinnamon;
	--table-maybe-color: @golden;
	--droptable-text-color: @white;
	--droptable-text-color: @white;
	--droptable-always-background: @venice-blue;
	--droptable-common-background: @la-palma;
	--droptable-uncommon-background: @olive;
	--droptable-rare-background: @korma;
	--droptable-veryrare-background: @old-brick;
	--droptable-random-background: @cannon-pink;
	
	// /ooui.less
	--ooui-text: @dark-text;
	@ooui-interface: @cloud-burst;
	--ooui-interface: @ooui-interface;
	--ooui-interface-border: lighten( @ooui-interface, 8% );
	--ooui-window-background: rgba(25,25,25,0.6);
	@ooui-input: lighten( @pickled-bluewood, 4% );
	--ooui-input: @ooui-input;
	@ooui-input-border: lighten( @ooui-input, 8% );
	--ooui-input-border: @ooui-input-border;
	--ooui-input-border--hover: lighten( @ooui-input-border, 8% );
	@ooui-normal: @pickled-bluewood;
	--ooui-normal: @ooui-normal;
	--ooui-normal--hover: lighten( @ooui-normal, 4% );
	--ooui-normal-border: lighten( @ooui-normal, 8% );
	@ooui-progressive: @dark-button;
	--ooui-progressive: @ooui-progressive;
	--ooui-progressive--hover: lighten(@ooui-progressive, 10%);
	--ooui-accent: var(--link-color);
	--ooui-disabled: desaturate( lighten( @ooui-normal, 32% ), 16%);
	--ooui-disabled-border: desaturate( lighten( @ooui-normal, 32% ), 16%);
	--ooui-disabled-text: var(--ooui-text);
	--ooui-pending-background-image: repeating-linear-gradient(-45deg, var(--search-box), var(--search-box) 20px, var(--body-main) 20px, var(--body-main) 30px);
	
	--tile-border-color: var(--body-border);
	--tile-background-color: var(--body-light);
	--tile-link-button-color: var(--body-mid);
	--tile-link-button-highlight-color: #2a3956;
	--tile-dark-color: @white;
	--tile-dark-bg: #5d6773;
	--tile-dark-link-color: #ccc;
	--tile-dark-byline-color: rgba(255, 255, 255, 0.7);
	--tile-dark-header-color: @white;
	
	--documentation-background: var(--body-light);
	--documentation-border: var(--sidebar);
	--documentation-link-color: var(--link-color);
	--documentation-headers-color: var(--text-color);
	--documentation-header-background: var(--body-dark);
	--documentation-subheader-background: darken( @dark-wikitable-header, 2% );
	
	--base-text-color: var(--text-color);
	--base-heading-color: var(--text-color);
	--base-heading-border: var(--sidebar);
	--mainpage-recent-updates-description-color: var(--text-color);
	
	// switch mid/light
	--thumb-bg: var(--body-mid);
	--thumb-caption-bg: var(--body-light);
	
	--diff-context-border-color: var(--body-mid);
	--diff-context-background: var(--body-mid);
	--diff-addedline-background: #438ab5;
	--diff-addedline-border-color: #438ab5;
	--diff-addedline-color: @white;
	--diff-deletedline-background: #379541;
	--diff-deletedline-border-color: #379541;
	--diff-deletedline-color: @white;
	--errorbox-bg: @mocaccino;
	--errorbox-border: @old-brick;
	--warningbox-bg: var(--errorbox-bg);
	--warningbox-border: var(--errorbox-border);
	--successbox-bg: @san-felix;
	--successbox-border: @la-palma;
	
	.mboxvar(obsolete, #464646, #333, #ddd, #bbb);
	.mboxvar(info, var(--messagebox-obsolete-background), var(--messagebox-obsolete-border),  var(--messagebox-obsolete-color), var(--messagebox-obsolete-link-color));
	.mboxvar(action, #45697d, #2d5266, var(--text-color), #b8d5e5);
	.mboxvar(warn, #95271b, #6b130a, #f8ebe9, #e8b8b3);
	.mboxvar(safe, #1b8408, #126802, #e9f6e7, #c1e0bb);
	.mboxvar(disambig, var(--messagebox-obsolete-background), var(--messagebox-obsolete-border), var(--messagebox-obsolete-color), var(--messagebox-obsolete-link-color));
	
	--mw-code-background-color: @cloud-burst;
	
	// common /tabber.less
	--tabber-tab-bg: var(--body-light);
	--tabber-tab-border-color: var(--body-border);
	--tabber-active-tab-bg: var(--body-light);
	--tabber-active-tab-color: var(--text-color);
	--tabber-active-tab-hover-bg: var(--body-light);
	--tabber-active-tab-hover-border-color: var(--body-border);
	--tabber-active-tab-hover-color: var(--text-color);
	--tabber-active-tab-border-hider-color: var(--body-light);
	--tabber-inactive-tab-bg: var(--body-mid);
	--tabber-inactive-tab-border-color: var(--body-border);
	--tabber-inactive-tab-color: var(--text-color);
	--tabber-inactive-tab-hover-bg: var(--body-light);
	--tabber-inactive-tab-hover-border-color: var(--body-border);
	
	--scribuntoconsole-input: @curious-blue;
	--scibuntoconsole-print: @supernova;
	--scribuntoconsole-error: @flamingo;
	--scribuntoconsole-message: @lima;
	--scribuntoconsole-tabcomplete: @medium-purple;
	--scribuntoconsole-clear: @flamingo;
	
	// common /templates.less
	--blockquote-color: var(--text-color);
	--coins-color: @lima;
	--coins-pos-color: @curious-blue;
	--coins-neg-color: @flamingo;
	--questdetails-header-background: var(--body-dark);
	--questdetails-header-background-alt: var(--body-dark);
	--fact-text-color: @curious-blue;
	--production-selected-background: @la-palma;
	--production-selected-color: @white;
	--wikipedia-border: var(--body-border);
	--wikipedia-background: var(--body-light);
	--keypress-background: var(--body-light);
	--keypress-border: var(--body-border);
	--keypress-color: var(--text-color);
	
	// common /poll.less
	--ajaxpoll-background: var(--body-light);
	--ajaxpoll-text-color: var(--base-text-color);
	--ajaxpoll-answerbar-background: var(--body-mid);
	--ajaxpoll-answerbar-border: var(--body-border);
	
	// common /specials.less
	--rc-negative-color: @flamingo;
	--rc-positive-color: @lima;
	--filter-black-to-link: invert(63%) sepia(67%) saturate(242%) hue-rotate(182deg) brightness(93%) contrast(94%);
	
	// common /transcripts.less
	--transcript-border-color: @waikawa-grey;
	--transcript-border-hover-color: lighten( @waikawa-grey, 15% );
	--transcript-strikethrough-color: @white;
	
	// vector /navbox.less
	--navbox-background: var(--body-light);
	--navbox-border: var(--body-main);
	--navbox-title-background: var(--body-dark);
	--navbox-footer-background: var(--navbox-title-background);
	--navbox-group-title-background: var(--navbox-title-background);
	
	// vector /infobox.less
	--infobox-bg: var(--body-light);
	--infobox-border: var(--body-border);
	--infobox-header: var(--body-dark);
	--infobox-subheader: var(--body-mid);
	--infobox-text-color: var(--text-color);
	--infobox-room-poh-color: @river-bed;
	
	// vector /sourceeditor.less
	--sourceeditor-input-background: var(--body-mid);
	--sourceeditor-background: var(--body-light);
	--sourceeditor-background-secondary: var(--body-mid);
	--sourceeditor-border: var(--body-main);
	--codemirror-gutter-background: var(--body-light);
	
	// vector /toc.less
	--toc-bg: var(--body-light);
	--toc-title-bg: var(--body-dark);
	--toc-border-color: var(--body-border);
	--toc-list-border-color: var(--body-border);
	
	// vector /vectortabs.less
	--vector-tab-background: @cloud-burst;
	--vector-tab-background--hover: lighten( @cloud-burst, 4% );
	--vector-tab-link-color: var(--background-link-color);
	
	// gadget-highlighttable.css
	--lighttable-bg-hover: @la-palma;
	--lighttable-bg-active: @san-felix;
	--lighttable-link-color: @caper;
	
	--personal-links-bg: rgba(7, 16, 34, 0.75);
	
	// trailblazer region highlight
	--tbz-unlocked-background: repeating-linear-gradient(-45deg, #315d30 0 20px, #13421e 20px 30px);
	--tbz-unlocked-border-color: #00e417;
	
	--tbz-locked-background-color: #8a2525;
	--tbz-locked-border-color: #b32828;
	
	--tbz-partial-unlock-background: #5a5a5a;
	--tbz-partial-unlock-border-color: #13421e;
	
	// SVG clutter
	--echo-icon-moon-bg-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg height='21' viewBox='0 0 21 21' width='21' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m8.85464918.37900488c-1.91149353 1.51069427-3.13816124 3.84973402-3.13816124 6.47527736 0 4.55564936 3.69308349 8.24873286 8.24873286 8.24873286 2.5815709 0 4.8861545-1.1859235 6.3986798-3.0426994-.8206378 4.7389755-4.9523867 8.343122-9.9259291 8.343122-5.56375572 0-10.07407088-4.5103151-10.07407088-10.0740709 0-5.02506013 3.67919933-9.19079725 8.49074856-9.95036192z' fill='@{dark-text-escape}' fill-rule='evenodd'/%3E%3C/svg%3E");
	--echo-icon-person-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='13.836' viewBox='0 0 12 13.836'%3E%3Cpath fill='@{dark-text-escape}' d='M1.938,6.656c-1.32,1.485-1.47,3.15-0.97,4.25c0.323,0.707,0.78,1.127,1.313,1.375 c0.496,0.229,1.074,0.273,1.658,0.282c0.023,0,0.04,0.03,0.062,0.03h4.187c0.61,0,1.225-0.125,1.75-0.405 c0.527-0.28,0.961-0.718,1.188-1.376c0.335-0.964,0.175-2.529-1.094-4.03C9.094,7.954,7.68,8.719,6.065,8.719 c-1.677,0-3.182-0.812-4.125-2.063H1.938z'/%3E%3Cpath fill='@{dark-text-escape}' d='M6.063,0c-1.89,0-3.595,1.674-3.594,3.563C2.467,5.45,4.173,7.155,6.06,7.155 c1.89,0,3.564-1.705,3.563-3.593C9.625,1.673,7.95,0,6.063,0L6.063,0z'/%3E%3C/svg%3E");
	--echo-icon-bell-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E bell %3C/title%3E%3Cpath fill='@{dark-text-escape}' d='M16 7a5.38 5.38 0 0 0-4.46-4.85C11.6 1.46 11.53 0 10 0S8.4 1.46 8.46 2.15A5.38 5.38 0 0 0 4 7v6l-2 2v1h16v-1l-2-2zm-6 13a3 3 0 0 0 3-3H7a3 3 0 0 0 3 3z'/%3E%3C/svg%3E");
	--echo-icon-tray-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E tray %3C/title%3E%3Cpath fill='@{dark-text-escape}' d='M17 1H3a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2zm0 12h-4l-1 2H8l-1-2H3V3h14z'/%3E%3C/svg%3E");
	--echo-icon-cog-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E settings %3C/title%3E%3Cg transform='translate(10 10)'%3E%3Cpath fill='@{dark-text-escape}' id='a' d='M1.5-10h-3l-1 6.5h5m0 7h-5l1 6.5h3'/%3E%3Cuse xlink:href='%23a' transform='rotate(45)'/%3E%3Cuse xlink:href='%23a' transform='rotate(90)'/%3E%3Cuse xlink:href='%23a' transform='rotate(135)'/%3E%3C/g%3E%3Cpath fill='@{dark-text-escape}' d='M10 2.5a7.5 7.5 0 0 0 0 15 7.5 7.5 0 0 0 0-15v4a3.5 3.5 0 0 1 0 7 3.5 3.5 0 0 1 0-7'/%3E%3C/svg%3E%0A");
	--echo-icon-fullscreen-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E fullscreen %3C/title%3E%3Cg fill='@{dark-text-escape}'%3E%3Cpath d='M1 1v6h2V3h4V1zm2 12H1v6h6v-2H3zm14 4h-4v2h6v-6h-2zm0-16h-4v2h4v4h2V1z'/%3E%3C/g%3E%3Cscript xmlns=''/%3E%3C/svg%3E");
	--echo-icon-exitFullscreen-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ctitle%3E exit fullscreen %3C/title%3E%3Cg fill='@{dark-text-escape}'%3E%3Cpath d='M7 7V1H5v4H1v2zM5 19h2v-6H1v2h4zm10-4h4v-2h-6v6h2zm0-8h4V5h-4V1h-2v6z'/%3E%3C/g%3E%3Cscript xmlns=''/%3E%3C/svg%3E");
	
	--searchbutton-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='13'%3E%3Cg fill='none' stroke='@{dark-links-escape}' stroke-width='2'%3E%3Cpath d='M11.29 11.71l-4-4'/%3E%3Ccircle cx='5' cy='5' r='4'/%3E%3C/g%3E%3C/svg%3E");
	--arrow-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M11.05 3.996l-.965-1.053-4.035 3.86-3.947-3.86L1.05 3.996l5 5 5-5' fill='@{dark-text-escape}'/%3E%3C/svg%3E");
	--watch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath fill='transparent' stroke='@{dark-links-escape}' stroke-width='.8' d='m8.1 1.1 2.2 4.5 4.8.7-3.5 3.4.9 4.8L8 12.2l-4.3 2.3.8-4.8L1 6.3l4.8-.7z'/%3E%3C/svg%3E%0A");
	--unwatch-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath fill='@{dark-links-escape}' stroke='@{dark-links-escape}' stroke-width='.8' d='m8.1 1.1 2.2 4.5 4.8.7-3.5 3.4.9 4.8L8 12.2l-4.3 2.3.8-4.8L1 6.3l4.8-.7z'/%3E%3C/svg%3E%0A");
	--external-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='@{dark-links-escape}' d='M6 1h5v5L8.86 3.85 4.7 8 4 7.3l4.15-4.16L6 1Z M2 3h2v1H2v6h6V8h1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
	--ul-list-style-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='13'%3E%3Ccircle cx='2.5' cy='9' r='2.5' fill='@{dark-text-escape}'/%3E%3C/svg%3E");
	
	// prob need to be removed: because of the specificity added by nesting, it can override and add background etc when
	// not expected. a good example is `.vector-search-box-input` where it adds border both to input and search icon
	// maybe worth relying on `color-scheme` instead but without the `:has()` in its selector
	//input,
	select,
	textarea {
		background: var(--body-light);
		border: 1px solid var(--body-border);
		color: var(--text-color);
	}
	
	// == Syntax highlighter imports ==
	// Editors
	@codehighlight-background: var(--mw-code-background-color);
	@import '@{dir}/codehighlight.less';     // Code highlight
	@code-bg: @cloud-burst;
	@gutter-bg: @pickled-bluewood;
	@gutter-text: @dark-text;
	@import '@{dir}/aceeditor.less';         // ace editor (for css, js, lua, etc.)
	@codemirror-background: @cloud-burst;
	@codemirror-text-color: @dark-text;
	@codemirror-selection-color: @portage;
	@codemirror-bracket-matcher-background: @dark-wikitable-background;
	@import '@{dir}/darksyntax.less';       // CodeMirror aka source editor syntax
	
	// ==== Misc ====
	// mainly stuff that may need to be changed via vars instead
	
	.oo-ui-iconElement-icon:not(.oo-ui-image-destructive):not(.oo-ui-image-warning):not(.oo-ui-image-progressive):not(.oo-ui-checkboxInputWidget-checkIcon):not(.oo-ui-icon-page-existing),
	.oo-ui-indicatorElement-indicator,
	.mwe-math-element img,
	.mw-ui-icon:before,
	.soft-redirect > div:nth-child(1) img {
		filter: invert(1) hue-rotate(180deg); // hue-rotate to preserve color if possible; not very accurate tho
	}

	.client-js & .sortable:not(.jquery-tablesorter) > * > tr:first-child > th:not(.unsortable),
	.jquery-tablesorter th.headerSort {
			background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='9' viewBox='0 0 21 9'%3E%3Cg fill='@{dark-text-escape}'%3E%3Cpath d='M14.5 5l-4 4-4-4zM14.5 4l-4-4-4 4z'/%3E%3C/g%3E%3C/svg%3E");
	}

	.jquery-tablesorter {
		th.headerSortUp {
			background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='4' viewBox='0 0 21 4'%3E%3Cg fill='@{dark-text-escape}'%3E%3Cpath d='M6.5 4l4-4 4 4z'/%3E%3C/g%3E%3C/svg%3E");
		}

		th.headerSortDown {
			background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='4' viewBox='0 0 21 4'%3E%3Cg fill='@{dark-text-escape}'%3E%3Cpath d='M14.5 0l-4 4-4-4z'/%3E%3C/g%3E%3C/svg%3E");
		}
	}
}