Skip to content

Instantly share code, notes, and snippets.

@seven-phases-max
Last active January 2, 2016 17:29
Show Gist options
  • Save seven-phases-max/8337236 to your computer and use it in GitHub Desktop.
Save seven-phases-max/8337236 to your computer and use it in GitHub Desktop.
.border-top-radius(@radius) {.border-radius-impl(top-right, top-left)}
.border-right-radius(@radius) {.border-radius-impl(bottom-right, top-right)}
.border-bottom-radius(@radius) {.border-radius-impl(bottom-right, bottom-left)}
.border-left-radius(@radius) {.border-radius-impl(bottom-left, top-left)}
.border-radius-impl(@a, @b) {
border-@{a}-radius: @value;
border-@{b}-radius: @value;
.-() {@value: 0} .-();
.-() when (@radius > 0) {
@value: @radius
}
}
@deviprsd
Copy link

too complex ... anyway it works though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment