btn.scss 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. @import './variables.scss';
  2. @mixin colorBtn($color) {
  3. background: $color;
  4. &:hover {
  5. color: $color;
  6. &:before,
  7. &:after {
  8. background: $color;
  9. }
  10. }
  11. }
  12. .blue-btn {
  13. @include colorBtn($blue)
  14. }
  15. .light-blue-btn {
  16. @include colorBtn($light-blue)
  17. }
  18. .red-btn {
  19. @include colorBtn($red)
  20. }
  21. .pink-btn {
  22. @include colorBtn($pink)
  23. }
  24. .green-btn {
  25. @include colorBtn($green)
  26. }
  27. .tiffany-btn {
  28. @include colorBtn($tiffany)
  29. }
  30. .yellow-btn {
  31. @include colorBtn($yellow)
  32. }
  33. .pan-btn {
  34. font-size: 14px;
  35. color: #fff;
  36. padding: 14px 36px;
  37. border-radius: 8px;
  38. border: none;
  39. outline: none;
  40. margin-right: 25px;
  41. transition: 600ms ease all;
  42. position: relative;
  43. display: inline-block;
  44. &:hover {
  45. background: #fff;
  46. &:before,
  47. &:after {
  48. width: 100%;
  49. transition: 600ms ease all;
  50. }
  51. }
  52. &:before,
  53. &:after {
  54. content: '';
  55. position: absolute;
  56. top: 0;
  57. right: 0;
  58. height: 2px;
  59. width: 0;
  60. transition: 400ms ease all;
  61. }
  62. &::after {
  63. right: inherit;
  64. top: inherit;
  65. left: 0;
  66. bottom: 0;
  67. }
  68. }
  69. .custom-button {
  70. display: inline-block;
  71. line-height: 1;
  72. white-space: nowrap;
  73. cursor: pointer;
  74. background: #fff;
  75. color: #fff;
  76. -webkit-appearance: none;
  77. text-align: center;
  78. box-sizing: border-box;
  79. outline: 0;
  80. margin: 0;
  81. padding: 10px 15px;
  82. font-size: 14px;
  83. border-radius: 4px;
  84. }