HFswapnil commited on
Commit
ae4c4e2
·
verified ·
1 Parent(s): d0bd4b6

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +258 -258
static/style.css CHANGED
@@ -1,258 +1,258 @@
1
- /* Reset & Global */
2
- * { box-sizing: border-box; margin: 0; padding: 0; }
3
- body, html {
4
- height: 100%;
5
- font-family: Arial,
6
- Helvetica, sans-serif;
7
- background-color: #f3f3ff;
8
- color: #2e353a;
9
- }
10
-
11
- .app-wrapper {
12
- display: flex;
13
- flex-direction: row;
14
-
15
- }
16
-
17
-
18
- /* Sidebar Styling */
19
- .sidebar {
20
- width: 25%;
21
- background-color: #1e1e1e;
22
- color: white;
23
- display: flex;
24
- flex-direction: column;
25
- border-right: 1px solid #333;
26
- overflow-y: auto;
27
- z-index: 0;
28
- height: 100vh;
29
- }
30
-
31
- .sidebar-header {
32
- display: flex;
33
- justify-content: space-between;
34
- align-items: center;
35
- padding: 1rem;
36
- border-bottom: 1px solid #333;
37
- background-color: #262626;
38
- }
39
-
40
- .sidebar-header h2 {
41
- font-size: 1.25rem;
42
- }
43
-
44
- #new_chat_sidebar_btn {
45
- background-color: #0084ff;
46
- color: white;
47
- font-size: 1.5rem;
48
- padding: 0.25rem 0.75rem;
49
- border: none;
50
- border-radius: 12px;
51
- cursor: pointer;
52
- }
53
-
54
- #new_chat_sidebar_btn:hover {
55
- background-color: #006bbd;
56
- }
57
-
58
- .chat-list {
59
- padding: 0.5rem 0;
60
- overflow-y: auto;
61
- flex: 1;
62
- }
63
-
64
- .chat-item {
65
- padding: 0.75rem 1rem;
66
- cursor: pointer;
67
- transition: background 0.2s;
68
- font-size: 0.95rem;
69
- border-bottom: 1px solid #333;
70
- }
71
-
72
- .chat-item:hover {
73
- background-color: #2e2e2e;
74
- }
75
-
76
- .chat-item.active {
77
- background-color: #3e3e3e;
78
- font-weight: bold;
79
- }
80
-
81
-
82
- /* Chat Container */
83
- .chat-container {
84
- position: relative;
85
- display: flex;
86
- flex-direction: column;
87
- height: 100vh;
88
- width: 100vw;
89
- overflow: hidden;
90
- /* padding: 1rem; */
91
- }
92
-
93
- /* Watermark Background */
94
- .chat-container::before {
95
- content: "Be Patient for Responses, Model is running on CPU";
96
- position: absolute;
97
- top: 50%;
98
- left: 51%;
99
- transform: translate(-50%, -50%);
100
- font-size: 2.6rem;
101
- color: rgb(0, 0, 0);
102
- text-align: center;
103
- pointer-events: none;
104
- z-index: 0;
105
- }
106
-
107
- /* Messages Area */
108
- .messages {
109
- position: relative;
110
- z-index: 1;
111
- flex: 1;
112
- overflow-y: auto;
113
- padding: 2% 10%;
114
- display: flex;
115
- flex-direction: column;
116
- background-color: #121212f0;
117
- }
118
- .message {
119
- max-width: 70%;
120
- padding: 0.75rem 1rem;
121
- margin-bottom: 1rem;
122
- border-radius: 12px;
123
- line-height: 1.4;
124
- word-wrap: break-word;
125
- }
126
- .message.user {
127
- align-self: flex-end;
128
- background-color: #0084ff;
129
- color: #fff;
130
- border-bottom-right-radius: 2px;
131
- }
132
- .message.bot {
133
- align-self: flex-start;
134
- background-color: #e4e6eb;
135
- color: #202124;
136
- border-bottom-left-radius: 2px;
137
- }
138
-
139
- .message.file_uploaded {
140
- background-color: green;
141
- color: white;
142
- align-items: center;
143
- justify-content: center;
144
- text-align: center;
145
- }
146
-
147
- /* Bot message formatting */
148
- .message.bot p {
149
- margin: 0.5rem 0;
150
- }
151
- .message.bot ul {
152
- padding-left: 1.5rem;
153
- margin: 0.5rem 0;
154
- }
155
- .message.bot li {
156
- margin-bottom: 0.3rem;
157
- list-style-type: disc;
158
- }
159
- .message.bot strong,
160
- .message.bot b {
161
- font-weight: bold;
162
- }
163
-
164
- /* Code block styling */
165
- .message.bot pre {
166
- background: #ffffff00;
167
- padding: 0.75rem;
168
- border-radius: 0.5rem;
169
- overflow-x: auto;
170
- font-family: inherit;
171
- font-size: inherit;
172
- /* white-space: pre; */
173
- margin: 0.5rem 0;
174
- white-space: pre-wrap;
175
- word-wrap: break-word;
176
- color: red;
177
- }
178
- .message.bot code {
179
- font-family: inherit;
180
- font-size: inherit;
181
- white-space: pre-wrap;
182
- word-wrap: break-word;
183
- color: green;
184
- }
185
-
186
- /* Input Area */
187
- .input-container {
188
- position: fixed;
189
- left: 10%;
190
- right: 10%;
191
- bottom: 0;
192
- border-radius: 20px;
193
-
194
- z-index: 2;
195
- background: #141414;
196
- padding: 0.75rem 1rem;
197
- display: flex;
198
- align-items: center;
199
- gap: 0.5rem;
200
- outline: none;
201
- }
202
- #input_prompt {
203
- flex: 1;
204
- padding: 0.75rem 1rem;
205
- font-size: 1rem;
206
- border: none;
207
- background-color: #202020;
208
- color: white;
209
- border-radius: 20px;
210
- outline: none;
211
- }
212
- .input-container button {
213
- padding: 0.75rem 1.5rem;
214
- font-size: 1rem;
215
- border: none;
216
- border-radius: 20px;
217
- background-color: #0084ff;
218
- color: #fff;
219
- cursor: pointer;
220
- transition: background-color 0.2s ease;
221
- }
222
- .input-container button:hover {
223
- background-color: #006bbd;
224
- }
225
-
226
- /* Styled label that looks like a button */
227
- .upload-label {
228
- padding: 0.75rem 1.5rem;
229
- font-size: 1rem;
230
- border: none;
231
- border-radius: 20px;
232
- background-color: #0084ff;
233
- color: #fff;
234
- cursor: pointer;
235
- transition: background-color 0.2s ease;
236
- }
237
-
238
- .upload-label:hover {
239
- background-color: #006bbd;
240
- }
241
-
242
- /* Hide the default file input */
243
- #pdf_upload {
244
- display: none;
245
- }
246
-
247
-
248
- #new_chat_btn {
249
- background-color: rgb(230, 230, 230);
250
- color: rgb(0, 0, 0);
251
- font-size: xx-large;
252
- padding: 0.5rem 1rem;
253
- }
254
-
255
- #new_chat_btn:hover {
256
- background-color: #ffffff;
257
- color: black;
258
- }
 
1
+ /* Reset & Global */
2
+ * { box-sizing: border-box; margin: 0; padding: 0; }
3
+ body, html {
4
+ height: 100%;
5
+ font-family: Arial,
6
+ Helvetica, sans-serif;
7
+ background-color: #f3f3ff;
8
+ color: #2e353a;
9
+ }
10
+
11
+ .app-wrapper {
12
+ display: flex;
13
+ flex-direction: row;
14
+
15
+ }
16
+
17
+
18
+ /* Sidebar Styling */
19
+ .sidebar {
20
+ width: 25%;
21
+ background-color: #1e1e1e;
22
+ color: white;
23
+ display: flex;
24
+ flex-direction: column;
25
+ border-right: 1px solid #333;
26
+ overflow-y: auto;
27
+ z-index: 0;
28
+ height: 100vh;
29
+ }
30
+
31
+ .sidebar-header {
32
+ display: flex;
33
+ justify-content: space-between;
34
+ align-items: center;
35
+ padding: 1rem;
36
+ border-bottom: 1px solid #333;
37
+ background-color: #262626;
38
+ }
39
+
40
+ .sidebar-header h2 {
41
+ font-size: 1.25rem;
42
+ }
43
+
44
+ #new_chat_sidebar_btn {
45
+ background-color: #0084ff;
46
+ color: white;
47
+ font-size: 1.5rem;
48
+ padding: 0.25rem 0.75rem;
49
+ border: none;
50
+ border-radius: 12px;
51
+ cursor: pointer;
52
+ }
53
+
54
+ #new_chat_sidebar_btn:hover {
55
+ background-color: #006bbd;
56
+ }
57
+
58
+ .chat-list {
59
+ padding: 0.5rem 0;
60
+ overflow-y: auto;
61
+ flex: 1;
62
+ }
63
+
64
+ .chat-item {
65
+ padding: 0.75rem 1rem;
66
+ cursor: pointer;
67
+ transition: background 0.2s;
68
+ font-size: 0.95rem;
69
+ border-bottom: 1px solid #333;
70
+ }
71
+
72
+ .chat-item:hover {
73
+ background-color: #2e2e2e;
74
+ }
75
+
76
+ .chat-item.active {
77
+ background-color: #3e3e3e;
78
+ font-weight: bold;
79
+ }
80
+
81
+
82
+ /* Chat Container */
83
+ .chat-container {
84
+ position: relative;
85
+ display: flex;
86
+ flex-direction: column;
87
+ height: 100vh;
88
+ width: 100vw;
89
+ overflow: hidden;
90
+ /* padding: 1rem; */
91
+ }
92
+
93
+ /* Watermark Background */
94
+ .chat-container::before {
95
+ content: "Hey There ! What's on your mind today ?";
96
+ position: absolute;
97
+ top: 50%;
98
+ left: 51%;
99
+ transform: translate(-50%, -50%);
100
+ font-size: 2.6rem;
101
+ color: rgb(0, 0, 0);
102
+ text-align: center;
103
+ pointer-events: none;
104
+ z-index: 0;
105
+ }
106
+
107
+ /* Messages Area */
108
+ .messages {
109
+ position: relative;
110
+ z-index: 1;
111
+ flex: 1;
112
+ overflow-y: auto;
113
+ padding: 2% 10%;
114
+ display: flex;
115
+ flex-direction: column;
116
+ background-color: #121212f0;
117
+ }
118
+ .message {
119
+ max-width: 70%;
120
+ padding: 0.75rem 1rem;
121
+ margin-bottom: 1rem;
122
+ border-radius: 12px;
123
+ line-height: 1.4;
124
+ word-wrap: break-word;
125
+ }
126
+ .message.user {
127
+ align-self: flex-end;
128
+ background-color: #0084ff;
129
+ color: #fff;
130
+ border-bottom-right-radius: 2px;
131
+ }
132
+ .message.bot {
133
+ align-self: flex-start;
134
+ background-color: #e4e6eb;
135
+ color: #202124;
136
+ border-bottom-left-radius: 2px;
137
+ }
138
+
139
+ .message.file_uploaded {
140
+ background-color: green;
141
+ color: white;
142
+ align-items: center;
143
+ justify-content: center;
144
+ text-align: center;
145
+ }
146
+
147
+ /* Bot message formatting */
148
+ .message.bot p {
149
+ margin: 0.5rem 0;
150
+ }
151
+ .message.bot ul {
152
+ padding-left: 1.5rem;
153
+ margin: 0.5rem 0;
154
+ }
155
+ .message.bot li {
156
+ margin-bottom: 0.3rem;
157
+ list-style-type: disc;
158
+ }
159
+ .message.bot strong,
160
+ .message.bot b {
161
+ font-weight: bold;
162
+ }
163
+
164
+ /* Code block styling */
165
+ .message.bot pre {
166
+ background: #ffffff00;
167
+ padding: 0.75rem;
168
+ border-radius: 0.5rem;
169
+ overflow-x: auto;
170
+ font-family: inherit;
171
+ font-size: inherit;
172
+ /* white-space: pre; */
173
+ margin: 0.5rem 0;
174
+ white-space: pre-wrap;
175
+ word-wrap: break-word;
176
+ color: red;
177
+ }
178
+ .message.bot code {
179
+ font-family: inherit;
180
+ font-size: inherit;
181
+ white-space: pre-wrap;
182
+ word-wrap: break-word;
183
+ color: green;
184
+ }
185
+
186
+ /* Input Area */
187
+ .input-container {
188
+ position: fixed;
189
+ left: 10%;
190
+ right: 10%;
191
+ bottom: 0;
192
+ border-radius: 20px;
193
+
194
+ z-index: 2;
195
+ background: #141414;
196
+ padding: 0.75rem 1rem;
197
+ display: flex;
198
+ align-items: center;
199
+ gap: 0.5rem;
200
+ outline: none;
201
+ }
202
+ #input_prompt {
203
+ flex: 1;
204
+ padding: 0.75rem 1rem;
205
+ font-size: 1rem;
206
+ border: none;
207
+ background-color: #202020;
208
+ color: white;
209
+ border-radius: 20px;
210
+ outline: none;
211
+ }
212
+ .input-container button {
213
+ padding: 0.75rem 1.5rem;
214
+ font-size: 1rem;
215
+ border: none;
216
+ border-radius: 20px;
217
+ background-color: #0084ff;
218
+ color: #fff;
219
+ cursor: pointer;
220
+ transition: background-color 0.2s ease;
221
+ }
222
+ .input-container button:hover {
223
+ background-color: #006bbd;
224
+ }
225
+
226
+ /* Styled label that looks like a button */
227
+ .upload-label {
228
+ padding: 0.75rem 1.5rem;
229
+ font-size: 1rem;
230
+ border: none;
231
+ border-radius: 20px;
232
+ background-color: #0084ff;
233
+ color: #fff;
234
+ cursor: pointer;
235
+ transition: background-color 0.2s ease;
236
+ }
237
+
238
+ .upload-label:hover {
239
+ background-color: #006bbd;
240
+ }
241
+
242
+ /* Hide the default file input */
243
+ #pdf_upload {
244
+ display: none;
245
+ }
246
+
247
+
248
+ #new_chat_btn {
249
+ background-color: rgb(230, 230, 230);
250
+ color: rgb(0, 0, 0);
251
+ font-size: xx-large;
252
+ padding: 0.5rem 1rem;
253
+ }
254
+
255
+ #new_chat_btn:hover {
256
+ background-color: #ffffff;
257
+ color: black;
258
+ }