App.vue 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042
  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. }
  1279. &.is-expanded {
  1280. flex: 1;
  1281. }
  1282. &.has-addons {
  1283. display: flex;
  1284. .button {
  1285. border-radius: 0;
  1286. margin-right: -1px;
  1287. &:first-child {
  1288. border-radius: @border-radius 0 0 @border-radius;
  1289. }
  1290. &:last-child {
  1291. border-radius: 0 @border-radius @border-radius 0;
  1292. padding-left: 10px;
  1293. }
  1294. }
  1295. .input {
  1296. margin-right: -1px;
  1297. &:first-child {
  1298. border-radius: @border-radius 0 0 @border-radius;
  1299. }
  1300. }
  1301. }
  1302. }
  1303. .input-with-button {
  1304. .control {
  1305. margin-right: 0px !important;
  1306. }
  1307. input,
  1308. select {
  1309. width: 100%;
  1310. height: 36px;
  1311. border-radius: @border-radius 0 0 @border-radius;
  1312. border-right: 0;
  1313. border-color: var(--light-grey-3);
  1314. }
  1315. .button {
  1316. height: 36px;
  1317. border-radius: 0 @border-radius @border-radius 0;
  1318. }
  1319. }
  1320. .page-title {
  1321. margin: 0 0 50px 0;
  1322. }
  1323. .material-icons {
  1324. user-select: none;
  1325. -webkit-user-select: none;
  1326. }
  1327. .icon-with-button {
  1328. margin-right: 3px;
  1329. font-size: 18px;
  1330. }
  1331. .verified-song {
  1332. font-size: 17px;
  1333. color: var(--primary-color);
  1334. }
  1335. .section-title,
  1336. h4.section-title {
  1337. font-size: 26px;
  1338. font-weight: 600;
  1339. margin: 0px;
  1340. }
  1341. .section-description {
  1342. font-size: 16px;
  1343. font-weight: 400;
  1344. margin-bottom: 10px !important;
  1345. }
  1346. .section-horizontal-rule {
  1347. margin: 15px 0 30px 0;
  1348. }
  1349. .section-margin-bottom {
  1350. height: 30px;
  1351. }
  1352. .margin-top-zero {
  1353. margin-top: 0 !important;
  1354. }
  1355. .margin-bottom-zero {
  1356. margin-bottom: 0 !important;
  1357. }
  1358. /** Universial items e.g. playlist items, queue items, activity items */
  1359. .item-draggable {
  1360. cursor: move;
  1361. }
  1362. .universal-item {
  1363. display: flex;
  1364. flex-direction: row;
  1365. flex-grow: 1;
  1366. align-items: center;
  1367. justify-content: space-between;
  1368. padding: 7.5px;
  1369. border: 1px solid var(--light-grey-3);
  1370. border-radius: @border-radius;
  1371. overflow: hidden;
  1372. .item-thumbnail {
  1373. width: 65px;
  1374. height: 65px;
  1375. margin: -7.5px;
  1376. border-radius: @border-radius 0 0 @border-radius;
  1377. }
  1378. .item-title {
  1379. font-size: 20px;
  1380. overflow: hidden;
  1381. text-overflow: ellipsis;
  1382. white-space: nowrap;
  1383. }
  1384. .item-description {
  1385. font-size: 14px;
  1386. overflow: hidden;
  1387. text-overflow: ellipsis;
  1388. white-space: nowrap;
  1389. }
  1390. .universal-item-actions {
  1391. display: flex;
  1392. flex-direction: row;
  1393. margin-left: 10px;
  1394. justify-content: center;
  1395. @media screen and (max-width: 800px) {
  1396. flex-wrap: wrap;
  1397. }
  1398. .action-dropdown-icon {
  1399. display: flex;
  1400. color: var(--primary-color);
  1401. }
  1402. .icons-group {
  1403. display: flex;
  1404. align-items: center;
  1405. a {
  1406. padding: 0;
  1407. }
  1408. }
  1409. .button {
  1410. width: 146px;
  1411. }
  1412. i,
  1413. span {
  1414. cursor: pointer;
  1415. &:not(:first-child) {
  1416. margin-left: 5px;
  1417. }
  1418. }
  1419. .play-icon,
  1420. .added-to-playlist-icon {
  1421. color: var(--green);
  1422. }
  1423. .edit-icon,
  1424. .view-icon,
  1425. .add-to-playlist-icon,
  1426. .add-to-queue-icon {
  1427. color: var(--primary-color);
  1428. }
  1429. .hide-icon {
  1430. color: var(--light-grey-3);
  1431. }
  1432. .stop-icon,
  1433. .delete-icon {
  1434. color: var(--dark-red);
  1435. }
  1436. .report-icon {
  1437. color: var(--yellow);
  1438. }
  1439. }
  1440. }
  1441. .save-button-mixin {
  1442. min-width: 200px;
  1443. &:disabled {
  1444. background-color: var(--light-grey) !important;
  1445. color: var(--black);
  1446. }
  1447. }
  1448. .save-button-transition-enter-active {
  1449. transition: all 0.1s ease;
  1450. }
  1451. .save-button-transition-enter {
  1452. transform: translateX(20px);
  1453. opacity: 0;
  1454. }
  1455. .youtube-icon {
  1456. margin-right: 3px;
  1457. height: 20px;
  1458. width: 20px;
  1459. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  1460. mask: url("/assets/social/youtube.svg") no-repeat center;
  1461. background-color: var(--youtube);
  1462. }
  1463. #forgot-password {
  1464. justify-content: flex-start;
  1465. margin: 5px 0;
  1466. }
  1467. .steps-fade-leave-active {
  1468. display: none;
  1469. }
  1470. .steps-fade-enter-active,
  1471. .steps-fade-leave-active {
  1472. transition: all 0.3s ease;
  1473. }
  1474. .steps-fade-enter-from,
  1475. .steps-fade-leave-to {
  1476. opacity: 0;
  1477. }
  1478. .skip-step {
  1479. background-color: var(--grey-3);
  1480. color: var(--white);
  1481. }
  1482. #steps {
  1483. display: flex;
  1484. align-items: center;
  1485. justify-content: center;
  1486. height: 50px;
  1487. margin-top: 36px;
  1488. @media screen and (max-width: 300px) {
  1489. display: none;
  1490. }
  1491. .step {
  1492. display: flex;
  1493. align-items: center;
  1494. justify-content: center;
  1495. border-radius: 100%;
  1496. border: 1px solid var(--dark-grey);
  1497. min-width: 50px;
  1498. min-height: 50px;
  1499. background-color: var(--white);
  1500. font-size: 30px;
  1501. user-select: none;
  1502. &.selected {
  1503. background-color: var(--primary-color);
  1504. color: var(--white) !important;
  1505. border: 0;
  1506. }
  1507. }
  1508. .divider {
  1509. display: flex;
  1510. justify-content: center;
  1511. width: 180px;
  1512. height: 1px;
  1513. background-color: var(--dark-grey);
  1514. }
  1515. }
  1516. /* This class is used for content-box in ResetPassword, but not in RemoveAccount. This is because ResetPassword uses transitions and RemoveAccount does not */
  1517. .content-box-wrapper {
  1518. margin-top: 90px;
  1519. width: 100%;
  1520. display: flex;
  1521. align-items: center;
  1522. }
  1523. .content-box {
  1524. border-radius: @border-radius;
  1525. background-color: var(--white);
  1526. border: 1px solid var(--dark-grey);
  1527. max-width: 580px;
  1528. padding: 40px;
  1529. flex: 1;
  1530. @media screen and (max-width: 300px) {
  1531. margin-top: 30px;
  1532. padding: 30px 20px;
  1533. }
  1534. }
  1535. .content-box-optional-helper {
  1536. margin-top: 15px;
  1537. color: var(--primary-color);
  1538. font-size: 16px;
  1539. a {
  1540. color: var(--primary-color);
  1541. }
  1542. }
  1543. .content-box-title {
  1544. font-size: 25px;
  1545. color: var(--black);
  1546. }
  1547. .content-box-description {
  1548. font-size: 14px;
  1549. color: var(--dark-grey);
  1550. }
  1551. .content-box-inputs {
  1552. margin-top: 35px;
  1553. .input-with-button {
  1554. .button {
  1555. width: 105px;
  1556. }
  1557. @media screen and (max-width: 450px) {
  1558. flex-direction: column;
  1559. }
  1560. }
  1561. label {
  1562. font-size: 11px;
  1563. }
  1564. #change-password-button {
  1565. margin-top: 36px;
  1566. width: 175px;
  1567. }
  1568. }
  1569. #password-visibility-container {
  1570. display: flex;
  1571. align-items: center;
  1572. a {
  1573. width: 0;
  1574. margin-left: -30px;
  1575. z-index: 0;
  1576. top: 2px;
  1577. position: relative;
  1578. color: var(--light-grey-1);
  1579. }
  1580. }
  1581. .news-item {
  1582. font-family: "Karla";
  1583. border-radius: @border-radius;
  1584. padding: 20px;
  1585. border: unset !important;
  1586. box-shadow: @box-shadow;
  1587. * {
  1588. font-family: Karla, Arial, sans-serif;
  1589. font-size: 16px;
  1590. }
  1591. h1 {
  1592. font-size: 40px;
  1593. &:first-of-type {
  1594. margin-top: 0;
  1595. }
  1596. }
  1597. h2 {
  1598. font-size: 30px;
  1599. }
  1600. h3 {
  1601. font-size: 25px;
  1602. }
  1603. h4,
  1604. h5,
  1605. h6 {
  1606. font-size: 20px;
  1607. }
  1608. h1,
  1609. h2,
  1610. h3,
  1611. h4,
  1612. h5,
  1613. h6 {
  1614. margin: 10px 0;
  1615. }
  1616. ul {
  1617. list-style: unset;
  1618. }
  1619. li {
  1620. margin-left: 30px;
  1621. }
  1622. blockquote {
  1623. padding: 0px 15px;
  1624. color: var(--grey-2);
  1625. border-left: 0.25em solid var(--light-grey-2);
  1626. }
  1627. code {
  1628. font-style: italic;
  1629. }
  1630. }
  1631. .checkbox-control {
  1632. display: flex;
  1633. flex-direction: row;
  1634. align-items: center;
  1635. p {
  1636. margin-left: 10px;
  1637. }
  1638. .switch {
  1639. position: relative;
  1640. display: inline-block;
  1641. flex-shrink: 0;
  1642. width: 40px;
  1643. height: 24px;
  1644. }
  1645. .switch input {
  1646. opacity: 0;
  1647. width: 0;
  1648. height: 0;
  1649. }
  1650. .slider {
  1651. position: absolute;
  1652. cursor: pointer;
  1653. top: 0;
  1654. left: 0;
  1655. right: 0;
  1656. bottom: 0;
  1657. background-color: var(--light-grey-3);
  1658. transition: 0.2s;
  1659. border-radius: 34px;
  1660. }
  1661. .slider:before {
  1662. position: absolute;
  1663. content: "";
  1664. height: 16px;
  1665. width: 16px;
  1666. left: 4px;
  1667. bottom: 4px;
  1668. background-color: var(--white);
  1669. transition: 0.2s;
  1670. border-radius: 50%;
  1671. }
  1672. input:checked + .slider {
  1673. background-color: var(--primary-color);
  1674. }
  1675. input:focus + .slider {
  1676. box-shadow: 0 0 1px var(--primary-color);
  1677. }
  1678. input:checked + .slider:before {
  1679. transform: translateX(16px);
  1680. }
  1681. }
  1682. html {
  1683. &,
  1684. * {
  1685. scrollbar-color: var(--primary-color) transparent;
  1686. scrollbar-width: thin;
  1687. }
  1688. &.night-mode {
  1689. &,
  1690. * {
  1691. scrollbar-color: var(--light-grey) transparent !important;
  1692. }
  1693. &::-webkit-scrollbar-thumb,
  1694. ::-webkit-scrollbar-thumb {
  1695. background-color: var(--light-grey);
  1696. }
  1697. ::-webkit-scrollbar-track {
  1698. background-color: var(--dark-grey-3);
  1699. }
  1700. }
  1701. div {
  1702. ::-webkit-scrollbar-track {
  1703. background-color: transparent !important;
  1704. }
  1705. }
  1706. }
  1707. ::-webkit-scrollbar {
  1708. height: 10px;
  1709. width: 10px;
  1710. }
  1711. ::-webkit-scrollbar-track {
  1712. background-color: var(--light-grey-2);
  1713. }
  1714. ::-webkit-scrollbar-thumb {
  1715. background-color: var(--primary-color);
  1716. }
  1717. ::-webkit-scrollbar-corner {
  1718. background-color: transparent;
  1719. }
  1720. :disabled,
  1721. .disabled {
  1722. cursor: not-allowed;
  1723. }
  1724. .pill {
  1725. background-color: var(--light-grey);
  1726. color: var(--primary-color);
  1727. padding: 5px 10px;
  1728. border-radius: @border-radius;
  1729. font-size: 14px;
  1730. font-weight: 600;
  1731. white-space: nowrap;
  1732. margin-top: 5px;
  1733. box-shadow: @box-shadow;
  1734. transition: all 0.2s ease-in-out;
  1735. &:hover,
  1736. &:focus {
  1737. filter: brightness(95%);
  1738. }
  1739. &:not(:last-of-type) {
  1740. margin-right: 5px;
  1741. }
  1742. }
  1743. </style>