- 修改主页和其他页面的宽度为百分比布局,添加最大宽度限制 - 增加媒体查询规则,针对不同屏幕尺寸调整布局和样式 - 优化导航栏、卡片和列表在移动端的显示效果 - 添加滚动条隐藏样式,提升移动端用户体验
578 lines
14 KiB
CSS
578 lines
14 KiB
CSS
#homepage-me {
|
|
width: 100%;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
box-sizing: border-box;
|
|
padding: 0 10px;
|
|
}
|
|
#homepage-me .matter {
|
|
align-items: flex-start;
|
|
}
|
|
#homepage-me .matter .card-user {
|
|
width: 320px;
|
|
background: -webkit-linear-gradient(270.06444514deg, #ffffff 0%, #eef8f9 100%);
|
|
background: -moz-linear-gradient(179.93555486deg, #ffffff 0%, #eef8f9 100%);
|
|
background: linear-gradient(179.93555486deg, #ffffff 0%, #eef8f9 100%);
|
|
box-sizing: border-box;
|
|
border: 1px solid #e9eef2;
|
|
border-radius: 10px;
|
|
flex-direction: column;
|
|
padding-top: 39px;
|
|
padding-bottom: 38px;
|
|
margin-right: 20px;
|
|
position: sticky;
|
|
top: 10px;
|
|
}
|
|
#homepage-me .matter .card-user .avatar-box {
|
|
position: relative;
|
|
margin-bottom: 20px;
|
|
}
|
|
#homepage-me .matter .card-user .avatar-box .avatar {
|
|
width: 120px;
|
|
height: 120px;
|
|
border-radius: 8px;
|
|
}
|
|
#homepage-me .matter .card-user .avatar-box .pen-box {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background-color: #ffffff;
|
|
cursor: pointer;
|
|
position: absolute;
|
|
right: 3px;
|
|
bottom: 3px;
|
|
}
|
|
#homepage-me .matter .card-user .avatar-box .pen-box .pen-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
#homepage-me .matter .card-user .name-area {
|
|
margin-bottom: 40px;
|
|
}
|
|
#homepage-me .matter .card-user .name-area .username {
|
|
font-size: 15px;
|
|
color: #333;
|
|
margin-bottom: 12px;
|
|
}
|
|
#homepage-me .matter .card-user .name-area .uid {
|
|
color: #7f7f7f;
|
|
font-size: 13px;
|
|
}
|
|
#homepage-me .matter .card-user .name-area .uid .icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
margin-left: 9px;
|
|
cursor: pointer;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box {
|
|
position: relative;
|
|
width: 260px;
|
|
height: 65px;
|
|
background: linear-gradient(255.75deg, #ffbd15 0%, #fff5d1 99%);
|
|
border-radius: 12px;
|
|
z-index: 1;
|
|
justify-content: space-between;
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
margin-bottom: 40px;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-masking {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 260px;
|
|
height: 65px;
|
|
z-index: -1;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-icon {
|
|
width: 50px;
|
|
height: 56px;
|
|
margin-right: 7px;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-content {
|
|
flex-direction: column;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-content .bi-sum {
|
|
font-family: Arial-Black, "Arial Black", sans-serif;
|
|
font-weight: 900;
|
|
font-style: normal;
|
|
font-size: 16px;
|
|
color: #000000;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-content .bi-text {
|
|
font-size: 13px;
|
|
letter-spacing: normal;
|
|
color: #333333;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-btn {
|
|
width: 98px;
|
|
height: 26px;
|
|
background-color: #fff6d8;
|
|
border-radius: 60px;
|
|
box-shadow: rgba(0, 0, 0, 0.145) 0px 0px 5px;
|
|
font-size: 15px;
|
|
line-height: 26px;
|
|
font-size: 13px;
|
|
color: #ab7713;
|
|
text-decoration: none;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-btn .bi-question {
|
|
width: 14px;
|
|
height: 14px;
|
|
margin-left: 5px;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-btn:hover .bi-pop {
|
|
display: flex;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-pop {
|
|
width: 260px;
|
|
box-sizing: border-box;
|
|
position: absolute;
|
|
background-color: #f6f7f7;
|
|
top: 58px;
|
|
left: 0;
|
|
z-index: 1;
|
|
border-radius: 12px;
|
|
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.35);
|
|
flex-direction: column;
|
|
padding: 10px;
|
|
color: #555;
|
|
display: none;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-pop .bi-coin-title {
|
|
font-weight: 650;
|
|
font-size: 16px;
|
|
color: #000000;
|
|
margin-bottom: 5px;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-pop .bi-coin-hint {
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-pop .bi-coin-hint a {
|
|
text-decoration: none;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-pop .bi-coin-hint .bi-url {
|
|
text-decoration: underline;
|
|
color: #04b0d5;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-pop::before {
|
|
content: "";
|
|
width: 10px;
|
|
height: 10px;
|
|
position: absolute;
|
|
top: -19px;
|
|
right: 40px;
|
|
width: 0;
|
|
height: 0;
|
|
transform: translateX(-50%);
|
|
border: 10px solid #000;
|
|
border-top-color: transparent;
|
|
border-bottom-color: #f6f7f7;
|
|
border-left-color: transparent;
|
|
border-right-color: transparent;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-pop::after {
|
|
content: "";
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 20px;
|
|
display: block;
|
|
z-index: -1;
|
|
top: -15px;
|
|
left: 0;
|
|
}
|
|
#homepage-me .matter .card-user .medal-area {
|
|
margin: 0 30px;
|
|
align-self: self-start;
|
|
}
|
|
#homepage-me .matter .card-user .medal-area .title {
|
|
font-size: 14px;
|
|
color: #7f7f7f;
|
|
margin-bottom: 13px;
|
|
}
|
|
#homepage-me .matter .card-user .medal-area .list {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
#homepage-me .matter .card-user .medal-area .list .item {
|
|
height: 30px;
|
|
max-width: 30px;
|
|
margin-right: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box {
|
|
background-color: #ffffff;
|
|
border: 1px solid #e9eef2;
|
|
border-radius: 10px;
|
|
padding-left: 95px;
|
|
padding-right: 40px;
|
|
padding-bottom: 31px;
|
|
margin-bottom: 20px;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .header {
|
|
border-bottom: 1px dotted #d7d7d7;
|
|
padding-top: 46px;
|
|
padding-bottom: 19px;
|
|
position: relative;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .header .avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
position: absolute;
|
|
top: 40px;
|
|
left: -55px;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .header .username {
|
|
font-size: 14px;
|
|
color: #333333;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .header .icon {
|
|
height: 20px;
|
|
margin-left: 8px;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .info-list {
|
|
flex-flow: wrap;
|
|
padding-top: 20px;
|
|
border-bottom: 1px dotted #d7d7d7;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .info-list .item {
|
|
width: 50%;
|
|
margin-bottom: 15px;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .info-list .item .label {
|
|
font-size: 14px;
|
|
color: #7f7f7f;
|
|
width: 87px;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .info-list .item .value {
|
|
font-size: 14px;
|
|
color: #000000;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .info-list .item .status {
|
|
color: #555555;
|
|
font-size: 13px;
|
|
padding: 0 6px;
|
|
height: 20px;
|
|
line-height: 20px;
|
|
background-color: #f0f1ec;
|
|
border-radius: 23px;
|
|
margin-left: 10px;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .info-list .item .status.blue {
|
|
color: #ffffff;
|
|
background-color: #04b0d5;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .stats {
|
|
padding-top: 20px;
|
|
padding-bottom: 21px;
|
|
font-size: 14px;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .stats .item .text {
|
|
color: #7f7f7f;
|
|
margin-right: 5px;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .stats .item .num {
|
|
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
|
|
font-weight: 700;
|
|
color: #04b0d5;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .stats .line {
|
|
color: #d7d7d7;
|
|
margin: 0 14px;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .tags {
|
|
flex-wrap: wrap;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .tags .item {
|
|
padding: 0 10px;
|
|
font-size: 14px;
|
|
color: #333333;
|
|
height: 24px;
|
|
background-color: #f6f6f6;
|
|
border: 1px solid #f0f1ec;
|
|
border-radius: 5px;
|
|
margin-right: 20px;
|
|
margin-bottom: 10px;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .tags .item .icon {
|
|
height: 13px;
|
|
margin-right: 7px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
background-color: #ffffff;
|
|
border: 1px solid #e9eef2;
|
|
border-radius: 10px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .operation-box {
|
|
padding-top: 40px;
|
|
padding-left: 95px;
|
|
padding-right: 40px;
|
|
padding-bottom: 18px;
|
|
font-size: 18px;
|
|
color: #7f7f7f;
|
|
border-bottom: 1px dotted #d7d7d7;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .operation-box .operation-item {
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .operation-box .operation-item:not(:last-child) {
|
|
margin-right: 40px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .operation-box .operation-item.pitch {
|
|
font-family: PingFangSC-Semibold, "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
font-style: normal;
|
|
font-size: 18px;
|
|
color: #000000;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .operation-box .operation-item.pitch::after {
|
|
content: "";
|
|
width: 100%;
|
|
height: 6px;
|
|
background-color: #50e3c2;
|
|
border-radius: 26px;
|
|
position: absolute;
|
|
bottom: -21px;
|
|
display: block;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .classify {
|
|
padding-top: 37px;
|
|
padding-bottom: 23px;
|
|
padding-left: 95px;
|
|
padding-right: 40px;
|
|
overflow-x: auto;
|
|
justify-content: flex-start;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .classify::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .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;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .classify .item.pitch {
|
|
background-color: #d35110;
|
|
color: #ffffff;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .classify .item:not(:last-child) {
|
|
margin-right: 10px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .issue-data {
|
|
color: #7f7f7f;
|
|
font-size: 14px;
|
|
margin-bottom: 20px;
|
|
padding-left: 95px;
|
|
padding-right: 40px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .issue-data .num {
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
color: #000000;
|
|
margin: 0 5px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .list-box {
|
|
padding-left: 95px;
|
|
padding-right: 40px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .list-box .item-box {
|
|
margin-bottom: 20px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .empty {
|
|
width: 725px;
|
|
height: 360px;
|
|
background-color: #ffffff;
|
|
border: 1px solid #e9eef2;
|
|
border-radius: 10px;
|
|
flex-direction: column;
|
|
margin-bottom: 20px;
|
|
margin-left: 95px;
|
|
margin-right: 40px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .empty .empty-icon {
|
|
width: 80px;
|
|
height: 94px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .empty .empty-text {
|
|
font-size: 14px;
|
|
color: #7f7f7f;
|
|
margin-top: 10px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .load-more {
|
|
padding: 20px 0 40px;
|
|
color: #7f7f7f;
|
|
font-size: 14px;
|
|
}
|
|
/* 响应式布局优化 */
|
|
@media screen and (max-width: 880px) {
|
|
.head-top {
|
|
margin: 10px auto 15px !important;
|
|
}
|
|
.head-navigation {
|
|
display: none !important;
|
|
}
|
|
#homepage-me {
|
|
width: 100%;
|
|
padding: 0;
|
|
}
|
|
#homepage-me .matter {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
#homepage-me .matter .card-user {
|
|
width: auto;
|
|
margin: 0 0 15px 0;
|
|
padding: 30px 20px;
|
|
position: static;
|
|
align-items: center;
|
|
border-radius: 0;
|
|
border-left: none;
|
|
border-right: none;
|
|
}
|
|
#homepage-me .matter .card-user .avatar-box {
|
|
margin-bottom: 15px;
|
|
}
|
|
#homepage-me .matter .card-user .avatar-box .pen-box {
|
|
right: 50%;
|
|
margin-right: -60px;
|
|
}
|
|
#homepage-me .matter .card-user .name-area {
|
|
text-align: center;
|
|
margin-bottom: 25px;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box {
|
|
margin-bottom: 25px;
|
|
}
|
|
#homepage-me .matter .card-user .medal-area {
|
|
margin: 0;
|
|
align-self: center;
|
|
}
|
|
#homepage-me .matter .card-user .medal-area .list {
|
|
justify-content: center;
|
|
}
|
|
#homepage-me .matter .matter-content {
|
|
width: 100%;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box {
|
|
width: auto;
|
|
margin: 0 0 15px 0;
|
|
padding: 20px;
|
|
border-radius: 0;
|
|
border-left: none;
|
|
border-right: none;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .header {
|
|
padding-top: 0;
|
|
text-align: center;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .header .avatar {
|
|
display: none;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .header .username {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .info-list {
|
|
padding-top: 15px;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .info-list .item {
|
|
width: 50%;
|
|
padding-right: 10px;
|
|
box-sizing: border-box;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .tags {
|
|
justify-content: center;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area {
|
|
border-radius: 0;
|
|
border-left: none;
|
|
border-right: none;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .operation-box {
|
|
padding: 15px 20px;
|
|
overflow-x: auto;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .operation-box::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .operation-box .operation-item {
|
|
flex-shrink: 0;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .operation-box .operation-item:not(:last-child) {
|
|
margin-right: 30px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .classify {
|
|
padding: 10px 20px 20px;
|
|
overflow-x: auto;
|
|
white-space: nowrap;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .classify::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .classify .item {
|
|
flex-shrink: 0;
|
|
width: auto;
|
|
padding: 0 15px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .issue-data {
|
|
padding: 0 20px 15px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .list-box {
|
|
padding: 0 20px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .empty {
|
|
width: auto;
|
|
height: auto;
|
|
min-height: 200px;
|
|
margin: 20px;
|
|
padding: 40px 0;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .empty .empty-icon {
|
|
width: 60px;
|
|
height: 60px;
|
|
}
|
|
#homepage-me .matter .matter-content .list-area .load-more {
|
|
margin-bottom: 30px;
|
|
}
|
|
}
|
|
@media screen and (max-width: 480px) {
|
|
#homepage-me .matter .card-user .bi-box {
|
|
width: 100%;
|
|
max-width: 320px;
|
|
}
|
|
#homepage-me .matter .card-user .bi-box .bi-masking {
|
|
width: 100%;
|
|
background-size: 100% 100%;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .info-list .item {
|
|
width: 100%;
|
|
margin-bottom: 12px;
|
|
justify-content: space-between;
|
|
}
|
|
#homepage-me .matter .matter-content .message-box .info-list .item .label {
|
|
width: auto;
|
|
}
|
|
}
|