~xdavidwu/xdavidwu.link

a251b868ca86f541afe377f5391ba1a9a75b97ff — xdavidwu 3 years ago 429c408
css: dark/light: restrict to the container div
1 files changed, 2 insertions(+), 2 deletions(-)

M assets/css/main.scss
M assets/css/main.scss => assets/css/main.scss +2 -2
@@ 32,13 32,13 @@ label[for="lightmode"] {
  @import "minimal-mistakes/colors"; // color overrides
}

input#lightmode:checked ~ * {
input#lightmode:checked ~ div {
  @import "minimal-mistakes/skins/{{ site.minimal_mistakes_light_skin | default: 'default' }}"; // skin
  @import "minimal-mistakes/colors"; // color overrides
}

@media (prefers-color-scheme: light) {
  input#darkmode:checked ~ * {
  input#darkmode:checked ~ div {
    @import "minimal-mistakes/skins/{{ site.minimal_mistakes_skin | default: 'default' }}"; // skin
    @import "minimal-mistakes/colors"; // color overrides
  }