refactor: rename --switcher-offet CSS variable to --offset-sides

This commit is contained in:
2023-06-11 22:39:23 +02:00
parent 09b1af7e2e
commit 738a7728c0
2 changed files with 4 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
--container-width: #{$container-width}; --container-width: #{$container-width};
// Offsets // Offsets
--switcher-offset: 16px; --offset-sides: 16px;
// Animation // Animation
--ease-quart: cubic-bezier(.165, .84, .44, 1); --ease-quart: cubic-bezier(.165, .84, .44, 1);
@@ -12,6 +12,6 @@
@include bp (sm) { @include bp (sm) {
// Offsets // Offsets
--switcher-offset: clamp(20px, 3vw, 40px); --offset-sides: clamp(20px, 3vw, 40px);
} }
} }

View File

@@ -3,8 +3,8 @@
$shadow-color: rgba(0, 0, 0, 0.05); $shadow-color: rgba(0, 0, 0, 0.05);
position: fixed; position: fixed;
z-index: 100; z-index: 100;
bottom: var(--switcher-offset); bottom: var(--offset-sides);
left: var(--switcher-offset); left: var(--offset-sides);
pointer-events: none; pointer-events: none;
@include bp (md) { @include bp (md) {