Station.vue 19 KB

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