App.vue 37 KB

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