reception-filter-shared.scss
4.6 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
.glass-card {
background-color: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(226, 232, 240, 1);
// ✅ 性能优化:移除 box-shadow
// box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
border-radius: 10px;
flex-direction: column;
}
.filter-group {
min-width: 0;
padding: 3px;
border-radius: 8px;
}
.filter-group-compact {
padding: 2px;
border-radius: 6px;
}
.filter-tabs-row {
flex-direction: row;
flex: 1;
width: 100%;
height: var(--reception-list-filters-tabs-row-height, 40px);
min-height: var(--reception-list-filters-tabs-row-height, 40px);
}
.entry-filter-segmented-wrap {
align-items: stretch;
.un-segmented {
flex: 1;
width: 100%;
border-width: 0;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 10px;
padding: 2px;
}
.un-segmented__item {
border-width: 0;
border-radius: 10px;
.un-segmented__item__text {
color: #64748b;
font-size: var(--reception-list-filters-segmented-font-size, 14px);
}
&--active {
background-color: #ffffff;
// ✅ 性能优化:移除 box-shadow
// box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
.un-segmented__item__text {
color: #1677ff;
font-weight: 600;
}
}
}
}
.filter-actions {
flex-direction: row;
flex-wrap: nowrap;
flex-grow: 0;
flex-shrink: 0;
margin-left: auto;
}
// =========================
// 组合类(降低模板里的 class 噪音)
// - 保留现有的原子类供历史代码使用
// - 新代码优先使用下面这些更“语义化”的短类名
// =========================
// 基础卡片(等价于 glass-card)
.reception-filter-card {
background-color: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(226, 232, 240, 1);
// ✅ 性能优化:移除 box-shadow
// box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
border-radius: 10px;
flex-direction: column;
}
// 筛选项外壳(等价于 filter-group + filter-group-compact)
.reception-filter-shell {
min-width: 0;
padding: 2px;
border-radius: 6px;
}
// "半宽 segmented"容器(从 Primary 本地样式提取,供 Primary/Secondary 复用)
.reception-filter-entry-segmented-half {
flex-grow: 0;
flex-shrink: 0;
flex-basis: 50%;
width: 50%;
// ✅ UVUE 不支持 max-width: 50%,移除后由 width: 50% 控制
min-width: 0;
}
// =========================
// 更短的缩写类(进一步减少模板字符数)
// - rcf = reception center filters
// - 建议模板层优先使用这组短类
// =========================
// 基础卡片:卡片外观 + 壳(等价于 reception-filter-card + reception-filter-shell)
.rcf-card {
background-color: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(226, 232, 240, 1);
// ✅ 性能优化:移除 box-shadow
// box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
border-radius: 10px;
flex-direction: column;
min-width: 0;
padding: 2px;
border-radius: 6px;
}
// 半宽 segmented:rcf-card + 50% 宽度
.rcf-half {
background-color: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(226, 232, 240, 1);
// ✅ 性能优化:移除 box-shadow
// box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
border-radius: 10px;
flex-direction: column;
min-width: 0;
padding: 2px;
border-radius: 6px;
flex-grow: 0;
flex-shrink: 0;
flex-basis: 50%;
width: 50%;
// ✅ UVUE 不支持 max-width: 50%,移除后由 width: 50% 控制
min-width: 0;
}
// review 区域卡片(用于 Secondary):rcf-card + review-tabs-wrap 的布局外观
.rcf-review-card {
background-color: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(226, 232, 240, 1);
// ✅ 性能优化:移除 box-shadow
// box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
border-radius: 10px;
flex-direction: column;
min-width: 0;
padding: 2px;
border-radius: 6px;
flex: 1 1 0;
min-width: 0;
background: #f3f7fd;
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 2px;
box-sizing: border-box;
}
// review 区域半宽 segmented:rcf-half + review-tabs-wrap 的布局外观
.rcf-review-half {
background-color: rgba(255, 255, 255, 0.85);
border: 1px solid rgba(226, 232, 240, 1);
// ✅ 性能优化:移除 box-shadow
// box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
border-radius: 10px;
flex-direction: column;
min-width: 0;
padding: 2px;
border-radius: 6px;
flex-grow: 0;
flex-shrink: 0;
flex-basis: 50%;
width: 50%;
// ✅ UVUE 不支持 max-width: 50%,移除后由 width: 50% 控制
min-width: 0;
flex: 1 1 0;
min-width: 0;
background: #f3f7fd;
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 2px;
box-sizing: border-box;
}