bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Suggest a new feature - add breakpoints to ratios

Open jellestekelenburg opened this issue 2 years ago • 4 comments

Prerequisites

Proposal

Ratios inside of bootstrap work fine but when you only want a certain ratio from lets say breakpoint-lg you're stuck in the styling of the .ratio class.

I suggest maybe redoing the whole ratio feature because of the new aspect-ratio propperty in css.

I'd love to atleast see a fix to have something like .ratio-lg to have the ratio class active from 992px

Motivation and context

It has become a roadblock and i've had to stop using th class altogether and create my own. Which isn't that bad but for something like Bootstrap you would like this to work out of the box.

jellestekelenburg avatar Nov 29 '23 14:11 jellestekelenburg

@media (min-width: 992px) {
  .ratio-lg {
    --#{$prefix}aspect-ratio:  @#{$large-screen-ratio};
  }
}

royGarima1518 avatar Nov 29 '23 19:11 royGarima1518

Will come with v6 when we move ratio to utilities.

mdo avatar Dec 09 '23 21:12 mdo