Update style.css
Browse files
style.css
CHANGED
@@ -7,8 +7,12 @@ body {
|
|
7 |
color: #333;
|
8 |
}
|
9 |
|
|
|
|
|
|
|
|
|
10 |
.container {
|
11 |
-
max-width: 1200px;
|
12 |
margin: 20px auto;
|
13 |
padding: 20px;
|
14 |
background-color: white;
|
@@ -39,7 +43,7 @@ p {
|
|
39 |
.upload-box {
|
40 |
flex: 1;
|
41 |
min-width: 300px;
|
42 |
-
border: 2px dashed
|
43 |
border-radius: 5px;
|
44 |
padding: 20px;
|
45 |
text-align: center;
|
@@ -54,7 +58,7 @@ p {
|
|
54 |
display: block;
|
55 |
font-weight: bold;
|
56 |
margin-bottom: 10px;
|
57 |
-
color:
|
58 |
}
|
59 |
|
60 |
.file-input {
|
@@ -63,7 +67,7 @@ p {
|
|
63 |
|
64 |
.upload-button {
|
65 |
display: inline-block;
|
66 |
-
background-color:
|
67 |
color: white;
|
68 |
padding: 10px 20px;
|
69 |
border-radius: 5px;
|
@@ -72,61 +76,56 @@ p {
|
|
72 |
}
|
73 |
|
74 |
.upload-button:hover {
|
75 |
-
background-color: #
|
76 |
}
|
77 |
|
78 |
/* ์์
์์ญ ๋ํผ */
|
79 |
.workspace-wrapper {
|
80 |
-
display: flex;
|
81 |
-
flex-wrap: wrap;
|
82 |
gap: 20px;
|
83 |
margin-bottom: 20px;
|
84 |
}
|
85 |
|
86 |
/* ์บ๋ฒ์ค์ ์ปจํธ๋กค ํจ๋๋ค์ ๋ฌถ๋ ์์ญ */
|
87 |
.canvas-and-controls {
|
88 |
-
flex: 3;
|
89 |
display: flex;
|
90 |
-
flex-direction: column;
|
91 |
-
min-width: 0;
|
92 |
}
|
93 |
|
94 |
.canvas-container {
|
95 |
position: relative;
|
96 |
-
width: 100%;
|
97 |
-
/* max-width: 800px; /* ์บ๋ฒ์ค ์ต๋ ๋๋น๋ JS์์ ์ค์ ๋ CANVAS_WIDTH์ ๋ฐ๋ฆ */
|
98 |
border: 2px solid #333;
|
99 |
border-radius: 4px;
|
100 |
-
overflow: hidden;
|
101 |
-
margin-bottom: 20px;
|
102 |
}
|
103 |
|
104 |
#canvas {
|
105 |
-
display: block;
|
106 |
-
width: 100%;
|
107 |
-
height: auto;
|
108 |
background-color: #ffffff;
|
109 |
cursor: default;
|
110 |
}
|
111 |
|
112 |
-
/* ์ปจํธ๋กค ํจ๋๋ค์ ๋ชจ์๋๋ ์ฌ์ด๋๋ฐ ์ญํ
|
113 |
.control-panel-sidebar {
|
114 |
display: flex;
|
115 |
flex-direction: column;
|
116 |
gap: 15px;
|
117 |
-
/* flex: 1; /* canvas-and-controls ๋ด์์ ๋น์จ (ํ์์) */
|
118 |
}
|
119 |
|
120 |
-
|
121 |
.control-group {
|
122 |
display: flex;
|
123 |
flex-direction: column;
|
124 |
-
/* align-items: center; ํญ๋ชฉ๋ค์ด ์ค์ ์ ๋ ฌ๋์ง ์๋๋ก ์ ๊ฑฐ ๋๋ ์์ */
|
125 |
border: 1px solid #ddd;
|
126 |
padding: 15px;
|
127 |
border-radius: 5px;
|
128 |
background-color: #f9f9f9;
|
129 |
-
/* min-width: 250px; /* ์ต์ ๋๋น๋ ์ํฉ์ ๋ฐ๋ผ ์กฐ์ */
|
130 |
}
|
131 |
|
132 |
.control-group h3 {
|
@@ -134,6 +133,7 @@ p {
|
|
134 |
font-size: 1rem;
|
135 |
text-align: center;
|
136 |
width: 100%;
|
|
|
137 |
}
|
138 |
|
139 |
.slider-container {
|
@@ -148,21 +148,23 @@ p {
|
|
148 |
|
149 |
.slider-container label {
|
150 |
font-weight: bold;
|
151 |
-
min-width: 50px;
|
152 |
text-align: left;
|
153 |
flex-shrink: 0;
|
154 |
}
|
155 |
|
156 |
.slider-container input[type="range"] {
|
157 |
-
flex-grow: 1;
|
158 |
-
width: auto;
|
159 |
-
margin: 0 5px;
|
|
|
160 |
}
|
161 |
|
162 |
.slider-container .value-display {
|
163 |
-
min-width: 40px;
|
164 |
-
text-align: right;
|
165 |
flex-shrink: 0;
|
|
|
166 |
}
|
167 |
|
168 |
/* ๋ ์ด์ด ๋ชฉ๋ก ์คํ์ผ */
|
@@ -184,48 +186,65 @@ p {
|
|
184 |
}
|
185 |
.layer-item:last-child { border-bottom: none; }
|
186 |
.layer-item:hover { background-color: #f5f5f5; }
|
187 |
-
.layer-item.active { background-color: #
|
188 |
.layer-name { flex-grow: 1; padding-left: 5px; }
|
189 |
.layer-controls { display: flex; gap: 5px; }
|
190 |
.layer-button {
|
191 |
-
background-color: #f0f0f0;
|
192 |
-
|
|
|
|
|
|
|
|
|
|
|
193 |
transition: all 0.2s ease;
|
194 |
}
|
195 |
-
.layer-button:hover {
|
196 |
-
|
|
|
|
|
197 |
|
198 |
/* ํํฐ ํจ๋ ์คํ์ผ */
|
199 |
.filter-panel {
|
200 |
-
/* width: 100%; /* ๋ถ๋ชจ(.control-panel-sidebar)์ ์ํด ๋๋น ๊ฒฐ์ */
|
201 |
padding: 15px;
|
202 |
border: 1px solid #ddd;
|
203 |
border-radius: 5px;
|
204 |
background-color: #f9f9f9;
|
205 |
}
|
206 |
-
.filter-panel h3 {
|
|
|
|
|
|
|
|
|
207 |
.filter-sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }
|
208 |
.filter-slider-container { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 0 5px; box-sizing: border-box; }
|
209 |
.filter-slider-container label { font-size: 14px; margin-bottom: 5px; text-align: left; }
|
210 |
-
.large-slider {
|
211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
.filter-buttons { display: flex; justify-content: center; margin-top: 15px; }
|
213 |
#reset-filter-btn { width: auto; padding: 8px 15px; flex-grow: 1; max-width: 200px; }
|
214 |
|
215 |
-
|
216 |
/* ๋ฏธ๋ฆฌ๋ณด๊ธฐ ์น์
*/
|
217 |
.preview-section {
|
218 |
-
flex: 2;
|
219 |
-
display: flex;
|
220 |
flex-direction: column;
|
221 |
-
align-items: center;
|
222 |
-
min-width: 0;
|
223 |
}
|
224 |
|
225 |
.preview-container {
|
226 |
-
width: 100%;
|
227 |
-
margin-top: 0;
|
228 |
-
display: none;
|
229 |
flex-direction: column;
|
230 |
align-items: center;
|
231 |
padding: 10px;
|
@@ -236,14 +255,15 @@ p {
|
|
236 |
|
237 |
.preview-container h3 {
|
238 |
margin-bottom: 10px;
|
|
|
239 |
}
|
240 |
|
241 |
#preview-img {
|
242 |
max-width: 100%;
|
243 |
-
max-height: 400px;
|
244 |
border: 2px solid #333;
|
245 |
border-radius: 4px;
|
246 |
-
object-fit: contain;
|
247 |
}
|
248 |
|
249 |
/* ํ๋จ ๋ฒํผ ์ปจํ
์ด๋ */
|
@@ -251,7 +271,7 @@ p {
|
|
251 |
display: flex;
|
252 |
justify-content: center;
|
253 |
gap: 15px;
|
254 |
-
margin-top: 20px;
|
255 |
flex-wrap: wrap;
|
256 |
}
|
257 |
|
@@ -263,30 +283,59 @@ button {
|
|
263 |
font-weight: bold;
|
264 |
transition: background-color 0.3s;
|
265 |
}
|
266 |
-
|
267 |
-
.primary-btn
|
|
|
268 |
.danger-btn { background-color: #e74c3c; color: white; }
|
269 |
.danger-btn:hover { background-color: #c0392b; }
|
270 |
-
.info-btn { background-color:
|
271 |
-
.info-btn:hover { background-color: #
|
272 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
|
274 |
/* ๋ชจ๋ฐ์ผ ๋์ */
|
275 |
-
@media (max-width: 900px) {
|
276 |
.workspace-wrapper {
|
277 |
-
flex-direction: column;
|
278 |
-
align-items: center;
|
279 |
}
|
280 |
.canvas-and-controls, .preview-section {
|
281 |
-
flex-basis: auto;
|
282 |
-
width: 100%;
|
283 |
-
max-width: 600px;
|
284 |
}
|
285 |
.control-panel-sidebar {
|
286 |
-
width: 100%;
|
287 |
}
|
288 |
.filter-sliders {
|
289 |
-
grid-template-columns: 1fr;
|
290 |
}
|
291 |
}
|
292 |
|
|
|
7 |
color: #333;
|
8 |
}
|
9 |
|
10 |
+
:root {
|
11 |
+
--primary-color: #FF7F00; /* ์ฃผํฉ์ ํฌ์ธํธ ์ปฌ๋ฌ */
|
12 |
+
}
|
13 |
+
|
14 |
.container {
|
15 |
+
max-width: 1200px;
|
16 |
margin: 20px auto;
|
17 |
padding: 20px;
|
18 |
background-color: white;
|
|
|
43 |
.upload-box {
|
44 |
flex: 1;
|
45 |
min-width: 300px;
|
46 |
+
border: 2px dashed var(--primary-color); /* ์ฃผํฉ์ ํ
๋๋ฆฌ */
|
47 |
border-radius: 5px;
|
48 |
padding: 20px;
|
49 |
text-align: center;
|
|
|
58 |
display: block;
|
59 |
font-weight: bold;
|
60 |
margin-bottom: 10px;
|
61 |
+
color: var(--primary-color); /* ์ฃผํฉ์ ๋ ์ด๋ธ */
|
62 |
}
|
63 |
|
64 |
.file-input {
|
|
|
67 |
|
68 |
.upload-button {
|
69 |
display: inline-block;
|
70 |
+
background-color: var(--primary-color); /* ์ฃผํฉ์ ๋ฒํผ */
|
71 |
color: white;
|
72 |
padding: 10px 20px;
|
73 |
border-radius: 5px;
|
|
|
76 |
}
|
77 |
|
78 |
.upload-button:hover {
|
79 |
+
background-color: #E67300; /* ์ฃผํฉ์ ๋ฒํผ ํธ๋ฒ */
|
80 |
}
|
81 |
|
82 |
/* ์์
์์ญ ๋ํผ */
|
83 |
.workspace-wrapper {
|
84 |
+
display: flex;
|
85 |
+
flex-wrap: wrap;
|
86 |
gap: 20px;
|
87 |
margin-bottom: 20px;
|
88 |
}
|
89 |
|
90 |
/* ์บ๋ฒ์ค์ ์ปจํธ๋กค ํจ๋๋ค์ ๋ฌถ๋ ์์ญ */
|
91 |
.canvas-and-controls {
|
92 |
+
flex: 3;
|
93 |
display: flex;
|
94 |
+
flex-direction: column;
|
95 |
+
min-width: 0;
|
96 |
}
|
97 |
|
98 |
.canvas-container {
|
99 |
position: relative;
|
100 |
+
width: 100%;
|
|
|
101 |
border: 2px solid #333;
|
102 |
border-radius: 4px;
|
103 |
+
overflow: hidden;
|
104 |
+
margin-bottom: 20px;
|
105 |
}
|
106 |
|
107 |
#canvas {
|
108 |
+
display: block;
|
109 |
+
width: 100%;
|
110 |
+
height: auto;
|
111 |
background-color: #ffffff;
|
112 |
cursor: default;
|
113 |
}
|
114 |
|
115 |
+
/* ์ปจํธ๋กค ํจ๋๋ค์ ๋ชจ์๋๋ ์ฌ์ด๋๋ฐ ์ญํ */
|
116 |
.control-panel-sidebar {
|
117 |
display: flex;
|
118 |
flex-direction: column;
|
119 |
gap: 15px;
|
|
|
120 |
}
|
121 |
|
|
|
122 |
.control-group {
|
123 |
display: flex;
|
124 |
flex-direction: column;
|
|
|
125 |
border: 1px solid #ddd;
|
126 |
padding: 15px;
|
127 |
border-radius: 5px;
|
128 |
background-color: #f9f9f9;
|
|
|
129 |
}
|
130 |
|
131 |
.control-group h3 {
|
|
|
133 |
font-size: 1rem;
|
134 |
text-align: center;
|
135 |
width: 100%;
|
136 |
+
color: var(--primary-color); /* ์ฃผํฉ์ ์ ๋ชฉ */
|
137 |
}
|
138 |
|
139 |
.slider-container {
|
|
|
148 |
|
149 |
.slider-container label {
|
150 |
font-weight: bold;
|
151 |
+
min-width: 50px;
|
152 |
text-align: left;
|
153 |
flex-shrink: 0;
|
154 |
}
|
155 |
|
156 |
.slider-container input[type="range"] {
|
157 |
+
flex-grow: 1;
|
158 |
+
width: auto;
|
159 |
+
margin: 0 5px;
|
160 |
+
accent-color: var(--primary-color); /* ์ฃผํฉ์ ์ฌ๋ผ์ด๋ */
|
161 |
}
|
162 |
|
163 |
.slider-container .value-display {
|
164 |
+
min-width: 40px;
|
165 |
+
text-align: right;
|
166 |
flex-shrink: 0;
|
167 |
+
color: var(--primary-color); /* ์ฃผํฉ์ ๊ฐ ํ์ */
|
168 |
}
|
169 |
|
170 |
/* ๋ ์ด์ด ๋ชฉ๋ก ์คํ์ผ */
|
|
|
186 |
}
|
187 |
.layer-item:last-child { border-bottom: none; }
|
188 |
.layer-item:hover { background-color: #f5f5f5; }
|
189 |
+
.layer-item.active { background-color: #FFF0E6; font-weight: bold; color: var(--primary-color); } /* ์ฃผํฉ์ ๊ฐ์กฐ */
|
190 |
.layer-name { flex-grow: 1; padding-left: 5px; }
|
191 |
.layer-controls { display: flex; gap: 5px; }
|
192 |
.layer-button {
|
193 |
+
background-color: #f0f0f0;
|
194 |
+
border: 1px solid #ddd;
|
195 |
+
border-radius: 3px;
|
196 |
+
padding: 2px 5px;
|
197 |
+
cursor: pointer;
|
198 |
+
font-size: 11px;
|
199 |
+
color: #555;
|
200 |
transition: all 0.2s ease;
|
201 |
}
|
202 |
+
.layer-button:hover {
|
203 |
+
background-color: var(--primary-color); /* ์ฃผํฉ์ ๋ฒํผ ํธ๋ฒ */
|
204 |
+
color: white;
|
205 |
+
}
|
206 |
|
207 |
/* ํํฐ ํจ๋ ์คํ์ผ */
|
208 |
.filter-panel {
|
|
|
209 |
padding: 15px;
|
210 |
border: 1px solid #ddd;
|
211 |
border-radius: 5px;
|
212 |
background-color: #f9f9f9;
|
213 |
}
|
214 |
+
.filter-panel h3 {
|
215 |
+
margin: 0 0 15px 0;
|
216 |
+
text-align: center;
|
217 |
+
color: var(--primary-color); /* ์ฃผํฉ์ ์ ๋ชฉ */
|
218 |
+
}
|
219 |
.filter-sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }
|
220 |
.filter-slider-container { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 0 5px; box-sizing: border-box; }
|
221 |
.filter-slider-container label { font-size: 14px; margin-bottom: 5px; text-align: left; }
|
222 |
+
.large-slider {
|
223 |
+
width: 100%;
|
224 |
+
height: 20px;
|
225 |
+
accent-color: var(--primary-color); /* ์ฃผํฉ์ ์ฌ๋ผ์ด๋ */
|
226 |
+
}
|
227 |
+
.filter-slider-container .value-display {
|
228 |
+
text-align: right;
|
229 |
+
font-weight: bold;
|
230 |
+
color: var(--primary-color); /* ์ฃผํฉ์ ๊ฐ ํ์ */
|
231 |
+
}
|
232 |
.filter-buttons { display: flex; justify-content: center; margin-top: 15px; }
|
233 |
#reset-filter-btn { width: auto; padding: 8px 15px; flex-grow: 1; max-width: 200px; }
|
234 |
|
|
|
235 |
/* ๋ฏธ๋ฆฌ๋ณด๊ธฐ ์น์
*/
|
236 |
.preview-section {
|
237 |
+
flex: 2;
|
238 |
+
display: flex;
|
239 |
flex-direction: column;
|
240 |
+
align-items: center;
|
241 |
+
min-width: 0;
|
242 |
}
|
243 |
|
244 |
.preview-container {
|
245 |
+
width: 100%;
|
246 |
+
margin-top: 0;
|
247 |
+
display: none;
|
248 |
flex-direction: column;
|
249 |
align-items: center;
|
250 |
padding: 10px;
|
|
|
255 |
|
256 |
.preview-container h3 {
|
257 |
margin-bottom: 10px;
|
258 |
+
color: var(--primary-color); /* ์ฃผํฉ์ ์ ๋ชฉ */
|
259 |
}
|
260 |
|
261 |
#preview-img {
|
262 |
max-width: 100%;
|
263 |
+
max-height: 400px;
|
264 |
border: 2px solid #333;
|
265 |
border-radius: 4px;
|
266 |
+
object-fit: contain;
|
267 |
}
|
268 |
|
269 |
/* ํ๋จ ๋ฒํผ ์ปจํ
์ด๋ */
|
|
|
271 |
display: flex;
|
272 |
justify-content: center;
|
273 |
gap: 15px;
|
274 |
+
margin-top: 20px;
|
275 |
flex-wrap: wrap;
|
276 |
}
|
277 |
|
|
|
283 |
font-weight: bold;
|
284 |
transition: background-color 0.3s;
|
285 |
}
|
286 |
+
|
287 |
+
.primary-btn { background-color: var(--primary-color); color: white; } /* ์ฃผํฉ์ ๋ฒํผ */
|
288 |
+
.primary-btn:hover { background-color: #E67300; } /* ์ฃผํฉ์ ๋ฒํผ ํธ๋ฒ */
|
289 |
.danger-btn { background-color: #e74c3c; color: white; }
|
290 |
.danger-btn:hover { background-color: #c0392b; }
|
291 |
+
.info-btn { background-color: var(--primary-color); color: white; } /* ์ฃผํฉ์ ๋ฒํผ */
|
292 |
+
.info-btn:hover { background-color: #E67300; } /* ์ฃผํฉ์ ๋ฒํผ ํธ๋ฒ */
|
293 |
|
294 |
+
/* ์์ ์ด๋ฏธ์ง ์คํ์ผ */
|
295 |
+
#example-images-container img {
|
296 |
+
width: 160px;
|
297 |
+
height: 160px;
|
298 |
+
cursor: pointer;
|
299 |
+
border: 1px solid #ccc;
|
300 |
+
transition: border-color 0.3s;
|
301 |
+
}
|
302 |
+
|
303 |
+
#example-images-container img:hover {
|
304 |
+
border-color: var(--primary-color); /* ์ฃผํฉ์ ํ
๋๋ฆฌ ํธ๋ฒ */
|
305 |
+
}
|
306 |
+
|
307 |
+
/* ์คํฌ๋กค๋ฐ ์คํ์ผ๋ง */
|
308 |
+
::-webkit-scrollbar {
|
309 |
+
width: 8px;
|
310 |
+
height: 8px;
|
311 |
+
}
|
312 |
+
|
313 |
+
::-webkit-scrollbar-track {
|
314 |
+
background: rgba(0, 0, 0, 0.05);
|
315 |
+
border-radius: 10px;
|
316 |
+
}
|
317 |
+
|
318 |
+
::-webkit-scrollbar-thumb {
|
319 |
+
background: var(--primary-color); /* ์ฃผํฉ์ ์คํฌ๋กค๋ฐ */
|
320 |
+
border-radius: 10px;
|
321 |
+
}
|
322 |
|
323 |
/* ๋ชจ๋ฐ์ผ ๋์ */
|
324 |
+
@media (max-width: 900px) {
|
325 |
.workspace-wrapper {
|
326 |
+
flex-direction: column;
|
327 |
+
align-items: center;
|
328 |
}
|
329 |
.canvas-and-controls, .preview-section {
|
330 |
+
flex-basis: auto;
|
331 |
+
width: 100%;
|
332 |
+
max-width: 600px;
|
333 |
}
|
334 |
.control-panel-sidebar {
|
335 |
+
width: 100%;
|
336 |
}
|
337 |
.filter-sliders {
|
338 |
+
grid-template-columns: 1fr;
|
339 |
}
|
340 |
}
|
341 |
|