Open History to see the last commit
1#root {
2 --color-text: #08060d;
3 --color-muted: #6d6578;
4 --color-border: #d9d3e3;
5 --color-surface: #ffffff;
6 --color-page: #f7f6f1;
7 --color-accent: #116466;
8β
9 background: var(--color-page);
10 color: var(--color-text);
11 max-width: 100%;
12 min-height: 100svh;
13 margin: 0;
14 box-sizing: border-box;
15 font-family: system-ui, 'Segoe UI', Roboto, sans-serif;
16}
17β
18#root .app-shell {
19 width: min(100% - 2rem, 48rem);
20 margin: 0 auto;
21 padding: 3rem 0;
22}
23β
24#root header {
25 margin-bottom: 1.5rem;
26}
27β
28#root h1 {
29 margin: 0;
30 font-size: 2.5rem;
31 line-height: 1;
32}
33β
34#root h2 {
35 margin: 0;
36 font-size: 1.35rem;
37}
38β
39#root h3 {
40 margin: 0;
41 font-size: 1.1rem;
42}
43β
44#root button {
45 font-size: 16px;
46 padding: 0.6rem 0.9rem;
47 border-radius: 0.4rem;
48 color: var(--color-text);
49 background: var(--color-surface);
50 border: 1px solid var(--color-border);
51 transition:
52 border-color 0.2s,
53 box-shadow 0.2s,
54 transform 0.2s;
55 font-family: ui-monospace, Consolas, monospace;
56 display: inline-flex;
57 align-items: center;
58 justify-content: center;
59 cursor: pointer;
60}
61β
62#root button:hover {
63 border-color: rgba(17, 100, 102, 0.55);
64 box-shadow: 0 0 0 3px rgba(17, 100, 102, 0.1);
65}
66β
67#root .array-form {
68 display: grid;
69 gap: 1rem;
70}
71β
72#root .examples-stack {
73 display: grid;
74 gap: 2.5rem;
75}
76β
77#root .example-section {
78 display: grid;
79 gap: 1rem;
80}
81β
82#root .example-header {
83 margin-bottom: 0;
84}
85β
86#root .toolbar {
87 display: flex;
88 flex-wrap: wrap;
89 gap: 0.75rem;
90}
91β
92#root .toolbar button[type='submit'] {
93 color: white;
94 background: var(--color-accent);
95 border-color: var(--color-accent);
96}
97β
98#root .lists-grid {
99 display: grid;
100 grid-template-columns: repeat(2, minmax(0, 1fr));
101 gap: 1rem;
102 align-items: start;
103}
104β
105#root .lists-grid .list-section {
106 align-self: stretch;
107 padding: 0.85rem;
108 background: #efede7;
109 border: 1px solid #d4cedc;
110 border-radius: 0.5rem;
111}
112β
113#root .lists-grid .sortable-list {
114 min-height: 60rem;
115 align-content: start;
116}
117β
118#root .list-section {
119 display: grid;
120 gap: 0.75rem;
121 min-width: 0;
122}
123β
124#root ul {
125 list-style: none;
126 margin: 0;
127 padding: 0;
128}
129β
130#root .sortable-list {
131 display: grid;
132 gap: 0.75rem;
133}
134β
135#root .sortable-item {
136 display: grid;
137 grid-template-columns: 5.5rem minmax(0, 1fr);
138 align-items: end;
139 gap: 0.75rem;
140 min-width: 0;
141 padding: 1rem;
142 background: var(--color-surface);
143 border: 1px solid var(--color-border);
144 border-radius: 0.5rem;
145 box-shadow: 0 0.5rem 1.5rem rgba(8, 6, 13, 0.06);
146}
147β
148#root .sortable-item[data-dragging='true'] {
149 opacity: 0.45;
150}
151β
152#root .sortable-item[data-drop-target='true'] {
153 border-color: var(--color-accent);
154 box-shadow: 0 0 0 3px rgba(17, 100, 102, 0.13);
155}
156β
157#root .list-drop-target {
158 min-height: 0.75rem;
159 border: 1px dashed transparent;
160 border-radius: 0.5rem;
161}
162β
163#root .list-drop-target[data-empty='true'] {
164 min-height: 4rem;
165}
166β
167#root .list-drop-target[data-drop-target='true'] {
168 border-color: rgba(17, 100, 102, 0.55);
169 background: rgba(17, 100, 102, 0.08);
170}
171β
172#root .drag-handle {
173 width: 100%;
174 height: 2.75rem;
175 color: var(--color-accent);
176 touch-action: none;
177 user-select: none;
178}
179β
180#root .item-field {
181 display: flex;
182 flex-direction: column;
183 gap: 0.35rem;
184 min-width: 0;
185 font-size: 0.95rem;
186 font-weight: 500;
187 color: var(--color-text);
188}
189β
190#root .item-field span {
191 color: var(--color-muted);
192}
193β
194#root input {
195 width: 100%;
196 box-sizing: border-box;
197 min-width: 0;
198 padding: 0.7rem 0.8rem;
199 border: 1px solid var(--color-border);
200 border-radius: 0.4rem;
201 font-size: 1rem;
202 color: var(--color-text);
203 background: white;
204}
205β
206#root input:focus {
207 outline: none;
208 border-color: var(--color-accent);
209 box-shadow: 0 0 0 3px rgba(17, 100, 102, 0.12);
210}
211β
212@media (max-width: 520px) {
213 #root .app-shell {
214 width: min(100% - 1rem, 48rem);
215 padding: 1.5rem 0;
216 }
217β
218 #root .sortable-item {
219 grid-template-columns: 1fr;
220 }
221β
222 #root .lists-grid {
223 grid-template-columns: 1fr;
224 }
225β
226 #root .lists-grid .sortable-list {
227 min-height: 14rem;
228 }
229β
230 #root .drag-handle {
231 height: 2.5rem;
232 }
233β
234 #root h1 {
235 font-size: 2rem;
236 }
237}