YulePale
YulePale

Reputation: 7666

Is it possible to apply the same scss styles to two mixins at the same?

Is it possible to apply the same scss styles to two mixins at the same time?

For example:

@include my-first-mixin; @include my-second-mixin{
    //my scss styles
}

The code above is what I am doing right now but one mixin always doesn't get the scss styles.

How can I solve this?

Upvotes: 1

Views: 808

Answers (1)

wiiiiilllllll
wiiiiilllllll

Reputation: 577

You could do the following:

@mixin core-styles {
  // my scss styles
}

@include my-first-mixin {
  @include core-styles
}

@include my-second-mixin {
  @include core-styles
}

Upvotes: 2

Related Questions