Station.vue 20 KB

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