App.vue 21 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238
  1. <template>
  2. <div class="upper-container">
  3. <banned v-if="banned" />
  4. <div v-else class="upper-container">
  5. <router-view
  6. :key="$route.fullPath"
  7. class="main-container"
  8. :class="{ 'main-container-modal-active': aModalIsOpen }"
  9. />
  10. <what-is-new v-show="modals.whatIsNew" />
  11. <login-modal v-if="modals.login" />
  12. <register-modal v-if="modals.register" />
  13. </div>
  14. </div>
  15. </template>
  16. <script>
  17. import { mapState, mapActions, mapGetters } from "vuex";
  18. import Toast from "toasters";
  19. import { defineAsyncComponent } from "vue";
  20. import ws from "./ws";
  21. import aw from "./aw";
  22. import keyboardShortcuts from "./keyboardShortcuts";
  23. export default {
  24. components: {
  25. WhatIsNew: defineAsyncComponent(() =>
  26. import("@/components/modals/WhatIsNew.vue")
  27. ),
  28. LoginModal: defineAsyncComponent(() =>
  29. import("@/components/modals/Login.vue")
  30. ),
  31. RegisterModal: defineAsyncComponent(() =>
  32. import("@/components/modals/Register.vue")
  33. ),
  34. Banned: defineAsyncComponent(() => import("@/pages/Banned.vue"))
  35. },
  36. replace: false,
  37. data() {
  38. return {
  39. apiDomain: "",
  40. socketConnected: true,
  41. keyIsDown: false
  42. };
  43. },
  44. computed: {
  45. ...mapState({
  46. loggedIn: state => state.user.auth.loggedIn,
  47. role: state => state.user.auth.role,
  48. username: state => state.user.auth.username,
  49. userId: state => state.user.auth.userId,
  50. banned: state => state.user.auth.banned,
  51. modals: state => state.modalVisibility.modals,
  52. currentlyActive: state => state.modalVisibility.currentlyActive,
  53. nightmode: state => state.user.preferences.nightmode,
  54. activityWatch: state => state.user.preferences.activityWatch
  55. }),
  56. ...mapGetters({
  57. socket: "websockets/getSocket"
  58. }),
  59. aModalIsOpen() {
  60. return Object.keys(this.currentlyActive).length > 0;
  61. }
  62. },
  63. watch: {
  64. socketConnected(connected) {
  65. if (!connected) this.disconnectedMessage.show();
  66. else this.disconnectedMessage.hide();
  67. },
  68. nightmode(nightmode) {
  69. if (nightmode) this.enableNightMode();
  70. else this.disableNightMode();
  71. },
  72. activityWatch(activityWatch) {
  73. if (activityWatch) aw.enable();
  74. else aw.disable();
  75. }
  76. },
  77. async mounted() {
  78. document.onkeydown = ev => {
  79. const event = ev || window.event;
  80. const { keyCode } = event;
  81. const shift = event.shiftKey;
  82. const ctrl = event.ctrlKey;
  83. const alt = event.altKey;
  84. const identifier = `${keyCode}.${shift}.${ctrl}`;
  85. if (this.keyIsDown === identifier) return;
  86. this.keyIsDown = identifier;
  87. keyboardShortcuts.handleKeyDown(event, keyCode, shift, ctrl, alt);
  88. };
  89. document.onkeyup = () => {
  90. this.keyIsDown = "";
  91. };
  92. keyboardShortcuts.registerShortcut("closeModal", {
  93. keyCode: 27,
  94. shift: false,
  95. ctrl: false,
  96. handler: () => {
  97. if (Object.keys(this.currentlyActive).length !== 0)
  98. this.closeCurrentModal();
  99. }
  100. });
  101. if (localStorage.getItem("github_redirect")) {
  102. this.$router.push(localStorage.getItem("github_redirect"));
  103. localStorage.removeItem("github_redirect");
  104. }
  105. this.disconnectedMessage = new Toast({
  106. content: "Could not connect to the server.",
  107. persistent: true,
  108. interactable: false
  109. });
  110. this.disconnectedMessage.hide();
  111. ws.onConnect(true, () => {
  112. this.socketConnected = true;
  113. });
  114. ws.onDisconnect(true, () => {
  115. this.socketConnected = false;
  116. });
  117. this.apiDomain = await lofig.get("apiDomain");
  118. this.$router.isReady(() => {
  119. if (this.$route.query.err) {
  120. let { err } = this.$route.query;
  121. err = err
  122. .replace(new RegExp("<", "g"), "&lt;")
  123. .replace(new RegExp(">", "g"), "&gt;");
  124. this.$router.push({ query: {} });
  125. new Toast({ content: err, timeout: 20000 });
  126. }
  127. if (this.$route.query.msg) {
  128. let { msg } = this.$route.query;
  129. msg = msg
  130. .replace(new RegExp("<", "g"), "&lt;")
  131. .replace(new RegExp(">", "g"), "&gt;");
  132. this.$router.push({ query: {} });
  133. new Toast({ content: msg, timeout: 20000 });
  134. }
  135. });
  136. this.socket.dispatch("users.getPreferences", res => {
  137. if (res.status === "success") {
  138. const { preferences } = res.data;
  139. this.changeAutoSkipDisliked(preferences.autoSkipDisliked);
  140. this.changeNightmode(preferences.nightmode);
  141. this.changeActivityLogPublic(preferences.activityLogPublic);
  142. this.changeAnonymousSongRequests(
  143. preferences.anonymousSongRequests
  144. );
  145. this.changeActivityWatch(preferences.activityWatch);
  146. if (this.nightmode) this.enableNightMode();
  147. else this.disableNightMode();
  148. }
  149. });
  150. this.socket.on("keep.event:user.session.deleted", () =>
  151. window.location.reload()
  152. );
  153. },
  154. methods: {
  155. enableNightMode: () => {
  156. document
  157. .getElementsByTagName("body")[0]
  158. .classList.add("night-mode");
  159. },
  160. disableNightMode: () => {
  161. document
  162. .getElementsByTagName("body")[0]
  163. .classList.remove("night-mode");
  164. },
  165. ...mapActions("modalVisibility", ["closeCurrentModal"]),
  166. ...mapActions("user/preferences", [
  167. "changeNightmode",
  168. "changeAutoSkipDisliked",
  169. "changeActivityLogPublic",
  170. "changeAnonymousSongRequests",
  171. "changeActivityWatch"
  172. ])
  173. }
  174. };
  175. </script>
  176. <style lang="scss">
  177. @import "tippy.js/dist/tippy.css";
  178. @import "tippy.js/animations/scale.css";
  179. :root {
  180. --primary-color: var(--blue);
  181. --blue: rgb(2, 166, 242);
  182. --light-blue: rgb(163, 224, 255);
  183. --dark-blue: rgb(0, 102, 244);
  184. --teal: rgb(0, 209, 178);
  185. --purple: rgb(143, 40, 140);
  186. --light-purple: rgb(170, 141, 216);
  187. --yellow: rgb(241, 196, 15);
  188. --light-pink: rgb(228, 155, 166);
  189. --dark-pink: rgb(234, 72, 97);
  190. --orange: rgb(255, 94, 0);
  191. --dark-orange: rgb(250, 50, 0);
  192. --green: rgb(68, 189, 50);
  193. --red: rgb(231, 77, 60);
  194. --white: rgb(255, 255, 255);
  195. --black: rgb(0, 0, 0);
  196. --light-grey: rgb(245, 245, 245);
  197. --light-grey-2: rgb(221, 221, 221);
  198. --light-grey-3: rgb(195, 193, 195);
  199. --grey: rgb(107, 107, 107);
  200. --grey-2: rgb(113, 113, 113);
  201. --grey-3: rgb(126, 126, 126);
  202. --dark-grey: rgb(77, 77, 77);
  203. --dark-grey-2: rgb(51, 51, 51);
  204. --dark-grey-3: rgb(34, 34, 34);
  205. --dark-grey-4: rgb(26, 26, 26);
  206. --youtube: rgb(189, 46, 46);
  207. }
  208. .night-mode {
  209. div {
  210. // background-color: var(--black);
  211. color: var(--light-grey-2);
  212. }
  213. #toasts-container .toast {
  214. // color: var(--dark-grey-2);
  215. // background-color: var(--light-grey-3) !important;
  216. // &:last-of-type {
  217. // background-color: var(--light-grey) !important;
  218. // }
  219. }
  220. h1,
  221. h2,
  222. h3,
  223. h4,
  224. h5,
  225. h6 {
  226. color: var(--white) !important;
  227. }
  228. p:not(.help),
  229. label,
  230. .label {
  231. color: var(--light-grey-2) !important;
  232. }
  233. .section,
  234. .content {
  235. background-color: var(--dark-grey-3) !important;
  236. }
  237. .content-box,
  238. .step:not(.selected) {
  239. background-color: var(--dark-grey-3) !important;
  240. }
  241. .tippy-box[data-theme~="songActions"] {
  242. background-color: var(--dark-grey);
  243. }
  244. }
  245. body.night-mode {
  246. background-color: var(--black) !important;
  247. }
  248. #toasts-container {
  249. z-index: 10000 !important;
  250. .toast {
  251. font-weight: 600;
  252. // background-color: var(--dark-grey) !important;
  253. // &:last-of-type {
  254. // background-color: var(--dark-grey-2) !important;
  255. // }
  256. }
  257. }
  258. html {
  259. overflow: auto !important;
  260. height: 100%;
  261. }
  262. body {
  263. background-color: var(--light-grey);
  264. color: var(--dark-grey);
  265. height: 100%;
  266. font-family: "Inter", Helvetica, Arial, sans-serif;
  267. }
  268. h1,
  269. h2,
  270. h3,
  271. h4,
  272. h5,
  273. h6,
  274. .sidebar-title {
  275. font-family: "Inter", Helvetica, Arial, sans-serif;
  276. }
  277. .modal-card-title {
  278. font-weight: 600;
  279. font-family: "Inter", Helvetica, Arial, sans-serif;
  280. }
  281. p,
  282. button,
  283. input,
  284. select,
  285. textarea {
  286. font-family: "Inter", Helvetica, Arial, sans-serif;
  287. }
  288. .upper-container {
  289. height: 100%;
  290. }
  291. .main-container {
  292. height: 100%;
  293. min-height: 100vh;
  294. display: flex;
  295. flex-direction: column;
  296. > .container {
  297. flex: 1 0 auto;
  298. }
  299. }
  300. .main-container.main-container-modal-active {
  301. height: 100% !important;
  302. overflow: hidden;
  303. }
  304. a {
  305. color: var(--primary-color);
  306. text-decoration: none;
  307. }
  308. .modal-card {
  309. margin: 0 !important;
  310. }
  311. .absolute-a {
  312. width: 100%;
  313. height: 100%;
  314. position: absolute;
  315. top: 0;
  316. left: 0;
  317. }
  318. .alert {
  319. padding: 20px;
  320. color: var(--white);
  321. background-color: var(--red);
  322. position: fixed;
  323. top: 50px;
  324. right: 50px;
  325. font-size: 2em;
  326. border-radius: 5px;
  327. z-index: 10000000;
  328. }
  329. .night-mode {
  330. .tippy-box {
  331. border: 1px solid var(--light-grey-3);
  332. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
  333. 0 10px 10px rgba(0, 0, 0, 0.22);
  334. background-color: var(--white);
  335. > .tippy-arrow::before {
  336. border-top-color: var(--white);
  337. }
  338. .tippy-content {
  339. color: var(--black);
  340. }
  341. &[data-theme~="songActions"] {
  342. background-color: var(--dark-grey-2);
  343. border: 0 !important;
  344. i,
  345. a {
  346. color: var(--white);
  347. }
  348. .youtube-icon {
  349. background-color: var(--white);
  350. }
  351. }
  352. &[data-theme~="addToPlaylist"] {
  353. background-color: var(--dark-grey-2);
  354. border: 0 !important;
  355. .nav-dropdown-items {
  356. .nav-item {
  357. background-color: var(--dark-grey);
  358. &:focus {
  359. outline-color: var(--dark-grey);
  360. }
  361. p {
  362. color: var(--white);
  363. }
  364. }
  365. }
  366. }
  367. }
  368. .tippy-box[data-placement^="top"] {
  369. &[data-theme~="songActions"],
  370. &[data-theme~="addToPlaylist"] {
  371. > .tippy-arrow::before {
  372. border-top-color: var(--dark-grey-2);
  373. }
  374. }
  375. }
  376. .tippy-popper[data-placement^="bottom"] {
  377. &[data-theme~="songActions"],
  378. &[data-theme~="addToPlaylist"] {
  379. > .tippy-arrow::before {
  380. border-bottom-color: var(--dark-grey-2);
  381. }
  382. }
  383. }
  384. .tippy-popper[data-placement^="left"] {
  385. &[data-theme~="songActions"],
  386. &[data-theme~="addToPlaylist"] {
  387. > .tippy-arrow::before {
  388. border-left-color: var(--dark-grey-2);
  389. }
  390. }
  391. }
  392. .tippy-box[data-placement^="right"] {
  393. &[data-theme~="songActions"],
  394. &[data-theme~="addToPlaylist"] {
  395. > .tippy-arrow::before {
  396. border-right-color: var(--dark-grey-2);
  397. }
  398. }
  399. }
  400. }
  401. .tippy-box[data-theme~="info"] {
  402. font-size: 12px;
  403. letter-spacing: 1px;
  404. }
  405. .tippy-box[data-theme~="confirm"] {
  406. background-color: var(--red);
  407. padding: 5px 10px;
  408. a {
  409. color: var(--white);
  410. border-bottom: 0;
  411. font-size: 15px;
  412. font-weight: 600;
  413. &:hover,
  414. &:focus {
  415. filter: brightness(90%);
  416. }
  417. }
  418. }
  419. .tippy-box[data-theme~="songActions"] {
  420. font-size: 15px;
  421. padding: 5px 10px;
  422. border: 1px solid var(--light-grey-3);
  423. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  424. background-color: var(--white);
  425. .button {
  426. width: 146px;
  427. }
  428. .icons-group,
  429. .addToPlaylistDropdown,
  430. .icons-group > div {
  431. display: inline-block;
  432. }
  433. .addToPlaylistDropdown .tippy-popper {
  434. max-width: unset;
  435. }
  436. i,
  437. a {
  438. display: inline-block;
  439. cursor: pointer;
  440. color: var(--dark-grey);
  441. vertical-align: middle;
  442. &:hover,
  443. &:focus {
  444. filter: brightness(90%);
  445. }
  446. &:not(:first) {
  447. margin-left: 5px;
  448. }
  449. }
  450. .play-icon {
  451. color: var(--green);
  452. }
  453. .edit-icon,
  454. .view-icon,
  455. .add-to-playlist-icon,
  456. .add-to-queue-icon {
  457. color: var(--primary-color);
  458. }
  459. .hide-icon {
  460. color: var(--light-grey-3);
  461. }
  462. .stop-icon,
  463. .delete-icon {
  464. color: var(--red);
  465. }
  466. .report-icon {
  467. color: var(--yellow);
  468. }
  469. }
  470. .tippy-box[data-placement^="top"] {
  471. &[data-theme~="songActions"],
  472. &[data-theme~="addToPlaylist"] {
  473. > .tippy-arrow::before {
  474. border-top-color: var(--white);
  475. }
  476. }
  477. &[data-theme~="confirm"] > .tippy-arrow::before {
  478. border-top-color: var(--red);
  479. }
  480. }
  481. .tippy-box[data-placement^="bottom"] {
  482. &[data-theme~="songActions"],
  483. &[data-theme~="addToPlaylist"] {
  484. > .tippy-arrow::before {
  485. border-bottom-color: var(--white);
  486. }
  487. }
  488. &[data-theme~="confirm"] > .tippy-arrow::before {
  489. border-bottom-color: var(--red);
  490. }
  491. }
  492. .tippy-box[data-placement^="left"] {
  493. &[data-theme~="songActions"],
  494. &[data-theme~="addToPlaylist"] {
  495. > .tippy-arrow::before {
  496. border-left-color: var(--white);
  497. }
  498. }
  499. &[data-theme~="confirm"] > .tippy-arrow::before {
  500. border-left-color: var(--red);
  501. }
  502. }
  503. .tippy-box[data-placement^="right"] {
  504. &[data-theme~="songActions"],
  505. &[data-theme~="addToPlaylist"] {
  506. > .tippy-arrow::before {
  507. border-right-color: var(--white);
  508. }
  509. }
  510. &[data-theme~="confirm"] > .tippy-arrow::before {
  511. border-right-color: var(--red);
  512. }
  513. }
  514. .tippy-box[data-theme~="addToPlaylist"] {
  515. font-size: 15px;
  516. padding: 5px;
  517. border: 1px solid var(--light-grey-3);
  518. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  519. background-color: var(--white);
  520. color: var(--dark-grey);
  521. .nav-dropdown-items {
  522. .nav-item {
  523. width: 100%;
  524. justify-content: flex-start;
  525. border: 0;
  526. padding: 10px;
  527. font-size: 15.5px;
  528. height: 36px;
  529. background: var(--light-grey);
  530. border-radius: 5px;
  531. cursor: pointer;
  532. .checkbox-control {
  533. display: flex;
  534. flex-direction: row;
  535. align-items: center;
  536. p {
  537. margin-left: 10px;
  538. }
  539. .switch {
  540. position: relative;
  541. display: inline-block;
  542. flex-shrink: 0;
  543. width: 40px;
  544. height: 24px;
  545. }
  546. .switch input {
  547. opacity: 0;
  548. width: 0;
  549. height: 0;
  550. }
  551. .slider {
  552. position: absolute;
  553. cursor: pointer;
  554. top: 0;
  555. left: 0;
  556. right: 0;
  557. bottom: 0;
  558. background-color: #ccc;
  559. transition: 0.2s;
  560. border-radius: 34px;
  561. }
  562. .slider:before {
  563. position: absolute;
  564. content: "";
  565. height: 16px;
  566. width: 16px;
  567. left: 4px;
  568. bottom: 4px;
  569. background-color: white;
  570. transition: 0.2s;
  571. border-radius: 50%;
  572. }
  573. input:checked + .slider {
  574. background-color: var(--primary-color);
  575. }
  576. input:focus + .slider {
  577. box-shadow: 0 0 1px var(--primary-color);
  578. }
  579. input:checked + .slider:before {
  580. transform: translateX(16px);
  581. }
  582. }
  583. &:focus {
  584. outline-color: var(--light-grey-3);
  585. }
  586. &:not(:last-of-type) {
  587. margin-bottom: 5px;
  588. }
  589. }
  590. }
  591. .tippy-content > div {
  592. display: flex;
  593. flex-direction: column;
  594. button {
  595. width: 150px;
  596. &:not(:last-of-type) {
  597. margin-bottom: 10px;
  598. }
  599. }
  600. }
  601. }
  602. .select {
  603. &:after {
  604. border-color: var(--primary-color);
  605. border-width: 1.5px;
  606. margin-top: -3px;
  607. }
  608. select {
  609. height: 36px;
  610. }
  611. }
  612. .button:focus,
  613. .button:active {
  614. border-color: var(--light-grey-2) !important;
  615. }
  616. .input:focus,
  617. .input:active,
  618. .textarea:focus,
  619. .textarea:active,
  620. .select select:focus,
  621. .select select:active {
  622. border-color: var(--primary-color) !important;
  623. }
  624. button.delete:focus {
  625. background-color: rgba(10, 10, 10, 0.3);
  626. }
  627. .tag {
  628. padding-right: 6px !important;
  629. }
  630. .button {
  631. &:hover,
  632. &:focus {
  633. filter: brightness(95%);
  634. }
  635. &.is-success {
  636. background-color: var(--green) !important;
  637. }
  638. &.is-primary {
  639. background-color: var(--primary-color) !important;
  640. }
  641. &.is-danger {
  642. background-color: var(--red) !important;
  643. }
  644. &.is-info {
  645. background-color: var(--primary-color) !important;
  646. }
  647. &.is-warning {
  648. background-color: var(--yellow) !important;
  649. }
  650. }
  651. .input,
  652. .button {
  653. height: 36px;
  654. }
  655. .fadein-helpbox-enter-active {
  656. transition-duration: 0.3s;
  657. transition-timing-function: ease-in;
  658. }
  659. .fadein-helpbox-leave-active {
  660. transition-duration: 0.3s;
  661. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  662. }
  663. .fadein-helpbox-enter-to,
  664. .fadein-helpbox-leave {
  665. max-height: 100px;
  666. overflow: hidden;
  667. }
  668. .fadein-helpbox-enter,
  669. .fadein-helpbox-leave-to {
  670. overflow: hidden;
  671. max-height: 0;
  672. }
  673. .control {
  674. margin-bottom: 5px !important;
  675. }
  676. .input-with-button {
  677. .control {
  678. margin-right: 0px !important;
  679. }
  680. input,
  681. select {
  682. width: 100%;
  683. height: 36px;
  684. border-radius: 3px 0 0 3px;
  685. border-right: 0;
  686. border-color: var(--light-grey-3);
  687. }
  688. .button {
  689. height: 36px;
  690. border-radius: 0 3px 3px 0;
  691. }
  692. }
  693. .page-title {
  694. margin: 0 0 50px 0;
  695. }
  696. .material-icons {
  697. user-select: none;
  698. -webkit-user-select: none;
  699. }
  700. .icon-with-button {
  701. margin-right: 3px;
  702. font-size: 18px;
  703. }
  704. .verified-song {
  705. font-size: 17px;
  706. color: var(--primary-color);
  707. }
  708. .section-title,
  709. h4.section-title {
  710. font-size: 26px;
  711. font-weight: 600;
  712. margin: 0px;
  713. }
  714. .section-description {
  715. font-size: 16px;
  716. font-weight: 400;
  717. margin-bottom: 10px !important;
  718. }
  719. .section-horizontal-rule {
  720. margin: 15px 0 30px 0;
  721. }
  722. .section-margin-bottom {
  723. height: 30px;
  724. }
  725. .margin-top-zero {
  726. margin-top: 0 !important;
  727. }
  728. .margin-bottom-zero {
  729. margin-bottom: 0 !important;
  730. }
  731. /** Universial items e.g. playlist items, queue items, activity items */
  732. .item-draggable {
  733. cursor: move;
  734. }
  735. .universal-item {
  736. display: flex;
  737. flex-direction: row;
  738. flex-grow: 1;
  739. align-items: center;
  740. justify-content: space-between;
  741. padding: 7.5px;
  742. border: 1px solid var(--light-grey-3);
  743. border-radius: 3px;
  744. overflow: hidden;
  745. .item-thumbnail {
  746. width: 65px;
  747. height: 65px;
  748. margin: -7.5px;
  749. border-radius: 3px 0 0 3px;
  750. }
  751. .item-title {
  752. font-size: 20px;
  753. overflow: hidden;
  754. text-overflow: ellipsis;
  755. white-space: nowrap;
  756. }
  757. .item-description {
  758. font-size: 14px;
  759. overflow: hidden;
  760. text-overflow: ellipsis;
  761. white-space: nowrap;
  762. }
  763. .universal-item-actions {
  764. display: flex;
  765. flex-direction: row;
  766. margin-left: 10px;
  767. justify-content: center;
  768. @media screen and (max-width: 800px) {
  769. flex-wrap: wrap;
  770. }
  771. .action-dropdown-icon {
  772. display: flex;
  773. color: var(--primary-color);
  774. }
  775. .icons-group {
  776. display: flex;
  777. align-items: center;
  778. a {
  779. padding: 0;
  780. }
  781. }
  782. .button {
  783. width: 146px;
  784. }
  785. i {
  786. cursor: pointer;
  787. color: var(--dark-grey);
  788. &:hover,
  789. &:focus {
  790. filter: brightness(90%);
  791. }
  792. &:not(:first-of-type) {
  793. margin-left: 5px;
  794. }
  795. }
  796. .play-icon {
  797. color: var(--green);
  798. }
  799. .edit-icon,
  800. .view-icon,
  801. .add-to-playlist-icon {
  802. color: var(--primary-color);
  803. }
  804. .hide-icon {
  805. color: var(--light-grey-3);
  806. }
  807. .stop-icon,
  808. .delete-icon {
  809. color: var(--red);
  810. }
  811. .report-icon {
  812. color: var(--yellow);
  813. }
  814. }
  815. }
  816. .save-button-mixin {
  817. min-width: 200px;
  818. &:disabled {
  819. background-color: var(--light-grey) !important;
  820. color: var(--black);
  821. }
  822. }
  823. .save-button-transition-enter-active {
  824. transition: all 0.1s ease;
  825. }
  826. .save-button-transition-enter {
  827. transform: translateX(20px);
  828. opacity: 0;
  829. }
  830. .youtube-icon {
  831. margin-right: 3px;
  832. height: 20px;
  833. width: 20px;
  834. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  835. mask: url("/assets/social/youtube.svg") no-repeat center;
  836. background-color: var(--youtube);
  837. }
  838. #forgot-password {
  839. display: flex;
  840. justify-content: flex-start;
  841. margin: 5px 0;
  842. }
  843. .steps-fade-enter-active,
  844. .steps-fade-leave-active {
  845. transition: all 0.3s ease;
  846. }
  847. .steps-fade-enter,
  848. .steps-fade-leave-to {
  849. opacity: 0;
  850. }
  851. .skip-step {
  852. background-color: var(--grey-3);
  853. color: var(--white);
  854. }
  855. #steps {
  856. display: flex;
  857. align-items: center;
  858. justify-content: center;
  859. height: 50px;
  860. margin-top: 36px;
  861. @media screen and (max-width: 300px) {
  862. display: none;
  863. }
  864. .step {
  865. display: flex;
  866. align-items: center;
  867. justify-content: center;
  868. border-radius: 100%;
  869. border: 1px solid var(--dark-grey);
  870. min-width: 50px;
  871. min-height: 50px;
  872. background-color: var(--white);
  873. font-size: 30px;
  874. cursor: pointer;
  875. &.selected {
  876. background-color: var(--primary-color);
  877. color: var(--white) !important;
  878. border: 0;
  879. }
  880. }
  881. .divider {
  882. display: flex;
  883. justify-content: center;
  884. width: 180px;
  885. height: 1px;
  886. background-color: var(--dark-grey);
  887. }
  888. }
  889. .content-box {
  890. margin-top: 90px;
  891. border-radius: 3px;
  892. background-color: var(--white);
  893. border: 1px solid var(--dark-grey);
  894. max-width: 580px;
  895. padding: 40px;
  896. @media screen and (max-width: 300px) {
  897. margin-top: 30px;
  898. padding: 30px 20px;
  899. }
  900. }
  901. .content-box-optional-helper {
  902. margin-top: 15px;
  903. color: var(--primary-color);
  904. text-decoration: underline;
  905. font-size: 16px;
  906. a {
  907. color: var(--primary-color);
  908. }
  909. }
  910. .content-box-title {
  911. font-size: 25px;
  912. color: var(--black);
  913. }
  914. .content-box-description {
  915. font-size: 14px;
  916. color: var(--dark-grey);
  917. }
  918. .content-box-inputs {
  919. margin-top: 35px;
  920. .input-with-button {
  921. .button {
  922. width: 105px;
  923. }
  924. @media screen and (max-width: 450px) {
  925. flex-direction: column;
  926. }
  927. }
  928. label {
  929. font-size: 11px;
  930. }
  931. #change-password-button {
  932. margin-top: 36px;
  933. width: 175px;
  934. }
  935. }
  936. #password-visibility-container {
  937. display: flex;
  938. align-items: center;
  939. a {
  940. width: 0;
  941. margin-left: -30px;
  942. z-index: 0;
  943. top: 2px;
  944. position: relative;
  945. color: var(--light-grey-1);
  946. }
  947. }
  948. .news-item {
  949. font-family: "Karla";
  950. border-radius: 5px;
  951. padding: 20px;
  952. border: unset !important;
  953. box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
  954. * {
  955. font-family: Karla, Arial, sans-serif;
  956. font-size: 16px;
  957. }
  958. h1 {
  959. font-size: 40px;
  960. &:first-of-type {
  961. margin-top: 0;
  962. }
  963. }
  964. h2 {
  965. font-size: 30px;
  966. }
  967. h3 {
  968. font-size: 25px;
  969. }
  970. h4,
  971. h5,
  972. h6 {
  973. font-size: 20px;
  974. }
  975. h1,
  976. h2,
  977. h3,
  978. h4,
  979. h5,
  980. h6 {
  981. margin: 10px 0;
  982. }
  983. ul {
  984. list-style: unset;
  985. }
  986. li {
  987. margin-left: 30px;
  988. }
  989. blockquote {
  990. padding: 0px 15px;
  991. color: #6a737d;
  992. border-left: 0.25em solid #dfe2e5;
  993. }
  994. code {
  995. font-style: italic;
  996. }
  997. }
  998. .checkbox-control {
  999. display: flex;
  1000. flex-direction: row;
  1001. align-items: center;
  1002. p {
  1003. margin-left: 10px;
  1004. }
  1005. .switch {
  1006. position: relative;
  1007. display: inline-block;
  1008. flex-shrink: 0;
  1009. width: 40px;
  1010. height: 24px;
  1011. }
  1012. .switch input {
  1013. opacity: 0;
  1014. width: 0;
  1015. height: 0;
  1016. }
  1017. .slider {
  1018. position: absolute;
  1019. cursor: pointer;
  1020. top: 0;
  1021. left: 0;
  1022. right: 0;
  1023. bottom: 0;
  1024. background-color: #ccc;
  1025. transition: 0.2s;
  1026. border-radius: 34px;
  1027. }
  1028. .slider:before {
  1029. position: absolute;
  1030. content: "";
  1031. height: 16px;
  1032. width: 16px;
  1033. left: 4px;
  1034. bottom: 4px;
  1035. background-color: white;
  1036. transition: 0.2s;
  1037. border-radius: 50%;
  1038. }
  1039. input:checked + .slider {
  1040. background-color: var(--primary-color);
  1041. }
  1042. input:focus + .slider {
  1043. box-shadow: 0 0 1px var(--primary-color);
  1044. }
  1045. input:checked + .slider:before {
  1046. transform: translateX(16px);
  1047. }
  1048. }
  1049. </style>