btn.scss 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. .el-button--mini {
  34. padding: 7px 10px;
  35. font-size: 12px;
  36. border-radius: 3px;
  37. }
  38. .pan-btn {
  39. font-size: 14px;
  40. color: #fff;
  41. padding: 14px 36px;
  42. border-radius: 8px;
  43. border: none;
  44. outline: none;
  45. transition: 600ms ease all;
  46. position: relative;
  47. display: inline-block;
  48. &:hover {
  49. background: #fff;
  50. &:before,
  51. &:after {
  52. width: 100%;
  53. transition: 600ms ease all;
  54. }
  55. }
  56. &:before,
  57. &:after {
  58. content: '';
  59. position: absolute;
  60. top: 0;
  61. right: 0;
  62. height: 2px;
  63. width: 0;
  64. transition: 400ms ease all;
  65. }
  66. &::after {
  67. right: inherit;
  68. top: inherit;
  69. left: 0;
  70. bottom: 0;
  71. }
  72. }
  73. .custom-button {
  74. display: inline-block;
  75. line-height: 1;
  76. white-space: nowrap;
  77. cursor: pointer;
  78. background: #fff;
  79. color: #fff;
  80. -webkit-appearance: none;
  81. text-align: center;
  82. box-sizing: border-box;
  83. outline: 0;
  84. margin: 0;
  85. padding: 10px 15px;
  86. font-size: 14px;
  87. border-radius: 4px;
  88. }