From 1b0bcfba939257c79df7b3cd7241c4f788edd4a6 Mon Sep 17 00:00:00 2001 From: daudix Date: Mon, 2 Sep 2024 02:15:45 +0300 Subject: [PATCH] Use "light" instead of @else --- content/tricks/index.md | 4 ++-- sass/_variables.scss | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/tricks/index.md b/content/tricks/index.md index d00b324..fd44de7 100644 --- a/content/tricks/index.md +++ b/content/tricks/index.md @@ -159,7 +159,7 @@ Hate the skeuomorphic edge highlight on all semi-transparent elements? Let's get @import "../themes/duckquill/sass/_variables.scss"; @include theme-variables using ($theme) { - @else { + @if $theme == "light" { --edge-highlight: 0 0 0 transparent; } } @@ -192,7 +192,7 @@ Want to set some nice image as a background? We got you covered: @import "../themes/duckquill/sass/_variables.scss"; @include theme-variables using ($theme) { - @if $theme =="dark" { + @if $theme == "dark" { --bg-color: linear-gradient(rgb(0 0 0 / 0.9), rgb(0 0 0 / 0.9)); } diff --git a/sass/_variables.scss b/sass/_variables.scss index d4192b5..fd22926 100644 --- a/sass/_variables.scss +++ b/sass/_variables.scss @@ -15,7 +15,7 @@ } @include theme-variables using ($theme) { - @if $theme =="dark" { + @if $theme == "dark" { // COLORS --bg-color: color-mix(in srgb, var(--primary-color) 10%, black); --fg-color: rgb(255 255 255);