Files
teach_sys_Demo/src/components/PublicCourseList/index.css
KQL 9a14678a12 feat: 实现公共课单元背景图片切换和项目库功能
- 为公共课直播间添加单元背景图片切换功能
- 支持终生学习系统、企业高管公开课、营销能力课的背景图片
- 点击不同单元课程时左侧直播间背景自动切换
- 添加我的项目库功能,展示25个完成项目
- 项目库采用灰色禁用样式,hover显示权限提示
- 优化李奇导师头像显示效果和容器背景色匹配
- 修复展会课程跳转链接

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-08 09:32:40 +08:00

346 lines
7.3 KiB
CSS

.course-list-wrapper {
width: 304px;
height: 798px;
border-radius: 8px;
background-color: #fff;
box-sizing: border-box;
padding: 20px 16px;
overflow-y: hidden;
}
.course-list-wrapper .course-list-title {
width: 100%;
height: 30px;
position: relative;
box-sizing: border-box;
font-size: 20px;
font-weight: 600;
line-height: 20px;
color: #1d2129;
padding-bottom: 10px;
border-bottom: 1px solid #e5e6eb;
margin-bottom: 10px;
}
.course-list-wrapper .course-list-title::before {
content: "";
position: absolute;
left: 20px;
bottom: 5px;
width: 31px;
height: 3px;
background-image: url("@/assets/images/Common/title_icon.png");
background-size: 100% 100%;
}
.course-list-wrapper .course-list-content {
width: 100%;
height: 700px;
overflow-y: auto;
}
.course-list-wrapper .course-list-content .course-list {
width: 100%;
}
/* 自定义折叠面板元素 */
.course-list-wrapper .course-list-content .course-list .course-list-item {
width: 272px;
margin-bottom: 10px;
box-sizing: border-box;
padding: 3px 0;
color: #4e5969;
font-size: 14px;
font-weight: 400;
line-height: 21px;
border: none;
}
.course-list-item .arco-collapse-item-header {
border-radius: 8px;
background-color: rgba(242, 243, 245, 0.9);
color: #1d2129;
font-weight: 600;
position: relative;
overflow: hidden;
}
/* 为带有背景图的单元项添加特殊样式 */
.course-list-item[style*="background-image"] .arco-collapse-item-header {
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(4px);
border: 1px solid rgba(255, 255, 255, 0.2);
}
.course-list-item[style*="background-image"] .arco-collapse-item-header::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: inherit;
background-size: cover;
background-position: center;
opacity: 0.3;
z-index: -1;
}
.course-list-item .arco-timeline-item {
margin-bottom: 10px;
padding-left: 0;
}
.course-list-item .arco-collapse-item-content-expanded {
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(2px);
border-radius: 0 0 8px 8px;
}
/* 为带有背景图的单元项内容区域添加特殊样式 */
.course-list-item[style*="background-image"] .arco-collapse-item-content-expanded {
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(4px);
}
.course-list-item .arco-collapse-item-content-box {
margin-top: 10px;
padding: 0 0 0 5px;
box-sizing: border-box;
}
/* 自定义时间轴元素 - 统一使用CSS样式 */
.course-list-item .time-line-dot-icon {
width: 12px;
height: 12px;
background-color: #10b981;
border-radius: 50%;
position: relative;
}
.course-list-item .time-line-dot-icon::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 6px;
height: 6px;
background-color: #fff;
border-radius: 50%;
}
.course-list-item .time-line-clock-icon {
width: 12px;
height: 12px;
background-color: #3b82f6;
border-radius: 50%;
position: relative;
}
.course-list-item .time-line-clock-icon::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 6px;
height: 6px;
background-color: #fff;
border-radius: 50%;
}
.course-list-item .time-line-lock-icon {
width: 12px;
height: 12px;
background-color: #c9cdd4;
border-radius: 50%;
position: relative;
opacity: 0.6;
}
.course-list-item .time-line-lock-icon::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 6px;
height: 6px;
background-color: #fff;
border-radius: 50%;
}
.course-list-item .time-line-item {
width: 248px;
min-height: 74px !important;
height: auto !important;
background-color: #f2f3f5;
border-radius: 8px;
position: relative;
box-sizing: border-box;
padding: 10px;
cursor: pointer;
transition: all 0.3s;
}
.course-list-item .time-line-item:hover {
background-color: #e8f3ff;
transform: translateX(2px);
}
.course-list-item .time-line-item > p {
width: calc(100% - 70px) !important;
min-height: 22px !important;
height: auto !important;
font-size: 14px;
font-weight: 600;
line-height: 22px;
color: #1d2129;
word-wrap: break-word !important;
word-break: break-word !important;
white-space: normal !important;
overflow-wrap: break-word !important;
display: block !important;
text-overflow: unset !important;
overflow: visible !important;
max-width: none !important;
-webkit-line-clamp: unset !important;
-webkit-box-orient: unset !important;
text-rendering: auto !important;
}
.course-list-item .time-line-item > .time-line-item-info {
margin-top: 10px;
width: 100%;
min-height: 20px;
font-size: 12px;
font-weight: 400;
line-height: 20px;
color: #4e5969;
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
gap: 5px;
}
.course-list-item .time-line-item .course-date {
font-size: 12px;
color: #86909c;
margin-left: auto;
}
.course-list-item .finish::before {
content: "已结束";
position: absolute;
right: 10px;
top: 10px;
width: 48px;
height: 20px;
line-height: 18px;
text-align: center;
border-radius: 12px;
background-color: #c9cdd4;
color: #86909c;
font-size: 12px;
font-weight: 600;
box-sizing: border-box;
border: 1px solid #c9cdd4;
}
.course-list-item .not-started::before {
content: "未开始";
position: absolute;
right: 10px;
top: 10px;
width: 48px;
height: 20px;
line-height: 18px;
text-align: center;
border-radius: 12px;
background-color: #e8e8e8;
color: #86909c;
font-size: 12px;
font-weight: 600;
box-sizing: border-box;
border: 1px solid #e8e8e8;
}
.course-list-item .active {
border: 1px solid #0275f2;
}
.course-list-item .active::before {
content: "";
position: absolute;
right: 10px;
top: 10px;
width: 60px;
height: 20px;
background-image: url("@/assets/images/CoursesVideoPlayer/living_icon.png");
background-size: 100% 100%;
}
.course-list-item .selected {
background-color: #f2f8ff;
border: 1px solid #4080ff !important;
box-shadow: 0 2px 8px rgba(64, 128, 255, 0.15);
}
.course-list-item .selected p {
color: #1d2129;
font-weight: 500;
}
.course-list-item .pending {
opacity: 0.6;
cursor: not-allowed;
}
.course-list-item .pending > p {
color: #86909c;
}
.course-list-item .pending .time-line-item-info {
color: #86909c;
}
.course-list-item .coming::before {
content: "即将开始";
position: absolute;
right: 10px;
top: 10px;
width: 60px;
height: 20px;
line-height: 18px;
text-align: center;
border-radius: 12px;
background-color: #f2f3f5;
color: #ff7d00;
font-size: 12px;
font-weight: 600;
box-sizing: border-box;
border: 1px solid #ff7d00;
}
/* 强制覆盖Arco Timeline文本省略 */
.course-list .arco-timeline-item-content p {
text-overflow: unset !important;
overflow: visible !important;
white-space: normal !important;
display: block !important;
-webkit-line-clamp: unset !important;
-webkit-box-orient: unset !important;
word-break: break-word !important;
max-width: calc(100% - 70px) !important;
}
.course-list .time-line-item p {
text-overflow: unset !important;
overflow: visible !important;
white-space: normal !important;
display: block !important;
-webkit-line-clamp: unset !important;
-webkit-box-orient: unset !important;
}