App.vue 37 KB

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