page {
|
box-sizing: border-box;
|
padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
|
}
|
|
.page-header {
|
position: relative;
|
}
|
|
.search {
|
position: absolute;
|
top: 20rpx;
|
left: 0;
|
width: 100%;
|
z-index: 99;
|
font-size: 28rpx;
|
}
|
|
.placeholder {
|
font-size: 28rpx;
|
}
|
|
.page-header .t-search__input-container {
|
border-radius: 15rpx !important;
|
margin: 0 24rpx;
|
height: 64rpx !important;
|
}
|
|
.page-container {
|
padding: 120rpx 0 20rpx 0;
|
width: 100%;
|
}
|
|
.side-bar-wrapper {
|
background-color: #f2f3f8;
|
display: flex;
|
}
|
|
.side-bar-content {
|
width: 70%;
|
padding: 0 20rpx;
|
}
|
|
.tab-left {
|
--td-side-bar-font-size: 14px;
|
/* 选中文字颜色 */
|
--td-side-bar-active-color: #ff6c00;
|
/* 整体背景 */
|
--td-side-bar-bg-color: #fff;
|
/* 选中背景 */
|
--td-bg-color-container: #f2f3f8;
|
/* 未选中文字颜色 */
|
--td-side-bar-color: '#333'
|
}
|
|
.tab-top {
|
overflow-x: scroll;
|
}
|
|
.tab-active {
|
background-color: #ff6c00 !important;
|
color: #fff;
|
}
|
|
.myScroll {
|
/* 盒子的样式 */
|
width: 100%;
|
height: 98rpx;
|
white-space: nowrap;
|
}
|
|
.myScroll .row {
|
font-size: 14px;
|
padding: 10rpx 14rpx;
|
margin: 20rpx 0;
|
border-radius: 10rpx;
|
/* 定义每个子件 */
|
height: 40rpx;
|
background: #fff;
|
margin-right: 20rpx;
|
display: inline-block;
|
}
|
|
.myScroll .row:last-child {
|
/* 选择最后一个子件 清零边距 */
|
margin-right: 0;
|
}
|
|
.class-list {
|
/* overflow-y: auto; */
|
height: 72.5vh;
|
width: 262px;
|
}
|
|
.class-box {
|
background-color: #fff;
|
margin-bottom: 10rpx;
|
padding: 10rpx 12rpx;
|
border-radius: 12rpx;
|
/* height: 60rpx; */
|
}
|
|
.class-name {
|
font-size: 32rpx;
|
font-weight: 700;
|
}
|
|
.class-content {
|
display: flex;
|
flex-wrap: wrap;
|
padding: 5rpx 20rpx 30rpx 30rpx;
|
}
|
|
.book-box {
|
width: 140rpx;
|
margin: 0 10rpx 20rpx 0
|
}
|
|
.book-box:nth-child(3n) {
|
margin-right: 0;
|
}
|
|
.book-box image {
|
height: 142rpx;
|
object-fit: contain;
|
}
|
|
.classify {
|
max-width: 90%;
|
white-space: nowrap;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
font-size: 14px;
|
}
|