Station.vue 19 KB

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