style.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. body {
  2. background-color: lightgreen;
  3. /* Smoothly transition the background color */
  4. transition: background-color .5s;
  5. }
  6. /* Using flex with the column direction to
  7. align items in a vertical direction */
  8. .player {
  9. height: 95vh;
  10. display: flex;
  11. align-items: center;
  12. flex-direction: column;
  13. justify-content: center;
  14. }
  15. .details {
  16. display: flex;
  17. align-items: center;
  18. flex-direction: column;
  19. justify-content: center;
  20. margin-top: 25px;
  21. }
  22. .track-art {
  23. margin: 25px;
  24. height: 250px;
  25. width: 250px;
  26. background-image: URL("headset.jpeg");
  27. background-size: cover;
  28. background-position: center;
  29. border-radius: 15%;
  30. }
  31. /* Changing the font sizes to suitable ones */
  32. .now-playing {
  33. font-size: 1rem;
  34. }
  35. .track-name {
  36. font-size: 3rem;
  37. }
  38. .display-text {
  39. font-size: 3rem;
  40. }
  41. .track-artist {
  42. font-size: 1.5rem;
  43. }
  44. /* Using flex with the row direction to
  45. align items in a horizontal direction */
  46. .buttons {
  47. display: flex;
  48. flex-direction: row;
  49. align-items: center;
  50. }
  51. .playpause-track,
  52. .prev-track,
  53. .next-track {
  54. padding: 25px;
  55. opacity: 0.8;
  56. /* Smoothly transition the opacity */
  57. transition: opacity .2s;
  58. }
  59. /* Change the opacity when mouse is hovered */
  60. .playpause-track:hover,
  61. .prev-track:hover,
  62. .next-track:hover {
  63. opacity: 1.0;
  64. }
  65. /* Define the slider width so that it scales properly */
  66. .slider_container {
  67. width: 75%;
  68. max-width: 400px;
  69. display: flex;
  70. justify-content: center;
  71. align-items: center;
  72. }
  73. /* Modify the appearance of the slider */
  74. .seek_slider, .volume_slider {
  75. -webkit-appearance: none;
  76. -moz-appearance: none;
  77. appearance: none;
  78. height: 5px;
  79. background: black;
  80. opacity: 0.7;
  81. -webkit-transition: .2s;
  82. transition: opacity .2s;
  83. }
  84. /* Modify the appearance of the slider thumb */
  85. .seek_slider::-webkit-slider-thumb,
  86. .volume_slider::-webkit-slider-thumb {
  87. -webkit-appearance: none;
  88. -moz-appearance: none;
  89. appearance: none;
  90. width: 15px;
  91. height: 15px;
  92. background: white;
  93. cursor: pointer;
  94. border-radius: 50%;
  95. }
  96. /* Change the opacity when mouse is hovered */
  97. .seek_slider:hover,
  98. .volume_slider:hover {
  99. opacity: 1.0;
  100. }
  101. .seek_slider {
  102. width: 60%;
  103. }
  104. .volume_slider {
  105. width: 30%;
  106. }
  107. .current-time,
  108. .total-duration {
  109. padding: 10px;
  110. }
  111. i.fa-volume-down,
  112. i.fa-volume-up {
  113. padding: 10px;
  114. }
  115. /* Change the mouse cursor to a pointer
  116. when hovered over */
  117. i.fa-play-circle,
  118. i.fa-pause-circle,
  119. i.fa-step-forward,
  120. i.fa-step-backward {
  121. cursor: pointer;
  122. }