/*课程公共样式*/ .home-course-list { &.category { width: 100%; padding: 20px 15px 15px 15px; text-align: left; background: #fff; .title { font-size: 16px; color: $color_333; display: inline-block; .hot { display: inline-block; width: 25px; height: 14px; margin-left: 5px; transform: translateY(-5px); background: rgba(255, 64, 0, 1); border-radius: 7px 7px 7px 0; color: #fff; text-align: center; line-height: 14px; font-size: 12px; } } .more { color: $active; font-size: 12px; float: right; } } .index-course-detail { width: 100%; display: flex; justify-content: space-between; flex-wrap: wrap; background-color: $bg_fff; .audition { position: absolute; top: 10px; width: 54px; height: 18px; line-height: 18px; background-color: $bg_active; font-size: 12px; color: $white; text-align: center; border-radius: 1px; .iconerji { font-size: 14px !important; display: inline-block; margin-right: 4px; } } .return_bash { position: absolute; top: 0; right: 0; width: 31px; height: 18px; background: url("./return.icon.png") no-repeat; background-size: 100% 100%; } .course-price { margin-top: 15px; .new { color: $red; font-size: 16px; } .old { color: $color_999; font-size: 12px; display: inline-block; margin-left: 15px; text-decoration: line-through; } } .isbuy { display: inline-block; margin-top: 15px; color: $active; font-size: 15px; text-align: center; line-height: 18px; font-family: PingFang SC; font-weight: 400; } .free { color: $red; font-size: 15px; } } .category-vip { width: 100%; height: 106px; border-radius: 5px; margin-top: 15px; margin-bottom: 5px; img { width: 100%; height: 106px; border-radius: 5px; } } .limit-free { padding: 0 15px; color: #333; h2 { display: flex; align-items: center; margin: 15px 0; font-size: 15px; } .hot { display: inline-block; width: 25px; height: 14px; margin-left: 5px; background: rgba(255, 64, 0, 1); border-radius: 7px 7px 7px 0; color: #fff; text-align: center; line-height: 14px; font-size: 12px; } ul { display: flex; flex-wrap: wrap; li { margin-right: 15px; margin-top: 0; margin-bottom: 20px; } & li:nth-child(2n) { margin-right: 0; } } .origin-price { color: #999; font-size: 12px; text-decoration: line-through; } .bottom { margin-top: 5px; span { margin-right: 5px; } span:nth-child(3) { margin-right: 0; } } $red: #FF2121; .bottom span:nth-child(1), .bottom button:nth-child(1) { margin-right: 6px; } .current-price, .free { color: $red; font-size: 15px; } button { width: 61px; height: 18px; background: rgba(0, 153, 255, 1); border-radius: 9px; text-align: center; color: #fff; font-size: 12px; -webkit-appearance: none; outline: 0; border: 0; } } } .borderTop { width: 100%; height: 8px; background-color: #F3F4F8; }