bootstrap_package icon indicating copy to clipboard operation
bootstrap_package copied to clipboard

Responsive border classes

Open Hawkeye1909 opened this issue 3 years ago • 1 comments

Hi!

I'm trying to enable responsive classes for borders as described here. But when I add the code (see below) after importing the bootstrap5 theme, it gets ignored. If I import bootstrap-utlities first, add the code and after that import the theme, I get the responsive classes but lose some settings (e.g. negative margins)... Does anyone have an idea how to realize this?

$utilities: map-merge(
  $utilities, 
  (
    "border": map-merge(
      map-get($utilities, "border"),
      ( responsive: true ),
    ),
    "border-top": map-merge(
      map-get($utilities, "border-top"),
      ( responsive: true ),
    ),
    "border-end": map-merge(
      map-get($utilities, "border-end"),
      ( responsive: true ),
    ),
    "border-bottom": map-merge(
      map-get($utilities, "border-bottom"),
      ( responsive: true ),
    ),
    "border-start": map-merge(
      map-get($utilities, "border-start"),
      ( responsive: true ),
    ),
  )
);

Hawkeye1909 avatar May 17 '22 12:05 Hawkeye1909

Maybe this is connected to the problem "Sass has a limitation where once a default variable or map has been used, it cannot be updated" which is described under "New _maps.scss" on https://blog.getbootstrap.com/2022/05/13/bootstrap-5-2-0-beta/ and led the restructering the bootstrap people did.

peerlight avatar May 17 '22 13:05 peerlight