Skip to content

Commit 55419b3

Browse files
committed
fix(MdLayout): change gutter from padding to margin
1 parent 1a389b0 commit 55419b3

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

src/components/MdLayout/layout.scss

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
margin: 0 auto;
1717
}
1818

19+
&.md-wrap {
20+
flex-wrap: wrap;
21+
}
22+
1923
@include md-rows-and-md-columns();
2024
@include md-layout-align();
2125
@include md-flex();

src/components/MdLayout/mixins.scss

+17-11
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@
7373
.md-gutter {
7474
&.md-layout-row#{$breakpoint} {
7575
> [class*="md-flex"] + [class*="md-flex"] {
76-
padding-top: 0;
77-
padding-left: $size;
76+
margin-top: 0;
77+
margin-left: $size;
7878
}
7979
}
8080

8181
&.md-layout-column#{$breakpoint} {
8282
> [class*="md-flex"] + [class*="md-flex"] {
83-
padding-top: $size;
84-
padding-left: 0;
83+
margin-top: $size;
84+
margin-left: 0;
8585
}
8686
}
8787
}
@@ -98,24 +98,30 @@
9898
}
9999

100100
.md-flex#{$size}-33 {
101-
min-width: 33.33333%;
102-
flex: 0 1 33.33333%;
101+
min-width: 33.3333%;
102+
flex: 0 1 33.3333%;
103103
}
104104

105105
.md-flex#{$size}-66 {
106-
min-width: 33.33333%;
107-
flex: 0 1 66.66666%;
106+
min-width: 66.6666%;
107+
flex: 0 1 66.6666%;
108+
}
109+
110+
.md-flex#{$size}-100 {
111+
min-width: 100%;
112+
margin: 0 !important;
113+
flex: 1 1 100%;
108114
}
109115

110116
.md-flex-offset#{$size}-33 {
111-
margin-left: 33.33333%;
117+
margin-left: 33.3333%;
112118
}
113119

114120
.md-flex-offset#{$size}-66 {
115-
margin-left: 66.66666%;
121+
margin-left: 66.6666%;
116122
}
117123

118-
@for $i from 1 through 20 {
124+
@for $i from 1 through 19 {
119125
$counter: $i * 5;
120126

121127
.md-flex#{$size}-#{$counter} {

0 commit comments

Comments
 (0)