Station.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764
  1. <template>
  2. <official-header v-if='type == "official"'></official-header>
  3. <community-header v-if='type == "community"'></community-header>
  4. <song-queue v-if='modals.addSongToQueue'></song-queue>
  5. <edit-playlist v-if='modals.editPlaylist'></edit-playlist>
  6. <create-playlist v-if='modals.createPlaylist'></create-playlist>
  7. <edit-station v-if='modals.editStation'></edit-station>
  8. <report v-if='modals.report'></report>
  9. <queue-sidebar v-if='sidebars.queue'></queue-sidebar>
  10. <playlist-sidebar v-if='sidebars.playlist'></playlist-sidebar>
  11. <users-sidebar v-if='sidebars.users'></users-sidebar>
  12. <div class="station">
  13. <div v-show="noSong" class="noSong">
  14. <h1>No song is currently playing.</h1>
  15. <h4 v-if='type === "community" && station.partyMode'>
  16. <a href='#' class='noSong' @click='sidebars.queue = true'>Add a Song to the Queue</a>
  17. </h4>
  18. <h1 v-if='type === "community" && !station.partyMode && $parent.userId === station.owner && !station.privatePlaylist'>Click <a href="#" @click="sidebars.playlist = true">here</a> to play a private playlist.</h1>
  19. <h1 v-if='type === "community" && !station.partyMode && $parent.userId === station.owner && station.privatePlaylist'>Maybe you can add some songs to your selected private playlist.</h1>
  20. </div>
  21. <div class="columns is-mobile" v-show="!noSong">
  22. <div class="column is-8-desktop is-offset-2-desktop is-12-mobile">
  23. <div class="video-container">
  24. <div id="player"></div>
  25. <div class="seeker-bar-container white" id="preview-progress">
  26. <div class="seeker-bar light-blue" style="width: 0%;"></div>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="columns is-mobile" v-show="!noSong">
  32. <div class="column is-8-desktop is-offset-2-desktop is-12-mobile">
  33. <div class="columns is-mobile">
  34. <div class="column is-12-mobile" v-bind:class="{'is-8-desktop': !simpleSong}">
  35. <h4 id="time-display">{{timeElapsed}} / {{formatTime(currentSong.duration)}}</h4>
  36. <h3>{{currentSong.title}}</h3>
  37. <h4 class="thin" style="margin-left: 0">{{currentSong.artists}}</h4>
  38. <div class="columns is-mobile">
  39. <form style="margin-top: 12px; margin-bottom: 0;" action="#" class="column is-7-desktop is-4-mobile">
  40. <p style="margin-top: 0; position: relative;">
  41. <input type="range" id="volumeSlider" min="0" max="100" class="active" v-on:change="changeVolume()" v-on:input="changeVolume()">
  42. </p>
  43. </form>
  44. <div class="column is-8-mobile is-5-desktop" style="float: right;">
  45. <ul id="ratings" v-if="currentSong.likes !== -1 && currentSong.dislikes !== -1">
  46. <li id="like" class="right" @click="toggleLike()">
  47. <span class="flow-text">{{currentSong.likes}} </span>
  48. <i id="thumbs_up" class="material-icons grey-text" v-bind:class="{liked: liked}">thumb_up</i>
  49. </li>
  50. <li style="margin-right: 10px;" id="dislike" class="right" @click="toggleDislike()">
  51. <span class="flow-text">{{currentSong.dislikes}} </span>
  52. <i id="thumbs_down" class="material-icons grey-text" v-bind:class="{disliked: disliked}">thumb_down</i>
  53. </li>
  54. </ul>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="column is-4-desktop is-12-mobile" v-if="!simpleSong">
  59. <img class="image" id="song-thumbnail" style="margin-top: 10px !important" :src="currentSong.thumbnail" alt="Song Thumbnail" onerror="this.src='/assets/notes-transparent.png'" />
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. </template>
  66. <script>
  67. import { Toast } from 'vue-roaster';
  68. import SongQueue from '../Modals/AddSongToQueue.vue';
  69. import EditPlaylist from '../Modals/Playlists/Edit.vue';
  70. import CreatePlaylist from '../Modals/Playlists/Create.vue';
  71. import EditStation from '../Modals/EditStation.vue';
  72. import Report from '../Modals/Report.vue';
  73. import QueueSidebar from '../Sidebars/Queue.vue';
  74. import PlaylistSidebar from '../Sidebars/Playlist.vue';
  75. import UsersSidebar from '../Sidebars/UsersList.vue';
  76. import OfficialHeader from './OfficialHeader.vue';
  77. import CommunityHeader from './CommunityHeader.vue';
  78. import io from '../../io';
  79. export default {
  80. data() {
  81. return {
  82. type: '',
  83. playerReady: false,
  84. previousSong: null,
  85. currentSong: {},
  86. player: undefined,
  87. timePaused: 0,
  88. paused: false,
  89. timeElapsed: '0:00',
  90. liked: false,
  91. disliked: false,
  92. modals: {
  93. addSongToQueue: false,
  94. editPlaylist: false,
  95. createPlaylist: false,
  96. editStation: false,
  97. report: false
  98. },
  99. sidebars: {
  100. queue: false,
  101. users: false,
  102. playlist: false
  103. },
  104. noSong: false,
  105. simpleSong: false,
  106. queue: [],
  107. timeBeforePause: 0,
  108. station: {},
  109. skipVotes: 0,
  110. privatePlaylistQueueSelected: null
  111. }
  112. },
  113. methods: {
  114. editPlaylist: function (id) {
  115. this.playlistBeingEdited = id;
  116. this.toggleModal('editPlaylist');
  117. },
  118. toggleModal: function (type) {
  119. if (type == 'addSongToQueue') this.modals.addSongToQueue = !this.modals.addSongToQueue;
  120. else if (type == 'editPlaylist') this.modals.editPlaylist = !this.modals.editPlaylist;
  121. else if (type == 'createPlaylist') this.modals.createPlaylist = !this.modals.createPlaylist;
  122. else if (type == 'editStation') this.modals.editStation = !this.modals.editStation;
  123. else if (type == 'report') this.modals.report = !this.modals.report;
  124. },
  125. youtubeReady: function() {
  126. let local = this;
  127. if (!local.player) {
  128. local.player = new YT.Player("player", {
  129. height: 270,
  130. width: 480,
  131. videoId: local.currentSong._id,
  132. startSeconds: local.getTimeElapsed() / 1000 + local.currentSong.skipDuration,
  133. playerVars: {controls: 0, iv_load_policy: 3, rel: 0, showinfo: 0},
  134. events: {
  135. 'onReady': function (event) {
  136. local.playerReady = true;
  137. let volume = parseInt(localStorage.getItem("volume"));
  138. volume = (typeof volume === "number") ? volume : 20;
  139. local.player.setVolume(volume);
  140. if (volume > 0) local.player.unMute();
  141. local.playVideo();
  142. },
  143. 'onStateChange': function (event) {
  144. if (event.data === 1 && local.videoLoading === true) {
  145. local.videoLoading = false;
  146. local.player.seekTo(local.getTimeElapsed() / 1000 + local.currentSong.skipDuration, true);
  147. if (local.paused) local.player.pauseVideo();
  148. } else if (event.data === 1 && local.paused) {
  149. local.player.seekTo(local.timeBeforePause / 1000, true);
  150. local.player.pauseVideo();
  151. }
  152. if (event.data === 2 && !local.paused && !local.noSong) {
  153. local.player.seekTo(local.getTimeElapsed() / 1000 + local.currentSong.skipDuration, true);
  154. local.player.playVideo();
  155. }
  156. }
  157. }
  158. });
  159. }
  160. },
  161. getTimeElapsed: function() {
  162. let local = this;
  163. if (local.currentSong) return Date.now() - local.startedAt - local.timePaused;
  164. else return 0;
  165. },
  166. playVideo: function() {
  167. let local = this;
  168. if (local.playerReady) {
  169. local.videoLoading = true;
  170. local.player.loadVideoById(local.currentSong._id, local.getTimeElapsed() / 1000 + local.currentSong.skipDuration);
  171. if (local.currentSong.artists) local.currentSong.artists = local.currentSong.artists.join(", ");
  172. if (window.stationInterval !== 0) clearInterval(window.stationInterval);
  173. window.stationInterval = setInterval(function () {
  174. local.resizeSeekerbar();
  175. local.calculateTimeElapsed();
  176. }, 250);
  177. }
  178. },
  179. resizeSeekerbar: function() {
  180. let local = this;
  181. if (!local.paused) {
  182. $(".seeker-bar").width(parseInt(((local.getTimeElapsed() / 1000) / local.currentSong.duration * 100)) + "%");
  183. }
  184. },
  185. formatTime: function(duration) {
  186. let d = moment.duration(duration, 'seconds');
  187. return ((d.hours() > 0) ? (d.hours() < 10 ? ("0" + d.hours() + ":") : (d.hours() + ":")) : "") + (d.minutes() + ":") + (d.seconds() < 10 ? ("0" + d.seconds()) : d.seconds());
  188. },
  189. calculateTimeElapsed: function() {
  190. let local = this;
  191. let currentTime = Date.now();
  192. if (local.currentTime !== undefined && local.paused) {
  193. local.timePaused += (Date.now() - local.currentTime);
  194. local.currentTime = undefined;
  195. }
  196. let duration = (Date.now() - local.startedAt - local.timePaused) / 1000;
  197. let songDuration = local.currentSong.duration;
  198. if (songDuration <= duration) local.player.pauseVideo();
  199. if ((!local.paused) && duration <= songDuration) local.timeElapsed = local.formatTime(duration);
  200. },
  201. changeVolume: function() {
  202. let local = this;
  203. let volume = $("#volumeSlider").val();
  204. localStorage.setItem("volume", volume);
  205. if (local.playerReady) {
  206. local.player.setVolume(volume);
  207. if (volume > 0) local.player.unMute();
  208. }
  209. },
  210. resumeLocalStation: function() {
  211. this.paused = false;
  212. if (!this.noSong) {
  213. if (this.playerReady) {
  214. this.player.seekTo(this.getTimeElapsed() / 1000 + this.currentSong.skipDuration);
  215. this.player.playVideo();
  216. }
  217. }
  218. },
  219. pauseLocalStation: function() {
  220. this.paused = true;
  221. if (!this.noSong) {
  222. this.timeBeforePause = this.getTimeElapsed();
  223. if (this.playerReady) this.player.pauseVideo();
  224. }
  225. },
  226. skipStation: function () {
  227. let _this = this;
  228. _this.socket.emit('stations.forceSkip', _this.stationId, data => {
  229. if (data.status !== 'success') Toast.methods.addToast(`Error: ${data.message}`, 8000);
  230. else Toast.methods.addToast('Successfully skipped the station\'s current song.', 4000);
  231. });
  232. },
  233. voteSkipStation: function () {
  234. let _this = this;
  235. _this.socket.emit('stations.voteSkip', _this.stationId, data => {
  236. if (data.status !== 'success') Toast.methods.addToast(`Error: ${data.message}`, 8000);
  237. else Toast.methods.addToast('Successfully voted to skip the current song.', 4000);
  238. });
  239. },
  240. resumeStation: function () {
  241. let _this = this;
  242. _this.socket.emit('stations.resume', _this.stationId, data => {
  243. if (data.status !== 'success') Toast.methods.addToast(`Error: ${data.message}`, 8000);
  244. else Toast.methods.addToast('Successfully resumed the station.', 4000);
  245. });
  246. },
  247. pauseStation: function () {
  248. let _this = this;
  249. _this.socket.emit('stations.pause', _this.stationId, data => {
  250. if (data.status !== 'success') Toast.methods.addToast(`Error: ${data.message}`, 8000);
  251. else Toast.methods.addToast('Successfully paused the station.', 4000);
  252. });
  253. },
  254. toggleLike: function() {
  255. let _this = this;
  256. if (_this.liked) _this.socket.emit('songs.unlike', _this.currentSong._id, data => {
  257. if (data.status !== 'success') Toast.methods.addToast(`Error: ${data.message}`, 8000);
  258. }); else _this.socket.emit('songs.like', _this.currentSong._id, data => {
  259. if (data.status !== 'success') Toast.methods.addToast(`Error: ${data.message}`, 8000);
  260. });
  261. },
  262. toggleDislike: function() {
  263. let _this = this;
  264. if (_this.disliked) return _this.socket.emit('songs.undislike', _this.currentSong._id, data => {
  265. if (data.status !== 'success') Toast.methods.addToast(`Error: ${data.message}`, 8000);
  266. });
  267. _this.socket.emit('songs.dislike', _this.currentSong._id, data => {
  268. if (data.status !== 'success') Toast.methods.addToast(`Error: ${data.message}`, 8000);
  269. });
  270. },
  271. joinStation: function () {
  272. let _this = this;
  273. _this.socket.emit('stations.join', _this.stationId, res => {
  274. if (res.status === 'success') {
  275. _this.station = {
  276. displayName: res.data.displayName,
  277. description: res.data.description,
  278. privacy: res.data.privacy,
  279. partyMode: res.data.partyMode,
  280. owner: res.data.owner,
  281. privatePlaylist: res.data.privatePlaylist
  282. };
  283. _this.currentSong = (res.data.currentSong) ? res.data.currentSong : {};
  284. _this.type = res.data.type;
  285. _this.startedAt = res.data.startedAt;
  286. _this.paused = res.data.paused;
  287. _this.timePaused = res.data.timePaused;
  288. if (res.data.currentSong) {
  289. _this.noSong = false;
  290. _this.simpleSong = (res.data.currentSong.likes === -1 && res.data.currentSong.dislikes === -1);
  291. if (_this.simpleSong) {
  292. _this.currentSong.skipDuration = 0;
  293. }
  294. _this.youtubeReady();
  295. _this.playVideo();
  296. _this.socket.emit('songs.getOwnSongRatings', res.data.currentSong._id, data => {
  297. if (_this.currentSong._id === data.songId) {
  298. _this.liked = data.liked;
  299. _this.disliked = data.disliked;
  300. }
  301. });
  302. } else {
  303. if (_this.playerReady) _this.player.pauseVideo();
  304. _this.noSong = true;
  305. }
  306. if (_this.type === 'community') {
  307. _this.socket.emit('stations.getQueue', _this.stationId, data => {
  308. if (data.status === 'success') _this.queue = data.queue;
  309. });
  310. }
  311. } else {
  312. //TODO Handle error
  313. }
  314. });
  315. }
  316. },
  317. ready: function() {
  318. let _this = this;
  319. _this.stationId = _this.$route.params.id;
  320. window.stationInterval = 0;
  321. io.getSocket((socket) => {
  322. _this.socket = socket;
  323. io.removeAllListeners();
  324. if (_this.socket.connected) _this.joinStation();
  325. io.onConnect(() => {
  326. _this.joinStation();
  327. });
  328. _this.socket.emit('stations.find', _this.stationId, res => {
  329. if (res.status === 'error') {
  330. _this.$router.go('/404');
  331. Toast.methods.addToast(res.message, 3000);
  332. }
  333. });
  334. _this.socket.on('event:songs.next', data => {
  335. _this.previousSong = (_this.currentSong._id) ? _this.currentSong : null;
  336. _this.currentSong = (data.currentSong) ? data.currentSong : {};
  337. _this.startedAt = data.startedAt;
  338. _this.paused = data.paused;
  339. _this.timePaused = data.timePaused;
  340. if (data.currentSong) {
  341. _this.noSong = false;
  342. _this.simpleSong = (data.currentSong.likes === -1 && data.currentSong.dislikes === -1);
  343. if (_this.simpleSong) _this.currentSong.skipDuration = 0;
  344. if (!_this.playerReady) _this.youtubeReady();
  345. else _this.playVideo();
  346. _this.socket.emit('songs.getOwnSongRatings', data.currentSong._id, (data) => {
  347. if (_this.currentSong._id === data.songId) {
  348. _this.liked = data.liked;
  349. _this.disliked = data.disliked;
  350. }
  351. });
  352. } else {
  353. if (_this.playerReady) _this.player.pauseVideo();
  354. _this.noSong = true;
  355. }
  356. });
  357. _this.socket.on('event:stations.pause', data => {
  358. _this.pauseLocalStation();
  359. });
  360. _this.socket.on('event:stations.resume', data => {
  361. _this.timePaused = data.timePaused;
  362. _this.resumeLocalStation();
  363. });
  364. _this.socket.on('event:song.like', data => {
  365. if (!this.noSong) {
  366. if (data.songId === _this.currentSong._id) {
  367. _this.currentSong.likes++;
  368. if (data.undisliked) _this.currentSong.dislikes--;
  369. }
  370. }
  371. });
  372. _this.socket.on('event:song.dislike', data => {
  373. if (!this.noSong) {
  374. if (data.songId === _this.currentSong._id) {
  375. _this.currentSong.dislikes++;
  376. if (data.unliked) _this.currentSong.likes--;
  377. }
  378. }
  379. });
  380. _this.socket.on('event:song.unlike', data => {
  381. if (!this.noSong) {
  382. if (data.songId === _this.currentSong._id) _this.currentSong.likes--;
  383. }
  384. });
  385. _this.socket.on('event:song.undislike', data => {
  386. if (!this.noSong) {
  387. if (data.songId === _this.currentSong._id) _this.currentSong.dislikes--;
  388. }
  389. });
  390. _this.socket.on('event:song.newRatings', data => {
  391. if (!this.noSong) {
  392. if (data.songId === _this.currentSong._id) {
  393. _this.liked = data.liked;
  394. _this.disliked = data.disliked;
  395. }
  396. }
  397. });
  398. _this.socket.on('event:queue.update', queue => {
  399. if (this.type === 'community') this.queue = queue;
  400. });
  401. _this.socket.on('event:song.voteSkipSong', () => {
  402. if (this.currentSong) this.currentSong.skipVotes++;
  403. });
  404. _this.socket.on('event:privatePlaylist.selected', (playlistId) => {
  405. if (this.type === 'community') {
  406. this.station.privatePlaylist = playlistId;
  407. }
  408. });
  409. _this.socket.on('event:partyMode.updated', (partyMode) => {
  410. if (this.type === 'community') {
  411. this.station.partyMode = partyMode;
  412. }
  413. });
  414. });
  415. let volume = parseInt(localStorage.getItem("volume"));
  416. volume = (typeof volume === "number") ? volume : 20;
  417. $("#volumeSlider").val(volume);
  418. },
  419. components: {
  420. OfficialHeader,
  421. CommunityHeader,
  422. SongQueue,
  423. EditPlaylist,
  424. CreatePlaylist,
  425. EditStation,
  426. Report,
  427. QueueSidebar,
  428. PlaylistSidebar,
  429. UsersSidebar
  430. }
  431. }
  432. </script>
  433. <style lang="scss">
  434. .noSong {
  435. color: #03A9F4;
  436. text-align: center;
  437. }
  438. .stationDisplayName {
  439. color: white !important;
  440. }
  441. .slideout {
  442. top: 50px;
  443. height: 100%;
  444. position: fixed;
  445. right: 0;
  446. width: 350px;
  447. background-color: white;
  448. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  449. .slideout-header {
  450. text-align: center;
  451. background-color: rgb(3, 169, 244) !important;
  452. margin: 0;
  453. padding-top: 5px;
  454. padding-bottom: 7px;
  455. color: white;
  456. }
  457. .slideout-content {
  458. height: 100%;
  459. }
  460. }
  461. .modal-large {
  462. width: 75%;
  463. }
  464. .station {
  465. flex: 1 0 auto;
  466. padding-top: 0.5vw;
  467. transition: all 0.1s;
  468. margin: 0 auto;
  469. max-width: 1280px;
  470. width: 90%;
  471. @media only screen and (min-width: 993px) {
  472. width: 70%;
  473. }
  474. @media only screen and (min-width: 601px) {
  475. width: 85%;
  476. }
  477. input[type=range] {
  478. -webkit-appearance: none;
  479. width: 100%;
  480. margin: 7.3px 0;
  481. }
  482. input[type=range]:focus {
  483. outline: none;
  484. }
  485. input[type=range]::-webkit-slider-runnable-track {
  486. width: 100%;
  487. height: 5.2px;
  488. cursor: pointer;
  489. box-shadow: 0;
  490. background: #c2c0c2;
  491. border-radius: 0;
  492. border: 0;
  493. }
  494. input[type=range]::-webkit-slider-thumb {
  495. box-shadow: 0;
  496. border: 0;
  497. height: 19px;
  498. width: 19px;
  499. border-radius: 15px;
  500. background: #03a9f4;
  501. cursor: pointer;
  502. -webkit-appearance: none;
  503. margin-top: -6.5px;
  504. }
  505. input[type=range]::-moz-range-track {
  506. width: 100%;
  507. height: 5.2px;
  508. cursor: pointer;
  509. box-shadow: 0;
  510. background: #c2c0c2;
  511. border-radius: 0;
  512. border: 0;
  513. }
  514. input[type=range]::-moz-range-thumb {
  515. box-shadow: 0;
  516. border: 0;
  517. height: 19px;
  518. width: 19px;
  519. border-radius: 15px;
  520. background: #03a9f4;
  521. cursor: pointer;
  522. -webkit-appearance: none;
  523. margin-top: -6.5px;
  524. }
  525. input[type=range]::-ms-track {
  526. width: 100%;
  527. height: 5.2px;
  528. cursor: pointer;
  529. box-shadow: 0;
  530. background: #c2c0c2;
  531. border-radius: 1.3px;
  532. }
  533. input[type=range]::-ms-fill-lower {
  534. background: #c2c0c2;
  535. border: 0;
  536. border-radius: 0;
  537. box-shadow: 0;
  538. }
  539. input[type=range]::-ms-fill-upper {
  540. background: #c2c0c2;
  541. border: 0;
  542. border-radius: 0;
  543. box-shadow: 0;
  544. }
  545. input[type=range]::-ms-thumb {
  546. box-shadow: 0;
  547. border: 0;
  548. height: 15px;
  549. width: 15px;
  550. border-radius: 15px;
  551. background: #03a9f4;
  552. cursor: pointer;
  553. -webkit-appearance: none;
  554. margin-top: 1.5px;
  555. }
  556. .video-container {
  557. position: relative;
  558. padding-bottom: 56.25%;
  559. height: 0;
  560. overflow: hidden;
  561. iframe {
  562. position: absolute;
  563. top: 0;
  564. left: 0;
  565. width: 100%;
  566. height: 100%;
  567. }
  568. }
  569. .video-col {
  570. padding-right: 0.75rem;
  571. padding-left: 0.75rem;
  572. }
  573. }
  574. .room-title {
  575. left: 50%;
  576. -webkit-transform: translateX(-50%);
  577. transform: translateX(-50%);
  578. font-size: 2.1em;
  579. }
  580. #ratings {
  581. span {
  582. font-size: 1.68rem;
  583. }
  584. i {
  585. color: #9e9e9e !important;
  586. cursor: pointer;
  587. transition: 0.1s color;
  588. }
  589. }
  590. #time-display {
  591. margin-top: 30px;
  592. float: right;
  593. }
  594. #thumbs_up:hover, #thumbs_up.liked {
  595. color: #87D37C !important;
  596. }
  597. #thumbs_down:hover, #thumbs_down.disliked {
  598. color: #EC644B !important;
  599. }
  600. #song-thumbnail {
  601. max-width: 100%;
  602. width: 85%;
  603. }
  604. .seeker-bar-container {
  605. position: relative;
  606. height: 5px;
  607. display: block;
  608. width: 100%;
  609. overflow: hidden;
  610. }
  611. .seeker-bar {
  612. top: 0;
  613. left: 0;
  614. bottom: 0;
  615. position: absolute;
  616. }
  617. ul {
  618. list-style: none;
  619. margin: 0;
  620. display: block;
  621. }
  622. h1, h2, h3, h4, h5, h6 {
  623. font-weight: 400;
  624. line-height: 1.1;
  625. }
  626. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  627. font-weight: inherit;
  628. }
  629. h1 {
  630. font-size: 4.2rem;
  631. line-height: 110%;
  632. margin: 2.1rem 0 1.68rem 0;
  633. }
  634. h2 {
  635. font-size: 3.56rem;
  636. line-height: 110%;
  637. margin: 1.78rem 0 1.424rem 0;
  638. }
  639. h3 {
  640. font-size: 2.92rem;
  641. line-height: 110%;
  642. margin: 1.46rem 0 1.168rem 0;
  643. }
  644. h4 {
  645. font-size: 2.28rem;
  646. line-height: 110%;
  647. margin: 1.14rem 0 0.912rem 0;
  648. }
  649. h5 {
  650. font-size: 1.64rem;
  651. line-height: 110%;
  652. margin: 0.82rem 0 0.656rem 0;
  653. }
  654. h6 {
  655. font-size: 1rem;
  656. line-height: 110%;
  657. margin: 0.5rem 0 0.4rem 0;
  658. }
  659. .thin {
  660. font-weight: 200;
  661. }
  662. .left {
  663. float: left !important;
  664. }
  665. .right {
  666. float: right !important;
  667. }
  668. .light-blue {
  669. background-color: #03a9f4 !important;
  670. }
  671. .white {
  672. background-color: #FFFFFF !important;
  673. }
  674. .btn-search {
  675. font-size: 14px;
  676. }
  677. .menu { padding: 0 10px; }
  678. .menu-list li a:hover { color: #000 !important; }
  679. .menu-list li {
  680. display: flex;
  681. justify-content: space-between;
  682. }
  683. .menu-list a {
  684. padding: 0 10px !important;
  685. }
  686. .icons-group { display: flex; }
  687. </style>