From acb0c1788976af1601ac300b9206e1c898a29d5b Mon Sep 17 00:00:00 2001
From: Andreas Deininger <andreas@deininger.net>
Date: Sat, 07 Jun 2025 12:57:26 +0000
Subject: [PATCH] chore: migrate libsass to dartsass (#562)

---
 assets/scss/partials/components/_optionswitch.scss |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/assets/scss/partials/components/_optionswitch.scss b/assets/scss/partials/components/_optionswitch.scss
index faf4d92..3866ae9 100644
--- a/assets/scss/partials/components/_optionswitch.scss
+++ b/assets/scss/partials/components/_optionswitch.scss
@@ -1,3 +1,6 @@
+@use 'modules/color_theme' as color;
+@use 'modules/config' as conf;
+
 .optionswitch {
   position: relative;
 
@@ -12,14 +15,14 @@
     padding: 0;
     position: relative;
 
-    @include desktop {
+    @include conf.desktop {
       border-radius: 5px;
       position: absolute;
       top: 32px;
 
-      @include themed() {
-        background: t('primary-lighter');
-        box-shadow: t('shadow');
+      @include color.themed() {
+        background: color.t('primary-lighter');
+        box-shadow: color.t('shadow');
       }
     }
 
@@ -32,11 +35,11 @@
       white-space: nowrap;
       padding-top: 24px;
 
-      @include themed() {
-        color: t('primary');
+      @include color.themed() {
+        color: color.t('primary');
       }
 
-      @include desktop {
+      @include conf.desktop {
         padding: 12px;
       }
     }
@@ -55,10 +58,10 @@
       transform: rotate(45deg) translateY(0px) translatex(10px);
       width: 14px;
 
-      @include themed() {
-        background: t('primary-lighter');
-        box-shadow: t('shadow');
-        border-color: t('primary-lighter');
+      @include color.themed() {
+        background: color.t('primary-lighter');
+        box-shadow: color.t('shadow');
+        border-color: color.t('primary-lighter');
       }
     }
   }
@@ -71,7 +74,7 @@
         }
 
         &__triangle {
-          @include desktop {
+          @include conf.desktop {
             display: block;
           }
         }

--
Gitblit v1.10.0