App.vue 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043
  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 (Object.keys(this.currentlyActive).length !== 0)
  152. this.closeCurrentModal();
  153. }
  154. });
  155. this.disconnectedMessage = new Toast({
  156. content: "Could not connect to the server.",
  157. persistent: true,
  158. interactable: false
  159. });
  160. this.disconnectedMessage.hide();
  161. ws.onConnect(() => {
  162. this.socketConnected = true;
  163. this.socket.dispatch("users.getPreferences", res => {
  164. if (res.status === "success") {
  165. const { preferences } = res.data;
  166. this.changeAutoSkipDisliked(preferences.autoSkipDisliked);
  167. this.changeNightmode(preferences.nightmode);
  168. this.changeActivityLogPublic(preferences.activityLogPublic);
  169. this.changeAnonymousSongRequests(
  170. preferences.anonymousSongRequests
  171. );
  172. this.changeActivityWatch(preferences.activityWatch);
  173. if (this.nightmode) this.enableNightmode();
  174. else this.disableNightmode();
  175. }
  176. });
  177. this.socket.on("keep.event:user.session.deleted", () =>
  178. window.location.reload()
  179. );
  180. });
  181. ws.onDisconnect(true, () => {
  182. this.socketConnected = false;
  183. });
  184. this.apiDomain = await lofig.get("backend.apiDomain");
  185. this.$router.isReady().then(() => {
  186. if (this.$route.query.err) {
  187. let { err } = this.$route.query;
  188. err = err
  189. .replace(new RegExp("<", "g"), "&lt;")
  190. .replace(new RegExp(">", "g"), "&gt;");
  191. this.$router.push({ query: {} });
  192. new Toast({ content: err, timeout: 20000 });
  193. }
  194. if (this.$route.query.msg) {
  195. let { msg } = this.$route.query;
  196. msg = msg
  197. .replace(new RegExp("<", "g"), "&lt;")
  198. .replace(new RegExp(">", "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="scss">
  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: 5px;
  712. z-index: 10000000;
  713. }
  714. .night-mode {
  715. .tippy-box {
  716. border: 1px solid var(--light-grey-3);
  717. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25),
  718. 0 10px 10px rgba(0, 0, 0, 0.22);
  719. background-color: var(--white);
  720. .tippy-content {
  721. color: var(--black);
  722. }
  723. &[data-theme~="songActions"],
  724. &[data-theme~="dropdown"],
  725. &[data-theme~="search"],
  726. &[data-theme~="stationSettings"] {
  727. background-color: var(--dark-grey-2);
  728. border: 0 !important;
  729. }
  730. &[data-theme~="songActions"] {
  731. background-color: var(--dark-grey-2);
  732. border: 0 !important;
  733. i,
  734. a {
  735. color: var(--white);
  736. }
  737. .youtube-icon {
  738. background-color: var(--white);
  739. }
  740. }
  741. &[data-theme~="dropdown"] {
  742. background-color: var(--dark-grey-2);
  743. border: 0 !important;
  744. .nav-dropdown-items {
  745. .nav-item {
  746. background-color: var(--dark-grey);
  747. &:focus {
  748. outline-color: var(--dark-grey);
  749. }
  750. p {
  751. color: var(--white);
  752. }
  753. }
  754. }
  755. }
  756. &[data-theme~="search"] {
  757. background-color: var(--dark-grey-2);
  758. border: 0 !important;
  759. }
  760. &[data-theme~="info"] p {
  761. color: var(--black) !important;
  762. }
  763. }
  764. .tippy-box[data-placement^="top"] {
  765. &[data-theme~="songActions"],
  766. &[data-theme~="dropdown"],
  767. &[data-theme~="search"] {
  768. > .tippy-arrow::before {
  769. border-top-color: var(--dark-grey-2);
  770. }
  771. }
  772. }
  773. .tippy-box[data-placement^="bottom"] {
  774. &[data-theme~="songActions"],
  775. &[data-theme~="dropdown"],
  776. &[data-theme~="search"],
  777. &[data-theme~="stationSettings"] {
  778. > .tippy-arrow::before {
  779. border-bottom-color: var(--dark-grey-2);
  780. }
  781. }
  782. }
  783. .tippy-box[data-placement^="left"] {
  784. &[data-theme~="songActions"],
  785. &[data-theme~="dropdown"],
  786. &[data-theme~="search"] {
  787. > .tippy-arrow::before {
  788. border-left-color: var(--dark-grey-2);
  789. }
  790. }
  791. }
  792. .tippy-box[data-placement^="right"] {
  793. &[data-theme~="songActions"],
  794. &[data-theme~="dropdown"],
  795. &[data-theme~="search"] {
  796. > .tippy-arrow::before {
  797. border-right-color: var(--dark-grey-2);
  798. }
  799. }
  800. }
  801. }
  802. .tippy-box[data-theme~="info"] {
  803. font-size: 12px;
  804. letter-spacing: 1px;
  805. }
  806. .tippy-box[data-theme~="quickConfirm"] {
  807. background-color: var(--dark-red);
  808. border: 0;
  809. .tippy-content {
  810. padding: 0;
  811. }
  812. a {
  813. padding: 15px;
  814. line-height: 30px;
  815. color: var(--white);
  816. border-bottom: 0;
  817. font-size: 15px;
  818. font-weight: 600;
  819. &:hover,
  820. &:focus {
  821. filter: brightness(90%);
  822. }
  823. }
  824. }
  825. .tippy-box[data-theme~="songActions"] {
  826. font-size: 15px;
  827. padding: 5px 10px;
  828. border: 1px solid var(--light-grey-3);
  829. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  830. background-color: var(--white);
  831. .button {
  832. width: 146px;
  833. }
  834. i,
  835. a {
  836. display: inline-block;
  837. cursor: pointer;
  838. color: var(--dark-grey);
  839. vertical-align: middle;
  840. &:hover,
  841. &:focus {
  842. filter: brightness(90%);
  843. }
  844. &:not(:first) {
  845. margin-left: 5px;
  846. }
  847. }
  848. .play-icon,
  849. .added-to-playlist-icon {
  850. color: var(--green);
  851. }
  852. .edit-icon,
  853. .view-icon,
  854. .add-to-playlist-icon,
  855. .add-to-queue-icon {
  856. color: var(--primary-color);
  857. }
  858. .hide-icon {
  859. color: var(--light-grey-3);
  860. }
  861. .stop-icon,
  862. .delete-icon {
  863. color: var(--dark-red);
  864. }
  865. .report-icon {
  866. color: var(--yellow);
  867. }
  868. }
  869. .tippy-box[data-placement^="top"] {
  870. &[data-theme~="songActions"],
  871. &[data-theme~="dropdown"],
  872. &[data-theme~="search"] {
  873. > .tippy-arrow::before {
  874. border-top-color: var(--white);
  875. }
  876. }
  877. &[data-theme~="quickConfirm"] > .tippy-arrow::before {
  878. border-top-color: var(--dark-red);
  879. }
  880. }
  881. .tippy-box[data-placement^="bottom"] {
  882. &[data-theme~="songActions"],
  883. &[data-theme~="dropdown"],
  884. &[data-theme~="stationSettings"],
  885. &[data-theme~="search"] {
  886. > .tippy-arrow::before {
  887. border-bottom-color: var(--white);
  888. }
  889. }
  890. &[data-theme~="quickConfirm"] > .tippy-arrow::before {
  891. border-bottom-color: var(--dark-red);
  892. }
  893. }
  894. .tippy-box[data-placement^="left"] {
  895. &[data-theme~="songActions"],
  896. &[data-theme~="dropdown"],
  897. &[data-theme~="search"] {
  898. > .tippy-arrow::before {
  899. border-left-color: var(--white);
  900. }
  901. }
  902. &[data-theme~="quickConfirm"] > .tippy-arrow::before {
  903. border-left-color: var(--dark-red);
  904. }
  905. }
  906. .tippy-box[data-placement^="right"] {
  907. &[data-theme~="songActions"],
  908. &[data-theme~="dropdown"],
  909. &[data-theme~="search"] {
  910. > .tippy-arrow::before {
  911. border-right-color: var(--white);
  912. }
  913. }
  914. &[data-theme~="quickConfirm"] > .tippy-arrow::before {
  915. border-right-color: var(--dark-red);
  916. }
  917. }
  918. .tippy-box[data-theme~="stationSettings"] {
  919. border: 1px solid var(--light-grey-3);
  920. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  921. background-color: var(--white);
  922. button:not(:last-of-type) {
  923. margin-bottom: 5px;
  924. }
  925. }
  926. .tippy-box[data-theme~="dropdown"] {
  927. font-size: 15px;
  928. padding: 0;
  929. border: 1px solid var(--light-grey-3);
  930. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  931. background-color: var(--white);
  932. color: var(--dark-grey);
  933. width: 350px;
  934. .tippy-content {
  935. padding: 0;
  936. }
  937. .nav-dropdown-items {
  938. max-height: 220px;
  939. overflow-y: auto;
  940. padding: 10px;
  941. .nav-item {
  942. width: 100%;
  943. justify-content: flex-start;
  944. border: 0;
  945. padding: 8px 4px;
  946. font-size: 15.5px;
  947. min-height: 36px;
  948. background: var(--light-grey);
  949. border-radius: 5px;
  950. cursor: pointer;
  951. .checkbox-control {
  952. display: flex;
  953. flex-direction: row;
  954. align-items: center;
  955. overflow-wrap: anywhere;
  956. margin: 0 !important;
  957. p {
  958. margin-left: 10px;
  959. }
  960. .switch {
  961. position: relative;
  962. display: inline-block;
  963. flex-shrink: 0;
  964. width: 40px;
  965. height: 24px;
  966. }
  967. .switch input {
  968. opacity: 0;
  969. width: 0;
  970. height: 0;
  971. }
  972. .slider {
  973. width: 100%;
  974. position: absolute;
  975. cursor: pointer;
  976. top: 0;
  977. left: 0;
  978. right: 0;
  979. bottom: 0;
  980. background-color: var(--light-grey-3);
  981. transition: 0.2s;
  982. border-radius: 34px;
  983. &.disabled {
  984. cursor: not-allowed;
  985. }
  986. }
  987. .slider:before {
  988. position: absolute;
  989. content: "";
  990. height: 16px;
  991. width: 16px;
  992. left: 4px;
  993. bottom: 4px;
  994. background-color: var(--white);
  995. transition: 0.2s;
  996. border-radius: 50%;
  997. }
  998. input:checked + .slider {
  999. background-color: var(--primary-color);
  1000. }
  1001. input:focus + .slider {
  1002. box-shadow: 0 0 1px var(--primary-color);
  1003. }
  1004. input:checked + .slider:before {
  1005. transform: translateX(16px);
  1006. }
  1007. }
  1008. &:focus {
  1009. outline-color: var(--light-grey-3);
  1010. }
  1011. &:not(:last-of-type) {
  1012. margin-bottom: 5px;
  1013. }
  1014. }
  1015. }
  1016. .tippy-content > span {
  1017. display: flex;
  1018. flex-direction: column;
  1019. button.nav-item {
  1020. &:not(:last-of-type) {
  1021. margin-bottom: 10px;
  1022. }
  1023. }
  1024. }
  1025. #create-playlist {
  1026. margin: 10px 10px 10px 10px;
  1027. width: unset;
  1028. }
  1029. }
  1030. .tippy-box[data-theme~="search"] {
  1031. font-size: 15px;
  1032. padding: 0;
  1033. border: 1px solid var(--light-grey-3);
  1034. box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  1035. background-color: var(--white);
  1036. color: var(--dark-grey);
  1037. width: 100% !important;
  1038. max-width: 600px !important;
  1039. max-height: calc(100vh - 300px);
  1040. overflow-y: auto;
  1041. .tippy-content {
  1042. padding: 0;
  1043. & > span {
  1044. display: flex;
  1045. flex-direction: column;
  1046. padding: 5px;
  1047. }
  1048. }
  1049. }
  1050. .has-text-centered {
  1051. text-align: center;
  1052. }
  1053. .select {
  1054. position: relative;
  1055. &:after {
  1056. content: " ";
  1057. border: 1.5px solid var(--primary-color);
  1058. border-right: 0;
  1059. border-top: 0;
  1060. height: 7px;
  1061. pointer-events: none;
  1062. position: absolute;
  1063. transform: rotate(-45deg);
  1064. width: 7px;
  1065. margin-top: -6px;
  1066. right: 16px;
  1067. top: 50%;
  1068. }
  1069. select {
  1070. height: 36px;
  1071. background-color: var(--white);
  1072. border: 1px solid var(--light-grey-2);
  1073. color: var(--dark-grey-2);
  1074. appearance: none;
  1075. border-radius: 3px;
  1076. font-size: 14px;
  1077. line-height: 24px;
  1078. padding-left: 8px;
  1079. position: relative;
  1080. padding-right: 36px;
  1081. cursor: pointer;
  1082. }
  1083. }
  1084. .checkbox {
  1085. height: 25px;
  1086. width: 25px;
  1087. input[type="checkbox"] {
  1088. height: 25px;
  1089. width: 25px;
  1090. background-color: var(--white);
  1091. border: 1px solid var(--light-grey-2);
  1092. appearance: none;
  1093. border-radius: 3px;
  1094. cursor: pointer;
  1095. position: relative;
  1096. &:checked {
  1097. &:before {
  1098. content: "";
  1099. position: absolute;
  1100. top: 4px;
  1101. right: 7px;
  1102. background-color: var(--primary-color);
  1103. width: 4px;
  1104. height: 16px;
  1105. transform: rotate(45deg);
  1106. }
  1107. &:after {
  1108. content: "";
  1109. position: absolute;
  1110. top: 12px;
  1111. left: 2px;
  1112. background-color: var(--primary-color);
  1113. width: 10px;
  1114. height: 4px;
  1115. transform: rotate(45deg);
  1116. }
  1117. }
  1118. }
  1119. }
  1120. .button:focus,
  1121. .button:active {
  1122. border-color: var(--light-grey-2) !important;
  1123. }
  1124. .input:focus,
  1125. .input:active,
  1126. .textarea:focus,
  1127. .textarea:active,
  1128. .select select:focus,
  1129. .select select:active {
  1130. border-color: var(--primary-color) !important;
  1131. }
  1132. button.delete:focus {
  1133. background-color: rgba(10, 10, 10, 0.3);
  1134. }
  1135. .tag {
  1136. padding-right: 6px !important;
  1137. }
  1138. #tab-selection,
  1139. .tab-selection {
  1140. overflow-x: auto;
  1141. .button {
  1142. white-space: nowrap;
  1143. }
  1144. }
  1145. .table {
  1146. background-color: var(--white);
  1147. color: var(--dark-grey);
  1148. width: 100%;
  1149. border-collapse: collapse;
  1150. border-spacing: 0;
  1151. border-radius: 5px;
  1152. thead th {
  1153. padding: 5px 10px;
  1154. text-align: left;
  1155. font-weight: 600;
  1156. color: var(--grey-3);
  1157. }
  1158. tr {
  1159. &:nth-child(even) {
  1160. background-color: #fafafa;
  1161. }
  1162. &:hover,
  1163. &:focus {
  1164. background-color: var(--light-grey);
  1165. }
  1166. }
  1167. }
  1168. .button {
  1169. border: 1px solid var(--light-grey-2);
  1170. background-color: var(--white);
  1171. color: var(--dark-grey-2);
  1172. border-radius: 3px;
  1173. line-height: 24px;
  1174. align-items: center;
  1175. display: inline-flex;
  1176. font-size: 14px;
  1177. padding-left: 10px;
  1178. padding-right: 10px;
  1179. justify-content: center;
  1180. cursor: pointer;
  1181. user-select: none;
  1182. white-space: nowrap;
  1183. &:hover,
  1184. &:focus {
  1185. filter: brightness(95%);
  1186. }
  1187. &.is-success {
  1188. background-color: var(--green) !important;
  1189. border-width: 0;
  1190. color: var(--white);
  1191. }
  1192. &.is-primary {
  1193. background-color: var(--primary-color) !important;
  1194. border-width: 0;
  1195. color: var(--white);
  1196. }
  1197. &.is-danger {
  1198. background-color: var(--dark-red) !important;
  1199. border-width: 0;
  1200. color: var(--white);
  1201. }
  1202. &.is-info {
  1203. background-color: var(--primary-color) !important;
  1204. border-width: 0;
  1205. color: var(--white);
  1206. }
  1207. &.is-warning {
  1208. background-color: var(--yellow) !important;
  1209. border-width: 0;
  1210. color: rgba(0, 0, 0, 0.7);
  1211. }
  1212. &.is-dark {
  1213. background-color: var(--dark-grey-2);
  1214. border-width: 0;
  1215. color: var(--light-grey);
  1216. }
  1217. &.is-fullwidth {
  1218. display: flex;
  1219. width: 100%;
  1220. }
  1221. &.disabled {
  1222. filter: grayscale(1);
  1223. cursor: not-allowed;
  1224. }
  1225. }
  1226. .input,
  1227. .textarea {
  1228. width: 100%;
  1229. padding-left: 8px;
  1230. padding-right: 8px;
  1231. line-height: 24px;
  1232. font-size: 14px;
  1233. border-radius: 3px;
  1234. box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
  1235. border: 1px solid var(--light-grey-2);
  1236. }
  1237. .input,
  1238. .button {
  1239. height: 36px;
  1240. }
  1241. .textarea {
  1242. display: block;
  1243. line-height: 1.2;
  1244. padding: 10px;
  1245. max-height: 600px;
  1246. min-height: 120px;
  1247. min-width: 100%;
  1248. resize: vertical;
  1249. }
  1250. .icon {
  1251. height: 24px;
  1252. width: 24px;
  1253. line-height: 24px;
  1254. margin-left: 4px;
  1255. margin-right: -2px;
  1256. }
  1257. .fadein-helpbox-enter-active {
  1258. transition-duration: 0.3s;
  1259. transition-timing-function: ease-in;
  1260. }
  1261. .fadein-helpbox-leave-active {
  1262. transition-duration: 0.3s;
  1263. transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
  1264. }
  1265. .fadein-helpbox-enter-to,
  1266. .fadein-helpbox-leave {
  1267. max-height: 100px;
  1268. overflow: hidden;
  1269. }
  1270. .fadein-helpbox-enter,
  1271. .fadein-helpbox-leave-to {
  1272. overflow: hidden;
  1273. max-height: 0;
  1274. }
  1275. .control {
  1276. margin-bottom: 5px !important;
  1277. &.is-grouped {
  1278. display: flex;
  1279. }
  1280. &.is-expanded {
  1281. flex: 1;
  1282. }
  1283. &.has-addons {
  1284. display: flex;
  1285. .button {
  1286. border-radius: 0;
  1287. margin-right: -1px;
  1288. &:first-child {
  1289. border-radius: 3px 0 0 3px;
  1290. }
  1291. &:last-child {
  1292. border-radius: 0 3px 3px 0;
  1293. padding-left: 10px;
  1294. }
  1295. }
  1296. .input {
  1297. margin-right: -1px;
  1298. &:first-child {
  1299. border-radius: 3px 0 0 3px;
  1300. }
  1301. }
  1302. }
  1303. }
  1304. .input-with-button {
  1305. .control {
  1306. margin-right: 0px !important;
  1307. }
  1308. input,
  1309. select {
  1310. width: 100%;
  1311. height: 36px;
  1312. border-radius: 3px 0 0 3px;
  1313. border-right: 0;
  1314. border-color: var(--light-grey-3);
  1315. }
  1316. .button {
  1317. height: 36px;
  1318. border-radius: 0 3px 3px 0;
  1319. }
  1320. }
  1321. .page-title {
  1322. margin: 0 0 50px 0;
  1323. }
  1324. .material-icons {
  1325. user-select: none;
  1326. -webkit-user-select: none;
  1327. }
  1328. .icon-with-button {
  1329. margin-right: 3px;
  1330. font-size: 18px;
  1331. }
  1332. .verified-song {
  1333. font-size: 17px;
  1334. color: var(--primary-color);
  1335. }
  1336. .section-title,
  1337. h4.section-title {
  1338. font-size: 26px;
  1339. font-weight: 600;
  1340. margin: 0px;
  1341. }
  1342. .section-description {
  1343. font-size: 16px;
  1344. font-weight: 400;
  1345. margin-bottom: 10px !important;
  1346. }
  1347. .section-horizontal-rule {
  1348. margin: 15px 0 30px 0;
  1349. }
  1350. .section-margin-bottom {
  1351. height: 30px;
  1352. }
  1353. .margin-top-zero {
  1354. margin-top: 0 !important;
  1355. }
  1356. .margin-bottom-zero {
  1357. margin-bottom: 0 !important;
  1358. }
  1359. /** Universial items e.g. playlist items, queue items, activity items */
  1360. .item-draggable {
  1361. cursor: move;
  1362. }
  1363. .universal-item {
  1364. display: flex;
  1365. flex-direction: row;
  1366. flex-grow: 1;
  1367. align-items: center;
  1368. justify-content: space-between;
  1369. padding: 7.5px;
  1370. border: 1px solid var(--light-grey-3);
  1371. border-radius: 3px;
  1372. overflow: hidden;
  1373. .item-thumbnail {
  1374. width: 65px;
  1375. height: 65px;
  1376. margin: -7.5px;
  1377. border-radius: 3px 0 0 3px;
  1378. }
  1379. .item-title {
  1380. font-size: 20px;
  1381. overflow: hidden;
  1382. text-overflow: ellipsis;
  1383. white-space: nowrap;
  1384. }
  1385. .item-description {
  1386. font-size: 14px;
  1387. overflow: hidden;
  1388. text-overflow: ellipsis;
  1389. white-space: nowrap;
  1390. }
  1391. .universal-item-actions {
  1392. display: flex;
  1393. flex-direction: row;
  1394. margin-left: 10px;
  1395. justify-content: center;
  1396. @media screen and (max-width: 800px) {
  1397. flex-wrap: wrap;
  1398. }
  1399. .action-dropdown-icon {
  1400. display: flex;
  1401. color: var(--primary-color);
  1402. }
  1403. .icons-group {
  1404. display: flex;
  1405. align-items: center;
  1406. a {
  1407. padding: 0;
  1408. }
  1409. }
  1410. .button {
  1411. width: 146px;
  1412. }
  1413. i,
  1414. span {
  1415. cursor: pointer;
  1416. &:not(:first-child) {
  1417. margin-left: 5px;
  1418. }
  1419. }
  1420. .play-icon,
  1421. .added-to-playlist-icon {
  1422. color: var(--green);
  1423. }
  1424. .edit-icon,
  1425. .view-icon,
  1426. .add-to-playlist-icon,
  1427. .add-to-queue-icon {
  1428. color: var(--primary-color);
  1429. }
  1430. .hide-icon {
  1431. color: var(--light-grey-3);
  1432. }
  1433. .stop-icon,
  1434. .delete-icon {
  1435. color: var(--dark-red);
  1436. }
  1437. .report-icon {
  1438. color: var(--yellow);
  1439. }
  1440. }
  1441. }
  1442. .save-button-mixin {
  1443. min-width: 200px;
  1444. &:disabled {
  1445. background-color: var(--light-grey) !important;
  1446. color: var(--black);
  1447. }
  1448. }
  1449. .save-button-transition-enter-active {
  1450. transition: all 0.1s ease;
  1451. }
  1452. .save-button-transition-enter {
  1453. transform: translateX(20px);
  1454. opacity: 0;
  1455. }
  1456. .youtube-icon {
  1457. margin-right: 3px;
  1458. height: 20px;
  1459. width: 20px;
  1460. -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
  1461. mask: url("/assets/social/youtube.svg") no-repeat center;
  1462. background-color: var(--youtube);
  1463. }
  1464. #forgot-password {
  1465. justify-content: flex-start;
  1466. margin: 5px 0;
  1467. }
  1468. .steps-fade-leave-active {
  1469. display: none;
  1470. }
  1471. .steps-fade-enter-active,
  1472. .steps-fade-leave-active {
  1473. transition: all 0.3s ease;
  1474. }
  1475. .steps-fade-enter-from,
  1476. .steps-fade-leave-to {
  1477. opacity: 0;
  1478. }
  1479. .skip-step {
  1480. background-color: var(--grey-3);
  1481. color: var(--white);
  1482. }
  1483. #steps {
  1484. display: flex;
  1485. align-items: center;
  1486. justify-content: center;
  1487. height: 50px;
  1488. margin-top: 36px;
  1489. @media screen and (max-width: 300px) {
  1490. display: none;
  1491. }
  1492. .step {
  1493. display: flex;
  1494. align-items: center;
  1495. justify-content: center;
  1496. border-radius: 100%;
  1497. border: 1px solid var(--dark-grey);
  1498. min-width: 50px;
  1499. min-height: 50px;
  1500. background-color: var(--white);
  1501. font-size: 30px;
  1502. user-select: none;
  1503. &.selected {
  1504. background-color: var(--primary-color);
  1505. color: var(--white) !important;
  1506. border: 0;
  1507. }
  1508. }
  1509. .divider {
  1510. display: flex;
  1511. justify-content: center;
  1512. width: 180px;
  1513. height: 1px;
  1514. background-color: var(--dark-grey);
  1515. }
  1516. }
  1517. /* This class is used for content-box in ResetPassword, but not in RemoveAccount. This is because ResetPassword uses transitions and RemoveAccount does not */
  1518. .content-box-wrapper {
  1519. margin-top: 90px;
  1520. width: 100%;
  1521. display: flex;
  1522. align-items: center;
  1523. }
  1524. .content-box {
  1525. border-radius: 3px;
  1526. background-color: var(--white);
  1527. border: 1px solid var(--dark-grey);
  1528. max-width: 580px;
  1529. padding: 40px;
  1530. flex: 1;
  1531. @media screen and (max-width: 300px) {
  1532. margin-top: 30px;
  1533. padding: 30px 20px;
  1534. }
  1535. }
  1536. .content-box-optional-helper {
  1537. margin-top: 15px;
  1538. color: var(--primary-color);
  1539. font-size: 16px;
  1540. a {
  1541. color: var(--primary-color);
  1542. }
  1543. }
  1544. .content-box-title {
  1545. font-size: 25px;
  1546. color: var(--black);
  1547. }
  1548. .content-box-description {
  1549. font-size: 14px;
  1550. color: var(--dark-grey);
  1551. }
  1552. .content-box-inputs {
  1553. margin-top: 35px;
  1554. .input-with-button {
  1555. .button {
  1556. width: 105px;
  1557. }
  1558. @media screen and (max-width: 450px) {
  1559. flex-direction: column;
  1560. }
  1561. }
  1562. label {
  1563. font-size: 11px;
  1564. }
  1565. #change-password-button {
  1566. margin-top: 36px;
  1567. width: 175px;
  1568. }
  1569. }
  1570. #password-visibility-container {
  1571. display: flex;
  1572. align-items: center;
  1573. a {
  1574. width: 0;
  1575. margin-left: -30px;
  1576. z-index: 0;
  1577. top: 2px;
  1578. position: relative;
  1579. color: var(--light-grey-1);
  1580. }
  1581. }
  1582. .news-item {
  1583. font-family: "Karla";
  1584. border-radius: 5px;
  1585. padding: 20px;
  1586. border: unset !important;
  1587. box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
  1588. * {
  1589. font-family: Karla, Arial, sans-serif;
  1590. font-size: 16px;
  1591. }
  1592. h1 {
  1593. font-size: 40px;
  1594. &:first-of-type {
  1595. margin-top: 0;
  1596. }
  1597. }
  1598. h2 {
  1599. font-size: 30px;
  1600. }
  1601. h3 {
  1602. font-size: 25px;
  1603. }
  1604. h4,
  1605. h5,
  1606. h6 {
  1607. font-size: 20px;
  1608. }
  1609. h1,
  1610. h2,
  1611. h3,
  1612. h4,
  1613. h5,
  1614. h6 {
  1615. margin: 10px 0;
  1616. }
  1617. ul {
  1618. list-style: unset;
  1619. }
  1620. li {
  1621. margin-left: 30px;
  1622. }
  1623. blockquote {
  1624. padding: 0px 15px;
  1625. color: var(--grey-2);
  1626. border-left: 0.25em solid var(--light-grey-2);
  1627. }
  1628. code {
  1629. font-style: italic;
  1630. }
  1631. }
  1632. .checkbox-control {
  1633. display: flex;
  1634. flex-direction: row;
  1635. align-items: center;
  1636. p {
  1637. margin-left: 10px;
  1638. }
  1639. .switch {
  1640. position: relative;
  1641. display: inline-block;
  1642. flex-shrink: 0;
  1643. width: 40px;
  1644. height: 24px;
  1645. }
  1646. .switch input {
  1647. opacity: 0;
  1648. width: 0;
  1649. height: 0;
  1650. }
  1651. .slider {
  1652. position: absolute;
  1653. cursor: pointer;
  1654. top: 0;
  1655. left: 0;
  1656. right: 0;
  1657. bottom: 0;
  1658. background-color: var(--light-grey-3);
  1659. transition: 0.2s;
  1660. border-radius: 34px;
  1661. }
  1662. .slider:before {
  1663. position: absolute;
  1664. content: "";
  1665. height: 16px;
  1666. width: 16px;
  1667. left: 4px;
  1668. bottom: 4px;
  1669. background-color: var(--white);
  1670. transition: 0.2s;
  1671. border-radius: 50%;
  1672. }
  1673. input:checked + .slider {
  1674. background-color: var(--primary-color);
  1675. }
  1676. input:focus + .slider {
  1677. box-shadow: 0 0 1px var(--primary-color);
  1678. }
  1679. input:checked + .slider:before {
  1680. transform: translateX(16px);
  1681. }
  1682. }
  1683. html {
  1684. &,
  1685. * {
  1686. scrollbar-color: var(--primary-color) transparent;
  1687. scrollbar-width: thin;
  1688. }
  1689. &.night-mode {
  1690. &,
  1691. * {
  1692. scrollbar-color: var(--light-grey) transparent !important;
  1693. }
  1694. &::-webkit-scrollbar-thumb,
  1695. ::-webkit-scrollbar-thumb {
  1696. background-color: var(--light-grey);
  1697. }
  1698. ::-webkit-scrollbar-track {
  1699. background-color: var(--dark-grey-3);
  1700. }
  1701. }
  1702. div {
  1703. ::-webkit-scrollbar-track {
  1704. background-color: transparent !important;
  1705. }
  1706. }
  1707. }
  1708. ::-webkit-scrollbar {
  1709. height: 10px;
  1710. width: 10px;
  1711. }
  1712. ::-webkit-scrollbar-track {
  1713. background-color: var(--light-grey-2);
  1714. }
  1715. ::-webkit-scrollbar-thumb {
  1716. background-color: var(--primary-color);
  1717. }
  1718. ::-webkit-scrollbar-corner {
  1719. background-color: transparent;
  1720. }
  1721. :disabled,
  1722. .disabled {
  1723. cursor: not-allowed;
  1724. }
  1725. .pill {
  1726. background-color: var(--light-grey);
  1727. color: var(--primary-color);
  1728. padding: 5px 10px;
  1729. border-radius: 5px;
  1730. font-size: 14px;
  1731. font-weight: 600;
  1732. white-space: nowrap;
  1733. margin-top: 5px;
  1734. box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.1);
  1735. transition: all 0.2s ease-in-out;
  1736. &:hover,
  1737. &:focus {
  1738. filter: brightness(95%);
  1739. }
  1740. &:not(:last-of-type) {
  1741. margin-right: 5px;
  1742. }
  1743. }
  1744. </style>