Spaces:
Sleeping
Sleeping
Create style.css - with initial settings to match the website.
#4
by STSDerek - opened
style.css
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* style.css - Custom Chatbot Styling for Softouch Systems */
|
| 2 |
+
:root {
|
| 3 |
+
--primary-color: #0056b3; /* Dark Blue (like your headers) */
|
| 4 |
+
--secondary-color: #e9ecef; /* Light Gray (like your background) */
|
| 5 |
+
--accent-color: #ff6b00; /* Orange (like your buttons) */
|
| 6 |
+
--text-color: #333; /* Dark Gray (like your text) */
|
| 7 |
+
--light-text: #f8f9fa; /* White (for contrast) */
|
| 8 |
+
}
|
| 9 |
+
|
| 10 |
+
/* Chatbot Container */
|
| 11 |
+
.gradio-container {
|
| 12 |
+
font-family: 'Arial', sans-serif;
|
| 13 |
+
background-color: var(--secondary-color);
|
| 14 |
+
border-radius: 8px;
|
| 15 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
/* Header Styling */
|
| 19 |
+
.gradio-header {
|
| 20 |
+
background-color: var(--primary-color);
|
| 21 |
+
color: var(--light-text);
|
| 22 |
+
padding: 12px 16px;
|
| 23 |
+
border-radius: 8px 8px 0 0;
|
| 24 |
+
font-weight: bold;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
/* Chat Messages */
|
| 28 |
+
.user-message {
|
| 29 |
+
background-color: var(--primary-color);
|
| 30 |
+
color: var(--light-text);
|
| 31 |
+
border-radius: 18px 18px 0 18px;
|
| 32 |
+
padding: 10px 16px;
|
| 33 |
+
margin: 8px 0;
|
| 34 |
+
max-width: 80%;
|
| 35 |
+
align-self: flex-end;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.bot-message {
|
| 39 |
+
background-color: white;
|
| 40 |
+
color: var(--text-color);
|
| 41 |
+
border-radius: 18px 18px 18px 0;
|
| 42 |
+
padding: 10px 16px;
|
| 43 |
+
margin: 8px 0;
|
| 44 |
+
max-width: 80%;
|
| 45 |
+
align-self: flex-start;
|
| 46 |
+
border: 1px solid #ddd;
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
/* Input & Buttons */
|
| 50 |
+
.gradio-input {
|
| 51 |
+
border: 1px solid #ced4da;
|
| 52 |
+
border-radius: 4px;
|
| 53 |
+
padding: 8px 12px;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
.gradio-button {
|
| 57 |
+
background-color: var(--accent-color) !important;
|
| 58 |
+
color: white !important;
|
| 59 |
+
border: none !important;
|
| 60 |
+
border-radius: 4px !important;
|
| 61 |
+
padding: 8px 16px !important;
|
| 62 |
+
cursor: pointer !important;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.gradio-button:hover {
|
| 66 |
+
background-color: #e05d00 !important;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
/* Footer (if needed) */
|
| 70 |
+
.gradio-footer {
|
| 71 |
+
font-size: 12px;
|
| 72 |
+
color: #6c757d;
|
| 73 |
+
text-align: center;
|
| 74 |
+
padding: 8px;
|
| 75 |
+
}
|