Skip to content

Instantly share code, notes, and snippets.

@voodoocode
Created July 24, 2014 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voodoocode/8868c8c32e238fb24c01 to your computer and use it in GitHub Desktop.
Save voodoocode/8868c8c32e238fb24c01 to your computer and use it in GitHub Desktop.
//custom dashed border
@mixin dashed-border($dashlength, $spacelength, $borderwidth, $color, $position: top) {
$per: percentage($dashlength / ($dashlength + $spacelength));
background-image: linear-gradient(to right, $color 0%, $color $per, rgba(0, 0, 0, 0) $per);
background-position: 0 $position;
background-size: ($dashlength + $spacelength) $borderwidth;
background-repeat: repeat-x;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment