Skip to content

Commit 4243ee1

Browse files
authored
Merge pull request #391 from BeAPI/refactor/container-styles
feat (mixin): simplify container mixin
2 parents d265c6d + 10fa479 commit 4243ee1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/scss/02-tools/_m-container.scss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
*/
44

55
@mixin container {
6-
width: $container-wide;
7-
max-width: calc(100% - #{$external-gutter * 2});
8-
padding: 0;
9-
margin-right: auto;
10-
margin-left: auto;
6+
width: min(#{$container-wide}, 100% - #{$external-gutter * 2});
7+
margin-inline: auto;
118
}

0 commit comments

Comments
 (0)