App.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062
  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.header.login" />
  8. <register-modal v-if="modals.header.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. }
  584. .select {
  585. &:after {
  586. border-color: var(--primary-color);
  587. border-width: 1.5px;
  588. margin-top: -3px;
  589. }
  590. select {
  591. height: 36px;
  592. }
  593. }
  594. .button:focus,
  595. .button:active {
  596. border-color: var(--light-grey-2) !important;
  597. }
  598. .input:focus,
  599. .input:active,
  600. .textarea:focus,
  601. .textarea:active,
  602. .select select:focus,
  603. .select select:active {
  604. border-color: var(--primary-color) !important;
  605. }
  606. button.delete:focus {
  607. background-color: rgba(10, 10, 10, 0.3);
  608. }
  609. .tag {
  610. padding-right: 6px !important;
  611. }
  612. .button {
  613. &:hover,
  614. &:focus {
  615. filter: brightness(95%);
  616. }
  617. &.is-success {
  618. background-color: var(--green) !important;
  619. }
  620. &.is-primary {
  621. background-color: var(--primary-color) !important;
  622. }
  623. &.is-danger {
  624. background-color: var(--red) !important;
  625. }
  626. &.is-info {
  627. background-color: var(--primary-color) !important;
  628. }
  629. &.is-warning {
  630. background-color: var(--yellow) !important;
  631. }
  632. }
  633. .input,
  634. .button {
  635. height: 36px;
  636. }
  637. .fadein-helpbox-enter-active {
  638. transition-duration: 0.3s;
  639. transition-timing-function: ease-in;
  640. }
  641. .fadein-helpbox-leave-active {
  642. transition-duration: 0.3s;
  643. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  644. }
  645. .fadein-helpbox-enter-to,
  646. .fadein-helpbox-leave {
  647. max-height: 100px;
  648. overflow: hidden;
  649. }
  650. .fadein-helpbox-enter,
  651. .fadein-helpbox-leave-to {
  652. overflow: hidden;
  653. max-height: 0;
  654. }
  655. .control {
  656. margin-bottom: 5px !important;
  657. }
  658. .input-with-button {
  659. .control {
  660. margin-right: 0px !important;
  661. }
  662. input,
  663. select {
  664. width: 100%;
  665. height: 36px;
  666. border-radius: 3px 0 0 3px;
  667. border-right: 0;
  668. border-color: var(--light-grey-3);
  669. }
  670. .button {
  671. height: 36px;
  672. border-radius: 0 3px 3px 0;
  673. }
  674. }
  675. .page-title {
  676. margin: 0 0 50px 0;
  677. }
  678. .material-icons {
  679. user-select: none;
  680. -webkit-user-select: none;
  681. }
  682. .icon-with-button {
  683. margin-right: 3px;
  684. font-size: 18px;
  685. }
  686. .verified-song {
  687. font-size: 17px;
  688. color: var(--primary-color);
  689. }
  690. .section-title,
  691. h4.section-title {
  692. font-size: 26px;
  693. font-weight: 600;
  694. margin: 0px;
  695. }
  696. .section-description {
  697. font-size: 16px;
  698. font-weight: 400;
  699. margin-bottom: 10px !important;
  700. }
  701. .section-horizontal-rule {
  702. margin: 15px 0 30px 0;
  703. }
  704. .section-margin-bottom {
  705. height: 30px;
  706. }
  707. .margin-top-zero {
  708. margin-top: 0 !important;
  709. }
  710. .margin-bottom-zero {
  711. margin-bottom: 0 !important;
  712. }
  713. /** Universial items e.g. playlist items, queue items, activity items */
  714. .item-draggable {
  715. cursor: move;
  716. }
  717. .universal-item {
  718. display: flex;
  719. flex-direction: row;
  720. flex-grow: 1;
  721. align-items: center;
  722. justify-content: space-between;
  723. padding: 7.5px;
  724. border: 1px solid var(--light-grey-3);
  725. border-radius: 3px;
  726. overflow: hidden;
  727. .item-thumbnail {
  728. width: 65px;
  729. height: 65px;
  730. margin: -7.5px;
  731. border-radius: 3px 0 0 3px;
  732. }
  733. .item-title {
  734. font-size: 20px;
  735. overflow: hidden;
  736. text-overflow: ellipsis;
  737. white-space: nowrap;
  738. }
  739. .item-description {
  740. font-size: 14px;
  741. overflow: hidden;
  742. text-overflow: ellipsis;
  743. white-space: nowrap;
  744. }
  745. .universal-item-actions {
  746. display: flex;
  747. flex-direction: row;
  748. margin-left: 10px;
  749. justify-content: center;
  750. @media screen and (max-width: 800px) {
  751. flex-wrap: wrap;
  752. }
  753. .action-dropdown-icon {
  754. display: flex;
  755. color: var(--primary-color);
  756. }
  757. .song-actions {
  758. display: flex;
  759. }
  760. .button {
  761. width: 146px;
  762. }
  763. i {
  764. cursor: pointer;
  765. color: var(--dark-grey);
  766. &:hover,
  767. &:focus {
  768. filter: brightness(90%);
  769. }
  770. &:not(:first-of-type) {
  771. margin-left: 5px;
  772. }
  773. }
  774. .play-icon {
  775. color: var(--green);
  776. }
  777. .edit-icon,
  778. .view-icon,
  779. .add-to-playlist-icon {
  780. color: var(--primary-color);
  781. }
  782. .hide-icon {
  783. color: var(--light-grey-3);
  784. }
  785. .stop-icon,
  786. .delete-icon {
  787. color: var(--red);
  788. }
  789. .report-icon {
  790. color: var(--yellow);
  791. }
  792. }
  793. }
  794. .save-button-mixin {
  795. min-width: 200px;
  796. &:disabled {
  797. background-color: var(--light-grey) !important;
  798. color: var(--black);
  799. }
  800. }
  801. .save-button-transition-enter-active {
  802. transition: all 0.1s ease;
  803. }
  804. .save-button-transition-enter {
  805. transform: translateX(20px);
  806. opacity: 0;
  807. }
  808. .youtube-icon {
  809. margin-right: 3px;
  810. height: 20px;
  811. width: 20px;
  812. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  813. mask: url("/assets/social/youtube.svg") no-repeat center;
  814. background-color: var(--youtube);
  815. }
  816. #forgot-password {
  817. display: flex;
  818. justify-content: flex-start;
  819. margin: 5px 0;
  820. }
  821. .steps-fade-enter-active,
  822. .steps-fade-leave-active {
  823. transition: all 0.3s ease;
  824. }
  825. .steps-fade-enter,
  826. .steps-fade-leave-to {
  827. opacity: 0;
  828. }
  829. .skip-step {
  830. background-color: var(--grey-3);
  831. color: var(--white);
  832. }
  833. #steps {
  834. display: flex;
  835. align-items: center;
  836. justify-content: center;
  837. height: 50px;
  838. margin-top: 36px;
  839. @media screen and (max-width: 300px) {
  840. display: none;
  841. }
  842. .step {
  843. display: flex;
  844. align-items: center;
  845. justify-content: center;
  846. border-radius: 100%;
  847. border: 1px solid var(--dark-grey);
  848. min-width: 50px;
  849. min-height: 50px;
  850. background-color: var(--white);
  851. font-size: 30px;
  852. cursor: pointer;
  853. &.selected {
  854. background-color: var(--primary-color);
  855. color: var(--white) !important;
  856. border: 0;
  857. }
  858. }
  859. .divider {
  860. display: flex;
  861. justify-content: center;
  862. width: 180px;
  863. height: 1px;
  864. background-color: var(--dark-grey);
  865. }
  866. }
  867. .content-box {
  868. margin-top: 90px;
  869. border-radius: 3px;
  870. background-color: var(--white);
  871. border: 1px solid var(--dark-grey);
  872. max-width: 580px;
  873. padding: 40px;
  874. @media screen and (max-width: 300px) {
  875. margin-top: 30px;
  876. padding: 30px 20px;
  877. }
  878. .content-box-title {
  879. font-size: 25px;
  880. color: var(--black);
  881. }
  882. .content-box-description {
  883. font-size: 14px;
  884. color: var(--dark-grey);
  885. }
  886. .content-box-optional-helper {
  887. margin-top: 15px;
  888. color: var(--primary-color);
  889. text-decoration: underline;
  890. font-size: 16px;
  891. }
  892. .content-box-inputs {
  893. margin-top: 35px;
  894. .input-with-button {
  895. .button {
  896. width: 105px;
  897. }
  898. @media screen and (max-width: 450px) {
  899. flex-direction: column;
  900. }
  901. }
  902. label {
  903. font-size: 11px;
  904. }
  905. #change-password-button {
  906. margin-top: 36px;
  907. width: 175px;
  908. }
  909. }
  910. }
  911. </style>