1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086 |
- <script setup lang="ts">
- import { useRouter } from "vue-router";
- import { defineAsyncComponent, ref, watch, onMounted } from "vue";
- import Toast from "toasters";
- import { storeToRefs } from "pinia";
- import { GenericResponse } from "@musare_types/actions/GenericActions";
- import { GetPreferencesResponse } from "@musare_types/actions/UsersActions";
- import { NewestResponse } from "@musare_types/actions/NewsActions";
- import { useWebsocketsStore } from "@/stores/websockets";
- import { useUserAuthStore } from "@/stores/userAuth";
- import { useUserPreferencesStore } from "@/stores/userPreferences";
- import { useModalsStore } from "@/stores/modals";
- import aw from "@/aw";
- import keyboardShortcuts from "@/keyboardShortcuts";
- const ModalManager = defineAsyncComponent(
- () => import("@/components/ModalManager.vue")
- );
- const LongJobs = defineAsyncComponent(
- () => import("@/components/LongJobs.vue")
- );
- const BannedPage = defineAsyncComponent(() => import("@/pages/Banned.vue"));
- const FallingSnow = defineAsyncComponent(
- () => import("@/components/FallingSnow.vue")
- );
- const router = useRouter();
- const { socket } = useWebsocketsStore();
- const userAuthStore = useUserAuthStore();
- const userPreferencesStore = useUserPreferencesStore();
- const modalsStore = useModalsStore();
- const apiDomain = ref("");
- const socketConnected = ref(true);
- const keyIsDown = ref("");
- const broadcastChannel = ref();
- const christmas = ref(false);
- const disconnectedMessage = ref();
- const { loggedIn, banned } = storeToRefs(userAuthStore);
- const { nightmode, activityWatch } = storeToRefs(userPreferencesStore);
- const {
- changeNightmode,
- changeAutoSkipDisliked,
- changeActivityLogPublic,
- changeAnonymousSongRequests,
- changeActivityWatch
- } = userPreferencesStore;
- const { activeModals } = storeToRefs(modalsStore);
- const { openModal, closeCurrentModal } = modalsStore;
- const toggleNightMode = () => {
- if (loggedIn.value) {
- socket.dispatch(
- "users.updatePreferences",
- { nightmode: !nightmode.value },
- (res: GenericResponse) => {
- if (res.status !== "success") new Toast(res.message);
- }
- );
- }
- changeNightmode(!nightmode.value);
- };
- const enableNightmode = () => {
- document.getElementsByTagName("html")[0].classList.add("night-mode");
- };
- const disableNightmode = () => {
- document.getElementsByTagName("html")[0].classList.remove("night-mode");
- };
- const enableChristmasMode = () => {
- document.getElementsByTagName("html")[0].classList.add("christmas-mode");
- };
- watch(socketConnected, connected => {
- if (!connected && !userAuthStore.banned) disconnectedMessage.value.show();
- else disconnectedMessage.value.hide();
- });
- watch(banned, () => {
- disconnectedMessage.value.hide();
- });
- watch(nightmode, enabled => {
- if (enabled) enableNightmode();
- else disableNightmode();
- });
- watch(activityWatch, enabled => {
- if (enabled) aw.enable();
- else aw.disable();
- });
- onMounted(async () => {
- window
- .matchMedia("(prefers-color-scheme: dark)")
- .addEventListener("change", e => {
- if (e.matches === !nightmode.value) toggleNightMode();
- });
- if (!loggedIn.value) {
- lofig.get("cookie.SIDname").then(sid => {
- broadcastChannel.value = new BroadcastChannel(`${sid}.user_login`);
- broadcastChannel.value.onmessage = (data: boolean) => {
- if (data) {
- broadcastChannel.value.close();
- window.location.reload();
- }
- };
- });
- }
- document.onkeydown = (ev: KeyboardEvent) => {
- const event = ev || window.event;
- const { keyCode } = event;
- const shift = event.shiftKey;
- const ctrl = event.ctrlKey;
- const alt = event.altKey;
- const identifier = `${keyCode}.${shift}.${ctrl}`;
- if (keyIsDown.value === identifier) return;
- keyIsDown.value = identifier;
- keyboardShortcuts.handleKeyDown(event, keyCode, shift, ctrl, alt);
- };
- document.onkeyup = () => {
- keyIsDown.value = "";
- };
- // ctrl + alt + n
- keyboardShortcuts.registerShortcut("nightmode", {
- keyCode: 78,
- ctrl: true,
- alt: true,
- handler: () => toggleNightMode()
- });
- keyboardShortcuts.registerShortcut("closeModal", {
- keyCode: 27,
- shift: false,
- ctrl: false,
- handler: () => {
- if (Object.keys(activeModals.value).length !== 0)
- closeCurrentModal();
- }
- });
- disconnectedMessage.value = new Toast({
- content: "Could not connect to the server.",
- persistent: true,
- interactable: false
- });
- disconnectedMessage.value.hide();
- socket.onConnect(() => {
- socketConnected.value = true;
- socket.dispatch(
- "users.getPreferences",
- (res: GetPreferencesResponse) => {
- if (res.status === "success") {
- const { preferences } = res.data;
- changeAutoSkipDisliked(preferences.autoSkipDisliked);
- changeNightmode(preferences.nightmode);
- changeActivityLogPublic(preferences.activityLogPublic);
- changeAnonymousSongRequests(
- preferences.anonymousSongRequests
- );
- changeActivityWatch(preferences.activityWatch);
- if (nightmode.value) enableNightmode();
- else disableNightmode();
- }
- }
- );
- socket.on("keep.event:user.session.deleted", () =>
- window.location.reload()
- );
- const newUser = !localStorage.getItem("firstVisited");
- socket.dispatch("news.newest", newUser, (res: NewestResponse) => {
- if (res.status !== "success") return;
- const { news } = res.data;
- if (news) {
- if (newUser) {
- openModal({ modal: "whatIsNew", props: { news } });
- } else if (localStorage.getItem("whatIsNew")) {
- if (
- parseInt(localStorage.getItem("whatIsNew") as string) <
- news.createdAt
- ) {
- openModal({
- modal: "whatIsNew",
- props: { news }
- });
- localStorage.setItem(
- "whatIsNew",
- news.createdAt.toString()
- );
- }
- } else {
- if (
- localStorage.getItem("firstVisited") &&
- parseInt(
- localStorage.getItem("firstVisited") as string
- ) < news.createdAt
- )
- openModal({
- modal: "whatIsNew",
- props: { news }
- });
- localStorage.setItem(
- "whatIsNew",
- news.createdAt.toString()
- );
- }
- }
- if (!localStorage.getItem("firstVisited"))
- localStorage.setItem("firstVisited", Date.now().toString());
- });
- }, true);
- socket.onDisconnect(() => {
- socketConnected.value = false;
- }, true);
- apiDomain.value = await lofig.get("backend.apiDomain");
- router.isReady().then(() => {
- lofig
- .get("siteSettings.githubAuthentication")
- .then((enabled: boolean) => {
- if (enabled && localStorage.getItem("github_redirect")) {
- router.push(
- localStorage.getItem("github_redirect") as string
- );
- localStorage.removeItem("github_redirect");
- }
- });
- });
- if (localStorage.getItem("nightmode") === "true") {
- changeNightmode(true);
- enableNightmode();
- } else changeNightmode(false);
- lofig.get("siteSettings.christmas").then((enabled: boolean) => {
- if (enabled) {
- christmas.value = true;
- enableChristmasMode();
- }
- });
- });
- </script>
- <template>
- <div class="upper-container">
- <banned-page v-if="banned" />
- <div v-else class="upper-container">
- <router-view :key="$route.fullPath" class="main-container" />
- </div>
- <falling-snow v-if="christmas" />
- <modal-manager />
- <long-jobs />
- </div>
- </template>
- <style lang="less">
- @import "normalize.css/normalize.css";
- @import "tippy.js/dist/tippy.css";
- @import "tippy.js/animations/scale.css";
- @import "vue-draggable-list/dist/style.css";
- :root {
- --primary-color: var(--blue);
- --blue: rgb(2, 166, 242);
- --light-blue: rgb(163, 224, 255);
- --dark-blue: rgb(0, 102, 244);
- --teal: rgb(0, 209, 178);
- --purple: rgb(143, 40, 140);
- --light-purple: rgb(170, 141, 216);
- --yellow: rgb(241, 196, 15);
- --light-pink: rgb(228, 155, 166);
- --dark-pink: rgb(234, 72, 97);
- --orange: rgb(255, 94, 0);
- --dark-orange: rgb(250, 50, 0);
- --green: rgb(68, 189, 50);
- --red: rgb(231, 77, 60);
- --dark-red: rgb(235, 41, 19);
- --white: rgb(255, 255, 255);
- --black: rgb(0, 0, 0);
- --light-grey: rgb(245, 245, 245);
- --light-grey-2: rgb(221, 221, 221);
- --light-grey-3: rgb(195, 193, 195);
- --grey: rgb(107, 107, 107);
- --grey-2: rgb(113, 113, 113);
- --grey-3: rgb(126, 126, 126);
- --dark-grey: rgb(77, 77, 77);
- --dark-grey-2: rgb(51, 51, 51);
- --dark-grey-3: rgb(34, 34, 34);
- --dark-grey-4: rgb(26, 26, 26);
- --youtube: rgb(189, 46, 46);
- }
- .night-mode {
- body {
- background-color: var(--black) !important;
- }
- div {
- color: var(--light-grey-2);
- }
- .input,
- .textarea,
- .select select {
- background-color: var(--dark-grey);
- border-color: var(--grey-3);
- color: var(--white);
- &::placeholder {
- color: var(--light-grey-3);
- }
- }
- .control.has-addons .button {
- background-color: var(--dark-grey-2);
- border: 0;
- i {
- color: var(--white);
- }
- }
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- color: var(--white) !important;
- }
- p:not(.help),
- label,
- .label {
- color: var(--light-grey-2) !important;
- }
- .section,
- .content {
- background-color: var(--dark-grey-3) !important;
- }
- .content-box,
- .step:not(.selected) {
- background-color: var(--dark-grey-3) !important;
- }
- .tippy-box[data-theme~="songActions"] {
- background-color: var(--dark-grey);
- }
- code {
- background-color: var(--dark-grey-2) !important;
- }
- .button.is-dark {
- background-color: var(--light-grey) !important;
- color: var(--dark-grey-2) !important;
- }
- .checkbox input[type="checkbox"] {
- background-color: var(--dark-grey);
- border-color: transparent;
- &:checked:before,
- &:checked:after {
- background-color: var(--white);
- }
- }
- .pill {
- background-color: var(--dark-grey);
- color: var(--primary-color);
- }
- }
- .christmas-mode {
- --primary-color: var(--red);
- }
- /* inter-regular - latin */
- @font-face {
- font-family: "Inter";
- font-style: normal;
- font-weight: 400;
- src: url("/fonts/inter-v3-latin-regular.eot"); /* IE9 Compat Modes */
- src: local(""),
- url("/fonts/inter-v3-latin-regular.eot?#iefix")
- format("embedded-opentype"),
- /* IE6-IE8 */ url("/fonts/inter-v3-latin-regular.woff2") format("woff2"),
- /* Super Modern Browsers */ url("/fonts/inter-v3-latin-regular.woff")
- format("woff"),
- /* Modern Browsers */ url("/fonts/inter-v3-latin-regular.ttf")
- format("truetype"),
- /* Safari, Android, iOS */
- url("/fonts/inter-v3-latin-regular.svg#Inter") format("svg"); /* Legacy iOS */
- }
- /* inter-200 - latin */
- @font-face {
- font-family: "Inter";
- font-style: normal;
- font-weight: 200;
- src: url("/fonts/inter-v3-latin-200.eot"); /* IE9 Compat Modes */
- src: local(""),
- url("/fonts/inter-v3-latin-200.eot?#iefix") format("embedded-opentype"),
- /* IE6-IE8 */ url("/fonts/inter-v3-latin-200.woff2") format("woff2"),
- /* Super Modern Browsers */ url("/fonts/inter-v3-latin-200.woff")
- format("woff"),
- /* Modern Browsers */ url("/fonts/inter-v3-latin-200.ttf")
- format("truetype"),
- /* Safari, Android, iOS */ url("/fonts/inter-v3-latin-200.svg#Inter")
- format("svg"); /* Legacy iOS */
- }
- /* inter-800 - latin */
- @font-face {
- font-family: "Inter";
- font-style: normal;
- font-weight: 800;
- src: url("/fonts/inter-v3-latin-800.eot"); /* IE9 Compat Modes */
- src: local(""),
- url("/fonts/inter-v3-latin-800.eot?#iefix") format("embedded-opentype"),
- /* IE6-IE8 */ url("/fonts/inter-v3-latin-800.woff2") format("woff2"),
- /* Super Modern Browsers */ url("/fonts/inter-v3-latin-800.woff")
- format("woff"),
- /* Modern Browsers */ url("/fonts/inter-v3-latin-800.ttf")
- format("truetype"),
- /* Safari, Android, iOS */ url("/fonts/inter-v3-latin-800.svg#Inter")
- format("svg"); /* Legacy iOS */
- }
- /* inter-600 - latin */
- @font-face {
- font-family: "Inter";
- font-style: normal;
- font-weight: 600;
- src: url("/fonts/inter-v3-latin-600.eot"); /* IE9 Compat Modes */
- src: local(""),
- url("/fonts/inter-v3-latin-600.eot?#iefix") format("embedded-opentype"),
- /* IE6-IE8 */ url("/fonts/inter-v3-latin-600.woff2") format("woff2"),
- /* Super Modern Browsers */ url("/fonts/inter-v3-latin-600.woff")
- format("woff"),
- /* Modern Browsers */ url("/fonts/inter-v3-latin-600.ttf")
- format("truetype"),
- /* Safari, Android, iOS */ url("/fonts/inter-v3-latin-600.svg#Inter")
- format("svg"); /* Legacy iOS */
- }
- /* pacifico-regular - latin */
- @font-face {
- font-family: "Pacifico";
- font-style: normal;
- font-weight: 400;
- src: url("/fonts/pacifico-v17-latin-regular.eot"); /* IE9 Compat Modes */
- src: local(""),
- url("/fonts/pacifico-v17-latin-regular.eot?#iefix")
- format("embedded-opentype"),
- /* IE6-IE8 */ url("/fonts/pacifico-v17-latin-regular.woff2")
- format("woff2"),
- /* Super Modern Browsers */
- url("/fonts/pacifico-v17-latin-regular.woff") format("woff"),
- /* Modern Browsers */ url("/fonts/pacifico-v17-latin-regular.ttf")
- format("truetype"),
- /* Safari, Android, iOS */
- url("/fonts/pacifico-v17-latin-regular.svg#Pacifico") format("svg"); /* Legacy iOS */
- }
- @font-face {
- font-family: "Material Icons";
- font-style: normal;
- font-weight: 400;
- src: url(/fonts/MaterialIcons-Regular.ttf); /* For IE6-8 */
- src: local("Material Icons"), local("MaterialIcons-Regular"),
- url(/fonts/MaterialIcons-Regular.ttf) format("truetype");
- }
- .material-icons {
- font-family: "Material Icons";
- font-weight: normal;
- font-style: normal;
- font-size: 24px; /* Preferred icon size */
- display: inline-block;
- line-height: 1;
- text-transform: none;
- letter-spacing: normal;
- word-wrap: normal;
- white-space: nowrap;
- direction: ltr;
- /* Support for all WebKit browsers. */
- -webkit-font-smoothing: antialiased;
- /* Support for Safari and Chrome. */
- text-rendering: optimizeLegibility;
- /* Support for Firefox. */
- -moz-osx-font-smoothing: grayscale;
- /* Support for IE. */
- font-feature-settings: "liga";
- }
- code {
- background-color: var(--light-grey) !important;
- color: var(--dark-red) !important;
- }
- #toasts-container {
- z-index: 10000 !important;
- .toast {
- font-weight: 600;
- z-index: 10000 !important;
- }
- }
- html {
- height: 100%;
- overflow: hidden;
- font-size: 14px;
- }
- body {
- background-color: var(--light-grey);
- color: var(--dark-grey);
- line-height: 1.4285714;
- font-size: 1rem;
- font-family: "Inter", Helvetica, Arial, sans-serif;
- height: 100%;
- max-width: 100%;
- overflow-y: auto !important;
- overflow-x: hidden;
- }
- .app {
- min-height: 100vh;
- position: relative;
- }
- #root {
- height: 100%;
- max-width: 100%;
- }
- .content-wrapper {
- /* padding: 60px 0 calc(230px + 60px) 0; */
- padding-top: 60px;
- }
- .column {
- display: flex;
- flex: 1 1 0;
- flex-direction: column;
- padding: 10px;
- }
- ul {
- list-style: none;
- margin: 0;
- display: block;
- }
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- font-family: "Inter", Helvetica, Arial, sans-serif;
- font-weight: 400;
- line-height: 1.1;
- a {
- font-weight: inherit;
- }
- }
- h1 {
- font-size: 4.2rem;
- line-height: 110%;
- margin: 2.1rem 0 1.68rem 0;
- }
- h2 {
- font-size: 3.56rem;
- line-height: 110%;
- margin: 1.78rem 0 1.424rem 0;
- }
- h3 {
- font-size: 2.92rem;
- line-height: 110%;
- margin: 1.46rem 0 1.168rem 0;
- }
- h4 {
- font-size: 2.28rem;
- line-height: 110%;
- margin: 1.14rem 0 0.912rem 0;
- }
- h5 {
- font-size: 1.64rem;
- line-height: 110%;
- margin: 0.82rem 0 0.656rem 0;
- }
- h6 {
- font-size: 1rem;
- line-height: 110%;
- margin: 0.5rem 0 0.4rem 0;
- }
- .content {
- h4 {
- line-height: 1.125;
- }
- }
- .thin {
- font-weight: 200;
- }
- .left {
- float: left !important;
- }
- .right {
- float: right !important;
- }
- .white {
- background-color: var(--white) !important;
- }
- .btn-search {
- font-size: 14px;
- }
- a.nav-item.is-tab {
- border-bottom: 1px solid transparent;
- border-top: 1px solid transparent;
- }
- .button.is-info {
- border-width: 0;
- color: var(--white);
- }
- strong {
- color: inherit;
- }
- hr {
- background-color: var(--light-grey-2);
- border: none;
- height: 1px;
- }
- p,
- button,
- input,
- select,
- textarea {
- font-family: "Inter", Helvetica, Arial, sans-serif;
- }
- input,
- select,
- textarea {
- outline: none;
- }
- .label {
- display: flex;
- font-weight: 700;
- &:not(:last-child) {
- margin-bottom: 5px;
- }
- }
- #page-title {
- margin-top: 0;
- font-size: 35px;
- text-align: center;
- }
- @media only screen and (min-width: 700px) {
- #page-title {
- margin: 0;
- margin-bottom: 30px;
- font-size: 40px;
- }
- }
- @media screen and (min-width: 980px) {
- .container {
- max-width: 960px;
- margin-left: auto;
- margin-right: auto;
- }
- }
- @media screen and (min-width: 1180px) {
- .container {
- max-width: 1200px;
- }
- }
- .upper-container {
- height: 100%;
- max-width: 100%;
- }
- .main-container {
- height: 100%;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- max-width: 100%;
- > .container {
- position: relative;
- flex: 1 0 auto;
- margin: 0 auto;
- max-width: 1200px;
- }
- }
- a {
- color: var(--primary-color);
- text-decoration: none;
- cursor: pointer;
- &:hover,
- &:focus {
- filter: brightness(90%);
- }
- }
- table {
- border-collapse: collapse;
- width: 100%;
- thead {
- td {
- border-width: 0 0 2px;
- }
- }
- td {
- border: 1px solid var(--light-grey-2);
- border-width: 0 0 1px;
- padding: 8px 10px;
- }
- tbody {
- tr:last-child {
- td {
- border-bottom-width: 0;
- }
- }
- }
- }
- img {
- max-width: 100%;
- }
- .absolute-a {
- width: 100%;
- height: 100%;
- position: absolute;
- top: 0;
- left: 0;
- }
- .alert {
- padding: 20px;
- color: var(--white);
- background-color: var(--dark-red);
- position: fixed;
- top: 50px;
- right: 50px;
- font-size: 2em;
- border-radius: @border-radius;
- z-index: 10000000;
- }
- .night-mode {
- .tippy-box {
- border: 1px solid var(--light-grey-3);
- box-shadow: @box-shadow-dropdown;
- background-color: var(--white);
- .tippy-content {
- color: var(--black);
- }
- &[data-theme~="songActions"],
- &[data-theme~="dropdown"],
- &[data-theme~="search"],
- &[data-theme~="stationSettings"] {
- background-color: var(--dark-grey-2);
- border: 0 !important;
- }
- &[data-theme~="songActions"] {
- background-color: var(--dark-grey-2);
- border: 0 !important;
- i,
- a {
- color: var(--white);
- }
- .youtube-icon {
- background-color: var(--white);
- }
- }
- &[data-theme~="dropdown"] {
- background-color: var(--dark-grey-2);
- border: 0 !important;
- .nav-dropdown-items {
- .nav-item {
- background-color: var(--dark-grey);
- &:focus {
- outline-color: var(--dark-grey);
- }
- p {
- color: var(--white);
- }
- }
- }
- }
- &[data-theme~="search"] {
- background-color: var(--dark-grey-2);
- border: 0 !important;
- }
- &[data-theme~="info"] p {
- color: var(--black) !important;
- }
- }
- .tippy-box[data-placement^="top"] {
- &[data-theme~="songActions"],
- &[data-theme~="dropdown"],
- &[data-theme~="search"] {
- > .tippy-arrow::before {
- border-top-color: var(--dark-grey-2);
- }
- }
- }
- .tippy-box[data-placement^="bottom"] {
- &[data-theme~="songActions"],
- &[data-theme~="dropdown"],
- &[data-theme~="search"],
- &[data-theme~="stationSettings"] {
- > .tippy-arrow::before {
- border-bottom-color: var(--dark-grey-2);
- }
- }
- }
- .tippy-box[data-placement^="left"] {
- &[data-theme~="songActions"],
- &[data-theme~="dropdown"],
- &[data-theme~="search"] {
- > .tippy-arrow::before {
- border-left-color: var(--dark-grey-2);
- }
- }
- }
- .tippy-box[data-placement^="right"] {
- &[data-theme~="songActions"],
- &[data-theme~="dropdown"],
- &[data-theme~="search"] {
- > .tippy-arrow::before {
- border-right-color: var(--dark-grey-2);
- }
- }
- }
- }
- .tippy-box[data-theme~="info"] {
- font-size: 12px;
- letter-spacing: 1px;
- }
- .tippy-box[data-theme~="quickConfirm"] {
- background-color: var(--dark-red);
- border: 0;
- .tippy-content {
- padding: 0;
- }
- a {
- padding: 15px;
- line-height: 30px;
- color: var(--white);
- border-bottom: 0;
- font-size: 15px;
- font-weight: 600;
- &:hover,
- &:focus {
- filter: brightness(90%);
- }
- }
- }
- .tippy-box[data-theme~="songActions"] {
- font-size: 15px;
- padding: 5px 10px;
- border: 1px solid var(--light-grey-3);
- box-shadow: @box-shadow-dropdown;
- background-color: var(--white);
- .button {
- width: 146px;
- }
- i,
- a {
- display: inline-block;
- cursor: pointer;
- color: var(--dark-grey);
- vertical-align: middle;
- &:hover,
- &:focus {
- filter: brightness(90%);
- }
- &:not(:first) {
- margin-left: 5px;
- }
- }
- .play-icon,
- .added-to-playlist-icon {
- color: var(--green);
- }
- .edit-icon,
- .view-icon,
- .add-to-playlist-icon,
- .add-to-queue-icon {
- color: var(--primary-color);
- }
- .hide-icon {
- color: var(--light-grey-3);
- }
- .stop-icon,
- .delete-icon {
- color: var(--dark-red);
- }
- .report-icon {
- color: var(--yellow);
- }
- }
- .tippy-box[data-placement^="top"] {
- &[data-theme~="songActions"],
- &[data-theme~="dropdown"],
- &[data-theme~="search"] {
- > .tippy-arrow::before {
- border-top-color: var(--white);
- }
- }
- &[data-theme~="quickConfirm"] > .tippy-arrow::before {
- border-top-color: var(--dark-red);
- }
- }
- .tippy-box[data-placement^="bottom"] {
- &[data-theme~="songActions"],
- &[data-theme~="dropdown"],
- &[data-theme~="stationSettings"],
- &[data-theme~="search"] {
- > .tippy-arrow::before {
- border-bottom-color: var(--white);
- }
- }
- &[data-theme~="quickConfirm"] > .tippy-arrow::before {
- border-bottom-color: var(--dark-red);
- }
- }
- .tippy-box[data-placement^="left"] {
- &[data-theme~="songActions"],
- &[data-theme~="dropdown"],
- &[data-theme~="search"] {
- > .tippy-arrow::before {
- border-left-color: var(--white);
- }
- }
- &[data-theme~="quickConfirm"] > .tippy-arrow::before {
- border-left-color: var(--dark-red);
- }
- }
- .tippy-box[data-placement^="right"] {
- &[data-theme~="songActions"],
- &[data-theme~="dropdown"],
- &[data-theme~="search"] {
- > .tippy-arrow::before {
- border-right-color: var(--white);
- }
- }
- &[data-theme~="quickConfirm"] > .tippy-arrow::before {
- border-right-color: var(--dark-red);
- }
- }
- .tippy-box[data-theme~="stationSettings"] {
- border: 1px solid var(--light-grey-3);
- box-shadow: @box-shadow-dropdown;
- background-color: var(--white);
- button:not(:last-of-type) {
- margin-bottom: 5px;
- }
- }
- .tippy-box[data-theme~="dropdown"] {
- font-size: 15px;
- padding: 0;
- border: 1px solid var(--light-grey-3);
- box-shadow: @box-shadow-dropdown;
- background-color: var(--white);
- color: var(--dark-grey);
- width: 350px;
- .tippy-content {
- padding: 0;
- }
- .nav-dropdown-items {
- max-height: 220px;
- overflow-y: auto;
- padding: 10px;
- .nav-item {
- width: 100%;
- justify-content: flex-start;
- border: 0;
- padding: 8px 4px;
- font-size: 15.5px;
- min-height: 36px;
- background: var(--light-grey);
- border-radius: @border-radius;
- cursor: pointer;
- .checkbox-control {
- display: flex;
- flex-direction: row;
- align-items: center;
- overflow-wrap: anywhere;
- margin: 0 !important;
- p {
- margin-left: 10px;
- }
- .switch {
- position: relative;
- display: inline-block;
- flex-shrink: 0;
- width: 40px;
- height: 24px;
- }
- .switch input {
- opacity: 0;
- width: 0;
- height: 0;
- }
- .slider {
- width: 100%;
- position: absolute;
- cursor: pointer;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: var(--light-grey-3);
- transition: 0.2s;
- border-radius: 34px;
- }
- .slider:before {
- position: absolute;
- content: "";
- height: 16px;
- width: 16px;
- left: 4px;
- bottom: 4px;
- background-color: var(--white);
- transition: 0.2s;
- border-radius: 50%;
- }
- input:checked + .slider {
- background-color: var(--primary-color);
- }
- input:focus + .slider {
- box-shadow: 0 0 1px var(--primary-color);
- }
- input:checked + .slider:before {
- transform: translateX(16px);
- }
- }
- &:focus {
- outline-color: var(--light-grey-3);
- }
- &:not(:last-of-type) {
- margin-bottom: 5px;
- }
- }
- }
- .tippy-content > span {
- display: flex;
- flex-direction: column;
- button.nav-item {
- &:not(:last-of-type) {
- margin-bottom: 10px;
- }
- }
- }
- #create-playlist {
- margin: 10px 10px 10px 10px;
- width: calc(100% - 20px);
- }
- }
- .tippy-box[data-theme~="search"] {
- font-size: 15px;
- padding: 0;
- border: 1px solid var(--light-grey-3);
- box-shadow: @box-shadow-dropdown;
- background-color: var(--white);
- color: var(--dark-grey);
- width: 100% !important;
- max-width: 600px !important;
- max-height: calc(100vh - 300px);
- overflow-y: auto;
- .tippy-content {
- padding: 0;
- & > span {
- display: flex;
- flex-direction: column;
- padding: 5px;
- }
- }
- }
- .has-text-centered {
- text-align: center;
- }
- .select {
- position: relative;
- &.is-expanded {
- width: 100%;
- }
- &.disabled,
- .disabled {
- filter: grayscale(1);
- cursor: not-allowed;
- }
- &:after {
- content: " ";
- border: 1.5px solid var(--primary-color);
- border-right: 0;
- border-top: 0;
- height: 7px;
- pointer-events: none;
- position: absolute;
- transform: rotate(-45deg);
- width: 7px;
- margin-top: -6px;
- right: 16px;
- top: 50%;
- }
- select {
- height: 36px;
- width: 100%;
- background-color: var(--white);
- border: 1px solid var(--light-grey-2);
- color: var(--dark-grey-2);
- appearance: none;
- border-radius: @border-radius;
- font-size: 14px;
- line-height: 24px;
- padding-left: 8px;
- position: relative;
- padding-right: 36px;
- cursor: pointer;
- }
- }
- .checkbox {
- height: 25px;
- width: 25px;
- input[type="checkbox"] {
- height: 25px;
- width: 25px;
- background-color: var(--white);
- border: 1px solid var(--light-grey-2);
- appearance: none;
- border-radius: @border-radius;
- cursor: pointer;
- position: relative;
- &:checked {
- &:before {
- content: "";
- position: absolute;
- top: 4px;
- right: 7px;
- background-color: var(--primary-color);
- width: 4px;
- height: 16px;
- transform: rotate(45deg);
- }
- &:after {
- content: "";
- position: absolute;
- top: 12px;
- left: 2px;
- background-color: var(--primary-color);
- width: 10px;
- height: 4px;
- transform: rotate(45deg);
- }
- }
- }
- }
- .button:focus,
- .button:active {
- border-color: var(--light-grey-2) !important;
- }
- .input:focus,
- .input:active,
- .textarea:focus,
- .textarea:active,
- .select select:focus,
- .select select:active {
- border-color: var(--primary-color) !important;
- }
- button.delete:focus {
- background-color: rgba(10, 10, 10, 0.3);
- }
- .tag {
- padding-right: 6px !important;
- }
- #tab-selection,
- .tab-selection {
- overflow-x: auto;
- .button {
- white-space: nowrap;
- }
- }
- .table {
- background-color: var(--white);
- color: var(--dark-grey);
- width: 100%;
- border-collapse: collapse;
- border-spacing: 0;
- border-radius: @border-radius;
- thead th {
- padding: 5px 10px;
- text-align: left;
- font-weight: 600;
- color: var(--grey-3);
- }
- tr {
- &:nth-child(even) {
- background-color: #fafafa;
- }
- &:hover,
- &:focus {
- background-color: var(--light-grey);
- }
- }
- }
- .button {
- border: 1px solid var(--light-grey-2);
- background-color: var(--white);
- color: var(--dark-grey-2);
- border-radius: @border-radius;
- line-height: 24px;
- align-items: center;
- display: inline-flex;
- font-size: 14px;
- padding-left: 10px;
- padding-right: 10px;
- justify-content: center;
- cursor: pointer;
- user-select: none;
- white-space: nowrap;
- &:hover,
- &:focus {
- filter: brightness(95%);
- }
- &.is-success {
- background-color: var(--green) !important;
- border-width: 0;
- color: var(--white);
- }
- &.is-primary {
- background-color: var(--primary-color) !important;
- border-width: 0;
- color: var(--white);
- }
- &.is-danger {
- background-color: var(--dark-red) !important;
- border-width: 0;
- color: var(--white);
- }
- &.is-info {
- background-color: var(--primary-color) !important;
- border-width: 0;
- color: var(--white);
- }
- &.is-warning {
- background-color: var(--yellow) !important;
- border-width: 0;
- color: rgba(0, 0, 0, 0.7);
- }
- &.is-dark {
- background-color: var(--dark-grey-2);
- border-width: 0;
- color: var(--light-grey);
- }
- &.is-fullwidth {
- display: flex;
- width: 100%;
- }
- &.disabled {
- filter: grayscale(1);
- cursor: not-allowed;
- }
- }
- .input,
- .textarea {
- width: 100%;
- padding-left: 8px;
- padding-right: 8px;
- line-height: 24px;
- font-size: 14px;
- border-radius: @border-radius;
- box-shadow: inset 0 1px 2px rgba(10, 10, 10, 0.1);
- border: 1px solid var(--light-grey-2);
- }
- .input,
- .button {
- height: 36px;
- }
- .textarea {
- display: block;
- line-height: 1.2;
- padding: 10px;
- max-height: 600px;
- min-height: 120px;
- min-width: 100%;
- resize: vertical;
- }
- .icon {
- height: 24px;
- width: 24px;
- line-height: 24px;
- margin-left: 4px;
- margin-right: -2px;
- }
- .fadein-helpbox-enter-active {
- transition-duration: 0.3s;
- transition-timing-function: ease-in;
- }
- .fadein-helpbox-leave-active {
- transition-duration: 0.3s;
- transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
- }
- .fadein-helpbox-enter-to,
- .fadein-helpbox-leave {
- max-height: 100px;
- overflow: hidden;
- }
- .fadein-helpbox-enter,
- .fadein-helpbox-leave-to {
- overflow: hidden;
- max-height: 0;
- }
- .control {
- margin-bottom: 5px !important;
- &.is-grouped {
- display: flex;
- & > .control {
- &.select.is-expanded > select {
- width: 100%;
- }
- & > input,
- & > select,
- & > .button,
- &.label {
- border-radius: 0;
- }
- &:first-child:not(:only-child) {
- & > input,
- & > select,
- & > .button,
- &.label {
- border-radius: @border-radius 0 0 @border-radius;
- }
- }
- &:last-child:not(:only-child) {
- & > input,
- & > select,
- & > .button,
- &.label {
- border-radius: 0 @border-radius @border-radius 0;
- }
- }
- &:only-child {
- & > input,
- & > select,
- & > .button,
- &.label {
- border-radius: @border-radius;
- }
- }
- }
- }
- &.is-expanded {
- flex: 1;
- }
- &.has-addons {
- display: flex;
- .button {
- border-radius: 0;
- margin-right: -1px;
- &:first-child {
- border-radius: @border-radius 0 0 @border-radius;
- }
- &:last-child {
- border-radius: 0 @border-radius @border-radius 0;
- padding-left: 10px;
- }
- &.dropdown-toggle {
- padding-left: 5px;
- padding-right: 5px;
- }
- }
- .input {
- margin-right: -1px;
- &:first-child {
- border-radius: @border-radius 0 0 @border-radius;
- }
- }
- }
- }
- .input-with-button {
- .control {
- margin-right: 0px !important;
- }
- input,
- select {
- width: 100%;
- height: 36px;
- border-radius: @border-radius 0 0 @border-radius;
- border-right: 0;
- border-color: var(--light-grey-3);
- }
- .button {
- height: 36px;
- border-radius: 0 @border-radius @border-radius 0;
- }
- }
- .page-title {
- margin: 0 0 50px 0;
- }
- .material-icons {
- user-select: none;
- -webkit-user-select: none;
- }
- .icon-with-button {
- margin-right: 3px;
- font-size: 18px;
- }
- .verified-song {
- font-size: 17px;
- color: var(--primary-color);
- }
- .section-title,
- h4.section-title {
- font-size: 26px;
- font-weight: 600;
- margin: 0px;
- }
- .section-description {
- font-size: 16px;
- font-weight: 400;
- margin-bottom: 10px !important;
- }
- .section-horizontal-rule {
- margin: 15px 0 30px 0;
- }
- .section-margin-bottom {
- height: 30px;
- }
- .margin-top-zero {
- margin-top: 0 !important;
- }
- .margin-bottom-zero {
- margin-bottom: 0 !important;
- }
- /** Universial items e.g. playlist items, queue items, activity items */
- .universal-item {
- display: flex;
- flex-direction: row;
- flex-grow: 1;
- align-items: center;
- justify-content: space-between;
- padding: 7.5px;
- border: 1px solid var(--light-grey-3);
- border-radius: @border-radius;
- overflow: hidden;
- .item-thumbnail {
- width: 65px;
- height: 65px;
- margin: -7.5px;
- border-radius: @border-radius 0 0 @border-radius;
- }
- .item-title {
- font-size: 20px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .item-description {
- font-size: 14px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .universal-item-actions {
- display: flex;
- flex-direction: row;
- margin-left: 10px;
- justify-content: center;
- @media screen and (max-width: 800px) {
- flex-wrap: wrap;
- }
- .action-dropdown-icon {
- display: flex;
- color: var(--primary-color);
- }
- .icons-group {
- display: flex;
- align-items: center;
- a {
- padding: 0;
- }
- }
- .button {
- width: 146px;
- }
- i,
- span {
- cursor: pointer;
- &:not(:first-child) {
- margin-left: 5px;
- }
- }
- .play-icon,
- .added-to-playlist-icon {
- color: var(--green);
- }
- .edit-icon,
- .view-icon,
- .add-to-playlist-icon,
- .add-to-queue-icon {
- color: var(--primary-color);
- }
- .hide-icon {
- color: var(--light-grey-3);
- }
- .stop-icon,
- .delete-icon {
- color: var(--dark-red);
- }
- .report-icon {
- color: var(--yellow);
- }
- }
- }
- .save-button-mixin {
- min-width: 200px;
- &:disabled {
- background-color: var(--light-grey) !important;
- color: var(--black);
- }
- }
- .save-button-transition-enter-active {
- transition: all 0.1s ease;
- }
- .save-button-transition-enter {
- transform: translateX(20px);
- opacity: 0;
- }
- .youtube-icon {
- margin-right: 3px;
- height: 20px;
- width: 20px;
- -webkit-mask: url("/assets/social/youtube.svg") no-repeat center;
- mask: url("/assets/social/youtube.svg") no-repeat center;
- background-color: var(--youtube);
- }
- #forgot-password {
- justify-content: flex-start;
- margin: 5px 0;
- }
- .steps-fade-leave-active {
- display: none;
- }
- .steps-fade-enter-active,
- .steps-fade-leave-active {
- transition: all 0.3s ease;
- }
- .steps-fade-enter-from,
- .steps-fade-leave-to {
- opacity: 0;
- }
- .skip-step {
- background-color: var(--grey-3);
- color: var(--white);
- }
- #steps {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 50px;
- margin-top: 36px;
- @media screen and (max-width: 300px) {
- display: none;
- }
- .step {
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 100%;
- border: 1px solid var(--dark-grey);
- min-width: 50px;
- min-height: 50px;
- background-color: var(--white);
- font-size: 30px;
- user-select: none;
- &.selected {
- background-color: var(--primary-color);
- color: var(--white) !important;
- border: 0;
- }
- }
- .divider {
- display: flex;
- justify-content: center;
- width: 180px;
- height: 1px;
- background-color: var(--dark-grey);
- }
- }
- /* This class is used for content-box in ResetPassword, but not in RemoveAccount. This is because ResetPassword uses transitions and RemoveAccount does not */
- .content-box-wrapper {
- margin-top: 90px;
- width: 100%;
- display: flex;
- align-items: center;
- }
- .content-box {
- border-radius: @border-radius;
- background-color: var(--white);
- border: 1px solid var(--dark-grey);
- max-width: 580px;
- padding: 40px;
- flex: 1;
- @media screen and (max-width: 300px) {
- margin-top: 30px;
- padding: 30px 20px;
- }
- }
- .content-box-optional-helper {
- margin-top: 15px;
- color: var(--primary-color);
- font-size: 16px;
- a {
- color: var(--primary-color);
- }
- }
- .content-box-title {
- font-size: 25px;
- color: var(--black);
- }
- .content-box-description {
- font-size: 14px;
- color: var(--dark-grey);
- }
- .content-box-inputs {
- margin-top: 35px;
- .input-with-button {
- .button {
- width: 105px;
- }
- @media screen and (max-width: 450px) {
- flex-direction: column;
- }
- }
- label {
- font-size: 11px;
- }
- #change-password-button {
- margin-top: 36px;
- width: 175px;
- }
- }
- #password-visibility-container {
- display: flex;
- align-items: center;
- a {
- width: 0;
- margin-left: -30px;
- z-index: 0;
- top: 2px;
- position: relative;
- color: var(--light-grey-1);
- }
- }
- .news-item {
- font-family: "Karla";
- border-radius: @border-radius;
- padding: 20px;
- border: unset !important;
- box-shadow: @box-shadow;
- * {
- font-family: Karla, Arial, sans-serif;
- font-size: 16px;
- }
- h1 {
- font-size: 40px;
- &:first-of-type {
- margin-top: 0;
- }
- }
- h2 {
- font-size: 30px;
- }
- h3 {
- font-size: 25px;
- }
- h4,
- h5,
- h6 {
- font-size: 20px;
- }
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- margin: 10px 0;
- }
- ul {
- list-style: unset;
- }
- li {
- margin-left: 30px;
- }
- blockquote {
- padding: 0px 15px;
- color: var(--grey-2);
- border-left: 0.25em solid var(--light-grey-2);
- }
- code {
- font-style: italic;
- }
- hr {
- margin: 10px 0;
- }
- }
- .checkbox-control {
- display: flex;
- flex-direction: row;
- align-items: center;
- p {
- margin-left: 10px;
- }
- .switch {
- position: relative;
- display: inline-block;
- flex-shrink: 0;
- width: 40px;
- height: 24px;
- }
- .switch input {
- opacity: 0;
- width: 0;
- height: 0;
- }
- .slider {
- position: absolute;
- cursor: pointer;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: var(--light-grey-3);
- transition: 0.2s;
- border-radius: 34px;
- &.disabled {
- cursor: not-allowed;
- }
- }
- .slider:before {
- position: absolute;
- content: "";
- height: 16px;
- width: 16px;
- left: 4px;
- bottom: 4px;
- background-color: var(--white);
- transition: 0.2s;
- border-radius: 50%;
- }
- input:checked + .slider {
- background-color: var(--primary-color);
- }
- input:focus + .slider {
- box-shadow: 0 0 1px var(--primary-color);
- }
- input:checked + .slider:before {
- transform: translateX(16px);
- }
- }
- html {
- &,
- * {
- scrollbar-color: var(--primary-color) transparent;
- scrollbar-width: thin;
- }
- &.night-mode {
- &,
- * {
- scrollbar-color: var(--light-grey) transparent !important;
- }
- &::-webkit-scrollbar-thumb,
- ::-webkit-scrollbar-thumb {
- background-color: var(--light-grey);
- }
- ::-webkit-scrollbar-track {
- background-color: var(--dark-grey-3);
- }
- }
- div {
- ::-webkit-scrollbar-track {
- background-color: transparent !important;
- }
- }
- }
- ::-webkit-scrollbar {
- height: 10px;
- width: 10px;
- }
- ::-webkit-scrollbar-track {
- background-color: var(--light-grey-2);
- }
- ::-webkit-scrollbar-thumb {
- background-color: var(--primary-color);
- }
- ::-webkit-scrollbar-corner {
- background-color: transparent;
- }
- :disabled,
- .disabled {
- cursor: not-allowed;
- }
- .pill {
- background-color: var(--light-grey);
- color: var(--primary-color);
- padding: 5px 10px;
- border-radius: @border-radius;
- font-size: 14px;
- font-weight: 600;
- white-space: nowrap;
- margin-top: 5px;
- box-shadow: @box-shadow;
- transition: all 0.2s ease-in-out;
- &:hover,
- &:focus {
- filter: brightness(95%);
- }
- &:not(:last-of-type) {
- margin-right: 5px;
- }
- }
- </style>
|