my_meeting/frontend/assets/styles.css

696 lines
11 KiB
CSS
Raw Normal View History

2026-05-09 03:23:57 +00:00
:root {
--bg: #eef5ff;
--bg-2: #dbeafe;
--panel: rgba(255, 255, 255, 0.94);
--panel-strong: #ffffff;
--line: #c7dcf8;
--text: #16324f;
--muted: #5f7f9f;
--accent: #2f80ed;
--accent-strong: #1c63c7;
--accent-soft: #e8f2ff;
--ok-bg: #e9f7f1;
--ok-text: #19744e;
--shadow: 0 18px 48px rgba(47, 128, 237, 0.12);
--radius: 18px;
--font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
--mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
--app-h: 100vh;
}
* {
box-sizing: border-box;
}
[hidden] {
display: none !important;
}
html,
body {
height: 100%;
margin: 0;
overflow: hidden;
}
body {
font-family: var(--font);
color: var(--text);
background:
radial-gradient(circle at top left, rgba(47, 128, 237, 0.18), transparent 30%),
linear-gradient(180deg, #f6fbff 0%, var(--bg) 54%, var(--bg-2) 100%);
}
button,
input,
select,
textarea {
font: inherit;
}
.app-shell {
height: var(--app-h);
padding: 24px;
display: flex;
flex-direction: column;
gap: 18px;
overflow: hidden;
}
.topbar,
.panel,
.modal-box,
.toast {
backdrop-filter: blur(16px);
}
.topbar,
.panel {
background: var(--panel);
border: 1px solid rgba(156, 195, 245, 0.75);
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.topbar {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
padding: 20px 24px;
flex: 0 0 auto;
}
.eyebrow {
margin: 0 0 8px;
font-size: 11px;
letter-spacing: 0.18em;
color: var(--accent-strong);
}
.topbar h1 {
margin: 0;
font-size: 28px;
line-height: 1.2;
}
.topbar-actions,
.toolbar,
.modal-actions,
.header-badges {
display: flex;
align-items: center;
gap: 10px;
}
.workspace {
flex: 1 1 auto;
min-height: 0;
display: flex;
gap: 0;
overflow: hidden;
}
.panel {
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
#sidebar {
flex: 0 0 330px;
min-width: 260px;
}
#result-panel {
flex: 1 1 auto;
min-width: 360px;
}
#template-panel {
flex: 0 0 42%;
min-width: 360px;
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 14px;
padding: 16px 18px;
border-bottom: 1px solid var(--line);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92));
flex: 0 0 auto;
}
.sidebar-header {
flex-direction: column;
}
.panel-heading span {
display: block;
font-size: 15px;
font-weight: 700;
}
.panel-heading small {
display: block;
margin-top: 5px;
color: var(--muted);
line-height: 1.45;
}
.header-badges {
flex-wrap: wrap;
}
.status-block {
margin-top: 6px;
display: grid;
gap: 4px;
}
.status-row {
display: flex;
align-items: center;
gap: 8px;
}
.status-label,
.status-meta,
.inline-label {
color: var(--muted);
font-size: 13px;
}
.status-text {
font-size: 13px;
color: var(--text);
}
.status-light {
width: 10px;
height: 10px;
border-radius: 999px;
display: inline-block;
flex: 0 0 auto;
}
.status-light.idle {
background: #2db36c;
box-shadow: 0 0 0 4px rgba(45, 179, 108, 0.14);
}
.status-light.busy {
width: 52px;
height: 10px;
border-radius: 999px;
background:
linear-gradient(90deg, rgba(47, 128, 237, 0.18), rgba(47, 128, 237, 0.55), rgba(47, 128, 237, 0.18));
background-size: 200% 100%;
box-shadow: inset 0 0 0 1px rgba(47, 128, 237, 0.12);
animation: status-marquee 1.2s linear infinite;
}
2026-05-09 03:23:57 +00:00
.panel-body {
flex: 1 1 auto;
min-height: 0;
overflow: hidden;
}
.panel-scroll,
.tree,
2026-05-09 08:32:17 +00:00
#result-editor,
#side-editor {
2026-05-09 03:23:57 +00:00
height: 100%;
min-height: 0;
}
.tree,
#result-body,
#template-body,
2026-05-09 08:32:17 +00:00
#result-editor,
#result-md,
#side-editor,
#side-preview,
#side-plain-preview {
2026-05-09 03:23:57 +00:00
overflow: auto;
scrollbar-width: thin;
scrollbar-color: #8bb8f1 rgba(232, 242, 255, 0.7);
}
.tree::-webkit-scrollbar,
#result-body::-webkit-scrollbar,
#template-body::-webkit-scrollbar,
2026-05-09 08:32:17 +00:00
#result-editor::-webkit-scrollbar,
#result-md::-webkit-scrollbar,
#side-editor::-webkit-scrollbar,
#side-preview::-webkit-scrollbar,
#side-plain-preview::-webkit-scrollbar {
2026-05-09 03:23:57 +00:00
width: 10px;
height: 10px;
}
.tree::-webkit-scrollbar-track,
#result-body::-webkit-scrollbar-track,
#template-body::-webkit-scrollbar-track,
2026-05-09 08:32:17 +00:00
#result-editor::-webkit-scrollbar-track,
#result-md::-webkit-scrollbar-track,
#side-editor::-webkit-scrollbar-track,
#side-preview::-webkit-scrollbar-track,
#side-plain-preview::-webkit-scrollbar-track {
2026-05-09 03:23:57 +00:00
background: rgba(232, 242, 255, 0.8);
border-radius: 999px;
}
.tree::-webkit-scrollbar-thumb,
#result-body::-webkit-scrollbar-thumb,
#template-body::-webkit-scrollbar-thumb,
2026-05-09 08:32:17 +00:00
#result-editor::-webkit-scrollbar-thumb,
#result-md::-webkit-scrollbar-thumb,
#side-editor::-webkit-scrollbar-thumb,
#side-preview::-webkit-scrollbar-thumb,
#side-plain-preview::-webkit-scrollbar-thumb {
2026-05-09 03:23:57 +00:00
background: linear-gradient(180deg, #8bb8f1, #4f93eb);
border-radius: 999px;
border: 2px solid rgba(232, 242, 255, 0.8);
}
.gutter {
width: 10px;
position: relative;
flex: 0 0 auto;
}
.gutter::before {
content: "";
position: absolute;
inset: 18px 3px;
border-radius: 999px;
background: rgba(47, 128, 237, 0.18);
transition: background 0.15s ease;
}
.gutter:hover::before,
.gutter.dragging::before {
background: rgba(47, 128, 237, 0.44);
}
.btn {
height: 36px;
border: 1px solid var(--line);
border-radius: 12px;
background: var(--panel-strong);
color: var(--text);
padding: 0 14px;
cursor: pointer;
transition: 0.15s ease;
}
.btn:hover {
border-color: var(--accent);
color: var(--accent-strong);
}
.btn.primary {
color: #fff;
border-color: transparent;
background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
}
.btn.primary:hover {
filter: brightness(1.03);
}
.btn.sm {
height: 34px;
padding: 0 12px;
}
.btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
select.btn {
min-width: 132px;
}
.badge {
display: inline-flex;
align-items: center;
padding: 7px 12px;
border-radius: 999px;
font-size: 12px;
border: 1px solid transparent;
background: var(--ok-bg);
color: var(--ok-text);
}
.badge.muted {
background: var(--accent-soft);
color: var(--accent-strong);
border-color: rgba(47, 128, 237, 0.18);
}
.tree {
padding: 12px;
}
.tree-node + .tree-node {
margin-top: 2px;
}
.tree-row {
display: flex;
align-items: center;
gap: 8px;
min-height: 36px;
padding: 6px 10px;
border-radius: 12px;
cursor: pointer;
}
.tree-row:hover {
background: rgba(47, 128, 237, 0.08);
}
.tree-row.selected {
background: linear-gradient(135deg, rgba(47, 128, 237, 0.16), rgba(47, 128, 237, 0.06));
}
.tree-row.active-meeting {
outline: 1px solid rgba(47, 128, 237, 0.28);
}
.tree-row .arrow,
.tree-row .icon,
.tree-row .del-btn,
.meeting-pin {
flex: 0 0 auto;
}
.tree-row .arrow {
width: 14px;
text-align: center;
color: var(--muted);
transition: transform 0.1s ease;
}
.tree-row .arrow.expanded {
transform: rotate(90deg);
}
.tree-row .arrow.none {
visibility: hidden;
}
.tree-row .label {
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tree-row .del-btn,
.meeting-pin {
color: var(--muted);
font-size: 12px;
}
.tree-row .del-btn {
display: none;
}
.tree-row:hover .del-btn {
display: inline;
}
.tree-children {
display: none;
}
.tree-children.open {
display: block;
}
.empty-state,
.processing {
height: 100%;
display: grid;
place-items: center;
color: var(--muted);
padding: 32px;
text-align: center;
}
.empty-icon {
width: 72px;
height: 72px;
border-radius: 24px;
display: grid;
place-items: center;
margin: 0 auto 14px;
color: var(--accent-strong);
background: linear-gradient(135deg, rgba(47, 128, 237, 0.16), rgba(47, 128, 237, 0.05));
font-size: 26px;
font-weight: 700;
}
.stream-box {
position: relative;
width: min(620px, calc(100% - 40px));
background: rgba(248, 252, 255, 0.98);
border: 1px solid var(--line);
border-radius: 18px;
overflow: hidden;
text-align: left;
box-shadow: 0 14px 36px rgba(47, 128, 237, 0.1);
}
.stream-box::before {
content: "";
position: absolute;
top: 0;
left: -35%;
width: 35%;
height: 3px;
background: linear-gradient(90deg, rgba(47, 128, 237, 0), rgba(47, 128, 237, 0.95), rgba(47, 128, 237, 0));
animation: marquee-glow 1.8s linear infinite;
}
.stream-title {
position: relative;
padding: 12px 16px 10px;
border-bottom: 1px solid var(--line);
font-weight: 700;
color: var(--accent-strong);
background: linear-gradient(180deg, rgba(232, 242, 255, 0.92), rgba(248, 252, 255, 0.98));
}
.stream-content,
2026-05-09 08:32:17 +00:00
#result-editor,
#side-editor,
#side-plain-preview {
2026-05-09 03:23:57 +00:00
font-family: var(--mono);
}
.stream-content {
margin: 0;
padding: 14px 16px 16px;
white-space: pre-wrap;
min-height: 116px;
max-height: 220px;
overflow: auto;
color: #557cad;
line-height: 1.45;
background: rgba(251, 253, 255, 0.96);
}
#result-md,
2026-05-09 08:32:17 +00:00
#side-preview,
#side-plain-preview,
#result-editor,
#side-editor {
2026-05-09 03:23:57 +00:00
padding: 18px 20px;
display: none;
}
2026-05-09 08:32:17 +00:00
#result-editor,
#side-editor {
2026-05-09 03:23:57 +00:00
width: 100%;
height: 100%;
border: 0;
background: transparent;
resize: none;
outline: none;
font-size: 13px;
line-height: 1.7;
}
2026-05-09 08:32:17 +00:00
#side-plain-preview {
2026-05-09 03:23:57 +00:00
margin: 0;
white-space: pre-wrap;
line-height: 1.7;
}
.md-content {
line-height: 1.8;
color: var(--text);
}
.md-content h1,
.md-content h2,
.md-content h3 {
line-height: 1.35;
}
.md-content code {
background: rgba(47, 128, 237, 0.08);
padding: 2px 6px;
border-radius: 6px;
}
.md-content pre {
padding: 14px;
overflow: auto;
border-radius: 14px;
background: #12325e;
color: #eef6ff;
}
.md-content blockquote {
margin: 0;
padding-left: 14px;
border-left: 3px solid var(--accent);
color: var(--muted);
}
.modal-mask {
position: fixed;
inset: 0;
display: none;
place-items: center;
background: rgba(17, 47, 84, 0.28);
padding: 20px;
}
.modal-mask.show {
display: grid;
}
.modal-box {
width: min(480px, 100%);
background: rgba(255, 255, 255, 0.98);
border: 1px solid rgba(156, 195, 245, 0.8);
border-radius: 22px;
padding: 22px;
box-shadow: var(--shadow);
}
.modal-box h3 {
margin-top: 0;
}
.form-field {
display: block;
margin-bottom: 14px;
}
.form-field span {
display: block;
margin-bottom: 6px;
color: var(--muted);
font-size: 13px;
}
.form-field input {
width: 100%;
padding: 10px 12px;
border: 1px solid var(--line);
border-radius: 12px;
background: #f9fcff;
}
.toast {
position: fixed;
top: 22px;
right: 22px;
max-width: 360px;
padding: 12px 16px;
border-radius: 14px;
color: #fff;
opacity: 0;
transform: translateY(-10px);
pointer-events: none;
transition: 0.18s ease;
background: rgba(28, 99, 199, 0.96);
}
.toast.err {
background: rgba(181, 63, 78, 0.95);
}
.toast.show {
opacity: 1;
transform: translateY(0);
}
@keyframes marquee-glow {
from {
left: -35%;
}
to {
left: 100%;
}
}
@keyframes status-marquee {
from {
background-position: 200% 0;
}
to {
background-position: 0 0;
}
}
2026-05-09 03:23:57 +00:00
@media (max-width: 1100px) {
html,
body {
overflow: auto;
}
.app-shell {
height: auto;
min-height: 100vh;
overflow: visible;
}
.workspace {
flex-direction: column;
overflow: visible;
}
#sidebar,
#result-panel,
#template-panel {
flex-basis: auto;
min-width: 0;
}
.gutter {
display: none;
}
.panel {
min-height: 360px;
}
.topbar {
flex-direction: column;
align-items: flex-start;
}
}