|
1 | | -/* 节点点击行为设置弹窗样式 */ |
| 1 | +/* 节点点击行为设置弹窗样式 - Duolingo风格 */ |
2 | 2 |
|
3 | 3 | .click-behavior-settings-overlay { |
4 | 4 | position: fixed; |
|
16 | 16 |
|
17 | 17 | .click-behavior-settings-modal { |
18 | 18 | background: white; |
19 | | - border-radius: 16px; |
| 19 | + border-radius: 8px; |
20 | 20 | 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; |
24 | 24 | overflow: hidden; |
25 | 25 | } |
26 | 26 |
|
27 | 27 | @keyframes modalSlideIn { |
28 | 28 | from { |
29 | 29 | opacity: 0; |
30 | | - transform: translateY(-20px) scale(0.95); |
| 30 | + transform: translateY(-10px); |
31 | 31 | } |
32 | 32 | to { |
33 | 33 | opacity: 1; |
34 | | - transform: translateY(0) scale(1); |
| 34 | + transform: translateY(0); |
35 | 35 | } |
36 | 36 | } |
37 | 37 |
|
38 | | -/* 头部 */ |
| 38 | +/* 头部 - 使用绿色系 */ |
39 | 39 | .settings-header { |
40 | 40 | display: flex; |
41 | 41 | justify-content: space-between; |
42 | 42 | 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; |
46 | 47 | } |
47 | 48 |
|
48 | 49 | .settings-header h2 { |
49 | 50 | margin: 0; |
50 | | - font-size: 18px; |
51 | | - font-weight: 600; |
| 51 | + font-size: 16px; |
| 52 | + font-weight: 700; |
52 | 53 | color: white; |
53 | 54 | } |
54 | 55 |
|
55 | 56 | .close-btn { |
56 | 57 | background: none; |
57 | 58 | border: none; |
58 | | - font-size: 24px; |
| 59 | + font-size: 20px; |
59 | 60 | color: white; |
60 | 61 | cursor: pointer; |
61 | 62 | padding: 0; |
62 | | - width: 32px; |
63 | | - height: 32px; |
| 63 | + width: 28px; |
| 64 | + height: 28px; |
64 | 65 | display: flex; |
65 | 66 | align-items: center; |
66 | 67 | justify-content: center; |
67 | 68 | border-radius: 50%; |
68 | | - transition: background 0.2s; |
| 69 | + transition: background 0.15s; |
69 | 70 | } |
70 | 71 |
|
71 | 72 | .close-btn:hover { |
|
74 | 75 |
|
75 | 76 | /* 内容区 */ |
76 | 77 | .settings-content { |
77 | | - padding: 20px 24px; |
| 78 | + padding: 16px 20px; |
78 | 79 | } |
79 | 80 |
|
80 | 81 | .settings-description { |
81 | | - margin: 0 0 20px 0; |
| 82 | + margin: 0 0 16px 0; |
82 | 83 | color: #666; |
83 | | - font-size: 14px; |
| 84 | + font-size: 13px; |
84 | 85 | line-height: 1.5; |
85 | 86 | } |
86 | 87 |
|
87 | 88 | /* 选项列表 */ |
88 | 89 | .behavior-options { |
89 | 90 | display: flex; |
90 | 91 | flex-direction: column; |
91 | | - gap: 12px; |
| 92 | + gap: 10px; |
92 | 93 | } |
93 | 94 |
|
94 | 95 | .behavior-option { |
95 | 96 | display: flex; |
96 | 97 | 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; |
100 | 101 | cursor: pointer; |
101 | | - transition: all 0.2s; |
| 102 | + transition: all 0.15s; |
102 | 103 | background: white; |
103 | 104 | } |
104 | 105 |
|
105 | 106 | .behavior-option:hover { |
106 | | - border-color: #667eea; |
107 | | - background: #f8f9ff; |
| 107 | + border-color: #58cc02; |
| 108 | + background: #f8fff5; |
108 | 109 | } |
109 | 110 |
|
110 | 111 | .behavior-option.selected { |
111 | | - border-color: #667eea; |
112 | | - background: #f0f2ff; |
| 112 | + border-color: #58cc02; |
| 113 | + background: #f0ffeb; |
113 | 114 | } |
114 | 115 |
|
115 | 116 | .behavior-option input[type="radio"] { |
|
119 | 120 | } |
120 | 121 |
|
121 | 122 | .radio-indicator { |
122 | | - width: 20px; |
123 | | - height: 20px; |
| 123 | + width: 18px; |
| 124 | + height: 18px; |
124 | 125 | border: 2px solid #d0d0d0; |
125 | 126 | border-radius: 50%; |
126 | | - margin-right: 12px; |
| 127 | + margin-right: 10px; |
127 | 128 | flex-shrink: 0; |
128 | 129 | position: relative; |
129 | | - transition: all 0.2s; |
| 130 | + transition: all 0.15s; |
130 | 131 | } |
131 | 132 |
|
132 | 133 | .behavior-option:hover .radio-indicator { |
133 | | - border-color: #667eea; |
| 134 | + border-color: #58cc02; |
134 | 135 | } |
135 | 136 |
|
136 | 137 | .behavior-option.selected .radio-indicator { |
137 | | - border-color: #667eea; |
138 | | - background: #667eea; |
| 138 | + border-color: #58cc02; |
| 139 | + background: #58cc02; |
139 | 140 | } |
140 | 141 |
|
141 | 142 | .behavior-option.selected .radio-indicator::after { |
|
144 | 145 | top: 50%; |
145 | 146 | left: 50%; |
146 | 147 | transform: translate(-50%, -50%); |
147 | | - width: 8px; |
148 | | - height: 8px; |
| 148 | + width: 6px; |
| 149 | + height: 6px; |
149 | 150 | background: white; |
150 | 151 | border-radius: 50%; |
151 | 152 | } |
152 | 153 |
|
153 | 154 | .option-content { |
154 | 155 | display: flex; |
155 | 156 | flex-direction: column; |
156 | | - gap: 4px; |
| 157 | + gap: 2px; |
157 | 158 | } |
158 | 159 |
|
159 | 160 | .option-label { |
160 | | - font-weight: 600; |
161 | | - font-size: 15px; |
| 161 | + font-weight: 700; |
| 162 | + font-size: 14px; |
162 | 163 | color: #333; |
163 | 164 | } |
164 | 165 |
|
165 | 166 | .option-description { |
166 | | - font-size: 13px; |
| 167 | + font-size: 12px; |
167 | 168 | color: #888; |
168 | 169 | } |
169 | 170 |
|
170 | 171 | /* 底部按钮 */ |
171 | 172 | .settings-footer { |
172 | 173 | display: flex; |
173 | 174 | 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; |
177 | 178 | background: #fafafa; |
178 | 179 | } |
179 | 180 |
|
180 | 181 | .btn-cancel, |
181 | 182 | .btn-save { |
182 | | - padding: 10px 20px; |
| 183 | + padding: 8px 16px; |
183 | 184 | border-radius: 8px; |
184 | | - font-size: 14px; |
185 | | - font-weight: 500; |
| 185 | + font-size: 13px; |
| 186 | + font-weight: 700; |
186 | 187 | cursor: pointer; |
187 | | - transition: all 0.2s; |
| 188 | + transition: all 0.15s; |
188 | 189 | } |
189 | 190 |
|
190 | 191 | .btn-cancel { |
191 | 192 | background: white; |
192 | | - border: 1px solid #d0d0d0; |
| 193 | + border: none; |
193 | 194 | color: #666; |
| 195 | + box-shadow: 0 2px 0 #d0d0d0; |
194 | 196 | } |
195 | 197 |
|
196 | 198 | .btn-cancel:hover { |
197 | 199 | background: #f5f5f5; |
198 | | - border-color: #c0c0c0; |
| 200 | +} |
| 201 | + |
| 202 | +.btn-cancel:active { |
| 203 | + transform: translateY(2px); |
| 204 | + box-shadow: 0 0 0 #d0d0d0; |
199 | 205 | } |
200 | 206 |
|
201 | 207 | .btn-save { |
202 | | - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); |
| 208 | + background: #58cc02; |
203 | 209 | border: none; |
204 | 210 | color: white; |
| 211 | + box-shadow: 0 2px 0 #46a302; |
205 | 212 | } |
206 | 213 |
|
207 | 214 | .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; |
211 | 221 | } |
212 | 222 |
|
213 | 223 | /* 响应式 */ |
|
218 | 228 | } |
219 | 229 |
|
220 | 230 | .settings-header { |
221 | | - padding: 16px 20px; |
| 231 | + padding: 14px 16px; |
222 | 232 | } |
223 | 233 |
|
224 | 234 | .settings-content { |
225 | | - padding: 16px 20px; |
| 235 | + padding: 14px 16px; |
226 | 236 | } |
227 | 237 |
|
228 | 238 | .settings-footer { |
229 | | - padding: 12px 20px; |
| 239 | + padding: 10px 16px; |
230 | 240 | } |
231 | 241 |
|
232 | 242 | .behavior-option { |
233 | | - padding: 12px; |
| 243 | + padding: 10px; |
234 | 244 | } |
235 | 245 | } |
0 commit comments