選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

_button.scss 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. .c-btn {
  2. @include outline-none;
  3. @include button-clear;
  4. @include flex-center;
  5. font-size: pxToRem(12px) !important;
  6. line-height: 1.35;
  7. padding: pxToRem(13px) pxToRem(8px) !important;
  8. border-radius: $border-radius !important;
  9. box-shadow: $button-shadow-pressed;
  10. color: inherit;
  11. font-weight: 600 !important;
  12. letter-spacing: 0;
  13. text-align: center;
  14. text-transform: uppercase;
  15. user-select: none;
  16. white-space: nowrap;
  17. min-width: pxToRem(120px);
  18. flex-shrink: 0;
  19. cursor: pointer;
  20. transition: background-color 0.2s, color 0.2s;
  21. &:disabled {
  22. opacity: 0.5;
  23. cursor: auto;
  24. }
  25. &.c-btn--primary {
  26. background-color: $mainBlue;
  27. color: $white;
  28. &:disabled {
  29. &:hover {
  30. background-color: $color-primary;
  31. box-shadow: none;
  32. }
  33. }
  34. &:hover {
  35. background-color: $color-primary-light;
  36. box-shadow: $button-shadow-hover;
  37. }
  38. &:focus,
  39. &:active {
  40. background-color: $color-primary-dark;
  41. box-shadow: $button-shadow-pressed;
  42. }
  43. }
  44. &.c-btn--gray {
  45. background-color: $googleGray;
  46. color: $black-5;
  47. &:disabled {
  48. &:hover {
  49. background-color: $googleGray;
  50. box-shadow: none;
  51. }
  52. }
  53. &:hover {
  54. background-color: $googleGray-light;
  55. box-shadow: $button-shadow-hover;
  56. }
  57. &:focus,
  58. &:active {
  59. background-color: $googleGray-dark;
  60. box-shadow: $button-shadow-pressed;
  61. }
  62. }
  63. &.c-btn--primary-outlined {
  64. background-color: transparent;
  65. color: $color-primary;
  66. border: 1px solid $color-primary;
  67. &:disabled {
  68. &:hover {
  69. color: $color-primary;
  70. border: 1px solid $color-primary;
  71. }
  72. }
  73. &:hover {
  74. color: $color-primary;
  75. border: 1px solid $color-primary;
  76. }
  77. &:focus,
  78. &:active {
  79. color: $color-primary;
  80. border: 1px solid $color-primary;
  81. }
  82. }
  83. &.c-btn--blue {
  84. background-color: $blue-3;
  85. color: $white;
  86. background-color: $blue-3;
  87. }
  88. &.c-btn--white {
  89. background-color: $white;
  90. color: $grey-3;
  91. border: 1px solid $grey-4;
  92. box-shadow: $box-shadow;
  93. &:disabled {
  94. &:hover {
  95. background-color: $white;
  96. color: $grey-3;
  97. }
  98. }
  99. &:hover {
  100. color: $grey-5;
  101. }
  102. &:focus,
  103. &:active {
  104. background-color: $grey;
  105. }
  106. }
  107. &.c-btn--primary-clear {
  108. background-color: transparent;
  109. color: $color-primary;
  110. border: none;
  111. box-shadow: none;
  112. padding: 0;
  113. }
  114. &.c-btn--auto {
  115. min-width: auto;
  116. }
  117. &.c-btn--sm {
  118. font-size: pxToRem(16px);
  119. line-height: 1.5;
  120. padding: pxToRem(4px) pxToRem(15px);
  121. }
  122. &.c-btn--capitalize {
  123. text-transform: capitalize;
  124. }
  125. &.c-btn--bank-acount-card {
  126. padding: 0 pxToRem(16px);
  127. min-height: pxToRem(32px);
  128. min-width: pxToRem(120px);
  129. font-size: pxToRem(16px);
  130. line-height: 1.5;
  131. }
  132. &.c-btn--hidden {
  133. visibility: hidden;
  134. height: 0;
  135. }
  136. @include media-below($bp-md) {
  137. padding: pxToRemMd(4px) pxToRemMd(25px);
  138. font-size: pxToRemMd(16px);
  139. line-height: 1.5;
  140. min-width: pxToRemMd(80px);
  141. &.c-btn--auth {
  142. padding: pxToRemMd(12px) pxToRemMd(25px);
  143. line-height: 1.35;
  144. font-size: pxToRemMd(18px);
  145. }
  146. &.c-btn--sm {
  147. padding: pxToRemMd(4px) pxToRemMd(15px);
  148. }
  149. &.c-btn--bank-acount-card {
  150. flex-grow: 1;
  151. min-height: pxToRemMd(40px);
  152. padding: pxToRemMd(8px) pxToRemMd(16px);
  153. font-size: pxToRemMd(18px);
  154. line-height: 1.33;
  155. }
  156. &.c-btn--lg {
  157. padding: pxToRemMd(7.5px) pxToRemMd(15px);
  158. font-size: pxToRemMd(18px);
  159. line-height: 1.5;
  160. }
  161. }
  162. @include media-below($bp-xs) {
  163. white-space: unset;
  164. }
  165. }