button.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. .button {
  2. background-color: mc('orange','600');
  3. color: #FFF;
  4. border: 1px solid mc('orange','700');
  5. border-radius: 3px;
  6. display: inline-flex;
  7. height: 40px;
  8. align-items: center;
  9. padding: 0 15px;
  10. font-size: 13px;
  11. font-weight: 600;
  12. font-family: $core-font-standard;
  13. margin: 0;
  14. transition: all .4s ease;
  15. cursor: pointer;
  16. text-decoration: none;
  17. text-transform: uppercase;
  18. span {
  19. font-weight: 600;
  20. display: inline-flex;
  21. align-items: center;
  22. line-height: 14px;
  23. height: 14px;
  24. }
  25. i {
  26. margin-right: 8px;
  27. font-size: 14px;
  28. line-height: 14px;
  29. height: 14px;
  30. }
  31. &:focus {
  32. outline: none;
  33. border-color: #FFF;
  34. }
  35. &:hover {
  36. background-color: mc('orange','800');
  37. text-decoration: none;
  38. }
  39. @each $color, $colorvalue in $material-colors {
  40. &.is-#{$color} {
  41. background-color: mc($color, '600');
  42. border-color: mc($color,'700');
  43. color: #FFF;
  44. &.is-outlined {
  45. background-color: #FFF;
  46. color: mc($color,'700');
  47. }
  48. &.is-inverted {
  49. background-color: rgba(mc($color, '800'), 0);
  50. border-color: mc($color, '500');
  51. }
  52. &:hover {
  53. background-color: mc($color,'800');
  54. color: #FFF;
  55. animation: none;
  56. }
  57. }
  58. }
  59. &.is-icon-only {
  60. i {
  61. margin-right: 0;
  62. }
  63. }
  64. &.is-featured {
  65. animation: btnInvertedPulse .6s ease alternate infinite;
  66. }
  67. &.is-fullwidth {
  68. width: 100%;
  69. text-align: center;
  70. justify-content: center;
  71. }
  72. &.is-disabled, &:disabled {
  73. background-color: mc('grey', '300');
  74. border: 1px solid mc('grey','400');
  75. color: mc('grey', '500');
  76. cursor: default;
  77. transition: none;
  78. &:hover {
  79. background-color: mc('grey', '300') !important;
  80. color: mc('grey', '500') !important;
  81. }
  82. }
  83. }
  84. .button-group {
  85. .button {
  86. border-radius: 0;
  87. margin-left: 1px;
  88. &:first-child {
  89. margin-left: 0;
  90. border-top-left-radius: 4px;
  91. border-bottom-left-radius: 4px;
  92. }
  93. &:last-child {
  94. border-top-right-radius: 4px;
  95. border-bottom-right-radius: 4px;
  96. }
  97. }
  98. }
  99. @include keyframes(btnInvertedPulse) {
  100. 0% {
  101. background-color: rgba(mc('grey', '500'), 0);
  102. }
  103. 100% {
  104. background-color: rgba(mc('grey', '500'), 0.25);
  105. }
  106. }