Files
PC-Light-Forum/css/homepage-other.less
DESKTOP-RQ919RC\Pc ea6ae8d7fc fix(homepage): 修复个人主页样式和功能问题
修复个人主页的响应式布局问题,优化移动端显示效果
调整分类和排序区域的样式,移除不必要的margin-left
更新投票组件的内容显示类名为one-line-display-v2
修复主页加载逻辑,优化数据获取和分页处理
移除未使用的代码和注释,清理CSS样式
2025-12-26 18:50:05 +08:00

488 lines
14 KiB
Plaintext

#homepage-other {
width: 100%;
max-width: 1200px;
margin: 0 auto;
box-sizing: border-box;
padding: 0 10px;
.head-navigation {
margin-bottom: 20px;
.icon {
width: 16px;
height: 16px;
}
.arrows {
width: 7px;
height: 12px;
margin: 0 5px;
}
.text {
padding: 0 5px;
font-size: 14px;
color: #000000;
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
}
.matter {
align-items: flex-start;
.card-user {
width: 320px;
background: -webkit-linear-gradient(270.064445137829deg, rgba(255, 255, 255, 1) 0%, rgba(238, 248, 249, 1) 100%);
background: -moz-linear-gradient(179.935554862171deg, rgba(255, 255, 255, 1) 0%, rgba(238, 248, 249, 1) 100%);
background: linear-gradient(179.935554862171deg, rgba(255, 255, 255, 1) 0%, rgba(238, 248, 249, 1) 100%);
box-sizing: border-box;
border: 1px solid rgba(233, 238, 242, 1);
border-radius: 10px;
flex-direction: column;
padding-top: 39px;
padding-bottom: 40px;
margin-right: 20px;
position: sticky;
top: 10px;
.avatar {
width: 120px;
height: 120px;
border-radius: 8px;
margin-bottom: 20px;
}
.name-area {
margin-bottom: 40px;
display: flex;
flex-direction: column;
align-items: center;
.username {
font-size: 15px;
color: #333;
margin-bottom: 12px;
}
.uid {
color: #7f7f7f;
font-size: 13px;
.icon {
width: 14px;
height: 14px;
margin-left: 9px;
cursor: pointer;
}
}
}
.medal-area {
margin: 0 22px 36px 30px;
align-self: self-start;
.title {
font-size: 14px;
color: #7f7f7f;
margin-bottom: 13px;
}
.list {
flex-flow: wrap;
.item {
height: 30px;
max-width: 30px;
margin-right: 8px;
margin-bottom: 8px;
}
}
}
.btn-area {
.item {
width: 200px;
height: 40px;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(235, 235, 235, 1);
border-radius: 8px;
font-size: 15px;
color: #555555;
cursor: pointer;
&:not(:last-child) {
margin-bottom: 15px;
}
&.msg {
background-color: rgba(80, 227, 194, 1);
border: 1px solid rgba(80, 227, 194, 1);
color: #000000;
}
}
}
}
.matter-content {
min-width: 0;
.message-box {
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(233, 238, 242, 1);
border-radius: 10px;
padding-left: 95px;
padding-right: 40px;
padding-bottom: 31px;
margin-bottom: 20px;
.header {
border-bottom: 1px dotted #d7d7d7;
padding-top: 46px;
padding-bottom: 19px;
position: relative;
.avatar {
width: 40px;
height: 40px;
border-radius: 50%;
position: absolute;
top: 40px;
left: -55px;
}
.username {
font-size: 14px;
color: #333333;
}
.icon {
height: 20px;
margin-left: 8px;
}
}
.info-list {
flex-flow: wrap;
padding-top: 20px;
border-bottom: 1px dotted #d7d7d7;
.item {
width: 50%;
margin-bottom: 15px;
.label {
font-size: 14px;
color: #7f7f7f;
width: 87px;
}
.value {
font-size: 14px;
color: #000000;
}
.status {
color: #555555;
font-size: 13px;
padding: 0 6px;
height: 20px;
line-height: 20px;
background-color: rgba(240, 241, 236, 1);
border-radius: 23px;
margin-left: 10px;
&.blue {
color: #ffffff;
background-color: rgba(4, 176, 213, 1);
}
}
}
}
.stats {
padding-top: 20px;
padding-bottom: 21px;
font-size: 14px;
.item {
.text {
color: #7f7f7f;
margin-right: 5px;
}
.num {
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
font-weight: 700;
color: #50e3c2;
}
}
.line {
color: #d7d7d7;
margin: 0 14px;
}
}
.tags {
flex-wrap: wrap;
.item {
padding: 0 10px;
font-size: 14px;
color: #333333;
height: 24px;
background-color: rgba(246, 246, 246, 1);
border: 1px solid rgba(240, 241, 236, 1);
border-radius: 5px;
margin-right: 20px;
margin-bottom: 10px;
cursor: pointer;
.icon {
height: 13px;
margin-right: 7px;
}
}
}
}
.list-area {
width: 100%;
box-sizing: border-box;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(233, 238, 242, 1);
border-radius: 10px;
padding-left: 95px;
padding-right: 40px;
padding-bottom: 50px;
.classify {
padding-top: 39px;
padding-bottom: 23px;
.item {
width: 50px;
height: 32px;
line-height: 32px;
text-align: center;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(242, 242, 242, 1);
border-radius: 12px;
color: #333333;
cursor: pointer;
font-size: 15px;
&.pitch {
background-color: rgba(211, 81, 16, 1);
color: #ffffff;
}
&:not(:last-child) {
margin-right: 10px;
}
}
}
.issue-data {
color: #7f7f7f;
font-size: 14px;
margin-bottom: 20px;
.num {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
color: #000000;
margin: 0 5px;
}
}
.list-box {
.item-box {
margin-bottom: 20px;
}
}
.empty {
// width: 725px;
height: 360px;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(233, 238, 242, 1);
border-radius: 10px;
flex-direction: column;
// margin-bottom: 50px;
.empty-icon {
width: 80px;
height: 94px;
}
.empty-text {
font-size: 14px;
color: #7f7f7f;
margin-top: 10px;
}
}
.load-more {
padding: 20px 0 40px;
color: #7f7f7f;
font-size: 14px;
}
}
}
}
@media screen and (max-width: 900px) {
.matter {
flex-direction: column;
.card-user {
width: 100%;
margin-right: 0;
margin-bottom: 20px;
position: static;
padding: 20px;
.avatar {
width: 80px;
height: 80px;
}
.btn-area {
display: flex;
flex-wrap: nowrap;
justify-content: center;
gap: 10px;
width: 100%;
.item {
flex: 1;
width: auto;
margin-bottom: 0 !important;
}
}
}
.matter-content {
width: 100%;
.message-box {
padding: 20px;
.header {
display: none;
}
.info-list {
padding: 0;
.item {
width: 100%;
justify-content: space-between;
}
}
}
.list-area {
padding: 20px;
.classify {
overflow-x: auto;
justify-content: flex-start;
.item {
width: auto;
padding: 0 10px;
height: 28px;
line-height: 28px;
font-size: 13px;
border-radius: 8px;
}
}
.empty {
width: 100%;
}
}
}
}
}
@media screen and (max-width: 480px) {
.head-navigation {
font-size: 12px;
}
.matter {
.matter-content .list-area {
padding-left: 10px;
padding-right: 10px;
.classify {
padding: 20px 0;
.item {
padding: 0 7px;
}
}
}
.card-user {
.btn-area {
flex-direction: column;
.item {
flex: none;
width: 100%;
margin-bottom: 10px !important;
}
}
}
}
}
@media screen and (max-width: 430px) {
.matter .matter-content .list-area .classify .item:not(:last-child) {
margin-right: 7px;
}
}
}
@media screen and (max-width: 1015px) {
.item-box .bottom .bottom-item:not(:last-child) {
margin-right: 45px;
}
}
@media screen and (max-width: 955px) {
.item-box .bottom .bottom-item:not(:last-child) {
margin-right: 30px;
}
}
@media screen and (max-width: 900px) {
.head-top {
.post-list,
.sign-in {
display: none !important;
}
}
}
@media screen and (max-width: 480px) {
.head-top {
.logo {
height: 30px;
width: auto;
}
.input-box {
background: transparent !important;
border: none !important;
width: auto !important;
padding: 0 !important;
.placeholder,
.input,
.search-box-history {
display: none !important;
}
.icon {
margin: 0 10px;
display: block !important;
}
}
}
}