-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
117 lines (103 loc) · 1.77 KB
/
style.css
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
body {
font-family: Arial, sans-serif;
background-color: #f4f4f9;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
padding: 10px;
}
#chat-container {
width: 100%;
max-width: 600px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 10px;
overflow: hidden;
display: flex;
flex-direction: column;
align-items: stretch;
height: 100%;
}
#chatbox {
flex: 1;
padding: 20px;
background-color: #fff;
overflow-y: auto;
}
.message-container {
display: flex;
flex-direction: row;
margin-bottom: 10px;
}
.message {
padding: 10px 20px;
border-radius: 20px;
display: inline-block;
word-wrap: break-word;
max-width: 70%;
}
.message.user {
align-self: flex-end;
background-color: #007bff;
color: #fff;
margin-left: auto;
}
.message.model {
align-self: flex-start;
background-color: #e9ecef;
color: #000;
margin-right: auto;
}
.loading-indicator {
display: flex;
align-items: center;
margin-right: 10px;
}
.dot {
width: 8px;
height: 8px;
background-color: #007bff;
border-radius: 50%;
margin: 0 3px;
animation: dot-pulse 1s infinite;
}
@keyframes dot-pulse {
0%, 80%, 100% {
transform: scale(0);
}
40% {
transform: scale(1);
}
}
#input-container {
display: flex;
border-top: 1px solid #ccc;
background-color: #fff;
padding: 10px;
align-items: center;
}
#input {
flex: 1;
padding: 10px;
border: 1px solid #ccc;
border-radius: 20px;
margin-right: 10px;
}
#sendButton {
padding: 10px 20px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 20px;
cursor: pointer;
}
#sendButton:hover {
background-color: #0056b3;
}
@media (max-width: 600px) {
#chat-container {
max-width: 100%;
}
}