muthuk2 commited on
Commit
6ef1a82
·
verified ·
1 Parent(s): e22ac8c

feat: Global CSS matching CODE-NARRATIVE-AI style (glass-nav, stripe-shadow, grid patterns)

Browse files
Files changed (1) hide show
  1. frontend/src/index.css +60 -4
frontend/src/index.css CHANGED
@@ -2,13 +2,69 @@
2
  @tailwind components;
3
  @tailwind utilities;
4
 
 
 
 
 
5
  body {
6
- background: #0a0a0f;
7
- color: #e4e4e7;
 
 
 
 
 
8
  }
9
 
10
  ::-webkit-scrollbar { width: 6px; height: 6px; }
11
  ::-webkit-scrollbar-track { background: transparent; }
12
- ::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
 
14
- select option { background: #1a1a2e; color: #e4e4e7; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  @tailwind components;
3
  @tailwind utilities;
4
 
5
+ * { margin: 0; padding: 0; box-sizing: border-box; }
6
+
7
+ html { scroll-behavior: smooth; }
8
+
9
  body {
10
+ font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
11
+ -webkit-font-smoothing: antialiased;
12
+ -moz-osx-font-smoothing: grayscale;
13
+ }
14
+
15
+ ::selection {
16
+ background: rgba(16, 185, 129, 0.15);
17
  }
18
 
19
  ::-webkit-scrollbar { width: 6px; height: 6px; }
20
  ::-webkit-scrollbar-track { background: transparent; }
21
+ ::-webkit-scrollbar-thumb { background: #334155; border-radius: 3px; }
22
+ ::-webkit-scrollbar-thumb:hover { background: #475569; }
23
+
24
+ /* CODE-NARRATIVE style: glass nav */
25
+ .glass-nav {
26
+ background: rgba(255, 255, 255, 0.8);
27
+ backdrop-filter: blur(12px);
28
+ border-bottom: 1px solid rgba(0, 0, 0, 0.05);
29
+ }
30
+
31
+ /* Stripe-style shadow for cards */
32
+ .shadow-stripe {
33
+ box-shadow:
34
+ 0 0 0 1px rgba(0, 0, 0, 0.03),
35
+ 0 2px 4px rgba(0, 0, 0, 0.05),
36
+ 0 12px 24px rgba(0, 0, 0, 0.05);
37
+ }
38
+
39
+ /* Grid pattern background */
40
+ .linear-grid {
41
+ background-image:
42
+ linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
43
+ linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
44
+ background-size: 60px 60px;
45
+ }
46
 
47
+ /* Animated cursor */
48
+ .cursor::after {
49
+ content: '|';
50
+ animation: blink 1s infinite;
51
+ }
52
+
53
+ @keyframes blink {
54
+ 0%, 50% { opacity: 1; }
55
+ 51%, 100% { opacity: 0; }
56
+ }
57
+
58
+ @keyframes fadeIn {
59
+ from { opacity: 0; transform: translateY(8px); }
60
+ to { opacity: 1; transform: translateY(0); }
61
+ }
62
+
63
+ .animate-fade-in {
64
+ animation: fadeIn 0.4s ease-out;
65
+ }
66
+
67
+ /* Dark mode base (since we toggle via class) */
68
+ .dark {
69
+ color-scheme: dark;
70
+ }