-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
149 lines (137 loc) · 3.4 KB
/
styles.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
144
145
146
147
148
149
body {
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
/* height: 100vh; */
background-color: #121212;
margin: 0;
color: #ffffff;
user-select: auto; /* Ensure text can be selected */
}
#chat-container {
display: flex;
flex-direction: column;
width: 400px;
height: 600px;
border: 1px solid #333;
background-color: #1e1e1e;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
overflow-y: scroll;
overflow-x: scroll;
}
#chat-box {
flex: 1;
padding: 30px;
overflow-y: auto; /* Ensure chat box can scroll */
border-bottom: 1px solid #333;
}
#messages {
display: flex;
flex-direction: column;
overflow-y: auto; /* Ensure messages container can scroll */
max-height: calc(100% - 50px); /* Adjust max-height as needed */
padding: 10px; /* Add padding for spacing */
/* background-color: red; */
/* min-height: 300px; Ensure minimum height is set to 300px */
}
.message {
/* min-height: 30px; Ensure minimum height is set to 300px */
margin: 10px 0;
padding: 10px;
border-radius: 5px;
max-width: 100%;
font-size: 16px;
word-wrap: break-word; /* Ensure words wrap to the next line */
white-space: pre-wrap; /* Maintain whitespace and wrap text */
resize: none; /* Prevent manual resizing */
overflow-y: auto; /* Allow vertical scrolling */
min-height: 70px; /*Min height */
max-height: 700%;
width: 100%;
}
.message.user {
align-self: center;
background-color: #007aff; /* iPhone message blue */
color: #ffffff;
border-radius: 10px;
}
.message.bot {
align-self: center;
background-color: #444; /* Grey background for bot messages */
color: #ffffff;
border-radius: 10px;
}
.editable {
/* width: 90%; */
height: 150px;
padding: 10px;
/* border: 1px solid #ccc; */
border-radius: 10px;
background-color: #fff;
overflow: auto;
outline: none;
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
margin-top: 70%;
}
/* Placeholder styling */
.editable:empty:before {
content: attr(data-placeholder);
color: #ffffff;
font-style: italic;
}
#chat-input {
display: flex;
padding: 10px;
border-top: 1px solid #333;
}
#message-input {
flex: 1;
resize: none; /* Prevent manual resizing */
padding: 10px;
font-size: 16px;
line-height: 1.5;
/* border: 1px solid #ccc; */
overflow-y: scroll;
background-color: #2b2b2b;
color: #ffffff;
border-radius: 5px;
min-height: 40px; /* Minimum height of the textarea */
max-height: 200px; /* Maximum height of the textarea */
box-sizing: border-box; /* Include padding and border in the element's total width and height */
}
#message-input::placeholder {
color: #888;
}
.dots-message{
display: flex;
justify-content: center;
align-items: center;
/* background-color: #e1ffc7; */
/* padding: 10px; */
border-radius: 10px;
position: relative;
/* max-width: 80%; */
margin-bottom: 10px;
}
.dots-container {
display: flex;
gap: 8px;
}
.dot {
width: 8px;
height: 8px;
background-color: #d6e2ef;
border-radius: 50%;
animation: bounce 1.4s infinite;
}
.dot:nth-child(2) {
animation-delay: 0.2s;
}
.dot:nth-child(3) {
animation-delay: 0.4s;
}
@keyframes bounce {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.5); }
}