Skip to content

Commit

Permalink
sass function
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Nov 29, 2023
1 parent 1f51bda commit 2a90254
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions styles/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ $mobile-height: get('viewports.mobile.height');
@content;
}
}

@function columns($columns) {
@return calc(
(#{$columns} * var(--layout-column-width)) +
((#{$columns} - 1) * var(--layout-columns-gap))
);
}
7 changes: 0 additions & 7 deletions styles/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,3 @@ $layout: (
grid-gap: var(--layout-columns-gap);
width: 100%;
}

@function columns($columns) {
@return calc(
(#{$columns} * var(--layout-column-width)) +
((#{$columns} - 1) * var(--layout-columns-gap))
);
}

1 comment on commit 2a90254

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"⚡️ Lighthouse report for the changes in this commit:

🟠 Performance: 69
🟢 Accessibility: 97
🟢 Best practices: 92
🟠 SEO: 75
🔴 PWA: 40

Lighthouse ran on https://satus-ma83vi9r9-studio-freight.vercel.app/"

Please sign in to comment.