mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-14 11:15:33 +00:00
Provide a visual hint that night mode is being triggered in Vector
Working on feature flag not having this is causing confusion. This will speed up development by allowing me to more easily determine what mode I am in at all times. Change-Id: I5d4168bbf7df41f4754b36c6e6aa4955dbc609bb
This commit is contained in:
parent
2470c2b332
commit
4a2e3f8917
|
@ -16,6 +16,11 @@
|
|||
:root {
|
||||
--font-size-medium: unit( @font-size-small, rem );
|
||||
--line-height-medium: @line-height-small;
|
||||
--background-color-base: @background-color-base;
|
||||
}
|
||||
|
||||
.night-mode-palette() {
|
||||
--background-color-base: #101418;
|
||||
}
|
||||
|
||||
.vector-feature-custom-font-size-clientpref-1 {
|
||||
|
@ -27,3 +32,13 @@
|
|||
--font-size-medium: unit( @font-size-x-large, rem );
|
||||
--line-height-medium: 1.3;
|
||||
}
|
||||
|
||||
html.skin-night-mode-clientpref-1 {
|
||||
.night-mode-palette();
|
||||
}
|
||||
|
||||
@media ( prefers-color-scheme: dark ) {
|
||||
html.skin-night-mode-clientpref-2 {
|
||||
.night-mode-palette();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
@padding-blockquote: 8px 32px;
|
||||
|
||||
@background-color-secondary--modern: #f8f9fa;
|
||||
@background-color-page-container: @background-color-base;
|
||||
@background-color-page-container: var( --background-color-base );
|
||||
|
||||
// Navigation
|
||||
@background-color-secondary: #f6f6f6;
|
||||
|
|
Loading…
Reference in a new issue