App.vue 36 KB

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