|
2 | 2 | @import 'tailwindcss/components'; |
3 | 3 | @import './prism.css'; |
4 | 4 | @import 'tailwindcss/utilities'; |
| 5 | + |
| 6 | +@media print { |
| 7 | + /* Force light mode colors for print */ |
| 8 | + html { |
| 9 | + color-scheme: light !important; |
| 10 | + } |
| 11 | + |
| 12 | + body { |
| 13 | + background: white !important; |
| 14 | + color: black !important; |
| 15 | + -webkit-print-color-adjust: exact !important; |
| 16 | + print-color-adjust: exact !important; |
| 17 | + } |
| 18 | + |
| 19 | + /* Remove dark mode backgrounds */ |
| 20 | + .dark\:bg-black, |
| 21 | + .dark\:bg-zinc-900, |
| 22 | + .dark\:bg-zinc-800 { |
| 23 | + background-color: transparent !important; |
| 24 | + } |
| 25 | + |
| 26 | + /* Hide non-resume elements */ |
| 27 | + header, |
| 28 | + footer, |
| 29 | + nav { |
| 30 | + display: none !important; |
| 31 | + } |
| 32 | + |
| 33 | + /* Hide the fixed background decoration */ |
| 34 | + .fixed.inset-0 { |
| 35 | + display: none !important; |
| 36 | + } |
| 37 | + |
| 38 | + /* Remove top margin for print */ |
| 39 | + .mt-16.sm\:mt-32, |
| 40 | + .mt-16 { |
| 41 | + margin-top: 0 !important; |
| 42 | + } |
| 43 | + |
| 44 | + /* Reset container max-width for print to use full page */ |
| 45 | + #resume-content { |
| 46 | + max-width: 100% !important; |
| 47 | + padding: 0 !important; |
| 48 | + margin: 0 !important; |
| 49 | + } |
| 50 | + |
| 51 | + /* Ensure proper bullet point rendering */ |
| 52 | + ul.list-disc, |
| 53 | + .list-disc { |
| 54 | + list-style-type: disc !important; |
| 55 | + padding-left: 1.5em !important; |
| 56 | + } |
| 57 | + |
| 58 | + ul.list-inside, |
| 59 | + .list-inside { |
| 60 | + list-style-position: inside !important; |
| 61 | + } |
| 62 | + |
| 63 | + .list-disc li { |
| 64 | + display: list-item !important; |
| 65 | + list-style-type: disc !important; |
| 66 | + } |
| 67 | + |
| 68 | + .list-disc li::marker { |
| 69 | + font-size: inherit !important; |
| 70 | + color: inherit !important; |
| 71 | + } |
| 72 | + |
| 73 | + /* Ensure borders are visible */ |
| 74 | + .border, |
| 75 | + .border-zinc-200, |
| 76 | + .border-b-2, |
| 77 | + .divide-y > * + * { |
| 78 | + border-color: #e4e4e7 !important; |
| 79 | + } |
| 80 | + |
| 81 | + /* Force text colors for print */ |
| 82 | + .text-zinc-900, |
| 83 | + .dark\:text-zinc-100 { |
| 84 | + color: #18181b !important; |
| 85 | + } |
| 86 | + |
| 87 | + .text-zinc-700, |
| 88 | + .dark\:text-zinc-300 { |
| 89 | + color: #3f3f46 !important; |
| 90 | + } |
| 91 | + |
| 92 | + .text-zinc-600, |
| 93 | + .dark\:text-zinc-400 { |
| 94 | + color: #52525b !important; |
| 95 | + } |
| 96 | + |
| 97 | + .text-zinc-500 { |
| 98 | + color: #71717a !important; |
| 99 | + } |
| 100 | + |
| 101 | + .text-blue-500, |
| 102 | + .dark\:text-blue-400 { |
| 103 | + color: #3b82f6 !important; |
| 104 | + } |
| 105 | + |
| 106 | + /* Ensure backgrounds for skill badges */ |
| 107 | + .bg-zinc-100, |
| 108 | + .dark\:bg-zinc-800 { |
| 109 | + background-color: #f4f4f5 !important; |
| 110 | + } |
| 111 | + |
| 112 | + /* Shadows for logo containers */ |
| 113 | + .shadow-md { |
| 114 | + box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1) !important; |
| 115 | + } |
| 116 | + |
| 117 | + /* Ring borders for logo containers */ |
| 118 | + .ring-1.ring-zinc-900\/5 { |
| 119 | + box-shadow: 0 0 0 1px rgb(24 24 27 / 0.05) !important; |
| 120 | + } |
| 121 | + |
| 122 | + /* SVG icon fills for print */ |
| 123 | + .fill-zinc-500, |
| 124 | + .dark\:fill-zinc-400 { |
| 125 | + fill: #71717a !important; |
| 126 | + } |
| 127 | + |
| 128 | + .stroke-zinc-400, |
| 129 | + .dark\:stroke-zinc-500 { |
| 130 | + stroke: #a1a1aa !important; |
| 131 | + } |
| 132 | + |
| 133 | + /* Page break control */ |
| 134 | + section { |
| 135 | + break-inside: avoid; |
| 136 | + } |
| 137 | + |
| 138 | + li { |
| 139 | + break-inside: avoid; |
| 140 | + } |
| 141 | + |
| 142 | + h2 { |
| 143 | + break-after: avoid; |
| 144 | + } |
| 145 | + |
| 146 | + /* Print page settings */ |
| 147 | + @page { |
| 148 | + size: letter; |
| 149 | + margin: 0.5in; |
| 150 | + } |
| 151 | +} |
| 152 | + |
0 commit comments