danhtran2mind commited on
Commit
d8ae271
·
verified ·
1 Parent(s): 631dff2

Update apps/gradio_app/static/styles.css

Browse files
Files changed (1) hide show
  1. apps/gradio_app/static/styles.css +218 -212
apps/gradio_app/static/styles.css CHANGED
@@ -1,213 +1,219 @@
1
- :root {
2
- --primary-color: #10b981; /* Updated to success color */
3
- --primary-hover: #0a8f66; /* Darkened shade of #10b981 for hover */
4
- --accent-color: #8a1bf2; /* New variable for the second gradient color */
5
- --accent-hover: #6b21a8; /* Darkened shade of #8a1bf2 for hover */
6
- --secondary-color: #64748b;
7
- --success-color: #10b981;
8
- --warning-color: #f59e0b;
9
- --danger-color: #ef4444;
10
- --border-radius: 0.5rem; /* Relative unit */
11
- --shadow-sm: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.05);
12
- --shadow-md: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.1);
13
- --shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1);
14
- }
15
-
16
- /* Container Styles */
17
- .gradio-container {
18
- max-width: 75rem !important; /* Relative to viewport */
19
- margin: 0 auto !important;
20
- padding: 1.25rem !important; /* Relative padding */
21
- font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
22
- }
23
-
24
- /* Card/Panel Styles */
25
- .svelte-15lo0d9, .panel {
26
- background: var(--block-background-fill) !important;
27
- border-radius: var(--border-radius) !important;
28
- box-shadow: var(--shadow-md) !important;
29
- border: 0.0625rem solid var(--border-color-primary) !important;
30
- backdrop-filter: blur(0.625rem) !important;
31
- }
32
-
33
- /* Button Styles */
34
- button.primary {
35
- background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
36
- border: none !important;
37
- border-radius: var(--border-radius) !important;
38
- padding: 0.625rem 1.25rem !important; /* Relative padding */
39
- font-weight: 600 !important;
40
- font-size: 1rem !important; /* Relative font size */
41
- transition: all 0.3s ease !important;
42
- box-shadow: var(--shadow-sm) !important;
43
- }
44
-
45
- button.primary:hover {
46
- background: linear-gradient(135deg, var(--primary-hover), var(--accent-hover)) !important;
47
- transform: translateY(-0.0625rem) !important;
48
- box-shadow: var(--shadow-md) !important;
49
- }
50
-
51
- button.secondary {
52
- background: transparent !important;
53
- border: 0.0625rem solid var(--border-color-primary) !important;
54
- border-radius: var(--border-radius) !important;
55
- color: var(--body-text-color) !important;
56
- font-weight: 500 !important;
57
- font-size: 0.875rem !important; /* Relative font size */
58
- }
59
-
60
- /* Slider Styles */
61
- .slider_input_container input[type="range"][name="cowbell"] {
62
- -webkit-appearance: none !important;
63
- width: 100% !important;
64
- height: 0.5rem !important; /* Relative height */
65
- border-radius: var(--border-radius) !important;
66
- background: linear-gradient(90deg, var(--primary-color), var(--accent-color)) !important;
67
- outline: none !important;
68
- }
69
-
70
- .slider_input_container input[type="range"][name="cowbell"]::-webkit-slider-thumb {
71
- -webkit-appearance: none !important;
72
- width: 1rem !important; /* Relative size */
73
- height: 1rem !important;
74
- border-radius: 50% !important;
75
- background: var(--accent-color) !important;
76
- cursor: pointer !important;
77
- box-shadow: var(--shadow-sm) !important;
78
- border: 0.0625rem solid var(--border-color-primary) !important;
79
- }
80
-
81
- .slider_input_container input[type="range"][name="cowbell"]::-webkit-slider-thumb:hover {
82
- background: var(--accent-color) !important;
83
- box-shadow: var(--shadow-md) !important;
84
- }
85
-
86
- .slider_input_container input[type="range"][name="cowbell"]::-moz-range-track {
87
- height: 0.5rem !important; /* Relative height */
88
- border-radius: var(--border-radius) !important;
89
- background: linear-gradient(90deg, var(--primary-color), var(--accent-color)) !important;
90
- }
91
-
92
- .slider_input_container input[type="range"][name="cowbell"]::-moz-range-thumb {
93
- width: 1rem !important; /* Relative size */
94
- height: 1rem !important;
95
- border-radius: 50% !important;
96
- background: var(--accent-color) !important;
97
- cursor: pointer !important;
98
- box-shadow: var(--shadow-sm) !important;
99
- border: 0.0625rem solid var(--border-color-primary) !important;
100
- }
101
-
102
- .slider_input_container input[type="range"][name="cowbell"]::-moz-range-thumb:hover {
103
- background: var(--accent-color) !important;
104
- box-shadow: var(--shadow-md) !important;
105
- }
106
-
107
- /* Header Styles */
108
- h1, h2, h3, h4, h5, h6 {
109
- font-weight: 700 !important;
110
- color: var(--body-text-color) !important;
111
- letter-spacing: -0.02em !important;
112
- }
113
-
114
- h1 {
115
- font-size: 2.5rem !important; /* Kept as is, suitable for zooming */
116
- margin-bottom: 1rem !important;
117
- }
118
-
119
- h2 {
120
- font-size: 1.75rem !important; /* Kept as is, suitable for zooming */
121
- margin: 1.5rem 0 1rem 0 !important;
122
- }
123
-
124
- /* Text Styles */
125
- p, .prose {
126
- color: var(--body-text-color-subdued) !important;
127
- line-height: 1.6 !important;
128
- font-size: 1rem !important; /* Relative font size */
129
- }
130
-
131
- /* Alert/Notification Styles */
132
- .alert-info {
133
- background: linear-gradient(135deg, #dbeafe, #bfdbfe) !important;
134
- border: 0.0625rem solid #93c5fd !important;
135
- border-radius: var(--border-radius) !important;
136
- color: #1e40af !important;
137
- font-size: 0.875rem !important; /* Relative font size */
138
- }
139
-
140
- .alert-warning {
141
- background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
142
- border: 0.0625rem solid #fcd34d !important;
143
- border-radius: var(--border-radius) !important;
144
- color: #92400e !important;
145
- font-size: 0.875rem !important; /* Relative font size */
146
- }
147
-
148
- .alert-error {
149
- background: linear-gradient(135deg, #fecaca, #fca5a5) !important;
150
- border: 0.0625rem solid #f87171 !important;
151
- border-radius: var(--border-radius) !important;
152
- color: #991b1b !important;
153
- font-size: 0.875rem !important; /* Relative font size */
154
- }
155
-
156
- /* Scrollbar (Webkit browsers) */
157
- ::-webkit-scrollbar {
158
- width: 0.5rem !important; /* Relative size */
159
- height: 0.5rem !important;
160
- }
161
-
162
- ::-webkit-scrollbar-track {
163
- background: var(--background-fill-secondary) !important;
164
- border-radius: 0.25rem !important;
165
- }
166
-
167
- ::-webkit-scrollbar-thumb {
168
- background: var(--secondary-color) !important;
169
- border-radius: 0.25rem !important;
170
- }
171
-
172
- ::-webkit-scrollbar-thumb:hover {
173
- background: var(--primary-color) !important;
174
- }
175
-
176
- /* Tab Styles */
177
- .gradio-container .tabs button {
178
- font-size: 1.0625rem !important; /* Relative font size (17px equivalent) */
179
- font-weight: bold !important;
180
- }
181
-
182
- /* Dark Theme Specific Overrides */
183
- @media (prefers-color-scheme: dark) {
184
- :root {
185
- --shadow-sm: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.2);
186
- --shadow-md: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.3);
187
- --shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.3);
188
- }
189
- }
190
-
191
- /* Light Theme Specific Overrides */
192
- @media (prefers-color-scheme: light) {
193
- .gradio-container {
194
- background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
195
- }
196
- }
197
-
198
- /* Responsive adjustments for zoom */
199
- @media screen and (max-width: 48rem) { /* 768px equivalent */
200
- .gradio-container {
201
- padding: 0.625rem !important;
202
- }
203
- h1 {
204
- font-size: 2rem !important;
205
- }
206
- h2 {
207
- font-size: 1.5rem !important;
208
- }
209
- button.primary {
210
- padding: 0.5rem 1rem !important;
211
- font-size: 0.875rem !important;
212
- }
 
 
 
 
 
 
213
  }
 
1
+ :root {
2
+ --primary-color: #10b981; /* Updated to success color */
3
+ --primary-hover: #0a8f66; /* Darkened shade of #10b981 for hover */
4
+ --accent-color: #8a1bf2; /* New variable for the second gradient color */
5
+ --accent-hover: #6b21a8; /* Darkened shade of #8a1bf2 for hover */
6
+ --secondary-color: #64748b;
7
+ --success-color: #10b981;
8
+ --warning-color: #f59e0b;
9
+ --danger-color: #ef4444;
10
+ --border-radius: 0.5rem; /* Relative unit */
11
+ --shadow-sm: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.05);
12
+ --shadow-md: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.1);
13
+ --shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1);
14
+ }
15
+
16
+ /* Container Styles */
17
+ .gradio-container {
18
+ max-width: 75rem !important; /* Relative to viewport */
19
+ margin: 0 auto !important;
20
+ padding: 1.25rem !important; /* Relative padding */
21
+ font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
22
+ }
23
+
24
+ /* Card/Panel Styles */
25
+ .svelte-15lo0d9, .panel {
26
+ background: var(--block-background-fill) !important;
27
+ border-radius: var(--border-radius) !important;
28
+ box-shadow: var(--shadow-md) !important;
29
+ border: 0.0625rem solid var(--border-color-primary) !important;
30
+ backdrop-filter: blur(0.625rem) !important;
31
+ }
32
+
33
+ /* Button Styles */
34
+ button.primary {
35
+ background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
36
+ border: none !important;
37
+ border-radius: var(--border-radius) !important;
38
+ padding: 0.625rem 1.25rem !important; /* Relative padding */
39
+ font-weight: 600 !important;
40
+ font-size: 1rem !important; /* Relative font size */
41
+ transition: all 0.3s ease !important;
42
+ box-shadow: var(--shadow-sm) !important;
43
+ }
44
+
45
+ button.primary:hover {
46
+ background: linear-gradient(135deg, var(--primary-hover), var(--accent-hover)) !important;
47
+ transform: translateY(-0.0625rem) !important;
48
+ box-shadow: var(--shadow-md) !important;
49
+ }
50
+
51
+ button.secondary {
52
+ background: transparent !important;
53
+ border: 0.0625rem solid var(--border-color-primary) !important;
54
+ border-radius: var(--border-radius) !important;
55
+ color: var(--body-text-color) !important;
56
+ font-weight: 500 !important;
57
+ font-size: 0.875rem !important; /* Relative font size */
58
+ }
59
+
60
+ /* Slider Styles */
61
+ .slider_input_container input[type="range"][name="cowbell"] {
62
+ -webkit-appearance: none !important;
63
+ width: 100% !important;
64
+ height: 0.5rem !important; /* Relative height */
65
+ border-radius: var(--border-radius) !important;
66
+ background: linear-gradient(90deg, var(--primary-color), var(--accent-color)) !important;
67
+ outline: none !important;
68
+ }
69
+
70
+ .slider_input_container input[type="range"][name="cowbell"]::-webkit-slider-thumb {
71
+ -webkit-appearance: none !important;
72
+ width: 1rem !important; /* Relative size */
73
+ height: 1rem !important;
74
+ border-radius: 50% !important;
75
+ background: var(--accent-color) !important;
76
+ cursor: pointer !important;
77
+ box-shadow: var(--shadow-sm) !important;
78
+ border: 0.0625rem solid var(--border-color-primary) !important;
79
+ }
80
+
81
+ .slider_input_container input[type="range"][name="cowbell"]::-webkit-slider-thumb:hover {
82
+ background: var(--accent-color) !important;
83
+ box-shadow: var(--shadow-md) !important;
84
+ }
85
+
86
+ .slider_input_container input[type="range"][name="cowbell"]::-moz-range-track {
87
+ height: 0.5rem !important; /* Relative height */
88
+ border-radius: var(--border-radius) !important;
89
+ background: linear-gradient(90deg, var(--primary-color), var(--accent-color)) !important;
90
+ }
91
+
92
+ .slider_input_container input[type="range"][name="cowbell"]::-moz-range-thumb {
93
+ width: 1rem !important; /* Relative size */
94
+ height: 1rem !important;
95
+ border-radius: 50% !important;
96
+ background: var(--accent-color) !important;
97
+ cursor: pointer !important;
98
+ box-shadow: var(--shadow-sm) !important;
99
+ border: 0.0625rem solid var(--border-color-primary) !important;
100
+ }
101
+
102
+ .slider_input_container input[type="range"][name="cowbell"]::-moz-range-thumb:hover {
103
+ background: var(--accent-color) !important;
104
+ box-shadow: var(--shadow-md) !important;
105
+ }
106
+
107
+ /* Header Styles */
108
+ h1, h2, h3, h4, h5, h6 {
109
+ font-weight: 700 !important;
110
+ color: var(--body-text-color) !important;
111
+ letter-spacing: -0.02em !important;
112
+ }
113
+
114
+ h1 {
115
+ font-size: 2.5rem !important; /* Kept as is, suitable for zooming */
116
+ margin-bottom: 1rem !important;
117
+ }
118
+
119
+ h2 {
120
+ font-size: 1.75rem !important; /* Kept as is, suitable for zooming */
121
+ margin: 1.5rem 0 1rem 0 !important;
122
+ }
123
+
124
+ /* Text Styles */
125
+ p, .prose {
126
+ color: var(--body-text-color-subdued) !important;
127
+ line-height: 1.6 !important;
128
+ font-size: 1rem !important; /* Relative font size */
129
+ }
130
+
131
+ /* Alert/Notification Styles */
132
+ .alert-info {
133
+ background: linear-gradient(135deg, #dbeafe, #bfdbfe) !important;
134
+ border: 0.0625rem solid #93c5fd !important;
135
+ border-radius: var(--border-radius) !important;
136
+ color: #1e40af !important;
137
+ font-size: 0.875rem !important; /* Relative font size */
138
+ }
139
+
140
+ .alert-warning {
141
+ background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
142
+ border: 0.0625rem solid #fcd34d !important;
143
+ border-radius: var(--border-radius) !important;
144
+ color: #92400e !important;
145
+ font-size: 0.875rem !important; /* Relative font size */
146
+ }
147
+
148
+ .alert-error {
149
+ background: linear-gradient(135deg, #fecaca, #fca5a5) !important;
150
+ border: 0.0625rem solid #f87171 !important;
151
+ border-radius: var(--border-radius) !important;
152
+ color: #991b1b !important;
153
+ font-size: 0.875rem !important; /* Relative font size */
154
+ }
155
+
156
+ /* Scrollbar (Webkit browsers) */
157
+ ::-webkit-scrollbar {
158
+ width: 0.5rem !important; /* Relative size */
159
+ height: 0.5rem !important;
160
+ }
161
+
162
+ ::-webkit-scrollbar-track {
163
+ background: var(--background-fill-secondary) !important;
164
+ border-radius: 0.25rem !important;
165
+ }
166
+
167
+ ::-webkit-scrollbar-thumb {
168
+ background: var(--secondary-color) !important;
169
+ border-radius: 0.25rem !important;
170
+ }
171
+
172
+ ::-webkit-scrollbar-thumb:hover {
173
+ background: var(--primary-color) !important;
174
+ }
175
+
176
+ /* Tab Styles */
177
+ .gradio-container .tabs button {
178
+ font-size: 1.0625rem !important; /* Relative font size (17px equivalent) */
179
+ font-weight: bold !important;
180
+ }
181
+
182
+ /* Dark Theme Specific Overrides */
183
+ @media (prefers-color-scheme: dark) {
184
+ :root {
185
+ --shadow-sm: 0 0.0625rem 0.125rem 0 rgba(0, 0, 0, 0.2);
186
+ --shadow-md: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.3);
187
+ --shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.3);
188
+ }
189
+ p, .prose {
190
+ color: #d1d5db !important; /* Lighter gray for better readability in dark mode */
191
+ }
192
+ }
193
+
194
+ /* Light Theme Specific Overrides */
195
+ @media (prefers-color-scheme: light) {
196
+ .gradio-container {
197
+ background: linear-gradient(135deg, #f8fafc, #f1f5f9) !important;
198
+ }
199
+ p, .prose {
200
+ color: #4b5563 !important; /* Darker gray for better contrast in light mode */
201
+ }
202
+ }
203
+
204
+ /* Responsive adjustments for zoom */
205
+ @media screen and (max-width: 48rem) { /* 768px equivalent */
206
+ .gradio-container {
207
+ padding: 0.625rem !important;
208
+ }
209
+ h1 {
210
+ font-size: 2rem !important;
211
+ }
212
+ h2 {
213
+ font-size: 1.5rem !important;
214
+ }
215
+ button.primary {
216
+ padding: 0.5rem 1rem !important;
217
+ font-size: 0.875rem !important;
218
+ }
219
  }