Station.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  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. },
  295. ready: function() {
  296. let _this = this;
  297. _this.stationId = _this.$route.params.id;
  298. window.stationInterval = 0;
  299. let socketInterval = setInterval(() => {
  300. if (!!_this.$parent.socket) {
  301. _this.socket = _this.$parent.socket;
  302. _this.socket.removeAllListeners();
  303. _this.socket.emit('stations.join', _this.stationId, res => {
  304. if (res.status === 'success') {
  305. _this.station = {
  306. displayName: res.data.displayName,
  307. description: res.data.description,
  308. privacy: res.data.privacy,
  309. partyMode: res.data.partyMode,
  310. owner: res.data.owner,
  311. privatePlaylist: res.data.privatePlaylist
  312. };
  313. _this.currentSong = (res.data.currentSong) ? res.data.currentSong : {};
  314. _this.type = res.data.type;
  315. _this.startedAt = res.data.startedAt;
  316. _this.paused = res.data.paused;
  317. _this.timePaused = res.data.timePaused;
  318. if (res.data.currentSong) {
  319. _this.noSong = false;
  320. _this.simpleSong = (res.data.currentSong.likes === -1 && res.data.currentSong.dislikes === -1);
  321. if (_this.simpleSong) {
  322. _this.currentSong.skipDuration = 0;
  323. }
  324. console.log(12334);
  325. _this.youtubeReady();
  326. _this.playVideo();
  327. _this.socket.emit('songs.getOwnSongRatings', res.data.currentSong._id, data => {
  328. if (_this.currentSong._id === data.songId) {
  329. _this.liked = data.liked;
  330. _this.disliked = data.disliked;
  331. }
  332. });
  333. } else {
  334. if (_this.playerReady) _this.player.pauseVideo();
  335. console.log("NO SONG TRUE1", res.data);
  336. _this.noSong = true;
  337. }
  338. if (_this.type === 'community') {
  339. _this.socket.emit('stations.getQueue', _this.stationId, data => {
  340. console.log(data);
  341. if (data.status === 'success') {
  342. _this.queue = data.queue;
  343. }
  344. });
  345. }
  346. } else {
  347. //TODO Handle error
  348. }
  349. });
  350. _this.socket.on('event:songs.next', data => {
  351. _this.currentSong = (data.currentSong) ? data.currentSong : {};
  352. _this.startedAt = data.startedAt;
  353. _this.paused = data.paused;
  354. _this.timePaused = data.timePaused;
  355. if (data.currentSong) {
  356. _this.noSong = false;
  357. _this.simpleSong = (data.currentSong.likes === -1 && data.currentSong.dislikes === -1);
  358. if (_this.simpleSong) {
  359. _this.currentSong.skipDuration = 0;
  360. }
  361. console.log(1233, _this.stationId);
  362. if (!_this.playerReady) _this.youtubeReady();
  363. else _this.playVideo();
  364. _this.socket.emit('songs.getOwnSongRatings', data.currentSong._id, (data) => {
  365. if (_this.currentSong._id === data.songId) {
  366. _this.liked = data.liked;
  367. _this.disliked = data.disliked;
  368. }
  369. });
  370. } else {
  371. if (_this.playerReady) _this.player.pauseVideo();
  372. console.log("NO SONG TRUE2", data);
  373. _this.noSong = true;
  374. }
  375. });
  376. _this.socket.on('event:stations.pause', data => {
  377. _this.pauseLocalStation();
  378. });
  379. _this.socket.on('event:stations.resume', data => {
  380. _this.timePaused = data.timePaused;
  381. _this.resumeLocalStation();
  382. });
  383. _this.socket.on('event:song.like', data => {
  384. if (!this.noSong) {
  385. if (data.songId === _this.currentSong._id) {
  386. _this.currentSong.likes++;
  387. if (data.undisliked) _this.currentSong.dislikes--;
  388. }
  389. }
  390. });
  391. _this.socket.on('event:song.dislike', data => {
  392. if (!this.noSong) {
  393. if (data.songId === _this.currentSong._id) {
  394. _this.currentSong.dislikes++;
  395. if (data.unliked) _this.currentSong.likes--;
  396. }
  397. }
  398. });
  399. _this.socket.on('event:song.unlike', data => {
  400. if (!this.noSong) {
  401. if (data.songId === _this.currentSong._id) _this.currentSong.likes--;
  402. }
  403. });
  404. _this.socket.on('event:song.undislike', data => {
  405. if (!this.noSong) {
  406. if (data.songId === _this.currentSong._id) _this.currentSong.dislikes--;
  407. }
  408. });
  409. _this.socket.on('event:song.newRatings', data => {
  410. if (!this.noSong) {
  411. if (data.songId === _this.currentSong._id) {
  412. _this.liked = data.liked;
  413. _this.disliked = data.disliked;
  414. }
  415. }
  416. });
  417. _this.socket.on('event:queue.update', queue => {
  418. if (this.type === 'community') {
  419. this.queue = queue;
  420. }
  421. });
  422. _this.socket.on('event:song.voteSkipSong', () => {
  423. if (this.currentSong) {
  424. this.currentSong.skipVotes++;
  425. }
  426. });
  427. clearInterval(socketInterval);
  428. }
  429. }, 100);
  430. let volume = parseInt(localStorage.getItem("volume"));
  431. volume = (typeof volume === "number") ? volume : 20;
  432. $("#volumeSlider").val(volume);
  433. },
  434. components: { OfficialHeader, CommunityHeader, SongQueue, EditPlaylist, CreatePlaylist, EditStation, QueueSidebar, PlaylistSidebar, UsersSidebar }
  435. }
  436. </script>
  437. <style lang="scss">
  438. .noSong {
  439. color: #03A9F4;
  440. text-align: center;
  441. }
  442. .slideout {
  443. top: 50px;
  444. height: 100%;
  445. position: fixed;
  446. right: 0;
  447. width: 350px;
  448. background-color: white;
  449. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  450. .slideout-header {
  451. text-align: center;
  452. background-color: rgb(3, 169, 244) !important;
  453. margin: 0;
  454. padding-top: 5px;
  455. padding-bottom: 7px;
  456. color: white;
  457. }
  458. .slideout-content {
  459. height: 100%;
  460. }
  461. }
  462. .modal-large {
  463. width: 75%;
  464. }
  465. .station {
  466. flex: 1 0 auto;
  467. padding-top: 0.5vw;
  468. transition: all 0.1s;
  469. margin: 0 auto;
  470. max-width: 1280px;
  471. width: 90%;
  472. @media only screen and (min-width: 993px) {
  473. width: 70%;
  474. }
  475. @media only screen and (min-width: 601px) {
  476. width: 85%;
  477. }
  478. input[type=range] {
  479. -webkit-appearance: none;
  480. width: 100%;
  481. margin: 7.3px 0;
  482. }
  483. input[type=range]:focus {
  484. outline: none;
  485. }
  486. input[type=range]::-webkit-slider-runnable-track {
  487. width: 100%;
  488. height: 5.2px;
  489. cursor: pointer;
  490. box-shadow: 0;
  491. background: #c2c0c2;
  492. border-radius: 0;
  493. border: 0;
  494. }
  495. input[type=range]::-webkit-slider-thumb {
  496. box-shadow: 0;
  497. border: 0;
  498. height: 19px;
  499. width: 19px;
  500. border-radius: 15px;
  501. background: #03a9f4;
  502. cursor: pointer;
  503. -webkit-appearance: none;
  504. margin-top: -6.5px;
  505. }
  506. input[type=range]::-moz-range-track {
  507. width: 100%;
  508. height: 5.2px;
  509. cursor: pointer;
  510. box-shadow: 0;
  511. background: #c2c0c2;
  512. border-radius: 0;
  513. border: 0;
  514. }
  515. input[type=range]::-moz-range-thumb {
  516. box-shadow: 0;
  517. border: 0;
  518. height: 19px;
  519. width: 19px;
  520. border-radius: 15px;
  521. background: #03a9f4;
  522. cursor: pointer;
  523. -webkit-appearance: none;
  524. margin-top: -6.5px;
  525. }
  526. input[type=range]::-ms-track {
  527. width: 100%;
  528. height: 5.2px;
  529. cursor: pointer;
  530. box-shadow: 0;
  531. background: #c2c0c2;
  532. border-radius: 1.3px;
  533. }
  534. input[type=range]::-ms-fill-lower {
  535. background: #c2c0c2;
  536. border: 0;
  537. border-radius: 0;
  538. box-shadow: 0;
  539. }
  540. input[type=range]::-ms-fill-upper {
  541. background: #c2c0c2;
  542. border: 0;
  543. border-radius: 0;
  544. box-shadow: 0;
  545. }
  546. input[type=range]::-ms-thumb {
  547. box-shadow: 0;
  548. border: 0;
  549. height: 15px;
  550. width: 15px;
  551. border-radius: 15px;
  552. background: #03a9f4;
  553. cursor: pointer;
  554. -webkit-appearance: none;
  555. margin-top: 1.5px;
  556. }
  557. .video-container {
  558. position: relative;
  559. padding-bottom: 56.25%;
  560. height: 0;
  561. overflow: hidden;
  562. iframe {
  563. position: absolute;
  564. top: 0;
  565. left: 0;
  566. width: 100%;
  567. height: 100%;
  568. }
  569. }
  570. .video-col {
  571. padding-right: 0.75rem;
  572. padding-left: 0.75rem;
  573. }
  574. }
  575. .room-title {
  576. left: 50%;
  577. -webkit-transform: translateX(-50%);
  578. transform: translateX(-50%);
  579. font-size: 2.1em;
  580. }
  581. #ratings {
  582. span {
  583. font-size: 1.68rem;
  584. }
  585. i {
  586. color: #9e9e9e !important;
  587. cursor: pointer;
  588. transition: 0.1s color;
  589. }
  590. }
  591. #time-display {
  592. margin-top: 30px;
  593. float: right;
  594. }
  595. #thumbs_up:hover, #thumbs_up.liked {
  596. color: #87D37C !important;
  597. }
  598. #thumbs_down:hover, #thumbs_down.disliked {
  599. color: #EC644B !important;
  600. }
  601. #song-thumbnail {
  602. max-width: 100%;
  603. width: 85%;
  604. }
  605. .seeker-bar-container {
  606. position: relative;
  607. height: 5px;
  608. display: block;
  609. width: 100%;
  610. overflow: hidden;
  611. }
  612. .seeker-bar {
  613. top: 0;
  614. left: 0;
  615. bottom: 0;
  616. position: absolute;
  617. }
  618. ul {
  619. list-style: none;
  620. margin: 0;
  621. display: block;
  622. }
  623. h1, h2, h3, h4, h5, h6 {
  624. font-weight: 400;
  625. line-height: 1.1;
  626. }
  627. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  628. font-weight: inherit;
  629. }
  630. h1 {
  631. font-size: 4.2rem;
  632. line-height: 110%;
  633. margin: 2.1rem 0 1.68rem 0;
  634. }
  635. h2 {
  636. font-size: 3.56rem;
  637. line-height: 110%;
  638. margin: 1.78rem 0 1.424rem 0;
  639. }
  640. h3 {
  641. font-size: 2.92rem;
  642. line-height: 110%;
  643. margin: 1.46rem 0 1.168rem 0;
  644. }
  645. h4 {
  646. font-size: 2.28rem;
  647. line-height: 110%;
  648. margin: 1.14rem 0 0.912rem 0;
  649. }
  650. h5 {
  651. font-size: 1.64rem;
  652. line-height: 110%;
  653. margin: 0.82rem 0 0.656rem 0;
  654. }
  655. h6 {
  656. font-size: 1rem;
  657. line-height: 110%;
  658. margin: 0.5rem 0 0.4rem 0;
  659. }
  660. .thin {
  661. font-weight: 200;
  662. }
  663. .left {
  664. float: left !important;
  665. }
  666. .right {
  667. float: right !important;
  668. }
  669. .light-blue {
  670. background-color: #03a9f4 !important;
  671. }
  672. .white {
  673. background-color: #FFFFFF !important;
  674. }
  675. .btn-search {
  676. font-size: 14px;
  677. }
  678. </style>