App.vue 38 KB

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