Spaces:
Sleeping
Sleeping
Rajan Sharma
commited on
Create style.css
Browse files
style.css
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* style.css - Professional Medical Aesthetic Theme */
|
| 2 |
+
|
| 3 |
+
/* 1. Define the Color Palette */
|
| 4 |
+
:root {
|
| 5 |
+
--color-primary-blue: #007BFF; /* A calming, professional blue */
|
| 6 |
+
--color-accent-teal: #17A2B8; /* A modern, clean teal for highlights */
|
| 7 |
+
--color-background-white: #FFFFFF; /* Clean white background */
|
| 8 |
+
--color-background-light-gray: #F8F9FA; /* A very light gray for subtle contrast */
|
| 9 |
+
--color-text-dark: #212529; /* High-contrast, readable dark text */
|
| 10 |
+
--color-text-light: #6C757D; /* Lighter text for secondary info */
|
| 11 |
+
--color-border: #DEE2E6; /* Subtle borders for components */
|
| 12 |
+
--font-primary: 'Inter', 'Helvetica Neue', sans-serif; /* Modern, clean sans-serif font */
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
/* 2. General Body and Layout Styling */
|
| 16 |
+
body, #root {
|
| 17 |
+
background-color: var(--color-background-light-gray);
|
| 18 |
+
font-family: var(--font-primary);
|
| 19 |
+
color: var(--color-text-dark);
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
/* 3. Dashboard Component Styling */
|
| 23 |
+
.gradio-container {
|
| 24 |
+
border-radius: 12px !important;
|
| 25 |
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
|
| 26 |
+
background: var(--color-background-white) !important;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
/* Make buttons match the theme */
|
| 30 |
+
.gradio-button {
|
| 31 |
+
background-color: var(--color-primary-blue) !important;
|
| 32 |
+
color: white !important;
|
| 33 |
+
border: none !important;
|
| 34 |
+
border-radius: 8px !important;
|
| 35 |
+
font-weight: 600 !important;
|
| 36 |
+
transition: background-color 0.3s ease !important;
|
| 37 |
+
}
|
| 38 |
+
.gradio-button:hover {
|
| 39 |
+
background-color: #0056b3 !important; /* Darker blue on hover */
|
| 40 |
+
}
|
| 41 |
+
.gradio-button.secondary {
|
| 42 |
+
background-color: var(--color-accent-teal) !important;
|
| 43 |
+
}
|
| 44 |
+
.gradio-button.secondary:hover {
|
| 45 |
+
background-color: #117a8b !important; /* Darker teal on hover */
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
/* Style the text boxes and chat */
|
| 49 |
+
textarea, .gradio-chatbot {
|
| 50 |
+
border: 1px solid var(--color-border) !important;
|
| 51 |
+
border-radius: 8px !important;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
/* Style the headings and titles for a professional look */
|
| 55 |
+
h1, h2 {
|
| 56 |
+
color: var(--color-primary-blue);
|
| 57 |
+
font-weight: 700;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
/* Style the tabs for the results area */
|
| 61 |
+
.tab-nav button {
|
| 62 |
+
background-color: var(--color-background-light-gray) !important;
|
| 63 |
+
border-radius: 8px 8px 0 0 !important;
|
| 64 |
+
border-bottom: 2px solid transparent !important;
|
| 65 |
+
}
|
| 66 |
+
.tab-nav button.selected {
|
| 67 |
+
background-color: var(--color-background-white) !important;
|
| 68 |
+
border-bottom: 2px solid var(--color-primary-blue) !important;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
/* Generous spacing for a modern feel */
|
| 72 |
+
.gradio-container .form {
|
| 73 |
+
padding: 20px !important;
|
| 74 |
+
gap: 20px !important;
|
| 75 |
+
}
|