Station.vue 21 KB

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