App.vue 20 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150
  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.deleted", () =>
  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. border: unset !important;
  940. box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
  941. * {
  942. font-family: Karla, Arial, sans-serif;
  943. font-size: 16px;
  944. }
  945. h1 {
  946. font-size: 40px;
  947. &:first-of-type {
  948. margin-top: 0;
  949. }
  950. }
  951. h2 {
  952. font-size: 30px;
  953. }
  954. h3 {
  955. font-size: 25px;
  956. }
  957. h4,
  958. h5,
  959. h6 {
  960. font-size: 20px;
  961. }
  962. h1,
  963. h2,
  964. h3,
  965. h4,
  966. h5,
  967. h6 {
  968. margin: 10px 0;
  969. }
  970. ul {
  971. list-style: unset;
  972. }
  973. li {
  974. margin-left: 30px;
  975. }
  976. blockquote {
  977. padding: 0px 15px;
  978. color: #6a737d;
  979. border-left: 0.25em solid #dfe2e5;
  980. }
  981. code {
  982. font-style: italic;
  983. }
  984. }
  985. </style>