kuaiying_wx/pages/details/details.wxss

209 lines
3.4 KiB
Plaintext
Raw Normal View History

2025-03-04 15:25:38 +08:00
/* 页面整体样式 */
page {
background-color: #222238;
border-top: 1px solid hsla(0,31%,87%,.5);
font-size: 32rpx;
line-height: 1.6;
}
/* 页面整体样式 */
.course-detail-container {
padding: 20rpx;
background-color: #1a1d3b;
color: #fff;
}
/* 课程介绍 */
.course-intro {
margin-bottom: 40rpx;
}
.intro-title {
font-size: 36rpx;
font-weight: bold;
color: #ffcc00;
margin-bottom: 20rpx;
text-align: center;
margin: 0 auto;
}
.intro-description {
font-size: 28rpx;
line-height: 1.6;
color: #ccc;
}
/* 两张图片并排展示 */
/* 整体背景 */
.file-browser {
padding: 20rpx;
background-color: #1a1d3b;
color: #fff;
height: 100vh;
display: flex;
flex-direction: column;
}
/* 头部:返回按钮和路径 */
.header {
display: flex;
align-items: center;
margin-bottom: 20rpx;
background-color: #2a2e50;
padding: 10rpx;
border-radius: 10rpx;
box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.2);
}
.back-icon {
width: 40rpx;
height: 40rpx;
margin-right: 10rpx;
}
.breadcrumb-path {
font-size: 28rpx;
color: #ccc;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}
/* 文件和目录列表 */
.file-list {
flex: 1;
display: flex;
flex-direction: column;
gap: 20rpx;
overflow-y: scroll;
}
.file-list-root {
height: auto; /* 根目录时内容高度自适应 */
}
.file-card {
display: flex;
align-items: center;
padding: 20rpx;
background-color: #2a2e50;
border-radius: 10rpx;
border-bottom: 1px solid #fff;
box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.2);
}
.file-icon {
width: 60rpx;
height: 60rpx;
margin-right: 20rpx;
}
.file-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 10rpx;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; /* 长文字处理 */
max-width: 80%; /* 确保图标不被挤掉 */
}
.file-name {
font-size: 28rpx;
color: #fff;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; /* 长文字处理 */
max-width: 80%; /* 确保图标不被挤掉 */
}
.file-updated {
font-size: 24rpx;
color: #aaa;
}
.load-more {
text-align: center;
color: #aaa;
padding: 20rpx 0;
font-size: 13px;
}
/* 功能按钮两行布局 */
.action-buttons {
display: flex;
flex-direction: column;
margin-bottom: 40rpx;
}
.button-row {
display: flex;
justify-content: space-between;
margin-bottom: 20rpx;
}
.action-btn {
width: 48%;
font-size: 28rpx;
padding: 20rpx 0;
color: #fff;
text-align: center;
border-radius: 10rpx;
}
.green-btn { background-color: #28a745; }
.purple-btn { background-color: #6f42c1; }
.orange-btn { background-color: #fd7e14; }
.yellow-btn { background-color: #ffc107; }
/* 弹窗样式 */
.qrcode-popup-mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
z-index: 999;
display: flex;
justify-content: center;
align-items: center;
}
.qrcode-popup {
background: rgba(255, 255, 255, 0.9);
padding: 40rpx;
border-radius: 20rpx;
text-align: center;
position: relative;
animation: fadeIn 0.3s ease-in-out;
}
.close-icon {
position: absolute;
top: 20rpx;
right: 20rpx;
font-size: 36rpx;
color: #666;
}
.qrcode-text {
font-size: 28rpx;
color: #333;
margin-bottom: 20rpx;
}
.qrcode-text text {
display: block;
}
.qrcode-img {
width: 500rpx;
height: 500rpx;
margin: 20rpx auto;
border-radius: 10rpx;
}