Skip to content

Commit

Permalink
Added container mixin with responsive sizes
Browse files Browse the repository at this point in the history
Implemented a new SCSS mixin named 'container' to handle different container sizes: small, medium, and large. This mixin allows for dynamic styling based on the specified size parameter. Styles for 'small' and 'large' sizes are structured for future customization, while the 'medium' size is currently set with a max-width of 1440px and centered margin.
  • Loading branch information
kasperbirch1 committed Nov 30, 2023
1 parent e9eb638 commit b4252b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions base.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import "./src/styles/scss/reset";
@import "./src/stories/Library/colors/color-variables";
@import "./src/styles/scss/skeleton";
@import "./src/styles/scss/container";

// The imports below are not advised to be moved around, because
// they cross-reference various defined variables between each other.
Expand Down
10 changes: 10 additions & 0 deletions src/styles/scss/container.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@mixin container($size) {
@if $size == small {
// Styles for small size
} @else if $size == medium {
max-width: 1440px;
margin: 0 auto;
} @else if $size == large {
// Styles for large size
}
}

0 comments on commit b4252b3

Please sign in to comment.