Home » Less Passing Ruleset to mixin

Less Passing Ruleset to mixin

by Online Tutorials Library

Passing Rulesets to Mixins

You have to define the structure of the mixins where you want to pass the ruleset. A normal detached ruleset contains ordinary rulesets like properties, nested rulesets, variable declaration, mixins etc. It is stored in a variable and included into other structure that copies all the rulesets.

Let’s take an example to demonstrate how to pass rulesets to mixins in Less files.

Create a HTML file named “simple.html”, having the following data.

HTML file: simple.html

You may also like