App.vue 19 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090
  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 />
  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. color: var(--light-grey-2) !important;
  218. }
  219. .content {
  220. background-color: var(--dark-grey-3) !important;
  221. }
  222. .content-box,
  223. .step:not(.selected) {
  224. background-color: var(--dark-grey-3) !important;
  225. }
  226. .label {
  227. color: var(--light-grey-2);
  228. }
  229. .tippy-tooltip.songActions-theme {
  230. background-color: var(--dark-grey);
  231. }
  232. }
  233. body.night-mode {
  234. background-color: var(--black) !important;
  235. }
  236. #toasts-container {
  237. z-index: 10000 !important;
  238. .toast {
  239. font-weight: 600;
  240. // background-color: var(--dark-grey) !important;
  241. // &:last-of-type {
  242. // background-color: var(--dark-grey-2) !important;
  243. // }
  244. }
  245. }
  246. html {
  247. overflow: auto !important;
  248. height: 100%;
  249. }
  250. body {
  251. background-color: var(--light-grey);
  252. color: var(--dark-grey);
  253. height: 100%;
  254. font-family: "Inter", Helvetica, Arial, sans-serif;
  255. }
  256. h1,
  257. h2,
  258. h3,
  259. h4,
  260. h5,
  261. h6,
  262. .sidebar-title {
  263. font-family: "Inter", Helvetica, Arial, sans-serif;
  264. }
  265. .modal-card-title {
  266. font-weight: 600;
  267. font-family: "Inter", Helvetica, Arial, sans-serif;
  268. }
  269. p,
  270. button,
  271. input,
  272. select,
  273. textarea {
  274. font-family: "Inter", Helvetica, Arial, sans-serif;
  275. }
  276. .upper-container {
  277. height: 100%;
  278. }
  279. .main-container {
  280. height: 100%;
  281. display: flex;
  282. flex-direction: column;
  283. > .container {
  284. flex: 1 0 auto;
  285. }
  286. }
  287. a {
  288. color: var(--primary-color);
  289. text-decoration: none;
  290. }
  291. .modal-card {
  292. margin: 0 !important;
  293. }
  294. .absolute-a {
  295. width: 100%;
  296. height: 100%;
  297. position: absolute;
  298. top: 0;
  299. left: 0;
  300. }
  301. .alert {
  302. padding: 20px;
  303. color: var(--white);
  304. background-color: var(--red);
  305. position: fixed;
  306. top: 50px;
  307. right: 50px;
  308. font-size: 2em;
  309. border-radius: 5px;
  310. z-index: 10000000;
  311. }
  312. .tippy-tooltip.dark-theme {
  313. font-size: 14px;
  314. padding: 5px 10px;
  315. }
  316. .night-mode {
  317. .tippy-tooltip {
  318. &.dark-theme {
  319. border: 1px solid var(--light-grey-3);
  320. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
  321. 0 10px 10px rgba(0, 0, 0, 0.22);
  322. background-color: white;
  323. .tippy-content {
  324. color: var(--black);
  325. }
  326. }
  327. &.songActions-theme {
  328. background-color: var(--dark-grey-2);
  329. border: 0 !important;
  330. i,
  331. a {
  332. color: var(--white);
  333. }
  334. .youtube-icon {
  335. background-color: var(--white);
  336. }
  337. }
  338. &.addToPlaylist-theme {
  339. background-color: var(--dark-grey-2);
  340. border: 0 !important;
  341. .nav-dropdown-items {
  342. .nav-item {
  343. background-color: var(--dark-grey);
  344. &:focus {
  345. outline-color: var(--dark-grey);
  346. }
  347. p {
  348. color: var(--white);
  349. }
  350. .checkbox-control label span {
  351. background-color: var(--dark-grey-2);
  352. }
  353. }
  354. }
  355. }
  356. }
  357. .tippy-popper[x-placement^="top"] .tippy-tooltip {
  358. &.songActions-theme,
  359. &.addToPlaylist-theme {
  360. .tippy-arrow {
  361. border-top-color: var(--dark-grey-2);
  362. }
  363. }
  364. &.dark-theme .tippy-arrow {
  365. border-top-color: var(--white);
  366. }
  367. }
  368. .tippy-popper[x-placement^="bottom"] .tippy-tooltip {
  369. &.songActions-theme,
  370. &.addToPlaylist-theme {
  371. .tippy-arrow {
  372. border-bottom-color: var(--dark-grey-2);
  373. }
  374. }
  375. &.dark-theme .tippy-arrow {
  376. border-bottom-color: var(--white);
  377. }
  378. }
  379. .tippy-popper[x-placement^="left"] .tippy-tooltip {
  380. &.songActions-theme,
  381. &.addToPlaylist-theme {
  382. .tippy-arrow {
  383. border-left-color: var(--dark-grey-2);
  384. }
  385. }
  386. &.dark-theme .tippy-arrow {
  387. border-left-color: var(--white);
  388. }
  389. }
  390. .tippy-popper[x-placement^="right"] .tippy-tooltip {
  391. &.songActions-theme,
  392. &.addToPlaylist-theme {
  393. .tippy-arrow {
  394. border-right-color: var(--dark-grey-2);
  395. }
  396. }
  397. &.dark-theme .tippy-arrow {
  398. border-right-color: var(--white);
  399. }
  400. }
  401. }
  402. .tippy-tooltip.confirm-theme {
  403. background-color: var(--red);
  404. padding: 5px 10px;
  405. a {
  406. color: var(--white);
  407. font-size: 14px;
  408. font-weight: 600;
  409. &:hover,
  410. &:focus {
  411. filter: brightness(90%);
  412. }
  413. }
  414. }
  415. .tippy-tooltip.songActions-theme {
  416. font-size: 14px;
  417. padding: 5px 10px;
  418. border: 1px solid var(--light-grey-3);
  419. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  420. background-color: var(--white);
  421. .button {
  422. width: 146px;
  423. }
  424. .song-actions,
  425. .addToPlaylistDropdown,
  426. .song-actions > div {
  427. display: inline-block;
  428. }
  429. .addToPlaylistDropdown .tippy-popper {
  430. max-width: unset;
  431. }
  432. i,
  433. a {
  434. display: inline-block;
  435. cursor: pointer;
  436. color: var(--dark-grey);
  437. vertical-align: middle;
  438. &:hover,
  439. &:focus {
  440. filter: brightness(90%);
  441. }
  442. &:not(:first-of-type) {
  443. margin-left: 5px;
  444. }
  445. }
  446. .play-icon {
  447. color: var(--green);
  448. }
  449. .edit-icon,
  450. .view-icon,
  451. .add-to-playlist-icon,
  452. .add-to-queue-icon {
  453. color: var(--primary-color);
  454. }
  455. .hide-icon {
  456. color: var(--light-grey-3);
  457. }
  458. .stop-icon,
  459. .delete-icon {
  460. color: var(--red);
  461. }
  462. .report-icon {
  463. color: var(--yellow);
  464. }
  465. }
  466. .tippy-popper[x-placement^="top"] .tippy-tooltip {
  467. &.songActions-theme,
  468. &.addToPlaylist-theme {
  469. .tippy-arrow {
  470. border-top-color: var(--light-grey-3);
  471. }
  472. }
  473. &.confirm-theme .tippy-arrow {
  474. border-top-color: var(--red);
  475. }
  476. }
  477. .tippy-popper[x-placement^="bottom"] .tippy-tooltip {
  478. &.songActions-theme,
  479. &.addToPlaylist-theme {
  480. .tippy-arrow {
  481. border-bottom-color: var(--light-grey-3);
  482. }
  483. }
  484. &.confirm-theme .tippy-arrow {
  485. border-bottom-color: var(--red);
  486. }
  487. }
  488. .tippy-popper[x-placement^="left"] .tippy-tooltip {
  489. &.songActions-theme,
  490. &.addToPlaylist-theme {
  491. .tippy-arrow {
  492. border-left-color: var(--light-grey-3);
  493. }
  494. }
  495. &.confirm-theme .tippy-arrow {
  496. border-left-color: var(--red);
  497. }
  498. }
  499. .tippy-popper[x-placement^="right"] .tippy-tooltip {
  500. &.songActions-theme,
  501. &.addToPlaylist-theme {
  502. .tippy-arrow {
  503. border-right-color: var(--light-grey-3);
  504. }
  505. }
  506. &.confirm-theme .tippy-arrow {
  507. border-right-color: var(--red);
  508. }
  509. }
  510. .tippy-tooltip.addToPlaylist-theme {
  511. font-size: 14px;
  512. padding: 5px;
  513. border: 1px solid var(--light-grey-3);
  514. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  515. background-color: var(--white);
  516. color: var(--dark-grey);
  517. .nav-dropdown-items {
  518. .nav-item {
  519. width: 100%;
  520. justify-content: flex-start;
  521. border: 0;
  522. padding: 10px;
  523. font-size: 15.5px;
  524. height: 36px;
  525. background: var(--light-grey);
  526. border-radius: 5px;
  527. cursor: pointer;
  528. .checkbox-control {
  529. display: flex;
  530. align-items: center;
  531. margin-bottom: 0 !important;
  532. width: inherit;
  533. input {
  534. margin-right: 5px;
  535. }
  536. input[type="checkbox"] {
  537. opacity: 0;
  538. position: absolute;
  539. }
  540. label {
  541. display: flex;
  542. flex-direction: row;
  543. align-items: center;
  544. width: inherit;
  545. span {
  546. cursor: pointer;
  547. min-width: 24px;
  548. height: 24px;
  549. background-color: var(--white);
  550. display: inline-block;
  551. border: 1px solid var(--dark-grey-2);
  552. position: relative;
  553. border-radius: 3px;
  554. }
  555. p {
  556. margin-left: 10px;
  557. cursor: pointer;
  558. color: var(--black);
  559. overflow: hidden;
  560. text-overflow: ellipsis;
  561. white-space: nowrap;
  562. }
  563. }
  564. input[type="checkbox"]:checked + label span::after {
  565. content: "";
  566. width: 18px;
  567. height: 18px;
  568. left: 2px;
  569. top: 2px;
  570. border-radius: 3px;
  571. background-color: var(--primary-color);
  572. position: absolute;
  573. }
  574. }
  575. &:focus {
  576. outline-color: var(--light-grey-3);
  577. }
  578. &:not(:last-of-type) {
  579. margin-bottom: 5px;
  580. }
  581. }
  582. }
  583. .tippy-content > div {
  584. display: flex;
  585. flex-direction: column;
  586. button {
  587. width: 150px;
  588. &:not(:last-of-type) {
  589. margin-bottom: 10px;
  590. }
  591. }
  592. }
  593. }
  594. .select {
  595. &:after {
  596. border-color: var(--primary-color);
  597. border-width: 1.5px;
  598. margin-top: -3px;
  599. }
  600. select {
  601. height: 36px;
  602. }
  603. }
  604. .button:focus,
  605. .button:active {
  606. border-color: var(--light-grey-2) !important;
  607. }
  608. .input:focus,
  609. .input:active,
  610. .textarea:focus,
  611. .textarea:active,
  612. .select select:focus,
  613. .select select:active {
  614. border-color: var(--primary-color) !important;
  615. }
  616. button.delete:focus {
  617. background-color: rgba(10, 10, 10, 0.3);
  618. }
  619. .tag {
  620. padding-right: 6px !important;
  621. }
  622. .button {
  623. &:hover,
  624. &:focus {
  625. filter: brightness(95%);
  626. }
  627. &.is-success {
  628. background-color: var(--green) !important;
  629. }
  630. &.is-primary {
  631. background-color: var(--primary-color) !important;
  632. }
  633. &.is-danger {
  634. background-color: var(--red) !important;
  635. }
  636. &.is-info {
  637. background-color: var(--primary-color) !important;
  638. }
  639. &.is-warning {
  640. background-color: var(--yellow) !important;
  641. }
  642. }
  643. .input,
  644. .button {
  645. height: 36px;
  646. }
  647. .fadein-helpbox-enter-active {
  648. transition-duration: 0.3s;
  649. transition-timing-function: ease-in;
  650. }
  651. .fadein-helpbox-leave-active {
  652. transition-duration: 0.3s;
  653. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  654. }
  655. .fadein-helpbox-enter-to,
  656. .fadein-helpbox-leave {
  657. max-height: 100px;
  658. overflow: hidden;
  659. }
  660. .fadein-helpbox-enter,
  661. .fadein-helpbox-leave-to {
  662. overflow: hidden;
  663. max-height: 0;
  664. }
  665. .control {
  666. margin-bottom: 5px !important;
  667. }
  668. .input-with-button {
  669. .control {
  670. margin-right: 0px !important;
  671. }
  672. input,
  673. select {
  674. width: 100%;
  675. height: 36px;
  676. border-radius: 3px 0 0 3px;
  677. border-right: 0;
  678. border-color: var(--light-grey-3);
  679. }
  680. .button {
  681. height: 36px;
  682. border-radius: 0 3px 3px 0;
  683. }
  684. }
  685. .page-title {
  686. margin: 0 0 50px 0;
  687. }
  688. .material-icons {
  689. user-select: none;
  690. -webkit-user-select: none;
  691. }
  692. .icon-with-button {
  693. margin-right: 3px;
  694. font-size: 18px;
  695. }
  696. .verified-song {
  697. font-size: 17px;
  698. color: var(--primary-color);
  699. }
  700. .section-title,
  701. h4.section-title {
  702. font-size: 26px;
  703. font-weight: 600;
  704. margin: 0px;
  705. }
  706. .section-description {
  707. font-size: 16px;
  708. font-weight: 400;
  709. margin-bottom: 10px !important;
  710. }
  711. .section-horizontal-rule {
  712. margin: 15px 0 30px 0;
  713. }
  714. .section-margin-bottom {
  715. height: 30px;
  716. }
  717. .margin-top-zero {
  718. margin-top: 0 !important;
  719. }
  720. .margin-bottom-zero {
  721. margin-bottom: 0 !important;
  722. }
  723. /** Universial items e.g. playlist items, queue items, activity items */
  724. .item-draggable {
  725. cursor: move;
  726. }
  727. .universal-item {
  728. display: flex;
  729. flex-direction: row;
  730. flex-grow: 1;
  731. align-items: center;
  732. justify-content: space-between;
  733. padding: 7.5px;
  734. border: 1px solid var(--light-grey-3);
  735. border-radius: 3px;
  736. overflow: hidden;
  737. .item-thumbnail {
  738. width: 65px;
  739. height: 65px;
  740. margin: -7.5px;
  741. border-radius: 3px 0 0 3px;
  742. }
  743. .item-title {
  744. font-size: 20px;
  745. overflow: hidden;
  746. text-overflow: ellipsis;
  747. white-space: nowrap;
  748. }
  749. .item-description {
  750. font-size: 14px;
  751. overflow: hidden;
  752. text-overflow: ellipsis;
  753. white-space: nowrap;
  754. }
  755. .universal-item-actions {
  756. display: flex;
  757. flex-direction: row;
  758. margin-left: 10px;
  759. justify-content: center;
  760. @media screen and (max-width: 800px) {
  761. flex-wrap: wrap;
  762. }
  763. .action-dropdown-icon {
  764. display: flex;
  765. color: var(--primary-color);
  766. }
  767. .song-actions {
  768. display: flex;
  769. }
  770. .button {
  771. width: 146px;
  772. }
  773. i {
  774. cursor: pointer;
  775. color: var(--dark-grey);
  776. &:hover,
  777. &:focus {
  778. filter: brightness(90%);
  779. }
  780. &:not(:first-of-type) {
  781. margin-left: 5px;
  782. }
  783. }
  784. .play-icon {
  785. color: var(--green);
  786. }
  787. .edit-icon,
  788. .view-icon,
  789. .add-to-playlist-icon {
  790. color: var(--primary-color);
  791. }
  792. .hide-icon {
  793. color: var(--light-grey-3);
  794. }
  795. .stop-icon,
  796. .delete-icon {
  797. color: var(--red);
  798. }
  799. .report-icon {
  800. color: var(--yellow);
  801. }
  802. }
  803. }
  804. .save-button-mixin {
  805. min-width: 200px;
  806. &:disabled {
  807. background-color: var(--light-grey) !important;
  808. color: var(--black);
  809. }
  810. }
  811. .save-button-transition-enter-active {
  812. transition: all 0.1s ease;
  813. }
  814. .save-button-transition-enter {
  815. transform: translateX(20px);
  816. opacity: 0;
  817. }
  818. .youtube-icon {
  819. margin-right: 3px;
  820. height: 20px;
  821. width: 20px;
  822. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  823. mask: url("/assets/social/youtube.svg") no-repeat center;
  824. background-color: var(--youtube);
  825. }
  826. #forgot-password {
  827. display: flex;
  828. justify-content: flex-start;
  829. margin: 5px 0;
  830. }
  831. .steps-fade-enter-active,
  832. .steps-fade-leave-active {
  833. transition: all 0.3s ease;
  834. }
  835. .steps-fade-enter,
  836. .steps-fade-leave-to {
  837. opacity: 0;
  838. }
  839. .skip-step {
  840. background-color: var(--grey-3);
  841. color: var(--white);
  842. }
  843. #steps {
  844. display: flex;
  845. align-items: center;
  846. justify-content: center;
  847. height: 50px;
  848. margin-top: 36px;
  849. @media screen and (max-width: 300px) {
  850. display: none;
  851. }
  852. .step {
  853. display: flex;
  854. align-items: center;
  855. justify-content: center;
  856. border-radius: 100%;
  857. border: 1px solid var(--dark-grey);
  858. min-width: 50px;
  859. min-height: 50px;
  860. background-color: var(--white);
  861. font-size: 30px;
  862. cursor: pointer;
  863. &.selected {
  864. background-color: var(--primary-color);
  865. color: var(--white) !important;
  866. border: 0;
  867. }
  868. }
  869. .divider {
  870. display: flex;
  871. justify-content: center;
  872. width: 180px;
  873. height: 1px;
  874. background-color: var(--dark-grey);
  875. }
  876. }
  877. .content-box {
  878. margin-top: 90px;
  879. border-radius: 3px;
  880. background-color: var(--white);
  881. border: 1px solid var(--dark-grey);
  882. max-width: 580px;
  883. padding: 40px;
  884. @media screen and (max-width: 300px) {
  885. margin-top: 30px;
  886. padding: 30px 20px;
  887. }
  888. }
  889. .content-box-optional-helper {
  890. margin-top: 15px;
  891. color: var(--primary-color);
  892. text-decoration: underline;
  893. font-size: 16px;
  894. a {
  895. color: var(--primary-color);
  896. }
  897. }
  898. .content-box-title {
  899. font-size: 25px;
  900. color: var(--black);
  901. }
  902. .content-box-description {
  903. font-size: 14px;
  904. color: var(--dark-grey);
  905. }
  906. .content-box-inputs {
  907. margin-top: 35px;
  908. .input-with-button {
  909. .button {
  910. width: 105px;
  911. }
  912. @media screen and (max-width: 450px) {
  913. flex-direction: column;
  914. }
  915. }
  916. label {
  917. font-size: 11px;
  918. }
  919. #change-password-button {
  920. margin-top: 36px;
  921. width: 175px;
  922. }
  923. }
  924. #password-visibility-container {
  925. display: flex;
  926. align-items: center;
  927. a {
  928. width: 0;
  929. margin-left: -30px;
  930. z-index: 0;
  931. top: 2px;
  932. position: relative;
  933. color: var(--light-grey-1);
  934. }
  935. }
  936. </style>