button.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. @mixin small {
  2. height: $btn-height-small;
  3. padding: 0 $btn-height-small/2;
  4. font-size: $font-size-small;
  5. }
  6. .nut-button {
  7. cursor: pointer;
  8. height: $btn-height-big;
  9. padding: 0 $btn-height-big;
  10. outline: none;
  11. font-size: $font-size-base;
  12. color: $btn-gradient-color;
  13. background: $btn-gradient-bg;
  14. border: none;
  15. box-sizing: border-box;
  16. &[disabled] {
  17. cursor: not-allowed;
  18. background: $btn-disable-bg;
  19. color: $btn-disable-color;
  20. }
  21. // type-label
  22. .txt-icon {
  23. vertical-align: text-top;
  24. width: $btn-icon-height-big;
  25. height: $btn-icon-height-big;
  26. margin-right: $btn-icon-margin;
  27. color: $primary-color;
  28. }
  29. &.red {
  30. background: $btn-default-bg;
  31. border: $border-width-base solid $primary-color;
  32. color: $primary-color;
  33. }
  34. &.gray {
  35. background: $light-color;
  36. color: $title-color;
  37. }
  38. &.light {
  39. color: $title-color;
  40. background: $btn-default-bg;
  41. border: $border-width-base solid $dark-color;
  42. }
  43. &.lightred {
  44. background: $btn-label-light-bg;
  45. color: $title-color;
  46. border: none;
  47. }
  48. &.primary {
  49. background: $primary-color;
  50. color: $btn-primary-color;
  51. }
  52. &.default {
  53. background: $btn-default-bg;
  54. color: $title-color;
  55. border: $border-width-base solid $btn-default-border;
  56. }
  57. &.actived {
  58. background: $btn-label-light-bg;
  59. color: $primary-color;
  60. border: $border-width-base solid $primary-color;
  61. }
  62. &.dashed {
  63. background: $btn-default-bg;
  64. color: $title-color;
  65. border: $border-width-base dashed $dark-color;
  66. }
  67. // 通栏样式
  68. &.block {
  69. width: 100%;
  70. border-radius: 0;
  71. }
  72. // size-小号
  73. &.small {
  74. height: $btn-height-small;
  75. padding: 0 $btn-height-small/2;
  76. font-size: $font-size-small;
  77. }
  78. &.no-txt-small {
  79. width: $btn-height-small;
  80. padding: 0;
  81. .txt-icon {
  82. margin: 0;
  83. }
  84. }
  85. &.no-txt {
  86. width: $btn-height-big;
  87. padding: 0;
  88. .txt-icon {
  89. margin: 0;
  90. }
  91. }
  92. // shape-圆角
  93. &.circle {
  94. border-radius: $btn-border-radius-large;
  95. }
  96. }