App.vue 32 KB

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