Skip to content

Commit be20ab4

Browse files
committed
fix: implement proper terminal styling for all utilities
- Add comprehensive terminal theme CSS variables - Create unified styling for all form elements (inputs, sliders, selects, textareas) - Style all buttons with terminal green theme - Add proper terminal styling for code blocks and preview areas - Create specific CSS files for each utility with terminal theme - Ensure all UI elements match the terminal aesthetic - Fix contrast and readability issues - Add responsive design for mobile devices
1 parent 76abb9a commit be20ab4

File tree

6 files changed

+678
-14
lines changed

6 files changed

+678
-14
lines changed

assets/css/button-generator-style.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,45 @@
310310
}
311311
.output-area .copy-button:hover { opacity: 1; }
312312

313+
/* Стили для предварительного просмотра кнопки */
314+
.button-preview {
315+
display: flex;
316+
justify-content: center;
317+
align-items: center;
318+
min-height: 100px;
319+
background: var(--terminal-bg);
320+
border: 1px solid var(--terminal-border);
321+
border-radius: 8px;
322+
margin-bottom: 20px;
323+
}
324+
325+
.generated-button {
326+
/* Стили будут применяться динамически через JavaScript */
327+
border: none;
328+
cursor: pointer;
329+
font-family: 'JetBrains Mono', monospace;
330+
transition: all 0.2s ease;
331+
}
332+
333+
/* Стили для вывода кода */
334+
.code-output,
335+
.html-output {
336+
margin-bottom: 20px;
337+
}
338+
339+
.code-output h4,
340+
.html-output h4 {
341+
color: var(--terminal-text);
342+
font-size: 14px;
343+
font-weight: 600;
344+
margin-bottom: 8px;
345+
}
346+
347+
/* Кнопки действий */
348+
.terminal-button-action {
349+
margin-right: 10px;
350+
margin-bottom: 10px;
351+
}
313352

314353
/* Адаптивность */
315354
@media (max-width: 900px) {
@@ -358,4 +397,14 @@
358397
writing-mode: horizontal-tb;
359398
padding: 0.5em 1em;
360399
}
400+
}
401+
402+
@media (max-width: 768px) {
403+
.generator-container {
404+
grid-template-columns: 1fr;
405+
}
406+
407+
.button-preview {
408+
min-height: 80px;
409+
}
361410
}

assets/css/colorify-style.css

Lines changed: 86 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -231,20 +231,92 @@ small.alpha-hint {
231231
}
232232

233233

234+
/* Стили для конвертера цветов */
235+
.color-input-group {
236+
display: flex;
237+
gap: 12px;
238+
align-items: center;
239+
margin-bottom: 20px;
240+
}
241+
242+
.color-input-group .terminal-input {
243+
flex: 1;
244+
}
245+
246+
/* Сетка конвертаций */
247+
.conversion-grid {
248+
display: grid;
249+
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
250+
gap: 16px;
251+
margin-bottom: 20px;
252+
}
253+
254+
.conversion-item {
255+
display: flex;
256+
flex-direction: column;
257+
gap: 6px;
258+
}
259+
260+
.conversion-item label {
261+
color: var(--terminal-text);
262+
font-size: 12px;
263+
font-weight: 600;
264+
}
265+
266+
/* Секция градиентов */
267+
.gradient-controls {
268+
display: grid;
269+
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
270+
gap: 16px;
271+
margin-bottom: 20px;
272+
}
273+
274+
.gradient-color,
275+
.gradient-direction {
276+
display: flex;
277+
flex-direction: column;
278+
gap: 6px;
279+
}
280+
281+
.gradient-color label,
282+
.gradient-direction label {
283+
color: var(--terminal-text);
284+
font-size: 12px;
285+
font-weight: 600;
286+
}
287+
288+
.gradient-preview {
289+
width: 100%;
290+
height: 60px;
291+
border: 1px solid var(--terminal-border);
292+
border-radius: 8px;
293+
margin-bottom: 20px;
294+
background: linear-gradient(to right, #ff0000, #0000ff);
295+
}
296+
297+
.gradient-code {
298+
margin-top: 20px;
299+
}
300+
301+
.gradient-code h4 {
302+
color: var(--terminal-text);
303+
font-size: 14px;
304+
font-weight: 600;
305+
margin-bottom: 8px;
306+
}
307+
234308
/* Адаптивность */
235-
@media (max-width: 600px) {
236-
#color-converter-section .converter-grid { grid-template-columns: 1fr; }
237-
#color-converter-section .color-preview-area { max-width: 150px; margin: 0 auto 1rem auto; }
238-
#color-converter-section .input-row { flex-direction: row; } /* Возвращаем в строку на мал экранах */
239-
#color-converter-section .rgb-input,
240-
#color-converter-section .hsl-input,
241-
#color-converter-section .alpha-input {
242-
min-width: 55px; /* Уменьшаем мин ширину */
243-
flex-basis: auto; /* Авто ширина */
244-
}
245-
#color-converter-section .input-wrapper { padding: 0.3rem 0.4rem; }
246-
247-
.gradient-controls { flex-direction: column; align-items: stretch;}
248-
.gradient-controls .button-add-color { align-self: flex-end; } /* Кнопка справа */
309+
@media (max-width: 768px) {
310+
.colorify-container {
311+
grid-template-columns: 1fr;
312+
}
313+
314+
.conversion-grid {
315+
grid-template-columns: 1fr;
316+
}
317+
318+
.gradient-controls {
319+
grid-template-columns: 1fr;
320+
}
249321
}
250322

assets/css/free-api.css

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
/* Стили для Free API Catalog */
2+
3+
/* Поиск */
4+
.search-controls {
5+
display: flex;
6+
gap: 12px;
7+
margin-bottom: 20px;
8+
}
9+
10+
.search-controls .terminal-input {
11+
flex: 1;
12+
}
13+
14+
.search-controls .terminal-select {
15+
width: 200px;
16+
}
17+
18+
/* Список API */
19+
.api-list {
20+
display: grid;
21+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
22+
gap: 16px;
23+
}
24+
25+
.api-item {
26+
background: var(--terminal-header-bg);
27+
border: 1px solid var(--terminal-border);
28+
border-radius: 8px;
29+
padding: 16px;
30+
transition: border-color 0.2s ease;
31+
}
32+
33+
.api-item:hover {
34+
border-color: var(--terminal-text);
35+
}
36+
37+
.api-item h4 {
38+
color: var(--terminal-text);
39+
font-size: 16px;
40+
font-weight: 600;
41+
margin-bottom: 8px;
42+
}
43+
44+
.api-item p {
45+
color: var(--terminal-text-dim);
46+
font-size: 14px;
47+
margin-bottom: 12px;
48+
line-height: 1.4;
49+
}
50+
51+
.api-meta {
52+
display: flex;
53+
gap: 12px;
54+
margin-bottom: 12px;
55+
flex-wrap: wrap;
56+
}
57+
58+
.api-category,
59+
.api-rate {
60+
background: var(--terminal-bg);
61+
border: 1px solid var(--terminal-border);
62+
border-radius: 4px;
63+
padding: 4px 8px;
64+
font-size: 12px;
65+
color: var(--terminal-text);
66+
}
67+
68+
.api-item .terminal-button-action {
69+
font-size: 12px;
70+
padding: 6px 12px;
71+
}
72+
73+
/* Адаптивность */
74+
@media (max-width: 768px) {
75+
.api-catalog-container {
76+
grid-template-columns: 1fr;
77+
}
78+
79+
.search-controls {
80+
flex-direction: column;
81+
}
82+
83+
.search-controls .terminal-select {
84+
width: 100%;
85+
}
86+
87+
.api-list {
88+
grid-template-columns: 1fr;
89+
}
90+
}

0 commit comments

Comments
 (0)