feat(header): 新增头部组件功能与样式优化
- 添加默认头像图片资源 - 扩展监听文件同步配置 - 重构头像展示样式,增加背景和尺寸控制 - 完善签到功能逻辑和样式交互 - 新增头部组件HTML模板和JS实现 - 调整搜索框和历史记录显示逻辑 - 优化页面布局和响应式设计
This commit is contained in:
@@ -187,7 +187,8 @@
|
||||
height: 300px;
|
||||
display: block;
|
||||
}
|
||||
#details .matter .matter-left .html h1 {
|
||||
#details .matter .matter-left .html h1,
|
||||
#details .matter .matter-left .html section {
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
color: #000000 !important;
|
||||
@@ -389,6 +390,20 @@
|
||||
height: 120px;
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .sidebar-QRCode img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .QRcode {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .QRcode .load {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
animation: loadingRotate 1s linear infinite;
|
||||
}
|
||||
#details .matter .sidebar-box .sidebar-item .sidebar-content .hint {
|
||||
font-size: 14px;
|
||||
color: #555555;
|
||||
|
||||
@@ -198,7 +198,6 @@
|
||||
|
||||
* {
|
||||
color: #04b0d5 !important;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,15 +220,14 @@
|
||||
display: block;
|
||||
}
|
||||
|
||||
h1 {
|
||||
h1,
|
||||
section {
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
font-weight: 650;
|
||||
color: #000000 !important;
|
||||
font-size: 18px;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
.last-time {
|
||||
@@ -467,6 +465,23 @@
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
margin-bottom: 18px;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.QRcode {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin-bottom: 4px;
|
||||
|
||||
.load {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
animation: loadingRotate 1s linear infinite;
|
||||
}
|
||||
}
|
||||
|
||||
.hint {
|
||||
@@ -904,7 +919,8 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.answer-discuss .input-box .bottom .operate .item {}
|
||||
.answer-discuss .input-box .bottom .operate .item {
|
||||
}
|
||||
|
||||
.answer-discuss .input-box .bottom .operate .item .emoji-box {
|
||||
width: 582px;
|
||||
@@ -1647,7 +1663,6 @@
|
||||
.comments-box {
|
||||
.comments-item {
|
||||
.comments-header {
|
||||
|
||||
.comment-icon,
|
||||
.like-box {
|
||||
margin-left: 15px;
|
||||
@@ -1657,4 +1672,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1571,8 +1571,6 @@ body {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.head-top {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 30px;
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
}
|
||||
@@ -1627,6 +1625,7 @@ body {
|
||||
cursor: pointer;
|
||||
}
|
||||
.head-top .input-box .search-box-history {
|
||||
display: none;
|
||||
width: 460px;
|
||||
/* height: 267px; */
|
||||
background-color: #ffffff;
|
||||
@@ -1657,22 +1656,43 @@ body {
|
||||
height: 40px;
|
||||
border-radius: 83px;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
}
|
||||
.head-top .sign-in .sign-in-already-box {
|
||||
display: none;
|
||||
}
|
||||
.head-top .sign-in.sign-in-already {
|
||||
background-color: #ffffff;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
.head-top .sign-in.sign-in-already .sign-in-already-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 192px;
|
||||
height: 40px;
|
||||
}
|
||||
.head-top .sign-in.sign-in-already .sign-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.head-top .sign-in.sign-in-already .sign-in-no-box {
|
||||
display: none;
|
||||
}
|
||||
.head-top .sign-in.sign-in-no {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding-right: 8px;
|
||||
}
|
||||
.head-top .sign-in.sign-in-no .sign-in-no-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 192px;
|
||||
height: 40px;
|
||||
}
|
||||
.head-top .sign-in.sign-in-no .sign-in-bj {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -1741,6 +1761,9 @@ body {
|
||||
top: 25px;
|
||||
left: 136px;
|
||||
}
|
||||
.head-top .post-list {
|
||||
display: none;
|
||||
}
|
||||
.head-top .post-list .post-item {
|
||||
width: 84px;
|
||||
height: 34px;
|
||||
|
||||
@@ -1896,10 +1896,10 @@ body {
|
||||
}
|
||||
|
||||
.head-top {
|
||||
margin-top: 20px;
|
||||
margin-bottom: 30px;
|
||||
position: relative;
|
||||
z-index: 4;
|
||||
// max-width: 1200px;
|
||||
// margin: 20px auto 30px;
|
||||
|
||||
.logo {
|
||||
height: 52px;
|
||||
@@ -1961,6 +1961,7 @@ body {
|
||||
}
|
||||
|
||||
.search-box-history {
|
||||
display: none;
|
||||
width: 460px;
|
||||
/* height: 267px; */
|
||||
background-color: rgba(255, 255, 255, 1);
|
||||
@@ -1996,17 +1997,33 @@ body {
|
||||
height: 40px;
|
||||
border-radius: 83px;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
|
||||
.sign-in-already-box {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.sign-in-already {
|
||||
background-color: #ffffff;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
.sign-in-already-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 192px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.sign-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.sign-in-no-box {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&.sign-in-no {
|
||||
@@ -2014,6 +2031,15 @@ body {
|
||||
z-index: 1;
|
||||
padding-right: 8px;
|
||||
|
||||
.sign-in-no-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
width: 192px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.sign-in-bj {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -2095,6 +2121,7 @@ body {
|
||||
}
|
||||
|
||||
.post-list {
|
||||
display: none;
|
||||
.post-item {
|
||||
width: 84px;
|
||||
height: 34px;
|
||||
|
||||
@@ -90,11 +90,17 @@
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
}
|
||||
#sectionIndex .matter .matter-content .info-box .img {
|
||||
#sectionIndex .matter .matter-content .info-box .img-box {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 10px;
|
||||
margin-right: 20px;
|
||||
background: #dddddd;
|
||||
}
|
||||
#sectionIndex .matter .matter-content .info-box .img-box .img {
|
||||
border-radius: 10px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
#sectionIndex .matter .matter-content .info-box .right .title {
|
||||
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
||||
|
||||
@@ -97,11 +97,17 @@
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
|
||||
.img {
|
||||
.img-box {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
border-radius: 10px;
|
||||
margin-right: 20px;
|
||||
background: #dddddd;
|
||||
.img {
|
||||
border-radius: 10px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
|
||||
Reference in New Issue
Block a user