_buttons.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /* Button style */
  2. .btn {
  3. font-size: 16px;
  4. font-family: $primary-font;
  5. font-weight: 600;
  6. text-transform: capitalize;
  7. padding: 15px 30px;
  8. border-radius: 30px;
  9. border: 0;
  10. position: relative;
  11. z-index: 1;
  12. transition: .2s ease;
  13. white-space: nowrap;
  14. &::before {
  15. position: absolute;
  16. content: "";
  17. height: 100%;
  18. width: 100%;
  19. top: 50%;
  20. left: 50%;
  21. transform: translate(-50%, -50%);
  22. z-index: -1;
  23. border-radius: inherit;
  24. transition: inherit;
  25. background-color: inherit;
  26. border: 1px solid transparent;
  27. }
  28. &:hover,
  29. &:active,
  30. &:focus {
  31. outline: 0;
  32. @extend .shadow;
  33. &::before {
  34. height: 110%;
  35. width: 110%;
  36. }
  37. }
  38. &-sm {
  39. padding: 12px 30px;
  40. font-size: 15px;
  41. }
  42. }
  43. .btn-primary {
  44. background-color: $primary-color;
  45. color: $white;
  46. border-color: $primary-color;
  47. &:active,
  48. &:hover,
  49. &.focus,
  50. &.active {
  51. background-color: $primary-color !important;
  52. border-color: $primary-color !important;
  53. }
  54. }
  55. .btn-outline-primary {
  56. background-color: transparent;
  57. color: $text-color-dark;
  58. border-color: transparent;
  59. &:active,
  60. &:hover,
  61. &.focus,
  62. &.active {
  63. background-color: transparent !important;
  64. border-color: $primary-color !important;
  65. color: $primary-color;
  66. }
  67. &::before{
  68. border-color: $primary-color;
  69. }
  70. }
  71. .btn-link {
  72. color: $primary-color;
  73. i {
  74. font-size: 12px;
  75. margin-left: 5px;
  76. transition: .2s ease;
  77. }
  78. &:active,
  79. &:hover,
  80. &.focus,
  81. &.active {
  82. color: $primary-color;
  83. text-decoration: none;
  84. i {
  85. margin-left: 10px;
  86. }
  87. }
  88. }