course.css 2.1 KB
.courseitem {
    padding: 0.24rem 0.32rem;
    box-sizing: border-box;
    margin-bottom: 0.16rem;
    background: #fff;
}

.courseimg {
    width: 2.4rem;
    height: 1.46rem;
    font-size: 0;
    flex: 0 0 auto;
}

.coursetitle {
    color: #02170b;
    font-size: 0.32rem;
    font-weight: bold;
    width: 4.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zhiimg {
    width: 0.34rem;
    height: 0.34rem;
}

.zhiname {
    color: #e1b16d;
    font-size: 0.28rem;
    margin-left: 0.06rem;
}

.morepeople {
    width: 2.64rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666e69;
    font-size: 0.28rem;
}

.knowmore {
    color: #4d864d;
    font-size: 0.28rem;
}

.courseright {
    margin-left: 0.16rem;
}

.zhibo {
    margin-top: 0.18rem;
}

.know {
    margin-top: 0.18rem;
}


/* 头部切换 */

.coursenav {
    background: #fff;
    margin-top: 0.32rem;
    padding: 0.24rem 0;
    box-sizing: border-box;
}

.coursenavleft {
    color: #b5bfba;
    font-size: 0.28rem;
    width: 3.75rem;
    text-align: center;
}

.selactive {
    position: relative;
    color: #599158;
}

.selactive::after {
    display: block;
    content: "";
    width: 0.4rem;
    height: 0.02rem;
    background: #599158;
    position: absolute;
    bottom: -0.2rem;
    left: 50%;
    transform: translateX(-50%);
}


/* 课程 */

.coursebox {
    display: flex;
    flex-wrap: wrap;
    padding: 0.24rem 0.28rem;
    box-sizing: border-box;
    margin-bottom: 1.2rem;
}

.courseboxitem {
    width: 3.35rem;
    margin-bottom: 0.16rem;
}

.courseboxitem:nth-child(2n) {
    margin-left: 0.17rem;
}

.coursenameimg {
    width: 3.35rem;
    font-size: 0;
}

.coursetext {
    width: 3.35rem;
    padding: 0.26rem 0.24rem;
    box-sizing: border-box;
    background: #fff;
}

.coursename {
    color: #02170b;
    font-size: 0.28rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-top: 0.26rem;
}

.courseteacher {
    color: #666e69;
    font-size: 0.24rem;
    margin-top: 0.08rem;
}

.knowlagename {
    color: #666e69;
}