Tried all day to @import Bootstrap at block-level using LESS, i.e. a scoped @import, to use the @import statement inside a selector. I more I try the more I don't understand CSS π
LESS Example
This is an example of using LESS with inline styles and Bootstrap for the button.
Jason Leow
Author
Yeah apparently! I jusy learned it too, but still figuring out how to do it properly.. @imports in CSS has to be on top of file yes, but apparently preprocessors allow for scoped @imports, eg https://sass-lang.com/documentation/at-rules/import
You can scope imports in LESS? I thought all imports have to be global, ie, at the top of the file.
Please sign in to leave a comment.