Bttstrp / bootstrap-switch

Turn checkboxes and radio buttons in toggle switches.
MIT License
5.09k stars 1.45k forks source link

Bug when using Bootstrap 4 sass - scss file integration with the switch #715

Open nicolasmartin86 opened 4 years ago

nicolasmartin86 commented 4 years ago

Hello,

I've tried using the bootstrap switch scss file "src/sass/bootstrap4/bootstrap-switch.scss"

The 2 lines of @import at the beginning of the file can't be fetched.

It works when I comment them, the switch appears correctly.

I don't see where those imports are necessary and being used. Could we release them commented?

Line 14 and 15 @import "../bootstrap-4.2.1/functions"; @import "../bootstrap-4.2.1/variables";

Maybe I didn't import correctly bootstrap, do I need a specific config?

Thanks a lot

Nicolas

nicolasmartin86 commented 4 years ago

or change the path to @import "../../../../bootstrap/scss/functions"; @import "../../../../bootstrap/scss/variables";

it's the only way on my config in node_modules to fetch the correct files :)

lucasvscn commented 4 years ago

still broke

andrelec1 commented 4 years ago

same here ...

alxma commented 4 years ago

correct path is: @import "../../../../bootstrap/scss/_functions"; @import "../../../../bootstrap/scss/_variables";

to see the right path - browse to bootstrap/scss folder and see if is: functions or _functions. In version 4.4.1 is _functions.scss

greefhorst commented 6 months ago

@nicolasmartin86 i got the same error when using vite to compile my assets, see #737 for a patch proposal