mgbam commited on
Commit
4476a53
·
verified ·
1 Parent(s): b15f6bf

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +48 -186
static/style.css CHANGED
@@ -1,186 +1,48 @@
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
- --bg‑secondary: #161b22;
10
- --border: #30363d;
11
- --surface: #21262d;
12
- --text: #c9d1d9;
13
- --text‑muted: #8b949e;
14
- --accent: #58a6ff;
15
- --accent‑hover: #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(--bg‑secondary);
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
- }
115
- .tabs button[aria-selected="true"]{
116
- background:var(--accent);
117
- color:var(--bg);
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
- }
 
1
+ /* static/style.css FULL FILE (dark theme, readable) */
2
+ :root{
3
+ --bg:#0d1117;--bg2:#161b22;--surface:#21262d;--border:#30363d;
4
+ --text:#c9d1d9;--muted:#8b949e;--accent:#58a6ff;--accent2:#79c0ff;
5
+ --r:8px;--mono:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
6
+ --tr:.2s ease
7
+ }
8
+ *{box-sizing:border-box;margin:0}
9
+ body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
10
+ background:var(--bg);color:var(--text);line-height:1.6}
11
+ header{text-align:center;padding:2rem 1rem 1rem}
12
+ header h1{font-size:2rem;margin-bottom:.3rem}
13
+ header p{color:var(--muted)}
14
+ main{max-width:960px;margin:0 auto 4rem;padding:0 1rem;display:flex;flex-direction:column;gap:2rem}
15
+ section{background:var(--bg2);border:1px solid var(--border);border-radius:var(--r);padding:1.5rem}
16
+ h2{font-size:1.25rem;margin:0 0 1rem}
17
+
18
+ /* inputs */
19
+ label{font-weight:600;margin:.5rem 0;display:block}
20
+ select,input[type=file],input[type=url],textarea{
21
+ width:100%;padding:.75rem;border:1px solid var(--border);border-radius:var(--r);
22
+ background:var(--surface);color:var(--text);font-size:1rem;transition:border-color var(--tr)
23
+ }
24
+ select:focus,input:focus,textarea:focus{outline:none;border-color:var(--accent)}
25
+ textarea{resize:vertical;min-height:140px;font-family:var(--mono)}
26
+
27
+ /* tabs */
28
+ .tabs{display:flex;gap:.5rem;margin-bottom:1rem}
29
+ .tabs button{background:transparent;border:1px solid var(--border);border-radius:var(--r);
30
+ padding:.4rem 1rem;color:var(--muted);cursor:pointer;transition:background var(--tr),color var(--tr)}
31
+ .tabs button[aria-selected=true]{background:var(--accent);color:var(--bg);border-color:var(--accent)}
32
+ .tabs button:hover:not([aria-selected=true]){background:var(--surface);color:var(--text)}
33
+
34
+ /* buttons */
35
+ .actions{display:flex;gap:.75rem;justify-content:flex-end;flex-wrap:wrap}
36
+ button{border:none;border-radius:var(--r);font-size:1rem;cursor:pointer;padding:.7rem 1.5rem;transition:background var(--tr)}
37
+ #clear{background:var(--border);color:var(--text)}#clear:hover{background:var(--surface)}
38
+ #generate{background:var(--accent);color:var(--bg)}#generate:hover{background:var(--accent2)}
39
+ #generate:disabled{opacity:.6;cursor:progress}
40
+
41
+ /* outputs */
42
+ pre{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);
43
+ padding:1rem;overflow-x:auto;font-family:var(--mono);font-size:.9rem}
44
+ iframe{width:100%;height:420px;border:1px solid var(--border);border-radius:var(--r);background:#fff}
45
+
46
+ /* utilities */
47
+ .visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
48
+ @media(max-width:640px){header{padding-top:1.5rem}section{padding:1.2rem}.actions{flex-direction:column}}