|
134 | 134 | </script> |
135 | 135 |
|
136 | 136 | <style lang="scss" scoped> |
137 | | - @import '~element-ui/packages/theme-chalk/src/common/var'; |
138 | | -
|
139 | 137 | #share-banner { |
140 | 138 | width: 100vw; |
141 | 139 | min-height: 30px; |
142 | | - background-color: $--color-primary; |
143 | | - color: $--color-text-regular; |
| 140 | + background-color: #409eff; |
| 141 | + color: #606266; |
144 | 142 | text-align: center; |
145 | 143 | font-size: 14px; |
146 | 144 | position: fixed; |
147 | 145 | top: 58px; |
148 | 146 | left: 50%; |
149 | 147 | transform: translateX(-50%); |
150 | | - border-bottom: 1px solid $--border-color-light; |
| 148 | + border-bottom: 1px solid #e4e7ed; |
151 | 149 | z-index: 9; |
152 | 150 | line-height: 30px; |
153 | 151 | color: #eee; |
|
178 | 176 |
|
179 | 177 | .container { |
180 | 178 | margin: 0 auto; |
181 | | - padding: 0 $--size-base * 2; |
182 | | - margin-bottom: $--size-base; |
| 179 | + padding: 0 16px; |
| 180 | + margin-bottom: 8px; |
183 | 181 | } |
184 | 182 |
|
185 | 183 | .main { |
|
188 | 186 | } |
189 | 187 |
|
190 | 188 | .heading { |
191 | | - margin-bottom: $--size-base; |
| 189 | + margin-bottom: 8px; |
192 | 190 |
|
193 | 191 | .name { |
194 | 192 | font-size: 32px; |
195 | 193 | font-weight: 700; |
196 | | - background: linear-gradient(120deg, $--color-primary, #ff2485, #ff951a, #5614f0); |
| 194 | + background: linear-gradient(120deg, #409eff, #ff2485, #ff951a, #5614f0); |
197 | 195 | -webkit-background-clip: text; |
198 | 196 | -webkit-text-fill-color: transparent; |
199 | 197 | line-height: 1.2; |
|
203 | 201 | display: block; |
204 | 202 | font-size: 24px; |
205 | 203 | font-weight: 400; |
206 | | - color: $--color-text-primary; |
| 204 | + color: #303133; |
207 | 205 | line-height: 1.2; |
208 | 206 | } |
209 | 207 | } |
210 | 208 |
|
211 | 209 | .tagline { |
212 | 210 | font-size: 18px; |
213 | | - color: $--color-text-regular; |
214 | | - margin: $--size-base 0; |
| 211 | + color: #606266; |
| 212 | + margin: 8px 0; |
215 | 213 | line-height: 1.6; |
216 | 214 | } |
217 | 215 |
|
218 | 216 | .actions { |
219 | 217 | display: flex; |
220 | | - gap: $--size-base; |
| 218 | + gap: 8px; |
221 | 219 |
|
222 | 220 | .action { |
223 | | - margin-right: $--size-base; |
| 221 | + margin-right: 8px; |
224 | 222 | } |
225 | 223 | } |
226 | 224 |
|
|
240 | 238 | height: 310px; |
241 | 239 | background: radial-gradient( |
242 | 240 | circle, |
243 | | - rgba($--color-primary, 0.1) 0%, |
244 | | - rgba($--color-primary, 0) 60% |
| 241 | + rgba(64, 158, 255, 0.1) 0%, |
| 242 | + rgba(64, 158, 255, 0) 60% |
245 | 243 | ); |
246 | 244 | border-radius: 50%; |
247 | 245 | } |
|
263 | 261 | .items { |
264 | 262 | display: flex; |
265 | 263 | flex-direction: column; |
266 | | - gap: $--size-base * 2; |
267 | | - padding: 0 $--size-base; |
| 264 | + gap: 16px; |
| 265 | + padding: 0 8px; |
268 | 266 | } |
269 | 267 |
|
270 | 268 | .feature-box { |
271 | | - background-color: $--background-color-base; |
272 | | - border-radius: $--border-radius-base; |
273 | | - padding: $--size-base $--size-base * 2; |
| 269 | + background-color: #f5f7fa; |
| 270 | + border-radius: 4px; |
| 271 | + padding: 8px 16px; |
274 | 272 | transition: all 0.3s ease; |
275 | 273 | box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); |
276 | 274 | width: 100%; |
277 | 275 | max-width: 600px; |
278 | 276 | margin: 0 auto; |
279 | 277 |
|
280 | | - @media (max-width: $--sm) { |
| 278 | + @media (max-width: 768px) { |
281 | 279 | max-width: 100%; |
282 | 280 | margin: 0; |
283 | | - padding: $--size-base; |
| 281 | + padding: 8px; |
284 | 282 |
|
285 | 283 | &:hover { |
286 | 284 | transform: none; |
|
296 | 294 | .title { |
297 | 295 | font-size: 20px; |
298 | 296 | font-weight: 600; |
299 | | - color: $--color-text-primary; |
300 | | - margin-bottom: $--size-base * 1.5; |
| 297 | + color: #303133; |
| 298 | + margin-bottom: 12px; |
301 | 299 | display: flex; |
302 | 300 | align-items: center; |
303 | | - gap: $--size-base; |
| 301 | + gap: 8px; |
304 | 302 |
|
305 | | - @media (max-width: $--sm) { |
| 303 | + @media (max-width: 768px) { |
306 | 304 | font-size: 16px; |
307 | | - margin-bottom: $--size-base; |
| 305 | + margin-bottom: 8px; |
308 | 306 | } |
309 | 307 |
|
310 | 308 | &::before { |
311 | 309 | content: ''; |
312 | 310 | width: 4px; |
313 | 311 | height: 20px; |
314 | | - background: $--color-primary; |
| 312 | + background: #409eff; |
315 | 313 | border-radius: 2px; |
316 | 314 |
|
317 | | - @media (max-width: $--sm) { |
| 315 | + @media (max-width: 768px) { |
318 | 316 | height: 16px; |
319 | 317 | } |
320 | 318 | } |
321 | 319 | } |
322 | 320 |
|
323 | 321 | .details { |
324 | 322 | font-size: 14px; |
325 | | - color: $--color-text-regular; |
| 323 | + color: #606266; |
326 | 324 | line-height: 1.8; |
327 | | - padding-left: $--size-base + 4px; |
| 325 | + padding-left: 12px; |
328 | 326 |
|
329 | | - @media (max-width: $--sm) { |
| 327 | + @media (max-width: 768px) { |
330 | 328 | font-size: 13px; |
331 | 329 | line-height: 1.6; |
332 | | - padding-left: $--size-base + 2px; |
| 330 | + padding-left: 10px; |
333 | 331 | } |
334 | 332 | } |
335 | 333 | } |
336 | 334 | } |
337 | 335 |
|
338 | 336 | .acknowledgment { |
339 | | - padding-top: $--size-base * 2; |
| 337 | + padding-top: 16px; |
340 | 338 | text-align: center; |
341 | 339 |
|
342 | 340 | .container { |
|
345 | 343 |
|
346 | 344 | .thanks-text { |
347 | 345 | font-size: 14px; |
348 | | - color: $--color-text-regular; |
| 346 | + color: #606266; |
349 | 347 | line-height: 1.6; |
350 | 348 |
|
351 | 349 | .repo-link { |
352 | | - color: $--color-primary; |
| 350 | + color: #409eff; |
353 | 351 | text-decoration: none; |
354 | 352 | font-weight: 600; |
355 | 353 | transition: color 0.3s ease; |
356 | 354 |
|
357 | 355 | &:hover { |
358 | | - color: $--color-primary-light-3; |
| 356 | + color: #79bbff; |
359 | 357 | } |
360 | 358 | } |
361 | 359 | } |
362 | 360 |
|
363 | | - @media (max-width: $--sm) { |
364 | | - padding: $--size-base * 2 0; |
| 361 | + @media (max-width: 768px) { |
| 362 | + padding: 16px 0; |
365 | 363 | } |
366 | 364 | } |
367 | 365 | } |
368 | 366 |
|
369 | 367 | // 响应式设计 |
370 | | - @media (max-width: $--sm) { |
| 368 | + @media (max-width: 768px) { |
371 | 369 | .custom-home { |
372 | 370 | .custom-hero { |
373 | 371 | &.has-image { |
|
392 | 390 | } |
393 | 391 |
|
394 | 392 | .image { |
395 | | - margin-top: $--size-base * 4; |
| 393 | + margin-top: 32px; |
396 | 394 | } |
397 | 395 | } |
398 | 396 |
|
|
404 | 402 | } |
405 | 403 | } |
406 | 404 |
|
407 | | - @media (min-width: $--sm) and (max-width: $--lg) { |
| 405 | + @media (min-width: 768px) and (max-width: 992px) { |
408 | 406 | .custom-features { |
409 | 407 | .items { |
410 | 408 | grid-template-columns: repeat(2, 1fr); |
|
0 commit comments