App.vue 37 KB

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