sassExtend / Inheritance


Syntax

  • @extend .<className>
  • @extend .<className>, .<className>
  • @extend .<className> !optional
  • @extend .<className>, .<className> !optional

Parameters

ParameterDetails
classNameThe class that you want to extend.

Remarks

Sass' @extend rule allows you to share CSS properties across multiple classes, keeping code DRY and easier to read.