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.

_button.scss 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  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(10px) !important;
  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. &.enabledEdit {
  26. background-color: $mainBlueLight !important;
  27. }
  28. &.c-btn--primary {
  29. background-color: $mainBlue;
  30. color: $white;
  31. &:disabled {
  32. &:hover {
  33. background-color: $color-primary;
  34. box-shadow: none;
  35. }
  36. }
  37. &:hover {
  38. background-color: $color-primary-light;
  39. box-shadow: $button-shadow-hover;
  40. }
  41. &:focus,
  42. &:active {
  43. background-color: $color-primary-dark;
  44. box-shadow: $button-shadow-pressed;
  45. }
  46. }
  47. &.c-btn--whiteprimary {
  48. background-color: $white;
  49. color: $mainBlue !important;
  50. &:disabled {
  51. &:hover {
  52. background-color: $color-primary;
  53. box-shadow: none;
  54. }
  55. }
  56. &:hover {
  57. background-color: $color-primary-light;
  58. box-shadow: $button-shadow-hover;
  59. }
  60. &:focus,
  61. &:active {
  62. background-color: $color-primary-dark;
  63. box-shadow: $button-shadow-pressed;
  64. }
  65. }
  66. &.c-btn--gray {
  67. background-color: $googleGray;
  68. color: $black-5;
  69. &:disabled {
  70. &:hover {
  71. background-color: $googleGray;
  72. box-shadow: none;
  73. }
  74. }
  75. &:hover {
  76. background-color: $googleGray-light;
  77. box-shadow: $button-shadow-hover;
  78. }
  79. &:focus,
  80. &:active {
  81. background-color: $googleGray-dark;
  82. box-shadow: $button-shadow-pressed;
  83. }
  84. }
  85. &.c-btn--primary-outlined {
  86. background-color: transparent;
  87. color: $color-primary;
  88. border: 1px solid $color-primary;
  89. &:disabled {
  90. &:hover {
  91. color: $color-primary;
  92. border: 1px solid $color-primary;
  93. }
  94. }
  95. &:hover {
  96. background-color: $mainBlueLight;
  97. color: $color-primary !important;
  98. border: 1px solid $color-primary;
  99. }
  100. &:focus,
  101. &:active {
  102. color: $color-primary;
  103. border: 1px solid $color-primary;
  104. }
  105. }
  106. &.c-btn--blue {
  107. background-color: $blue-3;
  108. color: $white;
  109. background-color: $blue-3;
  110. }
  111. &.c-btn--white {
  112. background-color: $white;
  113. color: $grey-3;
  114. border: 1px solid $grey-4;
  115. box-shadow: $box-shadow;
  116. &:disabled {
  117. &:hover {
  118. background-color: $white;
  119. color: $grey-3;
  120. }
  121. }
  122. &:hover {
  123. color: $grey-5;
  124. }
  125. &:focus,
  126. &:active {
  127. background-color: $grey;
  128. }
  129. }
  130. &.c-btn--primary-clear {
  131. background-color: transparent;
  132. color: $color-primary;
  133. border: none;
  134. box-shadow: none;
  135. padding: 0;
  136. }
  137. &.c-btn--auto {
  138. min-width: auto;
  139. }
  140. &.c-btn--sm {
  141. font-size: pxToRem(16px);
  142. line-height: 1.5;
  143. padding: pxToRem(4px) pxToRem(15px);
  144. }
  145. &.c-btn--capitalize {
  146. text-transform: capitalize;
  147. }
  148. &.c-btn--bank-acount-card {
  149. padding: 0 pxToRem(16px);
  150. min-height: pxToRem(32px);
  151. min-width: pxToRem(120px);
  152. font-size: pxToRem(16px);
  153. line-height: 1.5;
  154. }
  155. &.c-btn--hidden {
  156. visibility: hidden;
  157. height: 0;
  158. }
  159. @include media-below($bp-md) {
  160. padding: pxToRemMd(4px) pxToRemMd(25px);
  161. font-size: pxToRemMd(16px);
  162. line-height: 1.5;
  163. min-width: pxToRemMd(80px);
  164. &.c-btn--auth {
  165. padding: pxToRemMd(12px) pxToRemMd(25px);
  166. line-height: 1.35;
  167. font-size: pxToRemMd(18px);
  168. }
  169. &.c-btn--sm {
  170. padding: pxToRemMd(4px) pxToRemMd(15px);
  171. }
  172. &.c-btn--bank-acount-card {
  173. flex-grow: 1;
  174. min-height: pxToRemMd(40px);
  175. padding: pxToRemMd(8px) pxToRemMd(16px);
  176. font-size: pxToRemMd(18px);
  177. line-height: 1.33;
  178. }
  179. &.c-btn--lg {
  180. padding: pxToRemMd(7.5px) pxToRemMd(15px);
  181. font-size: pxToRemMd(18px);
  182. line-height: 1.5;
  183. }
  184. }
  185. @include media-below($bp-xs) {
  186. white-space: unset;
  187. }
  188. }
  189. .userPageBtn {
  190. font-size: 16px !important;
  191. text-transform: capitalize !important;
  192. padding: 9px 16px !important;
  193. @include media-below($bp-xl) {
  194. padding-left: 0 !important;
  195. padding-right: 0 !important;
  196. width: 40px !important;
  197. }
  198. }
  199. .w-289 {
  200. min-width: 289px !important;
  201. margin: 10px 0px !important;
  202. height: 51px;
  203. height: 51px;
  204. width: 289px;
  205. border-radius: 9px;
  206. padding: 18px 72px 18px 72px; //styleName: Button;
  207. font-family: Source Sans Pro;
  208. font-size: 14px !important;
  209. font-weight: 400 !important;
  210. line-height: 15px;
  211. letter-spacing: 0.1em;
  212. text-align: left;
  213. }
  214. .w-289.f {
  215. margin-top: 25px !important;
  216. }