File tree Expand file tree Collapse file tree 5 files changed +81
-1
lines changed Expand file tree Collapse file tree 5 files changed +81
-1
lines changed Original file line number Diff line number Diff line change 20
20
flex-basis : 0% !important ; /* 2 */
21
21
}
22
22
23
+ /**
24
+ * An alternative method to make an element fill the remaining space.
25
+ * Distributes space based on the initial width and height of the element
26
+ *
27
+ * http://www.w3.org/TR/css-flexbox/images/rel-vs-abs-flex.svg
28
+ */
29
+
30
+ .u-lg-sizeFillAlt {
31
+ flex : 1 1 auto !important ;
32
+ flex-basis : auto !important ;
33
+ }
34
+
23
35
/**
24
36
* Make an element the width of its parent.
25
37
*/
Original file line number Diff line number Diff line change 20
20
flex-basis : 0% !important ; /* 2 */
21
21
}
22
22
23
+ /**
24
+ * An alternative method to make an element fill the remaining space.
25
+ * Distributes space based on the initial width and height of the element
26
+ *
27
+ * http://www.w3.org/TR/css-flexbox/images/rel-vs-abs-flex.svg
28
+ */
29
+
30
+ .u-md-sizeFillAlt {
31
+ flex : 1 1 auto !important ;
32
+ flex-basis : auto !important ;
33
+ }
34
+
23
35
/**
24
36
* Make an element the width of its parent.
25
37
*/
Original file line number Diff line number Diff line change 20
20
flex-basis : 0% !important ; /* 2 */
21
21
}
22
22
23
+ /**
24
+ * An alternative method to make an element fill the remaining space.
25
+ * Distributes space based on the initial width and height of the element
26
+ *
27
+ * http://www.w3.org/TR/css-flexbox/images/rel-vs-abs-flex.svg
28
+ */
29
+
30
+ .u-sm-sizeFillAlt {
31
+ flex : 1 1 auto !important ;
32
+ flex-basis : auto !important ;
33
+ }
34
+
23
35
/**
24
36
* Make an element the width of its parent.
25
37
*/
Original file line number Diff line number Diff line change 19
19
flex-basis : 0% !important ; /* 2 */
20
20
}
21
21
22
+ /**
23
+ * An alternative method to make an element fill the remaining space.
24
+ * Distributes space based on the initial width and height of the element
25
+ *
26
+ * http://www.w3.org/TR/css-flexbox/images/rel-vs-abs-flex.svg
27
+ */
28
+
29
+ .u-sizeFillAlt {
30
+ flex : 1 1 auto !important ;
31
+ flex-basis : auto !important ;
32
+ }
33
+
22
34
/**
23
35
* Make an element the width of its parent.
24
36
*/
Original file line number Diff line number Diff line change 32
32
< div class ="Test ">
33
33
< h1 class ="Test-title "> SUIT CSS: < a href ="https://github.com/suitcss/utils-size "> sizing utility</ a > tests</ h1 >
34
34
35
- < h2 class ="Test-describe "> .u-sizeFill</ h2 >
35
+ < h2 class ="Test-describe "> .u-sizeFill / .u-sizeFillAlt </ h2 >
36
36
< h3 class ="Test-it "> fills remaining space</ h3 >
37
37
< div class ="Test-run ">
38
38
< div class ="u-flex ">
@@ -75,6 +75,38 @@ <h3 class="Test-it">distributes space evenly</h3>
75
75
</ div >
76
76
</ div >
77
77
78
+ < h2 class ="Test-describe "> .u-sizeFillAlt</ h2 >
79
+ < h3 class ="Test-it "> distributes space based on initial width of item</ h3 >
80
+ < div class ="Test-run ">
81
+ < div class ="u-flex ">
82
+ < div class ="u-sizeFillAlt u-highlight ">
83
+ Lorem ipsum dolor sit amet, probo option similique vix te, ei summo
84
+ aliquip nec. Atqui diceret ceteros. Lorem ipsum dolor sit amet.
85
+ </ div >
86
+ < div class ="u-sizeFillAlt u-highlight ">
87
+ content
88
+ </ div >
89
+ < div class ="u-sizeFillAlt u-highlight ">
90
+ content
91
+ </ div >
92
+ </ div >
93
+ </ div >
94
+ < div class ="Test-run ">
95
+ < div class ="u-flex ">
96
+ < div class ="dev-Box "> </ div >
97
+ < div class ="u-sizeFillAlt u-highlight ">
98
+ Lorem ipsum dolor sit amet, probo option similique vix te, ei summo
99
+ aliquip nec. Atqui diceret ceteros.
100
+ </ div >
101
+ < div class ="u-sizeFillAlt u-highlight ">
102
+ content
103
+ </ div >
104
+ < div class ="u-sizeFillAlt u-highlight ">
105
+ content
106
+ </ div >
107
+ </ div >
108
+ </ div >
109
+
78
110
< h2 class ="Test-describe "> .u-sizeFull</ h2 >
79
111
< h3 class ="Test-it "> fits the full-width of the container</ h3 >
80
112
< div class ="Test-run ">
You can’t perform that action at this time.
0 commit comments