Zaman01 commited on
Commit
ebc313d
·
verified ·
1 Parent(s): 33b406e

Create style.css

Browse files
Files changed (1) hide show
  1. style.css +289 -0
style.css ADDED
@@ -0,0 +1,289 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Creating a more modern looking UI for the Gemini Image Editing App */
2
+
3
+ /* ===============================
4
+ Global Variables
5
+ ================================ */
6
+ :root {
7
+ --primary-color: #4f46e5;
8
+ --primary-light: #6366f1;
9
+ --primary-dark: #3730a3;
10
+ --secondary-color: #9333ea;
11
+ --accent-color: #ec4899;
12
+ --text-color: #0f172a;
13
+ --text-light: #64748b;
14
+ --bg-color: #f8fafc;
15
+ --card-bg: #ffffff;
16
+ --border-color: #e2e8f0;
17
+ --shadow: 0 4px 6px -1px rgba(0,0,0,.1),
18
+ 0 2px 4px -1px rgba(0,0,0,.06);
19
+ --transition: all 0.3s ease;
20
+ --radius: 12px;
21
+ --header-gradient: linear-gradient(
22
+ 135deg,
23
+ var(--primary-color),
24
+ var(--secondary-color)
25
+ );
26
+ }
27
+
28
+ /* Dark mode */
29
+ .dark {
30
+ --text-color: #e2e8f0;
31
+ --text-light: #94a3b8;
32
+ --bg-color: #0f172a;
33
+ --card-bg: #1e293b;
34
+ --border-color: #334155;
35
+ }
36
+
37
+ /* ===============================
38
+ Base Container
39
+ ================================ */
40
+ .gradio-container {
41
+ font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
42
+ "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
43
+ background: var(--bg-color);
44
+ color: var(--text-color);
45
+ max-width: 1200px;
46
+ margin: 0 auto;
47
+ padding: 2rem;
48
+ border-radius: var(--radius);
49
+ box-shadow: var(--shadow);
50
+ animation: fadeIn 0.6s ease-in-out;
51
+ }
52
+
53
+ /* ===============================
54
+ Header
55
+ ================================ */
56
+ .header-container {
57
+ display: flex;
58
+ align-items: center;
59
+ gap: 20px;
60
+ justify-content: center;
61
+ background: var(--header-gradient);
62
+ padding: 2rem;
63
+ border-radius: var(--radius);
64
+ box-shadow: var(--shadow);
65
+ margin-bottom: 2rem;
66
+ color: white;
67
+ }
68
+
69
+ .header-container img {
70
+ width: 90px;
71
+ height: 90px;
72
+ filter: drop-shadow(0 0 8px rgba(255,255,255,.5));
73
+ transition: var(--transition);
74
+ }
75
+
76
+ .header-container img:hover {
77
+ transform: scale(1.05) rotate(5deg);
78
+ }
79
+
80
+ .header-container h1 {
81
+ font-size: 2.4rem;
82
+ font-weight: 700;
83
+ margin-bottom: 0.4rem;
84
+ background: linear-gradient(45deg,#fff,#e0e7ff);
85
+ -webkit-background-clip: text;
86
+ background-clip: text;
87
+ color: transparent;
88
+ }
89
+
90
+ .header-container a {
91
+ color: white;
92
+ font-weight: 600;
93
+ text-decoration: none;
94
+ border-bottom: 2px solid rgba(255,255,255,.4);
95
+ transition: var(--transition);
96
+ }
97
+
98
+ .header-container a:hover {
99
+ border-color: white;
100
+ }
101
+
102
+ /* ===============================
103
+ Accordions
104
+ ================================ */
105
+ .gr-accordion {
106
+ background: var(--card-bg);
107
+ border-radius: var(--radius);
108
+ box-shadow: var(--shadow);
109
+ margin-bottom: 1.5rem;
110
+ overflow: hidden;
111
+ }
112
+
113
+ .gr-accordion-title {
114
+ background: var(--primary-color);
115
+ color: white !important;
116
+ padding: 1rem 1.5rem;
117
+ font-weight: 600;
118
+ }
119
+
120
+ /* ===============================
121
+ Inputs
122
+ ================================ */
123
+ .gr-input,
124
+ .gr-textarea,
125
+ .gr-text-input {
126
+ width: 100%;
127
+ padding: 0.75rem 1rem;
128
+ border-radius: var(--radius);
129
+ border: 1px solid var(--border-color);
130
+ background: var(--card-bg);
131
+ color: var(--text-color);
132
+ transition: var(--transition);
133
+ }
134
+
135
+ .gr-input:focus,
136
+ .gr-textarea:focus {
137
+ border-color: var(--primary-color);
138
+ box-shadow: 0 0 0 3px rgba(79,70,229,.2);
139
+ outline: none;
140
+ }
141
+
142
+ /* ===============================
143
+ Upload Boxes
144
+ ================================ */
145
+ .upload-box {
146
+ min-height: 120px;
147
+ border: 2px dashed var(--border-color);
148
+ border-radius: var(--radius);
149
+ padding: 1rem;
150
+ }
151
+
152
+ /* ===============================
153
+ Generate Button
154
+ ================================ */
155
+ .gr-button.gr-button-primary,
156
+ button.generate-btn {
157
+ width: 100%;
158
+ background: var(--header-gradient) !important;
159
+ color: white !important;
160
+ border: none !important;
161
+ border-radius: var(--radius) !important;
162
+ padding: 0.9rem !important;
163
+ font-size: 1rem !important;
164
+ font-weight: 700 !important;
165
+ text-transform: uppercase;
166
+ letter-spacing: 1px;
167
+ cursor: pointer;
168
+ transition: var(--transition);
169
+ box-shadow: 0 4px 10px rgba(79,70,229,.4);
170
+ }
171
+
172
+ .gr-button.gr-button-primary:hover,
173
+ button.generate-btn:hover {
174
+ transform: translateY(-2px);
175
+ box-shadow: 0 10px 18px rgba(79,70,229,.45);
176
+ }
177
+
178
+ .gr-button.gr-button-primary:active,
179
+ button.generate-btn:active {
180
+ transform: translateY(1px);
181
+ }
182
+
183
+ /* ===============================
184
+ Gallery
185
+ ================================ */
186
+ .gr-gallery {
187
+ background: var(--card-bg);
188
+ border-radius: var(--radius);
189
+ padding: 1rem;
190
+ box-shadow: var(--shadow);
191
+ min-height: 300px;
192
+ }
193
+
194
+ .gr-gallery img {
195
+ border-radius: calc(var(--radius) - 4px);
196
+ object-fit: contain !important;
197
+ transition: var(--transition);
198
+ }
199
+
200
+ .gr-gallery img:hover {
201
+ transform: scale(1.02);
202
+ }
203
+
204
+ /* ===============================
205
+ Output Text
206
+ ================================ */
207
+ .output-text {
208
+ background: var(--card-bg);
209
+ padding: 1.2rem;
210
+ border-radius: var(--radius);
211
+ box-shadow: var(--shadow);
212
+ min-height: 100px;
213
+ }
214
+
215
+ /* ===============================
216
+ Examples
217
+ ================================ */
218
+ .gr-examples-header {
219
+ font-size: 1.5rem !important;
220
+ font-weight: 600 !important;
221
+ color: var(--primary-light) !important;
222
+ margin: 2rem 0 1rem !important;
223
+ }
224
+
225
+ .gr-examples {
226
+ display: grid;
227
+ grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
228
+ gap: 1rem;
229
+ }
230
+
231
+ .gr-sample {
232
+ background: var(--card-bg);
233
+ border-radius: var(--radius);
234
+ overflow: hidden;
235
+ box-shadow: var(--shadow);
236
+ transition: var(--transition);
237
+ }
238
+
239
+ .gr-sample:hover {
240
+ transform: translateY(-2px);
241
+ }
242
+
243
+ /* ===============================
244
+ Responsive
245
+ ================================ */
246
+ @media (max-width: 768px) {
247
+ .gradio-container {
248
+ padding: 1rem;
249
+ }
250
+
251
+ .header-container {
252
+ flex-direction: column;
253
+ text-align: center;
254
+ }
255
+
256
+ .header-container h1 {
257
+ font-size: 2rem;
258
+ }
259
+
260
+ .gr-examples {
261
+ grid-template-columns: 1fr;
262
+ }
263
+ }
264
+
265
+ /* ===============================
266
+ Scrollbar
267
+ ================================ */
268
+ ::-webkit-scrollbar {
269
+ width: 8px;
270
+ }
271
+
272
+ ::-webkit-scrollbar-thumb {
273
+ background: var(--primary-light);
274
+ border-radius: 4px;
275
+ }
276
+
277
+ /* ===============================
278
+ Animations
279
+ ================================ */
280
+ @keyframes fadeIn {
281
+ from {
282
+ opacity: 0;
283
+ transform: translateY(8px);
284
+ }
285
+ to {
286
+ opacity: 1;
287
+ transform: translateY(0);
288
+ }
289
+ }