Difference between revisions of "User:Dt192/vector.css"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
:root { | :root { | ||
− | /* | + | /* Base Theme (grey) */ |
--canvas-bg-color: #22272e; | --canvas-bg-color: #22272e; | ||
+ | --text-color: #fffb; | ||
--accent-color: #e0c799cf; | --accent-color: #e0c799cf; | ||
--page-width: 1200px; | --page-width: 1200px; | ||
--corner-rounding: 1em; | --corner-rounding: 1em; | ||
+ | |||
--font-name: "Exo 2"; | --font-name: "Exo 2"; | ||
--font-header-name: "Roboto Slab"; | --font-header-name: "Roboto Slab"; | ||
--font-name-codeblock: "Source Code Pro"; | --font-name-codeblock: "Source Code Pro"; | ||
− | |||
--page-bg-color: #ffffff07; | --page-bg-color: #ffffff07; | ||
--page-border-color: #ffffff0b; | --page-border-color: #ffffff0b; | ||
Line 23: | Line 24: | ||
--search-box-bg-color: #0005; | --search-box-bg-color: #0005; | ||
--code-block-bg-color: #00000047; | --code-block-bg-color: #00000047; | ||
+ | --wikitable-bg: #ffffff0d; | ||
+ | --header-underline: #ffffff29; | ||
+ | --diff-add-hl: #188d1770; | ||
+ | --diff-remove-hl: #cf212170; | ||
+ | |||
+ | --syntax-hl-string: #99c794; | ||
+ | --syntax-hl-number: #f9ae57; | ||
+ | --syntax-hl-comment: #ffffff45; | ||
+ | --syntax-hl-core-func: #6699cc; | ||
+ | --syntax-hl-core-keyword: #c695c6; | ||
+ | --syntax-hl-core-not: #f97b57; | ||
+ | --syntax-hl-core-boolean: #ec5e66; | ||
+ | --syntax-hl-core-local: #ec5e66; | ||
+ | --syntax-hl-core-punctuation: #ffffff45; | ||
+ | --syntax-hl-core-operator: #f97b57; | ||
+ | --syntax-hl-escaped-char-in-string: #5fb8ff; | ||
+ | |||
+ | /*** Overrides ***/ | ||
/* Blue Theme | /* Blue Theme | ||
Line 59: | Line 78: | ||
} | } | ||
h1, h2 { | h1, h2 { | ||
− | border-bottom: 1px dotted | + | border-bottom: 1px dotted var(--header-underline); |
} | } | ||
.mw-body, | .mw-body, | ||
Line 147: | Line 166: | ||
.wikitable td { | .wikitable td { | ||
border: unset !important; | border: unset !important; | ||
− | background: | + | background: var(--wikitable-bg) !important; |
padding: 0.3em 1em; | padding: 0.3em 1em; | ||
} | } | ||
.wikitable th:first-child { | .wikitable th:first-child { | ||
− | border-radius: | + | border-radius: var(--corner-rounding) 0 0 0 !important; |
} | } | ||
.wikitable th:last-child { | .wikitable th:last-child { | ||
− | border-radius: 0 | + | border-radius: 0 var(--corner-rounding) 0 0 !important; |
} | } | ||
.wikitable tr:last-child td:last-child { | .wikitable tr:last-child td:last-child { | ||
− | border-radius: 0 0 | + | border-radius: 0 0 var(--corner-rounding) 0 !important; |
} | } | ||
.wikitable tr:last-child td:first-child { | .wikitable tr:last-child td:first-child { | ||
− | border-radius: 0 0 0 | + | border-radius: 0 0 0 var(--corner-rounding) !important; |
} | } | ||
code { | code { | ||
padding: 0.1em 0.5em; | padding: 0.1em 0.5em; | ||
} | } | ||
+ | .diff tr div { | ||
+ | font-family: var(--font-name-codeblock) !important; | ||
+ | } | ||
+ | ins.diffchange, del.diffchange { | ||
+ | font-weight: normal !important; | ||
+ | } | ||
+ | .diff-context { | ||
+ | background: var(--page-inner-panels-bg-color); | ||
+ | border:unset; | ||
+ | } | ||
+ | .diff-addedline, .diff-deletedline { | ||
+ | border-color: var(--page-inner-panels-bg-color) !important; | ||
+ | } | ||
+ | .diff-context div { | ||
+ | color: #fff3 !important; | ||
+ | } | ||
+ | .diff-addedline .diffchange { | ||
+ | background: var(--diff-add-hl); | ||
+ | } | ||
+ | .diff-deletedline .diffchange { | ||
+ | background: var(--diff-remove-hl); | ||
+ | } | ||
+ | |||
/* syntax highlighting */ | /* syntax highlighting */ | ||
.mw-highlight-lang-lua pre, | .mw-highlight-lang-lua pre, | ||
code { | code { | ||
background: var(--code-block-bg-color) !important; | background: var(--code-block-bg-color) !important; | ||
− | |||
} | } | ||
.mw-highlight-lang-lua pre *, | .mw-highlight-lang-lua pre *, | ||
Line 179: | Line 220: | ||
.mw-highlight .s1, | .mw-highlight .s1, | ||
.mw-highlight .s2 { | .mw-highlight .s2 { | ||
− | + | color: var(--syntax-hl-string) !important; | |
− | color: | ||
} | } | ||
.mw-highlight .se { | .mw-highlight .se { | ||
− | color: | + | color: var(--syntax-hl-escaped-char-in-string) !important; |
} | } | ||
.mw-highlight .c1, | .mw-highlight .c1, | ||
.mw-highlight .cm { | .mw-highlight .cm { | ||
− | + | color: var(--syntax-hl-comment) !important; | |
− | color: | ||
} | } | ||
.mw-highlight .nb { | .mw-highlight .nb { | ||
− | + | color: var(--syntax-hl-core-func) !important; | |
− | color: | ||
} | } | ||
.mw-highlight .kr { | .mw-highlight .kr { | ||
− | + | color: var(--syntax-hl-core-keyword) !important; | |
− | color: | ||
} | } | ||
.mw-highlight .ow { | .mw-highlight .ow { | ||
− | + | color: var(--syntax-hl-core-not) !important; | |
− | color: | ||
} | } | ||
.mw-highlight .kd { | .mw-highlight .kd { | ||
− | + | color: var(--syntax-hl-core-local) !important; | |
− | color: | ||
} | } | ||
.mw-highlight .kc { | .mw-highlight .kc { | ||
− | + | color: var(--syntax-hl-core-boolean) !important; | |
− | color: | ||
} | } | ||
.mw-highlight .mf, | .mw-highlight .mf, | ||
.mw-highlight .mi { | .mw-highlight .mi { | ||
− | + | color: var(--syntax-hl-number) !important; | |
− | color: | ||
} | } | ||
.mw-highlight .p { | .mw-highlight .p { | ||
− | + | color: var(--syntax-hl-core-punctuation) !important; | |
− | color: | ||
} | } | ||
.mw-highlight .o { | .mw-highlight .o { | ||
− | + | color: var(--syntax-hl-core-operator) !important; | |
− | color: | ||
} | } | ||
} | } |
Revision as of 00:22, 9 January 2024
/* Quick test of custom css */
@import url("https://fonts.googleapis.com/css?family=Roboto+Slab&display=swap");
@import url(https://fonts.googleapis.com/css?family=Exo+2&display=swap);
@import url(https://fonts.googleapis.com/css?family=Source+Code+Pro&display=swap);
:root {
/* Base Theme (grey) */
--canvas-bg-color: #22272e;
--text-color: #fffb;
--accent-color: #e0c799cf;
--page-width: 1200px;
--corner-rounding: 1em;
--font-name: "Exo 2";
--font-header-name: "Roboto Slab";
--font-name-codeblock: "Source Code Pro";
--page-bg-color: #ffffff07;
--page-border-color: #ffffff0b;
--page-panels-bg-color: #ffffff07;
--page-panels-border-color: #ffffff1c;
--page-inner-panels-bg-color: #ffffff0a;
--search-box-bg-color: #0005;
--code-block-bg-color: #00000047;
--wikitable-bg: #ffffff0d;
--header-underline: #ffffff29;
--diff-add-hl: #188d1770;
--diff-remove-hl: #cf212170;
--syntax-hl-string: #99c794;
--syntax-hl-number: #f9ae57;
--syntax-hl-comment: #ffffff45;
--syntax-hl-core-func: #6699cc;
--syntax-hl-core-keyword: #c695c6;
--syntax-hl-core-not: #f97b57;
--syntax-hl-core-boolean: #ec5e66;
--syntax-hl-core-local: #ec5e66;
--syntax-hl-core-punctuation: #ffffff45;
--syntax-hl-core-operator: #f97b57;
--syntax-hl-escaped-char-in-string: #5fb8ff;
/*** Overrides ***/
/* Blue Theme
--canvas-bg-color: #072b5d;
--accent-color: #98dc5ac2;
*/
/* Red Theme
--canvas-bg-color: #5b2020;
*/
}
@media screen {
html {
font-size: 115%;
}
.vector-menu-portal {
font-size: 110%;
}
* {
color: var(--text-color) !important;
font-family: var(--font-name) !important;
}
body {
max-width: var(--page-width);
position: relative;
margin: auto;
background-color: var(--canvas-bg-color);
}
a {
color: var(--accent-color) !important;
}
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span {
font-family: var(--font-header-name) !important;
}
h1, h2 {
border-bottom: 1px dotted var(--header-underline);
}
.mw-body,
.parsoid-body {
background-color: var(--page-bg-color);
}
#mw-page-base {
background: unset;
}
.mw-body {
border-color: var(--page-border-color);
border-width: 0px 1px 1px 1px;
margin-top: 0;
border-radius: 0 0 var(--corner-rounding) var(--corner-rounding);
}
#mp-topbanner,
.mw-pt-languages,
.mw-highlight pre,
.warningbox,
#catlinks,
code,
pre {
background: var(--page-panels-bg-color) !important;
border-color: var(--page-panels-border-color) !important;
border-radius: var(--corner-rounding);
}
.MainPageBG,
#mp-left {
background: unset !important;
}
.MainPageBG {
border-color: var(--page-panels-border-color) !important;
border-radius: var(--corner-rounding);
}
#mp-tfa-h2 {
background: var(--page-inner-panels-bg-color) !important;
border: unset !important;
border-radius: var(--corner-rounding);
}
.mw-pt-languages-label {
background-color: unset;
}
.mw-pt-translate-header {
border-bottom: unset;
}
.portal h3, .vector-menu-portal h3 {
background: unset;
}
.toc,
.mw-warning,
.toccolours {
background: var(--page-inner-panels-bg-color) !important;
border-color: var(--page-panels-border-color) !important;
border-radius: var(--corner-rounding);
}
.vector-menu-tabs .selected {
background: var(--page-bg-color);
}
.vector-menu-tabs,
.vector-menu-tabs a,
#mw-head .vector-menu-dropdown h3 {
background-image: linear-gradient(transparent, var(--page-border-color));
}
.vector-menu-tabs li,
p-cactions {
background-image: linear-gradient(to top, #0002, transparent);
}
#searchInput {
background-color: var(--search-box-bg-color);
border: unset;
border-radius: var(--corner-rounding);
}
input::placeholder {
color: #fff3 !important;
}
#editform textarea,
#editform .editOptions * {
color: #000e !important;
}
.wikitable {
background: unset !important;
border-spacing: 0.3em;
border-collapse: separate;
border: unset;
}
.wikitable th,
.wikitable td {
border: unset !important;
background: var(--wikitable-bg) !important;
padding: 0.3em 1em;
}
.wikitable th:first-child {
border-radius: var(--corner-rounding) 0 0 0 !important;
}
.wikitable th:last-child {
border-radius: 0 var(--corner-rounding) 0 0 !important;
}
.wikitable tr:last-child td:last-child {
border-radius: 0 0 var(--corner-rounding) 0 !important;
}
.wikitable tr:last-child td:first-child {
border-radius: 0 0 0 var(--corner-rounding) !important;
}
code {
padding: 0.1em 0.5em;
}
.diff tr div {
font-family: var(--font-name-codeblock) !important;
}
ins.diffchange, del.diffchange {
font-weight: normal !important;
}
.diff-context {
background: var(--page-inner-panels-bg-color);
border:unset;
}
.diff-addedline, .diff-deletedline {
border-color: var(--page-inner-panels-bg-color) !important;
}
.diff-context div {
color: #fff3 !important;
}
.diff-addedline .diffchange {
background: var(--diff-add-hl);
}
.diff-deletedline .diffchange {
background: var(--diff-remove-hl);
}
/* syntax highlighting */
.mw-highlight-lang-lua pre,
code {
background: var(--code-block-bg-color) !important;
}
.mw-highlight-lang-lua pre *,
code {
font-family: var(--font-name-codeblock) !important;
font-weight: normal !important;
}
.mw-highlight .s,
.mw-highlight .s1,
.mw-highlight .s2 {
color: var(--syntax-hl-string) !important;
}
.mw-highlight .se {
color: var(--syntax-hl-escaped-char-in-string) !important;
}
.mw-highlight .c1,
.mw-highlight .cm {
color: var(--syntax-hl-comment) !important;
}
.mw-highlight .nb {
color: var(--syntax-hl-core-func) !important;
}
.mw-highlight .kr {
color: var(--syntax-hl-core-keyword) !important;
}
.mw-highlight .ow {
color: var(--syntax-hl-core-not) !important;
}
.mw-highlight .kd {
color: var(--syntax-hl-core-local) !important;
}
.mw-highlight .kc {
color: var(--syntax-hl-core-boolean) !important;
}
.mw-highlight .mf,
.mw-highlight .mi {
color: var(--syntax-hl-number) !important;
}
.mw-highlight .p {
color: var(--syntax-hl-core-punctuation) !important;
}
.mw-highlight .o {
color: var(--syntax-hl-core-operator) !important;
}
}