Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
219 lines (212 loc) · 10 KB
/
Copy pathstyles.css
File metadata and controls
219 lines (212 loc) · 10 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
@import "tailwindcss";
@theme {
--color-ink: #181816;
--color-muted: #6f6e68;
--color-line: #d9d7cf;
--color-paper: #f8f7f2;
--color-panel: #efeee8;
--color-focus: #695f48;
--color-control: #fbfaf6;
--color-active: #2f2d28;
--font-sans: "Hiragino Sans", "Yu Gothic", sans-serif;
--font-mincho: "Hiragino Mincho ProN", "Yu Mincho", serif;
}
@layer base {
:root { color-scheme: light; }
[hidden] { display: none !important; }
body { @apply m-0 bg-paper font-sans text-ink; }
button, input, select { font: inherit; }
button, .button { @apply min-h-[38px]; }
button { @apply cursor-pointer; }
button:disabled { @apply cursor-not-allowed opacity-40; }
label { @apply grid gap-1.5 text-[.76rem] leading-[1.35] text-[#5c5a54]; }
input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), select {
@apply h-[38px] w-full rounded-sm border border-[#aaa79d] bg-control px-2 py-1.5 text-ink;
}
input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):hover, select:hover {
@apply border-[#77746b];
}
input:focus-visible, select:focus-visible, button:focus-visible, summary:focus-visible, .file-drop:focus-within {
@apply outline-3 outline-offset-2 outline-focus;
}
}
.eyebrow { @apply m-0 text-[.72rem] tracking-[.13em] text-muted; }
.workspace { @apply grid min-h-dvh grid-cols-[minmax(310px,390px)_1fr] max-[850px]:grid-cols-1; }
.controls {
@apply sticky top-0 h-dvh self-start overflow-auto border-r border-line bg-white px-2.5 pt-1.5 pb-5;
scrollbar-gutter: stable;
overscroll-behavior: contain;
}
.sidebar-brand {
@apply mb-1 border-b border-line px-0.5 pt-1.5 pb-3;
}
.sidebar-brand h1 {
@apply m-0 font-mincho text-[1.15rem] leading-[1.25] font-medium;
}
.brand-title { @apply flex items-center justify-start gap-2; }
.brand-title img { @apply size-6 shrink-0 object-contain; }
.sidebar-brand p {
@apply mt-1.5 mb-0 text-[.69rem] leading-[1.45] text-muted;
}
.sidebar-footer { @apply mt-2.5 border-t border-line pt-2.5; }
.social-links { @apply flex gap-1; }
.social-links a {
@apply grid size-[30px] place-items-center rounded-full text-muted hover:bg-[#ece9df] hover:text-ink;
}
.social-links svg { width: 16px; height: 16px; @apply shrink-0 fill-current; }
.social-links a:focus-visible { @apply outline-3 outline-offset-2 outline-focus; }
.copyright { @apply mt-2 mb-0 text-[.62rem] leading-[1.5] text-muted; }
.controls section, .controls > details { @apply p-0; }
.controls h2 { @apply mt-0 mb-3.5 text-[.78rem] font-semibold tracking-[.12em]; }
.field-grid { @apply grid grid-cols-2 gap-2 max-[420px]:grid-cols-1; }
.field-grid .wide { @apply col-span-full; }
.field-pair { @apply grid min-w-0 grid-cols-2 gap-2 max-[420px]:grid-cols-1; }
.custom-labels-heading { @apply mt-3 flex items-center justify-end gap-2; }
#photo-drop-zone { @apply min-h-9 shrink-0 px-3 py-2 text-[.68rem]; }
.add-label-button {
@apply mt-2 grid min-h-10 w-full cursor-pointer place-items-center rounded-none border border-ink bg-ink px-2.5 py-2 text-[.76rem] text-white;
}
.custom-label-row { @apply mt-2 border-t border-line py-2; }
.custom-label-row.dragging { @apply bg-[#f7f6f1] opacity-70; }
.custom-label-summary { @apply flex cursor-pointer list-none items-center gap-2 text-[.76rem] font-semibold; }
.custom-label-summary::-webkit-details-marker { display: none; }
.custom-label-summary::after {
@apply ml-auto size-1.5 shrink-0 border-r-[1.5px] border-b-[1.5px] border-current content-[''];
transform: rotate(45deg) translateY(-1px);
transition: transform .16s ease;
}
.custom-label-row[open] > .custom-label-summary::after { transform: rotate(225deg) translate(-1px, -1px); }
.custom-label-title { @apply min-w-0 truncate; }
.custom-label-handle { @apply cursor-grab touch-none select-none text-muted; }
.custom-label-row.dragging .custom-label-handle { @apply cursor-grabbing; }
.custom-label-body { @apply mt-2 grid gap-2; }
.custom-label-row .remove-label { @apply min-h-0 justify-self-end border-0 border-b border-current bg-transparent px-0 py-1 text-[.72rem] text-[#7b2820]; }
.file-drop {
@apply min-h-[68px] cursor-pointer place-content-center rounded-sm border border-dashed border-[#8c897f] bg-control p-2.5 text-center text-ink;
}
.file-drop:hover { @apply border-solid bg-[#f5f3ec]; }
.file-drop.is-dragover {
@apply border-2 border-solid bg-[#ece9df] shadow-[inset_0_0_0_2px_#fff];
}
.file-drop.is-dragover span:first-child { @apply font-bold; }
.file-drop small { @apply text-muted; overflow-wrap: anywhere; }
.file-drop input, .upload-button input { @apply absolute size-px opacity-0; }
.text-button { @apply min-h-0 border-0 border-b border-current bg-transparent px-0 py-1.5 text-ink; }
#load-sample { @apply ms-auto block w-fit py-1 text-[.68rem] text-muted; }
.mode-picker { @apply mb-2.5 flex gap-3.5 border-0 p-0; }
.mode-picker legend { @apply mb-1.5 text-[.76rem] text-muted; }
.clip-controls { @apply mt-2.5 grid gap-2 border-0 border-t border-line px-0 pt-2.5; }
.clip-controls legend { @apply pt-2.5 text-[.76rem] font-semibold text-ink; }
.mode-picker label, .check { @apply flex items-center gap-[7px]; }
.mode-picker input, .check input { @apply accent-active; }
.size-summary { @apply mt-2.5 block text-[.73rem] leading-normal text-muted; }
.settings-group {
@apply my-1 overflow-clip rounded-md border border-line bg-white;
}
.settings-group[open] {
@apply border-[#b8b5ab] shadow-[0_2px_8px_rgb(36_34_28_/_0.05)];
}
.settings-group > summary {
@apply grid min-h-[46px] cursor-pointer list-none grid-cols-[26px_1fr_auto] items-center gap-2 px-2.5 text-[.8rem] font-semibold tracking-[.08em];
}
.settings-group > summary:hover { @apply bg-[#f7f6f1]; }
.settings-group[open] > summary { @apply border-b border-line bg-[#f7f6f1]; }
.settings-group > summary::-webkit-details-marker { display: none; }
.settings-group > summary::after {
@apply size-2 border-r-[1.5px] border-b-[1.5px] border-current content-[''];
transform: rotate(45deg) translateY(-2px);
transition: transform .16s ease;
}
.settings-group[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.step-number {
@apply grid size-6 place-items-center rounded-full bg-ink text-[.62rem] tracking-[.04em] text-white;
}
.settings-body { @apply px-2.5 pt-3 pb-3.5; }
.settings-subgroup {
@apply m-0 min-w-0 border-0 p-0;
}
* + .settings-subgroup {
@apply mt-3.5 border-t border-line pt-3;
}
.settings-subgroup > legend {
@apply mb-2 p-0 text-[.73rem] font-semibold tracking-[.08em] text-ink;
}
.margin-control {
@apply relative m-0 min-w-0 rounded-sm border border-[#d2cfc5] bg-[#f7f6f1] px-2 pt-2.5 pb-2;
}
.margin-control legend {
@apply px-[5px] text-[.73rem] font-semibold tracking-[.05em] text-ink;
}
.margin-control legend span { @apply font-normal tracking-normal text-muted; }
.margin-values-row { @apply grid grid-cols-[minmax(0,1fr)_auto] items-center gap-2.5; }
.line-settings-grid { @apply mt-2.5; }
.margin-link-button {
@apply grid size-[30px] min-h-0 place-items-center rounded-sm border border-[#aaa79d] bg-white p-0 text-muted;
}
.margin-link-button svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.margin-link-button[aria-pressed="true"] {
@apply border-ink bg-white text-ink;
}
.margin-link-button[aria-pressed="true"] .link-slash { display: none; }
.margin-link-button:hover { @apply bg-[#ece9df]; }
.check + .check { @apply mt-2.5; }
.settings-body > .check:not(:last-child), .settings-subgroup > .check:not(:last-child) { @apply mb-2.5; }
.field-grid + .check { @apply mt-2.5; }
.actions {
@apply mt-2 rounded-md border border-line bg-[#f7f6f1] p-3!;
}
.button-row { @apply mt-2 grid grid-cols-2 gap-2; }
.button-row button, .upload-button {
@apply grid min-h-10 place-items-center rounded-none border border-ink bg-ink px-2.5 py-2 text-[.76rem] text-white;
}
.button-row .secondary { @apply bg-white text-ink; }
.upload-button { @apply cursor-pointer; }
.status { @apply my-2 border-l-2 border-ink pl-3 text-[.75rem] leading-[1.6] text-muted; }
.status.error { @apply border-[#8a1f16] text-[#8a1f16]; }
.map-credits { @apply text-[.68rem] leading-[1.6] text-muted; }
.map-credits a { @apply text-inherit underline-offset-2; }
.preview-region {
@apply sticky top-0 grid h-dvh min-w-0 grid-rows-[auto_minmax(0,1fr)_auto] self-start overflow-hidden bg-panel px-[clamp(18px,4vw,64px)] pt-7 pb-[50px];
}
.preview-toolbar { @apply mb-[18px] flex items-end justify-between; }
.preview-toolbar h2 { @apply mt-0.5 mb-0 font-mincho text-[1.2rem] leading-[1.3] font-medium; }
.preview-footer-actions { @apply mt-3 flex flex-wrap items-center justify-start gap-5; }
.preview-scale-control { @apply flex items-center gap-2; }
.preview-scale-control > span { @apply flex items-center gap-1 text-[.76rem] text-muted; }
#preview-scale { inline-size: 4rem !important; @apply h-8! px-2! py-1! text-right tabular-nums; }
.preview-shell {
@apply relative grid min-h-0 place-items-center overflow-auto bg-[#dddcd6] p-[clamp(12px,3vw,38px)];
place-items: safe center;
}
.preview-loading {
@apply pointer-events-none flex shrink-0 items-center gap-2 border border-[#b9b6ac] bg-white/95 px-3 py-2 text-[.72rem] font-semibold text-ink shadow-sm;
}
.loading-spinner {
display: block;
flex: 0 0 20px;
width: 20px;
height: 20px;
border: 3px solid #c9c6bc;
border-top-color: #181816;
border-radius: 50%;
animation: loading-spin .8s linear infinite;
}
@keyframes loading-spin {
to { transform: rotate(360deg); }
}
#preview { width: var(--preview-scale, 100%); @apply max-w-none leading-none shadow-[0_2px_14px_rgb(0_0_0_/_0.1)]; }
#preview svg { @apply block h-auto w-full bg-white; }
.empty-preview { @apply text-center font-mincho text-[.9rem] leading-[1.6] text-[#77756e]; }
.empty-preview span { @apply block font-serif text-5xl; }
@media (max-width: 850px) {
.controls {
@apply static h-auto overflow-visible border-r-0 border-b border-line;
}
.preview-region { @apply static block h-auto min-h-[70vh] overflow-visible; }
.preview-shell { @apply h-[65dvh] min-h-0; }
}
@media (prefers-reduced-motion: no-preference) {
button, input, select, .file-drop, .settings-group > summary {
@apply transition-colors duration-200;
}
}