Guest User

Untitled

a guest
May 24th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. //
  2. // Rounded Corners
  3. //
  4.  
  5. =border-radius($radius)
  6. -moz-border-radius: $radius
  7. -webkit-border-radius: $radius
  8. border-radius: $radius
  9.  
  10. =border-top-left-radius($radius)
  11. -moz-border-radius-topleft: $radius
  12. -webkit-border-top-left-radius: $radius
  13. border-top-left-radius: $radius
  14.  
  15. =border-top-right-radius($radius)
  16. -moz-border-radius-topright: $radius
  17. -webkit-border-top-right-radius: $radius
  18. border-top-right-radius: $radius
  19.  
  20. =border-bottom-left-radius($radius)
  21. -moz-border-radius-bottomleft: $radius
  22. -webkit-border-bottom-left-radius: $radius
  23. border-bottom-left-radius: $radius
  24.  
  25. =border-bottom-right-radius($radius)
  26. -moz-border-radius-bottomright: $radius
  27. -webkit-border-bottom-right-radius: $radius
  28. border-bottom-right-radius: $radius
  29.  
  30. =border-top-radius($radius)
  31. +border-top-right-radius($radius)
  32. +border-top-left-radius($radius)
  33.  
  34. =border-bottom-radius($radius)
  35. +border-bottom-right-radius($radius)
  36. +border-bottom-left-radius($radius)
  37.  
  38. =border-left-radius($radius)
  39. +border-top-left-radius($radius)
  40. +border-bottom-left-radius($radius)
  41.  
  42. =border-right-radius($radius)
  43. +border-top-right-radius($radius)
  44. +border-bottom-right-radius($radius)
  45.  
  46. //
  47. // Box Shadow
  48. //
  49.  
  50. =box-shadow($x, $y, $blur, $color : black)
  51. -moz-box-shadow: $x $y $blur $color /* FF3.5+ */
  52. -webkit-box-shadow: $x $y $blur $color /* Saf3.0+, Chrome */
  53. box-shadow: $x $y $blur $color /* Opera 10.5, IE 9.0 */
  54. // IE 6, 7
  55. filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=#{$x}, OffY=#{$y}, Color='#{$color}')"
  56. // IE 8
  57. -ms-filter: "\"progid:DXImageTransform.Microsoft.dropshadow(OffX=#{$x}, OffY=#{$y}, Color='#{$color}')\""
  58.  
  59. //
  60. // Gradients
  61. //
  62.  
  63.  
  64. =vertical-gradient(!from, !to, !bgcolor : "")
  65. @if !bgcolor != ""
  66. background-color: !bgcolor
  67. background: -webkit-gradient(linear, 0 0, 0 100%, from(#{!from}), to(#{!to}))
  68. background: -moz-linear-gradient(90deg, #{!to}, #{!from})
  69. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{!from}', endColorstr='#{!to}')
  70. -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#{!from}', endColorstr='#{!to}')"
  71. zoom: 1
  72.  
  73.  
  74. //
  75. // Rotation
  76. //
  77.  
  78. =rotate($degrees)
  79. $percent: $degrees / 360.0
  80. -moz-transform: rotate(#{$degrees}deg)
  81. -o-transform: rotate(#{$degrees})
  82. -webkit-transform: rotate(#{$degrees}deg)
  83. filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$percent})
  84. -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$percent})"
Add Comment
Please, Sign In to add comment