fantasticon icon indicating copy to clipboard operation
fantasticon copied to clipboard

Enable placeholder usage within Sass & SCSS templates

Open brenner-company opened this issue 2 years ago • 0 comments

A small change that allows us to use the icon-font styling as a placeholder within Sass & SCSS templates so it can be easily extended. For example: elements that are maintained externally (in an extension or a plugin) and are not changeable (regarding HTML structure).

As an example (using SCSS template):

.element-of-extension {
  &:before {
    @extend %[base name]-font-style; // extends all the necessary icon-font styling
    @extend .[prefix]-[icon name]; // extends specific icon
  }
}

brenner-company avatar Apr 08 '22 13:04 brenner-company