App.vue 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930
  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': aModalIsOpen2 }"
  9. />
  10. <what-is-new v-show="modals.whatIsNew" />
  11. <login-modal v-if="modals.login" />
  12. <register-modal v-if="modals.register" />
  13. <create-playlist-modal v-if="modals.createPlaylist" />
  14. </div>
  15. <falling-snow v-if="christmas" />
  16. </div>
  17. </template>
  18. <script>
  19. import { mapState, mapActions, mapGetters } from "vuex";
  20. import Toast from "toasters";
  21. import { defineAsyncComponent } from "vue";
  22. import ws from "./ws";
  23. import aw from "./aw";
  24. import keyboardShortcuts from "./keyboardShortcuts";
  25. export default {
  26. components: {
  27. WhatIsNew: defineAsyncComponent(() =>
  28. import("@/components/modals/WhatIsNew.vue")
  29. ),
  30. LoginModal: defineAsyncComponent(() =>
  31. import("@/components/modals/Login.vue")
  32. ),
  33. RegisterModal: defineAsyncComponent(() =>
  34. import("@/components/modals/Register.vue")
  35. ),
  36. CreatePlaylistModal: defineAsyncComponent(() =>
  37. import("@/components/modals/CreatePlaylist.vue")
  38. ),
  39. Banned: defineAsyncComponent(() => import("@/pages/Banned.vue")),
  40. FallingSnow: defineAsyncComponent(() =>
  41. import("@/components/FallingSnow.vue")
  42. )
  43. },
  44. replace: false,
  45. data() {
  46. return {
  47. apiDomain: "",
  48. socketConnected: true,
  49. keyIsDown: false,
  50. scrollPosition: { y: 0, x: 0 },
  51. aModalIsOpen2: false,
  52. broadcastChannel: null,
  53. christmas: false
  54. };
  55. },
  56. computed: {
  57. ...mapState({
  58. loggedIn: state => state.user.auth.loggedIn,
  59. role: state => state.user.auth.role,
  60. username: state => state.user.auth.username,
  61. userId: state => state.user.auth.userId,
  62. banned: state => state.user.auth.banned,
  63. modals: state => state.modalVisibility.modals,
  64. currentlyActive: state => state.modalVisibility.currentlyActive,
  65. nightmode: state => state.user.preferences.nightmode,
  66. activityWatch: state => state.user.preferences.activityWatch
  67. }),
  68. ...mapGetters({
  69. socket: "websockets/getSocket"
  70. }),
  71. aModalIsOpen() {
  72. return Object.keys(this.currentlyActive).length > 0;
  73. }
  74. },
  75. watch: {
  76. socketConnected(connected) {
  77. if (!connected) this.disconnectedMessage.show();
  78. else this.disconnectedMessage.hide();
  79. },
  80. nightmode(nightmode) {
  81. if (nightmode) this.enableNightmode();
  82. else this.disableNightmode();
  83. },
  84. activityWatch(activityWatch) {
  85. if (activityWatch) aw.enable();
  86. else aw.disable();
  87. },
  88. aModalIsOpen(aModalIsOpen) {
  89. if (aModalIsOpen) {
  90. this.scrollPosition = {
  91. x: window.scrollX,
  92. y: window.scrollY
  93. };
  94. this.aModalIsOpen2 = true;
  95. } else {
  96. this.aModalIsOpen2 = false;
  97. setTimeout(() => {
  98. window.scrollTo(
  99. this.scrollPosition.x,
  100. this.scrollPosition.y
  101. );
  102. }, 10);
  103. }
  104. }
  105. },
  106. async mounted() {
  107. window
  108. .matchMedia("(prefers-color-scheme: dark)")
  109. .addEventListener("change", e => {
  110. if (e.matches === !this.nightmode) this.toggleNightMode();
  111. });
  112. if (!this.loggedIn) {
  113. lofig.get("cookie.SIDname").then(sid => {
  114. this.broadcastChannel = new BroadcastChannel(
  115. `${sid}.user_login`
  116. );
  117. this.broadcastChannel.onmessage = data => {
  118. if (data) {
  119. this.broadcastChannel.close();
  120. window.location.reload();
  121. }
  122. };
  123. });
  124. }
  125. document.onkeydown = ev => {
  126. const event = ev || window.event;
  127. const { keyCode } = event;
  128. const shift = event.shiftKey;
  129. const ctrl = event.ctrlKey;
  130. const alt = event.altKey;
  131. const identifier = `${keyCode}.${shift}.${ctrl}`;
  132. if (this.keyIsDown === identifier) return;
  133. this.keyIsDown = identifier;
  134. keyboardShortcuts.handleKeyDown(event, keyCode, shift, ctrl, alt);
  135. };
  136. document.onkeyup = () => {
  137. this.keyIsDown = "";
  138. };
  139. // ctrl + alt + n
  140. keyboardShortcuts.registerShortcut("nightmode", {
  141. keyCode: 78,
  142. ctrl: true,
  143. alt: true,
  144. handler: () => this.toggleNightMode()
  145. });
  146. keyboardShortcuts.registerShortcut("closeModal", {
  147. keyCode: 27,
  148. shift: false,
  149. ctrl: false,
  150. handler: () => {
  151. if (Object.keys(this.currentlyActive).length !== 0)
  152. this.closeCurrentModal();
  153. }
  154. });
  155. this.disconnectedMessage = new Toast({
  156. content: "Could not connect to the server.",
  157. persistent: true,
  158. interactable: false
  159. });
  160. this.disconnectedMessage.hide();
  161. ws.onConnect(() => {
  162. this.socketConnected = true;
  163. this.socket.dispatch("users.getPreferences", res => {
  164. if (res.status === "success") {
  165. const { preferences } = res.data;
  166. this.changeAutoSkipDisliked(preferences.autoSkipDisliked);
  167. this.changeNightmode(preferences.nightmode);
  168. this.changeActivityLogPublic(preferences.activityLogPublic);
  169. this.changeAnonymousSongRequests(
  170. preferences.anonymousSongRequests
  171. );
  172. this.changeActivityWatch(preferences.activityWatch);
  173. if (this.nightmode) this.enableNightmode();
  174. else this.disableNightmode();
  175. }
  176. });
  177. this.socket.on("keep.event:user.session.deleted", () =>
  178. window.location.reload()
  179. );
  180. });
  181. ws.onDisconnect(true, () => {
  182. this.socketConnected = false;
  183. });
  184. this.apiDomain = await lofig.get("backend.apiDomain");
  185. this.$router.isReady().then(() => {
  186. if (this.$route.query.err) {
  187. let { err } = this.$route.query;
  188. err = err
  189. .replace(new RegExp("<", "g"), "&lt;")
  190. .replace(new RegExp(">", "g"), "&gt;");
  191. this.$router.push({ query: {} });
  192. new Toast({ content: err, timeout: 20000 });
  193. }
  194. if (this.$route.query.msg) {
  195. let { msg } = this.$route.query;
  196. msg = msg
  197. .replace(new RegExp("<", "g"), "&lt;")
  198. .replace(new RegExp(">", "g"), "&gt;");
  199. this.$router.push({ query: {} });
  200. new Toast({ content: msg, timeout: 20000 });
  201. }
  202. if (localStorage.getItem("github_redirect")) {
  203. this.$router.push(localStorage.getItem("github_redirect"));
  204. localStorage.removeItem("github_redirect");
  205. }
  206. });
  207. if (localStorage.getItem("nightmode") === "true") {
  208. this.changeNightmode(true);
  209. this.enableNightmode();
  210. }
  211. lofig.get("siteSettings.christmas").then(christmas => {
  212. if (christmas) {
  213. this.christmas = true;
  214. this.enableChristmasMode();
  215. }
  216. });
  217. },
  218. methods: {
  219. toggleNightMode() {
  220. localStorage.setItem("nightmode", !this.nightmode);
  221. if (this.loggedIn) {
  222. this.socket.dispatch(
  223. "users.updatePreferences",
  224. { nightmode: !this.nightmode },
  225. res => {
  226. if (res.status !== "success") new Toast(res.message);
  227. }
  228. );
  229. }
  230. this.changeNightmode(!this.nightmode);
  231. },
  232. enableNightmode: () => {
  233. document
  234. .getElementsByTagName("html")[0]
  235. .classList.add("night-mode");
  236. },
  237. disableNightmode: () => {
  238. document
  239. .getElementsByTagName("html")[0]
  240. .classList.remove("night-mode");
  241. },
  242. enableChristmasMode: () => {
  243. document
  244. .getElementsByTagName("html")[0]
  245. .classList.add("christmas-mode");
  246. },
  247. ...mapActions("modalVisibility", ["closeCurrentModal"]),
  248. ...mapActions("user/preferences", [
  249. "changeNightmode",
  250. "changeAutoSkipDisliked",
  251. "changeActivityLogPublic",
  252. "changeAnonymousSongRequests",
  253. "changeActivityWatch"
  254. ])
  255. }
  256. };
  257. </script>
  258. <style lang="scss">
  259. @import "normalize.css/normalize.css";
  260. @import "tippy.js/dist/tippy.css";
  261. @import "tippy.js/animations/scale.css";
  262. :root {
  263. --primary-color: var(--blue);
  264. --blue: rgb(2, 166, 242);
  265. --light-blue: rgb(163, 224, 255);
  266. --dark-blue: rgb(0, 102, 244);
  267. --teal: rgb(0, 209, 178);
  268. --purple: rgb(143, 40, 140);
  269. --light-purple: rgb(170, 141, 216);
  270. --yellow: rgb(241, 196, 15);
  271. --light-pink: rgb(228, 155, 166);
  272. --dark-pink: rgb(234, 72, 97);
  273. --orange: rgb(255, 94, 0);
  274. --dark-orange: rgb(250, 50, 0);
  275. --green: rgb(68, 189, 50);
  276. --red: rgb(231, 77, 60);
  277. --dark-red: rgb(235, 41, 19);
  278. --white: rgb(255, 255, 255);
  279. --black: rgb(0, 0, 0);
  280. --light-grey: rgb(245, 245, 245);
  281. --light-grey-2: rgb(221, 221, 221);
  282. --light-grey-3: rgb(195, 193, 195);
  283. --grey: rgb(107, 107, 107);
  284. --grey-2: rgb(113, 113, 113);
  285. --grey-3: rgb(126, 126, 126);
  286. --dark-grey: rgb(77, 77, 77);
  287. --dark-grey-2: rgb(51, 51, 51);
  288. --dark-grey-3: rgb(34, 34, 34);
  289. --dark-grey-4: rgb(26, 26, 26);
  290. --youtube: rgb(189, 46, 46);
  291. }
  292. .night-mode {
  293. body {
  294. background-color: var(--black) !important;
  295. }
  296. div {
  297. color: var(--light-grey-2);
  298. }
  299. .input,
  300. .textarea,
  301. .select select {
  302. background-color: var(--dark-grey);
  303. border-color: var(--grey-3);
  304. color: var(--white);
  305. &::placeholder {
  306. color: var(--light-grey-3);
  307. }
  308. }
  309. h1,
  310. h2,
  311. h3,
  312. h4,
  313. h5,
  314. h6 {
  315. color: var(--white) !important;
  316. }
  317. p:not(.help),
  318. label,
  319. .label {
  320. color: var(--light-grey-2) !important;
  321. }
  322. .section,
  323. .content {
  324. background-color: var(--dark-grey-3) !important;
  325. }
  326. .content-box,
  327. .step:not(.selected) {
  328. background-color: var(--dark-grey-3) !important;
  329. }
  330. .tippy-box[data-theme~="songActions"] {
  331. background-color: var(--dark-grey);
  332. }
  333. code {
  334. background-color: var(--dark-grey-2) !important;
  335. }
  336. .button.is-dark {
  337. background-color: var(--light-grey) !important;
  338. color: var(--dark-grey-2) !important;
  339. }
  340. }
  341. .christmas-mode {
  342. --primary-color: var(--red);
  343. }
  344. /* inter-regular - latin */
  345. @font-face {
  346. font-family: "Inter";
  347. font-style: normal;
  348. font-weight: 400;
  349. src: url("/fonts/inter-v3-latin-regular.eot"); /* IE9 Compat Modes */
  350. src: local(""),
  351. url("/fonts/inter-v3-latin-regular.eot?#iefix")
  352. format("embedded-opentype"),
  353. /* IE6-IE8 */ url("/fonts/inter-v3-latin-regular.woff2") format("woff2"),
  354. /* Super Modern Browsers */ url("/fonts/inter-v3-latin-regular.woff")
  355. format("woff"),
  356. /* Modern Browsers */ url("/fonts/inter-v3-latin-regular.ttf")
  357. format("truetype"),
  358. /* Safari, Android, iOS */
  359. url("/fonts/inter-v3-latin-regular.svg#Inter") format("svg"); /* Legacy iOS */
  360. }
  361. /* inter-200 - latin */
  362. @font-face {
  363. font-family: "Inter";
  364. font-style: normal;
  365. font-weight: 200;
  366. src: url("/fonts/inter-v3-latin-200.eot"); /* IE9 Compat Modes */
  367. src: local(""),
  368. url("/fonts/inter-v3-latin-200.eot?#iefix") format("embedded-opentype"),
  369. /* IE6-IE8 */ url("/fonts/inter-v3-latin-200.woff2") format("woff2"),
  370. /* Super Modern Browsers */ url("/fonts/inter-v3-latin-200.woff")
  371. format("woff"),
  372. /* Modern Browsers */ url("/fonts/inter-v3-latin-200.ttf")
  373. format("truetype"),
  374. /* Safari, Android, iOS */ url("/fonts/inter-v3-latin-200.svg#Inter")
  375. format("svg"); /* Legacy iOS */
  376. }
  377. /* inter-800 - latin */
  378. @font-face {
  379. font-family: "Inter";
  380. font-style: normal;
  381. font-weight: 800;
  382. src: url("/fonts/inter-v3-latin-800.eot"); /* IE9 Compat Modes */
  383. src: local(""),
  384. url("/fonts/inter-v3-latin-800.eot?#iefix") format("embedded-opentype"),
  385. /* IE6-IE8 */ url("/fonts/inter-v3-latin-800.woff2") format("woff2"),
  386. /* Super Modern Browsers */ url("/fonts/inter-v3-latin-800.woff")
  387. format("woff"),
  388. /* Modern Browsers */ url("/fonts/inter-v3-latin-800.ttf")
  389. format("truetype"),
  390. /* Safari, Android, iOS */ url("/fonts/inter-v3-latin-800.svg#Inter")
  391. format("svg"); /* Legacy iOS */
  392. }
  393. /* inter-600 - latin */
  394. @font-face {
  395. font-family: "Inter";
  396. font-style: normal;
  397. font-weight: 600;
  398. src: url("/fonts/inter-v3-latin-600.eot"); /* IE9 Compat Modes */
  399. src: local(""),
  400. url("/fonts/inter-v3-latin-600.eot?#iefix") format("embedded-opentype"),
  401. /* IE6-IE8 */ url("/fonts/inter-v3-latin-600.woff2") format("woff2"),
  402. /* Super Modern Browsers */ url("/fonts/inter-v3-latin-600.woff")
  403. format("woff"),
  404. /* Modern Browsers */ url("/fonts/inter-v3-latin-600.ttf")
  405. format("truetype"),
  406. /* Safari, Android, iOS */ url("/fonts/inter-v3-latin-600.svg#Inter")
  407. format("svg"); /* Legacy iOS */
  408. }
  409. /* pacifico-regular - latin */
  410. @font-face {
  411. font-family: "Pacifico";
  412. font-style: normal;
  413. font-weight: 400;
  414. src: url("/fonts/pacifico-v17-latin-regular.eot"); /* IE9 Compat Modes */
  415. src: local(""),
  416. url("/fonts/pacifico-v17-latin-regular.eot?#iefix")
  417. format("embedded-opentype"),
  418. /* IE6-IE8 */ url("/fonts/pacifico-v17-latin-regular.woff2")
  419. format("woff2"),
  420. /* Super Modern Browsers */
  421. url("/fonts/pacifico-v17-latin-regular.woff") format("woff"),
  422. /* Modern Browsers */ url("/fonts/pacifico-v17-latin-regular.ttf")
  423. format("truetype"),
  424. /* Safari, Android, iOS */
  425. url("/fonts/pacifico-v17-latin-regular.svg#Pacifico") format("svg"); /* Legacy iOS */
  426. }
  427. @font-face {
  428. font-family: "Material Icons";
  429. font-style: normal;
  430. font-weight: 400;
  431. src: url(/fonts/MaterialIcons-Regular.ttf); /* For IE6-8 */
  432. src: local("Material Icons"), local("MaterialIcons-Regular"),
  433. url(/fonts/MaterialIcons-Regular.ttf) format("truetype");
  434. }
  435. .material-icons {
  436. font-family: "Material Icons";
  437. font-weight: normal;
  438. font-style: normal;
  439. font-size: 24px; /* Preferred icon size */
  440. display: inline-block;
  441. line-height: 1;
  442. text-transform: none;
  443. letter-spacing: normal;
  444. word-wrap: normal;
  445. white-space: nowrap;
  446. direction: ltr;
  447. /* Support for all WebKit browsers. */
  448. -webkit-font-smoothing: antialiased;
  449. /* Support for Safari and Chrome. */
  450. text-rendering: optimizeLegibility;
  451. /* Support for Firefox. */
  452. -moz-osx-font-smoothing: grayscale;
  453. /* Support for IE. */
  454. font-feature-settings: "liga";
  455. }
  456. code {
  457. background-color: var(--light-grey) !important;
  458. color: var(--dark-red) !important;
  459. }
  460. #toasts-container {
  461. z-index: 10000 !important;
  462. .toast {
  463. font-weight: 600;
  464. z-index: 10000 !important;
  465. }
  466. }
  467. html {
  468. overflow: auto !important;
  469. height: 100%;
  470. background-color: inherit;
  471. font-size: 14px;
  472. }
  473. body {
  474. background-color: var(--light-grey);
  475. color: var(--dark-grey);
  476. height: 100%;
  477. line-height: 1.4285714;
  478. font-size: 1rem;
  479. font-family: "Inter", Helvetica, Arial, sans-serif;
  480. }
  481. .app {
  482. min-height: 100vh;
  483. position: relative;
  484. }
  485. #root {
  486. height: 100%;
  487. }
  488. .content-wrapper {
  489. /* padding: 60px 0 calc(230px + 60px) 0; */
  490. padding-top: 60px;
  491. }
  492. .column {
  493. display: flex;
  494. flex: 1 1 0;
  495. flex-direction: column;
  496. padding: 10px;
  497. }
  498. ul {
  499. list-style: none;
  500. margin: 0;
  501. display: block;
  502. }
  503. h1,
  504. h2,
  505. h3,
  506. h4,
  507. h5,
  508. h6 {
  509. font-family: "Inter", Helvetica, Arial, sans-serif;
  510. font-weight: 400;
  511. line-height: 1.1;
  512. a {
  513. font-weight: inherit;
  514. }
  515. }
  516. h1 {
  517. font-size: 4.2rem;
  518. line-height: 110%;
  519. margin: 2.1rem 0 1.68rem 0;
  520. }
  521. h2 {
  522. font-size: 3.56rem;
  523. line-height: 110%;
  524. margin: 1.78rem 0 1.424rem 0;
  525. }
  526. h3 {
  527. font-size: 2.92rem;
  528. line-height: 110%;
  529. margin: 1.46rem 0 1.168rem 0;
  530. }
  531. h4 {
  532. font-size: 2.28rem;
  533. line-height: 110%;
  534. margin: 1.14rem 0 0.912rem 0;
  535. }
  536. h5 {
  537. font-size: 1.64rem;
  538. line-height: 110%;
  539. margin: 0.82rem 0 0.656rem 0;
  540. }
  541. h6 {
  542. font-size: 1rem;
  543. line-height: 110%;
  544. margin: 0.5rem 0 0.4rem 0;
  545. }
  546. .content {
  547. h4 {
  548. line-height: 1.125;
  549. }
  550. }
  551. .thin {
  552. font-weight: 200;
  553. }
  554. .left {
  555. float: left !important;
  556. }
  557. .right {
  558. float: right !important;
  559. }
  560. .white {
  561. background-color: var(--white) !important;
  562. }
  563. .btn-search {
  564. font-size: 14px;
  565. }
  566. a.nav-item.is-tab {
  567. border-bottom: 1px solid transparent;
  568. border-top: 1px solid transparent;
  569. }
  570. .button.is-info {
  571. border-width: 0;
  572. color: var(--white);
  573. }
  574. strong {
  575. color: inherit;
  576. }
  577. hr {
  578. background-color: var(--light-grey-2);
  579. border: none;
  580. height: 1px;
  581. }
  582. p,
  583. button,
  584. input,
  585. select,
  586. textarea {
  587. font-family: "Inter", Helvetica, Arial, sans-serif;
  588. }
  589. input,
  590. select,
  591. textarea {
  592. outline: none;
  593. }
  594. .label {
  595. display: flex;
  596. font-weight: 700;
  597. &:not(:last-child) {
  598. margin-bottom: 5px;
  599. }
  600. }
  601. #page-title {
  602. margin-top: 0;
  603. font-size: 35px;
  604. text-align: center;
  605. }
  606. @media only screen and (min-width: 700px) {
  607. #page-title {
  608. margin: 0;
  609. margin-bottom: 30px;
  610. font-size: 40px;
  611. }
  612. }
  613. @media screen and (min-width: 980px) {
  614. .container {
  615. max-width: 960px;
  616. margin-left: auto;
  617. margin-right: auto;
  618. }
  619. }
  620. @media screen and (min-width: 1180px) {
  621. .container {
  622. max-width: 1200px;
  623. }
  624. }
  625. .upper-container {
  626. height: 100%;
  627. }
  628. .main-container {
  629. height: 100%;
  630. min-height: 100vh;
  631. display: flex;
  632. flex-direction: column;
  633. &.main-container-modal-active {
  634. height: 100% !important;
  635. overflow: hidden !important;
  636. }
  637. > .container {
  638. position: relative;
  639. flex: 1 0 auto;
  640. margin: 0 auto;
  641. max-width: 1200px;
  642. }
  643. }
  644. a {
  645. color: var(--primary-color);
  646. text-decoration: none;
  647. cursor: pointer;
  648. &:hover,
  649. &:focus {
  650. filter: brightness(90%);
  651. }
  652. }
  653. table {
  654. border-collapse: collapse;
  655. width: 100%;
  656. thead {
  657. td {
  658. border-width: 0 0 2px;
  659. }
  660. }
  661. td {
  662. border: 1px solid var(--light-grey-2);
  663. border-width: 0 0 1px;
  664. padding: 8px 10px;
  665. }
  666. tbody {
  667. tr:last-child {
  668. td {
  669. border-bottom-width: 0;
  670. }
  671. }
  672. }
  673. }
  674. img {
  675. max-width: 100%;
  676. }
  677. .absolute-a {
  678. width: 100%;
  679. height: 100%;
  680. position: absolute;
  681. top: 0;
  682. left: 0;
  683. }
  684. .alert {
  685. padding: 20px;
  686. color: var(--white);
  687. background-color: var(--dark-red);
  688. position: fixed;
  689. top: 50px;
  690. right: 50px;
  691. font-size: 2em;
  692. border-radius: 5px;
  693. z-index: 10000000;
  694. }
  695. .night-mode {
  696. .tippy-box {
  697. border: 1px solid var(--light-grey-3);
  698. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
  699. 0 10px 10px rgba(0, 0, 0, 0.22);
  700. background-color: var(--white);
  701. .tippy-content {
  702. color: var(--black);
  703. }
  704. &[data-theme~="songActions"],
  705. &[data-theme~="addToPlaylist"],
  706. &[data-theme~="search"],
  707. &[data-theme~="stationSettings"] {
  708. background-color: var(--dark-grey-2);
  709. border: 0 !important;
  710. }
  711. &[data-theme~="songActions"] {
  712. background-color: var(--dark-grey-2);
  713. border: 0 !important;
  714. i,
  715. a {
  716. color: var(--white);
  717. }
  718. .youtube-icon {
  719. background-color: var(--white);
  720. }
  721. }
  722. &[data-theme~="addToPlaylist"] {
  723. background-color: var(--dark-grey-2);
  724. border: 0 !important;
  725. .nav-dropdown-items {
  726. .nav-item {
  727. background-color: var(--dark-grey);
  728. &:focus {
  729. outline-color: var(--dark-grey);
  730. }
  731. p {
  732. color: var(--white);
  733. }
  734. }
  735. }
  736. }
  737. &[data-theme~="search"] {
  738. background-color: var(--dark-grey-2);
  739. border: 0 !important;
  740. }
  741. }
  742. .tippy-box[data-placement^="top"] {
  743. &[data-theme~="songActions"],
  744. &[data-theme~="addToPlaylist"],
  745. &[data-theme~="search"] {
  746. > .tippy-arrow::before {
  747. border-top-color: var(--dark-grey-2);
  748. }
  749. }
  750. }
  751. .tippy-box[data-placement^="bottom"] {
  752. &[data-theme~="songActions"],
  753. &[data-theme~="addToPlaylist"],
  754. &[data-theme~="search"],
  755. &[data-theme~="stationSettings"] {
  756. > .tippy-arrow::before {
  757. border-bottom-color: var(--dark-grey-2);
  758. }
  759. }
  760. }
  761. .tippy-box[data-placement^="left"] {
  762. &[data-theme~="songActions"],
  763. &[data-theme~="addToPlaylist"],
  764. &[data-theme~="search"] {
  765. > .tippy-arrow::before {
  766. border-left-color: var(--dark-grey-2);
  767. }
  768. }
  769. }
  770. .tippy-box[data-placement^="right"] {
  771. &[data-theme~="songActions"],
  772. &[data-theme~="addToPlaylist"],
  773. &[data-theme~="search"] {
  774. > .tippy-arrow::before {
  775. border-right-color: var(--dark-grey-2);
  776. }
  777. }
  778. }
  779. }
  780. .tippy-box[data-theme~="info"] {
  781. font-size: 12px;
  782. letter-spacing: 1px;
  783. }
  784. .tippy-box[data-theme~="confirm"] {
  785. background-color: var(--dark-red);
  786. border: 0;
  787. .tippy-content {
  788. padding: 0;
  789. }
  790. a {
  791. padding: 15px;
  792. line-height: 30px;
  793. color: var(--white);
  794. border-bottom: 0;
  795. font-size: 15px;
  796. font-weight: 600;
  797. &:hover,
  798. &:focus {
  799. filter: brightness(90%);
  800. }
  801. }
  802. }
  803. .tippy-box[data-theme~="songActions"] {
  804. font-size: 15px;
  805. padding: 5px 10px;
  806. border: 1px solid var(--light-grey-3);
  807. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  808. background-color: var(--white);
  809. .button {
  810. width: 146px;
  811. }
  812. i,
  813. a {
  814. display: inline-block;
  815. cursor: pointer;
  816. color: var(--dark-grey);
  817. vertical-align: middle;
  818. &:hover,
  819. &:focus {
  820. filter: brightness(90%);
  821. }
  822. &:not(:first) {
  823. margin-left: 5px;
  824. }
  825. }
  826. .play-icon,
  827. .added-to-playlist-icon {
  828. color: var(--green);
  829. }
  830. .edit-icon,
  831. .view-icon,
  832. .add-to-playlist-icon,
  833. .add-to-queue-icon {
  834. color: var(--primary-color);
  835. }
  836. .hide-icon {
  837. color: var(--light-grey-3);
  838. }
  839. .stop-icon,
  840. .delete-icon {
  841. color: var(--dark-red);
  842. }
  843. .report-icon {
  844. color: var(--yellow);
  845. }
  846. }
  847. .tippy-box[data-placement^="top"] {
  848. &[data-theme~="songActions"],
  849. &[data-theme~="addToPlaylist"],
  850. &[data-theme~="search"] {
  851. > .tippy-arrow::before {
  852. border-top-color: var(--white);
  853. }
  854. }
  855. &[data-theme~="confirm"] > .tippy-arrow::before {
  856. border-top-color: var(--dark-red);
  857. }
  858. }
  859. .tippy-box[data-placement^="bottom"] {
  860. &[data-theme~="songActions"],
  861. &[data-theme~="addToPlaylist"],
  862. &[data-theme~="stationSettings"],
  863. &[data-theme~="search"] {
  864. > .tippy-arrow::before {
  865. border-bottom-color: var(--white);
  866. }
  867. }
  868. &[data-theme~="confirm"] > .tippy-arrow::before {
  869. border-bottom-color: var(--dark-red);
  870. }
  871. }
  872. .tippy-box[data-placement^="left"] {
  873. &[data-theme~="songActions"],
  874. &[data-theme~="addToPlaylist"],
  875. &[data-theme~="search"] {
  876. > .tippy-arrow::before {
  877. border-left-color: var(--white);
  878. }
  879. }
  880. &[data-theme~="confirm"] > .tippy-arrow::before {
  881. border-left-color: var(--dark-red);
  882. }
  883. }
  884. .tippy-box[data-placement^="right"] {
  885. &[data-theme~="songActions"],
  886. &[data-theme~="addToPlaylist"],
  887. &[data-theme~="search"] {
  888. > .tippy-arrow::before {
  889. border-right-color: var(--white);
  890. }
  891. }
  892. &[data-theme~="confirm"] > .tippy-arrow::before {
  893. border-right-color: var(--dark-red);
  894. }
  895. }
  896. .tippy-box[data-theme~="stationSettings"] {
  897. border: 1px solid var(--light-grey-3);
  898. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  899. background-color: var(--white);
  900. button:not(:last-of-type) {
  901. margin-bottom: 5px;
  902. }
  903. }
  904. .tippy-box[data-theme~="addToPlaylist"] {
  905. font-size: 15px;
  906. padding: 0;
  907. border: 1px solid var(--light-grey-3);
  908. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  909. background-color: var(--white);
  910. color: var(--dark-grey);
  911. width: 350px;
  912. .tippy-content {
  913. padding: 0;
  914. }
  915. .nav-dropdown-items {
  916. max-height: 220px;
  917. overflow-y: auto;
  918. padding: 10px 10px 0 10px;
  919. .nav-item {
  920. width: 100%;
  921. justify-content: flex-start;
  922. border: 0;
  923. padding: 8px 4px;
  924. font-size: 15.5px;
  925. min-height: 36px;
  926. background: var(--light-grey);
  927. border-radius: 5px;
  928. cursor: pointer;
  929. .checkbox-control {
  930. display: flex;
  931. flex-direction: row;
  932. align-items: center;
  933. overflow-wrap: anywhere;
  934. margin: 0 !important;
  935. p {
  936. margin-left: 10px;
  937. }
  938. .switch {
  939. position: relative;
  940. display: inline-block;
  941. flex-shrink: 0;
  942. width: 40px;
  943. height: 24px;
  944. }
  945. .switch input {
  946. opacity: 0;
  947. width: 0;
  948. height: 0;
  949. }
  950. .slider {
  951. width: 100%;
  952. position: absolute;
  953. cursor: pointer;
  954. top: 0;
  955. left: 0;
  956. right: 0;
  957. bottom: 0;
  958. background-color: var(--light-grey-3);
  959. transition: 0.2s;
  960. border-radius: 34px;
  961. }
  962. .slider:before {
  963. position: absolute;
  964. content: "";
  965. height: 16px;
  966. width: 16px;
  967. left: 4px;
  968. bottom: 4px;
  969. background-color: var(--white);
  970. transition: 0.2s;
  971. border-radius: 50%;
  972. }
  973. input:checked + .slider {
  974. background-color: var(--primary-color);
  975. }
  976. input:focus + .slider {
  977. box-shadow: 0 0 1px var(--primary-color);
  978. }
  979. input:checked + .slider:before {
  980. transform: translateX(16px);
  981. }
  982. }
  983. &:focus {
  984. outline-color: var(--light-grey-3);
  985. }
  986. &:not(:last-of-type) {
  987. margin-bottom: 5px;
  988. }
  989. }
  990. }
  991. .tippy-content > span {
  992. display: flex;
  993. flex-direction: column;
  994. button.nav-item {
  995. &:not(:last-of-type) {
  996. margin-bottom: 10px;
  997. }
  998. }
  999. }
  1000. #create-playlist {
  1001. margin: 10px 10px 10px 10px;
  1002. width: unset;
  1003. }
  1004. }
  1005. .tippy-box[data-theme~="search"] {
  1006. font-size: 15px;
  1007. padding: 0;
  1008. border: 1px solid var(--light-grey-3);
  1009. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  1010. background-color: var(--white);
  1011. color: var(--dark-grey);
  1012. width: 300px;
  1013. .tippy-content {
  1014. padding: 0;
  1015. & > span {
  1016. display: flex;
  1017. flex-direction: column;
  1018. padding: 5px;
  1019. .control {
  1020. margin-bottom: 0 !important;
  1021. }
  1022. }
  1023. }
  1024. }
  1025. .has-text-centered {
  1026. text-align: center;
  1027. }
  1028. .select {
  1029. position: relative;
  1030. &:after {
  1031. content: " ";
  1032. border: 1.5px solid var(--primary-color);
  1033. border-right: 0;
  1034. border-top: 0;
  1035. height: 7px;
  1036. pointer-events: none;
  1037. position: absolute;
  1038. transform: rotate(-45deg);
  1039. width: 7px;
  1040. margin-top: -6px;
  1041. right: 16px;
  1042. top: 50%;
  1043. }
  1044. select {
  1045. height: 36px;
  1046. background-color: var(--white);
  1047. border: 1px solid var(--light-grey-2);
  1048. color: var(--dark-grey-2);
  1049. appearance: none;
  1050. border-radius: 3px;
  1051. font-size: 14px;
  1052. line-height: 24px;
  1053. padding-left: 8px;
  1054. position: relative;
  1055. padding-right: 36px;
  1056. cursor: pointer;
  1057. }
  1058. }
  1059. .button:focus,
  1060. .button:active {
  1061. border-color: var(--light-grey-2) !important;
  1062. }
  1063. .input:focus,
  1064. .input:active,
  1065. .textarea:focus,
  1066. .textarea:active,
  1067. .select select:focus,
  1068. .select select:active {
  1069. border-color: var(--primary-color) !important;
  1070. }
  1071. button.delete:focus {
  1072. background-color: rgba(10, 10, 10, 0.3);
  1073. }
  1074. .tag {
  1075. padding-right: 6px !important;
  1076. }
  1077. #tab-selection,
  1078. .tab-selection {
  1079. overflow-x: auto;
  1080. .button {
  1081. white-space: nowrap;
  1082. }
  1083. }
  1084. .table {
  1085. background-color: var(--white);
  1086. color: var(--dark-grey);
  1087. width: 100%;
  1088. border-collapse: collapse;
  1089. border-spacing: 0;
  1090. border-radius: 5px;
  1091. thead th {
  1092. padding: 5px 10px;
  1093. text-align: left;
  1094. font-weight: 600;
  1095. color: var(--grey-3);
  1096. }
  1097. tr {
  1098. &:nth-child(even) {
  1099. background-color: #fafafa;
  1100. }
  1101. &:hover,
  1102. &:focus {
  1103. background-color: var(--light-grey);
  1104. }
  1105. }
  1106. }
  1107. .button {
  1108. border: 1px solid var(--light-grey-2);
  1109. background-color: var(--white);
  1110. color: var(--dark-grey-2);
  1111. border-radius: 3px;
  1112. line-height: 24px;
  1113. align-items: center;
  1114. display: inline-flex;
  1115. font-size: 14px;
  1116. padding-left: 10px;
  1117. padding-right: 10px;
  1118. justify-content: center;
  1119. cursor: pointer;
  1120. user-select: none;
  1121. white-space: nowrap;
  1122. &:hover,
  1123. &:focus {
  1124. filter: brightness(95%);
  1125. }
  1126. &.is-success {
  1127. background-color: var(--green) !important;
  1128. border-width: 0;
  1129. color: var(--white);
  1130. }
  1131. &.is-primary {
  1132. background-color: var(--primary-color) !important;
  1133. border-width: 0;
  1134. color: var(--white);
  1135. }
  1136. &.is-danger {
  1137. background-color: var(--dark-red) !important;
  1138. border-width: 0;
  1139. color: var(--white);
  1140. }
  1141. &.is-info {
  1142. background-color: var(--primary-color) !important;
  1143. border-width: 0;
  1144. color: var(--white);
  1145. }
  1146. &.is-warning {
  1147. background-color: var(--yellow) !important;
  1148. border-width: 0;
  1149. color: rgba(0, 0, 0, 0.7);
  1150. }
  1151. &.is-dark {
  1152. background-color: var(--dark-grey-2);
  1153. border-width: 0;
  1154. color: var(--light-grey);
  1155. }
  1156. &.is-fullwidth {
  1157. display: flex;
  1158. width: 100%;
  1159. }
  1160. }
  1161. .input,
  1162. .textarea {
  1163. width: 100%;
  1164. padding-left: 8px;
  1165. padding-right: 8px;
  1166. line-height: 24px;
  1167. font-size: 14px;
  1168. border-radius: 3px;
  1169. box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
  1170. border: 1px solid var(--light-grey-2);
  1171. }
  1172. .input,
  1173. .button {
  1174. height: 36px;
  1175. }
  1176. .textarea {
  1177. display: block;
  1178. line-height: 1.2;
  1179. padding: 10px;
  1180. max-height: 600px;
  1181. min-height: 120px;
  1182. min-width: 100%;
  1183. resize: vertical;
  1184. }
  1185. .icon {
  1186. height: 24px;
  1187. width: 24px;
  1188. line-height: 24px;
  1189. margin-left: 4px;
  1190. margin-right: -2px;
  1191. }
  1192. .fadein-helpbox-enter-active {
  1193. transition-duration: 0.3s;
  1194. transition-timing-function: ease-in;
  1195. }
  1196. .fadein-helpbox-leave-active {
  1197. transition-duration: 0.3s;
  1198. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  1199. }
  1200. .fadein-helpbox-enter-to,
  1201. .fadein-helpbox-leave {
  1202. max-height: 100px;
  1203. overflow: hidden;
  1204. }
  1205. .fadein-helpbox-enter,
  1206. .fadein-helpbox-leave-to {
  1207. overflow: hidden;
  1208. max-height: 0;
  1209. }
  1210. .control {
  1211. margin-bottom: 5px !important;
  1212. &.is-grouped {
  1213. display: flex;
  1214. }
  1215. &.is-expanded {
  1216. flex: 1;
  1217. }
  1218. &.has-addons {
  1219. display: flex;
  1220. .button {
  1221. border-radius: 0;
  1222. margin-right: -1px;
  1223. &:first-child {
  1224. border-radius: 3px 0 0 3px;
  1225. }
  1226. &:last-child {
  1227. border-radius: 0 3px 3px 0;
  1228. padding-left: 10px;
  1229. }
  1230. }
  1231. .input {
  1232. margin-right: -1px;
  1233. &:first-child {
  1234. border-radius: 3px 0 0 3px;
  1235. }
  1236. }
  1237. }
  1238. }
  1239. .input-with-button {
  1240. .control {
  1241. margin-right: 0px !important;
  1242. }
  1243. input,
  1244. select {
  1245. width: 100%;
  1246. height: 36px;
  1247. border-radius: 3px 0 0 3px;
  1248. border-right: 0;
  1249. border-color: var(--light-grey-3);
  1250. }
  1251. .button {
  1252. height: 36px;
  1253. border-radius: 0 3px 3px 0;
  1254. }
  1255. }
  1256. .page-title {
  1257. margin: 0 0 50px 0;
  1258. }
  1259. .material-icons {
  1260. user-select: none;
  1261. -webkit-user-select: none;
  1262. }
  1263. .icon-with-button {
  1264. margin-right: 3px;
  1265. font-size: 18px;
  1266. }
  1267. .verified-song {
  1268. font-size: 17px;
  1269. color: var(--primary-color);
  1270. }
  1271. .section-title,
  1272. h4.section-title {
  1273. font-size: 26px;
  1274. font-weight: 600;
  1275. margin: 0px;
  1276. }
  1277. .section-description {
  1278. font-size: 16px;
  1279. font-weight: 400;
  1280. margin-bottom: 10px !important;
  1281. }
  1282. .section-horizontal-rule {
  1283. margin: 15px 0 30px 0;
  1284. }
  1285. .section-margin-bottom {
  1286. height: 30px;
  1287. }
  1288. .margin-top-zero {
  1289. margin-top: 0 !important;
  1290. }
  1291. .margin-bottom-zero {
  1292. margin-bottom: 0 !important;
  1293. }
  1294. /** Universial items e.g. playlist items, queue items, activity items */
  1295. .item-draggable {
  1296. cursor: move;
  1297. }
  1298. .universal-item {
  1299. display: flex;
  1300. flex-direction: row;
  1301. flex-grow: 1;
  1302. align-items: center;
  1303. justify-content: space-between;
  1304. padding: 7.5px;
  1305. border: 1px solid var(--light-grey-3);
  1306. border-radius: 3px;
  1307. overflow: hidden;
  1308. .item-thumbnail {
  1309. width: 65px;
  1310. height: 65px;
  1311. margin: -7.5px;
  1312. border-radius: 3px 0 0 3px;
  1313. }
  1314. .item-title {
  1315. font-size: 20px;
  1316. overflow: hidden;
  1317. text-overflow: ellipsis;
  1318. white-space: nowrap;
  1319. }
  1320. .item-description {
  1321. font-size: 14px;
  1322. overflow: hidden;
  1323. text-overflow: ellipsis;
  1324. white-space: nowrap;
  1325. }
  1326. .universal-item-actions {
  1327. display: flex;
  1328. flex-direction: row;
  1329. margin-left: 10px;
  1330. justify-content: center;
  1331. @media screen and (max-width: 800px) {
  1332. flex-wrap: wrap;
  1333. }
  1334. .action-dropdown-icon {
  1335. display: flex;
  1336. color: var(--primary-color);
  1337. }
  1338. .icons-group {
  1339. display: flex;
  1340. align-items: center;
  1341. a {
  1342. padding: 0;
  1343. }
  1344. }
  1345. .button {
  1346. width: 146px;
  1347. }
  1348. i,
  1349. span {
  1350. cursor: pointer;
  1351. &:not(:first-child) {
  1352. margin-left: 5px;
  1353. }
  1354. }
  1355. .play-icon,
  1356. .added-to-playlist-icon {
  1357. color: var(--green);
  1358. }
  1359. .edit-icon,
  1360. .view-icon,
  1361. .add-to-playlist-icon,
  1362. .add-to-queue-icon {
  1363. color: var(--primary-color);
  1364. }
  1365. .hide-icon {
  1366. color: var(--light-grey-3);
  1367. }
  1368. .stop-icon,
  1369. .delete-icon {
  1370. color: var(--dark-red);
  1371. }
  1372. .report-icon {
  1373. color: var(--yellow);
  1374. }
  1375. }
  1376. }
  1377. .save-button-mixin {
  1378. min-width: 200px;
  1379. &:disabled {
  1380. background-color: var(--light-grey) !important;
  1381. color: var(--black);
  1382. }
  1383. }
  1384. .save-button-transition-enter-active {
  1385. transition: all 0.1s ease;
  1386. }
  1387. .save-button-transition-enter {
  1388. transform: translateX(20px);
  1389. opacity: 0;
  1390. }
  1391. .youtube-icon {
  1392. margin-right: 3px;
  1393. height: 20px;
  1394. width: 20px;
  1395. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  1396. mask: url("/assets/social/youtube.svg") no-repeat center;
  1397. background-color: var(--youtube);
  1398. }
  1399. #forgot-password {
  1400. justify-content: flex-start;
  1401. margin: 5px 0;
  1402. }
  1403. .steps-fade-leave-active {
  1404. display: none;
  1405. }
  1406. .steps-fade-enter-active,
  1407. .steps-fade-leave-active {
  1408. transition: all 0.3s ease;
  1409. }
  1410. .steps-fade-enter-from,
  1411. .steps-fade-leave-to {
  1412. opacity: 0;
  1413. }
  1414. .skip-step {
  1415. background-color: var(--grey-3);
  1416. color: var(--white);
  1417. }
  1418. #steps {
  1419. display: flex;
  1420. align-items: center;
  1421. justify-content: center;
  1422. height: 50px;
  1423. margin-top: 36px;
  1424. @media screen and (max-width: 300px) {
  1425. display: none;
  1426. }
  1427. .step {
  1428. display: flex;
  1429. align-items: center;
  1430. justify-content: center;
  1431. border-radius: 100%;
  1432. border: 1px solid var(--dark-grey);
  1433. min-width: 50px;
  1434. min-height: 50px;
  1435. background-color: var(--white);
  1436. font-size: 30px;
  1437. user-select: none;
  1438. &.selected {
  1439. background-color: var(--primary-color);
  1440. color: var(--white) !important;
  1441. border: 0;
  1442. }
  1443. }
  1444. .divider {
  1445. display: flex;
  1446. justify-content: center;
  1447. width: 180px;
  1448. height: 1px;
  1449. background-color: var(--dark-grey);
  1450. }
  1451. }
  1452. /* This class is used for content-box in ResetPassword, but not in RemoveAccount. This is because ResetPassword uses transitions and RemoveAccount does not */
  1453. .content-box-wrapper {
  1454. margin-top: 90px;
  1455. width: 100%;
  1456. display: flex;
  1457. align-items: center;
  1458. }
  1459. .content-box {
  1460. border-radius: 3px;
  1461. background-color: var(--white);
  1462. border: 1px solid var(--dark-grey);
  1463. max-width: 580px;
  1464. padding: 40px;
  1465. flex: 1;
  1466. @media screen and (max-width: 300px) {
  1467. margin-top: 30px;
  1468. padding: 30px 20px;
  1469. }
  1470. }
  1471. .content-box-optional-helper {
  1472. margin-top: 15px;
  1473. color: var(--primary-color);
  1474. font-size: 16px;
  1475. a {
  1476. color: var(--primary-color);
  1477. }
  1478. }
  1479. .content-box-title {
  1480. font-size: 25px;
  1481. color: var(--black);
  1482. }
  1483. .content-box-description {
  1484. font-size: 14px;
  1485. color: var(--dark-grey);
  1486. }
  1487. .content-box-inputs {
  1488. margin-top: 35px;
  1489. .input-with-button {
  1490. .button {
  1491. width: 105px;
  1492. }
  1493. @media screen and (max-width: 450px) {
  1494. flex-direction: column;
  1495. }
  1496. }
  1497. label {
  1498. font-size: 11px;
  1499. }
  1500. #change-password-button {
  1501. margin-top: 36px;
  1502. width: 175px;
  1503. }
  1504. }
  1505. #password-visibility-container {
  1506. display: flex;
  1507. align-items: center;
  1508. a {
  1509. width: 0;
  1510. margin-left: -30px;
  1511. z-index: 0;
  1512. top: 2px;
  1513. position: relative;
  1514. color: var(--light-grey-1);
  1515. }
  1516. }
  1517. .news-item {
  1518. font-family: "Karla";
  1519. border-radius: 5px;
  1520. padding: 20px;
  1521. border: unset !important;
  1522. box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
  1523. * {
  1524. font-family: Karla, Arial, sans-serif;
  1525. font-size: 16px;
  1526. }
  1527. h1 {
  1528. font-size: 40px;
  1529. &:first-of-type {
  1530. margin-top: 0;
  1531. }
  1532. }
  1533. h2 {
  1534. font-size: 30px;
  1535. }
  1536. h3 {
  1537. font-size: 25px;
  1538. }
  1539. h4,
  1540. h5,
  1541. h6 {
  1542. font-size: 20px;
  1543. }
  1544. h1,
  1545. h2,
  1546. h3,
  1547. h4,
  1548. h5,
  1549. h6 {
  1550. margin: 10px 0;
  1551. }
  1552. ul {
  1553. list-style: unset;
  1554. }
  1555. li {
  1556. margin-left: 30px;
  1557. }
  1558. blockquote {
  1559. padding: 0px 15px;
  1560. color: var(--grey-2);
  1561. border-left: 0.25em solid var(--light-grey-2);
  1562. }
  1563. code {
  1564. font-style: italic;
  1565. }
  1566. }
  1567. .checkbox-control {
  1568. display: flex;
  1569. flex-direction: row;
  1570. align-items: center;
  1571. p {
  1572. margin-left: 10px;
  1573. }
  1574. .switch {
  1575. position: relative;
  1576. display: inline-block;
  1577. flex-shrink: 0;
  1578. width: 40px;
  1579. height: 24px;
  1580. }
  1581. .switch input {
  1582. opacity: 0;
  1583. width: 0;
  1584. height: 0;
  1585. }
  1586. .slider {
  1587. position: absolute;
  1588. cursor: pointer;
  1589. top: 0;
  1590. left: 0;
  1591. right: 0;
  1592. bottom: 0;
  1593. background-color: var(--light-grey-3);
  1594. transition: 0.2s;
  1595. border-radius: 34px;
  1596. }
  1597. .slider:before {
  1598. position: absolute;
  1599. content: "";
  1600. height: 16px;
  1601. width: 16px;
  1602. left: 4px;
  1603. bottom: 4px;
  1604. background-color: var(--white);
  1605. transition: 0.2s;
  1606. border-radius: 50%;
  1607. }
  1608. input:checked + .slider {
  1609. background-color: var(--primary-color);
  1610. }
  1611. input:focus + .slider {
  1612. box-shadow: 0 0 1px var(--primary-color);
  1613. }
  1614. input:checked + .slider:before {
  1615. transform: translateX(16px);
  1616. }
  1617. }
  1618. html {
  1619. &,
  1620. * {
  1621. scrollbar-color: var(--primary-color) transparent;
  1622. scrollbar-width: thin;
  1623. }
  1624. &.night-mode {
  1625. &,
  1626. * {
  1627. scrollbar-color: var(--light-grey) transparent !important;
  1628. }
  1629. &::-webkit-scrollbar-thumb,
  1630. ::-webkit-scrollbar-thumb {
  1631. background-color: var(--light-grey);
  1632. }
  1633. }
  1634. }
  1635. ::-webkit-scrollbar {
  1636. height: 10px;
  1637. width: 10px;
  1638. }
  1639. ::-webkit-scrollbar-track {
  1640. background-color: transparent;
  1641. }
  1642. ::-webkit-scrollbar-thumb {
  1643. background-color: var(--primary-color);
  1644. }
  1645. ::-webkit-scrollbar-corner {
  1646. background-color: transparent;
  1647. }
  1648. </style>