Which is the correct syntax to define a mixin?

9. Which is the correct syntax to define a mixin?

  1. @mixin name {
      property: value;
      property: value;
      ...
    }
  2. @import mixin name {
      property: value;
      property: value;
      ...
    }
  3. @mixin name .sass{
      property: value;
      property: value;
      ...
    }
  4. @mixin name {
     @import _filename;
    }

Answer: A)

@mixin name {
  property: value;
  property: value;
  ...
}

Explanation:

The correct syntax to define a mixin is:

@mixin name {
  property: value;
  property: value;
  ...
}

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.