bootstrap-switch icon indicating copy to clipboard operation
bootstrap-switch copied to clipboard

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

Open nicolasmartin86 opened this issue 6 years ago • 5 comments

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 avatar Nov 07 '19 09:11 nicolasmartin86

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 :)

nicolasmartin86 avatar Nov 07 '19 09:11 nicolasmartin86

still broke

lucasvscn avatar Nov 21 '19 17:11 lucasvscn

same here ...

andrelec1 avatar Dec 04 '19 14:12 andrelec1

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

alxma avatar Jan 25 '20 19:01 alxma

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

greefhorst avatar Feb 20 '24 13:02 greefhorst