Flex basis
See original GitHub issueI thinks You can add more flex utilities.
Here is for flex-basis
. What does it do?
It stretches div to full width.
It could be useful (I needed it as in screenshots).
There could be also variations like 25, 50, 75 (as in w-x
)
.flex-basis-100 {
flex-basis: 100% !important;
}
.flex-basis-0 {
flex-basis: auto !important;
}
@each $breakpoint in map-keys($grid-breakpoints) {
@include media-breakpoint-up($breakpoint) {
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
.flex#{$infix}-basis-100 {
flex-basis: 100% !important;
}
.flex#{$infix}-basis-0 {
flex-basis: auto !important;
}
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
flex-basis - CSS: Cascading Style Sheets - MDN Web Docs
The flex-basis CSS property sets the initial main size of a flex item. It sets the size of the content box unless otherwise...
Read more >CSS flex-basis property - W3Schools
The flex-basis property specifies the initial length of a flexible item. Note: If the element is not a flexible item, the flex-basis property...
Read more >flex-basis - CSS-Tricks
The flex-basis property is a sub-property of the Flexible Box Layout module. It specifies the initial size of the flex item, ...
Read more >Flex Basis Property in Flexbox - freeCodeCamp
The flex-basis property defines the size of the flex-item along the main axis of the flex container. The main axis is horizontal if ......
Read more >Flex Basis - Tailwind CSS
The default flex basis scale is a combination of the default spacing scale as well as a set of percentage based values. You...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just to let you know that this is already possible with the current available utilities: https://codepen.io/anon/pen/zMVOyK
@piernik Confirm, there are no reponsive sizing utilities and according to this comment there are no plans to add responsive variants any time soon (for sizing things).