123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- :global {
- .n-card--bordered {
- border: 2px solid rgba(202, 228, 244, 1) !important;
- &:hover {
- border: 2px solid rgba(0, 122, 254, 1) !important;
- }
- }
- }
- .card-section {
- position: relative;
- box-sizing: border-box;
- width: 300px;
- height: 220px;
- border-radius: 14px;
- background: linear-gradient(270deg, #DBF1FF 0%, #E7F9FF 100%) !important;
- display: inline-flex;
- transition: all .3s ease-in-out;
- &.course {
- cursor: pointer;
- }
- // 鼠标经过时样式
- &:hover {
- transform: scale(1.01);
- transition: all .3s ease-in-out;
- .addBtn {
- display: block;
- opacity: 1;
- transition: all .3s ease-in-out;
- }
- }
- &.isActive {
- border: 2px solid rgba(0, 122, 254, 1) !important;
- }
- // 封面样式
- .cover {
- width: 100%;
- height: 170px;
- background-color: #fff;
- border-radius: 14px 14px 0 0;
- overflow: hidden;
- img {
- height: fit-content;
- min-height: 100%;
- }
- }
- :global {
- .n-card__footer {
- padding: 10px 12px;
- }
- }
- .footer {
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .title {
- display: flex;
- align-items: center;
- .titleType {
- width: 36px;
- height: 17px;
- }
- .titleContent {
- padding-left: 6px;
- font-size: 16px;
- max-width: 180px;
- color: #131415;
- font-weight: 600 !important;
- flex: 1;
- }
- }
- // 收藏按钮
- .iconCollect {
- width: 34px;
- height: 34px;
- // background: url('../../common/images/icon-collect-default.png') no-repeat center;
- // background-size: contain;
- position: absolute;
- right: 0;
- transition: transform .2s ease;
- &:hover {
- transform: scale(1.1);
- transition: transform .2s ease;
- }
- &.isCollect {
- cursor: pointer;
- }
- }
- .iconDiv {
- right: 12px;
- }
- // 精选
- .iconSelected {
- background: url('../../common/images/icon-selected.png') no-repeat center;
- background-size: contain;
- position: absolute;
- top: 0px;
- left: 0px;
- z-index: 9;
- width: 58px;
- height: 29px;
- border-top-left-radius: 13px;
- }
- // 添加
- .addBtn {
- position: absolute;
- top: 6px;
- right: 6px;
- font-size: 16px;
- font-weight: 600;
- height: 32px;
- border-radius: 8px;
- display: none;
- opacity: 0;
- z-index: 99;
- transition: all .3s ease-in-out;
- }
- }
|