App.vue 37 KB

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