- 使用sticky定位替代fixed定位,提升滚动体验 - 添加视频播放图标和图片展示功能 - 实现搜索框热门关键词轮播效果 - 优化编辑器链接插入功能 - 调整组件样式和布局细节
128 lines
2.5 KiB
CSS
128 lines
2.5 KiB
CSS
#search {
|
|
width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
#search .search-box {
|
|
width: 460px;
|
|
height: 48px;
|
|
background-color: #ffffff;
|
|
border: 1px solid #d7d7d7;
|
|
border-radius: 10px;
|
|
padding: 0 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
#search .search-box .search-input {
|
|
border: none;
|
|
outline: none;
|
|
height: 100%;
|
|
}
|
|
#search .search-box .search-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
cursor: pointer;
|
|
}
|
|
#search .classify {
|
|
margin-bottom: 16px;
|
|
}
|
|
#search .classify .item {
|
|
width: 50px;
|
|
height: 32px;
|
|
line-height: 32px;
|
|
text-align: center;
|
|
background-color: #ffffff;
|
|
border: 1px solid #f2f2f2;
|
|
border-radius: 12px;
|
|
color: #333333;
|
|
cursor: pointer;
|
|
font-size: 15px;
|
|
}
|
|
#search .classify .item.pitch {
|
|
background-color: #d35110;
|
|
color: #ffffff;
|
|
}
|
|
#search .classify .item:not(:last-child) {
|
|
margin-right: 10px;
|
|
}
|
|
#search .quantity {
|
|
font-size: 14px;
|
|
line-height: 26px;
|
|
color: #555;
|
|
margin-bottom: 14px;
|
|
}
|
|
#search .quantity .line {
|
|
width: 1px;
|
|
height: 14px;
|
|
background-color: #aaaaaa;
|
|
margin: 0 10px;
|
|
}
|
|
#search .quantity .num {
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
color: #000000;
|
|
margin: 0 10px;
|
|
}
|
|
#search .matter {
|
|
align-items: flex-start;
|
|
}
|
|
#search .matter.bottom {
|
|
align-items: flex-end;
|
|
}
|
|
#search .matter .matter-content {
|
|
margin-right: 12px;
|
|
position: sticky;
|
|
z-index: 1;
|
|
}
|
|
#search .matter .matter-content .list-box .item-box {
|
|
margin-bottom: 12px;
|
|
}
|
|
#search .matter .matter-content .empty {
|
|
width: 100%;
|
|
height: 70vh;
|
|
background-color: #ffffff;
|
|
border: 1px solid #e9eef2;
|
|
border-radius: 10px;
|
|
flex-direction: column;
|
|
margin-right: 12px;
|
|
}
|
|
#search .matter .matter-content .empty .empty-icon {
|
|
width: 80px;
|
|
height: 94px;
|
|
}
|
|
#search .matter .matter-content .empty .empty-text {
|
|
font-size: 14px;
|
|
color: #7f7f7f;
|
|
margin-top: 10px;
|
|
}
|
|
#search .matter .matter-content .pages-box {
|
|
padding-bottom: 60px;
|
|
padding-top: 30px;
|
|
}
|
|
#search .matter .matter-content .pages-box .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;
|
|
}
|
|
#search .matter .matter-content .pages-box .item.pitch {
|
|
background-color: #6fc16d;
|
|
color: #ffffff;
|
|
}
|
|
#search .matter .matter-content .pages-box .arrows {
|
|
width: 7px;
|
|
height: 12px;
|
|
margin: 0 30px;
|
|
cursor: pointer;
|
|
}
|
|
#search .matter .matter-content .pages-box .arrows.rotate180 {
|
|
transform: rotate(180deg);
|
|
}
|
|
#search .matter .sidebar-box {
|
|
width: 291px;
|
|
position: sticky;
|
|
}
|