|
2 | 2 | @tailwind components;
|
3 | 3 | @tailwind utilities;
|
4 | 4 |
|
| 5 | +/* Screen reader only text */ |
| 6 | +.sr-only { |
| 7 | + position: absolute; |
| 8 | + width: 1px; |
| 9 | + height: 1px; |
| 10 | + padding: 0; |
| 11 | + margin: -1px; |
| 12 | + overflow: hidden; |
| 13 | + clip: rect(0, 0, 0, 0); |
| 14 | + white-space: nowrap; |
| 15 | + border-width: 0; |
| 16 | +} |
| 17 | + |
5 | 18 | .overflow-y-hidden {
|
6 | 19 | overflow-y: hidden;
|
7 | 20 | }
|
8 | 21 |
|
| 22 | + |
| 23 | +/* Enhanced focus indicators for accessibility */ |
| 24 | +@layer utilities { |
| 25 | + .focus-visible-ring { |
| 26 | + @apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 dark:focus:ring-offset-gray-800; |
| 27 | + } |
| 28 | + |
| 29 | + .focus-visible-ring-inset { |
| 30 | + @apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-inset; |
| 31 | + } |
| 32 | +} |
| 33 | + |
| 34 | +/* Ensure all interactive elements have visible focus */ |
| 35 | +button:focus-visible, |
| 36 | +a:focus-visible, |
| 37 | +input:focus-visible, |
| 38 | +select:focus-visible, |
| 39 | +textarea:focus-visible, |
| 40 | +[role="button"]:focus-visible, |
| 41 | +[role="tab"]:focus-visible, |
| 42 | +[tabindex]:focus-visible { |
| 43 | + @apply outline-none ring-2 ring-blue-500 ring-offset-2 dark:ring-offset-gray-800; |
| 44 | +} |
| 45 | + |
| 46 | +/* Special focus styles for tabs */ |
| 47 | +.tab:focus-visible { |
| 48 | + @apply outline-none ring-2 ring-blue-500 ring-inset; |
| 49 | +} |
| 50 | + |
| 51 | +/* Focus styles for table sortable headers */ |
| 52 | +th.sortable:focus-visible { |
| 53 | + @apply outline-none ring-2 ring-blue-500 ring-inset; |
| 54 | +} |
| 55 | + |
9 | 56 | .subtle-stripes-light {
|
10 | 57 | background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.025) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.025) 50%, rgba(0, 0, 0, 0.025) 75%, transparent 75%, transparent);
|
11 | 58 | background-size: 10px 10px;
|
|
15 | 62 | background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.02) 75%, transparent 75%, transparent);
|
16 | 63 | background-size: 10px 10px; /* Explicitly set for dark mode too */
|
17 | 64 | }
|
| 65 | + |
| 66 | +/* Respect user's motion preferences */ |
| 67 | +@media (prefers-reduced-motion: reduce) { |
| 68 | + * { |
| 69 | + animation-duration: 0.01ms !important; |
| 70 | + animation-iteration-count: 1 !important; |
| 71 | + transition-duration: 0.01ms !important; |
| 72 | + scroll-behavior: auto !important; |
| 73 | + } |
| 74 | + |
| 75 | + .pulse-logo-circle { |
| 76 | + animation: none !important; |
| 77 | + } |
| 78 | + |
| 79 | + .animate-spin { |
| 80 | + animation: none !important; |
| 81 | + } |
| 82 | + |
| 83 | + .transition-all, |
| 84 | + .transition-colors, |
| 85 | + .transition-opacity { |
| 86 | + transition: none !important; |
| 87 | + } |
| 88 | +} |
0 commit comments