Move pagelinks dark mode styles to pagelinks

This commit is contained in:
alistair3149 2020-06-12 14:04:35 -04:00
parent 5ac54f07dd
commit 2fb4705f29
2 changed files with 18 additions and 11 deletions

View file

@ -57,3 +57,20 @@
margin: 0~'calc((100vw - @{page-width}) / -2)'; margin: 0~'calc((100vw - @{page-width}) / -2)';
} }
} }
@media ( prefers-color-scheme: dark ) {
#p-namespaces {
ul li a {
background-color: @dark-bg-10;
border-color: @dark-bg-20;
&:hover {
background-color: @dark-bg-20;
}
&:after {
filter: invert( 1 );
}
}
}
}

View file

@ -47,15 +47,6 @@
color: @dark-color-link-new !important; color: @dark-color-link-new !important;
} }
#p-namespaces ul li a {
background-color: @dark-bg-10;
border-color: @dark-bg-20;
&:hover {
background-color: @dark-bg-20;
}
}
.mw-body .firstHeading, .mw-body .firstHeading,
.mw-body-content h1, .mw-body-content h1,
.mw-body-content h2, .mw-body-content h2,
@ -72,8 +63,7 @@
color: @dark-text-80 !important; color: @dark-text-80 !important;
} }
.mw-editsection > a:before, .mw-editsection > a:before {
#p-namespaces ul li a:after {
filter: invert( 1 ); filter: invert( 1 );
} }
} }