Skip to content

Commit 1c702fa

Browse files
author
Gauge Developer
committed
style: 调整设置弹窗配色为绿色系,与页面Duolingo风格保持一致
- 移除紫色渐变配色 - 使用绿色 #58cc02 作为主色调 - 减小圆角从16px到8px - 统一按钮阴影样式
1 parent 73b7461 commit 1c702fa

1 file changed

Lines changed: 69 additions & 59 deletions

File tree

Lines changed: 69 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* 节点点击行为设置弹窗样式 */
1+
/* 节点点击行为设置弹窗样式 - Duolingo风格 */
22

33
.click-behavior-settings-overlay {
44
position: fixed;
@@ -16,56 +16,57 @@
1616

1717
.click-behavior-settings-modal {
1818
background: white;
19-
border-radius: 16px;
19+
border-radius: 8px;
2020
width: 90%;
21-
max-width: 400px;
22-
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
23-
animation: modalSlideIn 0.3s ease-out;
21+
max-width: 380px;
22+
box-shadow: 0 4px 0 #d0d0d0, 0 8px 20px rgba(0, 0, 0, 0.15);
23+
animation: modalSlideIn 0.2s ease-out;
2424
overflow: hidden;
2525
}
2626

2727
@keyframes modalSlideIn {
2828
from {
2929
opacity: 0;
30-
transform: translateY(-20px) scale(0.95);
30+
transform: translateY(-10px);
3131
}
3232
to {
3333
opacity: 1;
34-
transform: translateY(0) scale(1);
34+
transform: translateY(0);
3535
}
3636
}
3737

38-
/* 头部 */
38+
/* 头部 - 使用绿色系 */
3939
.settings-header {
4040
display: flex;
4141
justify-content: space-between;
4242
align-items: center;
43-
padding: 20px 24px;
44-
border-bottom: 1px solid #e8e8e8;
45-
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
43+
padding: 16px 20px;
44+
border-bottom: 1px solid #e0e0e0;
45+
background: #58cc02;
46+
box-shadow: 0 2px 0 #46a302;
4647
}
4748

4849
.settings-header h2 {
4950
margin: 0;
50-
font-size: 18px;
51-
font-weight: 600;
51+
font-size: 16px;
52+
font-weight: 700;
5253
color: white;
5354
}
5455

5556
.close-btn {
5657
background: none;
5758
border: none;
58-
font-size: 24px;
59+
font-size: 20px;
5960
color: white;
6061
cursor: pointer;
6162
padding: 0;
62-
width: 32px;
63-
height: 32px;
63+
width: 28px;
64+
height: 28px;
6465
display: flex;
6566
align-items: center;
6667
justify-content: center;
6768
border-radius: 50%;
68-
transition: background 0.2s;
69+
transition: background 0.15s;
6970
}
7071

7172
.close-btn:hover {
@@ -74,42 +75,42 @@
7475

7576
/* 内容区 */
7677
.settings-content {
77-
padding: 20px 24px;
78+
padding: 16px 20px;
7879
}
7980

8081
.settings-description {
81-
margin: 0 0 20px 0;
82+
margin: 0 0 16px 0;
8283
color: #666;
83-
font-size: 14px;
84+
font-size: 13px;
8485
line-height: 1.5;
8586
}
8687

8788
/* 选项列表 */
8889
.behavior-options {
8990
display: flex;
9091
flex-direction: column;
91-
gap: 12px;
92+
gap: 10px;
9293
}
9394

9495
.behavior-option {
9596
display: flex;
9697
align-items: flex-start;
97-
padding: 16px;
98-
border: 2px solid #e8e8e8;
99-
border-radius: 12px;
98+
padding: 12px;
99+
border: 2px solid #e0e0e0;
100+
border-radius: 8px;
100101
cursor: pointer;
101-
transition: all 0.2s;
102+
transition: all 0.15s;
102103
background: white;
103104
}
104105

105106
.behavior-option:hover {
106-
border-color: #667eea;
107-
background: #f8f9ff;
107+
border-color: #58cc02;
108+
background: #f8fff5;
108109
}
109110

110111
.behavior-option.selected {
111-
border-color: #667eea;
112-
background: #f0f2ff;
112+
border-color: #58cc02;
113+
background: #f0ffeb;
113114
}
114115

115116
.behavior-option input[type="radio"] {
@@ -119,23 +120,23 @@
119120
}
120121

121122
.radio-indicator {
122-
width: 20px;
123-
height: 20px;
123+
width: 18px;
124+
height: 18px;
124125
border: 2px solid #d0d0d0;
125126
border-radius: 50%;
126-
margin-right: 12px;
127+
margin-right: 10px;
127128
flex-shrink: 0;
128129
position: relative;
129-
transition: all 0.2s;
130+
transition: all 0.15s;
130131
}
131132

132133
.behavior-option:hover .radio-indicator {
133-
border-color: #667eea;
134+
border-color: #58cc02;
134135
}
135136

136137
.behavior-option.selected .radio-indicator {
137-
border-color: #667eea;
138-
background: #667eea;
138+
border-color: #58cc02;
139+
background: #58cc02;
139140
}
140141

141142
.behavior-option.selected .radio-indicator::after {
@@ -144,70 +145,79 @@
144145
top: 50%;
145146
left: 50%;
146147
transform: translate(-50%, -50%);
147-
width: 8px;
148-
height: 8px;
148+
width: 6px;
149+
height: 6px;
149150
background: white;
150151
border-radius: 50%;
151152
}
152153

153154
.option-content {
154155
display: flex;
155156
flex-direction: column;
156-
gap: 4px;
157+
gap: 2px;
157158
}
158159

159160
.option-label {
160-
font-weight: 600;
161-
font-size: 15px;
161+
font-weight: 700;
162+
font-size: 14px;
162163
color: #333;
163164
}
164165

165166
.option-description {
166-
font-size: 13px;
167+
font-size: 12px;
167168
color: #888;
168169
}
169170

170171
/* 底部按钮 */
171172
.settings-footer {
172173
display: flex;
173174
justify-content: flex-end;
174-
gap: 12px;
175-
padding: 16px 24px;
176-
border-top: 1px solid #e8e8e8;
175+
gap: 10px;
176+
padding: 12px 20px;
177+
border-top: 1px solid #e0e0e0;
177178
background: #fafafa;
178179
}
179180

180181
.btn-cancel,
181182
.btn-save {
182-
padding: 10px 20px;
183+
padding: 8px 16px;
183184
border-radius: 8px;
184-
font-size: 14px;
185-
font-weight: 500;
185+
font-size: 13px;
186+
font-weight: 700;
186187
cursor: pointer;
187-
transition: all 0.2s;
188+
transition: all 0.15s;
188189
}
189190

190191
.btn-cancel {
191192
background: white;
192-
border: 1px solid #d0d0d0;
193+
border: none;
193194
color: #666;
195+
box-shadow: 0 2px 0 #d0d0d0;
194196
}
195197

196198
.btn-cancel:hover {
197199
background: #f5f5f5;
198-
border-color: #c0c0c0;
200+
}
201+
202+
.btn-cancel:active {
203+
transform: translateY(2px);
204+
box-shadow: 0 0 0 #d0d0d0;
199205
}
200206

201207
.btn-save {
202-
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
208+
background: #58cc02;
203209
border: none;
204210
color: white;
211+
box-shadow: 0 2px 0 #46a302;
205212
}
206213

207214
.btn-save:hover {
208-
opacity: 0.9;
209-
transform: translateY(-1px);
210-
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
215+
background: #4db802;
216+
}
217+
218+
.btn-save:active {
219+
transform: translateY(2px);
220+
box-shadow: 0 0 0 #46a302;
211221
}
212222

213223
/* 响应式 */
@@ -218,18 +228,18 @@
218228
}
219229

220230
.settings-header {
221-
padding: 16px 20px;
231+
padding: 14px 16px;
222232
}
223233

224234
.settings-content {
225-
padding: 16px 20px;
235+
padding: 14px 16px;
226236
}
227237

228238
.settings-footer {
229-
padding: 12px 20px;
239+
padding: 10px 16px;
230240
}
231241

232242
.behavior-option {
233-
padding: 12px;
243+
padding: 10px;
234244
}
235245
}

0 commit comments

Comments
 (0)