MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
LadderGoat (talk | contribs) No edit summary |
LadderGoat (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
:root { | :root { | ||
--bg-content: hsl(0, 0%, 15%); | --bg-content: hsl(0, 0%, 15%); | ||
--bg-main: hsl(0, 0%, 10%); | |||
--bg-warningbox: hsla(64, 84%, 47%, 0.3); | --bg-warningbox: hsla(64, 84%, 47%, 0.3); | ||
--bg-wikitable: hsl(0, 0%, 25%); | |||
--bg-wikitable-header: hsl(0, 0%, 20%); | |||
--border-color-warningbox: hsl(64, 84%, 47%); | --border-color-warningbox: hsl(64, 84%, 47%); | ||
--border-light: hsl(205, 87%, 82%); | --border-light: hsl(205, 87%, 82%); | ||
--border-dark: hsl(206, 50%, 23%); | --border-dark: hsl(206, 50%, 23%); | ||
--primary-text: hsl(197, 100%, 50%); | |||
--secondary-text: hsl(0, 0%, 100%); | --secondary-text: hsl(0, 0%, 100%); | ||
--wikitable-link: hsl(211, 63%, 60%); | |||
} | } | ||
| Line 20: | Line 20: | ||
} | } | ||
h1, | h1, | ||
h2, | h2, | ||
h3 { | h3 { | ||
border-bottom: 1px solid var(--bg-wikitable); | border-bottom: 1px solid var(--bg-wikitable); | ||
} | } | ||
h1, | h1, | ||
h2, | h2, | ||
h3, | h3, | ||
h4, | h4, | ||
h5, | h5, | ||
h6 { | h6 { | ||
color: var(--primary-text); | color: var(--primary-text); | ||
| Line 39: | Line 39: | ||
} | } | ||
a, | a, | ||
a.new, | a.new, | ||
a.new:visited, | a.new:visited, | ||
a:hover, | a:hover, | ||
a:visited { | a:visited { | ||
color: var(--primary-text); | color: var(--primary-text); | ||
| Line 54: | Line 54: | ||
#mw-page-base { | #mw-page-base { | ||
background: none; | |||
} | } | ||
.mw-editform #editpage-copywarn { | .mw-editform #editpage-copywarn { | ||
padding: 1em; | |||
} | } | ||
.mw-content-ltr.mw-highlight-lines pre, | .mw-content-ltr.mw-highlight-lines pre, | ||
.mw-content-ltr.content .mw-highlight-lines pre { | .mw-content-ltr.content .mw-highlight-lines pre { | ||
box-shadow: inset 1em 0 0 #0083ff1c; | |||
padding-left: 2em; | padding-left: 2em; | ||
} | } | ||
pre, | pre, | ||
code, | code, | ||
.mw-code { | .mw-code { | ||
background-color: var(--bg-wikitable-header); | |||
color: #ffffff; | |||
border-color: #0069b980; | |||
} | } | ||
.wikitable { | .wikitable { | ||
color: var(--primary-text); | |||
} | } | ||
.toctogglelabel, | .toctogglelabel, | ||
.mw-parser-output a.extiw, | .mw-parser-output a.extiw, | ||
.mw-parser-output a.external, | .mw-parser-output a.external, | ||
.mw-parser-output .wikitable tbody tr td a { | .mw-parser-output .wikitable tbody tr td a { | ||
color: var(--wikitable-link); | |||
} | } | ||
.wikitable tr { | .wikitable tr { | ||
background-color: var(--bg-wikitable); | |||
} | } | ||
.wikitable > tr > th, | .wikitable>tr>th, | ||
.wikitable > * > tr > th { | .wikitable>*>tr>th { | ||
background-color: var(--bg-wikitable-header); | |||
} | } | ||
.wikitable > tr > th, | .wikitable>tr>th, | ||
.wikitable > tr > td, | .wikitable>tr>td, | ||
.wikitable > * > tr > th, | .wikitable>*>tr>th, | ||
.wikitable > * > tr > td { | .wikitable>*>tr>td { | ||
border: 1px solid var(--bg-content); | |||
} | } | ||
.vector-menu-tabs li { | .vector-menu-tabs li { | ||
background-image: linear-gradient(to bottom,var(--bg-wikitable) 0,var(--bg-content) 1px,var(--bg-main) 100%); | background-image: linear-gradient(to bottom, var(--bg-wikitable) 0, var(--bg-content) 1px, var(--bg-main) 100%); | ||
} | } | ||
| Line 115: | Line 115: | ||
.vector-menu-dropdown .mw-list-item a { | .vector-menu-dropdown .mw-list-item a { | ||
border: none; | |||
} | } | ||
| Line 133: | Line 133: | ||
} | } | ||
.vector-menu-tabs .selected a, | .vector-menu-tabs .selected a, | ||
.vector-menu-tabs .selected a:visited { | .vector-menu-tabs .selected a:visited { | ||
color: var(--primary-text); | color: var(--primary-text); | ||
| Line 139: | Line 139: | ||
.vector-menu-dropdown .vector-menu-heading::after { | .vector-menu-dropdown .vector-menu-heading::after { | ||
background: url(images/icon-dropdown-arrow.png); | |||
background-position: right; | |||
background-repeat: no-repeat; | |||
} | } | ||
.vector-menu-tabs, | .vector-menu-tabs, | ||
.vector-menu-tabs a, | .vector-menu-tabs a, | ||
#mw-head .vector-menu-dropdown .vector-menu-heading { | #mw-head .vector-menu-dropdown .vector-menu-heading { | ||
background-image: linear-gradient(to bottom,rgba(167,215,249,0) 0,var(--bg-wikitable) 100%); | background-image: linear-gradient(to bottom, rgba(167, 215, 249, 0) 0, var(--bg-wikitable) 100%); | ||
} | } | ||
.skin-vector-legacy .vector-menu-tabs .new a, | .skin-vector-legacy .vector-menu-tabs .new a, | ||
.skin-vector-legacy .vector-menu-tabs .new a:visited { | .skin-vector-legacy .vector-menu-tabs .new a:visited { | ||
color: #a55858; | color: #a55858; | ||
| Line 156: | Line 156: | ||
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading { | .vector-legacy-sidebar .vector-menu-portal .vector-menu-heading { | ||
background-image: linear-gradient(to right,rgba(200,204,209,0) 0,var(--bg-wikitable) 33%,var(--bg-wikitable) 66%,rgba(200,204,209,0) 100%); | background-image: linear-gradient(to right, rgba(200, 204, 209, 0) 0, var(--bg-wikitable) 33%, var(--bg-wikitable) 66%, rgba(200, 204, 209, 0) 100%); | ||
color: var(--primary-text); | color: var(--primary-text); | ||
padding: 0.4em 0; | padding: 0.4em 0; | ||
| Line 162: | Line 162: | ||
} | } | ||
.oo-ui-icon-tray, | .oo-ui-icon-tray, | ||
.mw-ui-icon-tray:before { | .mw-ui-icon-tray:before { | ||
background-image: url(images/icon-inbox.png); | |||
} | } | ||
.oo-ui-icon-bell, | .oo-ui-icon-bell, | ||
.mw-ui-icon-bell:before { | .mw-ui-icon-bell:before { | ||
background-image: url(images/icon-bell.png); | |||
} | } | ||
#pt-notifications-alert .mw-echo-notifications-badge, | #pt-notifications-alert .mw-echo-notifications-badge, | ||
#pt-notifications-notice .mw-echo-notifications-badge { | #pt-notifications-notice .mw-echo-notifications-badge { | ||
background-repeat: round; | |||
} | } | ||
| Line 183: | Line 183: | ||
padding: 0; | padding: 0; | ||
border: 1px solid var(--bg-content); | border: 1px solid var(--bg-content); | ||
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0,0,0,0.1); | box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1); | ||
clear: left; | clear: left; | ||
} | } | ||
.toc .toctitle { | .toc .toctitle { | ||
background: var(--bg-wikitable-header); | |||
height: 25px; | |||
padding-top: 3px; | |||
} | } | ||
.tocnumber { | .tocnumber { | ||
display: none; | |||
} | } | ||
.toc ul { | .toc ul { | ||
list-style: none; | |||
padding: 0; | |||
} | } | ||
| Line 207: | Line 207: | ||
} | } | ||
.toc > ul { | .toc>ul { | ||
line-height: 1.8em; | |||
} | } | ||
| Line 227: | Line 227: | ||
} | } | ||
.mw-content-ltr .toc ul, | .mw-content-ltr .toc ul, | ||
.mw-content-rtl .mw-content-ltr .toc ul { | .mw-content-rtl .mw-content-ltr .toc ul { | ||
line-height: 20px; | |||
font-size: 13px; | |||
margin-left: 1em; | |||
padding-right: 10px; | |||
} | } | ||
.mw-message-box { | .mw-message-box { | ||
color:var(--primary-text); | color: var(--primary-text); | ||
} | } | ||
| Line 256: | Line 256: | ||
#n-Discord a::before { | #n-Discord a::before { | ||
content: 'Join our '; | |||
font-weight: normal; | font-weight: normal; | ||
opacity: 0.85; | opacity: 0.85; | ||
| Line 262: | Line 262: | ||
#n-Discord a { | #n-Discord a { | ||
color: white; | |||
font-weight: bold; | font-weight: bold; | ||
border-radius: 5px; | border-radius: 5px; | ||
| Line 271: | Line 271: | ||
padding: 4px 0 5px calc(17px + 6.5px * 2); | padding: 4px 0 5px calc(17px + 6.5px * 2); | ||
margin-top: 10px; | margin-top: 10px; | ||
box-shadow: 0 2px 3px rgba(0,0,0,0.1); | box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1); | ||
transition: 0.2s ease; | transition: 0.2s ease; | ||
} | } | ||
#n-Discord a::after { | #n-Discord a::after { | ||
content: ''; | |||
background: url(images/Discord_icon.png) no-repeat; | background: url(images/Discord_icon.png) no-repeat; | ||
background-size: 17px 13px; | background-size: 17px 13px; | ||
filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1)); | filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1)); | ||
position: absolute; | position: absolute; | ||
left: 7px; | left: 7px; | ||
| Line 287: | Line 287: | ||
li#footer-poweredbyico { | li#footer-poweredbyico { | ||
display: none; | |||
} | } | ||
| Line 295: | Line 295: | ||
.mw-notification, | .mw-notification, | ||
.oo-ui-messageWidget > .oo-ui-labelElement-label { | .oo-ui-messageWidget>.oo-ui-labelElement-label { | ||
background-color: #292929; | background-color: #292929; | ||
} | } | ||
Revision as of 01:58, 13 May 2024
:root {
--bg-content: hsl(0, 0%, 15%);
--bg-main: hsl(0, 0%, 10%);
--bg-warningbox: hsla(64, 84%, 47%, 0.3);
--bg-wikitable: hsl(0, 0%, 25%);
--bg-wikitable-header: hsl(0, 0%, 20%);
--border-color-warningbox: hsl(64, 84%, 47%);
--border-light: hsl(205, 87%, 82%);
--border-dark: hsl(206, 50%, 23%);
--primary-text: hsl(197, 100%, 50%);
--secondary-text: hsl(0, 0%, 100%);
--wikitable-link: hsl(211, 63%, 60%);
}
body {
background-color: var(--bg-main);
font-size: 15px;
line-height: 1.75;
}
h1,
h2,
h3 {
border-bottom: 1px solid var(--bg-wikitable);
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: var(--primary-text);
}
a:hover {
text-shadow: 0 2px 15px;
}
a,
a.new,
a.new:visited,
a:hover,
a:visited {
color: var(--primary-text);
}
.mw-body {
border-color: var(--bg-wikitable);
background-color: var(--bg-content);
color: var(--secondary-text);
}
#mw-page-base {
background: none;
}
.mw-editform #editpage-copywarn {
padding: 1em;
}
.mw-content-ltr.mw-highlight-lines pre,
.mw-content-ltr.content .mw-highlight-lines pre {
box-shadow: inset 1em 0 0 #0083ff1c;
padding-left: 2em;
}
pre,
code,
.mw-code {
background-color: var(--bg-wikitable-header);
color: #ffffff;
border-color: #0069b980;
}
.wikitable {
color: var(--primary-text);
}
.toctogglelabel,
.mw-parser-output a.extiw,
.mw-parser-output a.external,
.mw-parser-output .wikitable tbody tr td a {
color: var(--wikitable-link);
}
.wikitable tr {
background-color: var(--bg-wikitable);
}
.wikitable>tr>th,
.wikitable>*>tr>th {
background-color: var(--bg-wikitable-header);
}
.wikitable>tr>th,
.wikitable>tr>td,
.wikitable>*>tr>th,
.wikitable>*>tr>td {
border: 1px solid var(--bg-content);
}
.vector-menu-tabs li {
background-image: linear-gradient(to bottom, var(--bg-wikitable) 0, var(--bg-content) 1px, var(--bg-main) 100%);
}
.vector-user-menu-legacy #pt-userpage a {
color: #54595d;
}
.vector-user-menu-legacy li {
font-size: 0.75em;
}
.vector-menu-dropdown .mw-list-item a {
border: none;
}
.vector-menu-portal .vector-menu-content li {
font-size: 0.75em;
}
.vector-menu-portal .vector-menu-content li a,
.vector-menu-tabs-legacy li a,
.vector-legacy-sidebar .vector-menu-portal .vector-menu-content li a,
.vector-legacy-sidebar .vector-menu-portal .vector-menu-content li a:visited {
color: var(--secondary-text);
}
.vector-menu-tabs .selected {
background: var(--bg-content);
}
.vector-menu-tabs .selected a,
.vector-menu-tabs .selected a:visited {
color: var(--primary-text);
}
.vector-menu-dropdown .vector-menu-heading::after {
background: url(images/icon-dropdown-arrow.png);
background-position: right;
background-repeat: no-repeat;
}
.vector-menu-tabs,
.vector-menu-tabs a,
#mw-head .vector-menu-dropdown .vector-menu-heading {
background-image: linear-gradient(to bottom, rgba(167, 215, 249, 0) 0, var(--bg-wikitable) 100%);
}
.skin-vector-legacy .vector-menu-tabs .new a,
.skin-vector-legacy .vector-menu-tabs .new a:visited {
color: #a55858;
}
.vector-legacy-sidebar .vector-menu-portal .vector-menu-heading {
background-image: linear-gradient(to right, rgba(200, 204, 209, 0) 0, var(--bg-wikitable) 33%, var(--bg-wikitable) 66%, rgba(200, 204, 209, 0) 100%);
color: var(--primary-text);
padding: 0.4em 0;
font-weight: bold;
}
.oo-ui-icon-tray,
.mw-ui-icon-tray:before {
background-image: url(images/icon-inbox.png);
}
.oo-ui-icon-bell,
.mw-ui-icon-bell:before {
background-image: url(images/icon-bell.png);
}
#pt-notifications-alert .mw-echo-notifications-badge,
#pt-notifications-notice .mw-echo-notifications-badge {
background-repeat: round;
}
.toc {
font-size: 0.9em;
background: var(--bg-wikitable);
margin-top: 1em;
padding: 0;
border: 1px solid var(--bg-content);
box-shadow: 0 0.25rem 0.35rem -0.25rem rgba(0, 0, 0, 0.1);
clear: left;
}
.toc .toctitle {
background: var(--bg-wikitable-header);
height: 25px;
padding-top: 3px;
}
.tocnumber {
display: none;
}
.toc ul {
list-style: none;
padding: 0;
}
.toc ul ul {
border-left: 1px dotted #596e96;
padding-left: 0.5em;
}
.toc>ul {
line-height: 1.8em;
}
#filetoc {
background-color: var(--bg-wikitable);
}
em {
font-style: normal;
background: #555555;
color: white;
border: 1px solid #979797;
border-radius: 2px;
font-size: 0.9em;
margin: 0 0.1em;
padding: 0.2em 0.5em;
white-space: nowrap;
}
.mw-content-ltr .toc ul,
.mw-content-rtl .mw-content-ltr .toc ul {
line-height: 20px;
font-size: 13px;
margin-left: 1em;
padding-right: 10px;
}
.mw-message-box {
color: var(--primary-text);
}
.mw-message-box-warning {
background-color: var(--bg-warningbox);
border-color: var(--border-color-warningbox);
}
.mw-message-box-error {
background-color: #ff0b0038;
}
.vector-search-box-input {
background-color: var(--bg-content);
color: var(--secondary-text);
border: 1px solid var(--bg-wikitable);
height: 2em;
}
#n-Discord a::before {
content: 'Join our ';
font-weight: normal;
opacity: 0.85;
}
#n-Discord a {
color: white;
font-weight: bold;
border-radius: 5px;
border: 1px solid #4c57d0;
background-color: #5865f2;
display: block;
position: relative;
padding: 4px 0 5px calc(17px + 6.5px * 2);
margin-top: 10px;
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
transition: 0.2s ease;
}
#n-Discord a::after {
content: '';
background: url(images/Discord_icon.png) no-repeat;
background-size: 17px 13px;
filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
position: absolute;
left: 7px;
width: 17px;
height: 13px;
}
li#footer-poweredbyico {
display: none;
}
.mw-footer li {
color: gray;
}
.mw-notification,
.oo-ui-messageWidget>.oo-ui-labelElement-label {
background-color: #292929;
}
ul {
list-style-type: disc;
list-style-image: url(data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%23FFFFFF%22%2F%3E%0A%3C%2Fsvg%3E%0A);
}