- Run record
- loading
Loading this Run…
Loading the Revisions of this Run…
A published source file of Revision 0 of Canvely — Spring Menu 1.0.0, shown as text in the browser.
Source is browser-viewable only. There is no download or archive endpoint, and no additional license is granted beyond inspection and research.
/* Canvely — editor chrome. Calm, dense, warm-neutral with one cobalt accent. */
*,
*::before,
*::after {
box-sizing: border-box;
}
:root {
--font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-doc: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--ink: #1c1b19;
--ink-2: #45433e;
--muted: #6f6c66;
--faint: #8f8b84;
--line: #e7e5e0;
--line-strong: #d5d2cb;
--panel: #fbfaf8;
--surface: #ffffff;
--field: #f3f2ef;
--hover: #f0eeea;
--canvas: #e6e4df;
--accent: #2d5be3;
--accent-hover: #2349c4;
--accent-bright: #5b82ff;
--accent-soft: #e8eefd;
--accent-ink: #1c3fa8;
--accent-ring: rgba(45, 91, 227, 0.28);
--guide: #e5336f;
--danger: #c0392b;
--warn-bg: #fff6e3;
--warn-line: #efd9a6;
--warn-ink: #6b4d10;
--radius: 7px;
color-scheme: light;
}
html,
body,
#root {
height: 100%;
}
body {
margin: 0;
font: 12px/1.4 var(--font-ui);
color: var(--ink);
background: var(--panel);
-webkit-font-smoothing: antialiased;
overflow: hidden;
overscroll-behavior: none;
}
button,
input {
font: inherit;
color: inherit;
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
/* ------------------------------------------------------------------ shell */
.app {
display: grid;
grid-template-rows: auto minmax(0, 1fr) auto;
height: 100vh;
height: 100dvh;
min-width: 0;
overflow: hidden;
}
.topbar {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
grid-template-areas: "brand tools reset";
align-items: center;
gap: 14px;
height: 48px;
padding: 0 10px 0 12px;
background: var(--surface);
border-bottom: 1px solid var(--line);
min-width: 0;
}
.brand {
grid-area: brand;
display: flex;
align-items: center;
gap: 12px;
min-width: 0;
}
.logo {
display: inline-flex;
align-items: center;
gap: 7px;
flex: none;
}
.wordmark {
font-size: 15px;
font-weight: 700;
letter-spacing: -0.025em;
color: var(--ink);
}
.crumb-sep {
width: 1px;
height: 18px;
background: var(--line-strong);
flex: none;
}
.crumbs {
display: flex;
align-items: baseline;
gap: 6px;
min-width: 0;
font-size: 12.5px;
white-space: nowrap;
}
.workspace-name {
color: var(--muted);
}
.slash {
color: var(--line-strong);
}
.file-name {
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
}
.toolrow {
grid-area: tools;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-width: 0;
}
.tools,
.zoom {
display: flex;
align-items: center;
gap: 2px;
flex: none;
}
.tools {
padding: 3px;
background: var(--field);
border-radius: 9px;
}
.sep {
width: 1px;
height: 18px;
margin: 0 5px;
background: var(--line-strong);
flex: none;
}
.tool-btn,
.icon-btn {
display: grid;
place-items: center;
width: 32px;
height: 30px;
padding: 0;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--ink-2);
cursor: pointer;
flex: none;
}
.tool-btn:hover:not(:disabled),
.icon-btn:hover {
background: var(--hover);
color: var(--ink);
}
.tools .tool-btn:hover:not(:disabled) {
background: var(--surface);
}
.tool-btn.is-active,
.tools .tool-btn.is-active:hover {
background: var(--accent);
color: #fff;
}
.tool-btn:disabled {
opacity: 0.35;
cursor: default;
}
.text-btn {
width: auto;
padding: 0 8px;
font-size: 11.5px;
font-weight: 650;
font-variant-numeric: tabular-nums;
}
.zoom-level {
min-width: 46px;
text-align: center;
font-weight: 600;
font-variant-numeric: tabular-nums;
color: var(--ink);
}
.reset-btn {
grid-area: reset;
display: inline-flex;
align-items: center;
gap: 6px;
height: 30px;
padding: 0 11px 0 9px;
border: 1px solid var(--line-strong);
border-radius: var(--radius);
background: var(--surface);
color: var(--ink-2);
font-weight: 550;
cursor: pointer;
white-space: nowrap;
}
.reset-btn:hover {
border-color: var(--faint);
color: var(--ink);
}
.workspace {
display: grid;
grid-template-columns: 248px minmax(0, 1fr) 268px;
grid-template-areas: "left stage right";
min-height: 0;
min-width: 0;
}
.side {
min-height: 0;
min-width: 0;
background: var(--panel);
}
.side-left {
grid-area: left;
border-right: 1px solid var(--line);
}
.side-right {
grid-area: right;
border-left: 1px solid var(--line);
}
.stage {
grid-area: stage;
position: relative;
min-width: 0;
min-height: 0;
overflow: hidden;
}
.mobile-tabs {
display: none;
}
.statusbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
height: 26px;
padding: 0 12px;
border-top: 1px solid var(--line);
background: var(--surface);
font-size: 11px;
color: var(--muted);
min-width: 0;
}
.statusbar p {
margin: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.statusbar .notice {
color: var(--ink-2);
}
/* ----------------------------------------------------------------- panels */
.panel {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
}
.panel-head {
display: flex;
align-items: center;
justify-content: space-between;
height: 36px;
padding: 0 12px;
border-bottom: 1px solid var(--line);
flex: none;
}
.panel-head h2 {
margin: 0;
font-size: 12px;
font-weight: 650;
}
.panel-meta {
color: var(--faint);
font-size: 11px;
}
.panel-scroll {
flex: 1;
min-height: 0;
overflow: auto;
overscroll-behavior: contain;
}
.panel-foot {
margin: 0;
padding: 7px 12px;
border-top: 1px solid var(--line);
color: var(--faint);
font-size: 11px;
flex: none;
}
/* Layers tree */
.tree {
position: relative;
padding: 4px 0 8px;
}
.row {
position: relative;
display: flex;
align-items: center;
gap: 4px;
height: 28px;
padding-right: 6px;
color: var(--ink);
cursor: default;
user-select: none;
-webkit-user-select: none;
touch-action: pan-y;
}
.row:hover {
background: var(--hover);
}
.row.is-selected {
background: var(--accent-soft);
}
.row.is-selected .row-name {
color: var(--accent-ink);
}
.row:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
.row.is-frame .row-name {
font-weight: 650;
}
.row.is-hidden .row-name,
.row.is-hidden .type-icon {
opacity: 0.42;
}
.row.is-locked .type-icon {
opacity: 0.6;
}
.row.is-dragging {
opacity: 0.45;
}
.disclosure {
display: grid;
place-items: center;
width: 16px;
height: 16px;
padding: 0;
border: 0;
border-radius: 3px;
background: none;
color: var(--faint);
cursor: pointer;
flex: none;
}
.disclosure:hover {
color: var(--ink);
background: rgba(0, 0, 0, 0.05);
}
.disclosure svg {
transition: transform 0.12s ease;
}
.disclosure.is-open svg {
transform: rotate(90deg);
}
.disclosure-spacer {
width: 16px;
flex: none;
}
.type-icon {
display: grid;
place-items: center;
width: 16px;
height: 16px;
color: var(--muted);
flex: none;
}
.type-frame {
color: var(--ink-2);
}
.row.is-selected .type-icon {
color: var(--accent);
}
.row-name {
flex: 1;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding-left: 2px;
}
.row-actions {
display: flex;
flex: none;
}
.row-btn {
display: grid;
place-items: center;
width: 24px;
height: 24px;
padding: 0;
border: 0;
border-radius: 5px;
background: none;
color: var(--muted);
cursor: pointer;
opacity: 0;
}
.row-btn:hover {
background: rgba(0, 0, 0, 0.06);
color: var(--ink);
}
.row:hover .row-btn,
.row:focus-within .row-btn,
.row.is-selected .row-btn,
.row-btn.is-on,
.row-btn:focus-visible {
opacity: 1;
}
.row-btn.is-on {
color: var(--ink-2);
}
.row-btn:focus-visible {
outline-offset: -1px;
}
@media (hover: none) {
.row-btn {
opacity: 0.75;
}
}
.rename-input {
flex: 1;
min-width: 0;
height: 22px;
padding: 0 5px;
border: 1px solid var(--accent);
border-radius: 4px;
background: var(--surface);
outline: none;
box-shadow: 0 0 0 2px var(--accent-ring);
}
.drop-line {
position: absolute;
right: 8px;
height: 2px;
border-radius: 1px;
background: var(--accent);
pointer-events: none;
}
.drop-line::before {
content: "";
position: absolute;
left: -4px;
top: -3px;
width: 8px;
height: 8px;
border-radius: 50%;
border: 2px solid var(--accent);
background: var(--surface);
}
.empty-note {
margin: 12px;
color: var(--muted);
}
/* Properties */
.sel-summary {
display: flex;
align-items: center;
gap: 10px;
padding: 12px 12px 10px;
}
.sel-summary .type-icon {
width: 28px;
height: 28px;
border-radius: 7px;
background: var(--field);
color: var(--ink-2);
}
.sel-summary > div {
min-width: 0;
}
.sel-title {
margin: 0;
font-size: 13px;
font-weight: 650;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.sel-sub {
margin: 0;
color: var(--muted);
font-size: 11px;
}
.action-bar {
display: flex;
align-items: center;
gap: 1px;
padding: 0 8px 10px;
border-bottom: 1px solid var(--line);
}
.action-bar .sep {
margin: 0 3px;
}
.icon-btn {
width: 30px;
height: 28px;
}
.icon-btn.is-dim {
opacity: 0.45;
}
.icon-btn.is-danger:hover {
color: var(--danger);
background: #fbeceb;
}
.lock-notice {
margin: 10px 12px 0;
padding: 8px 10px;
border: 1px solid var(--warn-line);
border-radius: 6px;
background: var(--warn-bg);
color: var(--warn-ink);
font-size: 11.5px;
}
.section {
padding: 12px;
border-bottom: 1px solid var(--line);
}
.section h3 {
margin: 0 0 8px;
font-size: 11px;
font-weight: 650;
color: var(--ink-2);
}
.grid2 {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 6px;
}
.field {
display: flex;
align-items: center;
gap: 6px;
height: 28px;
padding: 0 7px;
border: 1px solid transparent;
border-radius: 6px;
background: var(--field);
cursor: text;
min-width: 0;
}
.field:hover {
border-color: var(--line-strong);
}
.field:focus-within {
border-color: var(--accent);
background: var(--surface);
box-shadow: 0 0 0 2px var(--accent-ring);
}
.field-label {
display: grid;
place-items: center;
width: 14px;
flex: none;
color: var(--faint);
font-size: 11px;
font-weight: 600;
}
.field input[type="text"] {
flex: 1;
min-width: 0;
height: 100%;
padding: 0;
border: 0;
background: none;
outline: none;
font-variant-numeric: tabular-nums;
}
.field input:focus-visible {
outline: none;
}
.field.is-mixed input::placeholder {
color: var(--muted);
font-style: italic;
opacity: 1;
}
.field-suffix {
color: var(--faint);
flex: none;
}
.fill-row {
display: flex;
align-items: center;
gap: 8px;
margin-top: 6px;
}
.row-label {
width: 58px;
flex: none;
color: var(--muted);
font-size: 11px;
}
.fill-row .field {
flex: 1;
}
.swatch {
position: relative;
width: 18px;
height: 18px;
flex: none;
border-radius: 4px;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16);
overflow: hidden;
cursor: pointer;
}
.color-field.is-mixed .swatch {
background: repeating-conic-gradient(#d9d6cf 0 25%, #fff 0 50%) 0 0 / 8px 8px;
}
.swatch input[type="color"] {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
padding: 0;
border: 0;
opacity: 0;
cursor: pointer;
}
.swatch:focus-within {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.field-error {
margin: 8px 0 0;
padding-left: 8px;
border-left: 2px solid var(--danger);
color: var(--danger);
font-size: 11.5px;
}
.hint {
margin: 8px 0 0;
color: var(--faint);
font-size: 11px;
}
.empty-state {
padding: 16px 14px;
color: var(--muted);
}
.empty-state p {
margin: 0 0 10px;
}
.empty-title {
color: var(--ink);
font-size: 13px;
font-weight: 650;
}
.tips {
margin: 14px 0;
padding: 0;
list-style: none;
}
.tips li {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 6px 0;
border-bottom: 1px dashed var(--line);
}
kbd {
padding: 1px 5px;
border: 1px solid var(--line-strong);
border-bottom-width: 2px;
border-radius: 4px;
background: var(--surface);
color: var(--ink-2);
font: 500 10.5px/1.4 var(--font-ui);
white-space: nowrap;
}
.doc-summary {
color: var(--faint);
font-size: 11px;
}
/* ----------------------------------------------------------------- canvas */
.canvas {
position: absolute;
inset: 0;
overflow: hidden;
overflow: clip;
background-color: var(--canvas);
background-image: radial-gradient(circle, rgba(28, 27, 25, 0.07) 1px, transparent 1.2px);
background-size: 16px 16px;
touch-action: none;
user-select: none;
-webkit-user-select: none;
outline: none;
}
.canvas:focus-visible {
box-shadow: inset 0 0 0 2px rgba(45, 91, 227, 0.55);
}
.world {
position: absolute;
left: 0;
top: 0;
transform-origin: 0 0;
}
.frame {
position: absolute;
overflow: hidden;
overflow: clip;
box-shadow: 0 1px 2px rgba(28, 27, 25, 0.08), 0 0 0 0.5px rgba(28, 27, 25, 0.1);
}
.layer {
position: absolute;
}
.layer-text {
font-family: var(--font-doc);
white-space: pre-wrap;
overflow-wrap: break-word;
word-break: normal;
overflow: visible;
}
.layer-text.is-editing {
outline: none;
cursor: text;
user-select: text;
-webkit-user-select: text;
caret-color: var(--accent);
box-shadow: 0 0 0 1px var(--accent);
}
.layer-text.is-editing:empty::before {
content: attr(data-placeholder);
opacity: 0.4;
}
.frame-label {
position: absolute;
height: 16px;
padding-right: 4px;
font-size: 11px;
line-height: 16px;
font-weight: 550;
color: var(--muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: default;
user-select: none;
}
.frame-label:hover {
color: var(--ink);
}
.frame-label.is-selected {
color: var(--accent);
}
.frame-label.is-locked {
opacity: 0.6;
}
.overlay {
position: absolute;
inset: 0;
overflow: visible;
pointer-events: none;
}
.sel-outline,
.item-outline,
.hover-outline {
fill: none;
stroke: var(--accent);
}
.sel-outline {
stroke-width: 1.5;
}
.sel-outline.is-locked {
stroke-dasharray: 4 3;
stroke: var(--muted);
}
.item-outline {
stroke-width: 1;
opacity: 0.75;
}
.hover-outline {
stroke-width: 1.5;
opacity: 0.55;
}
.handle,
.rotate-zone,
.rotate-handle {
pointer-events: all;
}
.handle .hit,
.rotate-zone,
.rotate-handle .hit {
fill: transparent;
}
.handle .knob {
fill: #fff;
stroke: var(--accent);
stroke-width: 1.5;
}
.handle:hover .knob {
fill: var(--accent-soft);
}
.rotate-handle line {
stroke: var(--accent);
stroke-width: 1;
}
.rotate-handle .knob {
fill: #fff;
stroke: var(--accent);
stroke-width: 1.5;
}
.rotate-handle:hover .knob {
fill: var(--accent);
}
.guide line,
.guide path {
stroke: var(--guide);
stroke-width: 1;
fill: none;
}
.marquee {
fill: rgba(45, 91, 227, 0.07);
stroke: var(--accent);
stroke-width: 1;
}
.hud {
position: absolute;
transform: translateX(-50%);
padding: 2px 6px;
border-radius: 4px;
background: var(--accent);
color: #fff;
font-size: 11px;
font-weight: 600;
line-height: 16px;
font-variant-numeric: tabular-nums;
white-space: nowrap;
pointer-events: none;
}
.hud:not(.is-live) {
background: rgba(45, 91, 227, 0.92);
}
.tool-hint {
position: absolute;
top: 12px;
left: 50%;
transform: translateX(-50%);
max-width: calc(100% - 24px);
padding: 6px 11px;
border-radius: 8px;
background: rgba(28, 27, 25, 0.88);
color: #fff;
font-size: 11.5px;
pointer-events: none;
text-align: center;
}
.canvas-empty {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: grid;
gap: 4px;
width: min(340px, calc(100% - 32px));
padding: 16px 18px;
border: 1px dashed var(--line-strong);
border-radius: 10px;
background: rgba(255, 255, 255, 0.7);
color: var(--muted);
text-align: center;
pointer-events: none;
}
.canvas-empty strong {
color: var(--ink);
font-size: 13px;
}
.toast-region {
position: absolute;
left: 50%;
bottom: 14px;
transform: translateX(-50%);
width: max-content;
max-width: calc(100% - 24px);
pointer-events: none;
z-index: 5;
}
.toast {
padding: 8px 12px;
border-radius: 8px;
background: var(--ink);
color: #fff;
font-size: 12px;
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
animation: toast-in 0.16s ease-out;
}
.toast.tone-warn {
box-shadow: inset 3px 0 0 #f0b43c, 0 6px 24px rgba(0, 0, 0, 0.18);
padding-left: 14px;
}
@keyframes toast-in {
from {
opacity: 0;
transform: translateY(6px);
}
}
/* ---------------------------------------------------------------- overlays */
.tooltip {
position: fixed;
z-index: 1000;
transform: translateX(-50%);
padding: 4px 8px;
border-radius: 5px;
background: var(--ink);
color: #fff;
font-size: 11px;
white-space: pre;
pointer-events: none;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}
.tooltip.is-above {
transform: translate(-50%, -100%);
}
.dialog {
width: min(420px, calc(100vw - 32px));
padding: 0;
border: 0;
border-radius: 12px;
background: var(--surface);
color: var(--ink);
box-shadow: 0 24px 64px rgba(0, 0, 0, 0.24);
}
.dialog::backdrop {
background: rgba(22, 21, 19, 0.36);
}
.dialog-body {
padding: 20px 20px 16px;
}
.dialog h2 {
margin: 0 0 8px;
font-size: 15px;
font-weight: 650;
}
.dialog p {
margin: 0 0 18px;
color: var(--ink-2);
font-size: 12.5px;
line-height: 1.5;
}
.dialog-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
flex-wrap: wrap;
}
.btn {
height: 32px;
padding: 0 14px;
border: 1px solid var(--line-strong);
border-radius: var(--radius);
background: var(--surface);
font-weight: 600;
cursor: pointer;
}
.btn:hover {
background: var(--hover);
}
.btn-danger {
border-color: var(--danger);
background: var(--danger);
color: #fff;
}
.btn-danger:hover {
background: #a83225;
}
.splash {
display: grid;
place-content: center;
gap: 6px;
height: 100%;
color: var(--muted);
text-align: center;
padding: 16px;
}
.splash p {
margin: 0;
}
.splash.is-error p:first-child {
color: var(--danger);
}
/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
.workspace {
grid-template-columns: 216px minmax(0, 1fr) 240px;
}
.workspace-name,
.slash {
display: none;
}
}
@media (max-width: 960px) {
.wordmark {
display: none;
}
}
@media (max-width: 760px) {
.topbar {
grid-template-columns: minmax(0, 1fr) auto;
grid-template-areas:
"brand reset"
"tools tools";
height: auto;
row-gap: 6px;
padding: 6px 8px;
}
.wordmark {
display: inline;
font-size: 14px;
}
.workspace-name,
.slash {
display: inline;
}
.crumbs {
font-size: 12px;
flex-direction: column;
gap: 0;
line-height: 1.25;
min-width: 0;
}
.crumbs .slash {
display: none;
}
.workspace-name {
font-size: 10.5px;
}
.file-name {
max-width: 100%;
}
.reset-btn {
height: 30px;
padding: 0 9px;
}
.toolrow {
overflow-x: auto;
scrollbar-width: none;
gap: 8px;
padding-bottom: 1px;
}
.toolrow::-webkit-scrollbar {
display: none;
}
.toolrow {
gap: 4px;
}
.tool-btn {
width: 31px;
height: 34px;
}
.text-btn {
width: auto;
padding: 0 6px;
}
.sep {
margin: 0 3px;
}
.zoom-level {
min-width: 38px;
}
.workspace {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr) auto minmax(0, 40%);
grid-template-areas:
"stage"
"tabs"
"panel";
}
.side-left,
.side-right {
grid-area: panel;
border: 0;
}
.workspace[data-tab="layers"] .side-right,
.workspace[data-tab="props"] .side-left {
display: none;
}
.mobile-tabs {
grid-area: tabs;
display: flex;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
background: var(--surface);
}
.mobile-tabs button {
flex: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
height: 38px;
border: 0;
border-bottom: 2px solid transparent;
background: none;
color: var(--muted);
font-weight: 600;
cursor: pointer;
}
.mobile-tabs button[aria-selected="true"] {
color: var(--ink);
border-bottom-color: var(--accent);
}
.mobile-tabs button:focus-visible {
outline-offset: -2px;
}
.tab-badge {
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 8px;
background: var(--accent);
color: #fff;
font-size: 10px;
line-height: 16px;
}
.panel-head,
.panel-foot {
display: none;
}
.row {
height: 34px;
}
.field {
height: 34px;
}
.status-sel {
display: none;
}
.statusbar {
justify-content: center;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
scroll-behavior: auto !important;
}
}