-
Notifications
You must be signed in to change notification settings - Fork 0
/
MusicPlayerCssSwati.css
982 lines (897 loc) · 19.4 KB
/
MusicPlayerCssSwati.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
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
:root {
padding: none;
margin: none;
}
body {
background-color: #0c0c31;
margin: 0px;
padding: 0px;
font-family: "Segoe UI", Arial, sans-serif;
color: white;
}
/*.OverAllBackground{
background-color: #0c0c31;
height: 100vh;
width: auto;
list-style: none;
}*/
/* removing margin for all the textual elements */
h1,h2,h3,h4,h5,h6,p {
margin: 0px;
}
/* removing all the styles from the links and formatting them white */
a {
text-decoration: none;
color: white;
}
/* ********************Overall topmost toolbar element************************************ */
.TopMostToolbar{
height: 20vh;
width: auto;
background-image: linear-gradient(180deg, greenyellow, rgba(0, 0, 0, 0));
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
padding-left: 5%;
padding-right: 5%;
transition: all ease-in-out 1s;
}
/* ********************LogoName Combo element************************************ */
.WebsiteLogo img{
height: 60px;
width: 60px;
border-radius: 50%;
animation-name: rotating;
animation-timing-function: ease-in-out;
animation-duration: 2s;
animation-iteration-count: infinite;
}
@keyframes rotating {
0% {
transform: rotate(0deg);
}
50%{
transform: rotate(-180deg);
}
100% {
transform: rotate(360deg);
}
}
.WebsiteName {
color: #dcedc8
}
.Name&LogoCombo div{
/*vertical-align: middle;*/
display: inline-block;
}
/* ********************Favorite element************************************ */
@keyframes flexible {
0% {
transform: rotate(5deg);
}
15% {
transform: rotate(0deg);
}
25% {
transform: rotate(-5deg);
}
45% {
transform: rotate(0deg);
}
50% {
transform: rotate(5deg);
}
75% {
transform: scale(1.3);
}
100% {
transform: scaleX(1);
}
}
.favs {
animation-name: flexible;
animation-timing-function: ease-in;
animation-duration: 2s;
animation-iteration-count: infinite;
}
/* ********************Search element************************************ */
.search-box{
border-radius: 20px;
background: white;
border: 2px solid #76b39d;
}
form{
margin: 0;
}
input{
border: none;
margin: 10px 5px 10px 0;
font-size: 15px;
outline: none;
color: #085f63;
}
i{
font-size: 22px;
margin: 10px 10px;
color: #085f63;
}
i:hover{
color: #76b39d;
}
button{
background: transparent;
border: none;
}
/* ********************Notification element************************************ */
.notification-bell{
display: inline-block;
font-size: 16px;
font-weight: bold;
}
.notification-bell i{
color: whitesmoke;
width: 30px;
height: 30px;
animation: ring 4s .7s ease-in-out infinite;
transform-origin: 50% 4px;
}
@keyframes ring {
0% { transform: rotate(0); }
1% { transform: rotate(30deg); }
3% { transform: rotate(-28deg); }
5% { transform: rotate(34deg); }
7% { transform: rotate(-32deg); }
9% { transform: rotate(30deg); }
11% { transform: rotate(-28deg); }
13% { transform: rotate(26deg); }
15% { transform: rotate(-24deg); }
17% { transform: rotate(22deg); }
19% { transform: rotate(-20deg); }
21% { transform: rotate(18deg); }
23% { transform: rotate(-16deg); }
25% { transform: rotate(14deg); }
27% { transform: rotate(-12deg); }
29% { transform: rotate(10deg); }
31% { transform: rotate(-8deg); }
33% { transform: rotate(6deg); }
35% { transform: rotate(-4deg); }
37% { transform: rotate(2deg); }
39% { transform: rotate(-1deg); }
41% { transform: rotate(1deg); }
43% { transform: rotate(0); }
100% { transform: rotate(0); }
}
/* ********************Account/DP element************************************ */
.ProfilePicture img{
width: 45px;
height: 45px;
border-radius: 50%;
}
/* *************************** Toolbar ends here :))))))) ************* */
main {
width: 100%;
padding: 0% 3%;
box-sizing: border-box;
display: flex;
flex-direction: row;
justify-content: space-around;
transition: all ease-in-out 1s;
}
/* there are two aside sections both of them will have this class
(I have taken care of the re-usability of the classes and removed redundancy) */
.aside {
display: inline-block;
overflow: hidden;
}
/* section one of the main part */
.section-1 {
width: 70%;
height: 150vh;
overflow: scroll;
overflow-x: hidden;
}
/* overflow should be scrollable but the scroll bar should be hidden*/
.section-1::-webkit-scrollbar {
display: none;
}
/*********************************************************************************/
/* aside section 1 */
.outer-carousel {
position: relative;
left: 8vw;
margin-top: 2%;
transition: all ease-in-out 1s;
}
/* carousel */
.carousel {
position: absolute;
left: 10%;
width: 50%;
height: auto;
display: flex;
flex-direction: row;
overflow: visible;
justify-content: space-around;
}
.carousel img {
height: 15vw;
width: 22.5vw;
/*width: 20vw;*/
transition: all cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.2s;
}
.carousel img:hover {
box-shadow: 12px 12px 12px 12px black;
}
/*********************************************************************************/
/* latest release */
.latest-release {
position: relative;
top: 20vw;
height: auto;
width: 100%;
box-sizing: border-box;
}
.latest-release-content {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
}
/* all the components of the latest release part */
.latest-release-content > div {
height: 100px;
width: 47%;
margin: 5px 0px;
}
/* card is the general class for the components of the latest release part */
.card {
display: flex;
flex-direction: row;
transition: box-shadow ease-in-out 0.1s;
}
/* hovering effects for the latest release part components */
.card:hover {
box-shadow: 0px 0px 2px 1px white;
}
/* images in the cards of the latest release section */
.card img {
width: 100px;
height: 100px;
z-index: 1;
}
/* this is the play button which will be visible only on hover */
.play-button {
width: 100%;
height: 65%;
position: relative;
top: -105%;
font-size: 0px;
padding-top: 15%;
text-align: center;
z-index: 5;
transition: all ease-in-out 0.1s;
}
/* actual play icon from font awesome */
.play-button i {
padding-top: 45%;
}
/* description of the song in the card, which will contain the song nae and author */
.song-description {
margin: auto 10%;
}
/* options is the class for the 3 dots which needs to be clicked to trigger the latest release drop down menu */
.options {
position: relative;
display: flex;
flex-direction: column;
flex-wrap: wrap;
text-align: center;
margin-left: auto;
margin-right: 2%;
margin-top: 2%;
}
.drop-item i{
color: white;
}
.latest-release-dropdown {
position: absolute;
background-color: #689620;
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
opacity: 0;
width: 0px;
height: 0px;
top: 20px;
right: 0px;
overflow: hidden;
z-index: 2;
border: 1px solid black;
box-shadow: 0px 0px 2px 1px black;
transition: all ease-in-out 0.3s;
}
/* icon in the latest release drop down */
.fa-ellipsis-h {
cursor: pointer;
}
/* this input is for the latest release drop down */
input[type="checkbox"] {
display: none;
}
/* checking it, will trigger the latest release dropdown */
input[type="checkbox"]:checked ~ .latest-release-dropdown {
width: max-content;
height: auto;
opacity: 1;
padding: 5px;
}
/* options in the lastest release drop down */
.drop-item p {
text-align: center;
}
/*********************************************************************************/
/* popular artists */
.popular-artists {
position: relative;
width: 100%;
height: auto;
top: 26vw;
box-sizing: border-box;
}
/* container of the popular artists */
.popular-artist-content {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
}
/* images in the popular artists section */
.popular-artists div a img {
width: 10vw;
min-width: 60px;
min-height: 60px;
height: 10vw;
border-radius: 50%;
}
/* content of the container in popular artists section */
.popular-artists > div {
/* position: relative; */
margin: 5px;
text-align: center;
}
.popular-artist-content > a > div {
position: relative;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
}
.popular-artist-content > a > div > div {
position: absolute;
display: flex;
/* top: 0px;
left: 0px; */
top: 0px;
width: 10vw;
min-width: 60px;
min-height: 60px;
height: 10vw;
border-radius: 50%;
background-color: rgb(0, 0, 0);
opacity: 0;
transition: opacity ease-in-out 0.1s;
}
/* additional icons in this section */
.popular-artist-content a div div i {
margin: auto;
font-size: 3vw;
opacity: 0;
transition: opacity ease-in-out 0.2s;
} /* added hovering effects */
.popular-artist-content a div div:hover {
opacity: 0.5;
}
.popular-artist-content a div div:hover i {
opacity: 1;
}
/* text portion in popular artists section */
.popular-artists div p {
text-align: center;
}
/*********************************************************************************/
/*********************************************************************************/
/*********************************************************************************/
/*********************************************************************************/
/*********************************************************************************/
/*********************************************************************************/
/*********************************************************************************/
/*********************************************************************************/
/*********************************************************************************/
.music-themes {
position: relative;
top: 28vw;
width: 100%;
height: auto;
box-sizing: border-box;
background-image: var(--music-themes-background-image);
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
box-sizing: border-box;
}
/* stations */
.stations {
margin-top: 30px;
margin-bottom: 30px;
margin-right: 10px;
}
/* these divs are for the colourful boxes in the themes section */
/*#div1 {
width: 12vw;
height: 8vw;
background-color: darkslateblue;
}
#div2 {
position: relative;
top: -1vw;
left: 1vw;
width: 10vw;
height: 10vw;
background-color: lightgreen;
}*/
#div3 {
position: relative;
top: -1vw;
left: 1vw;
width: 8vw;
height: 12vw;
background-color: orange;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
/* logo in the outermost div */
#div3 img {
width: 5vw;
height: 5vw;
}
/* "stations" text */
#div3 p {
font-size: 2vw;
}
/* images in the music themes section */
.music-themes div img {
width: 8vw;
height: 8vw;
border-radius: 50%;
}
/* this is the sub content of the themes section */
.theme-content {
margin: 3%;
height: 8vw;
width: 8vw;
text-align: center;
border-radius: 100%;
}
/* text within the themes section */
.theme-content p {
text-align: center;
position: relative;
top: -8.25vw;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
border-radius: 100%;
font-size: 2vw;
background-image: linear-gradient(
0deg,
rgb(201, 200, 185) -66%,
rgba(0, 0, 0, 0)
);
transition: background-image 0.3s;
}
/* container for theme contents */
.theme-main {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
}
/* music themes -2 */
.music-themes-2 {
position: relative;
top: 30vw;
height: auto;
width: 100%;
box-sizing: border-box;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
align-items: center;
}
/* this outer div contains the inner div and the image and text */
.outer-div {
width: 19.5vw;
height: 13vw;
overflow: hidden;
min-width: 123px;
min-height: 82px;
margin: 5px;
cursor: pointer;
}
/* inner div portion */
.inner-div {
width: 100%;
height: 100%;
background-color: black;
background-position: center;
background-size: cover;
transition: all ease-in-out 0.3s;
}
/* divs corresponding to each of the 3 sub sections in the themes section */
/* party */
.music-themes-2 .outer-div:nth-child(1) .inner-div {
background-image: url("Mediaa/party.jpg");
}
/* electronic */
.music-themes-2 .outer-div:nth-child(2) .inner-div {
background-image: url("Mediaa/electronic.webp");
}
/* road */
.music-themes-2 .outer-div:nth-child(3) .inner-div {
background-image: url("Mediaa/roadd.png");
}
/* hivering actions: the text should be scaled down on hover and the background image should be scaled up at the same time gap */
/*.outer-div:hover .inner-div {
transform: scale(1.3);
}
.outer-div .inner-div span {
transform: scale(1);
transition: all ease-in-out 0.3s;
}
.outer-div:hover .inner-div span {
transform: scale(0.75);
}*/
/*.inner-div::before {
content: "";
display: none;
height: 100%;
width: 100%;
position: absolute;
top: 0;
left: 0;
transition: 0.3s;
}*/
/* adjusting inner div properties */
.inner-div {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
.outer-div .inner-div span {
color: white;
color: white;
font-size: 2vw;
}
/* language wise */
/* language sections */
.language {
position: relative;
top: 31vw;
height: auto;
width: 100%;
box-sizing: border-box;
margin: 3vw 0px;
}
/* language content container */
.language-content {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: baseline;
flex-wrap: wrap;
padding: 0px 2px;
}
/* image in language content */
.language-content div img {
width: 10vw;
min-width: 60px;
height: 10vw;
min-height: 60px;
transition: box-shadow ease-in-out 0.1s;
}
/* hovering effects on language content items */
.language-content div img:hover {
box-shadow: 0px 0px 10px 1px white;
}
/* items in language content */
.language-content div {
margin: 2vw 0px;
width: 10.2vw;
min-width: 60px;
}
/* properties for release date and name of the song */
.language-content div p:nth-child(2n) {
width: 100%;
word-wrap: break-word;
}
.language-content div p:nth-child(2n + 1) {
font-size: 12px;
font-weight: lighter;
}
/* ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* section 2 starts here */
/****************************************************************************************/
/* ASIDE SECTION 2 */
.heading {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: baseline;
margin-bottom: 12%;
}
/* heading for the second aside section */
.heading h4 a {
text-decoration: none;
color: greenyellow;
}
/* these are the properties for the queue options box. the queue options box will be visible when one clicks on the queue button */
.queue-options {
position: fixed;
right: 4%;
top: 14%;
background-color: #f8f9fa;
width: 10%;
height: auto;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
padding: 1%;
box-sizing: border-box;
overflow: hidden;
z-index: 2; /* to cover the heart icon */
opacity: 0;
transform: scale(0);
transition: all ease-in-out 0.25s;
}
/* when the queue option box becomes target */
#queue-option-box:target {
opacity: 1;
transform: scale(1);
}
.queue-options {
color: black;
}
.queue-options p {
text-align: center;
}
.queue-options p a {
text-decoration: none;
}
/* horizontal line in queue options box */
hr {
width: 90%;
color: black;
}
/* playlist content */
.playlist-content {
width: 100%;
height: 75vh;
/* margin-top:4vh; */
display: flex;
flex-direction: column;
overflow: scroll;
cursor: pointer;
}
/* playlist content container scroll bar */
.playlist-content::-webkit-scrollbar {
display: none;
}
/* left content contains the image, index and name of the song */
.left-content {
display: flex;
height: 100%;
width: 70%;
flex-direction: row;
flex-wrap: no-wrap;
justify-content: space-between;
align-items: center;
}
.left-content > div:nth-child(3) {
margin-left: 12px;
width: 50%;
word-wrap: break-word;
}
/* right content contains the heart icon */
.right-content {
position: relative;
bottom: 62%;
left: 90%;
width: min-content;
height: 20px;
color: white;
font-size: 20px;
}
.right-content i {
transition: all ease-in-out 0.1s;
}
.right-content i:hover {
color: red;
}
/* class for a partilcular item in playlist */
.playlist-item {
width: 90%;
height: auto;
padding: 0px 1%;
box-sizing: border-box;
margin: 1%;
/* transition: all ease-in-out 0.1s; */
}
/* animation for glowing heart in each of the playlist items */
@keyframes glowing-heart {
0% {
color: yellow;
}
50% {
color: orangered;
}
100% {
color: red;
}
}
/* hover effect on heart */
.playlist-item:hover .fa-heart {
animation-name: glowing-heart;
animation-iteration-count: infinite;
animation-direction: alternate;
animation-duration: 1s;
}
/* playlist items hovering effect */
.playlist-item:hover {
box-shadow: 0px 0px 2px 1px white;
}
/* playlist item image */
.playlist-item img {
width: 80px;
height: 80px;
}
/* this will cover the playlist image. this can be called as a container for half of the items in the left part */
.coverer {
width: 80px;
height: 80px;
}
/******************** Footer section starts here************************************/
footer {
position: fixed;
bottom: 1px;
width: 100%;
height: 60px;
background-color: #282828;
display: flex;
flex-direction: row;
justify-content: space-between;
align-content: center;
flex-wrap: nowrap;
padding: 0px 3%;
box-sizing: border-box;
z-index: 6;
}
/* footer is divided into 3 parts */
/* 1. first part of the footer */
.active-song-description {
/* border:1px solid white; */
height: 90%;
width: 25%;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
}
/* the current song which is being played, this is the image container for that. */
#song-image {
width: 50px;
height: 50px;
min-width: 50px;
min-height: 50px;
}
/* current song image */
#song-image img {
width: 100%;
height: 100%;
}
/* heart and ban icon */
.heart-and-ban-icon {
height: 100%;
padding-top: 4%;
}
/* song decscription */
.song-desc {
margin-right: 1%;
margin-left: 1%;
}
/* song name */
.song-desc div:nth-child(1) {
font-size: 14px;
}
/* song author */
.song-desc div:nth-child(2) {
font-size: 12px;
}
/* 2. Second part of the footer*/
.player {
width: 45%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex-wrap: nowrap;
}
/* controls is the container for all the center controls of the player */
.controls {
width: 40%;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
font-size: 20px;
}
.controls i {
color: white;
}
.heart-and-ban-icon i {
color: white;
}
.extras i{
color: white;
}
/* this is the song-duration slider */
#slider {
width: 100%;
font-size: 12px;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: center;
justify-content: center;
margin-top: 5px;
}
.time {
margin: 0px 10px;
}
/* adjusting the slider for better visuals */
.slidecontainer {
width: 100%;
}
/* for audio and main center player */
.slider {
-webkit-appearance: none;
width: 100%;
height: 5px;
background: #d3d3d3;
outline: none;
opacity: 0.5;
-webkit-transition: 0.2s;
transition: opacity 0.2s;
}
/* third part of the footer */
/* this contains the extra icons and slider for volume */
/* this is also a container */
.extras {
width: 20%;
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
}