Skip to content

Instantly share code, notes, and snippets.

@andij
Created December 16, 2011 17:11
Show Gist options
  • Save andij/1486938 to your computer and use it in GitHub Desktop.
Save andij/1486938 to your computer and use it in GitHub Desktop.
@andij's delete icon for mobile
/**
* @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 */
<!-- content to be placed inside <body>…</body> -->
<body>
<button type="submit" class="icon delete">Delete</button>
</body>
{"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