Replace index.css with CODE-NARRATIVE-AI styling (glass-nav, scrollbar, animations)
Browse files- frontend/src/index.css +10 -43
frontend/src/index.css
CHANGED
|
@@ -2,67 +2,34 @@
|
|
| 2 |
@tailwind components;
|
| 3 |
@tailwind utilities;
|
| 4 |
|
| 5 |
-
* {
|
| 6 |
-
|
| 7 |
-
padding: 0;
|
| 8 |
-
box-sizing: border-box;
|
| 9 |
-
}
|
| 10 |
-
|
| 11 |
-
html {
|
| 12 |
-
scroll-behavior: smooth;
|
| 13 |
-
}
|
| 14 |
|
| 15 |
body {
|
| 16 |
-
|
| 17 |
-
color: #ffffff;
|
| 18 |
-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
|
| 19 |
-webkit-font-smoothing: antialiased;
|
| 20 |
-moz-osx-font-smoothing: grayscale;
|
| 21 |
}
|
| 22 |
|
| 23 |
-
::selection {
|
| 24 |
-
background: rgba(16, 185, 129, 0.2);
|
| 25 |
-
color: #ffffff;
|
| 26 |
-
}
|
| 27 |
-
|
| 28 |
-
::-webkit-scrollbar {
|
| 29 |
-
width: 6px;
|
| 30 |
-
height: 6px;
|
| 31 |
-
}
|
| 32 |
|
| 33 |
-
::-webkit-scrollbar
|
| 34 |
-
|
| 35 |
-
}
|
|
|
|
| 36 |
|
| 37 |
-
|
| 38 |
-
background: #2a2a3e;
|
| 39 |
-
border-radius: 3px;
|
| 40 |
-
}
|
| 41 |
|
| 42 |
-
::-webkit-scrollbar-thumb:hover {
|
| 43 |
-
background: #3a3a5e;
|
| 44 |
-
}
|
| 45 |
-
|
| 46 |
-
/* Code blocks */
|
| 47 |
-
pre {
|
| 48 |
-
tab-size: 2;
|
| 49 |
-
}
|
| 50 |
-
|
| 51 |
-
/* Animations */
|
| 52 |
@keyframes fadeIn {
|
| 53 |
from { opacity: 0; transform: translateY(8px); }
|
| 54 |
to { opacity: 1; transform: translateY(0); }
|
| 55 |
}
|
| 56 |
-
|
| 57 |
-
.animate-fade-in {
|
| 58 |
-
animation: fadeIn 0.3s ease-out;
|
| 59 |
-
}
|
| 60 |
|
| 61 |
@keyframes shimmer {
|
| 62 |
0% { background-position: -200% 0; }
|
| 63 |
100% { background-position: 200% 0; }
|
| 64 |
}
|
| 65 |
-
|
| 66 |
.animate-shimmer {
|
| 67 |
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
|
| 68 |
background-size: 200% 100%;
|
|
|
|
| 2 |
@tailwind components;
|
| 3 |
@tailwind utilities;
|
| 4 |
|
| 5 |
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
| 6 |
+
html { scroll-behavior: smooth; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
body {
|
| 9 |
+
font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
|
|
|
|
|
|
|
| 10 |
-webkit-font-smoothing: antialiased;
|
| 11 |
-moz-osx-font-smoothing: grayscale;
|
| 12 |
}
|
| 13 |
|
| 14 |
+
::selection { background: rgba(16, 185, 129, 0.15); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
::-webkit-scrollbar { width: 6px; height: 6px; }
|
| 17 |
+
::-webkit-scrollbar-track { background: transparent; }
|
| 18 |
+
::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
|
| 19 |
+
::-webkit-scrollbar-thumb:hover { background: #475569; }
|
| 20 |
|
| 21 |
+
pre { tab-size: 2; }
|
|
|
|
|
|
|
|
|
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
@keyframes fadeIn {
|
| 24 |
from { opacity: 0; transform: translateY(8px); }
|
| 25 |
to { opacity: 1; transform: translateY(0); }
|
| 26 |
}
|
| 27 |
+
.animate-fade-in { animation: fadeIn 0.4s ease-out; }
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
@keyframes shimmer {
|
| 30 |
0% { background-position: -200% 0; }
|
| 31 |
100% { background-position: 200% 0; }
|
| 32 |
}
|
|
|
|
| 33 |
.animate-shimmer {
|
| 34 |
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
|
| 35 |
background-size: 200% 100%;
|