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

Commit 797297e

Browse files
committed
amend(flex): use flex: 1 instead of complicated width property
1 parent 7acca43 commit 797297e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/core/style/layout.scss

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@
8282
}
8383

8484
[#{$flexName}] {
85-
flex: 0 0 100%;
86-
max-width: 100%;
85+
flex: 1;
8786
}
8887

8988
// (0-19) * 5 = 0-95%
@@ -108,10 +107,6 @@
108107
// Flex attributes for layout children
109108
// ------------------------------
110109

111-
[flex] {
112-
flex: 1;
113-
}
114-
115110
@include flex-properties-for-name();
116111
@include hide-rules-for-name();
117112

0 commit comments

Comments
 (0)