App.vue 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090
  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: calc(100% - 20px);
  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. &.is-expanded {
  1055. width: 100%;
  1056. }
  1057. &.disabled,
  1058. .disabled {
  1059. filter: grayscale(1);
  1060. cursor: not-allowed;
  1061. }
  1062. &:after {
  1063. content: " ";
  1064. border: 1.5px solid var(--primary-color);
  1065. border-right: 0;
  1066. border-top: 0;
  1067. height: 7px;
  1068. pointer-events: none;
  1069. position: absolute;
  1070. transform: rotate(-45deg);
  1071. width: 7px;
  1072. margin-top: -6px;
  1073. right: 16px;
  1074. top: 50%;
  1075. }
  1076. select {
  1077. height: 36px;
  1078. width: 100%;
  1079. background-color: var(--white);
  1080. border: 1px solid var(--light-grey-2);
  1081. color: var(--dark-grey-2);
  1082. appearance: none;
  1083. border-radius: @border-radius;
  1084. font-size: 14px;
  1085. line-height: 24px;
  1086. padding-left: 8px;
  1087. position: relative;
  1088. padding-right: 36px;
  1089. cursor: pointer;
  1090. }
  1091. }
  1092. .checkbox {
  1093. height: 25px;
  1094. width: 25px;
  1095. input[type="checkbox"] {
  1096. height: 25px;
  1097. width: 25px;
  1098. background-color: var(--white);
  1099. border: 1px solid var(--light-grey-2);
  1100. appearance: none;
  1101. border-radius: @border-radius;
  1102. cursor: pointer;
  1103. position: relative;
  1104. &:checked {
  1105. &:before {
  1106. content: "";
  1107. position: absolute;
  1108. top: 4px;
  1109. right: 7px;
  1110. background-color: var(--primary-color);
  1111. width: 4px;
  1112. height: 16px;
  1113. transform: rotate(45deg);
  1114. }
  1115. &:after {
  1116. content: "";
  1117. position: absolute;
  1118. top: 12px;
  1119. left: 2px;
  1120. background-color: var(--primary-color);
  1121. width: 10px;
  1122. height: 4px;
  1123. transform: rotate(45deg);
  1124. }
  1125. }
  1126. }
  1127. }
  1128. .button:focus,
  1129. .button:active {
  1130. border-color: var(--light-grey-2) !important;
  1131. }
  1132. .input:focus,
  1133. .input:active,
  1134. .textarea:focus,
  1135. .textarea:active,
  1136. .select select:focus,
  1137. .select select:active {
  1138. border-color: var(--primary-color) !important;
  1139. }
  1140. button.delete:focus {
  1141. background-color: rgba(10, 10, 10, 0.3);
  1142. }
  1143. .tag {
  1144. padding-right: 6px !important;
  1145. }
  1146. #tab-selection,
  1147. .tab-selection {
  1148. overflow-x: auto;
  1149. .button {
  1150. white-space: nowrap;
  1151. }
  1152. }
  1153. .table {
  1154. background-color: var(--white);
  1155. color: var(--dark-grey);
  1156. width: 100%;
  1157. border-collapse: collapse;
  1158. border-spacing: 0;
  1159. border-radius: @border-radius;
  1160. thead th {
  1161. padding: 5px 10px;
  1162. text-align: left;
  1163. font-weight: 600;
  1164. color: var(--grey-3);
  1165. }
  1166. tr {
  1167. &:nth-child(even) {
  1168. background-color: #fafafa;
  1169. }
  1170. &:hover,
  1171. &:focus {
  1172. background-color: var(--light-grey);
  1173. }
  1174. }
  1175. }
  1176. .button {
  1177. border: 1px solid var(--light-grey-2);
  1178. background-color: var(--white);
  1179. color: var(--dark-grey-2);
  1180. border-radius: @border-radius;
  1181. line-height: 24px;
  1182. align-items: center;
  1183. display: inline-flex;
  1184. font-size: 14px;
  1185. padding-left: 10px;
  1186. padding-right: 10px;
  1187. justify-content: center;
  1188. cursor: pointer;
  1189. user-select: none;
  1190. white-space: nowrap;
  1191. &:hover,
  1192. &:focus {
  1193. filter: brightness(95%);
  1194. }
  1195. &.is-success {
  1196. background-color: var(--green) !important;
  1197. border-width: 0;
  1198. color: var(--white);
  1199. }
  1200. &.is-primary {
  1201. background-color: var(--primary-color) !important;
  1202. border-width: 0;
  1203. color: var(--white);
  1204. }
  1205. &.is-danger {
  1206. background-color: var(--dark-red) !important;
  1207. border-width: 0;
  1208. color: var(--white);
  1209. }
  1210. &.is-info {
  1211. background-color: var(--primary-color) !important;
  1212. border-width: 0;
  1213. color: var(--white);
  1214. }
  1215. &.is-warning {
  1216. background-color: var(--yellow) !important;
  1217. border-width: 0;
  1218. color: rgba(0, 0, 0, 0.7);
  1219. }
  1220. &.is-dark {
  1221. background-color: var(--dark-grey-2);
  1222. border-width: 0;
  1223. color: var(--light-grey);
  1224. }
  1225. &.is-fullwidth {
  1226. display: flex;
  1227. width: 100%;
  1228. }
  1229. &.disabled {
  1230. filter: grayscale(1);
  1231. cursor: not-allowed;
  1232. }
  1233. }
  1234. .input,
  1235. .textarea {
  1236. width: 100%;
  1237. padding-left: 8px;
  1238. padding-right: 8px;
  1239. line-height: 24px;
  1240. font-size: 14px;
  1241. border-radius: @border-radius;
  1242. box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
  1243. border: 1px solid var(--light-grey-2);
  1244. }
  1245. .input,
  1246. .button {
  1247. height: 36px;
  1248. }
  1249. .textarea {
  1250. display: block;
  1251. line-height: 1.2;
  1252. padding: 10px;
  1253. max-height: 600px;
  1254. min-height: 120px;
  1255. min-width: 100%;
  1256. resize: vertical;
  1257. }
  1258. .icon {
  1259. height: 24px;
  1260. width: 24px;
  1261. line-height: 24px;
  1262. margin-left: 4px;
  1263. margin-right: -2px;
  1264. }
  1265. .fadein-helpbox-enter-active {
  1266. transition-duration: 0.3s;
  1267. transition-timing-function: ease-in;
  1268. }
  1269. .fadein-helpbox-leave-active {
  1270. transition-duration: 0.3s;
  1271. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  1272. }
  1273. .fadein-helpbox-enter-to,
  1274. .fadein-helpbox-leave {
  1275. max-height: 100px;
  1276. overflow: hidden;
  1277. }
  1278. .fadein-helpbox-enter,
  1279. .fadein-helpbox-leave-to {
  1280. overflow: hidden;
  1281. max-height: 0;
  1282. }
  1283. .control {
  1284. margin-bottom: 5px !important;
  1285. &.is-grouped {
  1286. display: flex;
  1287. & > .control {
  1288. &.select.is-expanded > select {
  1289. width: 100%;
  1290. }
  1291. & > input,
  1292. & > select,
  1293. & > .button,
  1294. &.label {
  1295. border-radius: 0;
  1296. }
  1297. &:first-child {
  1298. & > input,
  1299. & > select,
  1300. & > .button,
  1301. &.label {
  1302. border-radius: @border-radius 0 0 @border-radius;
  1303. }
  1304. }
  1305. &:last-child {
  1306. & > input,
  1307. & > select,
  1308. & > .button,
  1309. &.label {
  1310. border-radius: 0 @border-radius @border-radius 0;
  1311. }
  1312. }
  1313. }
  1314. }
  1315. &.is-expanded {
  1316. flex: 1;
  1317. }
  1318. &.has-addons {
  1319. display: flex;
  1320. .button {
  1321. border-radius: 0;
  1322. margin-right: -1px;
  1323. &:first-child {
  1324. border-radius: @border-radius 0 0 @border-radius;
  1325. }
  1326. &:last-child {
  1327. border-radius: 0 @border-radius @border-radius 0;
  1328. padding-left: 10px;
  1329. }
  1330. &.dropdown-toggle {
  1331. padding-left: 5px;
  1332. padding-right: 5px;
  1333. }
  1334. }
  1335. .input {
  1336. margin-right: -1px;
  1337. &:first-child {
  1338. border-radius: @border-radius 0 0 @border-radius;
  1339. }
  1340. }
  1341. }
  1342. }
  1343. .input-with-button {
  1344. .control {
  1345. margin-right: 0px !important;
  1346. }
  1347. input,
  1348. select {
  1349. width: 100%;
  1350. height: 36px;
  1351. border-radius: @border-radius 0 0 @border-radius;
  1352. border-right: 0;
  1353. border-color: var(--light-grey-3);
  1354. }
  1355. .button {
  1356. height: 36px;
  1357. border-radius: 0 @border-radius @border-radius 0;
  1358. }
  1359. }
  1360. .page-title {
  1361. margin: 0 0 50px 0;
  1362. }
  1363. .material-icons {
  1364. user-select: none;
  1365. -webkit-user-select: none;
  1366. }
  1367. .icon-with-button {
  1368. margin-right: 3px;
  1369. font-size: 18px;
  1370. }
  1371. .verified-song {
  1372. font-size: 17px;
  1373. color: var(--primary-color);
  1374. }
  1375. .section-title,
  1376. h4.section-title {
  1377. font-size: 26px;
  1378. font-weight: 600;
  1379. margin: 0px;
  1380. }
  1381. .section-description {
  1382. font-size: 16px;
  1383. font-weight: 400;
  1384. margin-bottom: 10px !important;
  1385. }
  1386. .section-horizontal-rule {
  1387. margin: 15px 0 30px 0;
  1388. }
  1389. .section-margin-bottom {
  1390. height: 30px;
  1391. }
  1392. .margin-top-zero {
  1393. margin-top: 0 !important;
  1394. }
  1395. .margin-bottom-zero {
  1396. margin-bottom: 0 !important;
  1397. }
  1398. /** Universial items e.g. playlist items, queue items, activity items */
  1399. .item-draggable {
  1400. cursor: move;
  1401. }
  1402. .universal-item {
  1403. display: flex;
  1404. flex-direction: row;
  1405. flex-grow: 1;
  1406. align-items: center;
  1407. justify-content: space-between;
  1408. padding: 7.5px;
  1409. border: 1px solid var(--light-grey-3);
  1410. border-radius: @border-radius;
  1411. overflow: hidden;
  1412. .item-thumbnail {
  1413. width: 65px;
  1414. height: 65px;
  1415. margin: -7.5px;
  1416. border-radius: @border-radius 0 0 @border-radius;
  1417. }
  1418. .item-title {
  1419. font-size: 20px;
  1420. overflow: hidden;
  1421. text-overflow: ellipsis;
  1422. white-space: nowrap;
  1423. }
  1424. .item-description {
  1425. font-size: 14px;
  1426. overflow: hidden;
  1427. text-overflow: ellipsis;
  1428. white-space: nowrap;
  1429. }
  1430. .universal-item-actions {
  1431. display: flex;
  1432. flex-direction: row;
  1433. margin-left: 10px;
  1434. justify-content: center;
  1435. @media screen and (max-width: 800px) {
  1436. flex-wrap: wrap;
  1437. }
  1438. .action-dropdown-icon {
  1439. display: flex;
  1440. color: var(--primary-color);
  1441. }
  1442. .icons-group {
  1443. display: flex;
  1444. align-items: center;
  1445. a {
  1446. padding: 0;
  1447. }
  1448. }
  1449. .button {
  1450. width: 146px;
  1451. }
  1452. i,
  1453. span {
  1454. cursor: pointer;
  1455. &:not(:first-child) {
  1456. margin-left: 5px;
  1457. }
  1458. }
  1459. .play-icon,
  1460. .added-to-playlist-icon {
  1461. color: var(--green);
  1462. }
  1463. .edit-icon,
  1464. .view-icon,
  1465. .add-to-playlist-icon,
  1466. .add-to-queue-icon {
  1467. color: var(--primary-color);
  1468. }
  1469. .hide-icon {
  1470. color: var(--light-grey-3);
  1471. }
  1472. .stop-icon,
  1473. .delete-icon {
  1474. color: var(--dark-red);
  1475. }
  1476. .report-icon {
  1477. color: var(--yellow);
  1478. }
  1479. }
  1480. }
  1481. .save-button-mixin {
  1482. min-width: 200px;
  1483. &:disabled {
  1484. background-color: var(--light-grey) !important;
  1485. color: var(--black);
  1486. }
  1487. }
  1488. .save-button-transition-enter-active {
  1489. transition: all 0.1s ease;
  1490. }
  1491. .save-button-transition-enter {
  1492. transform: translateX(20px);
  1493. opacity: 0;
  1494. }
  1495. .youtube-icon {
  1496. margin-right: 3px;
  1497. height: 20px;
  1498. width: 20px;
  1499. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  1500. mask: url("/assets/social/youtube.svg") no-repeat center;
  1501. background-color: var(--youtube);
  1502. }
  1503. #forgot-password {
  1504. justify-content: flex-start;
  1505. margin: 5px 0;
  1506. }
  1507. .steps-fade-leave-active {
  1508. display: none;
  1509. }
  1510. .steps-fade-enter-active,
  1511. .steps-fade-leave-active {
  1512. transition: all 0.3s ease;
  1513. }
  1514. .steps-fade-enter-from,
  1515. .steps-fade-leave-to {
  1516. opacity: 0;
  1517. }
  1518. .skip-step {
  1519. background-color: var(--grey-3);
  1520. color: var(--white);
  1521. }
  1522. #steps {
  1523. display: flex;
  1524. align-items: center;
  1525. justify-content: center;
  1526. height: 50px;
  1527. margin-top: 36px;
  1528. @media screen and (max-width: 300px) {
  1529. display: none;
  1530. }
  1531. .step {
  1532. display: flex;
  1533. align-items: center;
  1534. justify-content: center;
  1535. border-radius: 100%;
  1536. border: 1px solid var(--dark-grey);
  1537. min-width: 50px;
  1538. min-height: 50px;
  1539. background-color: var(--white);
  1540. font-size: 30px;
  1541. user-select: none;
  1542. &.selected {
  1543. background-color: var(--primary-color);
  1544. color: var(--white) !important;
  1545. border: 0;
  1546. }
  1547. }
  1548. .divider {
  1549. display: flex;
  1550. justify-content: center;
  1551. width: 180px;
  1552. height: 1px;
  1553. background-color: var(--dark-grey);
  1554. }
  1555. }
  1556. /* This class is used for content-box in ResetPassword, but not in RemoveAccount. This is because ResetPassword uses transitions and RemoveAccount does not */
  1557. .content-box-wrapper {
  1558. margin-top: 90px;
  1559. width: 100%;
  1560. display: flex;
  1561. align-items: center;
  1562. }
  1563. .content-box {
  1564. border-radius: @border-radius;
  1565. background-color: var(--white);
  1566. border: 1px solid var(--dark-grey);
  1567. max-width: 580px;
  1568. padding: 40px;
  1569. flex: 1;
  1570. @media screen and (max-width: 300px) {
  1571. margin-top: 30px;
  1572. padding: 30px 20px;
  1573. }
  1574. }
  1575. .content-box-optional-helper {
  1576. margin-top: 15px;
  1577. color: var(--primary-color);
  1578. font-size: 16px;
  1579. a {
  1580. color: var(--primary-color);
  1581. }
  1582. }
  1583. .content-box-title {
  1584. font-size: 25px;
  1585. color: var(--black);
  1586. }
  1587. .content-box-description {
  1588. font-size: 14px;
  1589. color: var(--dark-grey);
  1590. }
  1591. .content-box-inputs {
  1592. margin-top: 35px;
  1593. .input-with-button {
  1594. .button {
  1595. width: 105px;
  1596. }
  1597. @media screen and (max-width: 450px) {
  1598. flex-direction: column;
  1599. }
  1600. }
  1601. label {
  1602. font-size: 11px;
  1603. }
  1604. #change-password-button {
  1605. margin-top: 36px;
  1606. width: 175px;
  1607. }
  1608. }
  1609. #password-visibility-container {
  1610. display: flex;
  1611. align-items: center;
  1612. a {
  1613. width: 0;
  1614. margin-left: -30px;
  1615. z-index: 0;
  1616. top: 2px;
  1617. position: relative;
  1618. color: var(--light-grey-1);
  1619. }
  1620. }
  1621. .news-item {
  1622. font-family: "Karla";
  1623. border-radius: @border-radius;
  1624. padding: 20px;
  1625. border: unset !important;
  1626. box-shadow: @box-shadow;
  1627. * {
  1628. font-family: Karla, Arial, sans-serif;
  1629. font-size: 16px;
  1630. }
  1631. h1 {
  1632. font-size: 40px;
  1633. &:first-of-type {
  1634. margin-top: 0;
  1635. }
  1636. }
  1637. h2 {
  1638. font-size: 30px;
  1639. }
  1640. h3 {
  1641. font-size: 25px;
  1642. }
  1643. h4,
  1644. h5,
  1645. h6 {
  1646. font-size: 20px;
  1647. }
  1648. h1,
  1649. h2,
  1650. h3,
  1651. h4,
  1652. h5,
  1653. h6 {
  1654. margin: 10px 0;
  1655. }
  1656. ul {
  1657. list-style: unset;
  1658. }
  1659. li {
  1660. margin-left: 30px;
  1661. }
  1662. blockquote {
  1663. padding: 0px 15px;
  1664. color: var(--grey-2);
  1665. border-left: 0.25em solid var(--light-grey-2);
  1666. }
  1667. code {
  1668. font-style: italic;
  1669. }
  1670. hr {
  1671. margin: 10px 0;
  1672. }
  1673. }
  1674. .checkbox-control {
  1675. display: flex;
  1676. flex-direction: row;
  1677. align-items: center;
  1678. p {
  1679. margin-left: 10px;
  1680. }
  1681. .switch {
  1682. position: relative;
  1683. display: inline-block;
  1684. flex-shrink: 0;
  1685. width: 40px;
  1686. height: 24px;
  1687. }
  1688. .switch input {
  1689. opacity: 0;
  1690. width: 0;
  1691. height: 0;
  1692. }
  1693. .slider {
  1694. position: absolute;
  1695. cursor: pointer;
  1696. top: 0;
  1697. left: 0;
  1698. right: 0;
  1699. bottom: 0;
  1700. background-color: var(--light-grey-3);
  1701. transition: 0.2s;
  1702. border-radius: 34px;
  1703. }
  1704. .slider:before {
  1705. position: absolute;
  1706. content: "";
  1707. height: 16px;
  1708. width: 16px;
  1709. left: 4px;
  1710. bottom: 4px;
  1711. background-color: var(--white);
  1712. transition: 0.2s;
  1713. border-radius: 50%;
  1714. }
  1715. input:checked + .slider {
  1716. background-color: var(--primary-color);
  1717. }
  1718. input:focus + .slider {
  1719. box-shadow: 0 0 1px var(--primary-color);
  1720. }
  1721. input:checked + .slider:before {
  1722. transform: translateX(16px);
  1723. }
  1724. }
  1725. html {
  1726. &,
  1727. * {
  1728. scrollbar-color: var(--primary-color) transparent;
  1729. scrollbar-width: thin;
  1730. }
  1731. &.night-mode {
  1732. &,
  1733. * {
  1734. scrollbar-color: var(--light-grey) transparent !important;
  1735. }
  1736. &::-webkit-scrollbar-thumb,
  1737. ::-webkit-scrollbar-thumb {
  1738. background-color: var(--light-grey);
  1739. }
  1740. ::-webkit-scrollbar-track {
  1741. background-color: var(--dark-grey-3);
  1742. }
  1743. }
  1744. div {
  1745. ::-webkit-scrollbar-track {
  1746. background-color: transparent !important;
  1747. }
  1748. }
  1749. }
  1750. ::-webkit-scrollbar {
  1751. height: 10px;
  1752. width: 10px;
  1753. }
  1754. ::-webkit-scrollbar-track {
  1755. background-color: var(--light-grey-2);
  1756. }
  1757. ::-webkit-scrollbar-thumb {
  1758. background-color: var(--primary-color);
  1759. }
  1760. ::-webkit-scrollbar-corner {
  1761. background-color: transparent;
  1762. }
  1763. :disabled,
  1764. .disabled {
  1765. cursor: not-allowed;
  1766. }
  1767. .pill {
  1768. background-color: var(--light-grey);
  1769. color: var(--primary-color);
  1770. padding: 5px 10px;
  1771. border-radius: @border-radius;
  1772. font-size: 14px;
  1773. font-weight: 600;
  1774. white-space: nowrap;
  1775. margin-top: 5px;
  1776. box-shadow: @box-shadow;
  1777. transition: all 0.2s ease-in-out;
  1778. &:hover,
  1779. &:focus {
  1780. filter: brightness(95%);
  1781. }
  1782. &:not(:last-of-type) {
  1783. margin-right: 5px;
  1784. }
  1785. }
  1786. </style>