@extend scss by standard Bootstrap classes


Topic: @extend scss by standard Bootstrap classes

egorstavskiy free asked 1 year 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;}


Tomek Makowski staff commented 1 year ago

Hi

Here you have SASS documentation, how to use @extend in a proper way.

https://sass-lang.com/documentation/at-rules/extend

Regards


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue
  • User: 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