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.

55 lines
1.2 KiB

  1. // Clear FIX
  2. @mixin clear-fix() {
  3. display:block;
  4. clear:both;
  5. content:"";
  6. }
  7. // Button Default Style
  8. @mixin button-default() {
  9. display: inline-block;
  10. margin:0;
  11. font-weight: normal;
  12. text-align: center;
  13. white-space: nowrap;
  14. user-select: none;
  15. text-decoration: none;
  16. outline:0;
  17. vertical-align:middle;
  18. &:disabled,
  19. &.disabled {
  20. opacity:0.65;
  21. }
  22. &:not([disabled]):not(.disabled) {
  23. cursor: pointer;
  24. }
  25. }
  26. // background Image
  27. @mixin background-image( $image_url, $bg_color:transparent, $background-repeat:no-repeat, $background-position-x:center, $background-position-y:center )
  28. {
  29. background-color:$bg_color;
  30. background-image:url($image_url);
  31. background-repeat: $background-repeat;
  32. background-position-x:$background-position-x;
  33. background-position-y:$background-position-y;
  34. }
  35. // Global Transition
  36. @mixin transition($second:.3s, $target:all, $animation:$default-animation)
  37. {
  38. -webkit-transition: $target $second $animation;
  39. -moz-transition: $target $second $animation;
  40. -ms-transition: $target $second $animation;
  41. -o-transition: $target $second $animation;
  42. transition: $target $second $animation;
  43. }
  44. // Display flex & Prefix
  45. @mixin display-flex()
  46. {
  47. -webkit-display:flex;
  48. display:-ms-flex;
  49. display:flex;
  50. }