-
Notifications
You must be signed in to change notification settings - Fork 0
/
chat.css
143 lines (125 loc) · 2.42 KB
/
chat.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
body {
margin: 0;
padding: 0;
height: 100vh;
min-height: 600px;
min-width: 400px;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: #ffffff;
}
.chat-container {
display: flex;
flex-direction: column;
height: 100vh;
width: 100%;
max-width: none;
margin: 0;
background: #fff;
}
.chat-header {
display: flex;
align-items: center;
padding: 1rem;
border-bottom: 1px solid #e0e0e0;
background: #f8f9fa;
}
.back-btn {
background: none;
border: none;
font-size: 20px;
cursor: pointer;
padding: 5px 10px;
margin-right: 10px;
}
.chat-messages {
flex: 1;
overflow-y: auto;
padding: 1rem;
}
.message {
display: flex;
margin-bottom: 1rem;
gap: 1rem;
}
.message.user {
flex-direction: row-reverse;
}
.message-content {
max-width: 70%;
padding: 0.8rem 1rem;
border-radius: 1rem;
font-size: 14px;
line-height: 1.5;
}
.user .message-content {
background: #2196f3;
color: white;
border-top-right-radius: 4px;
}
.assistant .message-content {
background: #f0f2f5;
color: #000;
border-top-left-radius: 4px;
}
.chat-input-container {
padding: 1rem;
border-top: 1px solid #e0e0e0;
display: flex;
gap: 10px;
background: #fff;
}
.chat-input {
flex: 1;
padding: 12px;
border: 1px solid #e0e0e0;
border-radius: 8px;
resize: none;
font-family: inherit;
font-size: 14px;
line-height: 1.5;
max-height: 200px;
overflow-y: auto;
}
.chat-input:focus {
outline: none;
border-color: #2196f3;
}
.send-btn {
width: 40px;
height: 40px;
border-radius: 20px;
border: none;
background: #2196f3;
color: white;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.send-btn:hover {
background: #1976d2;
}
.send-icon {
font-size: 18px;
}
/* Loading indicator */
.typing-indicator {
padding: 0.5rem 1rem;
background: #f0f2f5;
border-radius: 1rem;
display: inline-block;
}
.typing-indicator span {
display: inline-block;
width: 8px;
height: 8px;
background: #90a4ae;
border-radius: 50%;
margin-right: 5px;
animation: typing 1s infinite;
}
@keyframes typing {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-5px); }
}