-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
302 lines (259 loc) · 5.04 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
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
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
/* styles.css for Advanced YouTube AI Assistant Extension */
/* Button styles */
.ai-assistant-button {
opacity: 0.9;
transition: opacity 0.2s;
}
.ai-assistant-button:hover {
opacity: 1;
}
/* Popup styles */
#ai-assistant-popup {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
}
.ai-assistant-popup-content {
background-color: #fff;
padding: 20px;
border-radius: 8px;
width: 80%;
max-width: 800px;
height: 80vh;
display: flex;
flex-direction: column;
}
/* Conversation list styles */
#conversation-list {
flex: 1;
overflow-y: auto;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 4px;
padding: 10px;
}
.conversation-item {
padding: 8px;
margin-bottom: 5px;
background-color: #f0f0f0;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
}
.conversation-item:hover {
background-color: #e0e0e0;
}
/* New conversation button */
#new-conversation-btn {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px;
border-radius: 4px;
cursor: pointer;
margin-bottom: 10px;
transition: background-color 0.2s;
}
#new-conversation-btn:hover {
background-color: #45a049;
}
/* Input and button styles */
#question-input {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #d3d3d3;
border-radius: 4px;
font-size: 14px;
resize: vertical;
}
#ask-button {
background-color: #065fd4;
color: white;
border: none;
padding: 10px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: background-color 0.2s;
}
#ask-button:hover {
background-color: #1a73e8;
}
/* AI response styles */
#ai-response {
flex: 2;
margin-top: 16px;
padding: 12px;
background-color: #f8f8f8;
border-radius: 4px;
font-size: 14px;
line-height: 1.6;
color: #333;
font-family: Arial, sans-serif;
overflow-y: auto;
}
#ai-response h1, #ai-response h2, #ai-response h3, #ai-response h4, #ai-response h5, #ai-response h6 {
margin-top: 1em;
margin-bottom: 0.5em;
color: #065fd4;
}
#ai-response p {
margin-bottom: 1em;
}
#ai-response ul, #ai-response ol {
padding-left: 2em;
}
#ai-response li {
margin-bottom: 8px;
}
#ai-response code {
background-color: #f4f4f4;
padding: 2px 4px;
border-radius: 4px;
}
#ai-response pre {
background-color: #f4f4f4;
padding: 1em;
border-radius: 4px;
overflow-x: auto;
}
#ai-response blockquote {
border-left: 4px solid #ccc;
padding-left: 1em;
margin-left: 0;
color: #666;
}
#ai-response table {
border-collapse: collapse;
width: 100%;
}
#ai-response th, #ai-response td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
#ai-response th {
background-color: #f4f4f4;
}
/* Message styles */
.user, .ai {
margin-bottom: 10px;
padding: 8px;
border-radius: 4px;
}
.user {
background-color: #e6f3ff;
}
.ai {
background-color: #f0f0f0;
}
/* Loading spinner styles */
.loading-spinner {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
}
.spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid #3498db;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.loading-spinner p {
margin-top: 10px;
font-style: italic;
color: #333;
}
/* Ensure loading spinner styles are not overridden by YouTube */
#ai-response .loading-spinner,
#ai-response .spinner,
#ai-response .loading-spinner p {
all: revert;
}
#ai-response .loading-spinner {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
}
#ai-response .spinner {
border: 4px solid #f3f3f3;
border-top: 4px solid #3498db;
border-radius: 50%;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
}
#ai-response .loading-spinner p {
margin-top: 10px;
font-style: italic;
color: #333;
}
/* New history controls styles */
#history-controls {
margin-bottom: 10px;
}
#history-controls button {
margin-right: 10px;
padding: 5px 10px;
background-color: #f0f0f0;
border: 1px solid #ccc;
border-radius: 4px;
cursor: pointer;
}
#history-controls button:hover {
background-color: #e0e0e0;
}
.history-item {
display: flex;
align-items: center;
padding: 8px;
margin-bottom: 5px;
background-color: #f0f0f0;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
}
.history-item:hover {
background-color: #e0e0e0;
}
.history-checkbox {
margin-right: 10px;
}
#voice-input-btn {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 16px;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
font-weight: 500;
transition: background-color 0.2s;
margin-right: 10px;
}
#voice-input-btn:hover {
background-color: #45a049;
}
#voice-input-btn:disabled {
background-color: #cccccc;
cursor: not-allowed;
}