forked from Varad-7611/AI-Chatbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchat.css
More file actions
136 lines (116 loc) · 2.64 KB
/
chat.css
File metadata and controls
136 lines (116 loc) · 2.64 KB
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
/* Common code for body*/
* {
margin: 0;
padding: 0;
font-family: 'Inter', sans-serif;
}
/* For dark mode */
body.dark-theme {
background: linear-gradient(135deg, hsl(0, 0%, 0%), rgb(21, 103, 255));
color: white;
}
/* For light mode */
body.light-theme {
background: white;
color: black;
}
.chat-container {
margin: auto;
width: 285%;
max-width: 60%;
display: flex;
flex-direction: column;
height: 100vh;
}
/* Send message style */
.messages-container {
flex: 20;
overflow-y: auto;
padding: 1rem;
}
/* heading of Chat bot */
.chat-header {
text-align: center;
margin-bottom: 1rem;
}
/* When user sends a message */
.message {
max-width: fit-content;
padding: 0.75rem;
border-radius: 10px;
word-wrap: break-word;
}
/*User Message*/
.message.user {
background-color: black;
color: whitesmoke;
margin-left: auto;
margin-top: 20px;
}
/*Assistant Message Style */
.message.assistant {
align-self: flex-start;
background-color: #e5e7eb;
color: black;
margin-top: 20px;
}
/* Message Send Style */
.chat-form {
display: flex;
align-items: flex-end;
padding: 0.5rem;
background-color: #222;
border-top: 2px solid #6cff9d;
box-shadow: 0 14px 15px rgba(72, 255, 0, 0.8);
border-radius: 10px;
}
/* Text area style */
.chat-textarea {
flex: 1;
border: none;
padding: 0.5rem;
font-size: 1rem;
background-color: #000;
color: #fff;
outline: none;
border-radius: 5px;
}
/* Send button style */
.send-button,
#image-gen-btn {
background: #3b82f6;
border: none;
color: whitesmoke;
padding: 0.5rem 1rem;
border-radius: 20px;
cursor: pointer;
margin-left: 0.5rem;
}
/* Send button hover effect */
.send-button:hover,
#image-gen-btn:hover {
background: #2563eb;
}
/* light mode and dark mode button */
#theme-toggle {
background: hsl(198, 60%, 50%);
border: none;
color: hsl(192, 91%, 55%);
padding: 0.5rem 1rem;
border-radius: 20px;
cursor: pointer;
}
/* light mode and dark mode button hover effect */
#theme-toggle:hover {
background: #2563eb;
}
/* bot typing indicator */
#typing-indicator img {
animation: bounce 1s infinite ease-in-out;
margin-top: 1rem;
}
/* Typing indicator style */
@keyframes bounce {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.5); }
}