Spaces:
Running
Running
Nattapong Tapachoom
commited on
Commit
·
cadbbaa
1
Parent(s):
5ac8891
Enhance CSS styles for improved visual consistency and responsiveness in Gradio app
Browse files
app.py
CHANGED
|
@@ -166,27 +166,29 @@ body, .gradio-container {
|
|
| 166 |
max-width: 1100px !important;
|
| 167 |
margin: 32px auto 32px auto !important;
|
| 168 |
border-radius: 22px !important;
|
| 169 |
-
box-shadow: 0 8px 32px 0 #
|
| 170 |
border: 1.5px solid #e3e3e3;
|
| 171 |
min-height: 96vh;
|
| 172 |
padding-bottom: 32px;
|
| 173 |
}
|
| 174 |
.main-card {
|
| 175 |
-
background: #fff;
|
| 176 |
border-radius: 18px;
|
| 177 |
-
box-shadow: 0 2px 12px 0 #
|
| 178 |
padding: 28px 24px 20px 24px;
|
| 179 |
margin: 18px 0;
|
| 180 |
-
border:
|
|
|
|
| 181 |
transition: box-shadow 0.2s;
|
| 182 |
}
|
| 183 |
.main-card:hover {
|
| 184 |
-
box-shadow: 0 6px 24px 0 #
|
| 185 |
}
|
| 186 |
.output-markdown {
|
| 187 |
font-family: 'Segoe UI', 'Noto Sans Thai', sans-serif !important;
|
| 188 |
line-height: 1.7;
|
| 189 |
font-size: 1.08em;
|
|
|
|
| 190 |
}
|
| 191 |
.gr-button {
|
| 192 |
font-size: 1.13em;
|
|
@@ -194,38 +196,43 @@ body, .gradio-container {
|
|
| 194 |
border-radius: 13px;
|
| 195 |
font-weight: 600;
|
| 196 |
transition: all 0.2s;
|
| 197 |
-
background: linear-gradient(90deg, #
|
| 198 |
-
color: #fff;
|
| 199 |
border: none;
|
| 200 |
-
box-shadow: 0 2px 8px #
|
| 201 |
}
|
| 202 |
.gr-button.secondary, .gr-button[variant="secondary"] {
|
| 203 |
-
background: #
|
| 204 |
-
color: #
|
| 205 |
-
border: 1px solid #
|
| 206 |
}
|
| 207 |
.gr-button:hover {
|
| 208 |
transform: translateY(-2px) scale(1.03);
|
| 209 |
-
box-shadow: 0 6px 18px #
|
| 210 |
filter: brightness(1.04);
|
| 211 |
}
|
| 212 |
.gr-textbox textarea {
|
| 213 |
font-size: 1.13em;
|
| 214 |
min-height: 150px;
|
| 215 |
font-family: 'Segoe UI', 'Noto Sans Thai', sans-serif;
|
| 216 |
-
background: #
|
| 217 |
border-radius: 10px;
|
| 218 |
-
border: 1.
|
|
|
|
| 219 |
padding: 14px;
|
| 220 |
}
|
| 221 |
.gr-dropdown input {
|
| 222 |
font-size: 1.1em;
|
| 223 |
border-radius: 8px;
|
| 224 |
-
background: #
|
| 225 |
-
border: 1.
|
|
|
|
| 226 |
}
|
| 227 |
.gr-markdown h1, .gr-markdown h3 {
|
| 228 |
-
color: #
|
|
|
|
|
|
|
|
|
|
| 229 |
}
|
| 230 |
.gr-markdown ul {
|
| 231 |
margin-left: 1.2em;
|
|
|
|
| 166 |
max-width: 1100px !important;
|
| 167 |
margin: 32px auto 32px auto !important;
|
| 168 |
border-radius: 22px !important;
|
| 169 |
+
box-shadow: 0 8px 32px 0 #bdbdbd55;
|
| 170 |
border: 1.5px solid #e3e3e3;
|
| 171 |
min-height: 96vh;
|
| 172 |
padding-bottom: 32px;
|
| 173 |
}
|
| 174 |
.main-card {
|
| 175 |
+
background: #fff !important;
|
| 176 |
border-radius: 18px;
|
| 177 |
+
box-shadow: 0 2px 12px 0 #bdbdbd55;
|
| 178 |
padding: 28px 24px 20px 24px;
|
| 179 |
margin: 18px 0;
|
| 180 |
+
border: 1.5px solid #d1d1d1;
|
| 181 |
+
color: #222 !important;
|
| 182 |
transition: box-shadow 0.2s;
|
| 183 |
}
|
| 184 |
.main-card:hover {
|
| 185 |
+
box-shadow: 0 6px 24px 0 #bdbdbd77;
|
| 186 |
}
|
| 187 |
.output-markdown {
|
| 188 |
font-family: 'Segoe UI', 'Noto Sans Thai', sans-serif !important;
|
| 189 |
line-height: 1.7;
|
| 190 |
font-size: 1.08em;
|
| 191 |
+
color: #222 !important;
|
| 192 |
}
|
| 193 |
.gr-button {
|
| 194 |
font-size: 1.13em;
|
|
|
|
| 196 |
border-radius: 13px;
|
| 197 |
font-weight: 600;
|
| 198 |
transition: all 0.2s;
|
| 199 |
+
background: linear-gradient(90deg, #4a63e7 0%, #764ba2 100%);
|
| 200 |
+
color: #fff !important;
|
| 201 |
border: none;
|
| 202 |
+
box-shadow: 0 2px 8px #bdbdbd33;
|
| 203 |
}
|
| 204 |
.gr-button.secondary, .gr-button[variant="secondary"] {
|
| 205 |
+
background: #eaeaea !important;
|
| 206 |
+
color: #333 !important;
|
| 207 |
+
border: 1px solid #cccccc;
|
| 208 |
}
|
| 209 |
.gr-button:hover {
|
| 210 |
transform: translateY(-2px) scale(1.03);
|
| 211 |
+
box-shadow: 0 6px 18px #bdbdbd55;
|
| 212 |
filter: brightness(1.04);
|
| 213 |
}
|
| 214 |
.gr-textbox textarea {
|
| 215 |
font-size: 1.13em;
|
| 216 |
min-height: 150px;
|
| 217 |
font-family: 'Segoe UI', 'Noto Sans Thai', sans-serif;
|
| 218 |
+
background: #fff;
|
| 219 |
border-radius: 10px;
|
| 220 |
+
border: 1.5px solid #cccccc;
|
| 221 |
+
color: #222;
|
| 222 |
padding: 14px;
|
| 223 |
}
|
| 224 |
.gr-dropdown input {
|
| 225 |
font-size: 1.1em;
|
| 226 |
border-radius: 8px;
|
| 227 |
+
background: #fff;
|
| 228 |
+
border: 1.5px solid #cccccc;
|
| 229 |
+
color: #222;
|
| 230 |
}
|
| 231 |
.gr-markdown h1, .gr-markdown h3 {
|
| 232 |
+
color: #2a2a4d !important;
|
| 233 |
+
}
|
| 234 |
+
.gr-markdown, .gr-markdown ul, .gr-markdown p, .gr-markdown li {
|
| 235 |
+
color: #222 !important;
|
| 236 |
}
|
| 237 |
.gr-markdown ul {
|
| 238 |
margin-left: 1.2em;
|