Files
PC-Light-Forum/css/index.less
DESKTOP-RQ919RC\Pc 6bb48ff86d refactor(component): 重构组件模板与样式结构
将公共样式提取至public.css,优化组件模板结构
添加图片资源与组件模板同步脚本
调整组件样式与布局,统一风格
2025-10-22 18:31:16 +08:00

228 lines
5.7 KiB
Plaintext

.topic-and-selectives {
.head-top {
width: 64px;
height: 24px;
border-radius: 20px 20px 20px 0;
margin-bottom: 10px;
.icon {
width: 15px;
height: 12px;
margin-right: 3px;
}
.text {
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-style: normal;
color: #ffffff;
font-size: 14px;
}
}
.topic-box {
width: 308px;
height: 320px;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(233, 238, 242, 1);
border-radius: 10px;
padding: 10px;
margin-right: 12px;
.head-top {
background-color: rgba(244, 174, 56, 1);
}
.topic-head {
height: 109px;
background-color: rgba(246, 246, 246, 1);
border-radius: 8px;
flex-direction: column;
justify-content: space-between;
padding: 12px 16px;
margin-bottom: 12px;
.title {
font-size: 16px;
color: #000000;
line-height: 23px;
}
.hint {
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 16px;
color: #7f7f7f;
}
.people {
position: relative;
justify-content: space-between;
&::after {
content: "";
position: absolute;
top: 0;
left: 0;
transform: translateY(-100%);
width: 30px;
height: 4px;
background-color: rgba(244, 174, 56, 1);
border-radius: 150px;
}
.left {
color: #aaaaaa;
font-size: 13px;
.number {
color: #333333;
margin-right: 3px;
}
}
.right {
.item {
width: 26px;
height: 26px;
border-radius: 50%;
.img {
width: 26px;
height: 26px;
border-radius: 50%;
}
&:nth-child(6) {
margin-right: -9px;
}
&:nth-child(5) {
margin-right: -9px;
}
&:nth-child(4) {
margin-right: -7px;
}
}
}
}
}
.topic-list {
.item {
&:hover {
color: #000000;
}
&:not(:last-child) {
margin-bottom: 1px;
}
.img {
width: 12px;
height: 10px;
margin-right: 9px;
}
.text {
font-size: 14px;
color: #555555;
line-height: 28px;
}
}
}
}
.selectives-box {
width: 628px;
height: 320px;
background-color: #ffffff;
border: 1px solid #e9eef2;
border-radius: 10px;
padding: 10px;
.head-top {
background-color: rgba(246, 130, 81, 1);
margin-bottom: 22px;
}
.list {
flex-wrap: wrap;
padding: 0 5px;
justify-content: space-between;
.item {
font-size: 14px;
color: #555555;
line-height: 20px;
margin-bottom: 12px;
position: relative;
.dot {
width: 6px;
height: 6px;
border-radius: 50%;
background-color: #f68251;
margin-right: 10px;
}
.text {
width: 265px;
}
}
}
}
}
.forum-sections-list {
position: relative;
width: 897px;
height: 240px;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(233, 238, 242, 1);
border-radius: 10px;
padding-left: 70px;
padding-top: 20px;
.img {
position: absolute;
top: -1px;
left: -1px;
width: 60px;
height: 240px;
}
.title {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
font-style: normal;
font-size: 16px;
color: #000000;
margin-bottom: 16px;
}
.list {
.line {
&:not(:last-child) {
margin-bottom: 10px;
}
.item {
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 14px;
color: #333;
padding: 0 18px;
height: 32px;
background-color: rgba(246, 246, 246, 1);
border: 1px solid rgba(242, 242, 242, 1);
border-radius: 16px;
cursor: pointer;
&:not(:last-child) {
margin-right: 10px;
}
}
}
}
}