Station.vue 19 KB

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