Files

490 lines
8.5 KiB
CSS

body.theme-cloud-sheets {
background: #0f172a;
color: #e5e7eb;
}
body.theme-cloud-sheets main.container {
padding: 8px 12px;
}
.cs-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.cs-header h2 {
margin: 0;
font-size: 1.1rem;
line-height: 1;
display: flex;
align-items: center;
}
.header-actions {
display: flex;
gap: 6px;
align-items: center;
}
.header-actions button {
background: transparent;
border: 1px solid rgba(148, 163, 184, 0.3);
color: #e5e7eb;
border-radius: 4px;
padding: 2px 6px;
font-size: 0.9rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.header-actions button:hover {
background: rgba(148, 163, 184, 0.1);
}
.cs-login {
max-width: 450px;
margin: 24px auto;
background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.16) 0, rgba(15, 23, 42, 0.8) 40%, rgba(15, 23, 42, 0.98) 100%);
border-radius: 18px;
border: 1px solid rgba(148, 163, 184, 0.6);
padding: 18px 18px 16px;
box-shadow: 0 32px 80px rgba(15, 23, 42, 0.9);
backdrop-filter: blur(16px);
}
.cs-login h3 {
font-size: 18px;
font-weight: 600;
margin: 0 0 16px 0;
text-align: center;
}
.cs-login .list-card {
padding: 8px 0 0;
}
.theme-cloud-sheets .modal-row {
margin-bottom: 10px;
}
.theme-cloud-sheets .modal-label {
font-size: 13px;
color: #cbd5e1;
}
.theme-cloud-sheets .modal-input {
width: 100%;
border-radius: 10px;
border: 1px solid rgba(148, 163, 184, 0.6);
background: rgba(15, 23, 42, 0.88);
color: #e5e7eb;
padding: 8px 10px;
font-size: 14px;
outline: none;
transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.theme-cloud-sheets .modal-input::placeholder {
color: #64748b;
}
.theme-cloud-sheets .modal-input:focus {
border-color: rgba(59, 130, 246, 0.9);
box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.7), 0 18px 40px rgba(15, 23, 42, 0.9);
background: rgba(15, 23, 42, 1);
}
.theme-cloud-sheets .action-buttons {
display: flex;
align-items: center;
}
.theme-cloud-sheets .action-btn {
border-radius: 999px;
border: none;
padding: 7px 14px;
font-size: 14px;
display: inline-flex;
align-items: center;
gap: 4px;
background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.5), rgba(37, 99, 235, 0.8));
color: #f9fafb;
cursor: pointer;
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.theme-cloud-sheets .action-btn:hover {
background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.6), rgba(37, 99, 235, 0.95));
transform: translateY(-1px);
box-shadow: 0 24px 60px rgba(15, 23, 42, 1);
}
.theme-cloud-sheets .action-btn:active {
transform: translateY(0);
box-shadow: 0 14px 32px rgba(15, 23, 42, 0.9);
}
.cs-split {
display: grid;
grid-template-columns: 340px 1fr;
gap: 12px;
}
.cs-left,
.cs-right {
height: calc(100vh - 44px);
background: rgba(15, 23, 42, 0.72);
border: 1px solid rgba(148, 163, 184, 0.28);
border-radius: 12px;
padding: 10px;
display: flex;
flex-direction: column;
}
.cs-left-header {
margin-bottom: 8px;
flex-shrink: 0;
}
.cs-left-header .actions {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
.cs-list {
list-style: none;
margin: 0;
padding: 0;
flex: 1;
overflow: auto;
}
.cs-list li {
border: 1px solid rgba(148, 163, 184, 0.22);
border-radius: 8px;
padding: 8px;
margin-bottom: 8px;
cursor: pointer;
}
.cs-list li.active {
border-color: #60a5fa;
background: rgba(59, 130, 246, 0.2);
}
.cs-right-header {
display: flex;
gap: 8px;
align-items: center;
flex-shrink: 0;
flex-wrap: nowrap;
}
.cs-right-header .actions {
display: flex;
gap: 6px;
flex-wrap: nowrap;
flex-shrink: 0;
}
.cs-right-header .modal-input {
flex: 1;
min-width: 0;
}
.cs-right-header .actions button {
white-space: nowrap;
}
.cs-editor-wrap {
margin-top: 10px;
border: 1px solid rgba(148, 163, 184, 0.28);
border-radius: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
flex: 1;
}
.cs-univer-host {
flex: 1;
width: 100%;
height: 100%;
position: relative;
background: #111827;
overflow: hidden;
}
/* 强制 Univer 内部容器铺满 */
.cs-univer-host .univer-app-container {
position: absolute !important;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100% !important;
height: 100% !important;
}
.cs-fallback-json {
width: 100%;
min-height: 62vh;
background: #020617;
color: #e2e8f0;
border: 0;
resize: vertical;
padding: 10px;
font-family: Consolas, monospace;
font-size: 13px;
}
.cs-attach-panel {
margin-top: 10px;
}
.cs-attach-row {
display: flex;
justify-content: space-between;
padding: 6px 0;
border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.cs-search-layer {
position: fixed;
inset: 0;
background: rgba(2, 6, 23, 0.8);
z-index: 40;
display: flex;
align-items: center;
justify-content: center;
}
.cs-search-box {
width: min(920px, 90vw);
background: #0f172a;
border: 1px solid rgba(148, 163, 184, 0.32);
border-radius: 10px;
padding: 12px;
}
.cs-search-header {
display: flex;
gap: 8px;
}
.cs-search-input {
flex: 1;
height: 36px;
}
.cs-search-results {
max-height: 55vh;
overflow: auto;
margin-top: 8px;
}
.cs-search-item {
padding: 8px;
border: 1px solid rgba(148, 163, 184, 0.2);
border-radius: 8px;
margin-bottom: 6px;
cursor: pointer;
}
.cs-versions-body {
width: min(980px, 92vw);
}
.cs-versions-header {
display: flex;
justify-content: space-between;
align-items: center;
}
.cs-versions-list {
max-height: 65vh;
overflow: auto;
margin-top: 10px;
}
.cs-version-row {
border: 1px solid rgba(148, 163, 184, 0.24);
border-radius: 8px;
padding: 8px;
margin-bottom: 8px;
display: flex;
justify-content: space-between;
align-items: center;
}
.cs-loading {
position: fixed;
inset: 0;
background: rgba(2, 6, 23, 0.72);
z-index: 80;
display: flex;
align-items: center;
justify-content: center;
}
.cs-loading-box {
background: #0b1220;
border: 1px solid rgba(148, 163, 184, 0.35);
border-radius: 10px;
min-width: 280px;
padding: 14px;
}
.cs-loading-msg {
margin-top: 6px;
color: #cbd5e1;
font-size: 13px;
}
.cs-loading-status {
margin-top: 10px;
font-size: 13px;
color: #93c5fd;
}
.cs-loading-status.ok {
color: #22c55e;
}
.cs-loading-status.err {
color: #ef4444;
}
.cs-loading-logs {
margin-top: 8px;
max-height: 280px;
overflow: auto;
border: 1px solid rgba(148, 163, 184, 0.3);
border-radius: 8px;
padding: 8px;
background: #020617;
font-family: Consolas, monospace;
font-size: 12px;
line-height: 1.45;
}
.cs-log-line {
color: #cbd5e1;
margin-bottom: 4px;
}
.cs-log-line.err {
color: #fca5a5;
}
.cs-log-line.ok {
color: #86efac;
}
.cs-loading-actions {
margin-top: 10px;
display: flex;
justify-content: flex-end;
gap: 8px;
}
.cs-dialog {
position: fixed;
inset: 0;
background: rgba(2, 6, 23, 0.6);
z-index: 90;
display: flex;
align-items: center;
justify-content: center;
}
.cs-dialog-box {
width: min(560px, 92vw);
background: #0b1220;
border: 1px solid rgba(148, 163, 184, 0.35);
border-radius: 10px;
overflow: hidden;
}
.cs-dialog-head {
display: flex;
justify-content: space-between;
align-items: center;
background: #0078d7;
color: #fff;
height: 34px;
padding-left: 12px;
}
.cs-dialog-head .icon-theme {
width: 44px;
height: 34px;
border: none;
border-radius: 0;
background: transparent;
color: #fff;
}
.cs-dialog-head .icon-theme:hover {
background: #e81123;
}
.cs-dialog-msg {
padding: 14px;
color: #dbe6ff;
white-space: pre-wrap;
line-height: 1.5;
}
.cs-dialog-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
padding: 10px 12px;
border-top: 1px solid rgba(148, 163, 184, 0.25);
background: rgba(148, 163, 184, 0.08);
}
body.theme-cloud-sheets[data-theme="light"] {
background: #f5f7fb;
color: #0f172a;
}
body.theme-cloud-sheets[data-theme="light"] .cs-left,
body.theme-cloud-sheets[data-theme="light"] .cs-right,
body.theme-cloud-sheets[data-theme="light"] .cs-search-box {
background: #fff;
border-color: #d4dbe8;
}
body.cs-fullscreen .cs-header {
display: none;
}
body.cs-fullscreen main.container {
padding: 0;
max-width: 100%;
}
body.cs-fullscreen .cs-left {
display: none;
}
body.cs-fullscreen .cs-split {
grid-template-columns: 1fr;
gap: 0;
}
body.cs-fullscreen .cs-right {
height: 100vh;
border-radius: 0;
border: none;
padding: 6px;
}