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.

136 lines
2.2 KiB

  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. &:focus {
  58. box-shadow: inset 0 0 0 3px rgba(255,255,255, .4);
  59. }
  60. }
  61. }
  62. &.is-icon-only {
  63. i {
  64. margin-right: 0;
  65. }
  66. }
  67. &.is-featured {
  68. animation: btnInvertedPulse .6s ease alternate infinite;
  69. }
  70. &.is-fullwidth {
  71. width: 100%;
  72. text-align: center;
  73. justify-content: center;
  74. }
  75. &.is-disabled, &:disabled {
  76. background-color: mc('grey', '300');
  77. border: 1px solid mc('grey','400');
  78. color: mc('grey', '500');
  79. cursor: default;
  80. transition: none;
  81. &:hover {
  82. background-color: mc('grey', '300') !important;
  83. color: mc('grey', '500') !important;
  84. }
  85. }
  86. &.is-small {
  87. height: 30px;
  88. }
  89. }
  90. .button-group {
  91. .button {
  92. border-radius: 0;
  93. margin-left: 1px;
  94. &:first-child {
  95. margin-left: 0;
  96. border-top-left-radius: 4px;
  97. border-bottom-left-radius: 4px;
  98. }
  99. &:last-child {
  100. border-top-right-radius: 4px;
  101. border-bottom-right-radius: 4px;
  102. }
  103. }
  104. }
  105. @include keyframes(btnInvertedPulse) {
  106. 0% {
  107. background-color: rgba(mc('grey', '500'), 0);
  108. }
  109. 100% {
  110. background-color: rgba(mc('grey', '500'), 0.25);
  111. }
  112. }