split frontend detail

This commit is contained in:
Timi
2026-01-06 11:22:24 +08:00
parent 98b0c0027d
commit 4022cf56c8
9 changed files with 76 additions and 96 deletions

7
WebStylesheet.md Normal file
View File

@ -0,0 +1,7 @@
## 前端样式约束
- CSS、LESS 的属性应当尽量缩写,如使用 background 而不是 background-color
- CSS、LESS 的单位优先使用 rem除非 % 或 vw vh 等比例单位
- CSS、LESS 的属性应该按照属性名长度由短到长排序以便维护
- CSS、LESS 的数值小于 1 时不需要 0如 .5 而不是 0.5,最多 4 位小数
- LESS 的类命名应该简短,子级命名无需父级前缀