// Less
.rounded-corners (@radius: 5px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
-ms-border-radius: @radius;
-o-border-radius: @radius;
border-radius: @radius;
}
// Sass + Compass
.rounded-corners {
// All vendor prefixes are generated for you
@include border-radius(5px);
}
I'm sure there are plugins for Less that can accomplish the same. I just grabbed this code from the Less homepage. 1) I need a data visualization library.
2) D3 seems to be a good one.
3) Read the D3 docs at the project's homepage.
4) I still need help learning D3.
5) Google for tutorials.
6) End up at this person's tutorial.
"What is D3" would make sense if users did this in reverse (like I'm sure some people clicking on this news item have done), but I don't think that's the normal use case and I don't blame the author for not addressing it. root.selectAll('rect')
.data(rects).enter()
.attr({
x: function (d) { return d.x; },
y: function (d) { return d.y; },
width: function (d) { d.w; }
});
https://github.com/mbostock/d3/pull/277
It means he's a node troll. They take a shot at the dominant frameworks any chance they can get. Node trolls have reached the level of obnoxious arrogance that early Rails developers were once mocked for. Don't feed the trolls.