mgbam commited on
Commit
8c0571c
·
verified ·
1 Parent(s): 1909ad6

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +60 -113
static/style.css CHANGED
@@ -1,81 +1,58 @@
1
- /* ========== Variables & Reset ========== */
2
- :root {
3
- --bg: #0d1117;
4
- --bg-secondary: #161b22;
5
- --border: #30363d;
6
- --text: #c9d1d9;
7
- --text-muted: #8b949e;
8
- --accent: #58a6ff;
9
- --accent-hover: #79c0ff;
10
- --danger: #f85149;
11
- --success: #56d364;
12
- --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
13
- --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
14
- --radius: 0.5rem;
15
- --transition: 0.2s ease;
16
- }
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  *,
19
  *::before,
20
- *::after {
21
- box-sizing: border-box;
 
22
  margin: 0;
23
  padding: 0;
24
- }
25
-
26
- html {
27
- font-size: 16px;
28
- scroll-behavior: smooth;
29
- }
30
-
31
- body {
32
- font-family: var(--font-sans);
33
- background-color: var(--bg);
34
  color: var(--text);
35
  line-height: 1.6;
36
- min-height: 100vh;
37
- padding: 1rem;
38
  }
39
 
40
- /* ========== Layout ========== */
41
- header {
42
- text-align: center;
43
- margin-bottom: 2rem;
44
- }
45
- header h1 {
46
- font-size: 2.5rem;
47
- margin-bottom: 0.25rem;
48
- }
49
- header p {
50
- color: var(--text-muted);
51
- font-size: 1.1rem;
52
- }
53
 
 
54
  main {
55
  max-width: 900px;
56
  margin: 0 auto;
57
  display: grid;
58
  gap: 2rem;
 
59
  }
60
 
61
  section {
62
- background-color: var(--bg-secondary);
63
  border: 1px solid var(--border);
64
  border-radius: var(--radius);
65
  padding: 1.5rem;
66
  }
67
 
68
- h2 {
69
- font-size: 1.25rem;
70
- margin-bottom: 1rem;
71
- }
72
- label {
73
- display: block;
74
- margin-bottom: 0.5rem;
75
- font-weight: 600;
76
- }
77
 
78
- /* ========== Form Elements ========== */
79
  select,
80
  input[type="file"],
81
  input[type="url"],
@@ -92,85 +69,58 @@ textarea {
92
 
93
  select:focus,
94
  input:focus,
95
- textarea:focus {
96
- outline: none;
97
- border-color: var(--accent);
98
- }
99
 
100
  textarea {
101
- font-family: var(--font-mono);
102
  resize: vertical;
103
  min-height: 120px;
 
104
  }
105
 
106
- /* ========== Tabs ========== */
107
- .tabs {
108
- display: flex;
109
- gap: 0.5rem;
110
- margin-bottom: 1rem;
111
- overflow-x: auto;
112
- }
113
  .tabs button {
114
- flex: none;
115
  background: transparent;
116
  border: 1px solid var(--border);
117
  border-radius: var(--radius);
118
  padding: 0.5rem 1rem;
119
  color: var(--text-muted);
120
  cursor: pointer;
121
- transition: background-color var(--transition), color var(--transition);
122
  }
 
123
  .tabs button[aria-selected="true"] {
124
  background: var(--accent);
125
  color: var(--bg);
126
  border-color: var(--accent);
127
  }
 
128
  .tabs button:hover:not([aria-selected="true"]) {
129
  background: var(--border);
130
  color: var(--text);
131
  }
132
 
133
- /* ========== Actions ========== */
134
- .search-toggle {
135
- display: flex;
136
- align-items: center;
137
- gap: 0.5rem;
138
- margin-top: 1rem;
139
- }
140
- .actions {
141
- display: flex;
142
- gap: 1rem;
143
- justify-content: flex-end;
144
- flex-wrap: wrap;
145
- }
146
  button {
147
  padding: 0.75rem 1.5rem;
148
  border: none;
149
  border-radius: var(--radius);
150
  font-size: 1rem;
151
  cursor: pointer;
152
- transition: background-color var(--transition), transform var(--transition);
153
- }
154
- button:hover {
155
- transform: translateY(-2px);
156
- }
157
- #clear {
158
- background: var(--border);
159
- color: var(--text);
160
- }
161
- #clear:hover {
162
- background: var(--text-muted);
163
- }
164
- #generate {
165
- background: var(--accent);
166
- color: var(--bg);
167
- }
168
- #generate:hover {
169
- background: var(--accent-hover);
170
  }
171
 
172
- /* ========== Outputs ========== */
173
- pre, code {
 
 
 
 
 
 
174
  background: var(--bg);
175
  border: 1px solid var(--border);
176
  border-radius: var(--radius);
@@ -188,25 +138,22 @@ iframe {
188
  background: #fff;
189
  }
190
 
191
- /* ========== Utility ========== */
192
  .visually-hidden {
193
- position: absolute;
194
  width: 1px;
195
  height: 1px;
 
 
196
  overflow: hidden;
197
  clip: rect(0 0 0 0);
198
  white-space: nowrap;
 
199
  }
200
 
201
- /* ========== Responsive ========== */
202
  @media (max-width: 600px) {
203
- body {
204
- padding: 0.5rem;
205
- }
206
- header h1 {
207
- font-size: 2rem;
208
- }
209
- .actions {
210
- justify-content: center;
211
- }
212
  }
 
1
+ /* ----------------------------------------------------------
2
+ AnyCoder AI — unified dark‑mode design system
3
+ ---------------------------------------------------------- */
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
+ :root {
6
+ --bg: #0d1117;
7
+ --bg-secondary: #161b22;
8
+ --border: #30363d;
9
+ --text: #c9d1d9;
10
+ --text-muted: #8b949e;
11
+ --accent: #58a6ff;
12
+ --accent-hover: #79c0ff;
13
+ --danger: #f85149;
14
+ --success: #56d364;
15
+ --radius: 8px;
16
+ --transition: 0.2s ease;
17
+ --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
18
+ }
19
+
20
+ /* ============= 1. Global reset & typography ============= */
21
  *,
22
  *::before,
23
+ *::after { box-sizing: border-box; }
24
+
25
+ html, body {
26
  margin: 0;
27
  padding: 0;
28
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
29
+ background: var(--bg);
 
 
 
 
 
 
 
 
30
  color: var(--text);
31
  line-height: 1.6;
32
+ -webkit-font-smoothing: antialiased;
 
33
  }
34
 
35
+ h1, h2 { font-weight: 600; }
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
+ /* ============= 2. Layout blocks ============= */
38
  main {
39
  max-width: 900px;
40
  margin: 0 auto;
41
  display: grid;
42
  gap: 2rem;
43
+ padding: 1rem;
44
  }
45
 
46
  section {
47
+ background: var(--bg-secondary);
48
  border: 1px solid var(--border);
49
  border-radius: var(--radius);
50
  padding: 1.5rem;
51
  }
52
 
53
+ /* ============= 3. Forms & controls ============= */
54
+ label { font-weight: 600; }
 
 
 
 
 
 
 
55
 
 
56
  select,
57
  input[type="file"],
58
  input[type="url"],
 
69
 
70
  select:focus,
71
  input:focus,
72
+ textarea:focus { outline: none; border-color: var(--accent); }
 
 
 
73
 
74
  textarea {
 
75
  resize: vertical;
76
  min-height: 120px;
77
+ font-family: var(--font-mono);
78
  }
79
 
80
+ /* ============= 4. Tabs ============= */
81
+ .tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
82
+
 
 
 
 
83
  .tabs button {
 
84
  background: transparent;
85
  border: 1px solid var(--border);
86
  border-radius: var(--radius);
87
  padding: 0.5rem 1rem;
88
  color: var(--text-muted);
89
  cursor: pointer;
90
+ transition: background var(--transition), color var(--transition);
91
  }
92
+
93
  .tabs button[aria-selected="true"] {
94
  background: var(--accent);
95
  color: var(--bg);
96
  border-color: var(--accent);
97
  }
98
+
99
  .tabs button:hover:not([aria-selected="true"]) {
100
  background: var(--border);
101
  color: var(--text);
102
  }
103
 
104
+ /* ============= 5. Action buttons ============= */
105
+ .actions { display: flex; gap: 1rem; justify-content: flex-end; }
106
+
 
 
 
 
 
 
 
 
 
 
107
  button {
108
  padding: 0.75rem 1.5rem;
109
  border: none;
110
  border-radius: var(--radius);
111
  font-size: 1rem;
112
  cursor: pointer;
113
+ transition: background var(--transition);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  }
115
 
116
+ #clear { background: var(--border); color: var(--text); }
117
+ #clear:hover { background: var(--text-muted); }
118
+
119
+ #generate { background: var(--accent); color: var(--bg); }
120
+ #generate:hover { background: var(--accent-hover); }
121
+
122
+ /* ============= 6. Output areas ============= */
123
+ pre {
124
  background: var(--bg);
125
  border: 1px solid var(--border);
126
  border-radius: var(--radius);
 
138
  background: #fff;
139
  }
140
 
141
+ /* ============= 7. Accessibility helpers ============= */
142
  .visually-hidden {
143
+ position: absolute !important;
144
  width: 1px;
145
  height: 1px;
146
+ padding: 0;
147
+ margin: -1px;
148
  overflow: hidden;
149
  clip: rect(0 0 0 0);
150
  white-space: nowrap;
151
+ border: 0;
152
  }
153
 
154
+ /* ============= 8. Responsive tweaks ============= */
155
  @media (max-width: 600px) {
156
+ main { padding: 0.5rem; }
157
+ h1 { font-size: 2rem; }
158
+ .actions { flex-direction: column; }
 
 
 
 
 
 
159
  }