Skip to content

Commit 8cfad38

Browse files
committed
feat (mixin): simplify container mixin
1 parent 4cb4e2d commit 8cfad38

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)