File size: 4,451 Bytes
21e5d4d f869101 21e5d4d f869101 21e5d4d f869101 21e5d4d f869101 21e5d4d f869101 21e5d4d f869101 21e5d4d f869101 21e5d4d f869101 21e5d4d f869101 21e5d4d f869101 186b52e f869101 186b52e f869101 186b52e f869101 186b52e f869101 186b52e f869101 186b52e f869101 186b52e f869101 186b52e f869101 186b52e f869101 186b52e f869101 186b52e f869101 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | """
CSS styles for the demo
"""
CUSTOM_CSS = """
.gradio-container {
max-width: 1800px !important;
margin: auto !important;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}
/* Header styles */
h1 {
background: linear-gradient(90deg, #1a365d 0%, #2d3748 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-weight: 800 !important;
font-size: 2.5rem !important;
margin-bottom: 0.5rem !important;
line-height: 1.2 !important;
}
h2 {
color: #4a5568 !important;
font-weight: 600 !important;
font-size: 1.5rem !important;
margin-bottom: 1rem !important;
}
h3 {
color: #2d3748 !important;
font-weight: 700 !important;
font-size: 1.25rem !important;
margin-bottom: 0.75rem !important;
}
h4 {
color: #4a5568 !important;
font-weight: 600 !important;
font-size: 1.1rem !important;
margin-bottom: 0.5rem !important;
}
/* Status indicators */
.critical {
color: #FF6B6B !important;
font-weight: 700 !important;
}
.warning {
color: #FFA726 !important;
font-weight: 700 !important;
}
.success {
color: #4ECDC4 !important;
font-weight: 700 !important;
}
.info {
color: #42A5F5 !important;
font-weight: 700 !important;
}
/* Cards and containers */
.metric-card {
background: white !important;
border-radius: 12px !important;
padding: 20px !important;
box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
border: 1px solid #e2e8f0 !important;
margin-bottom: 15px !important;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.metric-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
/* Plot containers */
.plot-container {
background: white !important;
border-radius: 12px !important;
padding: 15px !important;
box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
border: 1px solid #e2e8f0 !important;
margin-bottom: 20px !important;
}
/* Data tables */
.dataframe {
background: white !important;
border-radius: 8px !important;
border: 1px solid #e2e8f0 !important;
}
.dataframe th {
background: #f8fafc !important;
color: #4a5568 !important;
font-weight: 600 !important;
padding: 12px !important;
border-bottom: 2px solid #e2e8f0 !important;
}
.dataframe td {
padding: 10px 12px !important;
border-bottom: 1px solid #e2e8f0 !important;
}
/* Buttons */
button {
border-radius: 8px !important;
font-weight: 600 !important;
transition: all 0.2s ease !important;
}
button:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}
button.primary {
background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%) !important;
color: white !important;
border: none !important;
}
button.secondary {
background: white !important;
color: #4a5568 !important;
border: 1px solid #e2e8f0 !important;
}
button.secondary:hover {
background: #f8fafc !important;
border-color: #cbd5e0 !important;
}
button.stop {
background: linear-gradient(135deg, #FF6B6B 0%, #C53030 100%) !important;
color: white !important;
border: none !important;
}
/* Inputs and controls */
input, textarea, select {
border-radius: 8px !important;
border: 1px solid #e2e8f0 !important;
padding: 10px 12px !important;
background: white !important;
}
input:focus, textarea:focus, select:focus {
border-color: #4ECDC4 !important;
box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1) !important;
outline: none !important;
}
/* Tabs */
.tab-nav {
background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%) !important;
border-radius: 12px !important;
padding: 8px !important;
margin-bottom: 25px !important;
border: 1px solid #e2e8f0 !important;
}
.tab-button {
border-radius: 8px !important;
font-weight: 600 !important;
padding: 10px 20px !important;
}
.tab-button.selected {
background: white !important;
color: #4ECDC4 !important;
box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
border: 1px solid #e2e8f0 !important;
}
/* JSON display */
.json-container {
background: #f8fafc !important;
border-radius: 8px !important;
padding: 15px !important;
border: 1px solid #e2e8f0 !important;
font-family: 'Monaco', ' |