Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
@@ -1,46 +1,64 @@
|
|
1 |
:root {
|
2 |
-
--primary-color: #
|
3 |
-
--secondary-color: #
|
4 |
-
--
|
5 |
-
--
|
6 |
-
--
|
7 |
-
--
|
8 |
-
--slider-color: #3498db;
|
9 |
-
--button-hover: #2c3e50;
|
10 |
}
|
11 |
|
12 |
* {
|
|
|
13 |
margin: 0;
|
14 |
padding: 0;
|
15 |
-
box-sizing: border-box;
|
16 |
}
|
17 |
|
18 |
body {
|
19 |
font-family: 'Roboto', sans-serif;
|
20 |
-
background-color: var(--background-color);
|
21 |
-
color: var(--text-color);
|
22 |
line-height: 1.6;
|
|
|
|
|
23 |
padding: 20px;
|
24 |
}
|
25 |
|
26 |
.container {
|
27 |
max-width: 1200px;
|
28 |
margin: 0 auto;
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
33 |
}
|
34 |
|
35 |
h1 {
|
36 |
-
|
37 |
-
margin-bottom:
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
color: var(--primary-color);
|
39 |
}
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
.upload-section {
|
|
|
42 |
text-align: center;
|
43 |
-
margin-bottom: 30px;
|
44 |
}
|
45 |
|
46 |
#image-upload {
|
@@ -49,16 +67,22 @@ h1 {
|
|
49 |
|
50 |
.upload-btn {
|
51 |
display: inline-block;
|
52 |
-
padding:
|
53 |
background-color: var(--primary-color);
|
54 |
color: white;
|
55 |
-
border-radius:
|
56 |
cursor: pointer;
|
57 |
-
transition:
|
|
|
58 |
}
|
59 |
|
60 |
.upload-btn:hover {
|
61 |
-
background-color:
|
|
|
|
|
|
|
|
|
|
|
62 |
}
|
63 |
|
64 |
.editor-container {
|
@@ -71,27 +95,28 @@ h1 {
|
|
71 |
flex: 1;
|
72 |
min-width: 300px;
|
73 |
border: 1px solid var(--border-color);
|
74 |
-
border-radius:
|
75 |
overflow: hidden;
|
76 |
-
background
|
77 |
display: flex;
|
78 |
justify-content: center;
|
79 |
align-items: center;
|
|
|
80 |
}
|
81 |
|
82 |
#image-canvas {
|
83 |
max-width: 100%;
|
84 |
-
max-height:
|
85 |
display: block;
|
86 |
}
|
87 |
|
88 |
.controls {
|
89 |
flex: 1;
|
90 |
min-width: 300px;
|
91 |
-
padding:
|
92 |
-
background
|
93 |
-
border-radius:
|
94 |
-
|
95 |
}
|
96 |
|
97 |
.control-group {
|
@@ -102,12 +127,8 @@ h1 {
|
|
102 |
|
103 |
.control-group:last-child {
|
104 |
border-bottom: none;
|
105 |
-
|
106 |
-
|
107 |
-
.control-group h3 {
|
108 |
-
margin-bottom: 15px;
|
109 |
-
color: var(--primary-color);
|
110 |
-
font-weight: 500;
|
111 |
}
|
112 |
|
113 |
.slider-control {
|
@@ -117,15 +138,15 @@ h1 {
|
|
117 |
.slider-control label {
|
118 |
display: block;
|
119 |
margin-bottom: 5px;
|
120 |
-
font-weight:
|
121 |
}
|
122 |
|
123 |
.slider-control input[type="range"] {
|
124 |
width: 100%;
|
125 |
height: 8px;
|
126 |
-webkit-appearance: none;
|
127 |
-
background: #
|
128 |
-
border-radius:
|
129 |
outline: none;
|
130 |
margin-bottom: 5px;
|
131 |
}
|
@@ -134,7 +155,7 @@ h1 {
|
|
134 |
-webkit-appearance: none;
|
135 |
width: 18px;
|
136 |
height: 18px;
|
137 |
-
background: var(--
|
138 |
border-radius: 50%;
|
139 |
cursor: pointer;
|
140 |
}
|
@@ -143,25 +164,88 @@ h1 {
|
|
143 |
display: inline-block;
|
144 |
width: 40px;
|
145 |
text-align: right;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
font-size: 0.9em;
|
147 |
-
color: #666;
|
148 |
}
|
149 |
|
150 |
-
.
|
151 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
padding: 10px 20px;
|
153 |
-
margin-right: 10px;
|
154 |
-
margin-top: 10px;
|
155 |
-
background-color: var(--primary-color);
|
156 |
-
color: white;
|
157 |
border: none;
|
158 |
-
border-radius:
|
159 |
cursor: pointer;
|
160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
}
|
162 |
|
163 |
-
.
|
164 |
-
background-color: var(--
|
|
|
|
|
|
|
|
|
|
|
|
|
165 |
}
|
166 |
|
167 |
@media (max-width: 768px) {
|
@@ -172,4 +256,12 @@ h1 {
|
|
172 |
.image-preview, .controls {
|
173 |
min-width: 100%;
|
174 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
175 |
}
|
|
|
1 |
:root {
|
2 |
+
--primary-color: #4a6bff;
|
3 |
+
--secondary-color: #6c757d;
|
4 |
+
--dark-color: #343a40;
|
5 |
+
--light-color: #f8f9fa;
|
6 |
+
--border-color: #dee2e6;
|
7 |
+
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
|
|
|
8 |
}
|
9 |
|
10 |
* {
|
11 |
+
box-sizing: border-box;
|
12 |
margin: 0;
|
13 |
padding: 0;
|
|
|
14 |
}
|
15 |
|
16 |
body {
|
17 |
font-family: 'Roboto', sans-serif;
|
|
|
|
|
18 |
line-height: 1.6;
|
19 |
+
color: #333;
|
20 |
+
background-color: #f5f7fa;
|
21 |
padding: 20px;
|
22 |
}
|
23 |
|
24 |
.container {
|
25 |
max-width: 1200px;
|
26 |
margin: 0 auto;
|
27 |
+
background: white;
|
28 |
+
border-radius: 8px;
|
29 |
+
box-shadow: var(--shadow);
|
30 |
+
padding: 25px;
|
31 |
+
overflow: hidden;
|
32 |
}
|
33 |
|
34 |
h1 {
|
35 |
+
color: var(--dark-color);
|
36 |
+
margin-bottom: 20px;
|
37 |
+
display: flex;
|
38 |
+
align-items: center;
|
39 |
+
gap: 10px;
|
40 |
+
}
|
41 |
+
|
42 |
+
h1 i {
|
43 |
color: var(--primary-color);
|
44 |
}
|
45 |
|
46 |
+
h3 {
|
47 |
+
margin: 15px 0 10px;
|
48 |
+
color: var(--dark-color);
|
49 |
+
display: flex;
|
50 |
+
align-items: center;
|
51 |
+
gap: 8px;
|
52 |
+
}
|
53 |
+
|
54 |
+
h3 i {
|
55 |
+
color: var(--primary-color);
|
56 |
+
font-size: 0.9em;
|
57 |
+
}
|
58 |
+
|
59 |
.upload-section {
|
60 |
+
margin-bottom: 25px;
|
61 |
text-align: center;
|
|
|
62 |
}
|
63 |
|
64 |
#image-upload {
|
|
|
67 |
|
68 |
.upload-btn {
|
69 |
display: inline-block;
|
70 |
+
padding: 10px 20px;
|
71 |
background-color: var(--primary-color);
|
72 |
color: white;
|
73 |
+
border-radius: 4px;
|
74 |
cursor: pointer;
|
75 |
+
transition: all 0.3s ease;
|
76 |
+
font-weight: 500;
|
77 |
}
|
78 |
|
79 |
.upload-btn:hover {
|
80 |
+
background-color: #3a56d4;
|
81 |
+
transform: translateY(-2px);
|
82 |
+
}
|
83 |
+
|
84 |
+
.upload-btn i {
|
85 |
+
margin-right: 8px;
|
86 |
}
|
87 |
|
88 |
.editor-container {
|
|
|
95 |
flex: 1;
|
96 |
min-width: 300px;
|
97 |
border: 1px solid var(--border-color);
|
98 |
+
border-radius: 4px;
|
99 |
overflow: hidden;
|
100 |
+
background: #f0f0f0;
|
101 |
display: flex;
|
102 |
justify-content: center;
|
103 |
align-items: center;
|
104 |
+
min-height: 300px;
|
105 |
}
|
106 |
|
107 |
#image-canvas {
|
108 |
max-width: 100%;
|
109 |
+
max-height: 600px;
|
110 |
display: block;
|
111 |
}
|
112 |
|
113 |
.controls {
|
114 |
flex: 1;
|
115 |
min-width: 300px;
|
116 |
+
padding: 15px;
|
117 |
+
background: var(--light-color);
|
118 |
+
border-radius: 4px;
|
119 |
+
border: 1px solid var(--border-color);
|
120 |
}
|
121 |
|
122 |
.control-group {
|
|
|
127 |
|
128 |
.control-group:last-child {
|
129 |
border-bottom: none;
|
130 |
+
margin-bottom: 0;
|
131 |
+
padding-bottom: 0;
|
|
|
|
|
|
|
|
|
132 |
}
|
133 |
|
134 |
.slider-control {
|
|
|
138 |
.slider-control label {
|
139 |
display: block;
|
140 |
margin-bottom: 5px;
|
141 |
+
font-weight: 500;
|
142 |
}
|
143 |
|
144 |
.slider-control input[type="range"] {
|
145 |
width: 100%;
|
146 |
height: 8px;
|
147 |
-webkit-appearance: none;
|
148 |
+
background: #ddd;
|
149 |
+
border-radius: 4px;
|
150 |
outline: none;
|
151 |
margin-bottom: 5px;
|
152 |
}
|
|
|
155 |
-webkit-appearance: none;
|
156 |
width: 18px;
|
157 |
height: 18px;
|
158 |
+
background: var(--primary-color);
|
159 |
border-radius: 50%;
|
160 |
cursor: pointer;
|
161 |
}
|
|
|
164 |
display: inline-block;
|
165 |
width: 40px;
|
166 |
text-align: right;
|
167 |
+
font-weight: 500;
|
168 |
+
}
|
169 |
+
|
170 |
+
.hsl-controls {
|
171 |
+
display: flex;
|
172 |
+
flex-direction: column;
|
173 |
+
gap: 15px;
|
174 |
+
}
|
175 |
+
|
176 |
+
.hsl-slider label {
|
177 |
+
display: block;
|
178 |
+
margin-bottom: 5px;
|
179 |
font-size: 0.9em;
|
|
|
180 |
}
|
181 |
|
182 |
+
.hsl-slider input[type="range"] {
|
183 |
+
width: 100%;
|
184 |
+
}
|
185 |
+
|
186 |
+
.curve-controls {
|
187 |
+
display: flex;
|
188 |
+
gap: 15px;
|
189 |
+
flex-wrap: wrap;
|
190 |
+
}
|
191 |
+
|
192 |
+
.curve-container {
|
193 |
+
flex: 1;
|
194 |
+
min-width: 150px;
|
195 |
+
text-align: center;
|
196 |
+
}
|
197 |
+
|
198 |
+
.curve-container canvas {
|
199 |
+
border: 1px solid var(--border-color);
|
200 |
+
border-radius: 4px;
|
201 |
+
background: white;
|
202 |
+
margin-bottom: 5px;
|
203 |
+
}
|
204 |
+
|
205 |
+
.curve-container label {
|
206 |
+
font-size: 0.9em;
|
207 |
+
color: var(--secondary-color);
|
208 |
+
}
|
209 |
+
|
210 |
+
.action-buttons {
|
211 |
+
display: flex;
|
212 |
+
gap: 15px;
|
213 |
+
margin-top: 25px;
|
214 |
+
}
|
215 |
+
|
216 |
+
.btn {
|
217 |
padding: 10px 20px;
|
|
|
|
|
|
|
|
|
218 |
border: none;
|
219 |
+
border-radius: 4px;
|
220 |
cursor: pointer;
|
221 |
+
font-weight: 500;
|
222 |
+
transition: all 0.3s ease;
|
223 |
+
display: flex;
|
224 |
+
align-items: center;
|
225 |
+
gap: 8px;
|
226 |
+
}
|
227 |
+
|
228 |
+
.btn i {
|
229 |
+
font-size: 0.9em;
|
230 |
+
}
|
231 |
+
|
232 |
+
.btn.primary {
|
233 |
+
background-color: var(--primary-color);
|
234 |
+
color: white;
|
235 |
+
}
|
236 |
+
|
237 |
+
.btn.primary:hover {
|
238 |
+
background-color: #3a56d4;
|
239 |
}
|
240 |
|
241 |
+
.btn:not(.primary) {
|
242 |
+
background-color: var(--light-color);
|
243 |
+
color: var(--secondary-color);
|
244 |
+
border: 1px solid var(--border-color);
|
245 |
+
}
|
246 |
+
|
247 |
+
.btn:not(.primary):hover {
|
248 |
+
background-color: #e9ecef;
|
249 |
}
|
250 |
|
251 |
@media (max-width: 768px) {
|
|
|
256 |
.image-preview, .controls {
|
257 |
min-width: 100%;
|
258 |
}
|
259 |
+
|
260 |
+
.curve-controls {
|
261 |
+
flex-direction: column;
|
262 |
+
}
|
263 |
+
|
264 |
+
.curve-container {
|
265 |
+
min-width: 100%;
|
266 |
+
}
|
267 |
}
|