📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
animations! more animationsgit add .
Blue Mouseab8f3512e6d9
diff --git a/public/index.html b/public/index.htmlindex 559e016f8..a0f7d6f48 100644--- a/public/index.html+++ b/public/index.html@@ -23,7 +23,7 @@<title>Swetrix Analytics</title></head>-<body class="transition-colors duration-300">+<body><noscript>You need to enable JavaScript to run this app.</noscript><div class="loader" id="loader"><div class="loader-head">diff --git a/src/index.css b/src/index.cssindex ac06dbf01..56664968e 100644--- a/src/index.css+++ b/src/index.css@@ -6,6 +6,19 @@ html {scroll-behavior: smooth;}+/* Temporary solution: this WILL override all the other colour - background colour transitions */+/* Do not use animations for people with vestibular motion disorders */+* {+ transition-property: background-color, color, border-color, fill, stroke;+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);+ transition-duration: 200ms;+}+@media (prefers-reduced-motion) {+ * {+ transition: none !important;+ }+}+body {margin: 0;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',diff --git a/src/pages/Project/View/styles.css b/src/pages/Project/View/styles.cssindex 0d43541f8..f8a7a141b 100644--- a/src/pages/Project/View/styles.css+++ b/src/pages/Project/View/styles.css@@ -1,7 +1,7 @@-body.dark .bb-legend-item text {+html.dark .bb-legend-item text {fill: #f9fafb;}-body.dark .bb-axis {+html.dark .bb-axis {fill: #f9fafb;}diff --git a/src/redux/reducers/ui/theme.js b/src/redux/reducers/ui/theme.jsindex 3cbf5dfb6..db30f7ec5 100644--- a/src/redux/reducers/ui/theme.js+++ b/src/redux/reducers/ui/theme.js@@ -18,7 +18,7 @@ const getInitialTheme = () => {}const setTheme = (rawTheme) => {- const root = window.document.body+ const root = window.document.documentElementconst isDark = rawTheme === 'dark'root.classList.remove(isDark ? 'light' : 'dark')