App.vue 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947
  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. this.changeAutoSkipDisliked(res.data.autoSkipDisliked);
  125. this.changeNightmode(res.data.nightmode);
  126. this.changeActivityLogPublic(res.data.activityLogPublic);
  127. this.changeAnonymousSongRequests(
  128. res.data.anonymousSongRequests
  129. );
  130. this.changeActivityWatch(res.data.activityWatch);
  131. if (this.nightmode) this.enableNightMode();
  132. else this.disableNightMode();
  133. }
  134. });
  135. this.socket.on("keep.event:user.session.removed", () =>
  136. window.location.reload()
  137. );
  138. },
  139. methods: {
  140. submitOnEnter: (cb, event) => {
  141. if (event.which === 13) cb();
  142. },
  143. enableNightMode: () => {
  144. document
  145. .getElementsByTagName("body")[0]
  146. .classList.add("night-mode");
  147. },
  148. disableNightMode: () => {
  149. document
  150. .getElementsByTagName("body")[0]
  151. .classList.remove("night-mode");
  152. },
  153. ...mapActions("modalVisibility", ["closeCurrentModal"]),
  154. ...mapActions("user/preferences", [
  155. "changeNightmode",
  156. "changeAutoSkipDisliked",
  157. "changeActivityLogPublic",
  158. "changeAnonymousSongRequests",
  159. "changeActivityWatch"
  160. ])
  161. }
  162. };
  163. </script>
  164. <style lang="scss">
  165. :root {
  166. --primary-color: var(--blue);
  167. --blue: rgb(2, 166, 242);
  168. --light-blue: rgb(163, 224, 255);
  169. --dark-blue: rgb(0, 102, 244);
  170. --teal: rgb(0, 209, 178);
  171. --purple: rgb(143, 40, 140);
  172. --light-purple: rgb(170, 141, 216);
  173. --yellow: rgb(241, 196, 15);
  174. --light-pink: rgb(228, 155, 166);
  175. --dark-pink: rgb(234, 72, 97);
  176. --orange: rgb(255, 94, 0);
  177. --dark-orange: rgb(250, 50, 0);
  178. --green: rgb(68, 189, 50);
  179. --red: rgb(231, 77, 60);
  180. --white: rgb(255, 255, 255);
  181. --black: rgb(0, 0, 0);
  182. --light-grey: rgb(245, 245, 245);
  183. --light-grey-2: rgb(221, 221, 221);
  184. --light-grey-3: rgb(195, 193, 195);
  185. --grey: rgb(107, 107, 107);
  186. --grey-2: rgb(113, 113, 113);
  187. --grey-3: rgb(126, 126, 126);
  188. --dark-grey: rgb(77, 77, 77);
  189. --dark-grey-2: rgb(51, 51, 51);
  190. --dark-grey-3: rgb(34, 34, 34);
  191. --dark-grey-4: rgb(26, 26, 26);
  192. --youtube: rgb(189, 46, 46);
  193. }
  194. .night-mode {
  195. div {
  196. // background-color: var(--black);
  197. color: var(--light-grey-2);
  198. }
  199. #toasts-container .toast {
  200. // color: var(--dark-grey-2);
  201. // background-color: var(--light-grey-3) !important;
  202. // &:last-of-type {
  203. // background-color: var(--light-grey) !important;
  204. // }
  205. }
  206. h1,
  207. h2,
  208. h3,
  209. h4,
  210. h5,
  211. h6 {
  212. color: var(--white) !important;
  213. }
  214. p:not(.help),
  215. label {
  216. color: var(--light-grey-2) !important;
  217. }
  218. .content {
  219. background-color: var(--dark-grey-3) !important;
  220. }
  221. .tippy-tooltip.songActions-theme {
  222. background-color: var(--dark-grey);
  223. }
  224. }
  225. body.night-mode {
  226. background-color: var(--black) !important;
  227. }
  228. #toasts-container {
  229. z-index: 10000 !important;
  230. .toast {
  231. font-weight: 600;
  232. // background-color: var(--dark-grey) !important;
  233. // &:last-of-type {
  234. // background-color: var(--dark-grey-2) !important;
  235. // }
  236. }
  237. }
  238. html {
  239. overflow: auto !important;
  240. height: 100%;
  241. }
  242. body {
  243. background-color: var(--light-grey);
  244. color: var(--dark-grey);
  245. height: 100%;
  246. font-family: "Inter", Helvetica, Arial, sans-serif;
  247. }
  248. h1,
  249. h2,
  250. h3,
  251. h4,
  252. h5,
  253. h6,
  254. .sidebar-title {
  255. font-family: "Inter", Helvetica, Arial, sans-serif;
  256. }
  257. .modal-card-title {
  258. font-weight: 600;
  259. font-family: "Inter", Helvetica, Arial, sans-serif;
  260. }
  261. p,
  262. button,
  263. input,
  264. select,
  265. textarea {
  266. font-family: "Inter", Helvetica, Arial, sans-serif;
  267. }
  268. .upper-container {
  269. height: 100%;
  270. }
  271. .main-container {
  272. height: 100%;
  273. display: flex;
  274. flex-direction: column;
  275. > .container {
  276. flex: 1 0 auto;
  277. }
  278. }
  279. a {
  280. color: var(--primary-color);
  281. text-decoration: none;
  282. }
  283. .modal-card {
  284. margin: 0 !important;
  285. }
  286. .absolute-a {
  287. width: 100%;
  288. height: 100%;
  289. position: absolute;
  290. top: 0;
  291. left: 0;
  292. }
  293. .alert {
  294. padding: 20px;
  295. color: var(--white);
  296. background-color: var(--red);
  297. position: fixed;
  298. top: 50px;
  299. right: 50px;
  300. font-size: 2em;
  301. border-radius: 5px;
  302. z-index: 10000000;
  303. }
  304. .tippy-tooltip.dark-theme {
  305. font-size: 14px;
  306. padding: 5px 10px;
  307. }
  308. .night-mode {
  309. .tippy-tooltip {
  310. &.dark-theme {
  311. border: 1px solid var(--light-grey-3);
  312. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
  313. 0 10px 10px rgba(0, 0, 0, 0.22);
  314. background-color: white;
  315. .tippy-content {
  316. color: var(--black);
  317. }
  318. }
  319. &.songActions-theme {
  320. background-color: var(--dark-grey-2);
  321. border: 0 !important;
  322. i,
  323. a {
  324. color: var(--white);
  325. }
  326. .youtube-icon {
  327. background-color: var(--white);
  328. }
  329. }
  330. &.addToPlaylist-theme {
  331. background-color: var(--dark-grey-2);
  332. border: 0 !important;
  333. .nav-dropdown-items {
  334. .nav-item {
  335. background-color: var(--dark-grey);
  336. &:focus {
  337. outline-color: var(--dark-grey);
  338. }
  339. p {
  340. color: var(--white);
  341. }
  342. .checkbox-control label span {
  343. background-color: var(--dark-grey-2);
  344. }
  345. }
  346. }
  347. }
  348. }
  349. .tippy-popper[x-placement^="top"] .tippy-tooltip {
  350. &.songActions-theme,
  351. &.addToPlaylist-theme {
  352. .tippy-arrow {
  353. border-top-color: var(--dark-grey-2);
  354. }
  355. }
  356. &.dark-theme .tippy-arrow {
  357. border-top-color: var(--white);
  358. }
  359. }
  360. .tippy-popper[x-placement^="bottom"] .tippy-tooltip {
  361. &.songActions-theme,
  362. &.addToPlaylist-theme {
  363. .tippy-arrow {
  364. border-bottom-color: var(--dark-grey-2);
  365. }
  366. }
  367. &.dark-theme .tippy-arrow {
  368. border-bottom-color: var(--white);
  369. }
  370. }
  371. .tippy-popper[x-placement^="left"] .tippy-tooltip {
  372. &.songActions-theme,
  373. &.addToPlaylist-theme {
  374. .tippy-arrow {
  375. border-left-color: var(--dark-grey-2);
  376. }
  377. }
  378. &.dark-theme .tippy-arrow {
  379. border-left-color: var(--white);
  380. }
  381. }
  382. .tippy-popper[x-placement^="right"] .tippy-tooltip {
  383. &.songActions-theme,
  384. &.addToPlaylist-theme {
  385. .tippy-arrow {
  386. border-right-color: var(--dark-grey-2);
  387. }
  388. }
  389. &.dark-theme .tippy-arrow {
  390. border-right-color: var(--white);
  391. }
  392. }
  393. }
  394. .tippy-tooltip.confirm-theme {
  395. background-color: var(--red);
  396. padding: 5px 10px;
  397. a {
  398. color: var(--white);
  399. font-size: 14px;
  400. font-weight: 600;
  401. &:hover,
  402. &:focus {
  403. filter: brightness(90%);
  404. }
  405. }
  406. }
  407. .tippy-tooltip.songActions-theme {
  408. font-size: 14px;
  409. padding: 5px 10px;
  410. border: 1px solid var(--light-grey-3);
  411. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  412. background-color: var(--white);
  413. .button {
  414. width: 146px;
  415. }
  416. .song-actions,
  417. .addToPlaylistDropdown,
  418. .song-actions > div {
  419. display: inline-block;
  420. }
  421. .addToPlaylistDropdown .tippy-popper {
  422. max-width: unset;
  423. }
  424. i,
  425. a {
  426. display: inline-block;
  427. cursor: pointer;
  428. color: var(--dark-grey);
  429. vertical-align: middle;
  430. &:hover,
  431. &:focus {
  432. filter: brightness(90%);
  433. }
  434. &:not(:first-of-type) {
  435. margin-left: 5px;
  436. }
  437. }
  438. .play-icon {
  439. color: var(--green);
  440. }
  441. .edit-icon,
  442. .view-icon,
  443. .add-to-playlist-icon,
  444. .add-to-queue-icon {
  445. color: var(--primary-color);
  446. }
  447. .hide-icon {
  448. color: var(--light-grey-3);
  449. }
  450. .stop-icon,
  451. .delete-icon {
  452. color: var(--red);
  453. }
  454. .report-icon {
  455. color: var(--yellow);
  456. }
  457. }
  458. .tippy-popper[x-placement^="top"] .tippy-tooltip {
  459. &.songActions-theme,
  460. &.addToPlaylist-theme {
  461. .tippy-arrow {
  462. border-top-color: var(--light-grey-3);
  463. }
  464. }
  465. &.confirm-theme .tippy-arrow {
  466. border-top-color: var(--red);
  467. }
  468. }
  469. .tippy-popper[x-placement^="bottom"] .tippy-tooltip {
  470. &.songActions-theme,
  471. &.addToPlaylist-theme {
  472. .tippy-arrow {
  473. border-bottom-color: var(--light-grey-3);
  474. }
  475. }
  476. &.confirm-theme .tippy-arrow {
  477. border-bottom-color: var(--red);
  478. }
  479. }
  480. .tippy-popper[x-placement^="left"] .tippy-tooltip {
  481. &.songActions-theme,
  482. &.addToPlaylist-theme {
  483. .tippy-arrow {
  484. border-left-color: var(--light-grey-3);
  485. }
  486. }
  487. &.confirm-theme .tippy-arrow {
  488. border-left-color: var(--red);
  489. }
  490. }
  491. .tippy-popper[x-placement^="right"] .tippy-tooltip {
  492. &.songActions-theme,
  493. &.addToPlaylist-theme {
  494. .tippy-arrow {
  495. border-right-color: var(--light-grey-3);
  496. }
  497. }
  498. &.confirm-theme .tippy-arrow {
  499. border-right-color: var(--red);
  500. }
  501. }
  502. .tippy-tooltip.addToPlaylist-theme {
  503. font-size: 14px;
  504. padding: 5px;
  505. border: 1px solid var(--light-grey-3);
  506. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  507. background-color: var(--white);
  508. color: var(--dark-grey);
  509. .nav-dropdown-items {
  510. .nav-item {
  511. width: 100%;
  512. justify-content: flex-start;
  513. border: 0;
  514. padding: 10px;
  515. font-size: 15.5px;
  516. height: 36px;
  517. background: var(--light-grey);
  518. border-radius: 5px;
  519. cursor: pointer;
  520. .checkbox-control {
  521. display: flex;
  522. align-items: center;
  523. margin-bottom: 0 !important;
  524. width: inherit;
  525. input {
  526. margin-right: 5px;
  527. }
  528. input[type="checkbox"] {
  529. opacity: 0;
  530. position: absolute;
  531. }
  532. label {
  533. display: flex;
  534. flex-direction: row;
  535. align-items: center;
  536. width: inherit;
  537. span {
  538. cursor: pointer;
  539. min-width: 24px;
  540. height: 24px;
  541. background-color: var(--white);
  542. display: inline-block;
  543. border: 1px solid var(--dark-grey-2);
  544. position: relative;
  545. border-radius: 3px;
  546. }
  547. p {
  548. margin-left: 10px;
  549. cursor: pointer;
  550. color: var(--black);
  551. overflow: hidden;
  552. text-overflow: ellipsis;
  553. white-space: nowrap;
  554. }
  555. }
  556. input[type="checkbox"]:checked + label span::after {
  557. content: "";
  558. width: 18px;
  559. height: 18px;
  560. left: 2px;
  561. top: 2px;
  562. border-radius: 3px;
  563. background-color: var(--primary-color);
  564. position: absolute;
  565. }
  566. }
  567. &:focus {
  568. outline-color: var(--light-grey-3);
  569. }
  570. &:not(:last-of-type) {
  571. margin-bottom: 5px;
  572. }
  573. }
  574. }
  575. .tippy-content > div {
  576. display: flex;
  577. flex-direction: column;
  578. button {
  579. width: 150px;
  580. &:not(:last-of-type) {
  581. margin-bottom: 10px;
  582. }
  583. }
  584. }
  585. }
  586. .select {
  587. &:after {
  588. border-color: var(--primary-color);
  589. border-width: 1.5px;
  590. margin-top: -3px;
  591. }
  592. select {
  593. height: 36px;
  594. }
  595. }
  596. .button:focus,
  597. .button:active {
  598. border-color: var(--light-grey-2) !important;
  599. }
  600. .input:focus,
  601. .input:active,
  602. .textarea:focus,
  603. .textarea:active,
  604. .select select:focus,
  605. .select select:active {
  606. border-color: var(--primary-color) !important;
  607. }
  608. button.delete:focus {
  609. background-color: rgba(10, 10, 10, 0.3);
  610. }
  611. .tag {
  612. padding-right: 6px !important;
  613. }
  614. .button {
  615. &:hover,
  616. &:focus {
  617. filter: brightness(95%);
  618. }
  619. &.is-success {
  620. background-color: var(--green) !important;
  621. }
  622. &.is-primary {
  623. background-color: var(--primary-color) !important;
  624. }
  625. &.is-danger {
  626. background-color: var(--red) !important;
  627. }
  628. &.is-info {
  629. background-color: var(--primary-color) !important;
  630. }
  631. &.is-warning {
  632. background-color: var(--yellow) !important;
  633. }
  634. }
  635. .input,
  636. .button {
  637. height: 36px;
  638. }
  639. .fadein-helpbox-enter-active {
  640. transition-duration: 0.3s;
  641. transition-timing-function: ease-in;
  642. }
  643. .fadein-helpbox-leave-active {
  644. transition-duration: 0.3s;
  645. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  646. }
  647. .fadein-helpbox-enter-to,
  648. .fadein-helpbox-leave {
  649. max-height: 100px;
  650. overflow: hidden;
  651. }
  652. .fadein-helpbox-enter,
  653. .fadein-helpbox-leave-to {
  654. overflow: hidden;
  655. max-height: 0;
  656. }
  657. .control {
  658. margin-bottom: 5px !important;
  659. }
  660. .input-with-button {
  661. .control {
  662. margin-right: 0px !important;
  663. }
  664. input,
  665. select {
  666. width: 100%;
  667. height: 36px;
  668. border-radius: 3px 0 0 3px;
  669. border-right: 0;
  670. border-color: var(--light-grey-3);
  671. }
  672. .button {
  673. height: 36px;
  674. border-radius: 0 3px 3px 0;
  675. }
  676. }
  677. .page-title {
  678. margin: 0 0 50px 0;
  679. }
  680. .material-icons {
  681. user-select: none;
  682. -webkit-user-select: none;
  683. }
  684. .icon-with-button {
  685. margin-right: 3px;
  686. font-size: 18px;
  687. }
  688. .verified-song {
  689. font-size: 17px;
  690. color: var(--primary-color);
  691. }
  692. .section-title,
  693. h4.section-title {
  694. font-size: 26px;
  695. font-weight: 600;
  696. margin: 0px;
  697. }
  698. .section-description {
  699. font-size: 16px;
  700. font-weight: 400;
  701. margin-bottom: 10px !important;
  702. }
  703. .section-horizontal-rule {
  704. margin: 15px 0 30px 0;
  705. }
  706. .section-margin-bottom {
  707. height: 30px;
  708. }
  709. .margin-top-zero {
  710. margin-top: 0 !important;
  711. }
  712. .margin-bottom-zero {
  713. margin-bottom: 0 !important;
  714. }
  715. /** Universial items e.g. playlist items, queue items, activity items */
  716. .item-draggable {
  717. cursor: move;
  718. }
  719. .universal-item {
  720. display: flex;
  721. flex-direction: row;
  722. flex-grow: 1;
  723. align-items: center;
  724. justify-content: space-between;
  725. padding: 7.5px;
  726. border: 1px solid var(--light-grey-3);
  727. border-radius: 3px;
  728. overflow: hidden;
  729. .item-thumbnail {
  730. width: 65px;
  731. height: 65px;
  732. margin: -7.5px;
  733. border-radius: 3px 0 0 3px;
  734. }
  735. .item-title {
  736. font-size: 20px;
  737. overflow: hidden;
  738. text-overflow: ellipsis;
  739. white-space: nowrap;
  740. }
  741. .item-description {
  742. font-size: 14px;
  743. overflow: hidden;
  744. text-overflow: ellipsis;
  745. white-space: nowrap;
  746. }
  747. .universal-item-actions {
  748. display: flex;
  749. flex-direction: row;
  750. margin-left: 10px;
  751. justify-content: center;
  752. @media screen and (max-width: 800px) {
  753. flex-wrap: wrap;
  754. }
  755. .action-dropdown-icon {
  756. display: flex;
  757. color: var(--primary-color);
  758. }
  759. .song-actions {
  760. display: flex;
  761. }
  762. .button {
  763. width: 146px;
  764. }
  765. i {
  766. cursor: pointer;
  767. color: var(--dark-grey);
  768. &:hover,
  769. &:focus {
  770. filter: brightness(90%);
  771. }
  772. &:not(:first-of-type) {
  773. margin-left: 5px;
  774. }
  775. }
  776. .play-icon {
  777. color: var(--green);
  778. }
  779. .edit-icon,
  780. .view-icon,
  781. .add-to-playlist-icon {
  782. color: var(--primary-color);
  783. }
  784. .hide-icon {
  785. color: var(--light-grey-3);
  786. }
  787. .stop-icon,
  788. .delete-icon {
  789. color: var(--red);
  790. }
  791. .report-icon {
  792. color: var(--yellow);
  793. }
  794. }
  795. }
  796. .save-button-mixin {
  797. min-width: 200px;
  798. &:disabled {
  799. background-color: var(--light-grey) !important;
  800. color: var(--black);
  801. }
  802. }
  803. .save-button-transition-enter-active {
  804. transition: all 0.1s ease;
  805. }
  806. .save-button-transition-enter {
  807. transform: translateX(20px);
  808. opacity: 0;
  809. }
  810. .youtube-icon {
  811. margin-right: 3px;
  812. height: 20px;
  813. width: 20px;
  814. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  815. mask: url("/assets/social/youtube.svg") no-repeat center;
  816. background-color: var(--youtube);
  817. }
  818. </style>