Skip to content

Commit cde53a8

Browse files
k-utsumimdo
authored andcommitted
🔥 Remove container duplication
1 parent 286f16b commit cde53a8

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

‎scss/_containers.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44

55
@if $enable-grid-classes {
66
// Single container class with breakpoint max-widths
7-
.container {
8-
@include make-container();
9-
@include make-container-max-widths();
10-
}
11-
7+
.container,
128
// 100% wide container at all breakpoints
139
.container-fluid {
1410
@include make-container();

‎scss/mixins/_container.scss

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,3 @@
77
margin-right: auto;
88
margin-left: auto;
99
}
10-
11-
12-
// For each breakpoint, define the maximum width of the container in a media query
13-
@mixin make-container-max-widths($max-widths: $container-max-widths, $breakpoints: $grid-breakpoints) {
14-
@each $breakpoint, $container-max-width in $max-widths {
15-
@include media-breakpoint-up($breakpoint, $breakpoints) {
16-
max-width: $container-max-width;
17-
}
18-
}
19-
}

0 commit comments

Comments
 (0)