|
| 1 | +/* ========================================================================== |
| 2 | + PDF Generation Styles |
| 3 | + ========================================================================== |
| 4 | + Styles for the /print/ pages consumed by Puppeteer's page.pdf(). |
| 5 | + Puppeteer controls page sizing, margins, headers, and footers. |
| 6 | + This CSS controls the visual layout of content within the page. |
| 7 | + ========================================================================== */ |
| 8 | + |
| 9 | +/* -------------------------------------------------------------------------- |
| 10 | + Override print.css @page margins and running elements. |
| 11 | + Puppeteer provides its own header/footer via page.pdf() options, |
| 12 | + so suppress the CSS-based running elements to avoid duplication. |
| 13 | + -------------------------------------------------------------------------- */ |
| 14 | + |
| 15 | +@page { |
| 16 | + @bottom-left { |
| 17 | + content: none; |
| 18 | + } |
| 19 | + |
| 20 | + @bottom-right { |
| 21 | + content: none; |
| 22 | + } |
| 23 | +} |
| 24 | + |
| 25 | +/** |
| 26 | +* ============================================================================= |
| 27 | +* Colors for Print |
| 28 | +* ============================================================================= |
| 29 | +*/ |
| 30 | +@media print { |
| 31 | + html[data-theme="light"] { |
| 32 | + --theme-color-primary: #001A39; |
| 33 | + --theme-color-primary-offset: #003d86; |
| 34 | + --theme-color-primary-inverse: #FFF; |
| 35 | + --theme-color-secondary: #006dca; |
| 36 | + --theme-color-secondary-offset: #1894ff; |
| 37 | + --theme-color-secondary-inverse: #FFF; |
| 38 | + --theme-color-accent: #7c3aed; |
| 39 | + --theme-color-accent-offset: #d28fe0; |
| 40 | + --theme-color-page-base: #f3f4f6; |
| 41 | + --theme-color-page-inverse: #003d86; |
| 42 | + --theme-color-page-offset: #e5e7eb; |
| 43 | + --theme-color-page-active: #9ca3af; |
| 44 | + --theme-color-content: #374151; |
| 45 | + --theme-color-content-offset: #6b7280; |
| 46 | + --theme-color-content-active: #001a39; |
| 47 | + --theme-color-content-inverse: #f3f4f6; |
| 48 | + --theme-color-content-inverse-active: #bfdbfe; |
| 49 | + --theme-color-trim: #4b5563; |
| 50 | + --theme-color-trim-offset: #9ca3af; |
| 51 | + --theme-color-spotlight: #facc15; |
| 52 | + --theme-color-spotlight-offset: #ca8a04; |
| 53 | + --theme-color-success: #15803d; |
| 54 | + --theme-color-success-offset: #22c55e; |
| 55 | + --theme-color-success-inverse: #dcfce7; |
| 56 | + --theme-color-info: #0891b2; |
| 57 | + --theme-color-info-offset: #38bdf8; |
| 58 | + --theme-color-info-inverse: #cffafe; |
| 59 | + --theme-color-note: #374151; |
| 60 | + --theme-color-note-offset: #6b7280; |
| 61 | + --theme-color-note-inverse: #d1d5db; |
| 62 | + --theme-color-warning: #a16207; |
| 63 | + --theme-color-warning-offset: #ca8a04; |
| 64 | + --theme-color-warning-inverse: #fef3c7; |
| 65 | + --theme-color-danger: #dc2626; |
| 66 | + --theme-color-danger-offset: #b91c1c; |
| 67 | + --theme-color-danger-inverse: #fecaca; |
| 68 | + --theme-color-icons: #374151; |
| 69 | + --theme-color-icons-active: #9ca3af; |
| 70 | + --theme-color-black: #000; |
| 71 | + --theme-color-white: #fff; |
| 72 | + --theme-color-blue-50: #eff6ff; |
| 73 | + --theme-color-blue-100: #dbeafe; |
| 74 | + --theme-color-blue-200: #bfdbfe; |
| 75 | + --theme-color-blue-300: #93c5fd; |
| 76 | + --theme-color-blue-400: #60a5fa; |
| 77 | + --theme-color-blue-500: #3b82f6; |
| 78 | + --theme-color-blue-600: #2563eb; |
| 79 | + --theme-color-blue-800: #1e40af; |
| 80 | + --theme-color-blue-900: #1e3a8a; |
| 81 | + --theme-color-gray-50: #f9fafb; |
| 82 | + --theme-color-gray-100: #f3f4f6; |
| 83 | + --theme-color-gray-200: #e5e7eb; |
| 84 | + --theme-color-gray-300: #d1d5db; |
| 85 | + --theme-color-gray-400: #9ca3af; |
| 86 | + --theme-color-gray-500: #6b7280; |
| 87 | + --theme-color-gray-600: #4b5563; |
| 88 | + --theme-color-gray-700: #374151; |
| 89 | + --theme-color-gray-800: #1f2937; |
| 90 | + --theme-color-gray-900: #111827; |
| 91 | + --theme-color-gray-offset: #9ca3af; |
| 92 | + --theme-color-green-100: #d1fae5; |
| 93 | + --theme-color-green-200: #bbf7d0; |
| 94 | + --theme-color-green-300: #86efac; |
| 95 | + --theme-color-green-400: #4ade80; |
| 96 | + --theme-color-green-500: #22c55e; |
| 97 | + --theme-color-green-600: #16a34a; |
| 98 | + --theme-color-green-700: #15803d; |
| 99 | + --theme-color-green-900: #14532d; |
| 100 | + --theme-color-orange-100: #ffedd5; |
| 101 | + --theme-color-orange-200: #fed7aa; |
| 102 | + --theme-color-orange-300: #fdba74; |
| 103 | + --theme-color-orange-500: #f97316; |
| 104 | + --theme-color-orange-600: #ea580c; |
| 105 | + --theme-color-orange-700: #c2410c; |
| 106 | + --theme-color-purple-100: #f3e8ff; |
| 107 | + --theme-color-purple-600: #9333ea; |
| 108 | + --theme-color-red-400: #f87171; |
| 109 | + --theme-color-red-500: #ef4444; |
| 110 | + --theme-color-yellow-100: #fef9c3; |
| 111 | + --theme-color-yellow-200: #fef08a; |
| 112 | + --theme-color-yellow-300: #fde047; |
| 113 | + --theme-color-yellow-400: #facc15; |
| 114 | + --theme-color-yellow-500: #eab308; |
| 115 | + --theme-color-yellow-600: #ca8a04; |
| 116 | + --theme-color-yellow-700: #a16207; |
| 117 | + --theme-color-bluesky: #00A8E8; |
| 118 | + --theme-color-bluesky-active: #0087bd; |
| 119 | + --theme-color-codepen: #000; |
| 120 | + --theme-color-codepen-active: #1a1a1a; |
| 121 | + --theme-color-github: #211F1F; |
| 122 | + --theme-color-github-active: #333131; |
| 123 | + --theme-color-linkedin: #0a66c2; |
| 124 | + --theme-color-linkedin-active: #084c9e; |
| 125 | + --theme-color-mastodon: #6364FF; |
| 126 | + --theme-color-mastodon-active: #5557e6; |
| 127 | + --theme-color-google-red: #EA4335; |
| 128 | + --theme-color-google-yellow: #FBBC04; |
| 129 | + --theme-color-google-blue: #4285F4; |
| 130 | + --theme-color-google-blue-dark: #1967D2; |
| 131 | + --theme-color-google-green: #34A853; |
| 132 | + --theme-color-google-green-dark: #188038; |
| 133 | + --theme-color-reddit: #FF4500; |
| 134 | + --theme-color-reddit-active: #e03d00; |
| 135 | + --theme-color-x: #000; |
| 136 | + --theme-color-x-active: #1a1a1a; |
| 137 | + --shiki-foreground: #24292e; |
| 138 | + --shiki-background: #fff; |
| 139 | + --shiki-token-constant: #005cc5; |
| 140 | + --shiki-token-string: #032f62; |
| 141 | + --shiki-token-comment: #6a737d; |
| 142 | + --shiki-token-keyword: #d73a49; |
| 143 | + --shiki-token-parameter: #24292e; |
| 144 | + --shiki-token-function: #6f42c1; |
| 145 | + --shiki-token-string-expression: #032f62; |
| 146 | + --shiki-token-punctuation: #24292e; |
| 147 | + --shiki-token-link: #032f62; |
| 148 | + --shiki-token-inserted: #22863a; |
| 149 | + --shiki-token-deleted: #b31d28; |
| 150 | + --shiki-token-changed: #e36209; |
| 151 | + --shiki-ansi-black: #24292e; |
| 152 | + --shiki-ansi-red: #d73a49; |
| 153 | + --shiki-ansi-green: #28a745; |
| 154 | + --shiki-ansi-yellow: #dbab09; |
| 155 | + --shiki-ansi-blue: #0366d6; |
| 156 | + --shiki-ansi-magenta: #5a32a3; |
| 157 | + --shiki-ansi-cyan: #1b7c83; |
| 158 | + --shiki-ansi-white: #6a737d; |
| 159 | + --shiki-ansi-bright-black: #959da5; |
| 160 | + --shiki-ansi-bright-red: #cb2431; |
| 161 | + --shiki-ansi-bright-green: #22863a; |
| 162 | + --shiki-ansi-bright-yellow: #b08800; |
| 163 | + --shiki-ansi-bright-blue: #005cc5; |
| 164 | + --shiki-ansi-bright-magenta: #5a32a3; |
| 165 | + --shiki-ansi-bright-cyan: #3192aa; |
| 166 | + --shiki-ansi-bright-white: #d1d5da; |
| 167 | + } |
| 168 | +} |
0 commit comments