Coder Social home page Coder Social logo

$negative-spacers: if($enable-negative-margins, negativify-map($spacers), null) !default; │ unknown function treated as plain CSS ╵ about bootstrap HOT 6 CLOSED

Zeddnyx avatar Zeddnyx commented on April 28, 2024
$negative-spacers: if($enable-negative-margins, negativify-map($spacers), null) !default; │ unknown function treated as plain CSS ╵

from bootstrap.

Comments (6)

Zeddnyx avatar Zeddnyx commented on April 28, 2024 1

Im sorry, I'm kinda new on creating an issue, I'll give u the test case later

from bootstrap.

github-actions avatar github-actions commented on April 28, 2024

Hello @Zeddnyx. Bug reports must include a live demo of the issue. Per our contributing guidelines, please create a reduced test case on CodePen or StackBlitz and report back with your link, Bootstrap version, and specific browser and Operating System details.

from bootstrap.

julien-deramond avatar julien-deramond commented on April 28, 2024

Thanks for reporting this issue @Zeddnyx
It would help if you could create the reduced test case mentioned in #39619 (comment) with CodePen, Stackblitz or any other tools.
Based on the code you shared, I'm wondering if the use of @use instead of @import couldn't be the cause here but without a reproducible project, it's difficult to say.

from bootstrap.

Zeddnyx avatar Zeddnyx commented on April 28, 2024

i solved by added this func inside _variable.scss

@function negativify-map($map) {
  $result: ();
  @each $key, $value in $map {
    @if $key != 0 {
      $result: map-merge($result, ('n' + $key: (-$value)));
    }
  }
  @return $result;
}

and after that i got error again but is different
the error:

SassError: Undefined mixin.
   ╷
54 │     @include alert-variant($background, $border, $color);
   │     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   ╵
  src/assets/scss/theme/_alert.scss 54:5  @import
  src/assets/scss/theme/_theme.scss 18:9  @import
  src/assets/scss/style.scss 20:9         root stylesheet

then i added

@mixin alert-variant($background, $border, $color) {
  background-color: $background;
  border-color: $border;
  color: $color;
}

inside _alert.scss
my web is work again but rn im facing new issue, my styled is wild awful like really awfull

all my page is being like that

idk what should i do to make it the style normal again

from bootstrap.

Zeddnyx avatar Zeddnyx commented on April 28, 2024

messyagain

from bootstrap.

Zeddnyx avatar Zeddnyx commented on April 28, 2024

U

from bootstrap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.