Update ui/styles.py
Browse files- ui/styles.py +130 -1
ui/styles.py
CHANGED
|
@@ -62,4 +62,133 @@ h1 {
|
|
| 62 |
font-weight: 600 !important;
|
| 63 |
}
|
| 64 |
|
| 65 |
-
/* JSON
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
font-weight: 600 !important;
|
| 63 |
}
|
| 64 |
|
| 65 |
+
/* JSON displays */
|
| 66 |
+
.gr-json {
|
| 67 |
+
border: 1px solid #e2e8f0 !important;
|
| 68 |
+
border-radius: 8px !important;
|
| 69 |
+
padding: 15px !important;
|
| 70 |
+
background: #f8fafc !important;
|
| 71 |
+
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
|
| 72 |
+
font-size: 13px !important;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
/* Checkboxes and radios */
|
| 76 |
+
.gr-checkbox, .gr-radio {
|
| 77 |
+
padding: 10px !important;
|
| 78 |
+
border-radius: 6px !important;
|
| 79 |
+
border: 1px solid #e2e8f0 !important;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
.gr-checkbox:hover, .gr-radio:hover {
|
| 83 |
+
border-color: #667eea !important;
|
| 84 |
+
background: #f8fafc !important;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
/* Sliders */
|
| 88 |
+
.gr-slider {
|
| 89 |
+
padding: 20px 0 !important;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
.gr-slider .range {
|
| 93 |
+
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
/* Dataframes */
|
| 97 |
+
.gr-dataframe {
|
| 98 |
+
border: 1px solid #e2e8f0 !important;
|
| 99 |
+
border-radius: 8px !important;
|
| 100 |
+
overflow: hidden !important;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.gr-dataframe th {
|
| 104 |
+
background: #f8fafc !important;
|
| 105 |
+
color: #1a365d !important;
|
| 106 |
+
font-weight: 600 !important;
|
| 107 |
+
padding: 12px !important;
|
| 108 |
+
border-bottom: 2px solid #e2e8f0 !important;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
.gr-dataframe td {
|
| 112 |
+
padding: 10px !important;
|
| 113 |
+
border-bottom: 1px solid #e2e8f0 !important;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
/* Plot containers */
|
| 117 |
+
.gr-plot {
|
| 118 |
+
border: 1px solid #e2e8f0 !important;
|
| 119 |
+
border-radius: 10px !important;
|
| 120 |
+
padding: 15px !important;
|
| 121 |
+
background: white !important;
|
| 122 |
+
box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
/* Custom classes */
|
| 126 |
+
.critical-metric {
|
| 127 |
+
background: linear-gradient(135deg, rgba(255,107,107,0.1) 0%, rgba(255,107,107,0.2) 100%) !important;
|
| 128 |
+
border-left: 4px solid #FF6B6B !important;
|
| 129 |
+
padding: 15px !important;
|
| 130 |
+
border-radius: 8px !important;
|
| 131 |
+
margin: 10px 0 !important;
|
| 132 |
+
font-weight: bold !important;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
.success-metric {
|
| 136 |
+
background: linear-gradient(135deg, rgba(78,205,196,0.1) 0%, rgba(78,205,196,0.2) 100%) !important;
|
| 137 |
+
border-left: 4px solid #4ECDC4 !important;
|
| 138 |
+
padding: 15px !important;
|
| 139 |
+
border-radius: 8px !important;
|
| 140 |
+
margin: 10px 0 !important;
|
| 141 |
+
font-weight: bold !important;
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
.roi-highlight {
|
| 145 |
+
font-size: 2.5em !important;
|
| 146 |
+
font-weight: 900 !important;
|
| 147 |
+
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%) !important;
|
| 148 |
+
-webkit-background-clip: text !important;
|
| 149 |
+
-webkit-text-fill-color: transparent !important;
|
| 150 |
+
background-clip: text !important;
|
| 151 |
+
text-align: center !important;
|
| 152 |
+
margin: 20px 0 !important;
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
.presenter-guidance {
|
| 156 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
|
| 157 |
+
color: white !important;
|
| 158 |
+
padding: 20px !important;
|
| 159 |
+
border-radius: 10px !important;
|
| 160 |
+
margin: 15px 0 !important;
|
| 161 |
+
border-left: 5px solid #4ECDC4 !important;
|
| 162 |
+
box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
/* Footer */
|
| 166 |
+
.footer {
|
| 167 |
+
margin-top: 40px !important;
|
| 168 |
+
padding-top: 20px !important;
|
| 169 |
+
border-top: 1px solid #e2e8f0 !important;
|
| 170 |
+
color: #718096 !important;
|
| 171 |
+
font-size: 14px !important;
|
| 172 |
+
}
|
| 173 |
+
"""
|
| 174 |
+
|
| 175 |
+
THEME = gr.themes.Soft(
|
| 176 |
+
primary_hue="purple",
|
| 177 |
+
secondary_hue="teal",
|
| 178 |
+
neutral_hue="gray",
|
| 179 |
+
font=["-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", "sans-serif"]
|
| 180 |
+
).set(
|
| 181 |
+
button_primary_background_fill="linear-gradient(90deg, #667eea 0%, #764ba2 100%)",
|
| 182 |
+
button_primary_background_fill_hover="linear-gradient(90deg, #764ba2 0%, #667eea 100%)",
|
| 183 |
+
button_primary_text_color="white",
|
| 184 |
+
button_primary_border_color="#667eea",
|
| 185 |
+
button_secondary_background_fill="linear-gradient(90deg, #4ECDC4 0%, #44A08D 100%)",
|
| 186 |
+
button_secondary_background_fill_hover="linear-gradient(90deg, #44A08D 0%, #4ECDC4 100%)",
|
| 187 |
+
button_secondary_text_color="white",
|
| 188 |
+
background_fill_primary="#f8fafc",
|
| 189 |
+
background_fill_secondary="#ffffff",
|
| 190 |
+
border_color_primary="#e2e8f0",
|
| 191 |
+
border_color_secondary="#cbd5e0",
|
| 192 |
+
shadow_spread="2px",
|
| 193 |
+
shadow_spread_dark="1px"
|
| 194 |
+
)
|