修复个人主页的响应式布局问题,优化移动端显示效果 调整分类和排序区域的样式,移除不必要的margin-left 更新投票组件的内容显示类名为one-line-display-v2 修复主页加载逻辑,优化数据获取和分页处理 移除未使用的代码和注释,清理CSS样式
344 lines
8.3 KiB
Plaintext
344 lines
8.3 KiB
Plaintext
#search-tag {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
|
|
.label-title {
|
|
margin-bottom: 24px;
|
|
|
|
.icon {
|
|
width: 25px;
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.text {
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
font-style: normal;
|
|
font-size: 28px;
|
|
color: #000000;
|
|
}
|
|
}
|
|
|
|
.set-hint-box {
|
|
line-height: 24px;
|
|
margin-bottom: 16px;
|
|
|
|
.set-hint-icon {
|
|
height: 24px;
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.sort-area {
|
|
position: relative;
|
|
z-index: 1;
|
|
|
|
.sort-head {
|
|
cursor: pointer;
|
|
|
|
.text {
|
|
font-size: 14px;
|
|
color: #555555;
|
|
line-height: 26px;
|
|
margin-right: 6px;
|
|
}
|
|
|
|
.icon {
|
|
width: 8px;
|
|
height: 5px;
|
|
|
|
transform: rotate(0deg);
|
|
transition: transform 0.3s ease-in-out;
|
|
|
|
&.rotate {
|
|
transform: rotate(180deg);
|
|
}
|
|
}
|
|
}
|
|
|
|
.sort-mask {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
|
|
.sort-box {
|
|
position: absolute;
|
|
top: 28px;
|
|
right: 0;
|
|
width: 140px;
|
|
padding: 0 10px;
|
|
background-color: rgba(255, 255, 255, 1);
|
|
border-radius: 8px;
|
|
box-shadow: 0 0 5px rgba(0, 0, 0, 0.168627450980392);
|
|
|
|
.item {
|
|
font-size: 16px;
|
|
color: #555555;
|
|
text-align: center;
|
|
height: 60px;
|
|
line-height: 60px;
|
|
cursor: pointer;
|
|
|
|
&.pitch {
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
font-style: normal;
|
|
color: #d35110;
|
|
}
|
|
|
|
&:not(:last-child) {
|
|
border-bottom: 1px dotted #d7d7d7;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.matter {
|
|
align-items: flex-start;
|
|
|
|
.matter-content {
|
|
min-width: 0;
|
|
margin-right: 12px;
|
|
position: sticky;
|
|
z-index: 1;
|
|
|
|
.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);
|
|
bottom: 10px;
|
|
}
|
|
|
|
.recommend-and-essence {
|
|
width: 291px;
|
|
height: 64px;
|
|
background-color: rgba(255, 255, 255, 1);
|
|
border: 1px solid rgba(233, 238, 242, 1);
|
|
border-radius: 10px;
|
|
padding: 0 10px;
|
|
justify-content: space-between;
|
|
margin-bottom: 12px;
|
|
|
|
.item {
|
|
width: 130px;
|
|
height: 40px;
|
|
background-color: rgba(246, 246, 246, 1);
|
|
border: 1px solid rgba(242, 242, 242, 1);
|
|
border-radius: 65px;
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
font-style: normal;
|
|
font-size: 16px;
|
|
color: #000000;
|
|
cursor: pointer;
|
|
|
|
.icon {
|
|
width: 20px;
|
|
height: 24px;
|
|
margin-right: 8px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 805px) {
|
|
.item-box .bottom .bottom-item:not(:last-child) {
|
|
margin-right: 40px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
#search-tag {
|
|
.search-box {
|
|
width: auto !important;
|
|
margin: 0 10px 20px;
|
|
height: 40px !important;
|
|
}
|
|
.classify {
|
|
// margin-left: 10px;
|
|
// margin-right: 10px;
|
|
}
|
|
|
|
.matter {
|
|
.matter-content {
|
|
margin: 0;
|
|
}
|
|
.sidebar-box {
|
|
display: none;
|
|
}
|
|
|
|
.search-box {
|
|
margin-left: 10px;
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
}
|
|
|
|
#search-tag {
|
|
padding: 0 10px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 630px) {
|
|
.sign-in.flexacenter {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 500px) {
|
|
#search-tag .classify .item {
|
|
min-width: inherit;
|
|
font-size: 13px;
|
|
height: 28px;
|
|
line-height: 28px;
|
|
border-radius: 8px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 480px) {
|
|
.item-box .bottom .bottom-item:not(:last-child) {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.head-top.flexacenter .input-box {
|
|
width: inherit;
|
|
height: inherit;
|
|
background: none;
|
|
border: none;
|
|
padding: 5px;
|
|
|
|
.input {
|
|
display: none;
|
|
}
|
|
|
|
.placeholder {
|
|
display: none;
|
|
}
|
|
|
|
.icon {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 450px) {
|
|
#search-tag .classify .item {
|
|
padding: 0 5px;
|
|
}
|
|
}
|