App.vue 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117
  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. background-color: var(--dark-grey-3);
  1134. font-family: monospace;
  1135. font-weight: 700;
  1136. color: white;
  1137. border-radius: 100%;
  1138. text-align: center;
  1139. padding: 0 !important;
  1140. font-size: 12px;
  1141. line-height: 18px;
  1142. min-width: 18px;
  1143. height: 18px;
  1144. margin-left: 4px;
  1145. .material-icons {
  1146. font-size: 18px;
  1147. }
  1148. }
  1149. .selected {
  1150. .tag {
  1151. background-color: var(--light-grey);
  1152. color: var(--dark-grey);
  1153. }
  1154. }
  1155. #tab-selection,
  1156. .tab-selection {
  1157. overflow-x: auto;
  1158. .button {
  1159. white-space: nowrap;
  1160. }
  1161. }
  1162. .table {
  1163. background-color: var(--white);
  1164. color: var(--dark-grey);
  1165. width: 100%;
  1166. border-collapse: collapse;
  1167. border-spacing: 0;
  1168. border-radius: @border-radius;
  1169. thead th {
  1170. padding: 5px 10px;
  1171. text-align: left;
  1172. font-weight: 600;
  1173. color: var(--grey-3);
  1174. }
  1175. tr {
  1176. &:nth-child(even) {
  1177. background-color: #fafafa;
  1178. }
  1179. &:hover,
  1180. &:focus {
  1181. background-color: var(--light-grey);
  1182. }
  1183. }
  1184. }
  1185. .button {
  1186. border: 1px solid var(--light-grey-2);
  1187. background-color: var(--white);
  1188. color: var(--dark-grey-2);
  1189. border-radius: @border-radius;
  1190. line-height: 24px;
  1191. align-items: center;
  1192. display: inline-flex;
  1193. font-size: 14px;
  1194. padding-left: 10px;
  1195. padding-right: 10px;
  1196. justify-content: center;
  1197. cursor: pointer;
  1198. user-select: none;
  1199. white-space: nowrap;
  1200. &:hover,
  1201. &:focus {
  1202. filter: brightness(95%);
  1203. }
  1204. &.is-success {
  1205. background-color: var(--green) !important;
  1206. border-width: 0;
  1207. color: var(--white);
  1208. }
  1209. &.is-primary {
  1210. background-color: var(--primary-color) !important;
  1211. border-width: 0;
  1212. color: var(--white);
  1213. }
  1214. &.is-danger {
  1215. background-color: var(--dark-red) !important;
  1216. border-width: 0;
  1217. color: var(--white);
  1218. }
  1219. &.is-info {
  1220. background-color: var(--primary-color) !important;
  1221. border-width: 0;
  1222. color: var(--white);
  1223. }
  1224. &.is-warning {
  1225. background-color: var(--yellow) !important;
  1226. border-width: 0;
  1227. color: rgba(0, 0, 0, 0.7);
  1228. }
  1229. &.is-dark {
  1230. background-color: var(--dark-grey-2);
  1231. border-width: 0;
  1232. color: var(--light-grey);
  1233. }
  1234. &.is-fullwidth {
  1235. display: flex;
  1236. width: 100%;
  1237. }
  1238. &.disabled {
  1239. filter: grayscale(1);
  1240. cursor: not-allowed;
  1241. }
  1242. }
  1243. .input,
  1244. .textarea {
  1245. width: 100%;
  1246. padding-left: 8px;
  1247. padding-right: 8px;
  1248. line-height: 24px;
  1249. font-size: 14px;
  1250. border-radius: @border-radius;
  1251. box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
  1252. border: 1px solid var(--light-grey-2);
  1253. }
  1254. .input,
  1255. .button {
  1256. height: 36px;
  1257. }
  1258. .textarea {
  1259. display: block;
  1260. line-height: 1.2;
  1261. padding: 10px;
  1262. max-height: 600px;
  1263. min-height: 120px;
  1264. min-width: 100%;
  1265. resize: vertical;
  1266. }
  1267. .icon {
  1268. height: 24px;
  1269. width: 24px;
  1270. line-height: 24px;
  1271. margin-left: 4px;
  1272. margin-right: -2px;
  1273. }
  1274. .fadein-helpbox-enter-active {
  1275. transition-duration: 0.3s;
  1276. transition-timing-function: ease-in;
  1277. }
  1278. .fadein-helpbox-leave-active {
  1279. transition-duration: 0.3s;
  1280. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  1281. }
  1282. .fadein-helpbox-enter-to,
  1283. .fadein-helpbox-leave {
  1284. max-height: 100px;
  1285. overflow: hidden;
  1286. }
  1287. .fadein-helpbox-enter,
  1288. .fadein-helpbox-leave-to {
  1289. overflow: hidden;
  1290. max-height: 0;
  1291. }
  1292. .control {
  1293. margin-bottom: 5px !important;
  1294. &.is-grouped {
  1295. display: flex;
  1296. & > .control {
  1297. &.select.is-expanded > select {
  1298. width: 100%;
  1299. }
  1300. & > input,
  1301. & > select,
  1302. & > .button,
  1303. &.label {
  1304. border-radius: 0;
  1305. }
  1306. &:first-child:not(:only-child) {
  1307. & > input,
  1308. & > select,
  1309. & > .button,
  1310. &.label {
  1311. border-radius: @border-radius 0 0 @border-radius;
  1312. }
  1313. }
  1314. &:last-child:not(:only-child) {
  1315. & > input,
  1316. & > select,
  1317. & > .button,
  1318. &.label {
  1319. border-radius: 0 @border-radius @border-radius 0;
  1320. }
  1321. }
  1322. &:only-child {
  1323. & > input,
  1324. & > select,
  1325. & > .button,
  1326. &.label {
  1327. border-radius: @border-radius;
  1328. }
  1329. }
  1330. }
  1331. }
  1332. &.is-expanded {
  1333. flex: 1;
  1334. }
  1335. &.has-addons {
  1336. display: flex;
  1337. .button {
  1338. border-radius: 0;
  1339. margin-right: -1px;
  1340. &:first-child {
  1341. border-radius: @border-radius 0 0 @border-radius;
  1342. }
  1343. &:last-child {
  1344. border-radius: 0 @border-radius @border-radius 0;
  1345. padding-left: 10px;
  1346. }
  1347. &.dropdown-toggle {
  1348. padding-left: 5px;
  1349. padding-right: 5px;
  1350. }
  1351. }
  1352. .input {
  1353. margin-right: -1px;
  1354. &:first-child {
  1355. border-radius: @border-radius 0 0 @border-radius;
  1356. }
  1357. }
  1358. }
  1359. }
  1360. .input-with-button {
  1361. .control {
  1362. margin-right: 0px !important;
  1363. }
  1364. input,
  1365. select {
  1366. width: 100%;
  1367. height: 36px;
  1368. border-radius: @border-radius 0 0 @border-radius;
  1369. border-right: 0;
  1370. border-color: var(--light-grey-3);
  1371. }
  1372. .button {
  1373. height: 36px;
  1374. border-radius: 0 @border-radius @border-radius 0;
  1375. }
  1376. }
  1377. .page-title {
  1378. margin: 0 0 50px 0;
  1379. }
  1380. .material-icons {
  1381. user-select: none;
  1382. -webkit-user-select: none;
  1383. }
  1384. .icon-with-button {
  1385. margin-right: 3px;
  1386. font-size: 18px;
  1387. }
  1388. .verified-song {
  1389. font-size: 17px;
  1390. color: var(--primary-color);
  1391. }
  1392. .section-title,
  1393. h4.section-title {
  1394. font-size: 26px;
  1395. font-weight: 600;
  1396. margin: 0px;
  1397. }
  1398. .section-description {
  1399. font-size: 16px;
  1400. font-weight: 400;
  1401. margin-bottom: 10px !important;
  1402. }
  1403. .section-horizontal-rule {
  1404. margin: 15px 0 30px 0;
  1405. }
  1406. .section-margin-bottom {
  1407. height: 30px;
  1408. }
  1409. .margin-top-zero {
  1410. margin-top: 0 !important;
  1411. }
  1412. .margin-bottom-zero {
  1413. margin-bottom: 0 !important;
  1414. }
  1415. /** Universial items e.g. playlist items, queue items, activity items */
  1416. .universal-item {
  1417. display: flex;
  1418. flex-direction: row;
  1419. flex-grow: 1;
  1420. align-items: center;
  1421. justify-content: space-between;
  1422. padding: 7.5px;
  1423. border: 1px solid var(--light-grey-3);
  1424. border-radius: @border-radius;
  1425. overflow: hidden;
  1426. .item-thumbnail {
  1427. width: 65px;
  1428. height: 65px;
  1429. margin: -7.5px;
  1430. border-radius: @border-radius 0 0 @border-radius;
  1431. }
  1432. .item-title {
  1433. font-size: 20px;
  1434. overflow: hidden;
  1435. text-overflow: ellipsis;
  1436. white-space: nowrap;
  1437. }
  1438. .item-description {
  1439. font-size: 14px;
  1440. overflow: hidden;
  1441. text-overflow: ellipsis;
  1442. white-space: nowrap;
  1443. }
  1444. .universal-item-actions {
  1445. display: flex;
  1446. flex-direction: row;
  1447. margin-left: 10px;
  1448. justify-content: center;
  1449. @media screen and (max-width: 800px) {
  1450. flex-wrap: wrap;
  1451. }
  1452. .action-dropdown-icon {
  1453. display: flex;
  1454. color: var(--primary-color);
  1455. }
  1456. .icons-group {
  1457. display: flex;
  1458. align-items: center;
  1459. a {
  1460. padding: 0;
  1461. }
  1462. }
  1463. .button {
  1464. width: 146px;
  1465. }
  1466. i,
  1467. span {
  1468. cursor: pointer;
  1469. &:not(:first-child) {
  1470. margin-left: 5px;
  1471. }
  1472. }
  1473. .play-icon,
  1474. .added-to-playlist-icon {
  1475. color: var(--green);
  1476. }
  1477. .edit-icon,
  1478. .view-icon,
  1479. .add-to-playlist-icon,
  1480. .add-to-queue-icon {
  1481. color: var(--primary-color);
  1482. }
  1483. .hide-icon {
  1484. color: var(--light-grey-3);
  1485. }
  1486. .stop-icon,
  1487. .remove-from-playlist-icon,
  1488. .delete-icon {
  1489. color: var(--dark-red);
  1490. }
  1491. .report-icon {
  1492. color: var(--yellow);
  1493. }
  1494. }
  1495. }
  1496. .save-button-mixin {
  1497. min-width: 200px;
  1498. &:disabled {
  1499. background-color: var(--light-grey) !important;
  1500. color: var(--black);
  1501. }
  1502. }
  1503. .save-button-transition-enter-active {
  1504. transition: all 0.1s ease;
  1505. }
  1506. .save-button-transition-enter {
  1507. transform: translateX(20px);
  1508. opacity: 0;
  1509. }
  1510. .youtube-icon {
  1511. margin-right: 3px;
  1512. height: 20px;
  1513. width: 20px;
  1514. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  1515. mask: url("/assets/social/youtube.svg") no-repeat center;
  1516. background-color: var(--youtube);
  1517. }
  1518. #forgot-password {
  1519. justify-content: flex-start;
  1520. margin: 5px 0;
  1521. }
  1522. .steps-fade-leave-active {
  1523. display: none;
  1524. }
  1525. .steps-fade-enter-active,
  1526. .steps-fade-leave-active {
  1527. transition: all 0.3s ease;
  1528. }
  1529. .steps-fade-enter-from,
  1530. .steps-fade-leave-to {
  1531. opacity: 0;
  1532. }
  1533. .skip-step {
  1534. background-color: var(--grey-3);
  1535. color: var(--white);
  1536. }
  1537. #steps {
  1538. display: flex;
  1539. align-items: center;
  1540. justify-content: center;
  1541. height: 50px;
  1542. margin-top: 36px;
  1543. @media screen and (max-width: 300px) {
  1544. display: none;
  1545. }
  1546. .step {
  1547. display: flex;
  1548. align-items: center;
  1549. justify-content: center;
  1550. border-radius: 100%;
  1551. border: 1px solid var(--dark-grey);
  1552. min-width: 50px;
  1553. min-height: 50px;
  1554. background-color: var(--white);
  1555. font-size: 30px;
  1556. user-select: none;
  1557. &.selected {
  1558. background-color: var(--primary-color);
  1559. color: var(--white) !important;
  1560. border: 0;
  1561. }
  1562. }
  1563. .divider {
  1564. display: flex;
  1565. justify-content: center;
  1566. width: 180px;
  1567. height: 1px;
  1568. background-color: var(--dark-grey);
  1569. }
  1570. }
  1571. /* This class is used for content-box in ResetPassword, but not in RemoveAccount. This is because ResetPassword uses transitions and RemoveAccount does not */
  1572. .content-box-wrapper {
  1573. margin-top: 90px;
  1574. width: 100%;
  1575. display: flex;
  1576. align-items: center;
  1577. }
  1578. .content-box {
  1579. border-radius: @border-radius;
  1580. background-color: var(--white);
  1581. border: 1px solid var(--dark-grey);
  1582. max-width: 580px;
  1583. padding: 40px;
  1584. flex: 1;
  1585. @media screen and (max-width: 300px) {
  1586. margin-top: 30px;
  1587. padding: 30px 20px;
  1588. }
  1589. }
  1590. .content-box-optional-helper {
  1591. margin-top: 15px;
  1592. color: var(--primary-color);
  1593. font-size: 16px;
  1594. a {
  1595. color: var(--primary-color);
  1596. }
  1597. }
  1598. .content-box-title {
  1599. font-size: 25px;
  1600. color: var(--black);
  1601. }
  1602. .content-box-description {
  1603. font-size: 14px;
  1604. color: var(--dark-grey);
  1605. }
  1606. .content-box-inputs {
  1607. margin-top: 35px;
  1608. .input-with-button {
  1609. .button {
  1610. width: 105px;
  1611. }
  1612. @media screen and (max-width: 450px) {
  1613. flex-direction: column;
  1614. }
  1615. }
  1616. label {
  1617. font-size: 11px;
  1618. }
  1619. #change-password-button {
  1620. margin-top: 36px;
  1621. width: 175px;
  1622. }
  1623. }
  1624. #password-visibility-container {
  1625. display: flex;
  1626. align-items: center;
  1627. a {
  1628. width: 0;
  1629. margin-left: -30px;
  1630. z-index: 0;
  1631. top: 2px;
  1632. position: relative;
  1633. color: var(--light-grey-1);
  1634. }
  1635. }
  1636. .news-item {
  1637. font-family: "Karla";
  1638. border-radius: @border-radius;
  1639. padding: 20px;
  1640. border: unset !important;
  1641. box-shadow: @box-shadow;
  1642. * {
  1643. font-family: Karla, Arial, sans-serif;
  1644. font-size: 16px;
  1645. }
  1646. h1 {
  1647. font-size: 40px;
  1648. &:first-of-type {
  1649. margin-top: 0;
  1650. }
  1651. }
  1652. h2 {
  1653. font-size: 30px;
  1654. }
  1655. h3 {
  1656. font-size: 25px;
  1657. }
  1658. h4,
  1659. h5,
  1660. h6 {
  1661. font-size: 20px;
  1662. }
  1663. h1,
  1664. h2,
  1665. h3,
  1666. h4,
  1667. h5,
  1668. h6 {
  1669. margin: 10px 0;
  1670. }
  1671. ul {
  1672. list-style: unset;
  1673. }
  1674. li {
  1675. margin-left: 30px;
  1676. }
  1677. blockquote {
  1678. padding: 0px 15px;
  1679. color: var(--grey-2);
  1680. border-left: 0.25em solid var(--light-grey-2);
  1681. }
  1682. code {
  1683. font-style: italic;
  1684. }
  1685. hr {
  1686. margin: 10px 0;
  1687. }
  1688. }
  1689. .checkbox-control {
  1690. display: flex;
  1691. flex-direction: row;
  1692. align-items: center;
  1693. p {
  1694. margin-left: 10px;
  1695. }
  1696. .switch {
  1697. position: relative;
  1698. display: inline-block;
  1699. flex-shrink: 0;
  1700. width: 40px;
  1701. height: 24px;
  1702. }
  1703. .switch input {
  1704. opacity: 0;
  1705. width: 0;
  1706. height: 0;
  1707. }
  1708. .slider {
  1709. position: absolute;
  1710. cursor: pointer;
  1711. top: 0;
  1712. left: 0;
  1713. right: 0;
  1714. bottom: 0;
  1715. background-color: var(--light-grey-3);
  1716. transition: 0.2s;
  1717. border-radius: 34px;
  1718. &.disabled {
  1719. cursor: not-allowed;
  1720. }
  1721. }
  1722. .slider:before {
  1723. position: absolute;
  1724. content: "";
  1725. height: 16px;
  1726. width: 16px;
  1727. left: 4px;
  1728. bottom: 4px;
  1729. background-color: var(--white);
  1730. transition: 0.2s;
  1731. border-radius: 50%;
  1732. }
  1733. input:checked + .slider {
  1734. background-color: var(--primary-color);
  1735. }
  1736. input:focus + .slider {
  1737. box-shadow: 0 0 1px var(--primary-color);
  1738. }
  1739. input:checked + .slider:before {
  1740. transform: translateX(16px);
  1741. }
  1742. }
  1743. html {
  1744. &,
  1745. * {
  1746. scrollbar-color: var(--primary-color) transparent;
  1747. scrollbar-width: thin;
  1748. }
  1749. &.night-mode {
  1750. &,
  1751. * {
  1752. scrollbar-color: var(--light-grey) transparent !important;
  1753. }
  1754. &::-webkit-scrollbar-thumb,
  1755. ::-webkit-scrollbar-thumb {
  1756. background-color: var(--light-grey);
  1757. }
  1758. ::-webkit-scrollbar-track {
  1759. background-color: var(--dark-grey-3);
  1760. }
  1761. }
  1762. div {
  1763. ::-webkit-scrollbar-track {
  1764. background-color: transparent !important;
  1765. }
  1766. }
  1767. }
  1768. ::-webkit-scrollbar {
  1769. height: 10px;
  1770. width: 10px;
  1771. }
  1772. ::-webkit-scrollbar-track {
  1773. background-color: var(--light-grey-2);
  1774. }
  1775. ::-webkit-scrollbar-thumb {
  1776. background-color: var(--primary-color);
  1777. }
  1778. ::-webkit-scrollbar-corner {
  1779. background-color: transparent;
  1780. }
  1781. :disabled,
  1782. .disabled {
  1783. cursor: not-allowed;
  1784. }
  1785. .pill {
  1786. background-color: var(--light-grey);
  1787. color: var(--primary-color);
  1788. padding: 5px 10px;
  1789. border-radius: @border-radius;
  1790. font-size: 14px;
  1791. font-weight: 600;
  1792. white-space: nowrap;
  1793. margin-top: 5px;
  1794. box-shadow: @box-shadow;
  1795. transition: all 0.2s ease-in-out;
  1796. &:hover,
  1797. &:focus {
  1798. filter: brightness(95%);
  1799. }
  1800. &:not(:last-of-type) {
  1801. margin-right: 5px;
  1802. }
  1803. }
  1804. </style>