124 lines
2.1 KiB
CSS
124 lines
2.1 KiB
CSS
/* Teacherboard 样式 */
|
|
.teacherboard {
|
|
padding: 20px;
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
|
|
.teacherboard-title {
|
|
text-align: center;
|
|
font-size: 32px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.course-cards {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-around;
|
|
gap: 20px;
|
|
}
|
|
|
|
.course-card {
|
|
width: 250px;
|
|
background-color: #f9f9f9;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.course-image {
|
|
width: 100%;
|
|
height: 150px;
|
|
object-fit: cover;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.course-info {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.course-name {
|
|
font-size: 20px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.course-description {
|
|
font-size: 14px;
|
|
color: #555;
|
|
}
|
|
|
|
/* 课程目录弹出框 */
|
|
.course-details {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
width: 300px;
|
|
height: 100%;
|
|
background-color: #fff;
|
|
box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
|
|
padding: 20px;
|
|
display: none;
|
|
}
|
|
|
|
.details-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.details-header button {
|
|
background-color: transparent;
|
|
border: none;
|
|
font-size: 24px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.details-content {
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.add-chapter-btn {
|
|
background-color: #2575fc;
|
|
color: white;
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* 编辑弹窗 */
|
|
.edit-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 400px;
|
|
background-color: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.edit-modal-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.edit-modal-content input,
|
|
.edit-modal-content textarea {
|
|
margin-bottom: 10px;
|
|
padding: 10px;
|
|
font-size: 16px;
|
|
border: 1px solid #ddd;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.edit-modal-content button {
|
|
background-color: #2575fc;
|
|
color: white;
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
}
|