-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathChat.module.scss
89 lines (74 loc) · 1.55 KB
/
Chat.module.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* Copyright (c) 2024 Massachusetts Institute of Technology */
/* SPDX-License-Identifier: MIT */
#chat-container {
background-color: #222;
height: 100vh;
position: relative;
#chat-settings-button {
position: absolute;
top: 0.5rem;
left: 0.5rem;
z-index: 1;
}
#chat-scroll-container {
height: calc(100% - 35px - 1rem);
overflow-y: auto;
margin-bottom: 3px;
padding: 0.5rem;
pre {
white-space: pre-wrap;
margin: 0;
color: #fff;
}
.chat-row {
display: flex;
justify-content: flex-start;
.chat-justify {
max-width: calc(100% - 40px);
p {
color: #ccc;
margin-bottom: 0.25rem;
margin-top: 0.25rem;
}
}
.chat {
background-color: #444;
padding: 0.5rem;
margin-bottom: 0.5rem;
border-radius: 5px;
}
&.user {
justify-content: flex-end;
.chat {
background-color: #154360;
}
}
&.system {
justify-content: flex-end;
.chat {
// background-color: #154360;
}
}
.copy-query-buttons {
text-align: right;
}
}
}
.loading {
margin: 0;
color: #fff;
position: absolute;
bottom: 2.5rem;
left: 0;
right: 0;
padding: 0.5rem;
background: #22222280;
background: linear-gradient(0deg, rgba(34,34,34,0.75) 0%, rgba(34,34,34,0) 100%);
}
form {
width: 100%;
position: absolute;
bottom: 0;
left: 0;
}
}