App.vue 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749
  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. .column {
  455. display: flex;
  456. flex: 1 1 0;
  457. padding: 10px;
  458. }
  459. ul {
  460. list-style: none;
  461. margin: 0;
  462. display: block;
  463. }
  464. ol,
  465. ul {
  466. margin-left: 2em;
  467. }
  468. h1,
  469. h2,
  470. h3,
  471. h4,
  472. h5,
  473. h6 {
  474. font-family: "Inter", Helvetica, Arial, sans-serif;
  475. font-weight: 400;
  476. line-height: 1.1;
  477. a {
  478. font-weight: inherit;
  479. }
  480. }
  481. h1 {
  482. font-size: 4.2rem;
  483. line-height: 110%;
  484. margin: 2.1rem 0 1.68rem 0;
  485. }
  486. h2 {
  487. font-size: 3.56rem;
  488. line-height: 110%;
  489. margin: 1.78rem 0 1.424rem 0;
  490. }
  491. h3 {
  492. font-size: 2.92rem;
  493. line-height: 110%;
  494. margin: 1.46rem 0 1.168rem 0;
  495. }
  496. h4 {
  497. font-size: 2.28rem;
  498. line-height: 110%;
  499. margin: 1.14rem 0 0.912rem 0;
  500. }
  501. h5 {
  502. font-size: 1.64rem;
  503. line-height: 110%;
  504. margin: 0.82rem 0 0.656rem 0;
  505. }
  506. h6 {
  507. font-size: 1rem;
  508. line-height: 110%;
  509. margin: 0.5rem 0 0.4rem 0;
  510. }
  511. .thin {
  512. font-weight: 200;
  513. }
  514. .left {
  515. float: left !important;
  516. }
  517. .right {
  518. float: right !important;
  519. }
  520. .white {
  521. background-color: var(--white) !important;
  522. }
  523. .btn-search {
  524. font-size: 14px;
  525. }
  526. a.nav-item.is-tab {
  527. border-bottom: 1px solid transparent;
  528. border-top: 1px solid transparent;
  529. }
  530. .button.is-info {
  531. border-width: 0;
  532. color: var(--white);
  533. }
  534. strong {
  535. color: inherit;
  536. }
  537. hr {
  538. background-color: var(--light-grey-2);
  539. border: none;
  540. height: 1px;
  541. }
  542. p,
  543. button,
  544. input,
  545. select,
  546. textarea {
  547. font-family: "Inter", Helvetica, Arial, sans-serif;
  548. }
  549. input,
  550. select,
  551. textarea {
  552. outline: none;
  553. }
  554. .label {
  555. display: flex;
  556. font-weight: 700;
  557. &:not(:last-child) {
  558. margin-bottom: 5px;
  559. }
  560. }
  561. #page-title {
  562. margin-top: 0;
  563. font-size: 35px;
  564. text-align: center;
  565. }
  566. @media only screen and (min-width: 700px) {
  567. #page-title {
  568. margin: 0;
  569. margin-bottom: 30px;
  570. font-size: 40px;
  571. }
  572. }
  573. @media screen and (min-width: 980px) {
  574. .container {
  575. max-width: 960px;
  576. margin-left: auto;
  577. margin-right: auto;
  578. }
  579. }
  580. @media screen and (min-width: 1180px) {
  581. .container {
  582. max-width: 1200px;
  583. }
  584. }
  585. .upper-container {
  586. height: 100%;
  587. }
  588. .main-container {
  589. height: 100%;
  590. min-height: 100vh;
  591. display: flex;
  592. flex-direction: column;
  593. &.main-container-modal-active {
  594. height: 100% !important;
  595. overflow: hidden !important;
  596. }
  597. > .container {
  598. position: relative;
  599. flex: 1 0 auto;
  600. margin: 0 auto;
  601. max-width: 1200px;
  602. }
  603. }
  604. a {
  605. color: var(--primary-color);
  606. text-decoration: none;
  607. }
  608. table {
  609. border-collapse: collapse;
  610. width: 100%;
  611. thead {
  612. td {
  613. border-width: 0 0 2px;
  614. }
  615. }
  616. td {
  617. border: 1px solid var(--light-grey-2);
  618. border-width: 0 0 1px;
  619. padding: 8px 10px;
  620. }
  621. tbody {
  622. tr:last-child {
  623. td {
  624. border-bottom-width: 0;
  625. }
  626. }
  627. }
  628. }
  629. img {
  630. max-width: 100%;
  631. }
  632. .absolute-a {
  633. width: 100%;
  634. height: 100%;
  635. position: absolute;
  636. top: 0;
  637. left: 0;
  638. }
  639. .alert {
  640. padding: 20px;
  641. color: var(--white);
  642. background-color: var(--red);
  643. position: fixed;
  644. top: 50px;
  645. right: 50px;
  646. font-size: 2em;
  647. border-radius: 5px;
  648. z-index: 10000000;
  649. }
  650. .night-mode {
  651. .tippy-box {
  652. border: 1px solid var(--light-grey-3);
  653. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
  654. 0 10px 10px rgba(0, 0, 0, 0.22);
  655. background-color: var(--white);
  656. .tippy-content {
  657. color: var(--black);
  658. }
  659. &[data-theme~="songActions"],
  660. &[data-theme~="addToPlaylist"],
  661. &[data-theme~="stationSettings"] {
  662. background-color: var(--dark-grey-2);
  663. border: 0 !important;
  664. }
  665. &[data-theme~="songActions"] {
  666. background-color: var(--dark-grey-2);
  667. border: 0 !important;
  668. i,
  669. a {
  670. color: var(--white);
  671. }
  672. .youtube-icon {
  673. background-color: var(--white);
  674. }
  675. }
  676. &[data-theme~="addToPlaylist"] {
  677. background-color: var(--dark-grey-2);
  678. border: 0 !important;
  679. .nav-dropdown-items {
  680. .nav-item {
  681. background-color: var(--dark-grey);
  682. &:focus {
  683. outline-color: var(--dark-grey);
  684. }
  685. p {
  686. color: var(--white);
  687. }
  688. }
  689. }
  690. }
  691. }
  692. .tippy-box[data-placement^="top"] {
  693. &[data-theme~="songActions"],
  694. &[data-theme~="addToPlaylist"] {
  695. > .tippy-arrow::before {
  696. border-top-color: var(--dark-grey-2);
  697. }
  698. }
  699. }
  700. .tippy-box[data-placement^="bottom"] {
  701. &[data-theme~="songActions"],
  702. &[data-theme~="addToPlaylist"],
  703. &[data-theme~="stationSettings"] {
  704. > .tippy-arrow::before {
  705. border-bottom-color: var(--dark-grey-2);
  706. }
  707. }
  708. }
  709. .tippy-box[data-placement^="left"] {
  710. &[data-theme~="songActions"],
  711. &[data-theme~="addToPlaylist"] {
  712. > .tippy-arrow::before {
  713. border-left-color: var(--dark-grey-2);
  714. }
  715. }
  716. }
  717. .tippy-box[data-placement^="right"] {
  718. &[data-theme~="songActions"],
  719. &[data-theme~="addToPlaylist"] {
  720. > .tippy-arrow::before {
  721. border-right-color: var(--dark-grey-2);
  722. }
  723. }
  724. }
  725. }
  726. .tippy-box[data-theme~="info"] {
  727. font-size: 12px;
  728. letter-spacing: 1px;
  729. }
  730. .tippy-box[data-theme~="confirm"] {
  731. background-color: var(--red);
  732. border: 0;
  733. .tippy-content {
  734. padding: 0;
  735. }
  736. a {
  737. padding: 15px;
  738. line-height: 30px;
  739. color: var(--white);
  740. border-bottom: 0;
  741. font-size: 15px;
  742. font-weight: 600;
  743. &:hover,
  744. &:focus {
  745. filter: brightness(90%);
  746. }
  747. }
  748. }
  749. .tippy-box[data-theme~="songActions"] {
  750. font-size: 15px;
  751. padding: 5px 10px;
  752. border: 1px solid var(--light-grey-3);
  753. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  754. background-color: var(--white);
  755. .button {
  756. width: 146px;
  757. }
  758. i,
  759. a {
  760. display: inline-block;
  761. cursor: pointer;
  762. color: var(--dark-grey);
  763. vertical-align: middle;
  764. &:hover,
  765. &:focus {
  766. filter: brightness(90%);
  767. }
  768. &:not(:first) {
  769. margin-left: 5px;
  770. }
  771. }
  772. .play-icon,
  773. .added-to-playlist-icon {
  774. color: var(--green);
  775. }
  776. .edit-icon,
  777. .view-icon,
  778. .add-to-playlist-icon,
  779. .add-to-queue-icon {
  780. color: var(--primary-color);
  781. }
  782. .hide-icon {
  783. color: var(--light-grey-3);
  784. }
  785. .stop-icon,
  786. .delete-icon {
  787. color: var(--red);
  788. }
  789. .report-icon {
  790. color: var(--yellow);
  791. }
  792. }
  793. .tippy-box[data-placement^="top"] {
  794. &[data-theme~="songActions"],
  795. &[data-theme~="addToPlaylist"] {
  796. > .tippy-arrow::before {
  797. border-top-color: var(--white);
  798. }
  799. }
  800. &[data-theme~="confirm"] > .tippy-arrow::before {
  801. border-top-color: var(--red);
  802. }
  803. }
  804. .tippy-box[data-placement^="bottom"] {
  805. &[data-theme~="songActions"],
  806. &[data-theme~="addToPlaylist"],
  807. &[data-theme~="stationSettings"] {
  808. > .tippy-arrow::before {
  809. border-bottom-color: var(--white);
  810. }
  811. }
  812. &[data-theme~="confirm"] > .tippy-arrow::before {
  813. border-bottom-color: var(--red);
  814. }
  815. }
  816. .tippy-box[data-placement^="left"] {
  817. &[data-theme~="songActions"],
  818. &[data-theme~="addToPlaylist"] {
  819. > .tippy-arrow::before {
  820. border-left-color: var(--white);
  821. }
  822. }
  823. &[data-theme~="confirm"] > .tippy-arrow::before {
  824. border-left-color: var(--red);
  825. }
  826. }
  827. .tippy-box[data-placement^="right"] {
  828. &[data-theme~="songActions"],
  829. &[data-theme~="addToPlaylist"] {
  830. > .tippy-arrow::before {
  831. border-right-color: var(--white);
  832. }
  833. }
  834. &[data-theme~="confirm"] > .tippy-arrow::before {
  835. border-right-color: var(--red);
  836. }
  837. }
  838. .tippy-box[data-theme~="stationSettings"] {
  839. border: 1px solid var(--light-grey-3);
  840. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  841. background-color: var(--white);
  842. button:not(:last-of-type) {
  843. margin-bottom: 5px;
  844. }
  845. }
  846. .tippy-box[data-theme~="addToPlaylist"] {
  847. font-size: 15px;
  848. padding: 0;
  849. border: 1px solid var(--light-grey-3);
  850. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  851. background-color: var(--white);
  852. color: var(--dark-grey);
  853. width: 350px;
  854. .tippy-content {
  855. padding: 0;
  856. }
  857. .nav-dropdown-items {
  858. max-height: 220px;
  859. overflow-y: auto;
  860. padding: 10px 10px 0 10px;
  861. .nav-item {
  862. width: 100%;
  863. justify-content: flex-start;
  864. border: 0;
  865. padding: 8px 4px;
  866. font-size: 15.5px;
  867. min-height: 36px;
  868. background: var(--light-grey);
  869. border-radius: 5px;
  870. cursor: pointer;
  871. .checkbox-control {
  872. display: flex;
  873. flex-direction: row;
  874. align-items: center;
  875. overflow-wrap: anywhere;
  876. margin: 0 !important;
  877. p {
  878. margin-left: 10px;
  879. }
  880. .switch {
  881. position: relative;
  882. display: inline-block;
  883. flex-shrink: 0;
  884. width: 40px;
  885. height: 24px;
  886. }
  887. .switch input {
  888. opacity: 0;
  889. width: 0;
  890. height: 0;
  891. }
  892. .slider {
  893. width: 100%;
  894. position: absolute;
  895. cursor: pointer;
  896. top: 0;
  897. left: 0;
  898. right: 0;
  899. bottom: 0;
  900. background-color: var(--light-grey-3);
  901. transition: 0.2s;
  902. border-radius: 34px;
  903. }
  904. .slider:before {
  905. position: absolute;
  906. content: "";
  907. height: 16px;
  908. width: 16px;
  909. left: 4px;
  910. bottom: 4px;
  911. background-color: var(--white);
  912. transition: 0.2s;
  913. border-radius: 50%;
  914. }
  915. input:checked + .slider {
  916. background-color: var(--primary-color);
  917. }
  918. input:focus + .slider {
  919. box-shadow: 0 0 1px var(--primary-color);
  920. }
  921. input:checked + .slider:before {
  922. transform: translateX(16px);
  923. }
  924. }
  925. &:focus {
  926. outline-color: var(--light-grey-3);
  927. }
  928. &:not(:last-of-type) {
  929. margin-bottom: 5px;
  930. }
  931. }
  932. }
  933. .tippy-content > span {
  934. display: flex;
  935. flex-direction: column;
  936. button.nav-item {
  937. &:not(:last-of-type) {
  938. margin-bottom: 10px;
  939. }
  940. }
  941. }
  942. #create-playlist {
  943. margin: 10px 10px 10px 10px;
  944. width: unset;
  945. }
  946. }
  947. .has-text-centered {
  948. text-align: center;
  949. }
  950. .select {
  951. position: relative;
  952. &:after {
  953. content: " ";
  954. border: 1.5px solid var(--primary-color);
  955. border-right: 0;
  956. border-top: 0;
  957. height: 7px;
  958. pointer-events: none;
  959. position: absolute;
  960. transform: rotate(-45deg);
  961. width: 7px;
  962. margin-top: -6px;
  963. right: 16px;
  964. top: 50%;
  965. }
  966. select {
  967. height: 36px;
  968. background-color: var(--white);
  969. border: 1px solid var(--light-grey-2);
  970. color: var(--dark-grey-2);
  971. appearance: none;
  972. border-radius: 3px;
  973. font-size: 14px;
  974. line-height: 24px;
  975. padding-left: 8px;
  976. position: relative;
  977. padding-right: 36px;
  978. cursor: pointer;
  979. }
  980. }
  981. .button:focus,
  982. .button:active {
  983. border-color: var(--light-grey-2) !important;
  984. }
  985. .input:focus,
  986. .input:active,
  987. .textarea:focus,
  988. .textarea:active,
  989. .select select:focus,
  990. .select select:active {
  991. border-color: var(--primary-color) !important;
  992. }
  993. button.delete:focus {
  994. background-color: rgba(10, 10, 10, 0.3);
  995. }
  996. .tag {
  997. padding-right: 6px !important;
  998. }
  999. #tab-selection,
  1000. .tab-selection {
  1001. overflow-x: auto;
  1002. .button {
  1003. white-space: nowrap;
  1004. }
  1005. }
  1006. .button {
  1007. border: 1px solid var(--light-grey-2);
  1008. background-color: var(--white);
  1009. color: var(--dark-grey-2);
  1010. border-radius: 3px;
  1011. line-height: 24px;
  1012. align-items: center;
  1013. display: inline-flex;
  1014. font-size: 14px;
  1015. padding-left: 10px;
  1016. padding-right: 10px;
  1017. justify-content: center;
  1018. cursor: pointer;
  1019. user-select: none;
  1020. &:hover,
  1021. &:focus {
  1022. filter: brightness(95%);
  1023. }
  1024. &.is-success {
  1025. background-color: var(--green) !important;
  1026. border-width: 0;
  1027. color: var(--white);
  1028. }
  1029. &.is-primary {
  1030. background-color: var(--primary-color) !important;
  1031. border-width: 0;
  1032. color: var(--white);
  1033. }
  1034. &.is-danger {
  1035. background-color: var(--red) !important;
  1036. border-width: 0;
  1037. color: var(--white);
  1038. }
  1039. &.is-info {
  1040. background-color: var(--primary-color) !important;
  1041. border-width: 0;
  1042. color: var(--white);
  1043. }
  1044. &.is-warning {
  1045. background-color: var(--yellow) !important;
  1046. border-width: 0;
  1047. color: rgba(0, 0, 0, 0.7);
  1048. }
  1049. }
  1050. .input,
  1051. .textarea {
  1052. width: 100%;
  1053. padding-left: 8px;
  1054. padding-right: 8px;
  1055. line-height: 24px;
  1056. font-size: 14px;
  1057. border-radius: 3px;
  1058. box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
  1059. border: 1px solid var(--light-grey-2);
  1060. }
  1061. .input,
  1062. .button {
  1063. height: 36px;
  1064. }
  1065. .textarea {
  1066. display: block;
  1067. line-height: 1.2;
  1068. padding: 10px;
  1069. max-height: 600px;
  1070. min-height: 120px;
  1071. min-width: 100%;
  1072. resize: vertical;
  1073. }
  1074. .icon {
  1075. height: 24px;
  1076. width: 24px;
  1077. line-height: 24px;
  1078. margin-left: 4px;
  1079. margin-right: -2px;
  1080. }
  1081. .fadein-helpbox-enter-active {
  1082. transition-duration: 0.3s;
  1083. transition-timing-function: ease-in;
  1084. }
  1085. .fadein-helpbox-leave-active {
  1086. transition-duration: 0.3s;
  1087. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  1088. }
  1089. .fadein-helpbox-enter-to,
  1090. .fadein-helpbox-leave {
  1091. max-height: 100px;
  1092. overflow: hidden;
  1093. }
  1094. .fadein-helpbox-enter,
  1095. .fadein-helpbox-leave-to {
  1096. overflow: hidden;
  1097. max-height: 0;
  1098. }
  1099. .control {
  1100. margin-bottom: 5px !important;
  1101. &.is-grouped {
  1102. display: flex;
  1103. }
  1104. &.is-expanded {
  1105. flex: 1;
  1106. }
  1107. &.has-addons {
  1108. display: flex;
  1109. }
  1110. }
  1111. .input-with-button {
  1112. .control {
  1113. margin-right: 0px !important;
  1114. }
  1115. input,
  1116. select {
  1117. width: 100%;
  1118. height: 36px;
  1119. border-radius: 3px 0 0 3px;
  1120. border-right: 0;
  1121. border-color: var(--light-grey-3);
  1122. }
  1123. .button {
  1124. height: 36px;
  1125. border-radius: 0 3px 3px 0;
  1126. }
  1127. }
  1128. .page-title {
  1129. margin: 0 0 50px 0;
  1130. }
  1131. .material-icons {
  1132. user-select: none;
  1133. -webkit-user-select: none;
  1134. }
  1135. .icon-with-button {
  1136. margin-right: 3px;
  1137. font-size: 18px;
  1138. }
  1139. .verified-song {
  1140. font-size: 17px;
  1141. color: var(--primary-color);
  1142. }
  1143. .section-title,
  1144. h4.section-title {
  1145. font-size: 26px;
  1146. font-weight: 600;
  1147. margin: 0px;
  1148. }
  1149. .section-description {
  1150. font-size: 16px;
  1151. font-weight: 400;
  1152. margin-bottom: 10px !important;
  1153. }
  1154. .section-horizontal-rule {
  1155. margin: 15px 0 30px 0;
  1156. }
  1157. .section-margin-bottom {
  1158. height: 30px;
  1159. }
  1160. .margin-top-zero {
  1161. margin-top: 0 !important;
  1162. }
  1163. .margin-bottom-zero {
  1164. margin-bottom: 0 !important;
  1165. }
  1166. /** Universial items e.g. playlist items, queue items, activity items */
  1167. .item-draggable {
  1168. cursor: move;
  1169. }
  1170. .universal-item {
  1171. display: flex;
  1172. flex-direction: row;
  1173. flex-grow: 1;
  1174. align-items: center;
  1175. justify-content: space-between;
  1176. padding: 7.5px;
  1177. border: 1px solid var(--light-grey-3);
  1178. border-radius: 3px;
  1179. overflow: hidden;
  1180. .item-thumbnail {
  1181. width: 65px;
  1182. height: 65px;
  1183. margin: -7.5px;
  1184. border-radius: 3px 0 0 3px;
  1185. }
  1186. .item-title {
  1187. font-size: 20px;
  1188. overflow: hidden;
  1189. text-overflow: ellipsis;
  1190. white-space: nowrap;
  1191. }
  1192. .item-description {
  1193. font-size: 14px;
  1194. overflow: hidden;
  1195. text-overflow: ellipsis;
  1196. white-space: nowrap;
  1197. }
  1198. .universal-item-actions {
  1199. display: flex;
  1200. flex-direction: row;
  1201. margin-left: 10px;
  1202. justify-content: center;
  1203. @media screen and (max-width: 800px) {
  1204. flex-wrap: wrap;
  1205. }
  1206. .action-dropdown-icon {
  1207. display: flex;
  1208. color: var(--primary-color);
  1209. }
  1210. .icons-group {
  1211. display: flex;
  1212. align-items: center;
  1213. a {
  1214. padding: 0;
  1215. }
  1216. }
  1217. .button {
  1218. width: 146px;
  1219. }
  1220. i,
  1221. span {
  1222. cursor: pointer;
  1223. &:not(:first-child) {
  1224. margin-left: 5px;
  1225. }
  1226. }
  1227. .play-icon,
  1228. .added-to-playlist-icon {
  1229. color: var(--green);
  1230. }
  1231. .edit-icon,
  1232. .view-icon,
  1233. .add-to-playlist-icon,
  1234. .add-to-queue-icon {
  1235. color: var(--primary-color);
  1236. }
  1237. .hide-icon {
  1238. color: var(--light-grey-3);
  1239. }
  1240. .stop-icon,
  1241. .delete-icon {
  1242. color: var(--red);
  1243. }
  1244. .report-icon {
  1245. color: var(--yellow);
  1246. }
  1247. }
  1248. }
  1249. .save-button-mixin {
  1250. min-width: 200px;
  1251. &:disabled {
  1252. background-color: var(--light-grey) !important;
  1253. color: var(--black);
  1254. }
  1255. }
  1256. .save-button-transition-enter-active {
  1257. transition: all 0.1s ease;
  1258. }
  1259. .save-button-transition-enter {
  1260. transform: translateX(20px);
  1261. opacity: 0;
  1262. }
  1263. .youtube-icon {
  1264. margin-right: 3px;
  1265. height: 20px;
  1266. width: 20px;
  1267. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  1268. mask: url("/assets/social/youtube.svg") no-repeat center;
  1269. background-color: var(--youtube);
  1270. }
  1271. #forgot-password {
  1272. display: flex;
  1273. justify-content: flex-start;
  1274. margin: 5px 0;
  1275. }
  1276. .steps-fade-enter-active,
  1277. .steps-fade-leave-active {
  1278. transition: all 0.3s ease;
  1279. }
  1280. .steps-fade-enter-from,
  1281. .steps-fade-leave-to {
  1282. opacity: 0;
  1283. }
  1284. .skip-step {
  1285. background-color: var(--grey-3);
  1286. color: var(--white);
  1287. }
  1288. #steps {
  1289. display: flex;
  1290. align-items: center;
  1291. justify-content: center;
  1292. height: 50px;
  1293. margin-top: 36px;
  1294. @media screen and (max-width: 300px) {
  1295. display: none;
  1296. }
  1297. .step {
  1298. display: flex;
  1299. align-items: center;
  1300. justify-content: center;
  1301. border-radius: 100%;
  1302. border: 1px solid var(--dark-grey);
  1303. min-width: 50px;
  1304. min-height: 50px;
  1305. background-color: var(--white);
  1306. font-size: 30px;
  1307. user-select: none;
  1308. &.selected {
  1309. background-color: var(--primary-color);
  1310. color: var(--white) !important;
  1311. border: 0;
  1312. }
  1313. }
  1314. .divider {
  1315. display: flex;
  1316. justify-content: center;
  1317. width: 180px;
  1318. height: 1px;
  1319. background-color: var(--dark-grey);
  1320. }
  1321. }
  1322. /* This class is used for content-box in ResetPassword, but not in RemoveAccount. This is because ResetPassword uses transitions and RemoveAccount does not */
  1323. .content-box-wrapper {
  1324. position: relative;
  1325. width: 100%;
  1326. display: flex;
  1327. flex-direction: column;
  1328. align-items: center;
  1329. min-height: 200px;
  1330. .content-box {
  1331. position: absolute;
  1332. }
  1333. }
  1334. .content-box {
  1335. margin-top: 90px;
  1336. border-radius: 3px;
  1337. background-color: var(--white);
  1338. border: 1px solid var(--dark-grey);
  1339. max-width: 580px;
  1340. padding: 40px;
  1341. @media screen and (max-width: 300px) {
  1342. margin-top: 30px;
  1343. padding: 30px 20px;
  1344. }
  1345. }
  1346. .content-box-optional-helper {
  1347. margin-top: 15px;
  1348. color: var(--primary-color);
  1349. text-decoration: underline;
  1350. font-size: 16px;
  1351. a {
  1352. color: var(--primary-color);
  1353. }
  1354. }
  1355. .content-box-title {
  1356. font-size: 25px;
  1357. color: var(--black);
  1358. }
  1359. .content-box-description {
  1360. font-size: 14px;
  1361. color: var(--dark-grey);
  1362. }
  1363. .content-box-inputs {
  1364. margin-top: 35px;
  1365. .input-with-button {
  1366. .button {
  1367. width: 105px;
  1368. }
  1369. @media screen and (max-width: 450px) {
  1370. flex-direction: column;
  1371. }
  1372. }
  1373. label {
  1374. font-size: 11px;
  1375. }
  1376. #change-password-button {
  1377. margin-top: 36px;
  1378. width: 175px;
  1379. }
  1380. }
  1381. #password-visibility-container {
  1382. display: flex;
  1383. align-items: center;
  1384. a {
  1385. width: 0;
  1386. margin-left: -30px;
  1387. z-index: 0;
  1388. top: 2px;
  1389. position: relative;
  1390. color: var(--light-grey-1);
  1391. }
  1392. }
  1393. .news-item {
  1394. font-family: "Karla";
  1395. border-radius: 5px;
  1396. padding: 20px;
  1397. border: unset !important;
  1398. box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
  1399. * {
  1400. font-family: Karla, Arial, sans-serif;
  1401. font-size: 16px;
  1402. }
  1403. h1 {
  1404. font-size: 40px;
  1405. &:first-of-type {
  1406. margin-top: 0;
  1407. }
  1408. }
  1409. h2 {
  1410. font-size: 30px;
  1411. }
  1412. h3 {
  1413. font-size: 25px;
  1414. }
  1415. h4,
  1416. h5,
  1417. h6 {
  1418. font-size: 20px;
  1419. }
  1420. h1,
  1421. h2,
  1422. h3,
  1423. h4,
  1424. h5,
  1425. h6 {
  1426. margin: 10px 0;
  1427. }
  1428. ul {
  1429. list-style: unset;
  1430. }
  1431. li {
  1432. margin-left: 30px;
  1433. }
  1434. blockquote {
  1435. padding: 0px 15px;
  1436. color: var(--grey-2);
  1437. border-left: 0.25em solid var(--light-grey-2);
  1438. }
  1439. code {
  1440. font-style: italic;
  1441. }
  1442. }
  1443. .checkbox-control {
  1444. display: flex;
  1445. flex-direction: row;
  1446. align-items: center;
  1447. p {
  1448. margin-left: 10px;
  1449. }
  1450. .switch {
  1451. position: relative;
  1452. display: inline-block;
  1453. flex-shrink: 0;
  1454. width: 40px;
  1455. height: 24px;
  1456. }
  1457. .switch input {
  1458. opacity: 0;
  1459. width: 0;
  1460. height: 0;
  1461. }
  1462. .slider {
  1463. position: absolute;
  1464. cursor: pointer;
  1465. top: 0;
  1466. left: 0;
  1467. right: 0;
  1468. bottom: 0;
  1469. background-color: var(--light-grey-3);
  1470. transition: 0.2s;
  1471. border-radius: 34px;
  1472. }
  1473. .slider:before {
  1474. position: absolute;
  1475. content: "";
  1476. height: 16px;
  1477. width: 16px;
  1478. left: 4px;
  1479. bottom: 4px;
  1480. background-color: var(--white);
  1481. transition: 0.2s;
  1482. border-radius: 50%;
  1483. }
  1484. input:checked + .slider {
  1485. background-color: var(--primary-color);
  1486. }
  1487. input:focus + .slider {
  1488. box-shadow: 0 0 1px var(--primary-color);
  1489. }
  1490. input:checked + .slider:before {
  1491. transform: translateX(16px);
  1492. }
  1493. }
  1494. </style>