You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

51 lines
1.9 KiB

  1. @mixin transform($transforms) {
  2. -moz-transform: $transforms;
  3. -o-transform: $transforms;
  4. -ms-transform: $transforms;
  5. -webkit-transform: $transforms;
  6. transform: $transforms;
  7. }
  8. @mixin border-radius($top-left:10px, $top-right:null, $bottom-right:null, $bottom-left:null) {
  9. -webkit-border-radius: $top-left $top-right $bottom-right $bottom-left;
  10. -moz-border-radius: $top-left $top-right $bottom-right $bottom-left;
  11. -ms-border-radius: $top-left $top-right $bottom-right $bottom-left;
  12. border-radius: $top-left $top-right $bottom-right $bottom-left;
  13. }
  14. @mixin transition($property: all, $duration: .3s, $ease: linear) {
  15. -webkit-transition: $property $duration $ease;
  16. -moz-transition: $property $duration $ease;
  17. -o-transition: $property $duration $ease;
  18. transition: $property $duration $ease;
  19. }
  20. @mixin box-shadow($left, $top, $radius, $color) {
  21. box-shadow: $left $top $radius $color;
  22. -webkit-box-shadow: $left $top $radius $color;
  23. -moz-box-shadow: $left $top $radius $color;
  24. }
  25. @mixin text-shadow($left, $top, $radius, $color) {
  26. text-shadow: $left $top $radius $color;
  27. -webkit-text-shadow: $left $top $radius $color;
  28. -moz-text-shadow: $left $top $radius $color;
  29. }
  30. @mixin gradient($color1, $color2) {
  31. background-color: $color1;
  32. filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#{$color1}, endColorstr=#{$color2});
  33. background-image: -moz-linear-gradient(center top, $color1, $color2);
  34. background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($color1), to($color2));
  35. }
  36. // Responsive alignment
  37. @each $breakpoint in map-keys($grid-breakpoints) {
  38. @include media-breakpoint-up($breakpoint) {
  39. $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
  40. .text#{$infix}-left { text-align: left !important; }
  41. .text#{$infix}-right { text-align: right !important; }
  42. .text#{$infix}-center { text-align: center !important; }
  43. }
  44. }