-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
360 lines (312 loc) · 7.49 KB
/
style.css
File metadata and controls
360 lines (312 loc) · 7.49 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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
body {
font-family: 'Poppins', sans-serif;
line-height: 1.6;
margin: 0;
padding: 10px 20px;
background-color: #f4f4f4;
}
h1, h2, h3, h4 {
font-weight: 700;
}
h1 {
text-align: center;
color: #333;
margin-bottom: 20px;
}
/* Container for panels */
.container {
display: flex;
flex-wrap: wrap; /* Allow panels to wrap on smaller screens */
gap: 20px;
padding: 0 20px; /* Add side padding */
}
/* Panel styling */
.panel {
background-color: #fff;
padding: 15px 20px;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
flex-grow: 1; /* Allow panels to grow */
box-sizing: border-box; /* Include padding in width calculation */
}
/* Specific panel adjustments if needed */
.input-preview-panel {
min-width: 400px;
}
.export-panel {
min-width: 300px;
}
section {
margin-bottom: 15px;
}
h2 {
margin-top: 0;
color: #333;
}
h3 {
color: #555;
border-bottom: 1px solid #eee;
padding-bottom: 5px;
margin-top: 20px;
margin-bottom: 15px;
}
h4 {
color: #666;
margin-top: 15px;
margin-bottom: 5px;
}
label {
display: inline-block;
margin-bottom: 5px;
font-weight: 700;
}
input[type="file"],
input[type="text"],
input[type="number"],
input[type="range"],
select,
textarea {
padding: 8px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
font-size: 1em;
}
input[type="range"] {
width: 150px;
}
input[type="file"] {
border: none;
}
input[type="text"] {
width: 200px;
}
button {
background-color: #5cb85c;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 1em;
margin-right: 5px;
}
button:hover {
background-color: #4cae4c;
}
/* Style for Copy Code buttons */
.copy-button {
background-color: #8442f5;
}
.copy-button:hover {
background-color: #6a30d9; /* Darker shade for hover */
}
button:disabled {
background-color: #ccc;
cursor: not-allowed;
}
/* --- Drop Zone Styles --- */
#dropZone {
/* Apply drop zone styles directly to the canvas container */
border: 2px dashed #ccc;
padding: 10px;
text-align: center;
cursor: pointer;
background-color: #fafafa;
transition: background-color 0.2s ease;
position: relative;
min-height: 150px;
display: flex;
flex-direction: column; /* Still stack placeholder and canvas */
align-items: center;
justify-content: center;
}
/* Hide canvas initially */
#originalCanvas {
background-color: #eee;
border: 1px solid black;
/* margin-top: 10px; Removed */
display: none; /* Keep hidden initially */
max-width: 100%;
height: auto;
margin: 10px auto 0 auto; /* Center horizontally, add top margin */
}
/* Placeholder text style */
.drop-zone-placeholder {
color: #666;
margin: 10px 0;
}
/* Usage instructions style */
.drop-zone-instructions {
font-size: 0.8em;
color: #777;
text-align: center;
margin-top: 5px; /* Reset top margin, add positive space */
margin-bottom: 0; /* Remove bottom margin as padding handles it */
width: 100%; /* Ensure it takes full width for centering */
}
/* Keep dragover effect */
#dropZone.dragover {
background-color: #e0e0e0;
border-color: #aaa;
}
/* --- End Drop Zone --- */
/* --- Canvas Comparison Layout --- */
.canvas-comparison {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 20px; /* Space below the comparison area */
}
.canvas-container {
flex: 1;
min-width: 200px;
/* border: 1px solid red; */ /* For debugging */
}
/* Style the preview container specifically */
#preview-container {
aspect-ratio: 4 / 3;
/* border: 1px solid #ccc; */ /* Removed */
background-color: #000000; /* Black background like Arcade screen */
min-width: 160px;
max-width: 320px; /* Limit preview size */
padding: 10px;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
overflow: hidden; /* Hide potential canvas overflow if calculations are off */
}
.canvas-container h4 {
text-align: left;
width: 100%;
margin-bottom: 5px;
}
/* Ensure preview canvas scales within its container */
#preview-container canvas#previewCanvas {
/* Scale the canvas element itself visually */
width: 100%;
height: 100%;
object-fit: contain; /* Scale drawing maintaining aspect ratio */
image-rendering: pixelated; /* Ensure crisp pixels when scaled */
display: block; /* Ensure block display for sizing */
}
.canvas-container canvas {
max-width: 100%; /* Make canvas responsive */
height: auto; /* Maintain aspect ratio */
display: block; /* Prevent extra space below canvas */
margin-left: 0; /* Align left within container */
margin-right: auto;
}
/* Style the tab */
.tabs {
overflow: hidden;
border-bottom: 1px solid #ccc;
margin-bottom: 15px;
}
/* Style the buttons inside the tab */
.tablink {
background-color: #c7a4ff; /* Lighter purple for inactive tabs */
color: #333; /* Dark text for lighter background */
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 10px 15px;
transition: 0.3s;
font-size: 1em;
border-radius: 4px 4px 0 0;
font-family: 'Poppins', sans-serif; /* Ensure font consistency */
font-weight: 400; /* Regular weight for inactive */
}
/* Change background color of buttons on hover */
.tablink:hover {
background-color: #b388ff; /* Slightly darker purple on hover */
}
/* Create an active/current tablink class */
.tablink.active {
background-color: #8442f5; /* Main purple for active tab */
color: #ffffff; /* White text for contrast */
}
/* Style the tab content */
.tabcontent {
display: none;
padding: 6px 12px;
border: 1px solid #ccc;
border-top: none;
border-radius: 0 0 4px 4px;
}
textarea {
width: 95%;
font-family: monospace;
margin-top: 5px;
border-radius: 4px;
border: 1px solid #ccc;
padding: 5px;
}
/* Specific adjustments */
#resizeValueInputs input {
margin-bottom: 0; /* Align inputs better */
}
#resizeValueInputs label {
margin-left: 5px;
margin-right: 5px;
}
/* --- End Canvas Comparison --- */
/* Center zoom controls contents */
.zoom-controls {
display: flex;
justify-content: flex-start;
align-items: center; /* Align items vertically */
gap: 8px; /* Add some space between label, slider, value */
margin-top: 10px;
}
/* --- Header Info Styles --- */
.header-info {
text-align: center;
margin: 0 20px 20px 20px;
padding: 15px;
background-color: #8442f5;
border-radius: 8px;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 20px;
}
.header-info h1 {
margin: 0;
color: #ffffff;
text-align: left;
font-weight: 700;
}
.header-info img {
max-width: 250px;
height: auto;
object-fit: contain;
border-radius: 4px;
flex-shrink: 0;
}
/* New style for the text container */
.header-text-content {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 5px;
flex: 1;
min-width: 250px;
}
.header-info p {
margin: 0;
text-align: left;
color: #ffffff;
}
.header-info a {
color: #ffffff; /* White link text for contrast */
text-decoration: underline; /* Keep underline for links */
}
.header-info a:hover {
text-decoration: none; /* Remove underline on hover */
}
/* --- End Header Info --- */