Update static/styles.css
Browse files- static/styles.css +61 -49
static/styles.css
CHANGED
|
@@ -1,84 +1,96 @@
|
|
| 1 |
-
/* Basic Reset */
|
| 2 |
-
* {
|
| 3 |
-
margin: 0;
|
| 4 |
-
padding: 0;
|
| 5 |
-
box-sizing: border-box;
|
| 6 |
-
}
|
| 7 |
-
|
| 8 |
-
/* Page Layout */
|
| 9 |
body {
|
| 10 |
-
font-family:
|
| 11 |
-
background-color: #
|
| 12 |
display: flex;
|
| 13 |
justify-content: center;
|
| 14 |
align-items: center;
|
| 15 |
height: 100vh;
|
|
|
|
| 16 |
}
|
| 17 |
|
| 18 |
.chat-container {
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
max-width: 500px;
|
| 22 |
border-radius: 10px;
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
text-align: center;
|
|
|
|
| 26 |
}
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
overflow-y: auto;
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
padding: 10px;
|
| 34 |
-
|
| 35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
border-radius: 5px;
|
| 37 |
}
|
| 38 |
|
| 39 |
-
.
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
}
|
| 42 |
|
| 43 |
-
.
|
| 44 |
-
color: #
|
| 45 |
-
font-weight: bold;
|
| 46 |
}
|
| 47 |
|
| 48 |
-
.
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
| 50 |
}
|
| 51 |
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
font-size: 16px;
|
| 55 |
}
|
| 56 |
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
justify-content: space-between;
|
| 61 |
}
|
| 62 |
|
| 63 |
-
.
|
| 64 |
-
width: 80%;
|
| 65 |
padding: 10px;
|
| 66 |
-
|
| 67 |
-
border: 1px solid #ccc;
|
| 68 |
-
border-radius: 5px;
|
| 69 |
-
margin-right: 10px;
|
| 70 |
}
|
| 71 |
|
| 72 |
-
.
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
background-color: #
|
| 76 |
-
color: white;
|
| 77 |
-
border: none;
|
| 78 |
border-radius: 5px;
|
| 79 |
cursor: pointer;
|
| 80 |
}
|
| 81 |
|
| 82 |
-
.
|
| 83 |
-
background-color: #
|
| 84 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
+
font-family: Arial, sans-serif;
|
| 3 |
+
background-color: #f4f4f4;
|
| 4 |
display: flex;
|
| 5 |
justify-content: center;
|
| 6 |
align-items: center;
|
| 7 |
height: 100vh;
|
| 8 |
+
margin: 0;
|
| 9 |
}
|
| 10 |
|
| 11 |
.chat-container {
|
| 12 |
+
width: 400px;
|
| 13 |
+
border: 1px solid #ddd;
|
|
|
|
| 14 |
border-radius: 10px;
|
| 15 |
+
background-color: #fff;
|
| 16 |
+
overflow: hidden;
|
| 17 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
.chatbox {
|
| 21 |
+
display: flex;
|
| 22 |
+
flex-direction: column;
|
| 23 |
+
height: 400px;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
.chatbox-header {
|
| 27 |
+
background-color: #4CAF50;
|
| 28 |
+
color: white;
|
| 29 |
text-align: center;
|
| 30 |
+
padding: 10px;
|
| 31 |
}
|
| 32 |
|
| 33 |
+
.chatbox-body {
|
| 34 |
+
flex: 1;
|
| 35 |
+
padding: 10px;
|
| 36 |
overflow-y: auto;
|
| 37 |
+
height: 300px;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.chatbox-footer {
|
| 41 |
+
display: flex;
|
| 42 |
padding: 10px;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.chatbox-footer input {
|
| 46 |
+
flex: 1;
|
| 47 |
+
padding: 5px;
|
| 48 |
+
border: 1px solid #ddd;
|
| 49 |
border-radius: 5px;
|
| 50 |
}
|
| 51 |
|
| 52 |
+
.chatbox-footer button {
|
| 53 |
+
padding: 5px 10px;
|
| 54 |
+
background-color: #4CAF50;
|
| 55 |
+
color: white;
|
| 56 |
+
border: none;
|
| 57 |
+
border-radius: 5px;
|
| 58 |
+
cursor: pointer;
|
| 59 |
}
|
| 60 |
|
| 61 |
+
.chatbox-footer button:hover {
|
| 62 |
+
background-color: #45a049;
|
|
|
|
| 63 |
}
|
| 64 |
|
| 65 |
+
.message {
|
| 66 |
+
margin: 10px 0;
|
| 67 |
+
padding: 8px;
|
| 68 |
+
border-radius: 5px;
|
| 69 |
+
background-color: #f1f1f1;
|
| 70 |
}
|
| 71 |
|
| 72 |
+
.bot-message {
|
| 73 |
+
background-color: #e8f5e9;
|
|
|
|
| 74 |
}
|
| 75 |
|
| 76 |
+
.user-message {
|
| 77 |
+
background-color: #e1f5fe;
|
| 78 |
+
text-align: right;
|
|
|
|
| 79 |
}
|
| 80 |
|
| 81 |
+
.food-items {
|
|
|
|
| 82 |
padding: 10px;
|
| 83 |
+
display: none;
|
|
|
|
|
|
|
|
|
|
| 84 |
}
|
| 85 |
|
| 86 |
+
.food-items div {
|
| 87 |
+
margin: 5px;
|
| 88 |
+
padding: 10px;
|
| 89 |
+
background-color: #e8f5e9;
|
|
|
|
|
|
|
| 90 |
border-radius: 5px;
|
| 91 |
cursor: pointer;
|
| 92 |
}
|
| 93 |
|
| 94 |
+
.food-items div:hover {
|
| 95 |
+
background-color: #c8e6c9;
|
| 96 |
}
|