Skip to content

Commit

Permalink
refactor(styles): migrate from @import to @use for SCSS variables (#1030
Browse files Browse the repository at this point in the history
)
  • Loading branch information
NoamGaash authored Feb 12, 2025
1 parent 618ae43 commit 8009135
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/App.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// import hebbo:
@use './resources/variables';
@use './shared/shared.css';
@import 'https://fonts.googleapis.com/css?family=Heebo:400,500,700&display=swap';
@import './resources/variables';
@import './shared/shared.css';

.main {
flex-direction: row;
Expand Down
2 changes: 1 addition & 1 deletion src/layout/sidebar/menu/menu.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../../resources/variables';
@use '../../../resources/variables' as *;

.menu {
flex-direction: column;
Expand Down
1 change: 0 additions & 1 deletion src/layout/sidebar/sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '../../resources/variables';

.hideOnMobile {
display: none;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/components/DisplayGapsPercentage.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../resources/variables';
@use '../../resources/variables' as *;

.gaps-percentage-displayed {
font-weight: bold;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/dashboard/DashboardPage.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import "../../resources/variables";
@use "../../resources/variables" as *;

.title {
font-weight: 500;
Expand Down

0 comments on commit 8009135

Please sign in to comment.