question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I 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;
    }
  }
}

bootstrap-basis-md bootstrap-basis-sm

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
florianlacreusecommented, Dec 5, 2018

Just to let you know that this is already possible with the current available utilities: https://codepen.io/anon/pen/zMVOyK

1reaction
florianlacreusecommented, Dec 6, 2018

@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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found