Guest User

Untitled

a guest
May 20th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.52 KB | None | 0 0
  1. @mixin gradient ($c2, $c1)
  2.   background-image: -webkit-linear-gradient(top, $c1 0%, $c2 100%)
  3.   background-image: -moz-linear-gradient(top, $c1 0%, $c2 100%)
  4.   background-image: -o-linear-gradient(top, $c1 0%, $c2 100%)
  5.   background-image: -ms-linear-gradient(top, $c1 0%, $c2 100%)
  6.   background-image: linear-gradient(top, $c1 0%, $c2 100%)
  7.   filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='$c2', EndColorStr='$c1')
  8.  
  9. @mixin box-shadow($data)
  10.   -webkit-box-shadow: #{$data}
  11.   -moz-box-shadow: #{$data}
  12.   box-shadow: #{$data}
  13.  
  14. @mixin line-height($height)
  15.   height: $height
  16.   line-height: $height    
  17.  
  18. @mixin font($size: inherit, $weight: inherit, $line-height: 20px, $family: "'Helvetica Neue', Helvetica, Arial, sans-serif")
  19.   $slash: '/'
  20.   font: $weight $size #{$slash} $line-height #{$family}
  21.  
  22. @mixin border-radius ($r1: 4px, $r2: default, $r3: default, $r4: default)
  23.   @if $r2 == default and $r3 == default and $r4 == default
  24.     -webkit-border-radius: $r1
  25.     -moz-border-radius: $r1
  26.     border-radius: $r1
  27.  
  28.   @if $r2 != default
  29.     -webkit-border-top-left-radius: $r1
  30.     -moz-border-radius-topleft: $r1
  31.     border-top-left-radius: $r1
  32.     -webkit-border-top-right-radius: $r2
  33.     -moz-border-radius-topright: $r2
  34.     border-top-right-radius: $r2
  35.     -webkit-border-bottom-right-radius: $r3
  36.     -moz-border-radius-bottomright: $r3
  37.     border-bottom-right-radius: $r3
  38.     -webkit-border-bottom-left-radius: $r4
  39.     -moz-border-radius-bottomleft: $r4
  40.     border-bottom-left-radius: $r4
Add Comment
Please, Sign In to add comment