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

When could the extend method use a mixin as a parameter? #2554

Closed
totoro118 opened this issue Apr 16, 2015 · 4 comments
Closed

When could the extend method use a mixin as a parameter? #2554

totoro118 opened this issue Apr 16, 2015 · 4 comments

Comments

@totoro118
Copy link

When could the extend method use a function as a parameter? For example:

.size (@width: 20, @height: 20) {
    width: @width;
    height: @height;
}
.box {
    &:extend(size(50, 50));
}

My Email:963983501@qq.com

@seven-phases-max
Copy link
Member

See #1177.


And please use backticks to format your code.

@seven-phases-max
Copy link
Member

Closing as duplicate of #1177.

@totoro118
Copy link
Author

The syntax is dead, but we are alive, the syntax should be changed with the requirement.

@seven-phases-max
Copy link
Member

@totoro118

I'm not sure I understand what you mean with dead/alive but for your specific example see #1177 (comment).

@seven-phases-max seven-phases-max changed the title When could the extend method use a function as a parameter? When could the extend method use a mixin as a parameter? Apr 16, 2015
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

No branches or pull requests

2 participants