App.vue 36 KB

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