Created
November 11, 2016 13:05
-
-
Save JakeSidSmith/83c324dbe7e4d91ee8c52525b1d504d9 to your computer and use it in GitHub Desktop.
A drag icon made with pure CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://jsfiddle.net/7Ldmmrjd/2/ | |
span { | |
display: inline-block; | |
width: 16px; | |
height: 8px; | |
} | |
span, | |
span::before { | |
background-image: radial-gradient(black 40%, transparent 40%); | |
background-size: 4px 4px; | |
background-position: 0 100%; | |
background-repeat: repeat-x; | |
} | |
span::before { | |
content: ''; | |
display: block; | |
width: 100%; | |
height: 33%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, it works like a charm :)