Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

refactor: move shared CSS to ui/global.css

Luis Ortiz2f2073ef5f46
diff --git a/src/entrypoints/fullview/index.tsx b/src/entrypoints/fullview/index.tsx
index d12f3d3..07a75ad 100644
--- a/src/entrypoints/fullview/index.tsx
+++ b/src/entrypoints/fullview/index.tsx
@@ -1,5 +1,5 @@
import ReactDOM from 'react-dom/client';
import FullViewApp from '@/ui/fullview/App';
-import '@/ui/sidepanel/index.css';
+import '@/ui/global.css';
ReactDOM.createRoot(document.getElementById('root')!).render(<FullViewApp />);
diff --git a/src/entrypoints/sidepanel/index.tsx b/src/entrypoints/sidepanel/index.tsx
index 5082070..05e5de4 100644
--- a/src/entrypoints/sidepanel/index.tsx
+++ b/src/entrypoints/sidepanel/index.tsx
@@ -1,5 +1,5 @@
import ReactDOM from 'react-dom/client';
import App from '@/ui/sidepanel/App';
-import '@/ui/sidepanel/index.css';
+import '@/ui/global.css';
ReactDOM.createRoot(document.getElementById('root')!).render(<App />);
diff --git a/src/ui/sidepanel/index.css b/src/ui/global.css
similarity index 100%
rename from src/ui/sidepanel/index.css
rename to src/ui/global.css
diff --git a/src/ui/options/index.css b/src/ui/options/index.css
index f1d8c73..50aacd7 100644
--- a/src/ui/options/index.css
+++ b/src/ui/options/index.css
@@ -1 +1,16 @@
-@import "tailwindcss";
+@import "../global.css";
+
+html, body, #root {
+ margin: 0;
+ padding: 0;
+ height: 100%;
+ width: 100%;
+}
+
+#root {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: radial-gradient(ellipse at center, #fffdf8 0%, #f5f0e8 60%, #ede5d8 100%);
+ min-height: 100vh;
+}