@caretcms/core 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +191 -0
- package/dist/browser-runtime.d.ts +12 -0
- package/dist/browser-runtime.d.ts.map +1 -0
- package/dist/browser-runtime.js +298 -0
- package/dist/browser-runtime.js.map +1 -0
- package/dist/index.d.ts +81 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +343 -0
- package/dist/index.js.map +1 -0
- package/dist/loader.d.ts +61 -0
- package/dist/loader.d.ts.map +1 -0
- package/dist/loader.js +80 -0
- package/dist/loader.js.map +1 -0
- package/dist/providers/storage/filesystem.d.ts +7 -0
- package/dist/providers/storage/filesystem.d.ts.map +1 -0
- package/dist/providers/storage/filesystem.js +6 -0
- package/dist/providers/storage/filesystem.js.map +1 -0
- package/dist/providers/uploads/local.d.ts +6 -0
- package/dist/providers/uploads/local.d.ts.map +1 -0
- package/dist/providers/uploads/local.js +6 -0
- package/dist/providers/uploads/local.js.map +1 -0
- package/dist/runtime/auth/cookie-utils.d.ts +3 -0
- package/dist/runtime/auth/cookie-utils.d.ts.map +1 -0
- package/dist/runtime/auth/cookie-utils.js +33 -0
- package/dist/runtime/auth/cookie-utils.js.map +1 -0
- package/dist/runtime/auth/demo-session.d.ts +24 -0
- package/dist/runtime/auth/demo-session.d.ts.map +1 -0
- package/dist/runtime/auth/demo-session.js +42 -0
- package/dist/runtime/auth/demo-session.js.map +1 -0
- package/dist/runtime/auth/rate-limiter.d.ts +26 -0
- package/dist/runtime/auth/rate-limiter.d.ts.map +1 -0
- package/dist/runtime/auth/rate-limiter.js +65 -0
- package/dist/runtime/auth/rate-limiter.js.map +1 -0
- package/dist/runtime/auth/session.d.ts +14 -0
- package/dist/runtime/auth/session.d.ts.map +1 -0
- package/dist/runtime/auth/session.js +128 -0
- package/dist/runtime/auth/session.js.map +1 -0
- package/dist/runtime/bind.d.ts +14 -0
- package/dist/runtime/bind.d.ts.map +1 -0
- package/dist/runtime/bind.js +19 -0
- package/dist/runtime/bind.js.map +1 -0
- package/dist/runtime/config.d.ts +20 -0
- package/dist/runtime/config.d.ts.map +1 -0
- package/dist/runtime/config.js +40 -0
- package/dist/runtime/config.js.map +1 -0
- package/dist/runtime/content.d.ts +28 -0
- package/dist/runtime/content.d.ts.map +1 -0
- package/dist/runtime/content.js +37 -0
- package/dist/runtime/content.js.map +1 -0
- package/dist/runtime/index.d.ts +14 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +16 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/runtime/middleware.d.ts +14 -0
- package/dist/runtime/middleware.d.ts.map +1 -0
- package/dist/runtime/middleware.js +80 -0
- package/dist/runtime/middleware.js.map +1 -0
- package/dist/runtime/mutations/contracts.d.ts +91 -0
- package/dist/runtime/mutations/contracts.d.ts.map +1 -0
- package/dist/runtime/mutations/contracts.js +320 -0
- package/dist/runtime/mutations/contracts.js.map +1 -0
- package/dist/runtime/mutations/engine.d.ts +23 -0
- package/dist/runtime/mutations/engine.d.ts.map +1 -0
- package/dist/runtime/mutations/engine.js +255 -0
- package/dist/runtime/mutations/engine.js.map +1 -0
- package/dist/runtime/providers.d.ts +9 -0
- package/dist/runtime/providers.d.ts.map +1 -0
- package/dist/runtime/providers.js +44 -0
- package/dist/runtime/providers.js.map +1 -0
- package/dist/runtime/request-context.d.ts +11 -0
- package/dist/runtime/request-context.d.ts.map +1 -0
- package/dist/runtime/request-context.js +16 -0
- package/dist/runtime/request-context.js.map +1 -0
- package/dist/runtime/rewrite.d.ts +13 -0
- package/dist/runtime/rewrite.d.ts.map +1 -0
- package/dist/runtime/rewrite.js +253 -0
- package/dist/runtime/rewrite.js.map +1 -0
- package/dist/runtime/routes/_helpers.d.ts +17 -0
- package/dist/runtime/routes/_helpers.d.ts.map +1 -0
- package/dist/runtime/routes/_helpers.js +38 -0
- package/dist/runtime/routes/_helpers.js.map +1 -0
- package/dist/runtime/routes/admin-entry.d.ts +3 -0
- package/dist/runtime/routes/admin-entry.d.ts.map +1 -0
- package/dist/runtime/routes/admin-entry.js +170 -0
- package/dist/runtime/routes/admin-entry.js.map +1 -0
- package/dist/runtime/routes/admin.d.ts +3 -0
- package/dist/runtime/routes/admin.d.ts.map +1 -0
- package/dist/runtime/routes/admin.js +189 -0
- package/dist/runtime/routes/admin.js.map +1 -0
- package/dist/runtime/routes/auth-login.d.ts +4 -0
- package/dist/runtime/routes/auth-login.d.ts.map +1 -0
- package/dist/runtime/routes/auth-login.js +71 -0
- package/dist/runtime/routes/auth-login.js.map +1 -0
- package/dist/runtime/routes/auth-logout.d.ts +4 -0
- package/dist/runtime/routes/auth-logout.d.ts.map +1 -0
- package/dist/runtime/routes/auth-logout.js +47 -0
- package/dist/runtime/routes/auth-logout.js.map +1 -0
- package/dist/runtime/routes/auth-session.d.ts +3 -0
- package/dist/runtime/routes/auth-session.d.ts.map +1 -0
- package/dist/runtime/routes/auth-session.js +8 -0
- package/dist/runtime/routes/auth-session.js.map +1 -0
- package/dist/runtime/routes/collection-list.d.ts +3 -0
- package/dist/runtime/routes/collection-list.d.ts.map +1 -0
- package/dist/runtime/routes/collection-list.js +420 -0
- package/dist/runtime/routes/collection-list.js.map +1 -0
- package/dist/runtime/routes/collections-metadata.d.ts +3 -0
- package/dist/runtime/routes/collections-metadata.d.ts.map +1 -0
- package/dist/runtime/routes/collections-metadata.js +17 -0
- package/dist/runtime/routes/collections-metadata.js.map +1 -0
- package/dist/runtime/routes/editor-assets.d.ts +3 -0
- package/dist/runtime/routes/editor-assets.d.ts.map +1 -0
- package/dist/runtime/routes/editor-assets.js +73 -0
- package/dist/runtime/routes/editor-assets.js.map +1 -0
- package/dist/runtime/routes/entries.d.ts +3 -0
- package/dist/runtime/routes/entries.d.ts.map +1 -0
- package/dist/runtime/routes/entries.js +96 -0
- package/dist/runtime/routes/entries.js.map +1 -0
- package/dist/runtime/routes/history.d.ts +4 -0
- package/dist/runtime/routes/history.d.ts.map +1 -0
- package/dist/runtime/routes/history.js +54 -0
- package/dist/runtime/routes/history.js.map +1 -0
- package/dist/runtime/routes/mutate.d.ts +4 -0
- package/dist/runtime/routes/mutate.d.ts.map +1 -0
- package/dist/runtime/routes/mutate.js +38 -0
- package/dist/runtime/routes/mutate.js.map +1 -0
- package/dist/runtime/routes/schema.d.ts +3 -0
- package/dist/runtime/routes/schema.d.ts.map +1 -0
- package/dist/runtime/routes/schema.js +58 -0
- package/dist/runtime/routes/schema.js.map +1 -0
- package/dist/runtime/routes/studio-home.d.ts +3 -0
- package/dist/runtime/routes/studio-home.d.ts.map +1 -0
- package/dist/runtime/routes/studio-home.js +99 -0
- package/dist/runtime/routes/studio-home.js.map +1 -0
- package/dist/runtime/routes/theme-stylesheet.d.ts +3 -0
- package/dist/runtime/routes/theme-stylesheet.d.ts.map +1 -0
- package/dist/runtime/routes/theme-stylesheet.js +32 -0
- package/dist/runtime/routes/theme-stylesheet.js.map +1 -0
- package/dist/runtime/routes/upload.d.ts +3 -0
- package/dist/runtime/routes/upload.d.ts.map +1 -0
- package/dist/runtime/routes/upload.js +33 -0
- package/dist/runtime/routes/upload.js.map +1 -0
- package/dist/runtime/sanitize-html.d.ts +8 -0
- package/dist/runtime/sanitize-html.d.ts.map +1 -0
- package/dist/runtime/sanitize-html.js +86 -0
- package/dist/runtime/sanitize-html.js.map +1 -0
- package/dist/runtime/schema/template.d.ts +15 -0
- package/dist/runtime/schema/template.d.ts.map +1 -0
- package/dist/runtime/schema/template.js +38 -0
- package/dist/runtime/schema/template.js.map +1 -0
- package/dist/runtime/schema-registry.d.ts +17 -0
- package/dist/runtime/schema-registry.d.ts.map +1 -0
- package/dist/runtime/schema-registry.js +16 -0
- package/dist/runtime/schema-registry.js.map +1 -0
- package/dist/runtime/storage/filesystem-adapter.d.ts +36 -0
- package/dist/runtime/storage/filesystem-adapter.d.ts.map +1 -0
- package/dist/runtime/storage/filesystem-adapter.js +291 -0
- package/dist/runtime/storage/filesystem-adapter.js.map +1 -0
- package/dist/runtime/storage/filesystem-upload-handler.d.ts +11 -0
- package/dist/runtime/storage/filesystem-upload-handler.d.ts.map +1 -0
- package/dist/runtime/storage/filesystem-upload-handler.js +20 -0
- package/dist/runtime/storage/filesystem-upload-handler.js.map +1 -0
- package/dist/runtime/storage/image-validation.d.ts +28 -0
- package/dist/runtime/storage/image-validation.d.ts.map +1 -0
- package/dist/runtime/storage/image-validation.js +94 -0
- package/dist/runtime/storage/image-validation.js.map +1 -0
- package/dist/runtime/storage/in-memory-adapter.d.ts +29 -0
- package/dist/runtime/storage/in-memory-adapter.d.ts.map +1 -0
- package/dist/runtime/storage/in-memory-adapter.js +110 -0
- package/dist/runtime/storage/in-memory-adapter.js.map +1 -0
- package/dist/runtime/storage/quota-upload-handler.d.ts +27 -0
- package/dist/runtime/storage/quota-upload-handler.d.ts.map +1 -0
- package/dist/runtime/storage/quota-upload-handler.js +34 -0
- package/dist/runtime/storage/quota-upload-handler.js.map +1 -0
- package/dist/runtime/storage/session-overlay-adapter.d.ts +33 -0
- package/dist/runtime/storage/session-overlay-adapter.d.ts.map +1 -0
- package/dist/runtime/storage/session-overlay-adapter.js +121 -0
- package/dist/runtime/storage/session-overlay-adapter.js.map +1 -0
- package/dist/runtime/themes/preset-tokens.d.ts +17 -0
- package/dist/runtime/themes/preset-tokens.d.ts.map +1 -0
- package/dist/runtime/themes/preset-tokens.js +47 -0
- package/dist/runtime/themes/preset-tokens.js.map +1 -0
- package/dist/runtime/utils.d.ts +6 -0
- package/dist/runtime/utils.d.ts.map +1 -0
- package/dist/runtime/utils.js +29 -0
- package/dist/runtime/utils.js.map +1 -0
- package/dist/runtime/views/studio-layout.d.ts +25 -0
- package/dist/runtime/views/studio-layout.d.ts.map +1 -0
- package/dist/runtime/views/studio-layout.js +108 -0
- package/dist/runtime/views/studio-layout.js.map +1 -0
- package/dist/schema-utils.d.ts +16 -0
- package/dist/schema-utils.d.ts.map +1 -0
- package/dist/schema-utils.js +62 -0
- package/dist/schema-utils.js.map +1 -0
- package/dist/types.d.ts +76 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/editor-runtime.d.ts +6 -0
- package/editor-runtime.js +2 -0
- package/package.json +88 -0
- package/static/cms/admin-entry.css +207 -0
- package/static/cms/admin-entry.js +1083 -0
- package/static/cms/editor/config.js +118 -0
- package/static/cms/editor/content-map.css +141 -0
- package/static/cms/editor/content-map.js +172 -0
- package/static/cms/editor/guards.js +72 -0
- package/static/cms/editor/helpers.js +51 -0
- package/static/cms/editor/image-edit.js +151 -0
- package/static/cms/editor/image-utils.js +84 -0
- package/static/cms/editor/image.css +133 -0
- package/static/cms/editor/link-follow.js +144 -0
- package/static/cms/editor/link-ui.css +199 -0
- package/static/cms/editor/linkify.js +55 -0
- package/static/cms/editor/panel.css +91 -0
- package/static/cms/editor/panel.js +70 -0
- package/static/cms/editor/rich-toolbar.css +67 -0
- package/static/cms/editor/rich-toolbar.js +200 -0
- package/static/cms/editor/sanitize.js +89 -0
- package/static/cms/editor/save-queue.js +166 -0
- package/static/cms/editor/section-controls/activation.js +10 -0
- package/static/cms/editor/section-controls/api.js +87 -0
- package/static/cms/editor/section-controls/constants.js +24 -0
- package/static/cms/editor/section-controls/index.js +622 -0
- package/static/cms/editor/section-controls/model.js +76 -0
- package/static/cms/editor/section-controls/mutations.js +112 -0
- package/static/cms/editor/section-controls/page-context.js +34 -0
- package/static/cms/editor/section-controls/pickers.js +196 -0
- package/static/cms/editor/section-controls/reorder.js +92 -0
- package/static/cms/editor/section-controls/selection.js +54 -0
- package/static/cms/editor/section-controls/spacing-drag.js +83 -0
- package/static/cms/editor/section-controls/ui-elements.js +54 -0
- package/static/cms/editor/section-controls/utils.js +35 -0
- package/static/cms/editor/section-controls.css +349 -0
- package/static/cms/editor/section-controls.js +1 -0
- package/static/cms/editor/security.js +48 -0
- package/static/cms/editor/sync.js +72 -0
- package/static/cms/editor/text-edit.js +151 -0
- package/static/cms/editor/text-link-interactions.js +254 -0
- package/static/cms/editor/toast.css +50 -0
- package/static/cms/editor/toast.js +29 -0
- package/static/cms/editor/tokens-and-text.css +93 -0
- package/static/cms/editor/toolbar.css +249 -0
- package/static/cms/editor/toolbar.js +117 -0
- package/static/cms/editor.css +12 -0
- package/static/cms/editor.js +116 -0
- package/static/cms/studio-login.css +300 -0
- package/static/cms/studio-tokens.css +85 -0
- package/static/cms/studio.css +437 -0
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
/* ========================================================================
|
|
2
|
+
Content Studio — Component Layer
|
|
3
|
+
------------------------------------------------------------------------
|
|
4
|
+
Imports the token layer first, then defines all studio classes purely
|
|
5
|
+
in terms of those tokens. To restyle, override semantic tokens in
|
|
6
|
+
studio-tokens.css (or via the dynamic /api/cms/theme.css endpoint).
|
|
7
|
+
======================================================================== */
|
|
8
|
+
|
|
9
|
+
@import "./studio-tokens.css";
|
|
10
|
+
|
|
11
|
+
/* The [hidden] attribute would normally apply `display: none`, but inline
|
|
12
|
+
`style="display:flex"` on container elements (#loading, #editor, etc.)
|
|
13
|
+
wins by specificity. Force [hidden] to take precedence. */
|
|
14
|
+
[hidden] { display: none !important; }
|
|
15
|
+
|
|
16
|
+
/* ─── Base ──────────────────────────────────────────────────────────── */
|
|
17
|
+
|
|
18
|
+
html, body {
|
|
19
|
+
margin: 0;
|
|
20
|
+
padding: 0;
|
|
21
|
+
background: var(--studio-bg);
|
|
22
|
+
color: var(--studio-text);
|
|
23
|
+
font-family: var(--studio-font);
|
|
24
|
+
-webkit-font-smoothing: antialiased;
|
|
25
|
+
-moz-osx-font-smoothing: grayscale;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
* {
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
a {
|
|
33
|
+
color: inherit;
|
|
34
|
+
text-decoration: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* ─── Scrollbar ─────────────────────────────────────────────────────── */
|
|
38
|
+
|
|
39
|
+
.studio-scroll::-webkit-scrollbar { width: 6px; }
|
|
40
|
+
.studio-scroll::-webkit-scrollbar-track { background: transparent; }
|
|
41
|
+
.studio-scroll::-webkit-scrollbar-thumb {
|
|
42
|
+
background: var(--studio-border);
|
|
43
|
+
border-radius: var(--radius-theme-xs);
|
|
44
|
+
}
|
|
45
|
+
.studio-scroll::-webkit-scrollbar-thumb:hover { background: var(--studio-border-hover); }
|
|
46
|
+
|
|
47
|
+
/* ─── Layout: Shell + Header ────────────────────────────────────────── */
|
|
48
|
+
|
|
49
|
+
.studio-shell {
|
|
50
|
+
min-height: 100vh;
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: column;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.studio-header {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: space-between;
|
|
59
|
+
gap: var(--space-theme-md);
|
|
60
|
+
padding: var(--space-theme-md) var(--space-theme-lg);
|
|
61
|
+
border-bottom: 1px solid var(--studio-border);
|
|
62
|
+
background: var(--studio-surface);
|
|
63
|
+
position: sticky;
|
|
64
|
+
top: 0;
|
|
65
|
+
z-index: 10;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.studio-brand {
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
gap: var(--space-theme-sm);
|
|
72
|
+
font-family: var(--studio-font-heading);
|
|
73
|
+
font-size: 1rem;
|
|
74
|
+
letter-spacing: 0.02em;
|
|
75
|
+
color: var(--studio-text);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.studio-brand-mark {
|
|
79
|
+
width: 24px;
|
|
80
|
+
height: 24px;
|
|
81
|
+
color: var(--studio-accent);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.studio-breadcrumb {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: var(--space-theme-sm);
|
|
88
|
+
font-size: 11px;
|
|
89
|
+
letter-spacing: 0.08em;
|
|
90
|
+
text-transform: uppercase;
|
|
91
|
+
color: var(--studio-text-dim);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.studio-breadcrumb a:hover { color: var(--studio-text-muted); }
|
|
95
|
+
.studio-breadcrumb-sep { opacity: 0.4; }
|
|
96
|
+
.studio-breadcrumb-current { color: var(--studio-text-muted); }
|
|
97
|
+
|
|
98
|
+
.studio-main {
|
|
99
|
+
flex: 1;
|
|
100
|
+
padding: var(--space-theme-xl) var(--space-theme-lg);
|
|
101
|
+
overflow-y: auto;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* ─── Drop zone ─────────────────────────────────────────────────────── */
|
|
105
|
+
|
|
106
|
+
.studio-dropzone {
|
|
107
|
+
border: 2px dashed var(--studio-border-hover);
|
|
108
|
+
border-radius: var(--radius-theme-sm);
|
|
109
|
+
transition: all 0.2s ease;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.studio-dropzone:hover,
|
|
113
|
+
.studio-dropzone.drag-over {
|
|
114
|
+
border-color: var(--studio-accent);
|
|
115
|
+
background: var(--studio-accent-soft);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* ─── Image gallery drag ────────────────────────────────────────────── */
|
|
119
|
+
|
|
120
|
+
.studio-gallery-item {
|
|
121
|
+
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.studio-gallery-item.dragging {
|
|
125
|
+
opacity: 0.5;
|
|
126
|
+
transform: scale(0.95);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.studio-gallery-item.drag-over-item {
|
|
130
|
+
outline: 2px solid var(--studio-accent);
|
|
131
|
+
outline-offset: 2px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* ─── Animations ────────────────────────────────────────────────────── */
|
|
135
|
+
|
|
136
|
+
@keyframes studio-fade-in {
|
|
137
|
+
from { opacity: 0; transform: translateY(8px); }
|
|
138
|
+
to { opacity: 1; transform: translateY(0); }
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
@keyframes studio-spin { to { transform: rotate(360deg); } }
|
|
142
|
+
|
|
143
|
+
@keyframes studio-card-reveal {
|
|
144
|
+
from { opacity: 0; transform: translateY(16px); }
|
|
145
|
+
to { opacity: 1; transform: translateY(0); }
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.studio-fade-in { animation: studio-fade-in 0.3s ease forwards; }
|
|
149
|
+
|
|
150
|
+
.studio-spinner {
|
|
151
|
+
display: inline-block;
|
|
152
|
+
width: 14px;
|
|
153
|
+
height: 14px;
|
|
154
|
+
border: 2px solid currentColor;
|
|
155
|
+
border-top-color: transparent;
|
|
156
|
+
border-radius: 50%;
|
|
157
|
+
animation: studio-spin 0.8s linear infinite;
|
|
158
|
+
color: var(--studio-accent);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* ─── Upload progress ───────────────────────────────────────────────── */
|
|
162
|
+
|
|
163
|
+
.studio-upload-progress {
|
|
164
|
+
height: 3px;
|
|
165
|
+
background: var(--studio-border);
|
|
166
|
+
border-radius: var(--radius-theme-xs);
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.studio-upload-progress-bar {
|
|
171
|
+
height: 100%;
|
|
172
|
+
background: var(--studio-accent);
|
|
173
|
+
transition: width 0.3s ease;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* ─── Form inputs ───────────────────────────────────────────────────── */
|
|
177
|
+
|
|
178
|
+
.studio-input {
|
|
179
|
+
width: 100%;
|
|
180
|
+
padding: 10px 14px;
|
|
181
|
+
background: var(--color-theme-surface-muted);
|
|
182
|
+
border: 1px solid var(--studio-border);
|
|
183
|
+
color: var(--studio-text);
|
|
184
|
+
font-family: var(--studio-font);
|
|
185
|
+
font-size: 13px;
|
|
186
|
+
transition: border-color 0.2s, background 0.2s;
|
|
187
|
+
outline: none;
|
|
188
|
+
border-radius: var(--radius-theme-sm);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.studio-input:focus {
|
|
192
|
+
border-color: var(--studio-accent);
|
|
193
|
+
background: rgba(255, 255, 255, 0.06);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.studio-input::placeholder { color: var(--studio-text-dim); }
|
|
197
|
+
|
|
198
|
+
textarea.studio-input {
|
|
199
|
+
resize: vertical;
|
|
200
|
+
min-height: 80px;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/* ─── Toggle switch ─────────────────────────────────────────────────── */
|
|
204
|
+
|
|
205
|
+
.studio-toggle {
|
|
206
|
+
position: relative;
|
|
207
|
+
width: 40px;
|
|
208
|
+
height: 22px;
|
|
209
|
+
background: var(--color-theme-surface-muted);
|
|
210
|
+
border-radius: 11px;
|
|
211
|
+
cursor: pointer;
|
|
212
|
+
transition: background 0.2s;
|
|
213
|
+
border: none;
|
|
214
|
+
padding: 0;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.studio-toggle.active { background: var(--studio-accent); }
|
|
218
|
+
|
|
219
|
+
.studio-toggle::after {
|
|
220
|
+
content: "";
|
|
221
|
+
position: absolute;
|
|
222
|
+
top: 2px;
|
|
223
|
+
left: 2px;
|
|
224
|
+
width: 18px;
|
|
225
|
+
height: 18px;
|
|
226
|
+
background: white;
|
|
227
|
+
border-radius: 50%;
|
|
228
|
+
transition: transform 0.2s;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.studio-toggle.active::after { transform: translateX(18px); }
|
|
232
|
+
|
|
233
|
+
/* ─── Tag list ──────────────────────────────────────────────────────── */
|
|
234
|
+
|
|
235
|
+
.studio-tag {
|
|
236
|
+
display: inline-flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
gap: 6px;
|
|
239
|
+
padding: 4px 10px;
|
|
240
|
+
background: var(--color-theme-surface-muted);
|
|
241
|
+
border: 1px solid var(--studio-border);
|
|
242
|
+
font-size: 12px;
|
|
243
|
+
color: var(--studio-text-muted);
|
|
244
|
+
border-radius: var(--radius-theme-xs);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.studio-tag button {
|
|
248
|
+
background: none;
|
|
249
|
+
border: none;
|
|
250
|
+
color: var(--studio-text-dim);
|
|
251
|
+
cursor: pointer;
|
|
252
|
+
padding: 0;
|
|
253
|
+
font-size: 14px;
|
|
254
|
+
line-height: 1;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.studio-tag button:hover { color: var(--studio-red); }
|
|
258
|
+
|
|
259
|
+
/* ─── Header nav links ──────────────────────────────────────────────── */
|
|
260
|
+
|
|
261
|
+
.studio-nav-link {
|
|
262
|
+
padding: 4px 12px;
|
|
263
|
+
font-size: 10px;
|
|
264
|
+
letter-spacing: 0.1em;
|
|
265
|
+
text-transform: uppercase;
|
|
266
|
+
text-decoration: none;
|
|
267
|
+
color: var(--studio-text-dim);
|
|
268
|
+
transition: color 0.15s, background 0.15s;
|
|
269
|
+
border-radius: var(--radius-theme-xs);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.studio-nav-link:hover {
|
|
273
|
+
color: var(--studio-text-muted);
|
|
274
|
+
background: var(--color-theme-surface-muted);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.studio-nav-link.active {
|
|
278
|
+
color: var(--studio-accent);
|
|
279
|
+
background: var(--studio-accent-soft);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/* ─── Buttons ───────────────────────────────────────────────────────── */
|
|
283
|
+
|
|
284
|
+
.studio-btn-primary {
|
|
285
|
+
padding: 10px 18px;
|
|
286
|
+
font-size: 12px;
|
|
287
|
+
font-weight: 600;
|
|
288
|
+
text-transform: uppercase;
|
|
289
|
+
letter-spacing: 0.1em;
|
|
290
|
+
background: var(--studio-accent);
|
|
291
|
+
color: var(--studio-on-accent);
|
|
292
|
+
border: none;
|
|
293
|
+
border-radius: var(--radius-theme-xs);
|
|
294
|
+
cursor: pointer;
|
|
295
|
+
transition: all 0.2s;
|
|
296
|
+
font-family: var(--studio-font);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.studio-btn-primary:hover:not(:disabled) {
|
|
300
|
+
filter: brightness(1.05);
|
|
301
|
+
box-shadow: 0 8px 24px var(--studio-accent-soft);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.studio-btn-primary:disabled {
|
|
305
|
+
opacity: 0.4;
|
|
306
|
+
cursor: not-allowed;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.studio-btn-ghost {
|
|
310
|
+
padding: 8px 16px;
|
|
311
|
+
font-size: 12px;
|
|
312
|
+
border: 1px solid var(--studio-border);
|
|
313
|
+
color: var(--studio-text-muted);
|
|
314
|
+
background: transparent;
|
|
315
|
+
cursor: pointer;
|
|
316
|
+
border-radius: var(--radius-theme-xs);
|
|
317
|
+
font-family: var(--studio-font);
|
|
318
|
+
transition: color 0.15s, border-color 0.15s;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.studio-btn-ghost:hover {
|
|
322
|
+
color: var(--studio-text);
|
|
323
|
+
border-color: var(--studio-border-hover);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.studio-btn-danger {
|
|
327
|
+
padding: 8px 16px;
|
|
328
|
+
font-size: 12px;
|
|
329
|
+
border: 1px solid var(--studio-red);
|
|
330
|
+
color: var(--studio-red);
|
|
331
|
+
background: transparent;
|
|
332
|
+
cursor: pointer;
|
|
333
|
+
border-radius: var(--radius-theme-xs);
|
|
334
|
+
font-family: var(--studio-font);
|
|
335
|
+
transition: background 0.15s, color 0.15s;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.studio-btn-danger:hover {
|
|
339
|
+
background: var(--studio-red);
|
|
340
|
+
color: white;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/* ─── Cards ─────────────────────────────────────────────────────────── */
|
|
344
|
+
|
|
345
|
+
.studio-card {
|
|
346
|
+
background: var(--studio-surface);
|
|
347
|
+
border: 1px solid var(--studio-border);
|
|
348
|
+
border-radius: var(--radius-theme-xs);
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.studio-card-interactive {
|
|
352
|
+
display: block;
|
|
353
|
+
padding: var(--space-theme-lg);
|
|
354
|
+
background: var(--studio-surface);
|
|
355
|
+
border: 1px solid var(--studio-border);
|
|
356
|
+
border-radius: var(--radius-theme-xs);
|
|
357
|
+
transition: transform 0.2s, border-color 0.2s, background 0.2s;
|
|
358
|
+
cursor: pointer;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.studio-card-interactive:hover {
|
|
362
|
+
transform: translateY(-2px);
|
|
363
|
+
border-color: var(--studio-accent-strong, rgba(59, 130, 246, 0.3));
|
|
364
|
+
background: var(--studio-surface-hover);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/* ─── Labels ────────────────────────────────────────────────────────── */
|
|
368
|
+
|
|
369
|
+
.studio-label {
|
|
370
|
+
display: block;
|
|
371
|
+
font-size: 10px;
|
|
372
|
+
font-weight: 500;
|
|
373
|
+
text-transform: uppercase;
|
|
374
|
+
letter-spacing: 0.1em;
|
|
375
|
+
color: var(--studio-text-muted);
|
|
376
|
+
margin-bottom: var(--space-theme-xs);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/* ─── Save button states ────────────────────────────────────────────── */
|
|
380
|
+
|
|
381
|
+
.studio-save-dirty {
|
|
382
|
+
background: var(--studio-accent);
|
|
383
|
+
color: var(--studio-on-accent);
|
|
384
|
+
cursor: pointer;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.studio-save-clean {
|
|
388
|
+
background: var(--color-theme-surface-muted);
|
|
389
|
+
color: var(--studio-text-dim);
|
|
390
|
+
cursor: default;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.studio-save-saving {
|
|
394
|
+
background: var(--color-theme-surface-muted);
|
|
395
|
+
color: var(--studio-text-dim);
|
|
396
|
+
cursor: default;
|
|
397
|
+
opacity: 0.7;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/* ─── Field error ───────────────────────────────────────────────────── */
|
|
401
|
+
|
|
402
|
+
.studio-field-error {
|
|
403
|
+
border-color: var(--studio-red) !important;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.studio-error-text {
|
|
407
|
+
color: var(--studio-red);
|
|
408
|
+
font-size: 12px;
|
|
409
|
+
margin-top: var(--space-theme-xs);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/* ─── Corner accent decorations (login card) ────────────────────────── */
|
|
413
|
+
|
|
414
|
+
.studio-corner-accent {
|
|
415
|
+
background: var(--studio-accent);
|
|
416
|
+
opacity: 0.4;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* ─── Toast ─────────────────────────────────────────────────────────── */
|
|
420
|
+
|
|
421
|
+
.studio-toast {
|
|
422
|
+
position: fixed;
|
|
423
|
+
bottom: var(--space-theme-lg);
|
|
424
|
+
right: var(--space-theme-lg);
|
|
425
|
+
background: var(--studio-surface-hover);
|
|
426
|
+
border: 1px solid var(--studio-border-hover);
|
|
427
|
+
border-radius: var(--radius-theme-sm);
|
|
428
|
+
padding: var(--space-theme-md) var(--space-theme-lg);
|
|
429
|
+
color: var(--studio-text);
|
|
430
|
+
font-size: 13px;
|
|
431
|
+
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
|
|
432
|
+
z-index: 9999;
|
|
433
|
+
animation: studio-fade-in 0.2s ease forwards;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
.studio-toast.error { border-left: 3px solid var(--studio-red); }
|
|
437
|
+
.studio-toast.success { border-left: 3px solid var(--studio-green); }
|