byte-vortex commited on
Commit
5797d78
·
verified ·
1 Parent(s): 8953a8d

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +29 -4
style.css CHANGED
@@ -12,11 +12,13 @@
12
 
13
  body {
14
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
15
- background-color: var(--bg-color);
 
 
16
  color: var(--text-primary);
17
  line-height: 1.6;
18
  margin: 0;
19
- padding: 2rem;
20
  }
21
 
22
  .container {
@@ -47,6 +49,7 @@ h1 {
47
  justify-content: center;
48
  gap: 1rem;
49
  margin-top: 1rem;
 
50
  }
51
 
52
  .badge {
@@ -61,15 +64,36 @@ h1 {
61
  .badge.green { color: var(--accent-green); border-color: rgba(34, 197, 94, 0.3); }
62
  .badge.cyan { color: var(--accent-cyan); border-color: rgba(6, 182, 212, 0.3); }
63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  section {
65
  background-color: var(--card-bg);
66
  border: 1px solid var(--border-color);
67
  border-radius: 12px;
68
  padding: 2rem;
69
  margin-bottom: 2rem;
70
- box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
 
 
 
 
 
71
  }
72
 
 
73
  h2 {
74
  font-size: 1.5rem;
75
  margin-top: 0;
@@ -121,12 +145,13 @@ td {
121
  border-radius: 8px;
122
  text-decoration: none;
123
  font-weight: 600;
124
- transition: background-color 0.2s;
125
  margin-top: 1rem;
126
  }
127
 
128
  .cta-button:hover {
129
  background-color: #2563eb;
 
130
  }
131
 
132
  code {
 
12
 
13
  body {
14
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
15
+ /* Rich multi-stop gradient background with fixed attachment */
16
+ background: linear-gradient(135deg, #090d16 0%, #0f172a 40%, #1e1b4b 100%);
17
+ background-attachment: fixed;
18
  color: var(--text-primary);
19
  line-height: 1.6;
20
  margin: 0;
21
+ padding: 2.5rem 1rem;
22
  }
23
 
24
  .container {
 
49
  justify-content: center;
50
  gap: 1rem;
51
  margin-top: 1rem;
52
+ flex-wrap: wrap;
53
  }
54
 
55
  .badge {
 
64
  .badge.green { color: var(--accent-green); border-color: rgba(34, 197, 94, 0.3); }
65
  .badge.cyan { color: var(--accent-cyan); border-color: rgba(6, 182, 212, 0.3); }
66
 
67
+ /* ==========================================
68
+ SCROLL-DRIVEN ANIMATIONS (Tied to Scrollbar)
69
+ ========================================== */
70
+
71
+ @keyframes scrollFadeUp {
72
+ 0% {
73
+ opacity: 0;
74
+ transform: translateY(40px);
75
+ }
76
+ 30% {
77
+ opacity: 1;
78
+ transform: translateY(0);
79
+ }
80
+ }
81
+
82
  section {
83
  background-color: var(--card-bg);
84
  border: 1px solid var(--border-color);
85
  border-radius: 12px;
86
  padding: 2rem;
87
  margin-bottom: 2rem;
88
+ box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
89
+
90
+ /* Modern CSS Scroll-Driven Animation Binding */
91
+ animation: scrollFadeUp linear forwards;
92
+ animation-timeline: view();
93
+ animation-range: entry 0% cover 30%;
94
  }
95
 
96
+ /* Typography & Tables */
97
  h2 {
98
  font-size: 1.5rem;
99
  margin-top: 0;
 
145
  border-radius: 8px;
146
  text-decoration: none;
147
  font-weight: 600;
148
+ transition: background-color 0.2s, transform 0.2s;
149
  margin-top: 1rem;
150
  }
151
 
152
  .cta-button:hover {
153
  background-color: #2563eb;
154
+ transform: translateY(-2px);
155
  }
156
 
157
  code {