App.vue 37 KB

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