@import "./index.skeleton.wxss";
|
|
page {
|
width: 100vw;
|
overflow: hidden;
|
box-sizing: border-box;
|
padding-bottom: calc(env(safe-area-inset-bottom) + 96rpx);
|
}
|
|
.navbar-title {
|
height: 80rpx;
|
line-height: 80rpx;
|
text-align: center;
|
color: #0F1214;
|
font-size: 36rpx;
|
}
|
|
.page-header {
|
position: relative;
|
}
|
|
.search {
|
position: absolute;
|
top: 20rpx;
|
left: 0;
|
width: 100%;
|
z-index: 99;
|
--td-search-font-size: 28rpx;
|
}
|
|
|
.page-header .search .t-search__input-container {
|
font-size: 28rpx !important;
|
border-radius: 15rpx !important;
|
margin: 0 24rpx;
|
height: 64rpx !important;
|
}
|
|
.page-container {
|
padding-top: 120rpx;
|
padding-bottom: constant(safe-area-inset-bottom);
|
width: 100%;
|
height: 100%;
|
}
|
|
.side-bar-wrapper {
|
height: 100%;
|
background-color: #f2f3f8;
|
display: flex;
|
}
|
|
.side-bar-content {
|
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: 108rpx;
|
white-space: nowrap;
|
overflow-x: auto;
|
}
|
|
.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: 240rpx;
|
}
|
|
.class-list {
|
/* overflow-y: auto; */
|
height: calc(100vh - 326rpx);
|
width: calc(100vw - 210rpx);
|
}
|
|
.class-box {
|
background-color: #fff;
|
margin-bottom: 20rpx;
|
padding: 10rpx 0rpx;
|
border-radius: 12rpx;
|
box-shadow: 0rpx 0rpx 18rpx 2rpx rgba(0, 0, 0, 0.08);
|
}
|
|
|
.class-name {
|
padding: 20rpx 0 0 20rpx;
|
font-size: 32rpx;
|
font-weight: 700;
|
}
|
|
.class-content {
|
display: flex;
|
flex-wrap: wrap;
|
padding: 30rpx 0;
|
}
|
|
.book-box {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
width: 50%;
|
margin-bottom: 26rpx;
|
}
|
|
.book-box:nth-child(2n) {
|
margin-right: 0;
|
}
|
|
.book-box image {
|
height: 180rpx;
|
}
|
|
.classify {
|
max-width: 90%;
|
word-break: break-all;
|
display: -webkit-box;
|
-webkit-line-clamp: 2;
|
-webkit-box-orient: vertical;
|
overflow: hidden;
|
font-size: 14px;
|
}
|
|
.assort-img {
|
display: flex;
|
align-items: center;
|
width: 152rpx;
|
height: 186rpx;
|
box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.16);
|
margin-bottom: 20rpx;
|
}
|
|
.page-right {
|
width: calc(100vw - 206rpx);
|
}
|
|
.loading-box {
|
width: 100%;
|
height: 100%;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
--td-loading-color: #ff6c00;
|
}
|
|
.bottom-box {
|
height: 40rpx;
|
}
|
|
|
.bottom-box {
|
display: flex;
|
justify-content: center;
|
color: #999;
|
height: 80rpx;
|
font-size: 28rpx;
|
--td-loading-color: #ff6c00
|
}
|