Skip to content

Instantly share code, notes, and snippets.

@shapkarin
Last active August 29, 2015 14:06
Show Gist options
  • Save shapkarin/9a3cc0ed38dab23aa1e1 to your computer and use it in GitHub Desktop.
Save shapkarin/9a3cc0ed38dab23aa1e1 to your computer and use it in GitHub Desktop.
part from from styles
.pages
.page
&.develop.anim
background darken($green, 10%)
backTrans()
.inner
button.chip
border 3px dotted darken($green, 10%)
//if nedd nore than 1 use addTrans anim1, anim2 without brackes
addTrans($trans-border)
&.scaleDown
animation scaleDown .7s ease both
&.scaleUpDown
animation scaleUpDown .5s ease both
z-index 101
.....
addTrans()
if arguments
arguments=arguments,
transition arguments $trans-btn
backTrans()
transition background 1.5s linear .7s
_alpha(color, n = .06)
rgba(color, n)
$delay = .05s
$input-time = .3s
placeholder(_color = $placeholder-color, type = ease-out) {
&:-moz-placeholder { color: _color; -moz-transition: color $input-time type; }
&::-moz-placeholder { color: _color; -moz-transition: color $input-time type; }
&:-ms-input-placeholder { color: _color; -ms-transition: color $input-time type $delay; }
&::-webkit-input-placeholder { color: _color; -webkit-transition: color $input-time type $delay; }
}
.....
support-for-ie ?= false
@import 'nib'
@import 'variables'
@import 'mixin'
global-reset()
reset-html5()
@import 'keyframes'
@import 'animations'
......
$trans-btn = background .4s ease-out
$placeholder-color = lightness($contact-color, 50%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment