App.vue 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938
  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: 100% !important;
  1013. max-width: 1000px !important;
  1014. max-height: calc(100vh - 300px);
  1015. overflow-y: auto;
  1016. .tippy-content {
  1017. padding: 0;
  1018. & > span {
  1019. display: flex;
  1020. flex-direction: column;
  1021. padding: 5px;
  1022. .control {
  1023. margin-bottom: 0 !important;
  1024. }
  1025. }
  1026. }
  1027. }
  1028. .has-text-centered {
  1029. text-align: center;
  1030. }
  1031. .select {
  1032. position: relative;
  1033. &:after {
  1034. content: " ";
  1035. border: 1.5px solid var(--primary-color);
  1036. border-right: 0;
  1037. border-top: 0;
  1038. height: 7px;
  1039. pointer-events: none;
  1040. position: absolute;
  1041. transform: rotate(-45deg);
  1042. width: 7px;
  1043. margin-top: -6px;
  1044. right: 16px;
  1045. top: 50%;
  1046. }
  1047. select {
  1048. height: 36px;
  1049. background-color: var(--white);
  1050. border: 1px solid var(--light-grey-2);
  1051. color: var(--dark-grey-2);
  1052. appearance: none;
  1053. border-radius: 3px;
  1054. font-size: 14px;
  1055. line-height: 24px;
  1056. padding-left: 8px;
  1057. position: relative;
  1058. padding-right: 36px;
  1059. cursor: pointer;
  1060. }
  1061. }
  1062. .button:focus,
  1063. .button:active {
  1064. border-color: var(--light-grey-2) !important;
  1065. }
  1066. .input:focus,
  1067. .input:active,
  1068. .textarea:focus,
  1069. .textarea:active,
  1070. .select select:focus,
  1071. .select select:active {
  1072. border-color: var(--primary-color) !important;
  1073. }
  1074. button.delete:focus {
  1075. background-color: rgba(10, 10, 10, 0.3);
  1076. }
  1077. .tag {
  1078. padding-right: 6px !important;
  1079. }
  1080. #tab-selection,
  1081. .tab-selection {
  1082. overflow-x: auto;
  1083. .button {
  1084. white-space: nowrap;
  1085. }
  1086. }
  1087. .table {
  1088. background-color: var(--white);
  1089. color: var(--dark-grey);
  1090. width: 100%;
  1091. border-collapse: collapse;
  1092. border-spacing: 0;
  1093. border-radius: 5px;
  1094. thead th {
  1095. padding: 5px 10px;
  1096. text-align: left;
  1097. font-weight: 600;
  1098. color: var(--grey-3);
  1099. }
  1100. tr {
  1101. &:nth-child(even) {
  1102. background-color: #fafafa;
  1103. }
  1104. &:hover,
  1105. &:focus {
  1106. background-color: var(--light-grey);
  1107. }
  1108. }
  1109. }
  1110. .button {
  1111. border: 1px solid var(--light-grey-2);
  1112. background-color: var(--white);
  1113. color: var(--dark-grey-2);
  1114. border-radius: 3px;
  1115. line-height: 24px;
  1116. align-items: center;
  1117. display: inline-flex;
  1118. font-size: 14px;
  1119. padding-left: 10px;
  1120. padding-right: 10px;
  1121. justify-content: center;
  1122. cursor: pointer;
  1123. user-select: none;
  1124. white-space: nowrap;
  1125. &:hover,
  1126. &:focus {
  1127. filter: brightness(95%);
  1128. }
  1129. &.is-success {
  1130. background-color: var(--green) !important;
  1131. border-width: 0;
  1132. color: var(--white);
  1133. }
  1134. &.is-primary {
  1135. background-color: var(--primary-color) !important;
  1136. border-width: 0;
  1137. color: var(--white);
  1138. }
  1139. &.is-danger {
  1140. background-color: var(--dark-red) !important;
  1141. border-width: 0;
  1142. color: var(--white);
  1143. }
  1144. &.is-info {
  1145. background-color: var(--primary-color) !important;
  1146. border-width: 0;
  1147. color: var(--white);
  1148. }
  1149. &.is-warning {
  1150. background-color: var(--yellow) !important;
  1151. border-width: 0;
  1152. color: rgba(0, 0, 0, 0.7);
  1153. }
  1154. &.is-dark {
  1155. background-color: var(--dark-grey-2);
  1156. border-width: 0;
  1157. color: var(--light-grey);
  1158. }
  1159. &.is-fullwidth {
  1160. display: flex;
  1161. width: 100%;
  1162. }
  1163. &.disabled {
  1164. filter: grayscale(1);
  1165. cursor: not-allowed;
  1166. }
  1167. }
  1168. .input,
  1169. .textarea {
  1170. width: 100%;
  1171. padding-left: 8px;
  1172. padding-right: 8px;
  1173. line-height: 24px;
  1174. font-size: 14px;
  1175. border-radius: 3px;
  1176. box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
  1177. border: 1px solid var(--light-grey-2);
  1178. }
  1179. .input,
  1180. .button {
  1181. height: 36px;
  1182. }
  1183. .textarea {
  1184. display: block;
  1185. line-height: 1.2;
  1186. padding: 10px;
  1187. max-height: 600px;
  1188. min-height: 120px;
  1189. min-width: 100%;
  1190. resize: vertical;
  1191. }
  1192. .icon {
  1193. height: 24px;
  1194. width: 24px;
  1195. line-height: 24px;
  1196. margin-left: 4px;
  1197. margin-right: -2px;
  1198. }
  1199. .fadein-helpbox-enter-active {
  1200. transition-duration: 0.3s;
  1201. transition-timing-function: ease-in;
  1202. }
  1203. .fadein-helpbox-leave-active {
  1204. transition-duration: 0.3s;
  1205. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  1206. }
  1207. .fadein-helpbox-enter-to,
  1208. .fadein-helpbox-leave {
  1209. max-height: 100px;
  1210. overflow: hidden;
  1211. }
  1212. .fadein-helpbox-enter,
  1213. .fadein-helpbox-leave-to {
  1214. overflow: hidden;
  1215. max-height: 0;
  1216. }
  1217. .control {
  1218. margin-bottom: 5px !important;
  1219. &.is-grouped {
  1220. display: flex;
  1221. }
  1222. &.is-expanded {
  1223. flex: 1;
  1224. }
  1225. &.has-addons {
  1226. display: flex;
  1227. .button {
  1228. border-radius: 0;
  1229. margin-right: -1px;
  1230. &:first-child {
  1231. border-radius: 3px 0 0 3px;
  1232. }
  1233. &:last-child {
  1234. border-radius: 0 3px 3px 0;
  1235. padding-left: 10px;
  1236. }
  1237. }
  1238. .input {
  1239. margin-right: -1px;
  1240. &:first-child {
  1241. border-radius: 3px 0 0 3px;
  1242. }
  1243. }
  1244. }
  1245. }
  1246. .input-with-button {
  1247. .control {
  1248. margin-right: 0px !important;
  1249. }
  1250. input,
  1251. select {
  1252. width: 100%;
  1253. height: 36px;
  1254. border-radius: 3px 0 0 3px;
  1255. border-right: 0;
  1256. border-color: var(--light-grey-3);
  1257. }
  1258. .button {
  1259. height: 36px;
  1260. border-radius: 0 3px 3px 0;
  1261. }
  1262. }
  1263. .page-title {
  1264. margin: 0 0 50px 0;
  1265. }
  1266. .material-icons {
  1267. user-select: none;
  1268. -webkit-user-select: none;
  1269. }
  1270. .icon-with-button {
  1271. margin-right: 3px;
  1272. font-size: 18px;
  1273. }
  1274. .verified-song {
  1275. font-size: 17px;
  1276. color: var(--primary-color);
  1277. }
  1278. .section-title,
  1279. h4.section-title {
  1280. font-size: 26px;
  1281. font-weight: 600;
  1282. margin: 0px;
  1283. }
  1284. .section-description {
  1285. font-size: 16px;
  1286. font-weight: 400;
  1287. margin-bottom: 10px !important;
  1288. }
  1289. .section-horizontal-rule {
  1290. margin: 15px 0 30px 0;
  1291. }
  1292. .section-margin-bottom {
  1293. height: 30px;
  1294. }
  1295. .margin-top-zero {
  1296. margin-top: 0 !important;
  1297. }
  1298. .margin-bottom-zero {
  1299. margin-bottom: 0 !important;
  1300. }
  1301. /** Universial items e.g. playlist items, queue items, activity items */
  1302. .item-draggable {
  1303. cursor: move;
  1304. }
  1305. .universal-item {
  1306. display: flex;
  1307. flex-direction: row;
  1308. flex-grow: 1;
  1309. align-items: center;
  1310. justify-content: space-between;
  1311. padding: 7.5px;
  1312. border: 1px solid var(--light-grey-3);
  1313. border-radius: 3px;
  1314. overflow: hidden;
  1315. .item-thumbnail {
  1316. width: 65px;
  1317. height: 65px;
  1318. margin: -7.5px;
  1319. border-radius: 3px 0 0 3px;
  1320. }
  1321. .item-title {
  1322. font-size: 20px;
  1323. overflow: hidden;
  1324. text-overflow: ellipsis;
  1325. white-space: nowrap;
  1326. }
  1327. .item-description {
  1328. font-size: 14px;
  1329. overflow: hidden;
  1330. text-overflow: ellipsis;
  1331. white-space: nowrap;
  1332. }
  1333. .universal-item-actions {
  1334. display: flex;
  1335. flex-direction: row;
  1336. margin-left: 10px;
  1337. justify-content: center;
  1338. @media screen and (max-width: 800px) {
  1339. flex-wrap: wrap;
  1340. }
  1341. .action-dropdown-icon {
  1342. display: flex;
  1343. color: var(--primary-color);
  1344. }
  1345. .icons-group {
  1346. display: flex;
  1347. align-items: center;
  1348. a {
  1349. padding: 0;
  1350. }
  1351. }
  1352. .button {
  1353. width: 146px;
  1354. }
  1355. i,
  1356. span {
  1357. cursor: pointer;
  1358. &:not(:first-child) {
  1359. margin-left: 5px;
  1360. }
  1361. }
  1362. .play-icon,
  1363. .added-to-playlist-icon {
  1364. color: var(--green);
  1365. }
  1366. .edit-icon,
  1367. .view-icon,
  1368. .add-to-playlist-icon,
  1369. .add-to-queue-icon {
  1370. color: var(--primary-color);
  1371. }
  1372. .hide-icon {
  1373. color: var(--light-grey-3);
  1374. }
  1375. .stop-icon,
  1376. .delete-icon {
  1377. color: var(--dark-red);
  1378. }
  1379. .report-icon {
  1380. color: var(--yellow);
  1381. }
  1382. }
  1383. }
  1384. .save-button-mixin {
  1385. min-width: 200px;
  1386. &:disabled {
  1387. background-color: var(--light-grey) !important;
  1388. color: var(--black);
  1389. }
  1390. }
  1391. .save-button-transition-enter-active {
  1392. transition: all 0.1s ease;
  1393. }
  1394. .save-button-transition-enter {
  1395. transform: translateX(20px);
  1396. opacity: 0;
  1397. }
  1398. .youtube-icon {
  1399. margin-right: 3px;
  1400. height: 20px;
  1401. width: 20px;
  1402. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  1403. mask: url("/assets/social/youtube.svg") no-repeat center;
  1404. background-color: var(--youtube);
  1405. }
  1406. #forgot-password {
  1407. justify-content: flex-start;
  1408. margin: 5px 0;
  1409. }
  1410. .steps-fade-leave-active {
  1411. display: none;
  1412. }
  1413. .steps-fade-enter-active,
  1414. .steps-fade-leave-active {
  1415. transition: all 0.3s ease;
  1416. }
  1417. .steps-fade-enter-from,
  1418. .steps-fade-leave-to {
  1419. opacity: 0;
  1420. }
  1421. .skip-step {
  1422. background-color: var(--grey-3);
  1423. color: var(--white);
  1424. }
  1425. #steps {
  1426. display: flex;
  1427. align-items: center;
  1428. justify-content: center;
  1429. height: 50px;
  1430. margin-top: 36px;
  1431. @media screen and (max-width: 300px) {
  1432. display: none;
  1433. }
  1434. .step {
  1435. display: flex;
  1436. align-items: center;
  1437. justify-content: center;
  1438. border-radius: 100%;
  1439. border: 1px solid var(--dark-grey);
  1440. min-width: 50px;
  1441. min-height: 50px;
  1442. background-color: var(--white);
  1443. font-size: 30px;
  1444. user-select: none;
  1445. &.selected {
  1446. background-color: var(--primary-color);
  1447. color: var(--white) !important;
  1448. border: 0;
  1449. }
  1450. }
  1451. .divider {
  1452. display: flex;
  1453. justify-content: center;
  1454. width: 180px;
  1455. height: 1px;
  1456. background-color: var(--dark-grey);
  1457. }
  1458. }
  1459. /* This class is used for content-box in ResetPassword, but not in RemoveAccount. This is because ResetPassword uses transitions and RemoveAccount does not */
  1460. .content-box-wrapper {
  1461. margin-top: 90px;
  1462. width: 100%;
  1463. display: flex;
  1464. align-items: center;
  1465. }
  1466. .content-box {
  1467. border-radius: 3px;
  1468. background-color: var(--white);
  1469. border: 1px solid var(--dark-grey);
  1470. max-width: 580px;
  1471. padding: 40px;
  1472. flex: 1;
  1473. @media screen and (max-width: 300px) {
  1474. margin-top: 30px;
  1475. padding: 30px 20px;
  1476. }
  1477. }
  1478. .content-box-optional-helper {
  1479. margin-top: 15px;
  1480. color: var(--primary-color);
  1481. font-size: 16px;
  1482. a {
  1483. color: var(--primary-color);
  1484. }
  1485. }
  1486. .content-box-title {
  1487. font-size: 25px;
  1488. color: var(--black);
  1489. }
  1490. .content-box-description {
  1491. font-size: 14px;
  1492. color: var(--dark-grey);
  1493. }
  1494. .content-box-inputs {
  1495. margin-top: 35px;
  1496. .input-with-button {
  1497. .button {
  1498. width: 105px;
  1499. }
  1500. @media screen and (max-width: 450px) {
  1501. flex-direction: column;
  1502. }
  1503. }
  1504. label {
  1505. font-size: 11px;
  1506. }
  1507. #change-password-button {
  1508. margin-top: 36px;
  1509. width: 175px;
  1510. }
  1511. }
  1512. #password-visibility-container {
  1513. display: flex;
  1514. align-items: center;
  1515. a {
  1516. width: 0;
  1517. margin-left: -30px;
  1518. z-index: 0;
  1519. top: 2px;
  1520. position: relative;
  1521. color: var(--light-grey-1);
  1522. }
  1523. }
  1524. .news-item {
  1525. font-family: "Karla";
  1526. border-radius: 5px;
  1527. padding: 20px;
  1528. border: unset !important;
  1529. box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
  1530. * {
  1531. font-family: Karla, Arial, sans-serif;
  1532. font-size: 16px;
  1533. }
  1534. h1 {
  1535. font-size: 40px;
  1536. &:first-of-type {
  1537. margin-top: 0;
  1538. }
  1539. }
  1540. h2 {
  1541. font-size: 30px;
  1542. }
  1543. h3 {
  1544. font-size: 25px;
  1545. }
  1546. h4,
  1547. h5,
  1548. h6 {
  1549. font-size: 20px;
  1550. }
  1551. h1,
  1552. h2,
  1553. h3,
  1554. h4,
  1555. h5,
  1556. h6 {
  1557. margin: 10px 0;
  1558. }
  1559. ul {
  1560. list-style: unset;
  1561. }
  1562. li {
  1563. margin-left: 30px;
  1564. }
  1565. blockquote {
  1566. padding: 0px 15px;
  1567. color: var(--grey-2);
  1568. border-left: 0.25em solid var(--light-grey-2);
  1569. }
  1570. code {
  1571. font-style: italic;
  1572. }
  1573. }
  1574. .checkbox-control {
  1575. display: flex;
  1576. flex-direction: row;
  1577. align-items: center;
  1578. p {
  1579. margin-left: 10px;
  1580. }
  1581. .switch {
  1582. position: relative;
  1583. display: inline-block;
  1584. flex-shrink: 0;
  1585. width: 40px;
  1586. height: 24px;
  1587. }
  1588. .switch input {
  1589. opacity: 0;
  1590. width: 0;
  1591. height: 0;
  1592. }
  1593. .slider {
  1594. position: absolute;
  1595. cursor: pointer;
  1596. top: 0;
  1597. left: 0;
  1598. right: 0;
  1599. bottom: 0;
  1600. background-color: var(--light-grey-3);
  1601. transition: 0.2s;
  1602. border-radius: 34px;
  1603. }
  1604. .slider:before {
  1605. position: absolute;
  1606. content: "";
  1607. height: 16px;
  1608. width: 16px;
  1609. left: 4px;
  1610. bottom: 4px;
  1611. background-color: var(--white);
  1612. transition: 0.2s;
  1613. border-radius: 50%;
  1614. }
  1615. input:checked + .slider {
  1616. background-color: var(--primary-color);
  1617. }
  1618. input:focus + .slider {
  1619. box-shadow: 0 0 1px var(--primary-color);
  1620. }
  1621. input:checked + .slider:before {
  1622. transform: translateX(16px);
  1623. }
  1624. }
  1625. html {
  1626. &,
  1627. * {
  1628. scrollbar-color: var(--primary-color) transparent;
  1629. scrollbar-width: thin;
  1630. }
  1631. &.night-mode {
  1632. &,
  1633. * {
  1634. scrollbar-color: var(--light-grey) transparent !important;
  1635. }
  1636. &::-webkit-scrollbar-thumb,
  1637. ::-webkit-scrollbar-thumb {
  1638. background-color: var(--light-grey);
  1639. }
  1640. }
  1641. }
  1642. ::-webkit-scrollbar {
  1643. height: 10px;
  1644. width: 10px;
  1645. }
  1646. ::-webkit-scrollbar-track {
  1647. background-color: transparent;
  1648. }
  1649. ::-webkit-scrollbar-thumb {
  1650. background-color: var(--primary-color);
  1651. }
  1652. ::-webkit-scrollbar-corner {
  1653. background-color: transparent;
  1654. }
  1655. </style>