Station.vue 20 KB

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