-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
163 lines (136 loc) · 3.39 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
:root {
--grey: #f5f5f5;
--blue: #3d88f9;
--black: #1a1a1a;
}
body.chat-open {
.chat-window {
display: flex;
}
}
.chat-button {
position: absolute;
bottom: 60px;
right: 20px;
z-index: 998;
background-color: var(--black);
color: white;
height: 80px;
width: 80px;
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
img {
width: 50px;
}
&:hover {
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
}
.chat-window {
* {
font-family: "Raleway", sans-serif;
}
display: none;
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
background-color: white;
border-radius: 20px;
position: fixed; /* Use fixed to position it relative to the viewport */
z-index: 999;
top: 10%; /* 10% from the top */
left: 10%; /* 10% from the left */
right: 10%; /* 10% from the right */
bottom: 10%; /* 10% from the bottom */
flex-direction: column;
justify-content: space-between;
max-height: 80%; /* Ensure it doesn't exceed 80% of the height */
max-width: 80%; /* Ensure it doesn't exceed 80% of the width */
overflow: hidden; /* Hide overflow to maintain the border radius */
}
.close {
border: none;
padding: 8px 0;
background-color: var(--black);
color: white;
border-radius: 20px 20px 0 0;
cursor: pointer;
}
.chat {
flex: 1;
padding: 0 8px;
overflow-y: scroll;
p {
border-radius: 20px;
width: 80%;
margin: 8px 0;
font-size: 16px;
padding: 16px;
}
div.model {
p {
background-color: var(--grey);
}
}
div.user {
display: flex;
justify-content: flex-end;
p {
background-color: var(--blue);
color: white;
}
}
div.error {
p {
font-size: 14px;
text-align: center;
color: red;
}
}
}
.input-area {
height: 70px;
display: flex;
justify-content: center;
align-items: center;
padding: 0 8px;
border-top: 1px solid lightgray;
input {
height: 40px;
flex: 1;
border: none;
background-color: var(--grey);
border-radius: 20px;
padding-left: 20px;
font-size: 16px;
}
button {
height: 40px;
width: 40px;
border-radius: 100%;
border: none;
margin-left: 12px;
background-color: var(--blue);
color: white;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
img {
width: 18px;
}
&:hover {
box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}
}
}
.loader {
width: 40px;
opacity: 0.4;
aspect-ratio: 4;
background: radial-gradient(circle closest-side,#000 90%,#0000) 0/calc(100%/3) 100% space;
clip-path: inset(0 100% 0 0);
animation: l1 1.5s steps(4) infinite;
}
@keyframes l1 {to{clip-path: inset(0 -34% 0 0)}}