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.

96 lines
1.9 KiB

7 years ago
7 years ago
5 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
  1. .btn {
  2. display: inline-block;
  3. font-weight: 400;
  4. color: $body-color;
  5. text-align: center;
  6. vertical-align: middle;
  7. user-select: none;
  8. background-color: transparent;
  9. border: 1px solid transparent;
  10. @include button-size( $input-btn-padding-y , $input-btn-padding-x, $input-btn-font-size, $input-btn-line-height, $input-btn-border-radius );
  11. @include transition();
  12. transition: all .2s ease;
  13. box-shadow: 1px 1px 1px rgba(0,0,0,0.3);
  14. &:hover {
  15. color: $body-color;
  16. text-decoration: none;
  17. }
  18. &:focus,
  19. &.focus {
  20. outline: 0;
  21. box-shadow:none;
  22. }
  23. &.disabled,
  24. &:disabled {
  25. opacity: 0.4;
  26. box-shadow:none;
  27. }
  28. &:not(:disabled):not(.disabled) {
  29. cursor: pointer;
  30. }
  31. &:not(:disabled):not(.disabled):active,
  32. &:not(:disabled):not(.disabled).active {
  33. &:focus {
  34. }
  35. }
  36. }
  37. // Future-proof disabling of clicks on `<a>` elements
  38. a.btn.disabled,
  39. fieldset:disabled a.btn {
  40. pointer-events: none;
  41. }
  42. @each $color, $value in $theme-colors {
  43. .btn-#{$color} {
  44. @include button-variant($value, $value);
  45. }
  46. }
  47. .btn-link {
  48. padding:0;
  49. }
  50. .btn-default {
  51. @include button-variant(#fff, #979797);
  52. }
  53. .btn-xs {
  54. @include button-size($input-btn-padding-y-xs, $input-btn-padding-x-xs, $input-btn-font-size-xs, $input-btn-line-height-xs, $input-btn-border-radius-xs);
  55. }
  56. .btn-lg {
  57. @include button-size($input-btn-padding-y-lg, $input-btn-padding-x-lg, $input-btn-font-size-lg, $input-btn-line-height-lg, $input-btn-border-radius-lg);
  58. }
  59. .btn-sm {
  60. @include button-size(3px, 5px, $input-btn-font-size-sm, $input-btn-line-height-sm, $input-btn-border-radius-sm);
  61. }
  62. .btn-block {
  63. display: block;
  64. width: 100%;
  65. + .btn-block {
  66. margin-top: 10px;
  67. }
  68. }
  69. // Specificity overrides
  70. input[type="submit"],
  71. input[type="reset"],
  72. input[type="button"] {
  73. &.btn-block {
  74. width: 100%;
  75. }
  76. }
  77. .btn-group {
  78. display:inline-block;
  79. position:relative;
  80. }