Station.vue 21 KB

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