App.vue 31 KB

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