App.vue 16 KB

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