Skip to content

Instantly share code, notes, and snippets.

@jeppeburchardt
Created April 8, 2016 14:44
Show Gist options
  • Save jeppeburchardt/ddb8563a728a266646136487f1676a3d to your computer and use it in GitHub Desktop.
Save jeppeburchardt/ddb8563a728a266646136487f1676a3d to your computer and use it in GitHub Desktop.
.hairlines(@border) {
border-width: @border;
.subpixel-support & {
border-width: ~`"@{border}".replace(/1px/g, "0.5px").replace(/[\[\],]/g, '')`;
}
}
.border-a {
.hairlines(2px 1px 0px 10px);
}
.border-b {
.hairlines(2px 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment