Merge branch 'main' into feature/paste_detecte_new
This commit is contained in:
@@ -125,7 +125,7 @@
|
||||
.tab-btn.active { background:#f0f8ff; border-color:#a0c4ff; }
|
||||
.actions { margin-left:auto; }
|
||||
.actions button { padding:6px 12px; border:none; border-radius:8px; background:#4CAF50; color:#fff; cursor:pointer; }
|
||||
.tab-content { flex:1; padding:8px; }
|
||||
.tab-content { flex:1; padding:8px;display: flex; }
|
||||
.tab { display:none; height:100%; }
|
||||
.tab.active { display:block; height:100%; }
|
||||
textarea {
|
||||
|
||||
63
Html/apps/static/css/lesson_markdown.css
Normal file
63
Html/apps/static/css/lesson_markdown.css
Normal file
@@ -0,0 +1,63 @@
|
||||
/* 让左侧编辑区真正占满并允许内部滚动 */
|
||||
.tab-content {
|
||||
height: calc(100vh - 220px);
|
||||
/* 不要隐藏滚动:*/
|
||||
overflow: visible; /* 或者干脆删掉 overflow 这行 */
|
||||
}
|
||||
|
||||
/* EasyMDE 容器按列铺开,编辑器本体撑满剩余空间 */
|
||||
.EasyMDEContainer {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* 关键:让 CodeMirror 吃满容器高度 */
|
||||
.EasyMDEContainer .CodeMirror {
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
/* 关键:滚动发生在 CodeMirror-scroll 里 */
|
||||
.EasyMDEContainer .CodeMirror-scroll {
|
||||
height: 100% !important;
|
||||
overflow: auto !important; /* 启用内部滚动条(也支持鼠标滚轮) */
|
||||
}
|
||||
|
||||
/* 右侧预览保持原样独立滚动 */
|
||||
.md-preview-pane {
|
||||
border: 1px solid #e5e7eb;
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
background: #fff;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
.md-preview-pane h1, .md-preview-pane h2, .md-preview-pane h3 {
|
||||
border-bottom: 1px solid #f1f5f9;
|
||||
padding-bottom: .3em;
|
||||
margin-top: 1.2em;
|
||||
}
|
||||
.md-preview-pane img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
/* 只影响右侧 Markdown 预览里的表格 */
|
||||
.md-preview-pane .table {
|
||||
/* 如果你想完全摆脱 bootstrap.table 的影响 */
|
||||
all: revert; /* 或者 all: unset; 视需求选择 */
|
||||
display: table;
|
||||
border-collapse: collapse;
|
||||
/* 下面写你自己的表格样式 */
|
||||
border: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
.md-preview-pane .table th,
|
||||
.md-preview-pane .table td {
|
||||
border: 1px solid #e5e7eb;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
|
||||
.md-preview-pane .table thead th {
|
||||
background: #f8fafc;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -13,7 +13,39 @@
|
||||
font-size: 32px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
#chapter-list {
|
||||
/* 设置固定高度,超出范围将出现滚动 */
|
||||
max-height: 75vh;
|
||||
/* 超出高度时显示垂直滚动条 */
|
||||
overflow-y: auto;
|
||||
|
||||
/* 隐藏水平滚动条(如果不需要) */
|
||||
overflow-x: hidden;
|
||||
|
||||
/* 可选:添加一些内边距和边框增强视觉效果 */
|
||||
padding: 10px;
|
||||
border: 1px solid #e0e0e0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* 可选:美化滚动条样式(仅WebKit浏览器有效) */
|
||||
#chapter-list::-webkit-scrollbar {
|
||||
width: 6px; /* 滚动条宽度 */
|
||||
}
|
||||
|
||||
#chapter-list::-webkit-scrollbar-track {
|
||||
background: #f1f1f1; /* 滚动条轨道背景 */
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
#chapter-list::-webkit-scrollbar-thumb {
|
||||
background: #c1c1c1; /* 滚动条滑块颜色 */
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
#chapter-list::-webkit-scrollbar-thumb:hover {
|
||||
background: #a8a8a8; /* 鼠标悬停时的滑块颜色 */
|
||||
}
|
||||
.course-cards {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
||||
Reference in New Issue
Block a user