Files
PC-Light-Forum/css/search.less
DESKTOP-RQ919RC\Pc 5cdbeb249f feat: 优化页面布局和交互体验
- 使用sticky定位替代fixed定位,提升滚动体验
- 添加视频播放图标和图片展示功能
- 实现搜索框热门关键词轮播效果
- 优化编辑器链接插入功能
- 调整组件样式和布局细节
2025-11-10 19:06:58 +08:00

166 lines
4.0 KiB
Plaintext

#search {
width: 1200px;
margin: 0 auto;
.search-box {
width: 460px;
height: 48px;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(215, 215, 215, 1);
border-radius: 10px;
padding: 0 16px;
margin-bottom: 20px;
.search-input {
border: none;
outline: none;
height: 100%;
}
.search-icon {
width: 20px;
height: 20px;
cursor: pointer;
}
}
.classify {
margin-bottom: 16px;
.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;
}
}
}
.quantity {
font-size: 14px;
line-height: 26px;
color: #555;
margin-bottom: 14px;
.line {
width: 1px;
height: 14px;
background-color: #aaaaaa;
margin: 0 10px;
}
.num {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
color: #000000;
margin: 0 10px;
}
}
.matter {
align-items: flex-start;
&.bottom {
align-items: flex-end;
}
.matter-content {
margin-right: 12px;
position: sticky;
z-index: 1;
// &.fixed {
// position: fixed;
// left: calc((100% - 1200px) / 2);
// bottom: 10px;
// }
.list-box {
.item-box {
margin-bottom: 12px;
}
}
.empty {
width: 100%;
height: 70vh;
background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(233, 238, 242, 1);
border-radius: 10px;
flex-direction: column;
margin-right: 12px;
.empty-icon {
width: 80px;
height: 94px;
}
.empty-text {
font-size: 14px;
color: #7f7f7f;
margin-top: 10px;
}
}
.pages-box {
padding-bottom: 60px;
padding-top: 30px;
.item {
min-width: 24px;
height: 24px;
line-height: 24px;
text-align: center;
border-radius: 50px;
font-size: 14px;
color: #555555;
cursor: pointer;
padding: 0 4px;
&.pitch {
background-color: #6fc16d;
color: #ffffff;
}
}
.arrows {
width: 7px;
height: 12px;
margin: 0 30px;
cursor: pointer;
&.rotate180 {
transform: rotate(180deg);
}
}
}
}
.sidebar-box {
width: 291px;
position: sticky;
// &.fixed {
// position: fixed;
// // right: calc((100% - 1200px) / 2);
// // left: 909px;
// left: calc((100% - 1200px) / 2 + 909px);
// bottom: 10px;
// }
}
}
}