Spaces:
Running
Running
Update style.css
Browse files
style.css
CHANGED
|
@@ -1,24 +1,35 @@
|
|
| 1 |
-
/* Clinically Healthcare UI Design Kit Styles */
|
| 2 |
:root {
|
| 3 |
-
-
|
| 4 |
-
--
|
| 5 |
-
--
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
--
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
--white: #FFFFFF;
|
| 13 |
}
|
| 14 |
|
|
|
|
| 15 |
.header-box {
|
| 16 |
background: var(--white);
|
| 17 |
padding: 1.5rem;
|
| 18 |
border-bottom: 4px solid var(--primary-indigo);
|
| 19 |
color: var(--primary-indigo);
|
| 20 |
text-align: center;
|
| 21 |
-
box-shadow: 0
|
| 22 |
}
|
| 23 |
|
| 24 |
.header-box h1 {
|
|
@@ -29,6 +40,7 @@
|
|
| 29 |
color: var(--primary-indigo);
|
| 30 |
}
|
| 31 |
|
|
|
|
| 32 |
.sidebar-btn {
|
| 33 |
margin-bottom: 10px !important;
|
| 34 |
font-weight: 600 !important;
|
|
@@ -45,9 +57,10 @@
|
|
| 45 |
border-color: var(--primary-indigo) !important;
|
| 46 |
color: var(--white) !important;
|
| 47 |
transform: translateY(-1px);
|
| 48 |
-
box-shadow: 0
|
| 49 |
}
|
| 50 |
|
|
|
|
| 51 |
.vibrant-status .label-wrap span {
|
| 52 |
color: white !important;
|
| 53 |
font-weight: 700 !important;
|
|
@@ -61,30 +74,32 @@
|
|
| 61 |
min-height: 44px;
|
| 62 |
}
|
| 63 |
|
|
|
|
| 64 |
.status-green {
|
| 65 |
-
background: rgba(
|
| 66 |
border: 1px solid var(--success-green) !important;
|
| 67 |
-
color: #
|
| 68 |
border-radius: 8px !important;
|
| 69 |
padding: 8px 12px !important;
|
| 70 |
}
|
| 71 |
|
| 72 |
.status-orange {
|
| 73 |
-
background: rgba(
|
| 74 |
border: 1px solid var(--warning-amber) !important;
|
| 75 |
-
color: #
|
| 76 |
border-radius: 8px !important;
|
| 77 |
padding: 8px 12px !important;
|
| 78 |
}
|
| 79 |
|
| 80 |
.status-red {
|
| 81 |
-
background: rgba(
|
| 82 |
border: 1px solid var(--danger-red) !important;
|
| 83 |
-
color: #
|
| 84 |
border-radius: 8px !important;
|
| 85 |
padding: 8px 12px !important;
|
| 86 |
}
|
| 87 |
|
|
|
|
| 88 |
.loading-spinner {
|
| 89 |
display: inline-flex;
|
| 90 |
align-items: center;
|
|
@@ -98,7 +113,7 @@
|
|
| 98 |
display: inline-block;
|
| 99 |
width: 18px;
|
| 100 |
height: 18px;
|
| 101 |
-
border: 3px solid rgba(
|
| 102 |
border-top-color: var(--primary-indigo);
|
| 103 |
border-radius: 50%;
|
| 104 |
animation: hr-spin 0.8s linear infinite;
|
|
@@ -110,8 +125,10 @@
|
|
| 110 |
}
|
| 111 |
}
|
| 112 |
|
|
|
|
| 113 |
.page-container {
|
| 114 |
padding: 0.5rem 1.5rem 2rem 1.5rem;
|
|
|
|
| 115 |
}
|
| 116 |
|
| 117 |
.page-title {
|
|
@@ -121,4 +138,15 @@
|
|
| 121 |
margin-bottom: 1rem;
|
| 122 |
padding-bottom: 0.5rem;
|
| 123 |
border-bottom: 2px solid var(--border-soft);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
}
|
|
|
|
| 1 |
+
/* Clinically Healthcare UI Design Kit Styles (Gradio-Optimized) */
|
| 2 |
:root {
|
| 3 |
+
/* Stronger, less washed-out palette */
|
| 4 |
+
--primary-indigo: #4338CA;
|
| 5 |
+
--secondary-cyan: #0891B2;
|
| 6 |
+
|
| 7 |
+
/* Neutral background tuned for UI layering */
|
| 8 |
+
--bg-cream: #F8FAFC;
|
| 9 |
+
|
| 10 |
+
/* Stronger borders to survive Gradio tinting */
|
| 11 |
+
--border-soft: #CBD5E1;
|
| 12 |
+
|
| 13 |
+
/* High-contrast text */
|
| 14 |
+
--text-slate: #0F172A;
|
| 15 |
+
--text-muted: #334155;
|
| 16 |
+
|
| 17 |
+
/* More vivid semantic colors */
|
| 18 |
+
--success-green: #059669;
|
| 19 |
+
--warning-amber: #D97706;
|
| 20 |
+
--danger-red: #DC2626;
|
| 21 |
+
|
| 22 |
--white: #FFFFFF;
|
| 23 |
}
|
| 24 |
|
| 25 |
+
/* Header */
|
| 26 |
.header-box {
|
| 27 |
background: var(--white);
|
| 28 |
padding: 1.5rem;
|
| 29 |
border-bottom: 4px solid var(--primary-indigo);
|
| 30 |
color: var(--primary-indigo);
|
| 31 |
text-align: center;
|
| 32 |
+
box-shadow: 0 4px 16px rgba(67, 56, 202, 0.12);
|
| 33 |
}
|
| 34 |
|
| 35 |
.header-box h1 {
|
|
|
|
| 40 |
color: var(--primary-indigo);
|
| 41 |
}
|
| 42 |
|
| 43 |
+
/* Sidebar Buttons */
|
| 44 |
.sidebar-btn {
|
| 45 |
margin-bottom: 10px !important;
|
| 46 |
font-weight: 600 !important;
|
|
|
|
| 57 |
border-color: var(--primary-indigo) !important;
|
| 58 |
color: var(--white) !important;
|
| 59 |
transform: translateY(-1px);
|
| 60 |
+
box-shadow: 0 6px 18px rgba(67, 56, 202, 0.35);
|
| 61 |
}
|
| 62 |
|
| 63 |
+
/* Status blocks */
|
| 64 |
.vibrant-status .label-wrap span {
|
| 65 |
color: white !important;
|
| 66 |
font-weight: 700 !important;
|
|
|
|
| 74 |
min-height: 44px;
|
| 75 |
}
|
| 76 |
|
| 77 |
+
/* Status variants */
|
| 78 |
.status-green {
|
| 79 |
+
background: rgba(5, 150, 105, 0.15) !important;
|
| 80 |
border: 1px solid var(--success-green) !important;
|
| 81 |
+
color: #064E3B !important;
|
| 82 |
border-radius: 8px !important;
|
| 83 |
padding: 8px 12px !important;
|
| 84 |
}
|
| 85 |
|
| 86 |
.status-orange {
|
| 87 |
+
background: rgba(217, 119, 6, 0.15) !important;
|
| 88 |
border: 1px solid var(--warning-amber) !important;
|
| 89 |
+
color: #78350F !important;
|
| 90 |
border-radius: 8px !important;
|
| 91 |
padding: 8px 12px !important;
|
| 92 |
}
|
| 93 |
|
| 94 |
.status-red {
|
| 95 |
+
background: rgba(220, 38, 38, 0.15) !important;
|
| 96 |
border: 1px solid var(--danger-red) !important;
|
| 97 |
+
color: #7F1D1D !important;
|
| 98 |
border-radius: 8px !important;
|
| 99 |
padding: 8px 12px !important;
|
| 100 |
}
|
| 101 |
|
| 102 |
+
/* Loading spinner */
|
| 103 |
.loading-spinner {
|
| 104 |
display: inline-flex;
|
| 105 |
align-items: center;
|
|
|
|
| 113 |
display: inline-block;
|
| 114 |
width: 18px;
|
| 115 |
height: 18px;
|
| 116 |
+
border: 3px solid rgba(67, 56, 202, 0.2);
|
| 117 |
border-top-color: var(--primary-indigo);
|
| 118 |
border-radius: 50%;
|
| 119 |
animation: hr-spin 0.8s linear infinite;
|
|
|
|
| 125 |
}
|
| 126 |
}
|
| 127 |
|
| 128 |
+
/* Page layout */
|
| 129 |
.page-container {
|
| 130 |
padding: 0.5rem 1.5rem 2rem 1.5rem;
|
| 131 |
+
background: var(--bg-cream);
|
| 132 |
}
|
| 133 |
|
| 134 |
.page-title {
|
|
|
|
| 138 |
margin-bottom: 1rem;
|
| 139 |
padding-bottom: 0.5rem;
|
| 140 |
border-bottom: 2px solid var(--border-soft);
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
/* Optional: improve Gradio component blending */
|
| 144 |
+
input, textarea, select {
|
| 145 |
+
border-color: var(--border-soft) !important;
|
| 146 |
+
color: var(--text-slate);
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
input:focus, textarea:focus, select:focus {
|
| 150 |
+
border-color: var(--primary-indigo) !important;
|
| 151 |
+
box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.15) !important;
|
| 152 |
}
|