-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
254 lines (216 loc) · 5.01 KB
/
style.css
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
.component-select {
max-width: 60vw;
}
.el-select-dropdown__item {
color: #000 !important;
}
.bundle-price {
color: #67C23A !important;
}
.el-select-dropdown__item.selected {
color: #000 !important;
}
.el-select-dropdown__item.selected.bundle-price {
color: #67C23A !important;
}
.el-select-dropdown__item.is-disabled {
color: #494949 !important;
background-color: #b6b6b6 !important;
font-size: 12px !important;
}
/* 新增的樣式 */
.component-row {
margin-bottom: 15px;
align-items: center;
}
.component-title {
font-weight: bold;
text-align: right;
padding-right: 20px;
}
/* Loading 動畫樣式 */
.loading-container {
display: flex;
justify-content: center;
align-items: center;
flex-direction:column;
height: 100px;
}
.loading-spinner {
margin: 10px 0;
width: 50px;
height: 50px;
border: 5px solid #f3f3f3;
border-top: 5px solid #3498db;
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.option-group {
font-weight: bold;
background-color: #003c1e !important;
color: #676767 !important;
}
/* 增加選擇器的特異性來提高優先級 */
.el-select-dropdown__item.option-group {
font-weight: bold !important;
background-color: #f5f7fa !important;
color: #606266 !important;
}
/* 確保 is-disabled 不會覆蓋 option-group 的樣式 */
.el-select-dropdown__item.is-disabled:not(.option-group) {
color: #540000 !important;
background-color: #c9c9c9 !important;
}
/* 定義四種顏色組合 */
.color-group-1 {
background-color: rgba(64, 158, 255, 0.1) !important;
}
.color-group-1.option-group {
background-color: rgba(64, 158, 255, 0.2) !important;
}
.color-group-2 {
background-color: rgba(103, 194, 58, 0.1) !important;
}
.color-group-2.option-group {
background-color: rgba(103, 194, 58, 0.2) !important;
}
.color-group-3 {
background-color: rgba(230, 162, 60, 0.1) !important;
}
.color-group-3.option-group {
background-color: rgba(230, 162, 60, 0.2) !important;
}
.color-group-4 {
background-color: rgba(245, 108, 108, 0.1) !important;
}
.color-group-4.option-group {
background-color: rgba(245, 108, 108, 0.2) !important;
}
/* is-disabled 的樣式 */
.el-select-dropdown__item.is-disabled:not(.option-group) {
opacity: 0.7 !important;
}
/* 在 style 區塊中加 */
@media screen and (max-width: 480px) {
.component-title {
font-size: 14px;
padding-right: 5px;
}
.el-select {
width: 100%; /* 確保 select 填滿容器 */
}
/* 處理選項文字溢出 */
.el-select-dropdown__item {
white-space: normal !important; /* 允許文字換行 */
height: auto !important;
padding: 5px 8px !important;
line-height: 1.4 !important;
}
/* 調整下拉選單寬度 */
.el-select-dropdown {
width: 90vw !important; /* 使用視窗寬度的 90% */
max-width: 360px;
}
}
/* 新增价格显示相关样式 */
.component-container {
display: flex;
align-items: center;
gap: 10px; /* 元素之间的间距 */
}
.price-display {
min-width: 100px;
padding: 8px 12px;
background-color: #f5f7fa;
border-radius: 4px;
color: #56bb24;
font-weight: bold;
text-align: left;
}
/* 移动端适配 */
@media screen and (max-width: 480px) {
.component-container {
flex-direction: column;
align-items: stretch;
}
.price-display {
margin-top: 5px;
text-align: center;
}
}
/* 在 style 區塊中添加 */
.selection-controls {
display: flex;
gap: 5px;
margin-left: 10px;
}
.component-container {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
flex-wrap: nowrap;
}
/* 移動端適配 */
@media screen and (max-width: 480px) {
.component-container {
flex-direction: row;
align-items: center;
}
.component-select {
flex: 1;
min-width: 0;
}
.price-display {
min-width: 80px;
}
.selection-controls {
margin-left: 5px;
margin-top: 0;
flex-shrink: 0;
}
}
.total-price-display {
margin-top: 10px;
padding: 8px 12px;
background-color: #f5f7fa;
border-radius: 4px;
color: #498a28;
font-weight: bold;
text-align: left;
max-width: 50vw;
}
@media screen and (max-width: 480px) {
.total-price-display {
text-align: center;
margin-bottom: 15px;
}
}
.grand-total-row {
margin-top: 20px;
padding: 15px;
background-color: #f5f7fa;
border-radius: 8px;
}
.grand-total-display {
font-size: 1.5em;
font-weight: bold;
color: #498a28;
text-align: center;
}
@media screen and (max-width: 480px) {
.grand-total-display {
text-align: center;
}
}
/* 新增更新時間的樣式 */
.update-time {
text-align: center;
margin: 10px 0;
color: #606266;
font-size: 0.9em;
}