Skip to content

Creating own rules [sugar] #1483

Closed
Closed
@dangreen

Description

@dangreen

What about this feature?
Example:

@rule box(@width, @height: @width) { // or +box(@width, @height: @width) or another prefix symbol
    width: @width;
    height: @height;
}
// usage
.block { box: 10px } // width: 10px; height: 10px;
.search { box: 100px 10px } // width: 100px; height: 10px;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions