lokesh341 commited on
Commit
cc52c63
·
verified ·
1 Parent(s): c7236bd

Update static/styles.css

Browse files
Files changed (1) hide show
  1. static/styles.css +110 -39
static/styles.css CHANGED
@@ -11,33 +11,32 @@ body {
11
 
12
  .chat-container {
13
  width: 100%;
14
- max-width: 400px;
15
- height: 80vh;
16
- max-height: 600px;
17
  border: 1px solid #ccc;
18
- border-radius: 10px;
19
  overflow: hidden;
20
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
21
  background-color: white;
22
  display: flex;
23
  flex-direction: column;
24
- margin: 10px;
25
  }
26
 
27
  .chat-header {
28
- background-color: #ffbd80; /* Changed to light orange */
29
  color: white;
30
  padding: 10px;
31
  text-align: center;
32
- font-size: 20px;
33
  flex-shrink: 0;
34
  }
35
 
36
  .chat-messages {
37
  flex: 1;
38
- padding: 15px;
 
39
  box-sizing: border-box;
40
- /* Removed overflow-y: auto to disable scrolling */
41
  }
42
 
43
  .bot-message {
@@ -67,6 +66,9 @@ body {
67
  padding: 10px;
68
  border-top: 1px solid #ccc;
69
  flex-shrink: 0;
 
 
 
70
  }
71
 
72
  .chat-input input {
@@ -77,12 +79,8 @@ body {
77
  box-sizing: border-box;
78
  font-size: 14px;
79
  min-height: 40px;
80
- }
81
-
82
- .chat-input input:focus {
83
- border-color: #4CAF50; /* Green border when typing */
84
- outline: none;
85
- box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
86
  }
87
 
88
  .chat-input button {
@@ -99,51 +97,124 @@ body {
99
  }
100
 
101
  .chat-input button:hover {
102
- background-color: #ffa94d; /* Slightly darker light orange for hover */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  }
104
 
105
- /* Media Queries for Mobile View */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  @media (max-width: 768px) {
107
  .chat-container {
108
  max-width: 100%;
109
- height: 90vh;
110
- margin: 5px;
111
  }
112
 
113
  .chat-header {
114
  font-size: 18px;
115
- background-color: #ffbd80; /* Light orange for mobile */
116
  }
117
 
118
  .chat-messages {
119
  padding: 10px;
120
- /* No scrolling */
121
- }
122
-
123
- .chat-input input {
124
- padding: 6px;
125
- font-size: 12px;
126
- min-height: 35px;
127
- }
128
-
129
- .chat-input input:focus {
130
- border-color: #4CAF50; /* Green when typing */
131
- box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
132
  }
133
 
 
134
  .chat-input button {
135
  padding: 6px;
136
  font-size: 12px;
137
  min-height: 35px;
138
- background-color: #ffbd80; /* Light orange for mobile */
139
- }
140
-
141
- .chat-input button:hover {
142
- background-color: #ffa94d;
143
  }
144
 
145
- .bot-message,
146
- .user-message {
147
  font-size: 12px;
 
148
  }
149
  }
 
11
 
12
  .chat-container {
13
  width: 100%;
14
+ max-width: 100%;
15
+ height: 100vh;
 
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;
23
+ margin: 0;
24
  }
25
 
26
  .chat-header {
27
+ background-color: #4caf50; /* Changed to green */
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 {
 
66
  padding: 10px;
67
  border-top: 1px solid #ccc;
68
  flex-shrink: 0;
69
+ position: sticky;
70
+ bottom: 0;
71
+ background-color: white;
72
  }
73
 
74
  .chat-input input {
 
79
  box-sizing: border-box;
80
  font-size: 14px;
81
  min-height: 40px;
82
+ resize: none; /* Prevents resizing */
83
+ overflow-y: hidden; /* Prevents scrolling in input */
 
 
 
 
84
  }
85
 
86
  .chat-input button {
 
97
  }
98
 
99
  .chat-input button:hover {
100
+ background-color: #ffa550; /* Slightly darker light orange for hover */
101
+ }
102
+
103
+ /* Rest of your existing CSS remains the same, just updating colors where needed */
104
+ .option-button {
105
+ display: inline-block;
106
+ padding: 10px 15px;
107
+ margin: 5px;
108
+ background-color: #9c27b0;
109
+ color: white;
110
+ border: none;
111
+ border-radius: 5px;
112
+ cursor: pointer;
113
+ transition: background-color 0.3s;
114
+ font-size: 14px;
115
+ min-width: 100px;
116
+ text-align: center;
117
+ }
118
+
119
+ .option-button.green {
120
+ background-color: #4caf50;
121
+ }
122
+
123
+ .option-button.red {
124
+ background-color: #f44336;
125
+ }
126
+
127
+ .option-button.gray {
128
+ background-color: #9e9e9e;
129
+ }
130
+
131
+ .option-button:hover {
132
+ opacity: 0.9;
133
+ }
134
+
135
+ .ingredients-list {
136
+ max-height: 150px;
137
+ overflow-x: auto;
138
+ overflow-y: hidden;
139
+ white-space: nowrap;
140
+ padding: 10px;
141
+ margin: 10px 0;
142
+ background-color: #f9f9f9;
143
+ border-radius: 5px;
144
+ display: flex;
145
+ gap: 10px;
146
+ }
147
+
148
+ .ingredients-list .ingredient-item {
149
+ display: inline-flex;
150
+ flex-direction: column;
151
+ align-items: center;
152
+ margin-right: 15px;
153
+ }
154
+
155
+ .ingredients-list img {
156
+ width: 60px;
157
+ height: 60px;
158
+ object-fit: cover;
159
+ border-radius: 5px;
160
+ }
161
+
162
+ .ingredients-list button {
163
+ padding: 5px 10px;
164
+ margin-top: 5px;
165
+ background-color: #4caf50;
166
+ color: white;
167
+ border: none;
168
+ border-radius: 5px;
169
+ cursor: pointer;
170
+ font-size: 12px;
171
+ }
172
+
173
+ .ingredients-list button:hover {
174
+ background-color: #45a049;
175
  }
176
 
177
+ .selected-ingredients {
178
+ padding: 10px;
179
+ margin: 10px 0;
180
+ border: 1px solid #ccc;
181
+ border-radius: 5px;
182
+ background-color: #f0f0f0;
183
+ overflow-y: auto;
184
+ max-height: 80px;
185
+ }
186
+
187
+ .selected-ingredients div {
188
+ margin: 5px 0;
189
+ word-wrap: break-word;
190
+ }
191
+
192
+ /* Mobile-specific adjustments */
193
  @media (max-width: 768px) {
194
  .chat-container {
195
  max-width: 100%;
196
+ height: 100vh;
197
+ margin: 0;
198
  }
199
 
200
  .chat-header {
201
  font-size: 18px;
 
202
  }
203
 
204
  .chat-messages {
205
  padding: 10px;
 
 
 
 
 
 
 
 
 
 
 
 
206
  }
207
 
208
+ .chat-input input,
209
  .chat-input button {
210
  padding: 6px;
211
  font-size: 12px;
212
  min-height: 35px;
 
 
 
 
 
213
  }
214
 
215
+ .option-button {
216
+ padding: 8px 12px;
217
  font-size: 12px;
218
+ min-width: 90px;
219
  }
220
  }