Spaces:
Sleeping
Sleeping
Commit
·
f53a587
1
Parent(s):
f545f9a
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ css = """
|
|
| 52 |
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600;700&display=swap');
|
| 53 |
|
| 54 |
body {
|
| 55 |
-
background-color: #
|
| 56 |
font-family: 'Crimson Pro', 'Palatino', serif;
|
| 57 |
max-width: 100%;
|
| 58 |
overflow-x: hidden;
|
|
@@ -107,7 +107,24 @@ body {
|
|
| 107 |
opacity: 0.9;
|
| 108 |
margin-top: 5px;
|
| 109 |
}
|
| 110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
background: linear-gradient(to right, #4a90e2, #75c6ef) !important;
|
| 112 |
color: white !important;
|
| 113 |
border: none !important;
|
|
@@ -117,7 +134,7 @@ button, .gradio-button {
|
|
| 117 |
transition: all 0.3s ease !important;
|
| 118 |
font-family: 'Crimson Pro', serif !important;
|
| 119 |
}
|
| 120 |
-
button:hover, .gradio-button:hover {
|
| 121 |
transform: translateY(-1px) !important;
|
| 122 |
box-shadow: 0 3px 6px rgba(74, 144, 226, 0.2) !important;
|
| 123 |
}
|
|
@@ -147,6 +164,10 @@ button:hover, .gradio-button:hover {
|
|
| 147 |
font-family: 'Crimson Pro', serif !important;
|
| 148 |
font-size: 16px !important;
|
| 149 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
.chatbot .user-message {
|
| 151 |
color: #333333 !important;
|
| 152 |
}
|
|
|
|
| 52 |
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;500;600;700&display=swap');
|
| 53 |
|
| 54 |
body {
|
| 55 |
+
background-color: #f0f5fb; /* Light pastel blue background */
|
| 56 |
font-family: 'Crimson Pro', 'Palatino', serif;
|
| 57 |
max-width: 100%;
|
| 58 |
overflow-x: hidden;
|
|
|
|
| 107 |
opacity: 0.9;
|
| 108 |
margin-top: 5px;
|
| 109 |
}
|
| 110 |
+
/* Send and Clear Chat buttons with gold accents */
|
| 111 |
+
button[aria-label="Send"], button[aria-label="Clear Chat"] {
|
| 112 |
+
background: white !important;
|
| 113 |
+
color: #333 !important;
|
| 114 |
+
border: 2px solid #e6c200 !important;
|
| 115 |
+
border-radius: 8px !important;
|
| 116 |
+
padding: 8px 16px !important;
|
| 117 |
+
font-weight: 600 !important;
|
| 118 |
+
transition: all 0.3s ease !important;
|
| 119 |
+
font-family: 'Crimson Pro', serif !important;
|
| 120 |
+
}
|
| 121 |
+
button[aria-label="Send"]:hover, button[aria-label="Clear Chat"]:hover {
|
| 122 |
+
background: #fff9e6 !important;
|
| 123 |
+
transform: translateY(-1px) !important;
|
| 124 |
+
box-shadow: 0 3px 6px rgba(230, 194, 0, 0.2) !important;
|
| 125 |
+
}
|
| 126 |
+
/* Other buttons remain with blue gradient */
|
| 127 |
+
button:not([aria-label="Send"]):not([aria-label="Clear Chat"]), .gradio-button:not([aria-label="Send"]):not([aria-label="Clear Chat"]) {
|
| 128 |
background: linear-gradient(to right, #4a90e2, #75c6ef) !important;
|
| 129 |
color: white !important;
|
| 130 |
border: none !important;
|
|
|
|
| 134 |
transition: all 0.3s ease !important;
|
| 135 |
font-family: 'Crimson Pro', serif !important;
|
| 136 |
}
|
| 137 |
+
button:not([aria-label="Send"]):not([aria-label="Clear Chat"]):hover, .gradio-button:not([aria-label="Send"]):not([aria-label="Clear Chat"]):hover {
|
| 138 |
transform: translateY(-1px) !important;
|
| 139 |
box-shadow: 0 3px 6px rgba(74, 144, 226, 0.2) !important;
|
| 140 |
}
|
|
|
|
| 164 |
font-family: 'Crimson Pro', serif !important;
|
| 165 |
font-size: 16px !important;
|
| 166 |
}
|
| 167 |
+
/* Remove the blue background behind message text */
|
| 168 |
+
.chatbot .user-message p, .chatbot .assistant-message p {
|
| 169 |
+
background-color: transparent !important;
|
| 170 |
+
}
|
| 171 |
.chatbot .user-message {
|
| 172 |
color: #333333 !important;
|
| 173 |
}
|