Skip to content

Commit

Permalink
fix: sass deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMyst committed Jan 7, 2025
1 parent 8f80fd0 commit ceb45eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions client/src/variables.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:list';

$fs-small: 0.9rem;
$fs-normal: 1rem;
$fs-medium: 1.2rem;
Expand All @@ -12,10 +14,10 @@ $break-med: 620px;
@mixin transition($properties...) {
$transition: ();
@each $property in $properties {
$transition: append($transition, ($property 0.1s ease-in-out), $separator: comma);
$transition: list.append($transition, ($property 0.1s ease-in-out), $separator: comma);
}

@if length($properties) == 0 {
@if list.length($properties) == 0 {
$transition: all 0.1s ease-in-out;
}

Expand Down
3 changes: 2 additions & 1 deletion client/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ const config = {
css: {
preprocessorOptions: {
scss: {
additionalData: '@use "src/variables.scss" as *;'
additionalData: '@use "/src/variables.scss" as *;',
api: 'modern-compiler',
}
}
},
Expand Down

0 comments on commit ceb45eb

Please sign in to comment.