App.vue 34 KB

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