mediawiki-skins-Citizen/resources/components/darkmode.less

208 lines
4.8 KiB
Plaintext
Raw Normal View History

2019-12-02 21:05:23 +00:00
//
// Citizen - Dark mode Styles
// https://starcitizen.tools
//
@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;
}
2019-12-02 21:24:50 +00:00
pre,
code,
.mw-code {
color: @dark-text-90;
background-color: @dark-bg-10;
border: 1px solid @dark-bg-20;
}
2019-12-02 23:32:16 +00:00
input,
select {
border: 1px solid @dark-bg-50;
background: @dark-bg-40;
color: @dark-text-80;
}
2019-12-03 02:39:36 +00:00
fieldset {
border: 1px solid @dark-bg-20;
}
2019-12-02 21:05:23 +00:00
a,
a:visited,
2019-12-03 02:39:36 +00:00
a.external,
2019-12-02 21:05:23 +00:00
.mw-body-content #mw-content-text .mw-parser-output #toc li.active {
color: @dark-color-link;
}
.mw-body-content #mw-content-text .mw-parser-output #toc li.active {
color: @dark-color-link !important;
}
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;
}
2019-12-02 21:32:20 +00:00
#mw-header-menu-drawer-container a:hover {
background-color: @dark-bg-60;
color: @dark-text-90 !important;
;
}
2019-12-02 21:24:50 +00:00
table.wikitable tr:hover {
background-color: @dark-bg-10;
}
table.wikitable tr th,
table.wikitable tr td {
border-color: @dark-bg-20;
}
2019-12-02 21:05:23 +00:00
#mw-header-menu-drawer {
background: @dark-bg-40;
}
2019-12-03 04:19:33 +00:00
#page-tools #p-actions>nav ul {
2019-12-02 21:05:23 +00:00
background: @dark-bg-50;
}
2019-12-03 04:19:33 +00:00
.suggestions-results {
2019-12-03 04:36:55 +00:00
background: @dark-bg-50 !important;
2019-12-03 04:19:33 +00:00
}
2019-12-02 23:32:16 +00:00
#site-search #p-search #searchInput,
2019-12-02 21:05:23 +00:00
#mw-header-menu-drawer-container #mw-user-links #p-personal {
border-color: @dark-bg-50;
}
2019-12-03 04:13:43 +00:00
.suggestions .suggestions-special {
background: @dark-bg-60;
}
2019-12-02 21:05:23 +00:00
#site-search #search-icon-container #search-icon {
2019-12-02 21:24:50 +00:00
border-color: @base-100;
2019-12-02 21:05:23 +00:00
}
#mw-header-menu-toggle span,
#site-search #search-icon-container #search-icon:before,
#site-search #search-icon-container #search-icon:after,
#site-search>input:checked:hover~#search-icon-container #search-icon {
2019-12-02 21:24:50 +00:00
background: @base-100;
2019-12-02 21:05:23 +00:00
}
.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,
#mw-header-menu .mw-wiki-title,
#mw-header-menu-drawer-container h3 {
color: @dark-text-100;
}
2019-12-03 04:36:55 +00:00
table.wikitable {
color: @dark-text-90;
}
2019-12-03 04:13:43 +00:00
.suggestions a.mw-searchSuggest-link,
.suggestions a.mw-searchSuggest-link:hover,
.suggestions a.mw-searchSuggest-link:active,
2019-12-03 04:19:33 +00:00
.suggestions a.mw-searchSuggest-link:focus,
2019-12-03 04:36:55 +00:00
.suggestions-result,
.suggestions-special .special-query {
color: @dark-text-90 !important;
}
.suggestions-result-current {
background: #2a4b8d !important;
color: @dark-text-100 !important;
2019-12-02 21:24:50 +00:00
}
2019-12-02 21:55:35 +00:00
.mw-body-content #contentSub,
.mw-body-content #contentSub2,
2019-12-02 21:05:23 +00:00
.mw-body #siteSub,
2019-12-02 21:24:50 +00:00
table.wikitable tr th,
2019-12-02 21:05:23 +00:00
#mw-header-menu-drawer-container a,
.mw-body-content #mw-content-text .mw-parser-output #toc a:hover {
color: @dark-text-80 !important;
}
a.mw-wiki-title,
.mw-body-content #mw-content-text .mw-parser-output #toc a {
color: @dark-text-70;
}
.mw-body-content #mw-content-text .mw-parser-output #toc:before,
.mw-body-content #mw-content-text .mw-parser-output #toc:after {
background: linear-gradient(@dark-bg-0, rgba(0, 0, 0, 0.001));
}
#page-tools #p-views li>a:after,
#page-tools #p-actions>nav:before,
#mw-header-menu-drawer-container a:after,
.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);
}
2019-12-02 22:57:34 +00:00
}
2019-12-02 21:05:23 +00:00
2019-12-02 22:57:34 +00:00
@media only screen and (max-width: 1290px) and (prefers-color-scheme: dark) {
2019-12-02 21:05:23 +00:00
2019-12-02 23:32:16 +00:00
.mw-header-container {
2019-12-02 22:57:34 +00:00
background: @dark-bg-0;
}
2019-12-02 21:05:23 +00:00
2019-12-02 23:32:16 +00:00
.mw-body-content #mw-content-text .mw-parser-output #toc {
background: @dark-bg-40;
}
2019-12-02 22:57:34 +00:00
.mw-header-container.nav-down {
border-color: @dark-bg-20;
2019-12-02 21:05:23 +00:00
}
2019-12-02 21:32:20 +00:00
2019-12-02 22:57:34 +00:00
}
2019-12-02 21:32:20 +00:00
2019-12-02 22:57:34 +00:00
@media only screen and (max-width: 1450px) and (prefers-color-scheme: dark) {
2019-12-02 21:32:20 +00:00
2019-12-02 23:46:21 +00:00
.mw-body-content #mw-content-text .mw-parser-output #toc {
2019-12-02 21:32:20 +00:00
2019-12-02 23:46:21 +00:00
.toctoggle a {
background-color: @dark-bg-50;
2019-12-02 22:57:34 +00:00
2019-12-02 23:46:21 +00:00
&:before {
filter: invert(1);
}
&:hover,
&:focus {
background-color: @accent-10;
}
}
2019-12-02 21:32:20 +00:00
}
2019-12-02 23:46:21 +00:00
2019-12-02 21:05:23 +00:00
}