Skip to content

Instantly share code, notes, and snippets.

@oliverbenns
Last active August 29, 2015 14:08
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 oliverbenns/79a60b646fa0e998ad18 to your computer and use it in GitHub Desktop.
Save oliverbenns/79a60b646fa0e998ad18 to your computer and use it in GitHub Desktop.
Generic Button Styles
/* ==========================================================================
Mixins
========================================================================== */
transition(arguments)
-webkit-transition arguments
-moz-transition arguments
-o-transition arguments
transition arguments
border-radius(arguments)
-webkit-border-radius arguments
-moz-border-radius arguments
border-radius arguments
user-select(arguments)
-webkit-user-select arguments
-moz-user-select arguments
-ms-user-select arguments
-o-user-select arguments
user-select arguments
background-size(arguments)
-webkit-background-size arguments
-moz-background-size arguments
-o-background-size arguments
background-size arguments
if arguments[0] == cover
-ms-behavior url('/assets/polyfill/backgroundsize.min.htc')
placeholder(color)
&::-webkit-input-placeholder
color color
opacity 1
&:-moz-placeholder
color color
opacity 1
&::-moz-placeholder
color color
opacity 1
&:-ms-input-placeholder
color color
opacity 1
transform(arguments)
-ms-transform arguments
-webkit-transform arguments
transform arguments
appearance(arguments)
-moz-appearance arguments
-webkit-appearance arguments
appearance arguments // "none" removes iPhone default
box-shadow(arguments)
-webkit-box-shadow arguments
box-shadow arguments
font-smoothing(arguments)
-webkit-font-smoothing arguments
-moz-font-smoothing arguments
-o-font-smoothing arguments
font-smoothing arguments
.btn
border 0
padding 10px
display inline-block
text-decoration none
cursor pointer
appearance(none)
outline none
font-size 18px
line-height 1
font-weight bold
text-transform uppercase
background $color-white
text-align center
font-family $font-header
border 2px solid $color-font
border-radius(0) // For iPhone reset
// For <buttons> & <input type=submit />'s
font-smoothing(antialiased)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment