Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 9f70430

Browse files
fix(layout): fix flew-grow and flex-shrink values for flex-xx='xx' markup
flexboxes should be 50% on flex-md=50 breakpoint and 33% on flex-gt-md=33 breakpoint,etc change flex-grow and flew-shrink values from '0' to '1' Thx to @MartinMuzatko for his help!
1 parent 77d4696 commit 9f70430

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/core/services/layout/layout.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -133,40 +133,40 @@
133133
$value : #{$i * 5 + '%'};
134134

135135
.#{$flexName}-#{$i * 5} {
136-
flex: 0 0 #{$value};
136+
flex: 1 1 #{$value};
137137
max-width: #{$value};
138138
max-height: 100%;
139139
box-sizing: border-box;
140140
}
141141

142142
.layout-row > .#{$flexName}-#{$i * 5},
143143
.layout#{$name}-row > .#{$flexName}-#{$i * 5} {
144-
flex: 0 0 #{$value};
144+
flex: 1 1 #{$value};
145145
max-width: #{$value};
146146
max-height: 100%;
147147
box-sizing: border-box;
148148
}
149149

150150
.layout-column > .#{$flexName}-#{$i * 5},
151151
.layout#{$name}-column > .#{$flexName}-#{$i * 5} {
152-
flex: 0 0 #{$value};
152+
flex: 1 1 #{$value};
153153
max-width: 100%;
154154
max-height: #{$value};
155155
box-sizing: border-box;
156156
}
157157
}
158158

159159
.layout-row, .layout#{$name}-row {
160-
> .#{$flexName}-33 , > .#{$flexName}-33 { flex: 0 0 33%; max-width: 33%; max-height: 100%; box-sizing: border-box; }
161-
> .#{$flexName}-34 , > .#{$flexName}-34 { flex: 0 0 34%; max-width: 34%; max-height: 100%; box-sizing: border-box; }
162-
> .#{$flexName}-66 , > .#{$flexName}-66 { flex: 0 0 66%; max-width: 66%; max-height: 100%; box-sizing: border-box; }
163-
> .#{$flexName}-67 , > .#{$flexName}-67 { flex: 0 0 67%; max-width: 67%; max-height: 100%; box-sizing: border-box; }
160+
> .#{$flexName}-33 , > .#{$flexName}-33 { flex: 1 1 33%; max-width: 33%; max-height: 100%; box-sizing: border-box; }
161+
> .#{$flexName}-34 , > .#{$flexName}-34 { flex: 1 1 34%; max-width: 34%; max-height: 100%; box-sizing: border-box; }
162+
> .#{$flexName}-66 , > .#{$flexName}-66 { flex: 1 1 66%; max-width: 66%; max-height: 100%; box-sizing: border-box; }
163+
> .#{$flexName}-67 , > .#{$flexName}-67 { flex: 1 1 67%; max-width: 67%; max-height: 100%; box-sizing: border-box; }
164164
}
165165
.layout-column, .layout#{$name}-column {
166-
> .#{$flexName}-33 , > .#{$flexName}-33 { flex: 0 0 33%; max-width: 100%; max-height: 33%; box-sizing: border-box; }
167-
> .#{$flexName}-34 , > .#{$flexName}-34 { flex: 0 0 34%; max-width: 100%; max-height: 34%; box-sizing: border-box; }
168-
> .#{$flexName}-66 , > .#{$flexName}-66 { flex: 0 0 66%; max-width: 100%; max-height: 66%; box-sizing: border-box; }
169-
> .#{$flexName}-67 , > .#{$flexName}-67 { flex: 0 0 67%; max-width: 100%; max-height: 67%; box-sizing: border-box; }
166+
> .#{$flexName}-33 , > .#{$flexName}-33 { flex: 1 1 33%; max-width: 100%; max-height: 33%; box-sizing: border-box; }
167+
> .#{$flexName}-34 , > .#{$flexName}-34 { flex: 1 1 34%; max-width: 100%; max-height: 34%; box-sizing: border-box; }
168+
> .#{$flexName}-66 , > .#{$flexName}-66 { flex: 1 1 66%; max-width: 100%; max-height: 66%; box-sizing: border-box; }
169+
> .#{$flexName}-67 , > .#{$flexName}-67 { flex: 1 1 67%; max-width: 100%; max-height: 67%; box-sizing: border-box; }
170170
}
171171
}
172172

0 commit comments

Comments
 (0)