App.vue 37 KB

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