This commit is contained in:
2026-05-24 15:32:36 +00:00
commit 1eb5350d09
20 changed files with 2852 additions and 0 deletions
+187
View File
@@ -0,0 +1,187 @@
:root {
color-scheme: light;
font-family:
Inter,
ui-sans-serif,
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
sans-serif;
}
* {
box-sizing: border-box;
}
html,
body,
#root {
margin: 0;
height: 100%;
}
body {
background: #f5f5f4;
color: #18181b;
}
button,
input {
font: inherit;
}
.app-shell {
display: flex;
height: 100%;
}
.sidebar {
display: flex;
width: 260px;
min-width: 260px;
flex-direction: column;
border-right: 1px solid #e4e4e7;
background: #ffffff;
}
.sidebar-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
border-bottom: 1px solid #e4e4e7;
padding: 16px;
}
.sidebar-header h1 {
margin: 0;
font-size: 16px;
font-weight: 600;
}
.drawing-list {
overflow: auto;
padding: 8px;
}
.drawing-item {
display: grid;
grid-template-columns: minmax(0, 1fr) 32px;
align-items: center;
gap: 8px;
border-radius: 8px;
padding: 4px;
}
.drawing-item-active {
background: #f4f4f5;
}
.drawing-link {
min-width: 0;
border: 0;
background: transparent;
padding: 8px;
text-align: left;
}
.drawing-title,
.title-input {
display: block;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.title-input {
border: 1px solid #d4d4d8;
border-radius: 6px;
background: #ffffff;
padding: 6px 8px;
}
.editor-shell {
position: relative;
min-width: 0;
flex: 1;
}
.toolbar {
position: absolute;
top: 16px;
right: 16px;
z-index: 20;
display: flex;
align-items: center;
gap: 8px;
}
.status-badge,
.primary-button,
.secondary-button,
.icon-button {
border: 1px solid #d4d4d8;
border-radius: 8px;
background: #ffffff;
}
.status-badge {
padding: 8px 10px;
font-size: 13px;
}
.status-saving {
color: #1d4ed8;
}
.status-failed {
color: #b91c1c;
}
.status-saved {
color: #166534;
}
.primary-button,
.secondary-button {
cursor: pointer;
padding: 8px 12px;
}
.secondary-button:disabled {
cursor: not-allowed;
opacity: 0.6;
}
.icon-button {
width: 32px;
height: 32px;
cursor: pointer;
}
.editor-frame,
.editor-loading {
height: 100%;
}
.editor-loading {
display: grid;
place-items: center;
color: #52525b;
}
@media (max-width: 900px) {
.sidebar {
width: 220px;
min-width: 220px;
}
.toolbar {
left: 12px;
right: 12px;
flex-wrap: wrap;
justify-content: flex-end;
}
}