mgbam commited on
Commit
2bb38db
·
verified ·
1 Parent(s): 3380f8e

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +107 -63
static/style.css CHANGED
@@ -1,86 +1,114 @@
1
- /* ----------------------------------------------------------
2
- AnyCoder AI – global dark‑mode theme (readable version)
 
3
  ---------------------------------------------------------- */
4
- :root{
 
 
5
  --bg: #0d1117;
6
- --bg-secondary: #1e2228; /* brighter than before */
7
- --input-bg: #f5f7fa; /* light surface for inputs */
8
- --input-text: #0d1117; /* dark text inside light inputs */
9
  --border: #30363d;
 
10
  --text: #c9d1d9;
11
- --text-muted: #8b949e;
12
  --accent: #58a6ff;
13
- --accent-hover: #79c0ff;
14
- --font-mono: "SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
15
- --radius: 8px;
16
- --transition: .2s ease;
 
 
 
 
17
  }
18
 
19
- /* ----- reset ------------------------------------------------- */
20
- *{box-sizing:border-box;margin:0;padding:0}
 
 
21
  body{
22
- font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
23
- background:var(--bg);
24
- color:var(--text);
 
25
  line-height:1.6;
26
- padding:1rem;
27
  }
28
 
29
- /* ----- layout containers ------------------------------------- */
30
- header{ text-align:center;margin-bottom:2rem }
31
- header h1{ font-size:2.5rem;margin-bottom:.5rem }
32
- header p { color:var(--text-muted);font-size:1.1rem }
 
 
 
 
 
 
 
 
 
33
 
34
  main{
35
- max-width:900px;
36
- margin:0 auto;
37
- display:grid;
 
 
38
  gap:2rem;
39
  }
40
 
 
41
  section{
42
- background:var(--bg-secondary);
43
  border:1px solid var(--border);
44
  border-radius:var(--radius);
45
  padding:1.5rem;
46
- box-shadow:0 4px 12px rgba(0,0,0,.25);
 
 
 
47
  }
48
 
49
- h2{ font-size:1.25rem;margin-bottom:1rem }
50
- label{ display:block;margin-bottom:.5rem;font-weight:600 }
51
 
52
- /* ----- form controls ----------------------------------------- */
53
  select,
54
  input[type="file"],
55
  input[type="url"],
56
  textarea{
57
  width:100%;
58
  padding:.75rem;
 
 
 
59
  border:1px solid var(--border);
60
  border-radius:var(--radius);
61
- background:var(--input-bg);
62
- color:var(--input-text);
63
- font-size:1rem;
64
  transition:border-color var(--transition);
65
  }
66
  select:focus,
67
  input:focus,
68
- textarea:focus{ outline:none;border-color:var(--accent) }
69
-
 
 
70
  textarea{
71
  resize:vertical;
72
- min-height:120px;
73
- font-family:var(--font-mono);
74
  }
75
 
76
- /* ----- tabs -------------------------------------------------- */
77
- .tabs{ display:flex;gap:.5rem;margin-bottom:1rem }
 
 
 
 
78
  .tabs button{
 
79
  background:transparent;
80
  border:1px solid var(--border);
81
  border-radius:var(--radius);
82
- padding:.5rem 1rem;
83
- color:var(--text-muted);
84
  cursor:pointer;
85
  transition:background var(--transition),color var(--transition);
86
  }
@@ -90,53 +118,69 @@ textarea{
90
  border-color:var(--accent);
91
  }
92
  .tabs button:hover:not([aria-selected="true"]){
93
- background:var(--border);
94
  color:var(--text);
95
  }
96
 
97
- /* ----- misc -------------------------------------------------- */
98
- .search-toggle{ display:flex;align-items:center;gap:.5rem;margin-top:1rem }
99
-
100
- .actions{ display:flex;gap:1rem;justify-content:flex-end }
 
 
 
101
  button{
102
- padding:.75rem 1.5rem;
103
  border:none;
104
  border-radius:var(--radius);
105
- font-size:1rem;
106
  cursor:pointer;
107
- transition:background var(--transition);
 
 
108
  }
109
- #clear{ background:var(--border);color:var(--text) }
110
- #clear:hover{ background:var(--text-muted) }
111
- #generate{ background:var(--accent);color:var(--bg) }
112
- #generate:hover{ background:var(--accent-hover) }
 
 
 
 
 
 
 
113
 
 
114
  pre{
115
- background:var(--bg);
116
  border:1px solid var(--border);
117
  border-radius:var(--radius);
118
  padding:1rem;
119
  overflow-x:auto;
120
- font-family:var(--font-mono);
121
  font-size:.9rem;
 
122
  }
123
-
124
  iframe{
125
  width:100%;
126
- height:400px;
127
  border:1px solid var(--border);
128
  border-radius:var(--radius);
129
  background:#fff;
130
  }
131
 
 
132
  .visually-hidden{
133
- position:absolute;width:1px;height:1px;overflow:hidden;
134
- clip:rect(0 0 0 0);white-space:nowrap;
 
 
 
135
  }
136
 
137
- /* ----- mobile tweaks ---------------------------------------- */
138
- @media(max-width:600px){
139
- body{ padding:.5rem }
140
- header h1{ font-size:2rem }
141
- .actions{ flex-direction:column }
 
142
  }
 
1
+ /* static/style.css – FULL FILE
2
+ ----------------------------------------------------------
3
+ Dark‑mode GitHub‑inspired design for AnyCoder AI
4
  ---------------------------------------------------------- */
5
+
6
+ :root {
7
+ /* -------- color system -------- */
8
  --bg: #0d1117;
9
+ --bgsecondary: #161b22;
 
 
10
  --border: #30363d;
11
+ --surface: #21262d;
12
  --text: #c9d1d9;
13
+ --textmuted: #8b949e;
14
  --accent: #58a6ff;
15
+ --accenthover: #79c0ff;
16
+ --danger: #f85149;
17
+ --success: #56d364;
18
+
19
+ /* -------- misc -------- */
20
+ --radius: 8px;
21
+ --transition: .2s ease;
22
+ --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
23
  }
24
 
25
+ *,
26
+ *::before,
27
+ *::after { box-sizing: border-box; }
28
+
29
  body{
30
+ margin:0;
31
+ font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
32
+ background: var(--bg);
33
+ color: var(--text);
34
  line-height:1.6;
 
35
  }
36
 
37
+ /* ---------------------------------- LAYOUT */
38
+ header{
39
+ text-align:center;
40
+ padding:2rem 1rem 1rem;
41
+ }
42
+ header h1{
43
+ font-size:2rem;
44
+ margin:0 0 .25rem;
45
+ }
46
+ header p{
47
+ color:var(--text‑muted);
48
+ margin:0;
49
+ }
50
 
51
  main{
52
+ max-width:960px;
53
+ margin:0 auto 4rem;
54
+ padding:0 1rem;
55
+ display:flex;
56
+ flex-direction:column;
57
  gap:2rem;
58
  }
59
 
60
+ /* ---------------------------------- SECTIONS */
61
  section{
62
+ background:var(--bgsecondary);
63
  border:1px solid var(--border);
64
  border-radius:var(--radius);
65
  padding:1.5rem;
66
+ }
67
+ h2{
68
+ margin-top:0;
69
+ font-size:1.25rem;
70
  }
71
 
72
+ /* ---------------------------------- INPUTS */
73
+ label{ font-weight:600; margin:.5rem 0; display:block; }
74
 
 
75
  select,
76
  input[type="file"],
77
  input[type="url"],
78
  textarea{
79
  width:100%;
80
  padding:.75rem;
81
+ font-size:1rem;
82
+ color:var(--text);
83
+ background:var(--surface);
84
  border:1px solid var(--border);
85
  border-radius:var(--radius);
 
 
 
86
  transition:border-color var(--transition);
87
  }
88
  select:focus,
89
  input:focus,
90
+ textarea:focus{
91
+ outline:none;
92
+ border-color:var(--accent);
93
+ }
94
  textarea{
95
  resize:vertical;
96
+ min-height:140px;
97
+ font-family:var(--mono);
98
  }
99
 
100
+ /* ---------------------------------- TABS */
101
+ .tabs{
102
+ display:flex;
103
+ gap:.5rem;
104
+ margin-bottom:1rem;
105
+ }
106
  .tabs button{
107
+ padding:.4rem 1rem;
108
  background:transparent;
109
  border:1px solid var(--border);
110
  border-radius:var(--radius);
111
+ color:var(--text‑muted);
 
112
  cursor:pointer;
113
  transition:background var(--transition),color var(--transition);
114
  }
 
118
  border-color:var(--accent);
119
  }
120
  .tabs button:hover:not([aria-selected="true"]){
121
+ background:var(--surface);
122
  color:var(--text);
123
  }
124
 
125
+ /* ---------------------------------- ACTION BUTTONS */
126
+ .actions{
127
+ display:flex;
128
+ gap:.75rem;
129
+ justify-content:flex-end;
130
+ flex-wrap:wrap;
131
+ }
132
  button{
 
133
  border:none;
134
  border-radius:var(--radius);
 
135
  cursor:pointer;
136
+ font-size:1rem;
137
+ padding:.7rem 1.5rem;
138
+ transition:background var(--transition),opacity var(--transition);
139
  }
140
+ #clear{
141
+ background:var(--border);
142
+ color:var(--text);
143
+ }
144
+ #clear:hover{ background:var(--surface); }
145
+ #generate{
146
+ background:var(--accent);
147
+ color:var(--bg);
148
+ }
149
+ #generate:hover{ background:var(--accent‑hover); }
150
+ #generate:disabled{ opacity:.6; cursor:progress; }
151
 
152
+ /* ---------------------------------- OUTPUT PANELS */
153
  pre{
154
+ background:var(--surface);
155
  border:1px solid var(--border);
156
  border-radius:var(--radius);
157
  padding:1rem;
158
  overflow-x:auto;
159
+ font-family:var(--mono);
160
  font-size:.9rem;
161
+ margin:0;
162
  }
 
163
  iframe{
164
  width:100%;
165
+ height:420px;
166
  border:1px solid var(--border);
167
  border-radius:var(--radius);
168
  background:#fff;
169
  }
170
 
171
+ /* visually hidden utility */
172
  .visually-hidden{
173
+ position:absolute !important;
174
+ width:1px;height:1px;
175
+ overflow:hidden;
176
+ clip:rect(0 0 0 0);
177
+ white-space:nowrap;
178
  }
179
 
180
+ /* ---------------------------------- RESPONSIVE */
181
+ @media (max-width:640px){
182
+ header{padding-top:1.5rem;}
183
+ header h1{font-size:1.6rem;}
184
+ section{padding:1.2rem;}
185
+ .actions{flex-direction:column;}
186
  }