lin
2026-04-29 b6b181050a3831525007d2d1cd932e505494a48d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
@import '@/uni_modules/uv-ui-tools/libs/css/color.scss';
// nvue下hover-class无效
$uv-button-before-top:50% !default;
$uv-button-before-left:50% !default;
$uv-button-before-width:100% !default;
$uv-button-before-height:100% !default;
$uv-button-before-transform:translate(-50%, -50%) !default;
$uv-button-before-opacity:0 !default;
$uv-button-before-background-color:#000 !default;
$uv-button-before-border-color:#000 !default;
$uv-button-active-before-opacity:.15 !default;
$uv-button-icon-margin-left:4px !default;
$uv-button-plain-uv-button-info-color:$uv-info;
$uv-button-plain-uv-button-success-color:$uv-success;
$uv-button-plain-uv-button-error-color:$uv-error;
$uv-button-plain-uv-button-warning-color:$uv-warning;
 
.uv-button-wrapper {
    position: relative;
    &--dis {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 9;
    }
}
 
.uv-button {
    width: 100%;
    
    &__text {
        white-space: nowrap;
        line-height: 1;
    }
    
    &:before {
        position: absolute;
        top:$uv-button-before-top;
        left:$uv-button-before-left;
        width:$uv-button-before-width;
        height:$uv-button-before-height;
        border: inherit;
        border-radius: inherit;
        transform:$uv-button-before-transform;
        opacity:$uv-button-before-opacity;
        content: " ";
        background-color:$uv-button-before-background-color;
        border-color:$uv-button-before-border-color;
    }
    
    &--active {
        &:before {
            opacity: .15
        }
    }
    
    &__icon+&__text:not(:empty),
    &__loading-text {
        margin-left:$uv-button-icon-margin-left;
    }
    
    &--plain {
        &.uv-button--primary {
            color: $uv-primary;
        }
    }
    
    &--plain {
        &.uv-button--info {
            color:$uv-button-plain-uv-button-info-color;
        }
    }
    
    &--plain {
        &.uv-button--success {
            color:$uv-button-plain-uv-button-success-color;
        }
    }
    
    &--plain {
        &.uv-button--error {
            color:$uv-button-plain-uv-button-error-color;
        }
    }
    
    &--plain {
        &.uv-button--warning {
            color:$uv-button-plain-uv-button-warning-color;
        }
    }
}