station.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. @import "colors";
  2. @import "breakpoints";
  3. @mixin aspect-ratio($width, $height) {
  4. position: relative;
  5. &:before {
  6. display: block;
  7. content: "";
  8. width: 100%;
  9. padding-top: ($height / $width) * 100%;
  10. }
  11. > * {
  12. position: absolute;
  13. top: 0;
  14. left: 0;
  15. right: 0;
  16. bottom: 0;
  17. }
  18. }
  19. main#station {
  20. width: calc(100% - 88px);
  21. margin-left: 76px;
  22. // Sidebar
  23. div#sidebar {
  24. width: 64px;
  25. height: calc(100% - 64px);
  26. position: absolute;
  27. top: 64px;
  28. bottom: 0;
  29. left: 0;
  30. background-color: $musare_color_primary_blue;
  31. button {
  32. width: 64px;
  33. height: 64px;
  34. margin: 0;
  35. padding: 0;
  36. i {
  37. font-size: 32px;
  38. margin-top: 8px;
  39. }
  40. }
  41. hr {
  42. width: 64px;
  43. height: 0;
  44. padding: .5px;
  45. background-color: white;
  46. }
  47. }
  48. .player-container {
  49. .iframe-container {
  50. @include aspect-ratio(16, 9);
  51. #player {
  52. width: 100%;
  53. height: 100%;
  54. }
  55. .paused-overlay {
  56. width: 100%;
  57. height: 100%;
  58. background-color: rgba(0,0,0,.6);
  59. pointer-events: none;
  60. }
  61. }
  62. .seekerbar-container {
  63. display: block;
  64. width: 100%;
  65. height: 4px;
  66. background-color: $musare_color_white;
  67. span {
  68. display: inline-block;
  69. background-color: $musare_color_primary_blue;
  70. height: 100%;
  71. float: left;
  72. }
  73. }
  74. }
  75. > .content {
  76. text-align: center;
  77. margin-top: 16px;
  78. .title {
  79. font-size: 24px;
  80. display: block;
  81. }
  82. .artists {
  83. font-size: 20px;
  84. font-weight: $font_weight_semilight;
  85. display: block;
  86. margin-top: 8px;
  87. }
  88. .time {
  89. font-size: 16px;
  90. display: block;
  91. margin-top: 24px;
  92. }
  93. .volume-container {
  94. display: block;
  95. height: 24px;
  96. margin-top: 6px;
  97. i {
  98. font-size: 24px;
  99. float: left;
  100. }
  101. input[type="range"] {
  102. width: calc(100% - 26px);
  103. margin-left: 2px;
  104. margin-top: 2px;
  105. margin-bottom: 2px;
  106. height: 20px;
  107. float: left;
  108. }
  109. }
  110. .ratings-container {
  111. height: 24px;
  112. display: inline-block;
  113. margin-top: 16px;
  114. div {
  115. float: left;
  116. &:last-child {
  117. margin-left: 24px;
  118. }
  119. .liked {
  120. color: green;
  121. }
  122. .disliked {
  123. color: red;
  124. }
  125. i {
  126. font-size: 24px;
  127. float: left;
  128. color: $musare_color_secondary_gray;
  129. cursor: pointer;
  130. &:focus, &:hover {
  131. color: $musare_color_primary_gray;
  132. }
  133. }
  134. span {
  135. font-size: 18px;
  136. margin-left: 8px;
  137. float: left;
  138. color: #4A4A4A;
  139. }
  140. }
  141. }
  142. }
  143. @include responsive(smallest) {
  144. }
  145. @include responsive(small) {
  146. }
  147. }