App.vue 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087
  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. .remove-from-playlist-icon,
  1459. .delete-icon {
  1460. color: var(--dark-red);
  1461. }
  1462. .report-icon {
  1463. color: var(--yellow);
  1464. }
  1465. }
  1466. }
  1467. .save-button-mixin {
  1468. min-width: 200px;
  1469. &:disabled {
  1470. background-color: var(--light-grey) !important;
  1471. color: var(--black);
  1472. }
  1473. }
  1474. .save-button-transition-enter-active {
  1475. transition: all 0.1s ease;
  1476. }
  1477. .save-button-transition-enter {
  1478. transform: translateX(20px);
  1479. opacity: 0;
  1480. }
  1481. .youtube-icon {
  1482. margin-right: 3px;
  1483. height: 20px;
  1484. width: 20px;
  1485. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  1486. mask: url("/assets/social/youtube.svg") no-repeat center;
  1487. background-color: var(--youtube);
  1488. }
  1489. #forgot-password {
  1490. justify-content: flex-start;
  1491. margin: 5px 0;
  1492. }
  1493. .steps-fade-leave-active {
  1494. display: none;
  1495. }
  1496. .steps-fade-enter-active,
  1497. .steps-fade-leave-active {
  1498. transition: all 0.3s ease;
  1499. }
  1500. .steps-fade-enter-from,
  1501. .steps-fade-leave-to {
  1502. opacity: 0;
  1503. }
  1504. .skip-step {
  1505. background-color: var(--grey-3);
  1506. color: var(--white);
  1507. }
  1508. #steps {
  1509. display: flex;
  1510. align-items: center;
  1511. justify-content: center;
  1512. height: 50px;
  1513. margin-top: 36px;
  1514. @media screen and (max-width: 300px) {
  1515. display: none;
  1516. }
  1517. .step {
  1518. display: flex;
  1519. align-items: center;
  1520. justify-content: center;
  1521. border-radius: 100%;
  1522. border: 1px solid var(--dark-grey);
  1523. min-width: 50px;
  1524. min-height: 50px;
  1525. background-color: var(--white);
  1526. font-size: 30px;
  1527. user-select: none;
  1528. &.selected {
  1529. background-color: var(--primary-color);
  1530. color: var(--white) !important;
  1531. border: 0;
  1532. }
  1533. }
  1534. .divider {
  1535. display: flex;
  1536. justify-content: center;
  1537. width: 180px;
  1538. height: 1px;
  1539. background-color: var(--dark-grey);
  1540. }
  1541. }
  1542. /* This class is used for content-box in ResetPassword, but not in RemoveAccount. This is because ResetPassword uses transitions and RemoveAccount does not */
  1543. .content-box-wrapper {
  1544. margin-top: 90px;
  1545. width: 100%;
  1546. display: flex;
  1547. align-items: center;
  1548. }
  1549. .content-box {
  1550. border-radius: @border-radius;
  1551. background-color: var(--white);
  1552. border: 1px solid var(--dark-grey);
  1553. max-width: 580px;
  1554. padding: 40px;
  1555. flex: 1;
  1556. @media screen and (max-width: 300px) {
  1557. margin-top: 30px;
  1558. padding: 30px 20px;
  1559. }
  1560. }
  1561. .content-box-optional-helper {
  1562. margin-top: 15px;
  1563. color: var(--primary-color);
  1564. font-size: 16px;
  1565. a {
  1566. color: var(--primary-color);
  1567. }
  1568. }
  1569. .content-box-title {
  1570. font-size: 25px;
  1571. color: var(--black);
  1572. }
  1573. .content-box-description {
  1574. font-size: 14px;
  1575. color: var(--dark-grey);
  1576. }
  1577. .content-box-inputs {
  1578. margin-top: 35px;
  1579. .input-with-button {
  1580. .button {
  1581. width: 105px;
  1582. }
  1583. @media screen and (max-width: 450px) {
  1584. flex-direction: column;
  1585. }
  1586. }
  1587. label {
  1588. font-size: 11px;
  1589. }
  1590. #change-password-button {
  1591. margin-top: 36px;
  1592. width: 175px;
  1593. }
  1594. }
  1595. #password-visibility-container {
  1596. display: flex;
  1597. align-items: center;
  1598. a {
  1599. width: 0;
  1600. margin-left: -30px;
  1601. z-index: 0;
  1602. top: 2px;
  1603. position: relative;
  1604. color: var(--light-grey-1);
  1605. }
  1606. }
  1607. .news-item {
  1608. font-family: "Karla";
  1609. border-radius: @border-radius;
  1610. padding: 20px;
  1611. border: unset !important;
  1612. box-shadow: @box-shadow;
  1613. * {
  1614. font-family: Karla, Arial, sans-serif;
  1615. font-size: 16px;
  1616. }
  1617. h1 {
  1618. font-size: 40px;
  1619. &:first-of-type {
  1620. margin-top: 0;
  1621. }
  1622. }
  1623. h2 {
  1624. font-size: 30px;
  1625. }
  1626. h3 {
  1627. font-size: 25px;
  1628. }
  1629. h4,
  1630. h5,
  1631. h6 {
  1632. font-size: 20px;
  1633. }
  1634. h1,
  1635. h2,
  1636. h3,
  1637. h4,
  1638. h5,
  1639. h6 {
  1640. margin: 10px 0;
  1641. }
  1642. ul {
  1643. list-style: unset;
  1644. }
  1645. li {
  1646. margin-left: 30px;
  1647. }
  1648. blockquote {
  1649. padding: 0px 15px;
  1650. color: var(--grey-2);
  1651. border-left: 0.25em solid var(--light-grey-2);
  1652. }
  1653. code {
  1654. font-style: italic;
  1655. }
  1656. hr {
  1657. margin: 10px 0;
  1658. }
  1659. }
  1660. .checkbox-control {
  1661. display: flex;
  1662. flex-direction: row;
  1663. align-items: center;
  1664. p {
  1665. margin-left: 10px;
  1666. }
  1667. .switch {
  1668. position: relative;
  1669. display: inline-block;
  1670. flex-shrink: 0;
  1671. width: 40px;
  1672. height: 24px;
  1673. }
  1674. .switch input {
  1675. opacity: 0;
  1676. width: 0;
  1677. height: 0;
  1678. }
  1679. .slider {
  1680. position: absolute;
  1681. cursor: pointer;
  1682. top: 0;
  1683. left: 0;
  1684. right: 0;
  1685. bottom: 0;
  1686. background-color: var(--light-grey-3);
  1687. transition: 0.2s;
  1688. border-radius: 34px;
  1689. &.disabled {
  1690. cursor: not-allowed;
  1691. }
  1692. }
  1693. .slider:before {
  1694. position: absolute;
  1695. content: "";
  1696. height: 16px;
  1697. width: 16px;
  1698. left: 4px;
  1699. bottom: 4px;
  1700. background-color: var(--white);
  1701. transition: 0.2s;
  1702. border-radius: 50%;
  1703. }
  1704. input:checked + .slider {
  1705. background-color: var(--primary-color);
  1706. }
  1707. input:focus + .slider {
  1708. box-shadow: 0 0 1px var(--primary-color);
  1709. }
  1710. input:checked + .slider:before {
  1711. transform: translateX(16px);
  1712. }
  1713. }
  1714. html {
  1715. &,
  1716. * {
  1717. scrollbar-color: var(--primary-color) transparent;
  1718. scrollbar-width: thin;
  1719. }
  1720. &.night-mode {
  1721. &,
  1722. * {
  1723. scrollbar-color: var(--light-grey) transparent !important;
  1724. }
  1725. &::-webkit-scrollbar-thumb,
  1726. ::-webkit-scrollbar-thumb {
  1727. background-color: var(--light-grey);
  1728. }
  1729. ::-webkit-scrollbar-track {
  1730. background-color: var(--dark-grey-3);
  1731. }
  1732. }
  1733. div {
  1734. ::-webkit-scrollbar-track {
  1735. background-color: transparent !important;
  1736. }
  1737. }
  1738. }
  1739. ::-webkit-scrollbar {
  1740. height: 10px;
  1741. width: 10px;
  1742. }
  1743. ::-webkit-scrollbar-track {
  1744. background-color: var(--light-grey-2);
  1745. }
  1746. ::-webkit-scrollbar-thumb {
  1747. background-color: var(--primary-color);
  1748. }
  1749. ::-webkit-scrollbar-corner {
  1750. background-color: transparent;
  1751. }
  1752. :disabled,
  1753. .disabled {
  1754. cursor: not-allowed;
  1755. }
  1756. .pill {
  1757. background-color: var(--light-grey);
  1758. color: var(--primary-color);
  1759. padding: 5px 10px;
  1760. border-radius: @border-radius;
  1761. font-size: 14px;
  1762. font-weight: 600;
  1763. white-space: nowrap;
  1764. margin-top: 5px;
  1765. box-shadow: @box-shadow;
  1766. transition: all 0.2s ease-in-out;
  1767. &:hover,
  1768. &:focus {
  1769. filter: brightness(95%);
  1770. }
  1771. &:not(:last-of-type) {
  1772. margin-right: 5px;
  1773. }
  1774. }
  1775. </style>