Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update detached-rulesets.md #408

Closed
wants to merge 1 commit into from
Closed

Update detached-rulesets.md #408

wants to merge 1 commit into from

Conversation

golegen
Copy link
Contributor

@golegen golegen commented Apr 13, 2016

Fix documents.
Mixin is missing a step to call a detached ruleset.
I think first unlocked a detached ruleset, we can try to call variable ‘@ color’.

Private variables:

@detached-ruleset: { 
    @color:blue; // this variable is private
};
.caller {
    @detached-ruleset();        // Suggest adding this sentence
    color: @color; // syntax error
}

Fix documents errors.
Mixin is missing a step to call a detached ruleset.
Only first unlocked a detached ruleset, we can try to call variable-@color.
I do not know whether to say fluent grammar.
>
Private variables:
````less
@detached-ruleset: { 
    @color:blue; // this variable is private
};
.caller {
    @detached-ruleset();
    color: @color; // syntax error
}
````
@golegen golegen changed the title Update detached-rulesets.md — Fix documents Update detached-rulesets.md Apr 14, 2016
@seven-phases-max
Copy link
Member

This behaviour is under consideration (by now it's more in favour to make DRs scoping to match the mixins one),

@seven-phases-max
Copy link
Member

Closing as "not yet specified".

@golegen golegen deleted the patch-3 branch April 15, 2016 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants