You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 24, 2020. It is now read-only.
I don't know if "conditional selectors" is the right term, but I'd there to be some way to have all my styles that apply to an element be in the same block/nest, and not have to write separate blocks/nests for conditional modernizr classes.
"Although LESS is a joy to use, I do have some problems. For example, consider the code written when using modernizr (a JavaScript-library that enables feature detection of CSS3):
This may seem but a slight irritation, but consider this example if #header parented style for 20+ sub-elements. Add the possibility that I wanted to use other CSS3-properties. I have no answer to how this should be solved, but my 2 cents would be the possibility to write code such as:
#header {
.button {
/* CSS that all browsers supports */
[.borderradius] {
rounded_corners;
}
}
}
This would equal the meaning in the former snippet, but its superior in elegance (at least in my view)."
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I don't know if "conditional selectors" is the right term, but I'd there to be some way to have all my styles that apply to an element be in the same block/nest, and not have to write separate blocks/nests for conditional modernizr classes.
The issue is summed up nicely here:
http://icanhasweb.wordpress.com/2010/10/30/less-css/
"Although LESS is a joy to use, I do have some problems. For example, consider the code written when using modernizr (a JavaScript-library that enables feature detection of CSS3):
This may seem but a slight irritation, but consider this example if #header parented style for 20+ sub-elements. Add the possibility that I wanted to use other CSS3-properties. I have no answer to how this should be solved, but my 2 cents would be the possibility to write code such as:
This would equal the meaning in the former snippet, but its superior in elegance (at least in my view)."
The text was updated successfully, but these errors were encountered: