App.vue 36 KB

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