|
18 | 18 |
|
19 | 19 | @layer components {
|
20 | 20 | .slide-container {
|
21 |
| - @apply min-h-[100dvh] p-8 transition-all duration-500 ease-in-out relative |
| 21 | + @apply min-h-screen p-8 transition-all duration-500 ease-in-out relative |
22 | 22 | md:min-h-screen
|
23 |
| - sm:p-4 /* Reduced padding on mobile */ |
24 |
| - overflow-y-auto /* Enable scrolling at container level */ |
25 |
| - flex flex-col; /* Use flex to ensure proper content flow */ |
| 23 | + sm:p-4 |
| 24 | + overflow-y-scroll /* Changed from auto to scroll to ensure scrolling is always available */ |
| 25 | + flex flex-col |
| 26 | + h-screen; /* Added fixed height to ensure scrolling works */ |
26 | 27 | }
|
27 | 28 |
|
28 | 29 | .slide-content {
|
29 | 30 | @apply max-w-6xl mx-auto bg-white rounded-xl shadow-lg p-8
|
30 |
| - sm:p-4 /* Reduced padding on mobile */ |
31 |
| - flex-grow /* Allow content to grow within container */ |
32 |
| - w-full; /* Ensure full width */ |
| 31 | + sm:p-4 |
| 32 | + w-full |
| 33 | + overflow-y-visible; /* Allow content to overflow for scrolling */ |
33 | 34 | }
|
34 | 35 |
|
| 36 | + /* Rest of the CSS remains unchanged */ |
35 | 37 | .nav-button {
|
36 | 38 | @apply px-6 py-2 rounded-lg font-medium transition-all duration-200
|
37 | 39 | disabled:opacity-50 disabled:cursor-not-allowed
|
38 | 40 | bg-indigo-600 text-white hover:bg-indigo-700
|
39 | 41 | focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2
|
40 |
| - sm:px-4 sm:py-1.5 /* Smaller buttons on mobile */ |
41 |
| - sticky bottom-4 /* Keep buttons visible */ |
42 |
| - z-10; /* Ensure buttons stay above content */ |
| 42 | + sm:px-4 sm:py-1.5 |
| 43 | + sticky bottom-4 |
| 44 | + z-10; |
43 | 45 | }
|
44 | 46 |
|
45 | 47 | .card {
|
46 | 48 | @apply bg-white rounded-xl shadow-md p-6 transition-all duration-200 hover:shadow-lg
|
47 |
| - sm:p-4 /* Reduced padding on mobile */ |
48 |
| - mb-4; /* Add margin bottom for spacing */ |
| 49 | + sm:p-4 |
| 50 | + mb-4; |
49 | 51 | }
|
50 | 52 |
|
51 | 53 | .gradient-bg {
|
52 | 54 | @apply bg-gradient-to-br from-blue-600 via-indigo-600 to-blue-800 text-white;
|
53 | 55 | }
|
54 | 56 |
|
55 |
| - /* Citation styles */ |
56 | 57 | .citation-ref {
|
57 | 58 | @apply inline-block ml-0.5 text-xs font-medium cursor-help;
|
58 | 59 | }
|
|
62 | 63 | border border-gray-200 text-sm w-72 z-50
|
63 | 64 | transform -translate-x-1/2 left-1/2
|
64 | 65 | backdrop-filter backdrop-blur-sm bg-opacity-95
|
65 |
| - sm:w-64 /* Slightly smaller width on mobile */ |
66 |
| - sm:p-3; /* Reduced padding on mobile */ |
| 66 | + sm:w-64 |
| 67 | + sm:p-3; |
67 | 68 | }
|
68 | 69 |
|
69 | 70 | .citation-ref:hover .citation-popup {
|
|
73 | 74 | .references-section {
|
74 | 75 | @apply mt-8 pt-6 border-t-2 border-gray-100
|
75 | 76 | grid grid-cols-2 gap-6 text-sm text-gray-600
|
76 |
| - sm:grid-cols-1 /* Single column on mobile */ |
77 |
| - sm:gap-4; /* Reduced gap on mobile */ |
| 77 | + sm:grid-cols-1 |
| 78 | + sm:gap-4; |
78 | 79 | }
|
79 | 80 |
|
80 | 81 | .reference-item {
|
|
85 | 86 | @apply text-blue-600 font-medium mr-2;
|
86 | 87 | }
|
87 | 88 |
|
88 |
| - /* Menu styles */ |
89 | 89 | .slide-menu {
|
90 | 90 | @apply fixed inset-y-0 left-0 w-64 bg-white shadow-lg transform transition-transform duration-300 ease-in-out z-50
|
91 |
| - sm:w-full /* Full width on mobile */ |
92 |
| - overflow-y-auto; /* Enable menu scrolling */ |
| 91 | + sm:w-full |
| 92 | + overflow-y-auto; |
93 | 93 | }
|
94 | 94 |
|
95 | 95 | .menu-overlay {
|
|
99 | 99 | .menu-item {
|
100 | 100 | @apply px-4 py-2 hover:bg-indigo-50 rounded-lg transition-colors duration-200
|
101 | 101 | text-slate-700 hover:text-indigo-700 cursor-pointer
|
102 |
| - sm:py-3; /* Increased touch target on mobile */ |
| 102 | + sm:py-3; |
103 | 103 | }
|
104 | 104 |
|
105 | 105 | .menu-item-active {
|
106 | 106 | @apply bg-indigo-100 text-indigo-700;
|
107 | 107 | }
|
108 | 108 |
|
109 |
| - /* Academic components */ |
110 | 109 | .citation {
|
111 | 110 | @apply text-sm text-slate-600 italic;
|
112 | 111 | }
|
113 | 112 |
|
114 | 113 | .research-card {
|
115 | 114 | @apply bg-white rounded-lg shadow-md p-6 border-l-4 border-indigo-500
|
116 | 115 | hover:shadow-lg transition-all duration-200
|
117 |
| - sm:p-4 /* Reduced padding on mobile */ |
118 |
| - mb-4; /* Add margin bottom for spacing */ |
| 116 | + sm:p-4 |
| 117 | + mb-4; |
119 | 118 | }
|
120 | 119 |
|
121 | 120 | .methodology-item {
|
122 | 121 | @apply bg-white rounded-lg p-4 shadow-sm border border-slate-100
|
123 | 122 | hover:border-indigo-200 transition-all duration-200
|
124 |
| - mb-4; /* Add margin bottom for spacing */ |
| 123 | + mb-4; |
125 | 124 | }
|
126 | 125 |
|
127 | 126 | .statistic-card {
|
128 | 127 | @apply bg-white rounded-xl shadow-lg p-6 border border-slate-100
|
129 | 128 | hover:border-indigo-200 transition-all duration-200
|
130 | 129 | transform hover:-translate-y-1
|
131 |
| - sm:p-4 /* Reduced padding on mobile */ |
132 |
| - mb-4; /* Add margin bottom for spacing */ |
| 130 | + sm:p-4 |
| 131 | + mb-4; |
133 | 132 | }
|
134 | 133 |
|
135 | 134 | .section-header {
|
136 | 135 | @apply text-2xl font-bold text-indigo-600 mb-6
|
137 | 136 | border-b-2 border-indigo-100 pb-2
|
138 |
| - sm:text-xl /* Smaller text on mobile */ |
139 |
| - sm:mb-4; /* Reduced margin on mobile */ |
| 137 | + sm:text-xl |
| 138 | + sm:mb-4; |
140 | 139 | }
|
141 | 140 |
|
142 |
| - /* Timeline styles */ |
143 | 141 | .timeline-node {
|
144 | 142 | @apply w-8 h-8 rounded-full flex items-center justify-center
|
145 | 143 | transition-all duration-300 cursor-pointer
|
146 | 144 | hover:scale-110 focus:outline-none focus:ring-2 focus:ring-indigo-500
|
147 |
| - sm:w-6 sm:h-6; /* Smaller nodes on mobile */ |
| 145 | + sm:w-6 sm:h-6; |
148 | 146 | }
|
149 | 147 |
|
150 | 148 | .timeline-node-active {
|
|
163 | 161 | @apply h-full bg-indigo-600 transition-all duration-500;
|
164 | 162 | }
|
165 | 163 |
|
166 |
| - /* Research area styles */ |
167 | 164 | .research-area-button {
|
168 | 165 | @apply p-4 text-sm font-medium rounded-lg transition-all duration-300
|
169 | 166 | hover:bg-indigo-50 focus:outline-none focus:ring-2 focus:ring-indigo-500
|
170 |
| - sm:p-2 /* Reduced padding on mobile */ |
171 |
| - mb-2; /* Add margin bottom for spacing */ |
| 167 | + sm:p-2 |
| 168 | + mb-2; |
172 | 169 | }
|
173 | 170 |
|
174 | 171 | .research-area-button-active {
|
|
179 | 176 | @apply bg-indigo-50 p-4 rounded-lg border border-indigo-100
|
180 | 177 | hover:shadow-md transition-all duration-300
|
181 | 178 | transform hover:-translate-y-1
|
182 |
| - mb-4; /* Add margin bottom for spacing */ |
| 179 | + mb-4; |
183 | 180 | }
|
184 | 181 |
|
185 | 182 | .research-number {
|
|
189 | 186 | }
|
190 | 187 | }
|
191 | 188 |
|
192 |
| -/* Transitions */ |
193 | 189 | .fade-enter {
|
194 | 190 | opacity: 0;
|
195 | 191 | transform: translateY(20px);
|
|
212 | 208 | transition: opacity 300ms, transform 300ms;
|
213 | 209 | }
|
214 | 210 |
|
215 |
| -/* Slide transitions */ |
216 | 211 | .slide-right-enter {
|
217 | 212 | transform: translateX(100%);
|
218 | 213 | }
|
|
231 | 226 | transition: transform 500ms ease-in-out;
|
232 | 227 | }
|
233 | 228 |
|
234 |
| -/* Animations */ |
235 | 229 | .animate-pulse {
|
236 | 230 | animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
237 | 231 | }
|
|
260 | 254 | }
|
261 | 255 | }
|
262 | 256 |
|
263 |
| -/* Print styles */ |
264 | 257 | @media print {
|
265 | 258 | .nav-button,
|
266 | 259 | .slide-menu,
|
|
285 | 278 | border: 1px solid #e2e8f0;
|
286 | 279 | }
|
287 | 280 |
|
288 |
| - /* Print-specific citation styles */ |
289 | 281 | .citation-popup {
|
290 | 282 | display: none !important;
|
291 | 283 | }
|
|
0 commit comments