| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- @mixin small {
- height: $btn-height-small;
- padding: 0 $btn-height-small/2;
- font-size: $font-size-small;
- }
- .nut-button {
- cursor: pointer;
- height: $btn-height-big;
- padding: 0 $btn-height-big;
- outline: none;
- font-size: $font-size-base;
- color: $btn-gradient-color;
- background: $btn-gradient-bg;
- border: none;
- box-sizing: border-box;
- &[disabled] {
- cursor: not-allowed;
- background: $btn-disable-bg;
- color: $btn-disable-color;
- }
- // type-label
- .txt-icon {
- vertical-align: text-top;
- width: $btn-icon-height-big;
- height: $btn-icon-height-big;
- margin-right: $btn-icon-margin;
- color: $primary-color;
- }
- &.red {
- background: $btn-default-bg;
- border: $border-width-base solid $primary-color;
- color: $primary-color;
- }
- &.gray {
- background: $light-color;
- color: $title-color;
- }
- &.light {
- color: $title-color;
- background: $btn-default-bg;
- border: $border-width-base solid $dark-color;
- }
- &.lightred {
- background: $btn-label-light-bg;
- color: $title-color;
- border: none;
- }
- &.primary {
- background: $primary-color;
- color: $btn-primary-color;
- }
- &.default {
- background: $btn-default-bg;
- color: $title-color;
- border: $border-width-base solid $btn-default-border;
- }
- &.actived {
- background: $btn-label-light-bg;
- color: $primary-color;
- border: $border-width-base solid $primary-color;
- }
- &.dashed {
- background: $btn-default-bg;
- color: $title-color;
- border: $border-width-base dashed $dark-color;
- }
- // 通栏样式
- &.block {
- width: 100%;
- border-radius: 0;
- }
- // size-小号
- &.small {
- height: $btn-height-small;
- padding: 0 $btn-height-small/2;
- font-size: $font-size-small;
- }
- &.no-txt-small {
- width: $btn-height-small;
- padding: 0;
- .txt-icon {
- margin: 0;
- }
- }
- &.no-txt {
- width: $btn-height-big;
- padding: 0;
- .txt-icon {
- margin: 0;
- }
- }
- // shape-圆角
- &.circle {
- border-radius: $btn-border-radius-large;
- }
- }
|