App.vue 20 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157
  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 v-show="modals.whatIsNew" />
  7. <login-modal v-if="modals.login" />
  8. <register-modal v-if="modals.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.deleted", () =>
  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. .label {
  218. color: var(--light-grey-2) !important;
  219. }
  220. .section,
  221. .content {
  222. background-color: var(--dark-grey-3) !important;
  223. }
  224. .content-box,
  225. .step:not(.selected) {
  226. background-color: var(--dark-grey-3) !important;
  227. }
  228. .tippy-tooltip.songActions-theme {
  229. background-color: var(--dark-grey);
  230. }
  231. }
  232. body.night-mode {
  233. background-color: var(--black) !important;
  234. }
  235. #toasts-container {
  236. z-index: 10000 !important;
  237. .toast {
  238. font-weight: 600;
  239. // background-color: var(--dark-grey) !important;
  240. // &:last-of-type {
  241. // background-color: var(--dark-grey-2) !important;
  242. // }
  243. }
  244. }
  245. html {
  246. overflow: auto !important;
  247. height: 100%;
  248. }
  249. body {
  250. background-color: var(--light-grey);
  251. color: var(--dark-grey);
  252. height: 100%;
  253. font-family: "Inter", Helvetica, Arial, sans-serif;
  254. }
  255. h1,
  256. h2,
  257. h3,
  258. h4,
  259. h5,
  260. h6,
  261. .sidebar-title {
  262. font-family: "Inter", Helvetica, Arial, sans-serif;
  263. }
  264. .modal-card-title {
  265. font-weight: 600;
  266. font-family: "Inter", Helvetica, Arial, sans-serif;
  267. }
  268. p,
  269. button,
  270. input,
  271. select,
  272. textarea {
  273. font-family: "Inter", Helvetica, Arial, sans-serif;
  274. }
  275. .upper-container {
  276. height: 100%;
  277. }
  278. .main-container {
  279. height: 100%;
  280. display: flex;
  281. flex-direction: column;
  282. > .container {
  283. flex: 1 0 auto;
  284. }
  285. }
  286. a {
  287. color: var(--primary-color);
  288. text-decoration: none;
  289. }
  290. .modal-card {
  291. margin: 0 !important;
  292. }
  293. .absolute-a {
  294. width: 100%;
  295. height: 100%;
  296. position: absolute;
  297. top: 0;
  298. left: 0;
  299. }
  300. .alert {
  301. padding: 20px;
  302. color: var(--white);
  303. background-color: var(--red);
  304. position: fixed;
  305. top: 50px;
  306. right: 50px;
  307. font-size: 2em;
  308. border-radius: 5px;
  309. z-index: 10000000;
  310. }
  311. .tippy-tooltip.dark-theme {
  312. font-size: 14px;
  313. padding: 5px 10px;
  314. }
  315. .night-mode {
  316. .tippy-tooltip {
  317. &.dark-theme {
  318. border: 1px solid var(--light-grey-3);
  319. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
  320. 0 10px 10px rgba(0, 0, 0, 0.22);
  321. background-color: white;
  322. .tippy-content {
  323. color: var(--black);
  324. }
  325. }
  326. &.songActions-theme {
  327. background-color: var(--dark-grey-2);
  328. border: 0 !important;
  329. i,
  330. a {
  331. color: var(--white);
  332. }
  333. .youtube-icon {
  334. background-color: var(--white);
  335. }
  336. }
  337. &.addToPlaylist-theme {
  338. background-color: var(--dark-grey-2);
  339. border: 0 !important;
  340. .nav-dropdown-items {
  341. .nav-item {
  342. background-color: var(--dark-grey);
  343. &:focus {
  344. outline-color: var(--dark-grey);
  345. }
  346. p {
  347. color: var(--white);
  348. }
  349. }
  350. }
  351. }
  352. }
  353. .tippy-popper[x-placement^="top"] .tippy-tooltip {
  354. &.songActions-theme,
  355. &.addToPlaylist-theme {
  356. .tippy-arrow {
  357. border-top-color: var(--dark-grey-2);
  358. }
  359. }
  360. &.dark-theme .tippy-arrow {
  361. border-top-color: var(--white);
  362. }
  363. }
  364. .tippy-popper[x-placement^="bottom"] .tippy-tooltip {
  365. &.songActions-theme,
  366. &.addToPlaylist-theme {
  367. .tippy-arrow {
  368. border-bottom-color: var(--dark-grey-2);
  369. }
  370. }
  371. &.dark-theme .tippy-arrow {
  372. border-bottom-color: var(--white);
  373. }
  374. }
  375. .tippy-popper[x-placement^="left"] .tippy-tooltip {
  376. &.songActions-theme,
  377. &.addToPlaylist-theme {
  378. .tippy-arrow {
  379. border-left-color: var(--dark-grey-2);
  380. }
  381. }
  382. &.dark-theme .tippy-arrow {
  383. border-left-color: var(--white);
  384. }
  385. }
  386. .tippy-popper[x-placement^="right"] .tippy-tooltip {
  387. &.songActions-theme,
  388. &.addToPlaylist-theme {
  389. .tippy-arrow {
  390. border-right-color: var(--dark-grey-2);
  391. }
  392. }
  393. &.dark-theme .tippy-arrow {
  394. border-right-color: var(--white);
  395. }
  396. }
  397. }
  398. .tippy-tooltip.info-theme {
  399. font-size: 12px;
  400. letter-spacing: 1px;
  401. }
  402. .tippy-tooltip.confirm-theme {
  403. background-color: var(--red);
  404. padding: 5px 10px;
  405. a {
  406. color: var(--white);
  407. font-size: 15px;
  408. font-weight: 600;
  409. &:hover,
  410. &:focus {
  411. filter: brightness(90%);
  412. }
  413. }
  414. }
  415. .tippy-tooltip.songActions-theme {
  416. font-size: 15px;
  417. padding: 5px 10px;
  418. border: 1px solid var(--light-grey-3);
  419. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  420. background-color: var(--white);
  421. .button {
  422. width: 146px;
  423. }
  424. .song-actions,
  425. .addToPlaylistDropdown,
  426. .song-actions > div {
  427. display: inline-block;
  428. }
  429. .addToPlaylistDropdown .tippy-popper {
  430. max-width: unset;
  431. }
  432. i,
  433. a {
  434. display: inline-block;
  435. cursor: pointer;
  436. color: var(--dark-grey);
  437. vertical-align: middle;
  438. &:hover,
  439. &:focus {
  440. filter: brightness(90%);
  441. }
  442. &:not(:first) {
  443. margin-left: 5px;
  444. }
  445. }
  446. .play-icon {
  447. color: var(--green);
  448. }
  449. .edit-icon,
  450. .view-icon,
  451. .add-to-playlist-icon,
  452. .add-to-queue-icon {
  453. color: var(--primary-color);
  454. }
  455. .hide-icon {
  456. color: var(--light-grey-3);
  457. }
  458. .stop-icon,
  459. .delete-icon {
  460. color: var(--red);
  461. }
  462. .report-icon {
  463. color: var(--yellow);
  464. }
  465. }
  466. .tippy-popper[x-placement^="top"] .tippy-tooltip {
  467. &.songActions-theme,
  468. &.addToPlaylist-theme {
  469. .tippy-arrow {
  470. border-top-color: var(--white);
  471. }
  472. }
  473. &.confirm-theme .tippy-arrow {
  474. border-top-color: var(--red);
  475. }
  476. }
  477. .tippy-popper[x-placement^="bottom"] .tippy-tooltip {
  478. &.songActions-theme,
  479. &.addToPlaylist-theme {
  480. .tippy-arrow {
  481. border-bottom-color: var(--white);
  482. }
  483. }
  484. &.confirm-theme .tippy-arrow {
  485. border-bottom-color: var(--red);
  486. }
  487. }
  488. .tippy-popper[x-placement^="left"] .tippy-tooltip {
  489. &.songActions-theme,
  490. &.addToPlaylist-theme {
  491. .tippy-arrow {
  492. border-left-color: var(--white);
  493. }
  494. }
  495. &.confirm-theme .tippy-arrow {
  496. border-left-color: var(--red);
  497. }
  498. }
  499. .tippy-popper[x-placement^="right"] .tippy-tooltip {
  500. &.songActions-theme,
  501. &.addToPlaylist-theme {
  502. .tippy-arrow {
  503. border-right-color: var(--white);
  504. }
  505. }
  506. &.confirm-theme .tippy-arrow {
  507. border-right-color: var(--red);
  508. }
  509. }
  510. .tippy-tooltip.addToPlaylist-theme {
  511. font-size: 15px;
  512. padding: 5px;
  513. border: 1px solid var(--light-grey-3);
  514. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  515. background-color: var(--white);
  516. color: var(--dark-grey);
  517. .nav-dropdown-items {
  518. .nav-item {
  519. width: 100%;
  520. justify-content: flex-start;
  521. border: 0;
  522. padding: 10px;
  523. font-size: 15.5px;
  524. height: 36px;
  525. background: var(--light-grey);
  526. border-radius: 5px;
  527. cursor: pointer;
  528. .checkbox-control {
  529. display: flex;
  530. flex-direction: row;
  531. align-items: center;
  532. p {
  533. margin-left: 10px;
  534. }
  535. .switch {
  536. position: relative;
  537. display: inline-block;
  538. flex-shrink: 0;
  539. width: 40px;
  540. height: 24px;
  541. }
  542. .switch input {
  543. opacity: 0;
  544. width: 0;
  545. height: 0;
  546. }
  547. .slider {
  548. position: absolute;
  549. cursor: pointer;
  550. top: 0;
  551. left: 0;
  552. right: 0;
  553. bottom: 0;
  554. background-color: #ccc;
  555. transition: 0.2s;
  556. border-radius: 34px;
  557. }
  558. .slider:before {
  559. position: absolute;
  560. content: "";
  561. height: 16px;
  562. width: 16px;
  563. left: 4px;
  564. bottom: 4px;
  565. background-color: white;
  566. transition: 0.2s;
  567. border-radius: 50%;
  568. }
  569. input:checked + .slider {
  570. background-color: var(--primary-color);
  571. }
  572. input:focus + .slider {
  573. box-shadow: 0 0 1px var(--primary-color);
  574. }
  575. input:checked + .slider:before {
  576. transform: translateX(16px);
  577. }
  578. }
  579. &:focus {
  580. outline-color: var(--light-grey-3);
  581. }
  582. &:not(:last-of-type) {
  583. margin-bottom: 5px;
  584. }
  585. }
  586. }
  587. .tippy-content > div {
  588. display: flex;
  589. flex-direction: column;
  590. button {
  591. width: 150px;
  592. &:not(:last-of-type) {
  593. margin-bottom: 10px;
  594. }
  595. }
  596. }
  597. }
  598. .select {
  599. &:after {
  600. border-color: var(--primary-color);
  601. border-width: 1.5px;
  602. margin-top: -3px;
  603. }
  604. select {
  605. height: 36px;
  606. }
  607. }
  608. .button:focus,
  609. .button:active {
  610. border-color: var(--light-grey-2) !important;
  611. }
  612. .input:focus,
  613. .input:active,
  614. .textarea:focus,
  615. .textarea:active,
  616. .select select:focus,
  617. .select select:active {
  618. border-color: var(--primary-color) !important;
  619. }
  620. button.delete:focus {
  621. background-color: rgba(10, 10, 10, 0.3);
  622. }
  623. .tag {
  624. padding-right: 6px !important;
  625. }
  626. .button {
  627. &:hover,
  628. &:focus {
  629. filter: brightness(95%);
  630. }
  631. &.is-success {
  632. background-color: var(--green) !important;
  633. }
  634. &.is-primary {
  635. background-color: var(--primary-color) !important;
  636. }
  637. &.is-danger {
  638. background-color: var(--red) !important;
  639. }
  640. &.is-info {
  641. background-color: var(--primary-color) !important;
  642. }
  643. &.is-warning {
  644. background-color: var(--yellow) !important;
  645. }
  646. }
  647. .input,
  648. .button {
  649. height: 36px;
  650. }
  651. .fadein-helpbox-enter-active {
  652. transition-duration: 0.3s;
  653. transition-timing-function: ease-in;
  654. }
  655. .fadein-helpbox-leave-active {
  656. transition-duration: 0.3s;
  657. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  658. }
  659. .fadein-helpbox-enter-to,
  660. .fadein-helpbox-leave {
  661. max-height: 100px;
  662. overflow: hidden;
  663. }
  664. .fadein-helpbox-enter,
  665. .fadein-helpbox-leave-to {
  666. overflow: hidden;
  667. max-height: 0;
  668. }
  669. .control {
  670. margin-bottom: 5px !important;
  671. }
  672. .input-with-button {
  673. .control {
  674. margin-right: 0px !important;
  675. }
  676. input,
  677. select {
  678. width: 100%;
  679. height: 36px;
  680. border-radius: 3px 0 0 3px;
  681. border-right: 0;
  682. border-color: var(--light-grey-3);
  683. }
  684. .button {
  685. height: 36px;
  686. border-radius: 0 3px 3px 0;
  687. }
  688. }
  689. .page-title {
  690. margin: 0 0 50px 0;
  691. }
  692. .material-icons {
  693. user-select: none;
  694. -webkit-user-select: none;
  695. }
  696. .icon-with-button {
  697. margin-right: 3px;
  698. font-size: 18px;
  699. }
  700. .verified-song {
  701. font-size: 17px;
  702. color: var(--primary-color);
  703. }
  704. .section-title,
  705. h4.section-title {
  706. font-size: 26px;
  707. font-weight: 600;
  708. margin: 0px;
  709. }
  710. .section-description {
  711. font-size: 16px;
  712. font-weight: 400;
  713. margin-bottom: 10px !important;
  714. }
  715. .section-horizontal-rule {
  716. margin: 15px 0 30px 0;
  717. }
  718. .section-margin-bottom {
  719. height: 30px;
  720. }
  721. .margin-top-zero {
  722. margin-top: 0 !important;
  723. }
  724. .margin-bottom-zero {
  725. margin-bottom: 0 !important;
  726. }
  727. /** Universial items e.g. playlist items, queue items, activity items */
  728. .item-draggable {
  729. cursor: move;
  730. }
  731. .universal-item {
  732. display: flex;
  733. flex-direction: row;
  734. flex-grow: 1;
  735. align-items: center;
  736. justify-content: space-between;
  737. padding: 7.5px;
  738. border: 1px solid var(--light-grey-3);
  739. border-radius: 3px;
  740. overflow: hidden;
  741. .item-thumbnail {
  742. width: 65px;
  743. height: 65px;
  744. margin: -7.5px;
  745. border-radius: 3px 0 0 3px;
  746. }
  747. .item-title {
  748. font-size: 20px;
  749. overflow: hidden;
  750. text-overflow: ellipsis;
  751. white-space: nowrap;
  752. }
  753. .item-description {
  754. font-size: 14px;
  755. overflow: hidden;
  756. text-overflow: ellipsis;
  757. white-space: nowrap;
  758. }
  759. .universal-item-actions {
  760. display: flex;
  761. flex-direction: row;
  762. margin-left: 10px;
  763. justify-content: center;
  764. @media screen and (max-width: 800px) {
  765. flex-wrap: wrap;
  766. }
  767. .action-dropdown-icon {
  768. display: flex;
  769. color: var(--primary-color);
  770. }
  771. .song-actions {
  772. display: flex;
  773. }
  774. .button {
  775. width: 146px;
  776. }
  777. i {
  778. cursor: pointer;
  779. color: var(--dark-grey);
  780. &:hover,
  781. &:focus {
  782. filter: brightness(90%);
  783. }
  784. &:not(:first-of-type) {
  785. margin-left: 5px;
  786. }
  787. }
  788. .play-icon {
  789. color: var(--green);
  790. }
  791. .edit-icon,
  792. .view-icon,
  793. .add-to-playlist-icon {
  794. color: var(--primary-color);
  795. }
  796. .hide-icon {
  797. color: var(--light-grey-3);
  798. }
  799. .stop-icon,
  800. .delete-icon {
  801. color: var(--red);
  802. }
  803. .report-icon {
  804. color: var(--yellow);
  805. }
  806. }
  807. }
  808. .save-button-mixin {
  809. min-width: 200px;
  810. &:disabled {
  811. background-color: var(--light-grey) !important;
  812. color: var(--black);
  813. }
  814. }
  815. .save-button-transition-enter-active {
  816. transition: all 0.1s ease;
  817. }
  818. .save-button-transition-enter {
  819. transform: translateX(20px);
  820. opacity: 0;
  821. }
  822. .youtube-icon {
  823. margin-right: 3px;
  824. height: 20px;
  825. width: 20px;
  826. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  827. mask: url("/assets/social/youtube.svg") no-repeat center;
  828. background-color: var(--youtube);
  829. }
  830. #forgot-password {
  831. display: flex;
  832. justify-content: flex-start;
  833. margin: 5px 0;
  834. }
  835. .steps-fade-enter-active,
  836. .steps-fade-leave-active {
  837. transition: all 0.3s ease;
  838. }
  839. .steps-fade-enter,
  840. .steps-fade-leave-to {
  841. opacity: 0;
  842. }
  843. .skip-step {
  844. background-color: var(--grey-3);
  845. color: var(--white);
  846. }
  847. #steps {
  848. display: flex;
  849. align-items: center;
  850. justify-content: center;
  851. height: 50px;
  852. margin-top: 36px;
  853. @media screen and (max-width: 300px) {
  854. display: none;
  855. }
  856. .step {
  857. display: flex;
  858. align-items: center;
  859. justify-content: center;
  860. border-radius: 100%;
  861. border: 1px solid var(--dark-grey);
  862. min-width: 50px;
  863. min-height: 50px;
  864. background-color: var(--white);
  865. font-size: 30px;
  866. cursor: pointer;
  867. &.selected {
  868. background-color: var(--primary-color);
  869. color: var(--white) !important;
  870. border: 0;
  871. }
  872. }
  873. .divider {
  874. display: flex;
  875. justify-content: center;
  876. width: 180px;
  877. height: 1px;
  878. background-color: var(--dark-grey);
  879. }
  880. }
  881. .content-box {
  882. margin-top: 90px;
  883. border-radius: 3px;
  884. background-color: var(--white);
  885. border: 1px solid var(--dark-grey);
  886. max-width: 580px;
  887. padding: 40px;
  888. @media screen and (max-width: 300px) {
  889. margin-top: 30px;
  890. padding: 30px 20px;
  891. }
  892. }
  893. .content-box-optional-helper {
  894. margin-top: 15px;
  895. color: var(--primary-color);
  896. text-decoration: underline;
  897. font-size: 16px;
  898. a {
  899. color: var(--primary-color);
  900. }
  901. }
  902. .content-box-title {
  903. font-size: 25px;
  904. color: var(--black);
  905. }
  906. .content-box-description {
  907. font-size: 14px;
  908. color: var(--dark-grey);
  909. }
  910. .content-box-inputs {
  911. margin-top: 35px;
  912. .input-with-button {
  913. .button {
  914. width: 105px;
  915. }
  916. @media screen and (max-width: 450px) {
  917. flex-direction: column;
  918. }
  919. }
  920. label {
  921. font-size: 11px;
  922. }
  923. #change-password-button {
  924. margin-top: 36px;
  925. width: 175px;
  926. }
  927. }
  928. #password-visibility-container {
  929. display: flex;
  930. align-items: center;
  931. a {
  932. width: 0;
  933. margin-left: -30px;
  934. z-index: 0;
  935. top: 2px;
  936. position: relative;
  937. color: var(--light-grey-1);
  938. }
  939. }
  940. .news-item {
  941. font-family: "Karla";
  942. border-radius: 5px;
  943. padding: 20px;
  944. border: unset !important;
  945. box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
  946. * {
  947. font-family: Karla, Arial, sans-serif;
  948. font-size: 16px;
  949. }
  950. h1 {
  951. font-size: 40px;
  952. &:first-of-type {
  953. margin-top: 0;
  954. }
  955. }
  956. h2 {
  957. font-size: 30px;
  958. }
  959. h3 {
  960. font-size: 25px;
  961. }
  962. h4,
  963. h5,
  964. h6 {
  965. font-size: 20px;
  966. }
  967. h1,
  968. h2,
  969. h3,
  970. h4,
  971. h5,
  972. h6 {
  973. margin: 10px 0;
  974. }
  975. ul {
  976. list-style: unset;
  977. }
  978. li {
  979. margin-left: 30px;
  980. }
  981. blockquote {
  982. padding: 0px 15px;
  983. color: #6a737d;
  984. border-left: 0.25em solid #dfe2e5;
  985. }
  986. code {
  987. font-style: italic;
  988. }
  989. }
  990. </style>