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.

122 lines
2.0 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: 30px;
  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-disabled, &:disabled {
  68. background-color: mc('grey', '300');
  69. border: 1px solid mc('grey','400');
  70. color: mc('grey', '500');
  71. cursor: default;
  72. transition: none;
  73. &:hover {
  74. background-color: mc('grey', '300') !important;
  75. color: mc('grey', '500') !important;
  76. }
  77. }
  78. }
  79. .button-group {
  80. .button {
  81. border-radius: 0;
  82. margin-left: 1px;
  83. &:first-child {
  84. margin-left: 0;
  85. border-top-left-radius: 4px;
  86. border-bottom-left-radius: 4px;
  87. }
  88. &:last-child {
  89. border-top-right-radius: 4px;
  90. border-bottom-right-radius: 4px;
  91. }
  92. }
  93. }
  94. @include keyframes(btnInvertedPulse) {
  95. 0% {
  96. background-color: rgba(mc('grey', '500'), 0);
  97. }
  98. 100% {
  99. background-color: rgba(mc('grey', '500'), 0.25);
  100. }
  101. }