_miscellaneous.scss 702 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // Mixins: Miscellaneous
  3. //
  4. // ETC
  5. @mixin translate($x, $y) {
  6. transform: translate($x, $y);
  7. }
  8. // Different radius each side
  9. @mixin border-radius-sides($top-left, $top-right, $bottom-left, $bottom-right) {
  10. border-radius: $top-left $top-right $bottom-left $bottom-right;
  11. }
  12. @mixin calc($property, $expression) {
  13. #{$property}: calc(#{$expression});
  14. }
  15. @mixin rotate($value) {
  16. transform: rotate($value);
  17. }
  18. @mixin animation($animation) {
  19. animation: $animation;
  20. }
  21. // Gradient background
  22. @mixin gradient($color: #f5f5f5, $start: #eee, $stop: $white) {
  23. background-color: $color;
  24. background-image: gradient(linear, left bottom, left top, color-stop(0, $start), color-stop(1, $stop));
  25. }
  26. //