Skip to content

Is it possible to use arguments in mixins? #156

@lelukas

Description

@lelukas

Default sass implementation for mixins shows that you can set arguments like this:

@mixin rtl($property, $ltr-value, $rtl-value) {
  #{$property}: $ltr-value;

  [dir=rtl] & {
    #{$property}: $rtl-value;
  }
}

is it possible to achieve something similar with this plugin? I didn't quite understand the example in README

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions