App.vue 33 KB

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