添加论坛首页板块布局和样式,包括导航栏、签到功能、板块列表和精选内容展示 实现签到状态管理,添加签到按钮和已签到状态显示 新增多个图标资源文件用于界面展示 优化CSS样式结构,删除冗余代码文件
439 lines
13 KiB
Plaintext
439 lines
13 KiB
Plaintext
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
}
|
|
|
|
body {
|
|
background-color: rgba(238, 242, 245, 1);
|
|
}
|
|
|
|
/* 公共的 css 样式 */
|
|
.flexflex {
|
|
display: flex;
|
|
}
|
|
|
|
.flexcenter {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.flexjcenter {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.flexacenter {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.flex1 {
|
|
flex: 1;
|
|
}
|
|
|
|
.flexcolumn {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.one-line-display {
|
|
word-break: keep-all;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
#sectionIndex {
|
|
width: 1200px;
|
|
margin: 0 auto;
|
|
.head-top {
|
|
margin-bottom: 30px;
|
|
|
|
.logo {
|
|
height: 52px;
|
|
}
|
|
|
|
.input-box {
|
|
width: 370px;
|
|
height: 40px;
|
|
background-color: rgba(235, 235, 235, 1);
|
|
border: 2px solid rgba(215, 215, 215, 1);
|
|
border-radius: 11px;
|
|
padding: 0 15px;
|
|
justify-content: space-between;
|
|
margin-right: 20px;
|
|
|
|
.input {
|
|
border: none;
|
|
outline: none;
|
|
height: 100%;
|
|
background-color: transparent;
|
|
}
|
|
|
|
.icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
margin-left: 15rpx;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.sign-in {
|
|
width: 192px;
|
|
height: 40px;
|
|
border-radius: 83px;
|
|
cursor: pointer;
|
|
|
|
&.sign-in-already {
|
|
background-color: #ffffff;
|
|
font-size: 14px;
|
|
color: #333;
|
|
.sign-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
|
|
&.sign-in-no {
|
|
position: relative;
|
|
z-index: 1;
|
|
padding-right: 8px;
|
|
.sign-in-bj {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: -1;
|
|
width: 190px;
|
|
height: 40px;
|
|
}
|
|
|
|
.coin-bj {
|
|
position: absolute;
|
|
width: 157px;
|
|
height: 33px;
|
|
top: 4px;
|
|
left: 29px;
|
|
}
|
|
|
|
.coin-icon {
|
|
width: 43px;
|
|
height: 51px;
|
|
align-self: flex-end;
|
|
z-index: 1;
|
|
margin-left: -2px;
|
|
}
|
|
|
|
.text {
|
|
text-align: center;
|
|
text-shadow: 1px 1px 2px #a63603;
|
|
-webkit-text-shadow: 1px 1px 2px #a63603;
|
|
-moz-text-shadow: 1px 1px 2px #a63603;
|
|
font-size: 15px;
|
|
color: #fff;
|
|
}
|
|
|
|
.sign-go {
|
|
width: 30px;
|
|
height: 30px;
|
|
font-family: "Arial-BoldMT", "Arial Bold", "Arial", sans-serif;
|
|
font-weight: 700;
|
|
font-size: 12px;
|
|
color: #710600;
|
|
position: relative;
|
|
|
|
.sign-go-bj {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: absolute;
|
|
z-index: -1;
|
|
}
|
|
}
|
|
|
|
.petal1,
|
|
.petal2,
|
|
.petal3 {
|
|
position: absolute;
|
|
}
|
|
|
|
.petal1 {
|
|
width: 24px;
|
|
height: 10px;
|
|
top: 3px;
|
|
left: 55px;
|
|
}
|
|
|
|
.petal2 {
|
|
width: 16px;
|
|
height: 14px;
|
|
top: 25px;
|
|
left: 92px;
|
|
}
|
|
.petal3 {
|
|
width: 17px;
|
|
height: 12px;
|
|
top: 25px;
|
|
left: 136px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.head-navigation {
|
|
margin-bottom: 20px;
|
|
.icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.arrows {
|
|
width: 7px;
|
|
height: 12px;
|
|
margin: 0 5px;
|
|
}
|
|
|
|
.text {
|
|
padding: 0 5px;
|
|
font-size: 14px;
|
|
color: #000000;
|
|
cursor: pointer;
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
.matter {
|
|
.sidebar {
|
|
width: 150px;
|
|
height: 1225px;
|
|
background-color: rgba(8, 53, 62, 1);
|
|
border: 1px solid rgba(233, 238, 242, 1);
|
|
border-radius: 10px;
|
|
margin-right: 15px;
|
|
|
|
.title {
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
font-style: normal;
|
|
font-size: 17px;
|
|
color: #badee6;
|
|
padding-top: 29px;
|
|
padding-bottom: 27px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.247058823529412);
|
|
margin-left: 20px;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.list {
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
margin-left: 20px;
|
|
margin-right: 20px;
|
|
&:not(:last-child) {
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.24705882);
|
|
}
|
|
.item {
|
|
height: 50px;
|
|
font-size: 14px;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
z-index: 1;
|
|
|
|
.text {
|
|
z-index: 1;
|
|
position: relative;
|
|
}
|
|
|
|
&.pitch {
|
|
position: relative;
|
|
.text {
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
font-style: normal;
|
|
font-size: 14px;
|
|
color: #08353e;
|
|
}
|
|
&::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: calc(100% + 20px);
|
|
height: 32px;
|
|
background: inherit;
|
|
background-color: rgba(236, 249, 250, 1);
|
|
border: none;
|
|
border-radius: 16px;
|
|
z-index: -1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.matter-content {
|
|
.info {
|
|
width: 1035px;
|
|
background: -webkit-linear-gradient(270.539085289936deg, rgba(255, 255, 255, 1) 2%, rgba(235, 248, 249, 1) 98%);
|
|
background: -moz-linear-gradient(179.460914710064deg, rgba(255, 255, 255, 1) 2%, rgba(235, 248, 249, 1) 98%);
|
|
background: linear-gradient(179.460914710064deg, rgba(255, 255, 255, 1) 2%, rgba(235, 248, 249, 1) 98%);
|
|
border: 1px solid rgba(233, 238, 242, 1);
|
|
border-radius: 10px;
|
|
padding-left: 30px;
|
|
padding-top: 30px;
|
|
padding-bottom: 34px;
|
|
margin-bottom: 20px;
|
|
|
|
.img {
|
|
width: 80px;
|
|
height: 80px;
|
|
border-radius: 10px;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.right {
|
|
.title {
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
font-style: normal;
|
|
font-size: 24px;
|
|
color: #000000;
|
|
margin-bottom: 15px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.link {
|
|
flex-wrap: wrap;
|
|
border-top: 1px dotted #d7d7d7;
|
|
border-bottom: 1px dotted #d7d7d7;
|
|
margin-right: 20px;
|
|
margin-bottom: 28px;
|
|
width: fit-content;
|
|
.item {
|
|
padding: 12px 0;
|
|
&:not(:last-child) {
|
|
margin-right: 72px;
|
|
}
|
|
.text {
|
|
font-size: 14px;
|
|
color: #333333;
|
|
margin-right: 8px;
|
|
}
|
|
.icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.bottom {
|
|
justify-content: space-between;
|
|
margin-right: 20px;
|
|
|
|
.data {
|
|
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
|
font-weight: 400;
|
|
color: #555555;
|
|
font-size: 13px;
|
|
.sum {
|
|
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
|
|
font-weight: 650;
|
|
color: #000000;
|
|
margin: 0 5px;
|
|
}
|
|
}
|
|
.btn {
|
|
width: 125px;
|
|
height: 32px;
|
|
background-color: rgba(80, 227, 194, 1);
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
color: #333;
|
|
.icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin-right: 3px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.details-box {
|
|
.content-box {
|
|
margin-right: 12px;
|
|
|
|
.selectives-box {
|
|
width: 100%;
|
|
height: 320px;
|
|
background-color: #ffffff;
|
|
border: 1px solid #e9eef2;
|
|
border-radius: 10px;
|
|
padding: 19px 14px;
|
|
|
|
.head-top {
|
|
width: 64px;
|
|
height: 24px;
|
|
border-radius: 20px 20px 20px 0;
|
|
margin-bottom: 22px;
|
|
background-color: rgba(246, 130, 81, 1);
|
|
.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;
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.side-box {
|
|
width: 291px;
|
|
height: 300px;
|
|
background-color: rgba(236, 249, 250, 1);
|
|
border-radius: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|