App.vue 20 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148
  1. <template>
  2. <div class="upper-container">
  3. <banned v-if="banned" />
  4. <div v-else class="upper-container">
  5. <router-view :key="$route.fullPath" class="main-container" />
  6. <what-is-new v-show="modals.whatIsNew" />
  7. <login-modal v-if="modals.login" />
  8. <register-modal v-if="modals.register" />
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. import { mapState, mapActions, mapGetters } from "vuex";
  14. import Toast from "toasters";
  15. import ws from "./ws";
  16. import aw from "./aw";
  17. import keyboardShortcuts from "./keyboardShortcuts";
  18. export default {
  19. components: {
  20. WhatIsNew: () => import("@/components/modals/WhatIsNew.vue"),
  21. LoginModal: () => import("@/components/modals/Login.vue"),
  22. RegisterModal: () => import("@/components/modals/Register.vue"),
  23. Banned: () => import("@/pages/Banned.vue")
  24. },
  25. replace: false,
  26. data() {
  27. return {
  28. apiDomain: "",
  29. socketConnected: true,
  30. keyIsDown: false
  31. };
  32. },
  33. computed: {
  34. ...mapState({
  35. loggedIn: state => state.user.auth.loggedIn,
  36. role: state => state.user.auth.role,
  37. username: state => state.user.auth.username,
  38. userId: state => state.user.auth.userId,
  39. banned: state => state.user.auth.banned,
  40. modals: state => state.modalVisibility.modals,
  41. currentlyActive: state => state.modalVisibility.currentlyActive,
  42. nightmode: state => state.user.preferences.nightmode,
  43. activityWatch: state => state.user.preferences.activityWatch
  44. }),
  45. ...mapGetters({
  46. socket: "websockets/getSocket"
  47. })
  48. },
  49. watch: {
  50. socketConnected(connected) {
  51. if (!connected) this.disconnectedMessage.show();
  52. else this.disconnectedMessage.hide();
  53. },
  54. nightmode(nightmode) {
  55. if (nightmode) this.enableNightMode();
  56. else this.disableNightMode();
  57. },
  58. activityWatch(activityWatch) {
  59. if (activityWatch) aw.enable();
  60. else aw.disable();
  61. }
  62. },
  63. async mounted() {
  64. document.onkeydown = ev => {
  65. const event = ev || window.event;
  66. const { keyCode } = event;
  67. const shift = event.shiftKey;
  68. const ctrl = event.ctrlKey;
  69. const alt = event.altKey;
  70. const identifier = `${keyCode}.${shift}.${ctrl}`;
  71. if (this.keyIsDown === identifier) return;
  72. this.keyIsDown = identifier;
  73. keyboardShortcuts.handleKeyDown(event, keyCode, shift, ctrl, alt);
  74. };
  75. document.onkeyup = () => {
  76. this.keyIsDown = "";
  77. };
  78. keyboardShortcuts.registerShortcut("closeModal", {
  79. keyCode: 27,
  80. shift: false,
  81. ctrl: false,
  82. handler: () => {
  83. if (Object.keys(this.currentlyActive).length !== 0)
  84. this.closeCurrentModal();
  85. }
  86. });
  87. if (localStorage.getItem("github_redirect")) {
  88. this.$router.push(localStorage.getItem("github_redirect"));
  89. localStorage.removeItem("github_redirect");
  90. }
  91. this.disconnectedMessage = new Toast({
  92. content: "Could not connect to the server.",
  93. persistent: true,
  94. interactable: false
  95. });
  96. this.disconnectedMessage.hide();
  97. ws.onConnect(true, () => {
  98. this.socketConnected = true;
  99. });
  100. ws.onDisconnect(true, () => {
  101. this.socketConnected = false;
  102. });
  103. this.apiDomain = await lofig.get("apiDomain");
  104. this.$router.onReady(() => {
  105. if (this.$route.query.err) {
  106. let { err } = this.$route.query;
  107. err = err
  108. .replace(new RegExp("<", "g"), "&lt;")
  109. .replace(new RegExp(">", "g"), "&gt;");
  110. this.$router.push({ query: {} });
  111. new Toast({ content: err, timeout: 20000 });
  112. }
  113. if (this.$route.query.msg) {
  114. let { msg } = this.$route.query;
  115. msg = msg
  116. .replace(new RegExp("<", "g"), "&lt;")
  117. .replace(new RegExp(">", "g"), "&gt;");
  118. this.$router.push({ query: {} });
  119. new Toast({ content: msg, timeout: 20000 });
  120. }
  121. });
  122. this.socket.dispatch("users.getPreferences", res => {
  123. if (res.status === "success") {
  124. const { preferences } = res.data;
  125. this.changeAutoSkipDisliked(preferences.autoSkipDisliked);
  126. this.changeNightmode(preferences.nightmode);
  127. this.changeActivityLogPublic(preferences.activityLogPublic);
  128. this.changeAnonymousSongRequests(
  129. preferences.anonymousSongRequests
  130. );
  131. this.changeActivityWatch(preferences.activityWatch);
  132. if (this.nightmode) this.enableNightMode();
  133. else this.disableNightMode();
  134. }
  135. });
  136. this.socket.on("keep.event:user.session.removed", () =>
  137. window.location.reload()
  138. );
  139. },
  140. methods: {
  141. submitOnEnter: (cb, event) => {
  142. if (event.which === 13) cb();
  143. },
  144. enableNightMode: () => {
  145. document
  146. .getElementsByTagName("body")[0]
  147. .classList.add("night-mode");
  148. },
  149. disableNightMode: () => {
  150. document
  151. .getElementsByTagName("body")[0]
  152. .classList.remove("night-mode");
  153. },
  154. ...mapActions("modalVisibility", ["closeCurrentModal"]),
  155. ...mapActions("user/preferences", [
  156. "changeNightmode",
  157. "changeAutoSkipDisliked",
  158. "changeActivityLogPublic",
  159. "changeAnonymousSongRequests",
  160. "changeActivityWatch"
  161. ])
  162. }
  163. };
  164. </script>
  165. <style lang="scss">
  166. :root {
  167. --primary-color: var(--blue);
  168. --blue: rgb(2, 166, 242);
  169. --light-blue: rgb(163, 224, 255);
  170. --dark-blue: rgb(0, 102, 244);
  171. --teal: rgb(0, 209, 178);
  172. --purple: rgb(143, 40, 140);
  173. --light-purple: rgb(170, 141, 216);
  174. --yellow: rgb(241, 196, 15);
  175. --light-pink: rgb(228, 155, 166);
  176. --dark-pink: rgb(234, 72, 97);
  177. --orange: rgb(255, 94, 0);
  178. --dark-orange: rgb(250, 50, 0);
  179. --green: rgb(68, 189, 50);
  180. --red: rgb(231, 77, 60);
  181. --white: rgb(255, 255, 255);
  182. --black: rgb(0, 0, 0);
  183. --light-grey: rgb(245, 245, 245);
  184. --light-grey-2: rgb(221, 221, 221);
  185. --light-grey-3: rgb(195, 193, 195);
  186. --grey: rgb(107, 107, 107);
  187. --grey-2: rgb(113, 113, 113);
  188. --grey-3: rgb(126, 126, 126);
  189. --dark-grey: rgb(77, 77, 77);
  190. --dark-grey-2: rgb(51, 51, 51);
  191. --dark-grey-3: rgb(34, 34, 34);
  192. --dark-grey-4: rgb(26, 26, 26);
  193. --youtube: rgb(189, 46, 46);
  194. }
  195. .night-mode {
  196. div {
  197. // background-color: var(--black);
  198. color: var(--light-grey-2);
  199. }
  200. #toasts-container .toast {
  201. // color: var(--dark-grey-2);
  202. // background-color: var(--light-grey-3) !important;
  203. // &:last-of-type {
  204. // background-color: var(--light-grey) !important;
  205. // }
  206. }
  207. h1,
  208. h2,
  209. h3,
  210. h4,
  211. h5,
  212. h6 {
  213. color: var(--white) !important;
  214. }
  215. p:not(.help),
  216. label,
  217. .label {
  218. color: var(--light-grey-2) !important;
  219. }
  220. .section,
  221. .content {
  222. background-color: var(--dark-grey-3) !important;
  223. }
  224. .content-box,
  225. .step:not(.selected) {
  226. background-color: var(--dark-grey-3) !important;
  227. }
  228. .tippy-tooltip.songActions-theme {
  229. background-color: var(--dark-grey);
  230. }
  231. }
  232. body.night-mode {
  233. background-color: var(--black) !important;
  234. }
  235. #toasts-container {
  236. z-index: 10000 !important;
  237. .toast {
  238. font-weight: 600;
  239. // background-color: var(--dark-grey) !important;
  240. // &:last-of-type {
  241. // background-color: var(--dark-grey-2) !important;
  242. // }
  243. }
  244. }
  245. html {
  246. overflow: auto !important;
  247. height: 100%;
  248. }
  249. body {
  250. background-color: var(--light-grey);
  251. color: var(--dark-grey);
  252. height: 100%;
  253. font-family: "Inter", Helvetica, Arial, sans-serif;
  254. }
  255. h1,
  256. h2,
  257. h3,
  258. h4,
  259. h5,
  260. h6,
  261. .sidebar-title {
  262. font-family: "Inter", Helvetica, Arial, sans-serif;
  263. }
  264. .modal-card-title {
  265. font-weight: 600;
  266. font-family: "Inter", Helvetica, Arial, sans-serif;
  267. }
  268. p,
  269. button,
  270. input,
  271. select,
  272. textarea {
  273. font-family: "Inter", Helvetica, Arial, sans-serif;
  274. }
  275. .upper-container {
  276. height: 100%;
  277. }
  278. .main-container {
  279. height: 100%;
  280. display: flex;
  281. flex-direction: column;
  282. > .container {
  283. flex: 1 0 auto;
  284. }
  285. }
  286. a {
  287. color: var(--primary-color);
  288. text-decoration: none;
  289. }
  290. .modal-card {
  291. margin: 0 !important;
  292. }
  293. .absolute-a {
  294. width: 100%;
  295. height: 100%;
  296. position: absolute;
  297. top: 0;
  298. left: 0;
  299. }
  300. .alert {
  301. padding: 20px;
  302. color: var(--white);
  303. background-color: var(--red);
  304. position: fixed;
  305. top: 50px;
  306. right: 50px;
  307. font-size: 2em;
  308. border-radius: 5px;
  309. z-index: 10000000;
  310. }
  311. .tippy-tooltip.dark-theme {
  312. font-size: 14px;
  313. padding: 5px 10px;
  314. }
  315. .night-mode {
  316. .tippy-tooltip {
  317. &.dark-theme {
  318. border: 1px solid var(--light-grey-3);
  319. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
  320. 0 10px 10px rgba(0, 0, 0, 0.22);
  321. background-color: white;
  322. .tippy-content {
  323. color: var(--black);
  324. }
  325. }
  326. &.songActions-theme {
  327. background-color: var(--dark-grey-2);
  328. border: 0 !important;
  329. i,
  330. a {
  331. color: var(--white);
  332. }
  333. .youtube-icon {
  334. background-color: var(--white);
  335. }
  336. }
  337. &.addToPlaylist-theme {
  338. background-color: var(--dark-grey-2);
  339. border: 0 !important;
  340. .nav-dropdown-items {
  341. .nav-item {
  342. background-color: var(--dark-grey);
  343. &:focus {
  344. outline-color: var(--dark-grey);
  345. }
  346. p {
  347. color: var(--white);
  348. }
  349. .checkbox-control label span {
  350. background-color: var(--dark-grey-2);
  351. }
  352. }
  353. }
  354. }
  355. }
  356. .tippy-popper[x-placement^="top"] .tippy-tooltip {
  357. &.songActions-theme,
  358. &.addToPlaylist-theme {
  359. .tippy-arrow {
  360. border-top-color: var(--dark-grey-2);
  361. }
  362. }
  363. &.dark-theme .tippy-arrow {
  364. border-top-color: var(--white);
  365. }
  366. }
  367. .tippy-popper[x-placement^="bottom"] .tippy-tooltip {
  368. &.songActions-theme,
  369. &.addToPlaylist-theme {
  370. .tippy-arrow {
  371. border-bottom-color: var(--dark-grey-2);
  372. }
  373. }
  374. &.dark-theme .tippy-arrow {
  375. border-bottom-color: var(--white);
  376. }
  377. }
  378. .tippy-popper[x-placement^="left"] .tippy-tooltip {
  379. &.songActions-theme,
  380. &.addToPlaylist-theme {
  381. .tippy-arrow {
  382. border-left-color: var(--dark-grey-2);
  383. }
  384. }
  385. &.dark-theme .tippy-arrow {
  386. border-left-color: var(--white);
  387. }
  388. }
  389. .tippy-popper[x-placement^="right"] .tippy-tooltip {
  390. &.songActions-theme,
  391. &.addToPlaylist-theme {
  392. .tippy-arrow {
  393. border-right-color: var(--dark-grey-2);
  394. }
  395. }
  396. &.dark-theme .tippy-arrow {
  397. border-right-color: var(--white);
  398. }
  399. }
  400. }
  401. .tippy-tooltip.confirm-theme {
  402. background-color: var(--red);
  403. padding: 5px 10px;
  404. a {
  405. color: var(--white);
  406. font-size: 14px;
  407. font-weight: 600;
  408. &:hover,
  409. &:focus {
  410. filter: brightness(90%);
  411. }
  412. }
  413. }
  414. .tippy-tooltip.songActions-theme {
  415. font-size: 14px;
  416. padding: 5px 10px;
  417. border: 1px solid var(--light-grey-3);
  418. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  419. background-color: var(--white);
  420. .button {
  421. width: 146px;
  422. }
  423. .song-actions,
  424. .addToPlaylistDropdown,
  425. .song-actions > div {
  426. display: inline-block;
  427. }
  428. .addToPlaylistDropdown .tippy-popper {
  429. max-width: unset;
  430. }
  431. i,
  432. a {
  433. display: inline-block;
  434. cursor: pointer;
  435. color: var(--dark-grey);
  436. vertical-align: middle;
  437. &:hover,
  438. &:focus {
  439. filter: brightness(90%);
  440. }
  441. &:not(:first-of-type) {
  442. margin-left: 5px;
  443. }
  444. }
  445. .play-icon {
  446. color: var(--green);
  447. }
  448. .edit-icon,
  449. .view-icon,
  450. .add-to-playlist-icon,
  451. .add-to-queue-icon {
  452. color: var(--primary-color);
  453. }
  454. .hide-icon {
  455. color: var(--light-grey-3);
  456. }
  457. .stop-icon,
  458. .delete-icon {
  459. color: var(--red);
  460. }
  461. .report-icon {
  462. color: var(--yellow);
  463. }
  464. }
  465. .tippy-popper[x-placement^="top"] .tippy-tooltip {
  466. &.songActions-theme,
  467. &.addToPlaylist-theme {
  468. .tippy-arrow {
  469. border-top-color: var(--light-grey-3);
  470. }
  471. }
  472. &.confirm-theme .tippy-arrow {
  473. border-top-color: var(--red);
  474. }
  475. }
  476. .tippy-popper[x-placement^="bottom"] .tippy-tooltip {
  477. &.songActions-theme,
  478. &.addToPlaylist-theme {
  479. .tippy-arrow {
  480. border-bottom-color: var(--light-grey-3);
  481. }
  482. }
  483. &.confirm-theme .tippy-arrow {
  484. border-bottom-color: var(--red);
  485. }
  486. }
  487. .tippy-popper[x-placement^="left"] .tippy-tooltip {
  488. &.songActions-theme,
  489. &.addToPlaylist-theme {
  490. .tippy-arrow {
  491. border-left-color: var(--light-grey-3);
  492. }
  493. }
  494. &.confirm-theme .tippy-arrow {
  495. border-left-color: var(--red);
  496. }
  497. }
  498. .tippy-popper[x-placement^="right"] .tippy-tooltip {
  499. &.songActions-theme,
  500. &.addToPlaylist-theme {
  501. .tippy-arrow {
  502. border-right-color: var(--light-grey-3);
  503. }
  504. }
  505. &.confirm-theme .tippy-arrow {
  506. border-right-color: var(--red);
  507. }
  508. }
  509. .tippy-tooltip.addToPlaylist-theme {
  510. font-size: 14px;
  511. padding: 5px;
  512. border: 1px solid var(--light-grey-3);
  513. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  514. background-color: var(--white);
  515. color: var(--dark-grey);
  516. .nav-dropdown-items {
  517. .nav-item {
  518. width: 100%;
  519. justify-content: flex-start;
  520. border: 0;
  521. padding: 10px;
  522. font-size: 15.5px;
  523. height: 36px;
  524. background: var(--light-grey);
  525. border-radius: 5px;
  526. cursor: pointer;
  527. .checkbox-control {
  528. display: flex;
  529. align-items: center;
  530. margin-bottom: 0 !important;
  531. width: inherit;
  532. input {
  533. margin-right: 5px;
  534. }
  535. input[type="checkbox"] {
  536. opacity: 0;
  537. position: absolute;
  538. }
  539. label {
  540. display: flex;
  541. flex-direction: row;
  542. align-items: center;
  543. width: inherit;
  544. span {
  545. cursor: pointer;
  546. min-width: 24px;
  547. height: 24px;
  548. background-color: var(--white);
  549. display: inline-block;
  550. border: 1px solid var(--dark-grey-2);
  551. position: relative;
  552. border-radius: 3px;
  553. }
  554. p {
  555. margin-left: 10px;
  556. cursor: pointer;
  557. color: var(--black);
  558. overflow: hidden;
  559. text-overflow: ellipsis;
  560. white-space: nowrap;
  561. }
  562. }
  563. input[type="checkbox"]:checked + label span::after {
  564. content: "";
  565. width: 18px;
  566. height: 18px;
  567. left: 2px;
  568. top: 2px;
  569. border-radius: 3px;
  570. background-color: var(--primary-color);
  571. position: absolute;
  572. }
  573. }
  574. &:focus {
  575. outline-color: var(--light-grey-3);
  576. }
  577. &:not(:last-of-type) {
  578. margin-bottom: 5px;
  579. }
  580. }
  581. }
  582. .tippy-content > div {
  583. display: flex;
  584. flex-direction: column;
  585. button {
  586. width: 150px;
  587. &:not(:last-of-type) {
  588. margin-bottom: 10px;
  589. }
  590. }
  591. }
  592. }
  593. .select {
  594. &:after {
  595. border-color: var(--primary-color);
  596. border-width: 1.5px;
  597. margin-top: -3px;
  598. }
  599. select {
  600. height: 36px;
  601. }
  602. }
  603. .button:focus,
  604. .button:active {
  605. border-color: var(--light-grey-2) !important;
  606. }
  607. .input:focus,
  608. .input:active,
  609. .textarea:focus,
  610. .textarea:active,
  611. .select select:focus,
  612. .select select:active {
  613. border-color: var(--primary-color) !important;
  614. }
  615. button.delete:focus {
  616. background-color: rgba(10, 10, 10, 0.3);
  617. }
  618. .tag {
  619. padding-right: 6px !important;
  620. }
  621. .button {
  622. &:hover,
  623. &:focus {
  624. filter: brightness(95%);
  625. }
  626. &.is-success {
  627. background-color: var(--green) !important;
  628. }
  629. &.is-primary {
  630. background-color: var(--primary-color) !important;
  631. }
  632. &.is-danger {
  633. background-color: var(--red) !important;
  634. }
  635. &.is-info {
  636. background-color: var(--primary-color) !important;
  637. }
  638. &.is-warning {
  639. background-color: var(--yellow) !important;
  640. }
  641. }
  642. .input,
  643. .button {
  644. height: 36px;
  645. }
  646. .fadein-helpbox-enter-active {
  647. transition-duration: 0.3s;
  648. transition-timing-function: ease-in;
  649. }
  650. .fadein-helpbox-leave-active {
  651. transition-duration: 0.3s;
  652. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  653. }
  654. .fadein-helpbox-enter-to,
  655. .fadein-helpbox-leave {
  656. max-height: 100px;
  657. overflow: hidden;
  658. }
  659. .fadein-helpbox-enter,
  660. .fadein-helpbox-leave-to {
  661. overflow: hidden;
  662. max-height: 0;
  663. }
  664. .control {
  665. margin-bottom: 5px !important;
  666. }
  667. .input-with-button {
  668. .control {
  669. margin-right: 0px !important;
  670. }
  671. input,
  672. select {
  673. width: 100%;
  674. height: 36px;
  675. border-radius: 3px 0 0 3px;
  676. border-right: 0;
  677. border-color: var(--light-grey-3);
  678. }
  679. .button {
  680. height: 36px;
  681. border-radius: 0 3px 3px 0;
  682. }
  683. }
  684. .page-title {
  685. margin: 0 0 50px 0;
  686. }
  687. .material-icons {
  688. user-select: none;
  689. -webkit-user-select: none;
  690. }
  691. .icon-with-button {
  692. margin-right: 3px;
  693. font-size: 18px;
  694. }
  695. .verified-song {
  696. font-size: 17px;
  697. color: var(--primary-color);
  698. }
  699. .section-title,
  700. h4.section-title {
  701. font-size: 26px;
  702. font-weight: 600;
  703. margin: 0px;
  704. }
  705. .section-description {
  706. font-size: 16px;
  707. font-weight: 400;
  708. margin-bottom: 10px !important;
  709. }
  710. .section-horizontal-rule {
  711. margin: 15px 0 30px 0;
  712. }
  713. .section-margin-bottom {
  714. height: 30px;
  715. }
  716. .margin-top-zero {
  717. margin-top: 0 !important;
  718. }
  719. .margin-bottom-zero {
  720. margin-bottom: 0 !important;
  721. }
  722. /** Universial items e.g. playlist items, queue items, activity items */
  723. .item-draggable {
  724. cursor: move;
  725. }
  726. .universal-item {
  727. display: flex;
  728. flex-direction: row;
  729. flex-grow: 1;
  730. align-items: center;
  731. justify-content: space-between;
  732. padding: 7.5px;
  733. border: 1px solid var(--light-grey-3);
  734. border-radius: 3px;
  735. overflow: hidden;
  736. .item-thumbnail {
  737. width: 65px;
  738. height: 65px;
  739. margin: -7.5px;
  740. border-radius: 3px 0 0 3px;
  741. }
  742. .item-title {
  743. font-size: 20px;
  744. overflow: hidden;
  745. text-overflow: ellipsis;
  746. white-space: nowrap;
  747. }
  748. .item-description {
  749. font-size: 14px;
  750. overflow: hidden;
  751. text-overflow: ellipsis;
  752. white-space: nowrap;
  753. }
  754. .universal-item-actions {
  755. display: flex;
  756. flex-direction: row;
  757. margin-left: 10px;
  758. justify-content: center;
  759. @media screen and (max-width: 800px) {
  760. flex-wrap: wrap;
  761. }
  762. .action-dropdown-icon {
  763. display: flex;
  764. color: var(--primary-color);
  765. }
  766. .song-actions {
  767. display: flex;
  768. }
  769. .button {
  770. width: 146px;
  771. }
  772. i {
  773. cursor: pointer;
  774. color: var(--dark-grey);
  775. &:hover,
  776. &:focus {
  777. filter: brightness(90%);
  778. }
  779. &:not(:first-of-type) {
  780. margin-left: 5px;
  781. }
  782. }
  783. .play-icon {
  784. color: var(--green);
  785. }
  786. .edit-icon,
  787. .view-icon,
  788. .add-to-playlist-icon {
  789. color: var(--primary-color);
  790. }
  791. .hide-icon {
  792. color: var(--light-grey-3);
  793. }
  794. .stop-icon,
  795. .delete-icon {
  796. color: var(--red);
  797. }
  798. .report-icon {
  799. color: var(--yellow);
  800. }
  801. }
  802. }
  803. .save-button-mixin {
  804. min-width: 200px;
  805. &:disabled {
  806. background-color: var(--light-grey) !important;
  807. color: var(--black);
  808. }
  809. }
  810. .save-button-transition-enter-active {
  811. transition: all 0.1s ease;
  812. }
  813. .save-button-transition-enter {
  814. transform: translateX(20px);
  815. opacity: 0;
  816. }
  817. .youtube-icon {
  818. margin-right: 3px;
  819. height: 20px;
  820. width: 20px;
  821. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  822. mask: url("/assets/social/youtube.svg") no-repeat center;
  823. background-color: var(--youtube);
  824. }
  825. #forgot-password {
  826. display: flex;
  827. justify-content: flex-start;
  828. margin: 5px 0;
  829. }
  830. .steps-fade-enter-active,
  831. .steps-fade-leave-active {
  832. transition: all 0.3s ease;
  833. }
  834. .steps-fade-enter,
  835. .steps-fade-leave-to {
  836. opacity: 0;
  837. }
  838. .skip-step {
  839. background-color: var(--grey-3);
  840. color: var(--white);
  841. }
  842. #steps {
  843. display: flex;
  844. align-items: center;
  845. justify-content: center;
  846. height: 50px;
  847. margin-top: 36px;
  848. @media screen and (max-width: 300px) {
  849. display: none;
  850. }
  851. .step {
  852. display: flex;
  853. align-items: center;
  854. justify-content: center;
  855. border-radius: 100%;
  856. border: 1px solid var(--dark-grey);
  857. min-width: 50px;
  858. min-height: 50px;
  859. background-color: var(--white);
  860. font-size: 30px;
  861. cursor: pointer;
  862. &.selected {
  863. background-color: var(--primary-color);
  864. color: var(--white) !important;
  865. border: 0;
  866. }
  867. }
  868. .divider {
  869. display: flex;
  870. justify-content: center;
  871. width: 180px;
  872. height: 1px;
  873. background-color: var(--dark-grey);
  874. }
  875. }
  876. .content-box {
  877. margin-top: 90px;
  878. border-radius: 3px;
  879. background-color: var(--white);
  880. border: 1px solid var(--dark-grey);
  881. max-width: 580px;
  882. padding: 40px;
  883. @media screen and (max-width: 300px) {
  884. margin-top: 30px;
  885. padding: 30px 20px;
  886. }
  887. }
  888. .content-box-optional-helper {
  889. margin-top: 15px;
  890. color: var(--primary-color);
  891. text-decoration: underline;
  892. font-size: 16px;
  893. a {
  894. color: var(--primary-color);
  895. }
  896. }
  897. .content-box-title {
  898. font-size: 25px;
  899. color: var(--black);
  900. }
  901. .content-box-description {
  902. font-size: 14px;
  903. color: var(--dark-grey);
  904. }
  905. .content-box-inputs {
  906. margin-top: 35px;
  907. .input-with-button {
  908. .button {
  909. width: 105px;
  910. }
  911. @media screen and (max-width: 450px) {
  912. flex-direction: column;
  913. }
  914. }
  915. label {
  916. font-size: 11px;
  917. }
  918. #change-password-button {
  919. margin-top: 36px;
  920. width: 175px;
  921. }
  922. }
  923. #password-visibility-container {
  924. display: flex;
  925. align-items: center;
  926. a {
  927. width: 0;
  928. margin-left: -30px;
  929. z-index: 0;
  930. top: 2px;
  931. position: relative;
  932. color: var(--light-grey-1);
  933. }
  934. }
  935. .news-item {
  936. font-family: "Karla";
  937. border-radius: 5px;
  938. padding: 20px;
  939. * {
  940. font-family: Karla, Arial, sans-serif;
  941. font-size: 16px;
  942. }
  943. h1 {
  944. font-size: 40px;
  945. &:first-of-type {
  946. margin-top: 0;
  947. }
  948. }
  949. h2 {
  950. font-size: 30px;
  951. }
  952. h3 {
  953. font-size: 25px;
  954. }
  955. h4,
  956. h5,
  957. h6 {
  958. font-size: 20px;
  959. }
  960. h1,
  961. h2,
  962. h3,
  963. h4,
  964. h5,
  965. h6 {
  966. margin: 10px 0;
  967. }
  968. ul {
  969. list-style: unset;
  970. }
  971. li {
  972. margin-left: 30px;
  973. }
  974. blockquote {
  975. padding: 0px 15px;
  976. color: #6a737d;
  977. border-left: 0.25em solid #dfe2e5;
  978. }
  979. code {
  980. font-style: italic;
  981. }
  982. }
  983. </style>