mixins.scss
2.39 KB
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
94
95
96
97
98
99
@import '@/uni.scss';
@mixin glass-panel($opacity: 0.88) {
background: rgba(253, 255, 252, $opacity);
border: 1rpx solid rgba(255, 255, 255, 0.8);
border-radius: $radius-card;
box-shadow: $shadow-card;
}
@mixin outlined-card($opacity: 0.88) {
@include glass-panel($opacity);
border-color: rgba(210, 191, 156, 0.16);
}
@mixin section-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24rpx;
}
@mixin primary-button {
display: inline-flex;
align-items: center;
justify-content: center;
height: 92rpx;
padding: 0 38rpx;
border-radius: $radius-button;
color: #fff;
font-size: 28rpx;
font-weight: 600;
letter-spacing: 3rpx;
background: $brand-primary-deep;
border: 1rpx solid rgba(210, 191, 156, 0.26);
box-shadow: 0 22rpx 48rpx rgba(36, 74, 61, 0.18);
}
@mixin secondary-button {
display: inline-flex;
align-items: center;
justify-content: center;
height: 84rpx;
padding: 0 30rpx;
border-radius: 42rpx;
color: $brand-primary-deep;
font-size: 26rpx;
font-weight: 600;
letter-spacing: 2rpx;
background: rgba(255, 255, 255, 0.9);
border: 1rpx solid rgba(210, 191, 156, 0.22);
box-shadow: 0 14rpx 30rpx rgba(54, 77, 64, 0.08);
}
@mixin capsule($bg: rgba(255, 255, 255, 0.74), $color: $text-secondary) {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10rpx 20rpx;
border-radius: $radius-chip;
background: $bg;
color: $color;
font-size: 22rpx;
border: 1rpx solid rgba(255, 255, 255, 0.2);
box-shadow: $shadow-chip;
}
@mixin chip-soft {
@include capsule(rgba(210, 191, 156, 0.16), $brand-primary-deep);
border-color: rgba(210, 191, 156, 0.14);
}
@mixin chip-status {
@include capsule(rgba(210, 191, 156, 0.18), $brand-primary-deep);
border-color: rgba(210, 191, 156, 0.14);
}
@mixin chip-rose {
@include capsule(rgba(182, 142, 154, 0.16), $brand-primary-deep);
border-color: rgba(182, 142, 154, 0.14);
}
@mixin chip-inverse {
@include capsule(rgba(255, 255, 255, 0.2), #fff);
border-color: rgba(255, 255, 255, 0.22);
}
@mixin selection-chip {
border-radius: 24rpx;
background: rgba(255, 255, 255, 0.82);
border: 1rpx solid rgba(210, 191, 156, 0.16);
box-shadow: $shadow-soft;
}
@mixin selection-chip-active {
color: #fff;
background: $brand-primary-deep;
border: 1rpx solid rgba(210, 191, 156, 0.24);
box-shadow: 0 18rpx 40rpx rgba(100, 140, 118, 0.22);
}