Topic: @extend scss by standard Bootstrap classes
egorstavskiy free asked 4 years ago
Hello. Im using the MDB-Gulp-Free_4.19.1 version of MDB and I've got the problem with using @extend in scss. Please help me to properly use it.
Expected behavior Trying to apply bootstrap class styles to my class in _custom-styles.scss (code example below)
Actual behavior Terminal outputs: "failed to @extend ".w-100". The selector ".w-100" was not found."
Resources (screenshots, code snippets etc.) .class {@extend .w-100;@extend .d-sm-none;}
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Opened
- ForumUser: Free
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: MacBook Pro 2017
- Browser: Safari
- OS: OSX Catalina 10.15.6
- Provided sample code: No
- Provided link: No
Tomek Makowski staff commented 4 years ago
Hi
Here you have SASS documentation, how to use
@extend
in a proper way.https://sass-lang.com/documentation/at-rules/extend
Regards