PlayEdu-h5/src/pages/index/index.module.scss
2023-07-03 11:29:14 +08:00

141 lines
2.5 KiB
SCSS

.tabs-box {
width: 100%;
float: left;
height: 40px;
background-color: #ffffff;
box-sizing: border-box;
padding: 0px 8px;
position: fixed;
top: 0;
z-index: 10;
}
.category-box {
width: 100%;
float: left;
height: auto;
box-sizing: border-box;
padding: 20px;
}
.category-content {
width: 100%;
float: left;
height: auto;
background-color: #ffffff;
box-sizing: border-box;
padding: 20px 20px 0px 20px;
text-align: left;
position: fixed;
top: 40px;
z-index: 10;
}
.category-box {
width: 100%;
height: 330px;
box-sizing: border-box;
padding: 10px 20px 20px 20px;
overflow-x: hidden;
overflow-y: auto;
.category-item {
width: 100%;
float: left;
height: auto;
.category-tit {
width: 100%;
font-size: 14px;
font-weight: 400;
color: rgba(0, 0, 0, 0.88);
line-height: 30px;
margin-bottom: 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.active-category-item {
width: 100%;
float: left;
height: auto;
.category-tit {
width: 100%;
font-size: 14px;
font-weight: 400;
color: #ff4d4f;
line-height: 30px;
margin-bottom: 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
}
.child-item {
width: 100%;
float: left;
height: auto;
box-sizing: border-box;
padding-left: 20px;
.category-tit {
width: 100%;
font-size: 14px;
font-weight: 400;
color: rgba(0, 0, 0, 0.88);
line-height: 30px;
margin-bottom: 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.active-child-item {
width: 100%;
float: left;
height: auto;
box-sizing: border-box;
padding-left: 20px;
.category-tit {
width: 100%;
font-size: 14px;
font-weight: 400;
color: #ff4d4f;
line-height: 30px;
margin-bottom: 15px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.list-box {
width: 100%;
height: auto;
box-sizing: border-box;
padding: 96px 20px 55px 20px;
text-align: left;
overflow-x: hidden;
overflow-y: auto;
.item {
width: 100%;
float: left;
height: auto;
box-sizing: border-box;
padding-top: 30px;
display: flex;
flex-direction: column;
&:first-child {
padding-top: 20px;
}
}
}
@media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
.list-box {
padding-bottom: 89px !important;
}
}