App.vue 17 KB

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