App.vue 16 KB

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