-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
381 lines (339 loc) · 8.2 KB
/
index.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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #181818;
color: #ffffff;
}
/* Header styling */
header {
display: flex;
align-items: center;
justify-content: center;
background-color: #212121;
padding: 10px 20px;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
box-sizing: border-box;
}
.app-div
{
display: flex; /* Flexbox layout */
align-items: center;
justify-content: center;
flex-grow: 1;
}
.app-logo {
height: 70px;
width:auto;
}
.search-bar {
display: flex;
align-items: right;
justify-content: right;
margin: 0 20px;
flex-grow: 1;
max-width: 600px;
flex: 1;
}
.search-bar input {
flex: 1;
padding: 8px;
border-radius: 4px 0 0 4px;
border: 1px solid #424242;
background-color: #121212;
color: #ffffff;
}
.menu {
display: none;
}
.menubutton
{
padding: 10px 16px;
background-color: #11091b;
color: white;
border: none;
border-radius: 0 4px 4px 0;
cursor: pointer;
transition: background-color 0.3s;
margin-left: 0;
}
.app-div {
flex-grow: 1;
}
.search-bar input {
flex: 1;
padding: 8px;
border-radius: 4px 0 0 4px;
border: 1px solid #424242;
background-color: #121212;
color: #ffffff;
}
.search-bar button {
padding: 10px 16px;
background-color: #6200ea;
color: white;
border: none;
border-radius: 0 4px 4px 0;
cursor: pointer;
transition: background-color 0.3s;
margin-left: 0; /* Adjusted margin */
}
.search-bar button:hover {
background-color: #3700b3;
}
.user-options {
display: flex;
align-items: center;
}
.user-options img {
border-radius: 50%;
width: 32px;
height: 32px;
margin-left: 10px;
cursor: pointer;
}
/* Sidebar styling */
aside {
width: 240px;
background-color: #212121;
padding: 10px;
position: fixed;
top: 80px; /* Below the fixed header */
bottom: 0;
left: 0;
transform: translateX(-100%); /* Initially hidden */
transition: transform 0.3s ease;
z-index: 999;
overflow-y: auto;
}
aside ul {
list-style-type: none;
padding: 0;
}
aside ul li {
padding: 10px;
cursor: pointer;
color: #ffffff;
}
aside.show {
transform: translateX(0); /* Show sidebar when .show is added */
}
/* Close button styling */
aside .close {
display: block;
margin-bottom: 20px;
}
aside ul li:hover {
background-color: #333333;
}
/* Main content styling */
main {
margin-left: 260px;
padding: 20px;
}
.video-card {
display: inline-block;
width: 320px;
margin: 10px;
vertical-align: top;
background-color: #212121;
border-radius: 8px;
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}
.video-card img {
width: 100%;
height: 170px;
object-fit: cover;
}
.video-card .title {
font-size: 16px;
font-weight: bold;
margin: 10px 0;
}
.video-card .details {
color: #aaaaaa;
}
.video-card:hover {
transform: scale(1.4); /* Scale up the card */
z-index: 10; /* Ensure it appears above other elements */
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.4); /* Add shadow to enhance the effect */
}
/* Optional: Add a border on hover to highlight the card more */
.video-card:hover {
border: 2px solid #1a0b2e; /* Border color for additional emphasis */
}
/* Custom scroll bar styling */
::-webkit-scrollbar {
width: 12px; /* Width of the scrollbar */
}
::-webkit-scrollbar-track {
background: #2a2a2a; /* Track color */
border-radius: 10px; /* Rounded corners for track */
}
::-webkit-scrollbar-thumb {
background: #555; /* Scroll thumb color */
border-radius: 10px; /* Rounded corners for thumb */
}
::-webkit-scrollbar-thumb:hover {
background: #888; /* Color of the thumb when hovered */
}
/* Styling for channel logos */
.channel-logo {
width: 40px; /* Width of the logo */
height: 40px; /* Height of the logo */
border-radius: 50%; /* Makes the image circular */
margin-right: 10px; /* Space between logo and text */
object-fit: cover; /* Ensures the image covers the area */
}
.load-more-btn {
margin: 20px auto;
padding: 10px 20px;
background-color: #6200ea;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
display: block;
text-align: center;
transition: background-color 0.3s;
}
.load-more-btn:hover {
background-color: #3700b3;
}
.user-options {
position: relative;
display: flex;
align-items: center;
gap: 10px; /* Space between the elements */
}
#signInButton, #signUpButton {
margin-right: 2px;
}
#signInButton button, #signUpButton button {
background-color: #0f5197; /* Blue background for buttons */
color: white; /* White text color */
border: none; /* Remove default border */
border-radius: 5px; /* Rounded corners */
padding: 10px 20px; /* Padding for size */
font-size: 16px; /* Font size */
/* Bold text */
cursor: pointer; /* Pointer cursor on hover */
transition: background-color 0.3s, transform 0.3s; /* Smooth transitions */
text-align: center; /* Center text horizontally */
display: inline-block; /* Align buttons inline */
}
#signInButton button:hover, #signUpButton button:hover {
background-color: #1407c9;
color: white;
/* Darker blue on hover */
}
#signInButton button:active, #signUpButton button:active {
transform: scale(0.98); /* Slightly shrink button on click */
}
.logoemail {
width: 40px;
height: 40px;
background-color: #007BFF;
color: white;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
font-size: 18px; /* Adjusted font size for better fit */
font-weight: bold;
text-transform: uppercase;
overflow: hidden; /* Ensure that content stays within the circle */
line-height: 40px; /* Ensures that the text is vertically centered */
box-sizing: border-box; /* Includes padding and border in the element's width and height */
cursor: pointer;
padding: 0; /* Remove any padding to avoid content overflow */
text-align: center; /* Center-align text horizontally */
}
.logoemail::after {
content: attr(data-initial); /* Use data attribute to set content */
font-size: 20px;
font-weight: bold;
}
#signOutButton {
margin-left: auto; /* Push the sign-out button to the far right */
}
.dropdown-content {
position: absolute;
top: 50px;
right: 0;
background-color: rgb(37, 31, 39);
box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
border-radius: 4px;
z-index: 1;
padding: 20px;
min-width: 160px;
}
.dropdown-content a {
color:white;
}
.dropdown-menu {
list-style-type: none; /* Remove default list styling */
padding: 0;
margin: 0;
}
.dropdown-menu li {
padding: 10px;
cursor: pointer;
transition: background-color 0.3s;
}
.dropdown-menu li a {
text-decoration: none;
color: rgb(235, 197, 197); /* Text color for links */
display: block; /* Make the entire list item clickable */
}
.dropdown-menu li:hover {
background-color: #888; /* Hover effect */
}
@media (min-width: 769px) {
aside {
transform: translateX(0); /* Keep aside visible on larger screens */
}
aside.show {
transform: translateX(-100%); /* Hide aside when close button is pressed */
}
.main-content {
margin-left: 260px; /* Adjust main content to make room for aside */
}
.menu {
display: block; /* Show menu button on small screens */
}
}
@media (max-width: 768px) {
aside {
transform: translateX(-100%); /* Hide aside by default on small screens */
}
aside.show {
transform: translateX(0); /* Show aside when menu button is pressed */
}
.menu {
display: block; /* Show menu button on small screens */
}
.main-content {
margin-left: 0; /* No margin on small screens */
}
.app-div {
flex-direction: column;
}
.search-bar {
margin: 10px 0;
width: 100%;
}
}
.close-button {
background: none;
border: none;
color: white;
font-size: 16px;
cursor: pointer;
align-items: right;
justify-content: right;
}