forked from dhairyagothi/100_days_100_web_project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
218 lines (188 loc) · 4.87 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
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
.chat-container {
background-color: rgb(87, 143, 190);
border-radius: 12px;
box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.1);
padding: 20px;
width: 100%;
margin: auto;
position: relative;
height: 90vh;
display: flex;
flex-direction: column; /* Stack children vertically */
}
.copy-btn {
display: inline-block;
padding: 5px 10px;
margin-top: 5px;
cursor: pointer;
font-size: 0.8em;
background-color: #0065d2; /* Updated to match user-message background color */
color: white;
border: none;
border-radius: 3px;
transition: background-color 0.3s, transform 0.2s;
position: absolute; /* Adjust if necessary */
top: 5px;
right: 5px;
user-select: none; /* Prevent the button text from being selectable */
}
.copy-btn:hover, .copy-btn:active {
background-color: #0056b3; /* A darker shade for hover state */
transform: scale(1.05); /* Slightly enlarge the button on hover/active */
}
.copy-btn:focus {
outline: none; /* Remove the focus outline to keep the design clean */
box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5); /* Optional: add a focus style that matches your design */
}
pre code {
padding: 12px;
position: relative;
color: #dcdcdc; /* Light grey color for better contrast */
background: #333; /* Darker background for the code block */
border-radius: 8px;
overflow-x: auto;
font-family: 'Source Code Pro', monospace; /* Use a monospaced font for better code readability */
}
.loading {
display: flex;
justify-content: center;
align-items: center;
}
.loading-dot {
width: 8px;
height: 8px;
margin: 0 5px;
background-color: blue;
border-radius: 50%;
animation: wave 1.2s infinite linear both;
}
.loading-dot:nth-child(1) {
animation-delay: 0s;
}
.loading-dot:nth-child(2) {
animation-delay: 0.1s;
}
.loading-dot:nth-child(3) {
animation-delay: 0.2s;
}
@keyframes wave {
0%, 60%, 100% {
transform: initial;
}
30% {
transform: translateY(-15px);
}
}
#output-field {
background-color: var(--ai-message-bg-color);
border-radius: 12px;
padding: 20px;
margin-bottom: 30px;
font-size: 1.5rem;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
height: 150px;
color: #000000;
}
.input-group {
display: flex;
flex-wrap: nowrap;
align-items: stretch;
margin-top: auto;
margin-bottom:10px;
}
.input-group-text {
background: transparent;
border: 1px solid var(--input-border-color);
border-right: 0;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.input-group-text svg {
fill: var(--user-message-bg-color);
}
#prompt-input {
flex-grow: 1;
border: 1px solid var(--input-border-color);
border-radius: 20px 0 0 20px;
padding: 10px 20px;
}
#image-input {
display: none;
}
#send-btn {
background-color: rgba(51, 110, 123); /* var(--user-message-bg-color); */
color: var(--user-message-text-color);
border: 1px solid var(--user-message-bg-color);
border-radius: 0 20px 20px 0;
padding: 10px 20px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#send-btn:hover {
background-color: rgba(51, 110, 123);
}
#output-container {
flex-grow: 1; /* Allow the output container to grow and take up available space */
overflow-y: auto;
padding-right: 10px; /* Optional: Add some padding for better appearance */
}
.chat-message {
padding: 12px 20px;
margin: 8px 0;
border-radius: 25px;
max-width: 75%;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.user-message {
background-color: white; /* var(--user-message-bg-color); */
color: var(--user-message-text-color);
align-self: flex-end;
text-align: right;
border-bottom-right-radius: 5px;
}
.ai-message {
background-color: white; /* var(--ai-message-bg-color); */
color: var(--ai-message-text-color);
align-self: flex-start;
border-bottom-left-radius: 5px;
}
.separation {
height: 7px;
background-color: rgb(46, 44, 44);
position: relative;
z-index: 20;
}
/* Responsive adjustments as needed */
@media (max-width: 768px) {
.chat-container {
width: 90%;
margin: 20px;
}
.input-group {
flex-wrap: wrap;
}
#send-btn {
border-radius: 20px;
margin-top: 10px;
width: 100%;
}
#prompt-input {
border-radius: 20px;
margin-bottom: 10px;
}
.input-group-text {
border-radius: 20px;
}
}
.btn-primary {
background-color: rgb(23, 45, 93);
border-radius: 40%;
}
.user-message {
margin-right: 0;
}