From 6f17a5d4a8fa4e9ea825a7aafefaec3b9fdfee68 Mon Sep 17 00:00:00 2001 From: yohlo Date: Fri, 11 Sep 2026 10:28:45 -0700 Subject: [PATCH] slide animation --- scripts/generate-sw.mjs | 1 - src/app/routes/__root.tsx | 3 ++- {public => src/app}/styles.css | 18 ++++-------------- 3 files changed, 6 insertions(+), 16 deletions(-) rename {public => src/app}/styles.css (82%) diff --git a/scripts/generate-sw.mjs b/scripts/generate-sw.mjs index a0dad01..943a142 100644 --- a/scripts/generate-sw.mjs +++ b/scripts/generate-sw.mjs @@ -13,7 +13,6 @@ const { count, size, warnings } = await generateSW({ 'icon-192x192.png', 'icon-512x512.png', 'site.webmanifest', - 'styles.css', 'push-handlers.js', ], // Hand-written Web Push handlers (public/push-handlers.js) are pulled into diff --git a/src/app/routes/__root.tsx b/src/app/routes/__root.tsx index 677f57d..3ebd006 100644 --- a/src/app/routes/__root.tsx +++ b/src/app/routes/__root.tsx @@ -31,6 +31,7 @@ import { getRootMeta } from "@/lib/i18n/meta"; import FullScreenLoader from "@/components/full-screen-loader"; import { CHROME_COLORS } from "@/lib/mantine/theme-colors"; import mantineCssUrl from '@mantine/core/styles.css?url' +import appStylesUrl from '../styles.css?url' import mantineDatesCssUrl from '@mantine/dates/styles.css?url' import mantineCarouselCssUrl from '@mantine/carousel/styles.css?url' import mantineTiptapCssUrl from '@mantine/tiptap/styles.css?url' @@ -101,6 +102,7 @@ export const Route = createRootRouteWithContext<{ }, { rel: "manifest", href: "/site.webmanifest" }, { rel: "icon", href: "/favicon.ico" }, + { rel: 'stylesheet', href: appStylesUrl }, { rel: 'stylesheet', href: mantineCssUrl }, { rel: 'stylesheet', href: mantineCarouselCssUrl }, { rel: 'stylesheet', href: mantineDatesCssUrl }, @@ -243,7 +245,6 @@ function RootDocument({ children }: { children: React.ReactNode }) { 'try{var d=document.documentElement,t=localStorage.getItem("flxn-theme");if(t&&t!=="default"){d.setAttribute("data-theme",t);}var s=localStorage.getItem("flxn-theme-scheme");if(s){d.setAttribute("data-mantine-color-scheme",s);}var f=JSON.parse(localStorage.getItem("flxn-theme-fonts")||"[]");for(var i=0;i -