App.vue 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006
  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. }
  1695. }
  1696. ::-webkit-scrollbar {
  1697. height: 10px;
  1698. width: 10px;
  1699. }
  1700. ::-webkit-scrollbar-track {
  1701. background-color: transparent;
  1702. }
  1703. ::-webkit-scrollbar-thumb {
  1704. background-color: var(--primary-color);
  1705. }
  1706. ::-webkit-scrollbar-corner {
  1707. background-color: transparent;
  1708. }
  1709. :disabled,
  1710. .disabled {
  1711. cursor: not-allowed;
  1712. }
  1713. </style>