App.vue 33 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855
  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("body")[0]
  235. .classList.add("night-mode");
  236. },
  237. disableNightmode: () => {
  238. document
  239. .getElementsByTagName("body")[0]
  240. .classList.remove("night-mode");
  241. },
  242. enableChristmasMode: () => {
  243. document
  244. .getElementsByTagName("body")[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. div {
  294. color: var(--light-grey-2);
  295. }
  296. .input,
  297. .textarea,
  298. .select select {
  299. background-color: var(--dark-grey);
  300. border-color: var(--grey-3);
  301. color: var(--white);
  302. &::placeholder {
  303. color: var(--light-grey-3);
  304. }
  305. }
  306. h1,
  307. h2,
  308. h3,
  309. h4,
  310. h5,
  311. h6 {
  312. color: var(--white) !important;
  313. }
  314. p:not(.help),
  315. label,
  316. .label {
  317. color: var(--light-grey-2) !important;
  318. }
  319. .section,
  320. .content {
  321. background-color: var(--dark-grey-3) !important;
  322. }
  323. .content-box,
  324. .step:not(.selected) {
  325. background-color: var(--dark-grey-3) !important;
  326. }
  327. .tippy-box[data-theme~="songActions"] {
  328. background-color: var(--dark-grey);
  329. }
  330. code {
  331. background-color: var(--dark-grey-2) !important;
  332. }
  333. .button.is-dark {
  334. background-color: var(--light-grey) !important;
  335. color: var(--dark-grey-2) !important;
  336. }
  337. }
  338. .christmas-mode {
  339. --primary-color: var(--red);
  340. }
  341. /* inter-regular - latin */
  342. @font-face {
  343. font-family: "Inter";
  344. font-style: normal;
  345. font-weight: 400;
  346. src: url("/fonts/inter-v3-latin-regular.eot"); /* IE9 Compat Modes */
  347. src: local(""),
  348. url("/fonts/inter-v3-latin-regular.eot?#iefix")
  349. format("embedded-opentype"),
  350. /* IE6-IE8 */ url("/fonts/inter-v3-latin-regular.woff2") format("woff2"),
  351. /* Super Modern Browsers */ url("/fonts/inter-v3-latin-regular.woff")
  352. format("woff"),
  353. /* Modern Browsers */ url("/fonts/inter-v3-latin-regular.ttf")
  354. format("truetype"),
  355. /* Safari, Android, iOS */
  356. url("/fonts/inter-v3-latin-regular.svg#Inter") format("svg"); /* Legacy iOS */
  357. }
  358. /* inter-200 - latin */
  359. @font-face {
  360. font-family: "Inter";
  361. font-style: normal;
  362. font-weight: 200;
  363. src: url("/fonts/inter-v3-latin-200.eot"); /* IE9 Compat Modes */
  364. src: local(""),
  365. url("/fonts/inter-v3-latin-200.eot?#iefix") format("embedded-opentype"),
  366. /* IE6-IE8 */ url("/fonts/inter-v3-latin-200.woff2") format("woff2"),
  367. /* Super Modern Browsers */ url("/fonts/inter-v3-latin-200.woff")
  368. format("woff"),
  369. /* Modern Browsers */ url("/fonts/inter-v3-latin-200.ttf")
  370. format("truetype"),
  371. /* Safari, Android, iOS */ url("/fonts/inter-v3-latin-200.svg#Inter")
  372. format("svg"); /* Legacy iOS */
  373. }
  374. /* inter-800 - latin */
  375. @font-face {
  376. font-family: "Inter";
  377. font-style: normal;
  378. font-weight: 800;
  379. src: url("/fonts/inter-v3-latin-800.eot"); /* IE9 Compat Modes */
  380. src: local(""),
  381. url("/fonts/inter-v3-latin-800.eot?#iefix") format("embedded-opentype"),
  382. /* IE6-IE8 */ url("/fonts/inter-v3-latin-800.woff2") format("woff2"),
  383. /* Super Modern Browsers */ url("/fonts/inter-v3-latin-800.woff")
  384. format("woff"),
  385. /* Modern Browsers */ url("/fonts/inter-v3-latin-800.ttf")
  386. format("truetype"),
  387. /* Safari, Android, iOS */ url("/fonts/inter-v3-latin-800.svg#Inter")
  388. format("svg"); /* Legacy iOS */
  389. }
  390. /* inter-600 - latin */
  391. @font-face {
  392. font-family: "Inter";
  393. font-style: normal;
  394. font-weight: 600;
  395. src: url("/fonts/inter-v3-latin-600.eot"); /* IE9 Compat Modes */
  396. src: local(""),
  397. url("/fonts/inter-v3-latin-600.eot?#iefix") format("embedded-opentype"),
  398. /* IE6-IE8 */ url("/fonts/inter-v3-latin-600.woff2") format("woff2"),
  399. /* Super Modern Browsers */ url("/fonts/inter-v3-latin-600.woff")
  400. format("woff"),
  401. /* Modern Browsers */ url("/fonts/inter-v3-latin-600.ttf")
  402. format("truetype"),
  403. /* Safari, Android, iOS */ url("/fonts/inter-v3-latin-600.svg#Inter")
  404. format("svg"); /* Legacy iOS */
  405. }
  406. /* pacifico-regular - latin */
  407. @font-face {
  408. font-family: "Pacifico";
  409. font-style: normal;
  410. font-weight: 400;
  411. src: url("/fonts/pacifico-v17-latin-regular.eot"); /* IE9 Compat Modes */
  412. src: local(""),
  413. url("/fonts/pacifico-v17-latin-regular.eot?#iefix")
  414. format("embedded-opentype"),
  415. /* IE6-IE8 */ url("/fonts/pacifico-v17-latin-regular.woff2")
  416. format("woff2"),
  417. /* Super Modern Browsers */
  418. url("/fonts/pacifico-v17-latin-regular.woff") format("woff"),
  419. /* Modern Browsers */ url("/fonts/pacifico-v17-latin-regular.ttf")
  420. format("truetype"),
  421. /* Safari, Android, iOS */
  422. url("/fonts/pacifico-v17-latin-regular.svg#Pacifico") format("svg"); /* Legacy iOS */
  423. }
  424. @font-face {
  425. font-family: "Material Icons";
  426. font-style: normal;
  427. font-weight: 400;
  428. src: url(/fonts/MaterialIcons-Regular.ttf); /* For IE6-8 */
  429. src: local("Material Icons"), local("MaterialIcons-Regular"),
  430. url(/fonts/MaterialIcons-Regular.ttf) format("truetype");
  431. }
  432. .material-icons {
  433. font-family: "Material Icons";
  434. font-weight: normal;
  435. font-style: normal;
  436. font-size: 24px; /* Preferred icon size */
  437. display: inline-block;
  438. line-height: 1;
  439. text-transform: none;
  440. letter-spacing: normal;
  441. word-wrap: normal;
  442. white-space: nowrap;
  443. direction: ltr;
  444. /* Support for all WebKit browsers. */
  445. -webkit-font-smoothing: antialiased;
  446. /* Support for Safari and Chrome. */
  447. text-rendering: optimizeLegibility;
  448. /* Support for Firefox. */
  449. -moz-osx-font-smoothing: grayscale;
  450. /* Support for IE. */
  451. font-feature-settings: "liga";
  452. }
  453. code {
  454. background-color: var(--light-grey) !important;
  455. color: var(--dark-red) !important;
  456. }
  457. body.night-mode {
  458. background-color: var(--black) !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~="stationSettings"] {
  707. background-color: var(--dark-grey-2);
  708. border: 0 !important;
  709. }
  710. &[data-theme~="songActions"] {
  711. background-color: var(--dark-grey-2);
  712. border: 0 !important;
  713. i,
  714. a {
  715. color: var(--white);
  716. }
  717. .youtube-icon {
  718. background-color: var(--white);
  719. }
  720. }
  721. &[data-theme~="addToPlaylist"] {
  722. background-color: var(--dark-grey-2);
  723. border: 0 !important;
  724. .nav-dropdown-items {
  725. .nav-item {
  726. background-color: var(--dark-grey);
  727. &:focus {
  728. outline-color: var(--dark-grey);
  729. }
  730. p {
  731. color: var(--white);
  732. }
  733. }
  734. }
  735. }
  736. }
  737. .tippy-box[data-placement^="top"] {
  738. &[data-theme~="songActions"],
  739. &[data-theme~="addToPlaylist"] {
  740. > .tippy-arrow::before {
  741. border-top-color: var(--dark-grey-2);
  742. }
  743. }
  744. }
  745. .tippy-box[data-placement^="bottom"] {
  746. &[data-theme~="songActions"],
  747. &[data-theme~="addToPlaylist"],
  748. &[data-theme~="stationSettings"] {
  749. > .tippy-arrow::before {
  750. border-bottom-color: var(--dark-grey-2);
  751. }
  752. }
  753. }
  754. .tippy-box[data-placement^="left"] {
  755. &[data-theme~="songActions"],
  756. &[data-theme~="addToPlaylist"] {
  757. > .tippy-arrow::before {
  758. border-left-color: var(--dark-grey-2);
  759. }
  760. }
  761. }
  762. .tippy-box[data-placement^="right"] {
  763. &[data-theme~="songActions"],
  764. &[data-theme~="addToPlaylist"] {
  765. > .tippy-arrow::before {
  766. border-right-color: var(--dark-grey-2);
  767. }
  768. }
  769. }
  770. }
  771. .tippy-box[data-theme~="info"] {
  772. font-size: 12px;
  773. letter-spacing: 1px;
  774. }
  775. .tippy-box[data-theme~="confirm"] {
  776. background-color: var(--dark-red);
  777. border: 0;
  778. .tippy-content {
  779. padding: 0;
  780. }
  781. a {
  782. padding: 15px;
  783. line-height: 30px;
  784. color: var(--white);
  785. border-bottom: 0;
  786. font-size: 15px;
  787. font-weight: 600;
  788. &:hover,
  789. &:focus {
  790. filter: brightness(90%);
  791. }
  792. }
  793. }
  794. .tippy-box[data-theme~="songActions"] {
  795. font-size: 15px;
  796. padding: 5px 10px;
  797. border: 1px solid var(--light-grey-3);
  798. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  799. background-color: var(--white);
  800. .button {
  801. width: 146px;
  802. }
  803. i,
  804. a {
  805. display: inline-block;
  806. cursor: pointer;
  807. color: var(--dark-grey);
  808. vertical-align: middle;
  809. &:hover,
  810. &:focus {
  811. filter: brightness(90%);
  812. }
  813. &:not(:first) {
  814. margin-left: 5px;
  815. }
  816. }
  817. .play-icon,
  818. .added-to-playlist-icon {
  819. color: var(--green);
  820. }
  821. .edit-icon,
  822. .view-icon,
  823. .add-to-playlist-icon,
  824. .add-to-queue-icon {
  825. color: var(--primary-color);
  826. }
  827. .hide-icon {
  828. color: var(--light-grey-3);
  829. }
  830. .stop-icon,
  831. .delete-icon {
  832. color: var(--dark-red);
  833. }
  834. .report-icon {
  835. color: var(--yellow);
  836. }
  837. }
  838. .tippy-box[data-placement^="top"] {
  839. &[data-theme~="songActions"],
  840. &[data-theme~="addToPlaylist"] {
  841. > .tippy-arrow::before {
  842. border-top-color: var(--white);
  843. }
  844. }
  845. &[data-theme~="confirm"] > .tippy-arrow::before {
  846. border-top-color: var(--dark-red);
  847. }
  848. }
  849. .tippy-box[data-placement^="bottom"] {
  850. &[data-theme~="songActions"],
  851. &[data-theme~="addToPlaylist"],
  852. &[data-theme~="stationSettings"] {
  853. > .tippy-arrow::before {
  854. border-bottom-color: var(--white);
  855. }
  856. }
  857. &[data-theme~="confirm"] > .tippy-arrow::before {
  858. border-bottom-color: var(--dark-red);
  859. }
  860. }
  861. .tippy-box[data-placement^="left"] {
  862. &[data-theme~="songActions"],
  863. &[data-theme~="addToPlaylist"] {
  864. > .tippy-arrow::before {
  865. border-left-color: var(--white);
  866. }
  867. }
  868. &[data-theme~="confirm"] > .tippy-arrow::before {
  869. border-left-color: var(--dark-red);
  870. }
  871. }
  872. .tippy-box[data-placement^="right"] {
  873. &[data-theme~="songActions"],
  874. &[data-theme~="addToPlaylist"] {
  875. > .tippy-arrow::before {
  876. border-right-color: var(--white);
  877. }
  878. }
  879. &[data-theme~="confirm"] > .tippy-arrow::before {
  880. border-right-color: var(--dark-red);
  881. }
  882. }
  883. .tippy-box[data-theme~="stationSettings"] {
  884. border: 1px solid var(--light-grey-3);
  885. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  886. background-color: var(--white);
  887. button:not(:last-of-type) {
  888. margin-bottom: 5px;
  889. }
  890. }
  891. .tippy-box[data-theme~="addToPlaylist"] {
  892. font-size: 15px;
  893. padding: 0;
  894. border: 1px solid var(--light-grey-3);
  895. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  896. background-color: var(--white);
  897. color: var(--dark-grey);
  898. width: 350px;
  899. .tippy-content {
  900. padding: 0;
  901. }
  902. .nav-dropdown-items {
  903. max-height: 220px;
  904. overflow-y: auto;
  905. padding: 10px 10px 0 10px;
  906. .nav-item {
  907. width: 100%;
  908. justify-content: flex-start;
  909. border: 0;
  910. padding: 8px 4px;
  911. font-size: 15.5px;
  912. min-height: 36px;
  913. background: var(--light-grey);
  914. border-radius: 5px;
  915. cursor: pointer;
  916. .checkbox-control {
  917. display: flex;
  918. flex-direction: row;
  919. align-items: center;
  920. overflow-wrap: anywhere;
  921. margin: 0 !important;
  922. p {
  923. margin-left: 10px;
  924. }
  925. .switch {
  926. position: relative;
  927. display: inline-block;
  928. flex-shrink: 0;
  929. width: 40px;
  930. height: 24px;
  931. }
  932. .switch input {
  933. opacity: 0;
  934. width: 0;
  935. height: 0;
  936. }
  937. .slider {
  938. width: 100%;
  939. position: absolute;
  940. cursor: pointer;
  941. top: 0;
  942. left: 0;
  943. right: 0;
  944. bottom: 0;
  945. background-color: var(--light-grey-3);
  946. transition: 0.2s;
  947. border-radius: 34px;
  948. }
  949. .slider:before {
  950. position: absolute;
  951. content: "";
  952. height: 16px;
  953. width: 16px;
  954. left: 4px;
  955. bottom: 4px;
  956. background-color: var(--white);
  957. transition: 0.2s;
  958. border-radius: 50%;
  959. }
  960. input:checked + .slider {
  961. background-color: var(--primary-color);
  962. }
  963. input:focus + .slider {
  964. box-shadow: 0 0 1px var(--primary-color);
  965. }
  966. input:checked + .slider:before {
  967. transform: translateX(16px);
  968. }
  969. }
  970. &:focus {
  971. outline-color: var(--light-grey-3);
  972. }
  973. &:not(:last-of-type) {
  974. margin-bottom: 5px;
  975. }
  976. }
  977. }
  978. .tippy-content > span {
  979. display: flex;
  980. flex-direction: column;
  981. button.nav-item {
  982. &:not(:last-of-type) {
  983. margin-bottom: 10px;
  984. }
  985. }
  986. }
  987. #create-playlist {
  988. margin: 10px 10px 10px 10px;
  989. width: unset;
  990. }
  991. }
  992. .has-text-centered {
  993. text-align: center;
  994. }
  995. .select {
  996. position: relative;
  997. &:after {
  998. content: " ";
  999. border: 1.5px solid var(--primary-color);
  1000. border-right: 0;
  1001. border-top: 0;
  1002. height: 7px;
  1003. pointer-events: none;
  1004. position: absolute;
  1005. transform: rotate(-45deg);
  1006. width: 7px;
  1007. margin-top: -6px;
  1008. right: 16px;
  1009. top: 50%;
  1010. }
  1011. select {
  1012. height: 36px;
  1013. background-color: var(--white);
  1014. border: 1px solid var(--light-grey-2);
  1015. color: var(--dark-grey-2);
  1016. appearance: none;
  1017. border-radius: 3px;
  1018. font-size: 14px;
  1019. line-height: 24px;
  1020. padding-left: 8px;
  1021. position: relative;
  1022. padding-right: 36px;
  1023. cursor: pointer;
  1024. }
  1025. }
  1026. .button:focus,
  1027. .button:active {
  1028. border-color: var(--light-grey-2) !important;
  1029. }
  1030. .input:focus,
  1031. .input:active,
  1032. .textarea:focus,
  1033. .textarea:active,
  1034. .select select:focus,
  1035. .select select:active {
  1036. border-color: var(--primary-color) !important;
  1037. }
  1038. button.delete:focus {
  1039. background-color: rgba(10, 10, 10, 0.3);
  1040. }
  1041. .tag {
  1042. padding-right: 6px !important;
  1043. }
  1044. #tab-selection,
  1045. .tab-selection {
  1046. overflow-x: auto;
  1047. .button {
  1048. white-space: nowrap;
  1049. }
  1050. }
  1051. .table {
  1052. background-color: var(--white);
  1053. color: var(--dark-grey);
  1054. width: 100%;
  1055. border-collapse: collapse;
  1056. border-spacing: 0;
  1057. border-radius: 5px;
  1058. thead th {
  1059. padding: 5px 10px;
  1060. text-align: left;
  1061. font-weight: 600;
  1062. color: var(--grey-3);
  1063. }
  1064. tr {
  1065. &:nth-child(even) {
  1066. background-color: #fafafa;
  1067. }
  1068. &:hover,
  1069. &:focus {
  1070. background-color: var(--light-grey);
  1071. }
  1072. }
  1073. }
  1074. .button {
  1075. border: 1px solid var(--light-grey-2);
  1076. background-color: var(--white);
  1077. color: var(--dark-grey-2);
  1078. border-radius: 3px;
  1079. line-height: 24px;
  1080. align-items: center;
  1081. display: inline-flex;
  1082. font-size: 14px;
  1083. padding-left: 10px;
  1084. padding-right: 10px;
  1085. justify-content: center;
  1086. cursor: pointer;
  1087. user-select: none;
  1088. white-space: nowrap;
  1089. &:hover,
  1090. &:focus {
  1091. filter: brightness(95%);
  1092. }
  1093. &.is-success {
  1094. background-color: var(--green) !important;
  1095. border-width: 0;
  1096. color: var(--white);
  1097. }
  1098. &.is-primary {
  1099. background-color: var(--primary-color) !important;
  1100. border-width: 0;
  1101. color: var(--white);
  1102. }
  1103. &.is-danger {
  1104. background-color: var(--dark-red) !important;
  1105. border-width: 0;
  1106. color: var(--white);
  1107. }
  1108. &.is-info {
  1109. background-color: var(--primary-color) !important;
  1110. border-width: 0;
  1111. color: var(--white);
  1112. }
  1113. &.is-warning {
  1114. background-color: var(--yellow) !important;
  1115. border-width: 0;
  1116. color: rgba(0, 0, 0, 0.7);
  1117. }
  1118. &.is-dark {
  1119. background-color: var(--dark-grey-2);
  1120. border-width: 0;
  1121. color: var(--light-grey);
  1122. }
  1123. &.is-fullwidth {
  1124. display: flex;
  1125. width: 100%;
  1126. }
  1127. }
  1128. .input,
  1129. .textarea {
  1130. width: 100%;
  1131. padding-left: 8px;
  1132. padding-right: 8px;
  1133. line-height: 24px;
  1134. font-size: 14px;
  1135. border-radius: 3px;
  1136. box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
  1137. border: 1px solid var(--light-grey-2);
  1138. }
  1139. .input,
  1140. .button {
  1141. height: 36px;
  1142. }
  1143. .textarea {
  1144. display: block;
  1145. line-height: 1.2;
  1146. padding: 10px;
  1147. max-height: 600px;
  1148. min-height: 120px;
  1149. min-width: 100%;
  1150. resize: vertical;
  1151. }
  1152. .icon {
  1153. height: 24px;
  1154. width: 24px;
  1155. line-height: 24px;
  1156. margin-left: 4px;
  1157. margin-right: -2px;
  1158. }
  1159. .fadein-helpbox-enter-active {
  1160. transition-duration: 0.3s;
  1161. transition-timing-function: ease-in;
  1162. }
  1163. .fadein-helpbox-leave-active {
  1164. transition-duration: 0.3s;
  1165. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  1166. }
  1167. .fadein-helpbox-enter-to,
  1168. .fadein-helpbox-leave {
  1169. max-height: 100px;
  1170. overflow: hidden;
  1171. }
  1172. .fadein-helpbox-enter,
  1173. .fadein-helpbox-leave-to {
  1174. overflow: hidden;
  1175. max-height: 0;
  1176. }
  1177. .control {
  1178. margin-bottom: 5px !important;
  1179. &.is-grouped {
  1180. display: flex;
  1181. }
  1182. &.is-expanded {
  1183. flex: 1;
  1184. }
  1185. &.has-addons {
  1186. display: flex;
  1187. .button {
  1188. border-radius: 0;
  1189. margin-right: -1px;
  1190. &:first-child {
  1191. border-radius: 3px 0 0 3px;
  1192. }
  1193. &:last-child {
  1194. border-radius: 0 3px 3px 0;
  1195. padding-left: 10px;
  1196. }
  1197. }
  1198. .input {
  1199. margin-right: -1px;
  1200. &:first-child {
  1201. border-radius: 3px 0 0 3px;
  1202. }
  1203. }
  1204. }
  1205. }
  1206. .input-with-button {
  1207. .control {
  1208. margin-right: 0px !important;
  1209. }
  1210. input,
  1211. select {
  1212. width: 100%;
  1213. height: 36px;
  1214. border-radius: 3px 0 0 3px;
  1215. border-right: 0;
  1216. border-color: var(--light-grey-3);
  1217. }
  1218. .button {
  1219. height: 36px;
  1220. border-radius: 0 3px 3px 0;
  1221. }
  1222. }
  1223. .page-title {
  1224. margin: 0 0 50px 0;
  1225. }
  1226. .material-icons {
  1227. user-select: none;
  1228. -webkit-user-select: none;
  1229. }
  1230. .icon-with-button {
  1231. margin-right: 3px;
  1232. font-size: 18px;
  1233. }
  1234. .verified-song {
  1235. font-size: 17px;
  1236. color: var(--primary-color);
  1237. }
  1238. .section-title,
  1239. h4.section-title {
  1240. font-size: 26px;
  1241. font-weight: 600;
  1242. margin: 0px;
  1243. }
  1244. .section-description {
  1245. font-size: 16px;
  1246. font-weight: 400;
  1247. margin-bottom: 10px !important;
  1248. }
  1249. .section-horizontal-rule {
  1250. margin: 15px 0 30px 0;
  1251. }
  1252. .section-margin-bottom {
  1253. height: 30px;
  1254. }
  1255. .margin-top-zero {
  1256. margin-top: 0 !important;
  1257. }
  1258. .margin-bottom-zero {
  1259. margin-bottom: 0 !important;
  1260. }
  1261. /** Universial items e.g. playlist items, queue items, activity items */
  1262. .item-draggable {
  1263. cursor: move;
  1264. }
  1265. .universal-item {
  1266. display: flex;
  1267. flex-direction: row;
  1268. flex-grow: 1;
  1269. align-items: center;
  1270. justify-content: space-between;
  1271. padding: 7.5px;
  1272. border: 1px solid var(--light-grey-3);
  1273. border-radius: 3px;
  1274. overflow: hidden;
  1275. .item-thumbnail {
  1276. width: 65px;
  1277. height: 65px;
  1278. margin: -7.5px;
  1279. border-radius: 3px 0 0 3px;
  1280. }
  1281. .item-title {
  1282. font-size: 20px;
  1283. overflow: hidden;
  1284. text-overflow: ellipsis;
  1285. white-space: nowrap;
  1286. }
  1287. .item-description {
  1288. font-size: 14px;
  1289. overflow: hidden;
  1290. text-overflow: ellipsis;
  1291. white-space: nowrap;
  1292. }
  1293. .universal-item-actions {
  1294. display: flex;
  1295. flex-direction: row;
  1296. margin-left: 10px;
  1297. justify-content: center;
  1298. @media screen and (max-width: 800px) {
  1299. flex-wrap: wrap;
  1300. }
  1301. .action-dropdown-icon {
  1302. display: flex;
  1303. color: var(--primary-color);
  1304. }
  1305. .icons-group {
  1306. display: flex;
  1307. align-items: center;
  1308. a {
  1309. padding: 0;
  1310. }
  1311. }
  1312. .button {
  1313. width: 146px;
  1314. }
  1315. i,
  1316. span {
  1317. cursor: pointer;
  1318. &:not(:first-child) {
  1319. margin-left: 5px;
  1320. }
  1321. }
  1322. .play-icon,
  1323. .added-to-playlist-icon {
  1324. color: var(--green);
  1325. }
  1326. .edit-icon,
  1327. .view-icon,
  1328. .add-to-playlist-icon,
  1329. .add-to-queue-icon {
  1330. color: var(--primary-color);
  1331. }
  1332. .hide-icon {
  1333. color: var(--light-grey-3);
  1334. }
  1335. .stop-icon,
  1336. .delete-icon {
  1337. color: var(--dark-red);
  1338. }
  1339. .report-icon {
  1340. color: var(--yellow);
  1341. }
  1342. }
  1343. }
  1344. .save-button-mixin {
  1345. min-width: 200px;
  1346. &:disabled {
  1347. background-color: var(--light-grey) !important;
  1348. color: var(--black);
  1349. }
  1350. }
  1351. .save-button-transition-enter-active {
  1352. transition: all 0.1s ease;
  1353. }
  1354. .save-button-transition-enter {
  1355. transform: translateX(20px);
  1356. opacity: 0;
  1357. }
  1358. .youtube-icon {
  1359. margin-right: 3px;
  1360. height: 20px;
  1361. width: 20px;
  1362. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  1363. mask: url("/assets/social/youtube.svg") no-repeat center;
  1364. background-color: var(--youtube);
  1365. }
  1366. #forgot-password {
  1367. justify-content: flex-start;
  1368. margin: 5px 0;
  1369. }
  1370. .steps-fade-leave-active {
  1371. display: none;
  1372. }
  1373. .steps-fade-enter-active,
  1374. .steps-fade-leave-active {
  1375. transition: all 0.3s ease;
  1376. }
  1377. .steps-fade-enter-from,
  1378. .steps-fade-leave-to {
  1379. opacity: 0;
  1380. }
  1381. .skip-step {
  1382. background-color: var(--grey-3);
  1383. color: var(--white);
  1384. }
  1385. #steps {
  1386. display: flex;
  1387. align-items: center;
  1388. justify-content: center;
  1389. height: 50px;
  1390. margin-top: 36px;
  1391. @media screen and (max-width: 300px) {
  1392. display: none;
  1393. }
  1394. .step {
  1395. display: flex;
  1396. align-items: center;
  1397. justify-content: center;
  1398. border-radius: 100%;
  1399. border: 1px solid var(--dark-grey);
  1400. min-width: 50px;
  1401. min-height: 50px;
  1402. background-color: var(--white);
  1403. font-size: 30px;
  1404. user-select: none;
  1405. &.selected {
  1406. background-color: var(--primary-color);
  1407. color: var(--white) !important;
  1408. border: 0;
  1409. }
  1410. }
  1411. .divider {
  1412. display: flex;
  1413. justify-content: center;
  1414. width: 180px;
  1415. height: 1px;
  1416. background-color: var(--dark-grey);
  1417. }
  1418. }
  1419. /* This class is used for content-box in ResetPassword, but not in RemoveAccount. This is because ResetPassword uses transitions and RemoveAccount does not */
  1420. .content-box-wrapper {
  1421. margin-top: 90px;
  1422. width: 100%;
  1423. display: flex;
  1424. align-items: center;
  1425. }
  1426. .content-box {
  1427. border-radius: 3px;
  1428. background-color: var(--white);
  1429. border: 1px solid var(--dark-grey);
  1430. max-width: 580px;
  1431. padding: 40px;
  1432. flex: 1;
  1433. @media screen and (max-width: 300px) {
  1434. margin-top: 30px;
  1435. padding: 30px 20px;
  1436. }
  1437. }
  1438. .content-box-optional-helper {
  1439. margin-top: 15px;
  1440. color: var(--primary-color);
  1441. font-size: 16px;
  1442. a {
  1443. color: var(--primary-color);
  1444. }
  1445. }
  1446. .content-box-title {
  1447. font-size: 25px;
  1448. color: var(--black);
  1449. }
  1450. .content-box-description {
  1451. font-size: 14px;
  1452. color: var(--dark-grey);
  1453. }
  1454. .content-box-inputs {
  1455. margin-top: 35px;
  1456. .input-with-button {
  1457. .button {
  1458. width: 105px;
  1459. }
  1460. @media screen and (max-width: 450px) {
  1461. flex-direction: column;
  1462. }
  1463. }
  1464. label {
  1465. font-size: 11px;
  1466. }
  1467. #change-password-button {
  1468. margin-top: 36px;
  1469. width: 175px;
  1470. }
  1471. }
  1472. #password-visibility-container {
  1473. display: flex;
  1474. align-items: center;
  1475. a {
  1476. width: 0;
  1477. margin-left: -30px;
  1478. z-index: 0;
  1479. top: 2px;
  1480. position: relative;
  1481. color: var(--light-grey-1);
  1482. }
  1483. }
  1484. .news-item {
  1485. font-family: "Karla";
  1486. border-radius: 5px;
  1487. padding: 20px;
  1488. border: unset !important;
  1489. box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
  1490. * {
  1491. font-family: Karla, Arial, sans-serif;
  1492. font-size: 16px;
  1493. }
  1494. h1 {
  1495. font-size: 40px;
  1496. &:first-of-type {
  1497. margin-top: 0;
  1498. }
  1499. }
  1500. h2 {
  1501. font-size: 30px;
  1502. }
  1503. h3 {
  1504. font-size: 25px;
  1505. }
  1506. h4,
  1507. h5,
  1508. h6 {
  1509. font-size: 20px;
  1510. }
  1511. h1,
  1512. h2,
  1513. h3,
  1514. h4,
  1515. h5,
  1516. h6 {
  1517. margin: 10px 0;
  1518. }
  1519. ul {
  1520. list-style: unset;
  1521. }
  1522. li {
  1523. margin-left: 30px;
  1524. }
  1525. blockquote {
  1526. padding: 0px 15px;
  1527. color: var(--grey-2);
  1528. border-left: 0.25em solid var(--light-grey-2);
  1529. }
  1530. code {
  1531. font-style: italic;
  1532. }
  1533. }
  1534. .checkbox-control {
  1535. display: flex;
  1536. flex-direction: row;
  1537. align-items: center;
  1538. p {
  1539. margin-left: 10px;
  1540. }
  1541. .switch {
  1542. position: relative;
  1543. display: inline-block;
  1544. flex-shrink: 0;
  1545. width: 40px;
  1546. height: 24px;
  1547. }
  1548. .switch input {
  1549. opacity: 0;
  1550. width: 0;
  1551. height: 0;
  1552. }
  1553. .slider {
  1554. position: absolute;
  1555. cursor: pointer;
  1556. top: 0;
  1557. left: 0;
  1558. right: 0;
  1559. bottom: 0;
  1560. background-color: var(--light-grey-3);
  1561. transition: 0.2s;
  1562. border-radius: 34px;
  1563. }
  1564. .slider:before {
  1565. position: absolute;
  1566. content: "";
  1567. height: 16px;
  1568. width: 16px;
  1569. left: 4px;
  1570. bottom: 4px;
  1571. background-color: var(--white);
  1572. transition: 0.2s;
  1573. border-radius: 50%;
  1574. }
  1575. input:checked + .slider {
  1576. background-color: var(--primary-color);
  1577. }
  1578. input:focus + .slider {
  1579. box-shadow: 0 0 1px var(--primary-color);
  1580. }
  1581. input:checked + .slider:before {
  1582. transform: translateX(16px);
  1583. }
  1584. }
  1585. </style>