App.vue 33 KB

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