_buttons.scss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /* Buttons */
  2. .btn {
  3. font-size: $btn-font-size;
  4. line-height: 1;
  5. font-family: $type1-bold;
  6. i {
  7. font-size: 1rem;
  8. }
  9. &.btn-rounded {
  10. @include border-radius(50px);
  11. }
  12. &.btn-fw {
  13. min-width: $button-fixed-width;
  14. }
  15. &.btn-sm {
  16. font-size: $btn-font-size-sm;
  17. }
  18. &.btn-lg {
  19. font-size: $btn-font-size-lg;
  20. }
  21. &.btn-xs {
  22. padding: $btn-padding-y-xs $btn-padding-x-xs;
  23. font-size: $btn-font-size-xs;
  24. }
  25. /* Buttons with only icons */
  26. &.btn-icon {
  27. width: 42px;
  28. height: 42px;
  29. padding: 0;
  30. }
  31. /* Buttons with icon and text */
  32. &.btn-icon-text {
  33. .btn-icon-prepend {
  34. margin-right: .5rem;
  35. }
  36. .btn-icon-append {
  37. margin-left: .5rem;
  38. }
  39. }
  40. &.btn-social-icon {
  41. width: 50px;
  42. height: 50px;
  43. padding: 0;
  44. }
  45. }
  46. .btn-group {
  47. .btn {
  48. + .btn {
  49. border-left: 0;
  50. }
  51. }
  52. }
  53. .btn-toolbar {
  54. .btn-group {
  55. +.btn-group {
  56. @extend .ml-2;
  57. }
  58. }
  59. }
  60. /*social buttons*/
  61. @each $color, $value in $social-colors {
  62. .btn-#{$color} {
  63. @include social-button(social-color($color));
  64. }
  65. .btn-outline-#{$color} {
  66. @include social-outline-button(social-color($color));
  67. }
  68. }
  69. /* inverse buttons */
  70. @each $color, $value in $theme-colors {
  71. .btn-inverse-#{$color} {
  72. @include button-inverse-variant($value);
  73. }
  74. .btn-#{$color}:not(.btn-light) {
  75. color: $white;
  76. &:hover,
  77. &:focus,
  78. &:active {
  79. color: $white;
  80. }
  81. &:focus,
  82. &:active {
  83. background: $value;
  84. border-color: $value;
  85. }
  86. }
  87. .btn-outline-#{$color} {
  88. &:hover,
  89. &:focus,
  90. &:active {
  91. background: theme-gradient-color($color);
  92. color: $white;
  93. }
  94. }
  95. }
  96. /* gradient buttons */
  97. @each $color, $value in $theme-gradient-colors {
  98. .btn-gradient-#{$color} {
  99. @include button-gradient-variant($value);
  100. }
  101. }