App.vue 31 KB

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