Created
December 16, 2011 17:11
-
-
Save andij/1486938 to your computer and use it in GitHub Desktop.
@andij's delete icon for mobile
This file contains hidden or 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
/** | |
* @andij's delete icon for mobile | |
*/ | |
body { | |
padding: 100px 50px | |
} | |
/* ############### icon */ | |
.icon { | |
position: relative; | |
display: inline-block; | |
width: 30px; | |
height: 29px; | |
border: 2px solid rgba(255, 255, 255, 1); | |
border-radius: 15px; | |
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); | |
text-indent: -9999em; | |
} | |
.icon.delete { | |
background: rgba(188, 45, 40, 0.9); | |
} | |
.icon.delete:after { | |
background: #fff; | |
content: " "; | |
position: absolute; | |
margin-left: -6px; | |
margin-top: -1px; | |
top: 50%; | |
left: 50%; | |
width: 13px; | |
height: 4px; | |
} | |
/* ############### icon */ |
This file contains hidden or 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
<!-- content to be placed inside <body>…</body> --> | |
<body> | |
<button type="submit" class="icon delete">Delete</button> | |
</body> |
This file contains hidden or 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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment