-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(sass): move
contains
function to a separate file and updat…
…e imports accordingly Error: - The `functions` and `mixins` must be in separate files. Solution: - Move the `contains` function from `_tools-media.scss` to a new file `_tools-contains.scss` for better separation of concerns. - Update `tools/_tools-media.scss` to remove the `contains` function and keep only media query mixins. - Update `styles.scss` to include the new `tools/_tools-contains.scss` file using `@forward`, allowing better separation of functions and mixins.
- Loading branch information
1 parent
f2ac117
commit c0a3504
Showing
3 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// TOOLS - FUNCTIONS | ||
// CONTAINS | ||
// ================================================= | ||
@use "sass:list"; | ||
|
||
@function contains($list, $item) { | ||
@return list.index($list, $item) != null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters