App.vue 32 KB

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