Skip to content

Commit

Permalink
refactor(sass): rename and move files from settings and tools fol…
Browse files Browse the repository at this point in the history
…ders to `abstracts` folder

Steps:
- Rename `settings` folder to `variables`.
- Move the `contains` function to `abstracts/functions/` and updated imports to reflect this change.
- Move the `media` mixin to `abstracts/mixins/` and updated imports to reflect this change.
- Move `variables`, `functions`, and `mixins` to the `abstracts` folder for clearer organization.
- Update the main `styles.scss` to import all the necessary partials from the `abstracts` folder using `@forward`.
- Align the title of the header comments with the respective folder names for clarity.
- Separate the sections of sass variables by comments
  • Loading branch information
beatrizsmerino committed Oct 22, 2024
1 parent c0a3504 commit aa844ab
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// TOOLS - FUNCTIONS
// ABSTRACTS - FUNCTIONS
// CONTAINS
// =================================================
@use "sass:list";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// TOOLS - MIXINS
// ABSTRACTS - MIXINS
// MEDIA
// =================================================
@use "sass:map";
@use "sass:math";
@use "sass:meta";
@use "../tools/tools-contains" as *;
@use "../settings/settings-breakpoints" as *;
@use "../functions/abstracts-functions-contains" as *;
@use "../variables/abstracts-variables-breakpoints" as *;

@mixin media($breakpoint, $rule: "max", $dimension: "width") {
$rules: "max", "min";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SETTINGS - VARIABLES
// ABSTRACTS - VARIABLES
// BREAKPOINTS
// =================================================

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SETTINGS - VARIABLES
// ABSTRACTS - VARIABLES
// COLORS
// =================================================
@use "sass:color";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SETTINGS - VARIABLES
// ABSTRACTS - VARIABLES
// FONTS
// =================================================

Expand Down
17 changes: 8 additions & 9 deletions src/assets/scss/styles.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// PARTIALS SCSS
// ===============================================================================

// SETTINGS
// ABSTRACTS
// ----------------------------------------------------------------------
@forward "settings/settings-breakpoints";
@forward "settings/settings-colors";
@forward "settings/settings-fonts";

// TOOLS
// ----------------------------------------------------------------------
@forward "tools/tools-contains";
@forward "tools/tools-media";
@forward "abstracts/functions/abstracts-functions-contains";
// -------------------
@forward "abstracts/mixins/abstracts-mixins-media";
// -------------------
@forward "abstracts/variables/abstracts-variables-breakpoints";
@forward "abstracts/variables/abstracts-variables-colors";
@forward "abstracts/variables/abstracts-variables-fonts";

0 comments on commit aa844ab

Please sign in to comment.