mirror of
https://github.com/Moe-Sakura/frontend.git
synced 2026-05-20 21:45:46 +08:00
feat: 更新依赖项与优化组件样式
* 在 `package.json` 中添加 ESLint 相关依赖,增强代码质量管理。 * 更新 `index.html` 中的样式,移除图片懒加载的默认透明度设置,避免显示问题。 * 在 `App.vue` 和其他组件中优化代码格式,提升可读性和一致性。 * 更新 `env.d.ts` 文件,添加类型注释以支持 Vue 组件的类型定义。 * 在 `StatsCorner.vue` 中引入过渡效果,提升用户体验。
This commit is contained in:
@@ -99,16 +99,11 @@
|
||||
color: var(--text-dark);
|
||||
}
|
||||
|
||||
/* 图片懒加载淡入动画 */
|
||||
/* 图片懒加载淡入动画 - 移除默认 opacity: 0,避免显示问题 */
|
||||
img[loading="lazy"] {
|
||||
opacity: 0;
|
||||
transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
img[loading="lazy"].loaded {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Pace.js 自定义样式 */
|
||||
.pace {
|
||||
pointer-events: none;
|
||||
|
||||
Reference in New Issue
Block a user