Spaces:
Sleeping
Sleeping
Update static/styles.css
Browse files- static/styles.css +142 -89
static/styles.css
CHANGED
|
@@ -16,7 +16,7 @@ body {
|
|
| 16 |
border: 1px solid #ccc;
|
| 17 |
border-radius: 0;
|
| 18 |
overflow: hidden;
|
| 19 |
-
box-shadow: 0 0
|
| 20 |
background-color: white;
|
| 21 |
display: flex;
|
| 22 |
flex-direction: column;
|
|
@@ -26,44 +26,44 @@ body {
|
|
| 26 |
.chat-header {
|
| 27 |
background-color: #0288d1;
|
| 28 |
color: white;
|
| 29 |
-
padding:
|
| 30 |
text-align: center;
|
| 31 |
-
font-size:
|
| 32 |
flex-shrink: 0;
|
| 33 |
}
|
| 34 |
|
| 35 |
.chat-messages {
|
| 36 |
flex: 1;
|
| 37 |
overflow-y: auto;
|
| 38 |
-
padding:
|
| 39 |
box-sizing: border-box;
|
| 40 |
}
|
| 41 |
|
| 42 |
.bot-message {
|
| 43 |
background-color: #e3f2fd;
|
| 44 |
-
padding:
|
| 45 |
-
margin:
|
| 46 |
-
border-radius:
|
| 47 |
max-width: 70%;
|
| 48 |
word-wrap: break-word;
|
| 49 |
-
font-size:
|
| 50 |
}
|
| 51 |
|
| 52 |
.user-message {
|
| 53 |
background-color: #ffebee;
|
| 54 |
-
padding:
|
| 55 |
-
margin:
|
| 56 |
-
border-radius:
|
| 57 |
max-width: 70%;
|
| 58 |
margin-left: auto;
|
| 59 |
text-align: right;
|
| 60 |
word-wrap: break-word;
|
| 61 |
-
font-size:
|
| 62 |
}
|
| 63 |
|
| 64 |
.chat-input {
|
| 65 |
display: flex;
|
| 66 |
-
padding:
|
| 67 |
border-top: 1px solid #ccc;
|
| 68 |
flex-shrink: 0;
|
| 69 |
position: sticky;
|
|
@@ -73,27 +73,27 @@ body {
|
|
| 73 |
|
| 74 |
.chat-input input {
|
| 75 |
flex: 1;
|
| 76 |
-
padding:
|
| 77 |
border: 1px solid #ccc;
|
| 78 |
-
border-radius:
|
| 79 |
box-sizing: border-box;
|
| 80 |
-
font-size:
|
| 81 |
-
min-height:
|
| 82 |
resize: none;
|
| 83 |
overflow-y: hidden;
|
| 84 |
}
|
| 85 |
|
| 86 |
.chat-input button {
|
| 87 |
-
padding:
|
| 88 |
-
margin-left:
|
| 89 |
background-color: #ff8f00;
|
| 90 |
color: white;
|
| 91 |
border: none;
|
| 92 |
-
border-radius:
|
| 93 |
cursor: pointer;
|
| 94 |
transition: background-color 0.3s;
|
| 95 |
-
font-size:
|
| 96 |
-
min-height:
|
| 97 |
}
|
| 98 |
|
| 99 |
.chat-input button:hover {
|
|
@@ -101,49 +101,49 @@ body {
|
|
| 101 |
}
|
| 102 |
|
| 103 |
.ingredients-list {
|
| 104 |
-
max-height:
|
| 105 |
overflow-x: auto;
|
| 106 |
overflow-y: hidden;
|
| 107 |
white-space: nowrap;
|
| 108 |
-
padding:
|
| 109 |
-
margin:
|
| 110 |
background-color: #f9f9f9;
|
| 111 |
-
border-radius:
|
| 112 |
display: flex;
|
| 113 |
-
gap:
|
| 114 |
}
|
| 115 |
|
| 116 |
.ingredient-item {
|
| 117 |
display: inline-flex;
|
| 118 |
flex-direction: column;
|
| 119 |
align-items: center;
|
| 120 |
-
margin-right:
|
| 121 |
cursor: pointer;
|
| 122 |
}
|
| 123 |
|
| 124 |
.ingredient-image {
|
| 125 |
-
width:
|
| 126 |
-
height:
|
| 127 |
object-fit: cover;
|
| 128 |
-
border-radius:
|
| 129 |
}
|
| 130 |
|
| 131 |
.ingredient-name {
|
| 132 |
text-align: center;
|
| 133 |
-
margin-top:
|
| 134 |
-
font-size:
|
| 135 |
color: #333;
|
| 136 |
}
|
| 137 |
|
| 138 |
.show-desc-button {
|
| 139 |
-
padding:
|
| 140 |
-
margin-top:
|
| 141 |
background-color: #4caf50;
|
| 142 |
color: white;
|
| 143 |
border: none;
|
| 144 |
-
border-radius:
|
| 145 |
cursor: pointer;
|
| 146 |
-
font-size:
|
| 147 |
width: 100%;
|
| 148 |
}
|
| 149 |
|
|
@@ -153,15 +153,15 @@ body {
|
|
| 153 |
|
| 154 |
.option-button {
|
| 155 |
display: inline-block;
|
| 156 |
-
padding:
|
| 157 |
-
margin:
|
| 158 |
background-color: #7b1fa2;
|
| 159 |
color: white;
|
| 160 |
border: none;
|
| 161 |
-
border-radius:
|
| 162 |
cursor: pointer;
|
| 163 |
transition: background-color 0.3s;
|
| 164 |
-
font-size:
|
| 165 |
}
|
| 166 |
|
| 167 |
.option-button.green { background-color: #4caf50; }
|
|
@@ -171,49 +171,49 @@ body {
|
|
| 171 |
|
| 172 |
.selection-box {
|
| 173 |
background-color: #e1f5fe;
|
| 174 |
-
padding:
|
| 175 |
border: 1px solid #0288d1;
|
| 176 |
-
border-radius:
|
| 177 |
-
margin:
|
| 178 |
-
font-size:
|
| 179 |
display: flex;
|
| 180 |
flex-wrap: wrap;
|
| 181 |
align-items: center;
|
| 182 |
-
gap:
|
| 183 |
}
|
| 184 |
|
| 185 |
.selection-box span {
|
| 186 |
background-color: #bbdefb;
|
| 187 |
-
padding:
|
| 188 |
-
border-radius:
|
| 189 |
-
margin-right:
|
| 190 |
}
|
| 191 |
|
| 192 |
.selected-item {
|
| 193 |
display: flex;
|
| 194 |
align-items: center;
|
| 195 |
background-color: #bbdefb;
|
| 196 |
-
padding:
|
| 197 |
-
border-radius:
|
| 198 |
-
margin-right:
|
| 199 |
}
|
| 200 |
|
| 201 |
.selected-item-image {
|
| 202 |
-
width:
|
| 203 |
-
height:
|
| 204 |
object-fit: cover;
|
| 205 |
-
border-radius:
|
| 206 |
-
margin-right:
|
| 207 |
}
|
| 208 |
|
| 209 |
.submit-button {
|
| 210 |
-
padding:
|
| 211 |
background-color: #0288d1;
|
| 212 |
color: white;
|
| 213 |
border: none;
|
| 214 |
-
border-radius:
|
| 215 |
cursor: pointer;
|
| 216 |
-
font-size:
|
| 217 |
}
|
| 218 |
|
| 219 |
.submit-button:hover {
|
|
@@ -221,14 +221,14 @@ body {
|
|
| 221 |
}
|
| 222 |
|
| 223 |
.remove-button {
|
| 224 |
-
padding:
|
| 225 |
-
margin-left:
|
| 226 |
background-color: #d32f2f;
|
| 227 |
color: white;
|
| 228 |
border: none;
|
| 229 |
-
border-radius:
|
| 230 |
cursor: pointer;
|
| 231 |
-
font-size:
|
| 232 |
}
|
| 233 |
|
| 234 |
.remove-button:hover {
|
|
@@ -236,21 +236,21 @@ body {
|
|
| 236 |
}
|
| 237 |
|
| 238 |
.manual-input {
|
| 239 |
-
padding:
|
| 240 |
border: 1px solid #0288d1;
|
| 241 |
-
border-radius:
|
| 242 |
-
font-size:
|
| 243 |
-
width:
|
| 244 |
-
margin-left:
|
| 245 |
}
|
| 246 |
|
| 247 |
.dietary-button {
|
| 248 |
-
padding:
|
| 249 |
-
margin-right:
|
| 250 |
border: none;
|
| 251 |
-
border-radius:
|
| 252 |
cursor: pointer;
|
| 253 |
-
font-size:
|
| 254 |
color: white;
|
| 255 |
}
|
| 256 |
|
|
@@ -275,38 +275,37 @@ body {
|
|
| 275 |
|
| 276 |
.popup-content {
|
| 277 |
background-color: #ffffff;
|
| 278 |
-
padding:
|
| 279 |
-
border-radius:
|
| 280 |
-
max-width:
|
| 281 |
-
max-height:
|
| 282 |
overflow-y: auto;
|
| 283 |
text-align: center;
|
| 284 |
-
box-shadow: 0
|
| 285 |
}
|
| 286 |
|
| 287 |
.popup-image {
|
| 288 |
-
width:
|
| 289 |
-
height:
|
| 290 |
object-fit: cover;
|
| 291 |
-
border-radius:
|
| 292 |
-
margin-bottom:
|
| 293 |
}
|
| 294 |
|
| 295 |
.button-container {
|
| 296 |
display: flex;
|
| 297 |
justify-content: center;
|
| 298 |
-
gap:
|
| 299 |
-
margin-top:
|
| 300 |
}
|
| 301 |
|
| 302 |
.popup-add-button {
|
| 303 |
-
padding:
|
| 304 |
background-color: #4caf50;
|
| 305 |
color: white;
|
| 306 |
border: none;
|
| 307 |
-
border-radius:
|
| 308 |
cursor: pointer;
|
| 309 |
-
font-size: 8px;
|
| 310 |
}
|
| 311 |
|
| 312 |
.popup-add-button:hover {
|
|
@@ -314,15 +313,69 @@ body {
|
|
| 314 |
}
|
| 315 |
|
| 316 |
.popup-close-button {
|
| 317 |
-
padding:
|
| 318 |
background-color: #d32f2f;
|
| 319 |
color: white;
|
| 320 |
border: none;
|
| 321 |
-
border-radius:
|
| 322 |
cursor: pointer;
|
| 323 |
-
font-size: 8px;
|
| 324 |
}
|
| 325 |
|
| 326 |
.popup-close-button:hover {
|
| 327 |
background-color: #b71c1c;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 328 |
}
|
|
|
|
| 16 |
border: 1px solid #ccc;
|
| 17 |
border-radius: 0;
|
| 18 |
overflow: hidden;
|
| 19 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
| 20 |
background-color: white;
|
| 21 |
display: flex;
|
| 22 |
flex-direction: column;
|
|
|
|
| 26 |
.chat-header {
|
| 27 |
background-color: #0288d1;
|
| 28 |
color: white;
|
| 29 |
+
padding: 10px;
|
| 30 |
text-align: center;
|
| 31 |
+
font-size: 18px;
|
| 32 |
flex-shrink: 0;
|
| 33 |
}
|
| 34 |
|
| 35 |
.chat-messages {
|
| 36 |
flex: 1;
|
| 37 |
overflow-y: auto;
|
| 38 |
+
padding: 10px;
|
| 39 |
box-sizing: border-box;
|
| 40 |
}
|
| 41 |
|
| 42 |
.bot-message {
|
| 43 |
background-color: #e3f2fd;
|
| 44 |
+
padding: 10px;
|
| 45 |
+
margin: 10px 0;
|
| 46 |
+
border-radius: 5px;
|
| 47 |
max-width: 70%;
|
| 48 |
word-wrap: break-word;
|
| 49 |
+
font-size: 14px;
|
| 50 |
}
|
| 51 |
|
| 52 |
.user-message {
|
| 53 |
background-color: #ffebee;
|
| 54 |
+
padding: 10px;
|
| 55 |
+
margin: 10px 0;
|
| 56 |
+
border-radius: 5px;
|
| 57 |
max-width: 70%;
|
| 58 |
margin-left: auto;
|
| 59 |
text-align: right;
|
| 60 |
word-wrap: break-word;
|
| 61 |
+
font-size: 14px;
|
| 62 |
}
|
| 63 |
|
| 64 |
.chat-input {
|
| 65 |
display: flex;
|
| 66 |
+
padding: 10px;
|
| 67 |
border-top: 1px solid #ccc;
|
| 68 |
flex-shrink: 0;
|
| 69 |
position: sticky;
|
|
|
|
| 73 |
|
| 74 |
.chat-input input {
|
| 75 |
flex: 1;
|
| 76 |
+
padding: 8px;
|
| 77 |
border: 1px solid #ccc;
|
| 78 |
+
border-radius: 5px;
|
| 79 |
box-sizing: border-box;
|
| 80 |
+
font-size: 14px;
|
| 81 |
+
min-height: 40px;
|
| 82 |
resize: none;
|
| 83 |
overflow-y: hidden;
|
| 84 |
}
|
| 85 |
|
| 86 |
.chat-input button {
|
| 87 |
+
padding: 8px 15px;
|
| 88 |
+
margin-left: 10px;
|
| 89 |
background-color: #ff8f00;
|
| 90 |
color: white;
|
| 91 |
border: none;
|
| 92 |
+
border-radius: 5px;
|
| 93 |
cursor: pointer;
|
| 94 |
transition: background-color 0.3s;
|
| 95 |
+
font-size: 14px;
|
| 96 |
+
min-height: 40px;
|
| 97 |
}
|
| 98 |
|
| 99 |
.chat-input button:hover {
|
|
|
|
| 101 |
}
|
| 102 |
|
| 103 |
.ingredients-list {
|
| 104 |
+
max-height: 150px;
|
| 105 |
overflow-x: auto;
|
| 106 |
overflow-y: hidden;
|
| 107 |
white-space: nowrap;
|
| 108 |
+
padding: 10px;
|
| 109 |
+
margin: 10px 0;
|
| 110 |
background-color: #f9f9f9;
|
| 111 |
+
border-radius: 5px;
|
| 112 |
display: flex;
|
| 113 |
+
gap: 10px;
|
| 114 |
}
|
| 115 |
|
| 116 |
.ingredient-item {
|
| 117 |
display: inline-flex;
|
| 118 |
flex-direction: column;
|
| 119 |
align-items: center;
|
| 120 |
+
margin-right: 10px;
|
| 121 |
cursor: pointer;
|
| 122 |
}
|
| 123 |
|
| 124 |
.ingredient-image {
|
| 125 |
+
width: 50px;
|
| 126 |
+
height: 50px;
|
| 127 |
object-fit: cover;
|
| 128 |
+
border-radius: 5px;
|
| 129 |
}
|
| 130 |
|
| 131 |
.ingredient-name {
|
| 132 |
text-align: center;
|
| 133 |
+
margin-top: 5px;
|
| 134 |
+
font-size: 12px;
|
| 135 |
color: #333;
|
| 136 |
}
|
| 137 |
|
| 138 |
.show-desc-button {
|
| 139 |
+
padding: 5px 10px;
|
| 140 |
+
margin-top: 5px;
|
| 141 |
background-color: #4caf50;
|
| 142 |
color: white;
|
| 143 |
border: none;
|
| 144 |
+
border-radius: 5px;
|
| 145 |
cursor: pointer;
|
| 146 |
+
font-size: 10px;
|
| 147 |
width: 100%;
|
| 148 |
}
|
| 149 |
|
|
|
|
| 153 |
|
| 154 |
.option-button {
|
| 155 |
display: inline-block;
|
| 156 |
+
padding: 10px 15px;
|
| 157 |
+
margin: 5px;
|
| 158 |
background-color: #7b1fa2;
|
| 159 |
color: white;
|
| 160 |
border: none;
|
| 161 |
+
border-radius: 5px;
|
| 162 |
cursor: pointer;
|
| 163 |
transition: background-color 0.3s;
|
| 164 |
+
font-size: 14px;
|
| 165 |
}
|
| 166 |
|
| 167 |
.option-button.green { background-color: #4caf50; }
|
|
|
|
| 171 |
|
| 172 |
.selection-box {
|
| 173 |
background-color: #e1f5fe;
|
| 174 |
+
padding: 10px;
|
| 175 |
border: 1px solid #0288d1;
|
| 176 |
+
border-radius: 5px;
|
| 177 |
+
margin: 10px 0;
|
| 178 |
+
font-size: 14px;
|
| 179 |
display: flex;
|
| 180 |
flex-wrap: wrap;
|
| 181 |
align-items: center;
|
| 182 |
+
gap: 10px;
|
| 183 |
}
|
| 184 |
|
| 185 |
.selection-box span {
|
| 186 |
background-color: #bbdefb;
|
| 187 |
+
padding: 5px 10px;
|
| 188 |
+
border-radius: 5px;
|
| 189 |
+
margin-right: 5px;
|
| 190 |
}
|
| 191 |
|
| 192 |
.selected-item {
|
| 193 |
display: flex;
|
| 194 |
align-items: center;
|
| 195 |
background-color: #bbdefb;
|
| 196 |
+
padding: 5px 10px;
|
| 197 |
+
border-radius: 5px;
|
| 198 |
+
margin-right: 5px;
|
| 199 |
}
|
| 200 |
|
| 201 |
.selected-item-image {
|
| 202 |
+
width: 30px;
|
| 203 |
+
height: 30px;
|
| 204 |
object-fit: cover;
|
| 205 |
+
border-radius: 5px;
|
| 206 |
+
margin-right: 5px;
|
| 207 |
}
|
| 208 |
|
| 209 |
.submit-button {
|
| 210 |
+
padding: 8px 15px;
|
| 211 |
background-color: #0288d1;
|
| 212 |
color: white;
|
| 213 |
border: none;
|
| 214 |
+
border-radius: 5px;
|
| 215 |
cursor: pointer;
|
| 216 |
+
font-size: 14px;
|
| 217 |
}
|
| 218 |
|
| 219 |
.submit-button:hover {
|
|
|
|
| 221 |
}
|
| 222 |
|
| 223 |
.remove-button {
|
| 224 |
+
padding: 5px 10px;
|
| 225 |
+
margin-left: 5px;
|
| 226 |
background-color: #d32f2f;
|
| 227 |
color: white;
|
| 228 |
border: none;
|
| 229 |
+
border-radius: 5px;
|
| 230 |
cursor: pointer;
|
| 231 |
+
font-size: 12px;
|
| 232 |
}
|
| 233 |
|
| 234 |
.remove-button:hover {
|
|
|
|
| 236 |
}
|
| 237 |
|
| 238 |
.manual-input {
|
| 239 |
+
padding: 5px;
|
| 240 |
border: 1px solid #0288d1;
|
| 241 |
+
border-radius: 5px;
|
| 242 |
+
font-size: 14px;
|
| 243 |
+
width: 150px;
|
| 244 |
+
margin-left: 10px;
|
| 245 |
}
|
| 246 |
|
| 247 |
.dietary-button {
|
| 248 |
+
padding: 5px 10px;
|
| 249 |
+
margin-right: 5px;
|
| 250 |
border: none;
|
| 251 |
+
border-radius: 5px;
|
| 252 |
cursor: pointer;
|
| 253 |
+
font-size: 12px;
|
| 254 |
color: white;
|
| 255 |
}
|
| 256 |
|
|
|
|
| 275 |
|
| 276 |
.popup-content {
|
| 277 |
background-color: #ffffff;
|
| 278 |
+
padding: 15px;
|
| 279 |
+
border-radius: 8px;
|
| 280 |
+
max-width: 90%;
|
| 281 |
+
max-height: 80vh;
|
| 282 |
overflow-y: auto;
|
| 283 |
text-align: center;
|
| 284 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 285 |
}
|
| 286 |
|
| 287 |
.popup-image {
|
| 288 |
+
width: 80px;
|
| 289 |
+
height: 80px;
|
| 290 |
object-fit: cover;
|
| 291 |
+
border-radius: 5px;
|
| 292 |
+
margin-bottom: 10px;
|
| 293 |
}
|
| 294 |
|
| 295 |
.button-container {
|
| 296 |
display: flex;
|
| 297 |
justify-content: center;
|
| 298 |
+
gap: 10px;
|
| 299 |
+
margin-top: 10px;
|
| 300 |
}
|
| 301 |
|
| 302 |
.popup-add-button {
|
| 303 |
+
padding: 6px 12px;
|
| 304 |
background-color: #4caf50;
|
| 305 |
color: white;
|
| 306 |
border: none;
|
| 307 |
+
border-radius: 5px;
|
| 308 |
cursor: pointer;
|
|
|
|
| 309 |
}
|
| 310 |
|
| 311 |
.popup-add-button:hover {
|
|
|
|
| 313 |
}
|
| 314 |
|
| 315 |
.popup-close-button {
|
| 316 |
+
padding: 6px 12px;
|
| 317 |
background-color: #d32f2f;
|
| 318 |
color: white;
|
| 319 |
border: none;
|
| 320 |
+
border-radius: 5px;
|
| 321 |
cursor: pointer;
|
|
|
|
| 322 |
}
|
| 323 |
|
| 324 |
.popup-close-button:hover {
|
| 325 |
background-color: #b71c1c;
|
| 326 |
+
}
|
| 327 |
+
|
| 328 |
+
/* Mobile Responsiveness */
|
| 329 |
+
@media (max-width: 768px) {
|
| 330 |
+
.chat-container {
|
| 331 |
+
height: 100vh;
|
| 332 |
+
margin: 0;
|
| 333 |
+
}
|
| 334 |
+
.chat-header {
|
| 335 |
+
font-size: 16px;
|
| 336 |
+
}
|
| 337 |
+
.chat-messages {
|
| 338 |
+
padding: 5px;
|
| 339 |
+
}
|
| 340 |
+
.chat-input input, .chat-input button {
|
| 341 |
+
padding: 6px;
|
| 342 |
+
font-size: 12px;
|
| 343 |
+
min-height: 35px;
|
| 344 |
+
}
|
| 345 |
+
.ingredients-list {
|
| 346 |
+
max-height: 120px;
|
| 347 |
+
}
|
| 348 |
+
.ingredient-image {
|
| 349 |
+
width: 40px;
|
| 350 |
+
height: 40px;
|
| 351 |
+
}
|
| 352 |
+
.ingredient-name {
|
| 353 |
+
font-size: 10px;
|
| 354 |
+
}
|
| 355 |
+
.show-desc-button {
|
| 356 |
+
font-size: 8px;
|
| 357 |
+
padding: 3px 6px;
|
| 358 |
+
}
|
| 359 |
+
.popup-content {
|
| 360 |
+
max-width: 85%;
|
| 361 |
+
padding: 10px;
|
| 362 |
+
}
|
| 363 |
+
.popup-image {
|
| 364 |
+
width: 60px;
|
| 365 |
+
height: 60px;
|
| 366 |
+
}
|
| 367 |
+
.popup-add-button, .popup-close-button {
|
| 368 |
+
padding: 4px 8px;
|
| 369 |
+
font-size: 10px;
|
| 370 |
+
}
|
| 371 |
+
.selection-box {
|
| 372 |
+
gap: 5px;
|
| 373 |
+
}
|
| 374 |
+
.selected-item {
|
| 375 |
+
padding: 3px 8px;
|
| 376 |
+
}
|
| 377 |
+
.remove-button {
|
| 378 |
+
padding: 3px 8px;
|
| 379 |
+
font-size: 10px;
|
| 380 |
+
}
|
| 381 |
}
|