2026-02-13 10:56:23 +08:00
|
|
|
<link rel="stylesheet" href="{{ asset('vendor/font-awesome/css/font-awesome.min.css') }}">
|
|
|
|
|
<link rel="stylesheet" href="{{ asset('vendor/easymde/easymde.min.css') }}">
|
2026-02-12 17:10:36 +08:00
|
|
|
<style>
|
|
|
|
|
.required-star { color: #ef4444; margin-left: .2rem; }
|
|
|
|
|
.required-tip { font-size: .86rem; color: #64748b; margin-bottom: .9rem; }
|
|
|
|
|
.modern-form-card { border: 1px solid #d7e0ef; border-radius: .9rem; box-shadow: 0 10px 20px rgba(41, 61, 118, .08); }
|
|
|
|
|
.form-section { border: 1px solid #e2e8f0; border-radius: .8rem; background: #fff; padding: 1rem; }
|
|
|
|
|
.form-section + .form-section { margin-top: 1rem; }
|
|
|
|
|
.form-section-title { margin: 0 0 .25rem; font-size: 1.02rem; font-weight: 700; color: #1e293b; }
|
|
|
|
|
.form-section-subtitle { margin: 0 0 .9rem; color: #64748b; font-size: .85rem; }
|
|
|
|
|
.form-hint { margin-top: .3rem; color: #64748b; font-size: .8rem; }
|
|
|
|
|
.field-required .form-label { font-weight: 600; }
|
|
|
|
|
|
|
|
|
|
.editor-shell {
|
2026-02-13 10:56:23 +08:00
|
|
|
display: block;
|
|
|
|
|
position: relative;
|
2026-02-12 17:10:36 +08:00
|
|
|
}
|
2026-02-13 10:56:23 +08:00
|
|
|
|
|
|
|
|
.editor-card {
|
|
|
|
|
border: 1px solid #d8e2f2;
|
|
|
|
|
border-radius: .75rem;
|
|
|
|
|
background: #fff;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 17:10:36 +08:00
|
|
|
.editor-card-head,
|
|
|
|
|
.preview-card-head {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
padding: .55rem .7rem;
|
|
|
|
|
border-bottom: 1px solid #e2e8f0;
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
color: #334155;
|
|
|
|
|
font-size: .82rem;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
2026-02-13 10:56:23 +08:00
|
|
|
|
|
|
|
|
.editor-card-head-split {
|
|
|
|
|
gap: .65rem;
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-card-head-main {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
gap: .58rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-card-head-actions {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: .44rem;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-tab-switch {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
border: 1px solid #d5deee;
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-tab-btn {
|
|
|
|
|
border: 0;
|
|
|
|
|
background: transparent;
|
|
|
|
|
color: #64748b;
|
|
|
|
|
font-size: .76rem;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
padding: .24rem .7rem;
|
|
|
|
|
transition: .16s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-tab-btn:hover {
|
|
|
|
|
color: #1e40af;
|
|
|
|
|
background: #eef4ff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-tab-btn.is-active {
|
|
|
|
|
color: #1d4ed8;
|
|
|
|
|
background: #e8f0ff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-panels {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-panel {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-panel.is-active {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 17:10:36 +08:00
|
|
|
.preview-content {
|
2026-02-13 10:56:23 +08:00
|
|
|
min-height: 420px;
|
|
|
|
|
max-height: 760px;
|
2026-02-12 17:10:36 +08:00
|
|
|
overflow: auto;
|
|
|
|
|
padding: .9rem .95rem;
|
|
|
|
|
color: #1e293b;
|
|
|
|
|
line-height: 1.68;
|
|
|
|
|
}
|
2026-02-13 10:56:23 +08:00
|
|
|
|
2026-02-12 17:10:36 +08:00
|
|
|
.preview-placeholder { color: #94a3b8; font-size: .86rem; }
|
|
|
|
|
|
|
|
|
|
.advanced-panel {
|
|
|
|
|
border: 1px dashed #cbd5e1;
|
|
|
|
|
border-radius: .75rem;
|
|
|
|
|
padding: .8rem .9rem;
|
|
|
|
|
background: #fcfdff;
|
|
|
|
|
}
|
2026-02-13 10:56:23 +08:00
|
|
|
|
2026-02-12 17:10:36 +08:00
|
|
|
.advanced-panel > summary {
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
list-style: none;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #334155;
|
|
|
|
|
}
|
2026-02-13 10:56:23 +08:00
|
|
|
|
2026-02-12 17:10:36 +08:00
|
|
|
.advanced-panel > summary::-webkit-details-marker { display: none; }
|
|
|
|
|
|
|
|
|
|
.editor-sticky-actions {
|
|
|
|
|
position: sticky;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
z-index: 30;
|
|
|
|
|
margin-top: .9rem;
|
|
|
|
|
border: 1px solid #d7e3f5;
|
|
|
|
|
border-radius: .75rem;
|
|
|
|
|
background: rgba(255, 255, 255, .95);
|
|
|
|
|
backdrop-filter: blur(8px);
|
|
|
|
|
padding: .7rem .8rem;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: .65rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.EasyMDEContainer .CodeMirror {
|
2026-02-13 10:56:23 +08:00
|
|
|
min-height: 470px;
|
2026-02-12 17:10:36 +08:00
|
|
|
border: 0;
|
|
|
|
|
font-size: .9rem;
|
|
|
|
|
}
|
2026-02-13 10:56:23 +08:00
|
|
|
|
2026-02-12 17:10:36 +08:00
|
|
|
.EasyMDEContainer .editor-toolbar {
|
|
|
|
|
border: 0;
|
|
|
|
|
border-bottom: 1px solid #e2e8f0;
|
|
|
|
|
opacity: 1;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-13 10:56:23 +08:00
|
|
|
/* Reset bootstrap class collision (e.g. EasyMDE "table" button vs .table) */
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button {
|
|
|
|
|
width: auto !important;
|
|
|
|
|
margin: 0 !important;
|
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
|
min-width: 30px;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button {
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
border-radius: .4rem;
|
|
|
|
|
color: #334155;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a:hover,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a.active,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button:hover,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button.active {
|
|
|
|
|
border-color: #d7e2f5;
|
|
|
|
|
background: #eef4ff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* EasyMDE toolbar fallback: show readable symbols even if Font Awesome glyph font fails */
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a[class*="fa-"]::before,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button[class*="fa-"]::before {
|
|
|
|
|
font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif !important;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
font-size: .72rem;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a.fa-bold::before,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button.fa-bold::before { content: "B"; }
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a.fa-italic::before,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button.fa-italic::before { content: "I"; font-style: italic; }
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a.fa-header::before,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button.fa-header::before { content: "H"; }
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a.fa-quote-left::before,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button.fa-quote-left::before { content: "\""; }
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a.fa-list-ul::before,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button.fa-list-ul::before { content: "UL"; font-size: .62rem; }
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a.fa-list-ol::before,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button.fa-list-ol::before { content: "OL"; font-size: .62rem; }
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a.fa-link::before,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button.fa-link::before { content: "Link"; font-size: .6rem; }
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a.fa-picture-o::before,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button.fa-picture-o::before { content: "Img"; font-size: .6rem; }
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a.fa-table::before,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button.fa-table::before { content: "Tbl"; font-size: .6rem; }
|
|
|
|
|
.EasyMDEContainer .editor-toolbar a.fa-question-circle::before,
|
|
|
|
|
.EasyMDEContainer .editor-toolbar button.fa-question-circle::before { content: "?"; }
|
|
|
|
|
|
|
|
|
|
body.editor-fullscreen-open {
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen {
|
|
|
|
|
position: fixed;
|
|
|
|
|
inset: 12px;
|
|
|
|
|
z-index: 1500;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen::before {
|
|
|
|
|
content: "";
|
|
|
|
|
position: fixed;
|
|
|
|
|
inset: 0;
|
|
|
|
|
background: rgba(15, 23, 42, .32);
|
|
|
|
|
z-index: -1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .editor-card {
|
|
|
|
|
height: calc(100vh - 24px);
|
|
|
|
|
border-radius: .85rem;
|
|
|
|
|
box-shadow: 0 20px 48px rgba(15, 23, 42, .25);
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .editor-tab-switch {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .editor-panels {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .editor-panel {
|
|
|
|
|
display: block !important;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .editor-panel[data-panel="preview"] {
|
|
|
|
|
border-left: 1px solid #e2e8f0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .editor-panel[data-panel="edit"] > .p-2 {
|
|
|
|
|
height: 100%;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .editor-panel[data-panel="edit"] .form-hint {
|
|
|
|
|
margin-top: .5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .editor-panel[data-panel="edit"] .EasyMDEContainer {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .editor-panel[data-panel="edit"] .EasyMDEContainer .CodeMirror {
|
|
|
|
|
flex: 1;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
height: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .preview-card-head {
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .preview-content {
|
|
|
|
|
height: calc(100vh - 136px);
|
|
|
|
|
max-height: none;
|
|
|
|
|
min-height: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-12 17:10:36 +08:00
|
|
|
@media (max-width: 991px) {
|
2026-02-13 10:56:23 +08:00
|
|
|
.editor-card-head-actions {
|
|
|
|
|
width: 100%;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
margin-left: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.preview-content {
|
|
|
|
|
min-height: 280px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.EasyMDEContainer .CodeMirror {
|
|
|
|
|
min-height: 360px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .editor-panels {
|
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
|
grid-template-rows: 1fr 1fr;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .editor-panel[data-panel="preview"] {
|
|
|
|
|
border-left: 0;
|
|
|
|
|
border-top: 1px solid #e2e8f0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-shell.is-fullscreen .preview-content {
|
|
|
|
|
height: auto;
|
|
|
|
|
}
|
2026-02-12 17:10:36 +08:00
|
|
|
}
|
|
|
|
|
</style>
|