refactor(static): 首页内联样式解耦至 css/index.css
- 新增页面级样式文件 css/index.css(与 view.css/aibox.css 惯例一致) - index.html 移除内联 <style> 块与头像内联样式,改为外链 - 头像圆角 100px 优化为 border-radius: 50%
This commit is contained in:
1 parent
1a5e9f7064
commit
de0e4168b2
2 files changed
+40
-29
No files matched your search
@@ -0,0 +1,38 @@
|
||||
/* index.css — 社区首页专属样式(通用主题见 theme.css) */
|
||||
|
||||
body {
|
||||
align-items: normal;
|
||||
}
|
||||
|
||||
/* ===== 头部 ===== */
|
||||
.header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.right-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.right-group > img,
|
||||
.right-group > b,
|
||||
.right-group > button {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
#avatar {
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
/* ===== 网站简介 ===== */
|
||||
.site-intro {
|
||||
max-width: 640px;
|
||||
margin: 0 auto;
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.9;
|
||||
color: var(--fg-secondary);
|
||||
}
|
||||
Reference in new issue
Block a user