App.vue 36 KB

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