mediawiki-skins-Citizen/resources/skins.citizen.styles/common/darkmode.less

116 lines
1.9 KiB
Plaintext
Raw Normal View History

2020-03-16 05:07:11 +00:00
@media ( prefers-color-scheme: dark ) {
html,
body {
background: @dark-bg-0;
color: @dark-text-90;
}
::-webkit-scrollbar-thumb {
background-color: @dark-bg-60;
}
* {
scrollbar-color: @dark-bg-60 transparent;
}
pre,
code,
.mw-code {
color: @dark-text-90;
background-color: @dark-bg-10;
border: 1px solid @dark-bg-20;
}
input,
select,
textarea {
border: 1px solid @dark-bg-50;
background: @dark-bg-40;
color: @dark-text-80;
}
fieldset {
color: @dark-text-90;
border-color: @dark-bg-20;
}
legend {
color: @dark-text-100;
}
a,
2020-06-10 22:02:22 +00:00
a.external {
2020-03-16 05:07:11 +00:00
color: @dark-color-link;
}
a.new {
color: @dark-color-link-new !important;
}
.catlinks .mw-normal-catlinks > ul li a {
background-color: @dark-bg-10;
border-color: @dark-bg-10;
}
#p-namespaces ul li a {
background-color: @dark-bg-10;
border-color: @dark-bg-20;
&:hover {
background-color: @dark-bg-20;
}
}
table.wikitable tr:hover {
background-color: @dark-bg-10;
}
table.wikitable tr th,
table.wikitable tr td {
border-color: @dark-bg-20;
}
2020-06-06 00:12:39 +00:00
#page-tools #p-actions ul {
2020-03-16 05:07:11 +00:00
background: @dark-bg-50;
}
.mw-body .firstHeading,
.mw-body-content h1,
.mw-body-content h2,
.mw-body-content h3,
.mw-body-content h4,
.mw-body-content h5,
.mw-body-content h6 {
2020-03-16 05:07:11 +00:00
color: @dark-text-100;
}
2020-06-07 19:54:42 +00:00
table.wikitable {
2020-03-16 05:07:11 +00:00
color: @dark-text-90;
}
.mw-body-content #contentSub,
.mw-body-content #contentSub2,
.mw-body #siteSub,
2020-06-10 22:02:22 +00:00
table.wikitable tr th {
2020-03-16 05:07:11 +00:00
color: @dark-text-80 !important;
}
2020-06-10 22:02:22 +00:00
a.mw-wiki-title {
2020-03-16 05:07:11 +00:00
color: @dark-text-70;
}
#page-tools #p-views li > a:after,
2020-06-06 00:12:39 +00:00
#page-tools #p-actions:before,
2020-03-16 05:07:11 +00:00
.mw-editsection > a:before,
#pt-notifications-alert .mw-echo-notifications-badge:before,
#pt-notifications-notice .mw-echo-notifications-badge:before,
#p-namespaces ul li a:after {
filter: invert( 1 );
}
ol.references li:target,
sup.reference:target {
background-color: @accent-10;
}
2019-12-02 22:57:34 +00:00
}