Update ui/styles.py
Browse files- ui/styles.py +65 -0
ui/styles.py
CHANGED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
CSS styles and themes
|
| 3 |
+
"""
|
| 4 |
+
|
| 5 |
+
CUSTOM_CSS = """
|
| 6 |
+
/* Main container */
|
| 7 |
+
.gradio-container {
|
| 8 |
+
max-width: 1400px !important;
|
| 9 |
+
margin: 0 auto !important;
|
| 10 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
/* Headers */
|
| 14 |
+
h1, h2, h3, h4 {
|
| 15 |
+
color: #1a365d !important;
|
| 16 |
+
font-weight: 600 !important;
|
| 17 |
+
}
|
| 18 |
+
|
| 19 |
+
h1 {
|
| 20 |
+
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
|
| 21 |
+
-webkit-background-clip: text;
|
| 22 |
+
-webkit-text-fill-color: transparent;
|
| 23 |
+
background-clip: text;
|
| 24 |
+
margin-bottom: 10px !important;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
/* Buttons */
|
| 28 |
+
.gradio-button.primary {
|
| 29 |
+
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
|
| 30 |
+
color: white !important;
|
| 31 |
+
border: none !important;
|
| 32 |
+
font-weight: 600 !important;
|
| 33 |
+
padding: 12px 24px !important;
|
| 34 |
+
border-radius: 8px !important;
|
| 35 |
+
transition: transform 0.2s, box-shadow 0.2s !important;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.gradio-button.primary:hover {
|
| 39 |
+
transform: translateY(-2px) !important;
|
| 40 |
+
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.gradio-button.secondary {
|
| 44 |
+
background: linear-gradient(90deg, #4ECDC4 0%, #44A08D 100%) !important;
|
| 45 |
+
color: white !important;
|
| 46 |
+
border: none !important;
|
| 47 |
+
font-weight: 600 !important;
|
| 48 |
+
padding: 12px 24px !important;
|
| 49 |
+
border-radius: 8px !important;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
/* Tabs */
|
| 53 |
+
.gradio-tab {
|
| 54 |
+
border-bottom: 2px solid transparent !important;
|
| 55 |
+
padding: 12px 24px !important;
|
| 56 |
+
font-weight: 500 !important;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
.gradio-tab.selected {
|
| 60 |
+
border-bottom: 2px solid #667eea !important;
|
| 61 |
+
color: #667eea !important;
|
| 62 |
+
font-weight: 600 !important;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
/* JSON
|