Skip to content

Instantly share code, notes, and snippets.

@alexcabrera
Created September 21, 2010 21:34
Show Gist options
  • Save alexcabrera/590616 to your computer and use it in GitHub Desktop.
Save alexcabrera/590616 to your computer and use it in GitHub Desktop.
SASS mixin for iOS-ish icon badges
=badgify
position: absolute
top: -5px
right: -5px
padding: 4px 8px
line-height: 16px
text-align: center
font-size: 16px
font-weight: bold
color: rgb(255, 255, 255)
border: 2px solid rgb(255, 255, 255)
text-shadow: 1px 1px rgb(1, 10, 27)
+border-radius(18px)
+box-shadow(rgb(1, 10, 27), 0px, 1px, 5px)
+linear-gradient(color-stops(rgb(243, 190, 193), rgb(216, 38, 37), rgb(177, 22, 0)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment