Skip to content

Enable placeholder usage within Sass & SCSS templates#374

Open
brenner-company wants to merge 2 commits into
tancredi:masterfrom
brenner-company:master
Open

Enable placeholder usage within Sass & SCSS templates#374
brenner-company wants to merge 2 commits into
tancredi:masterfrom
brenner-company:master

Conversation

@brenner-company

Copy link
Copy Markdown

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
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant