|
59 | 59 | .prose :where(h2[id], h3[id], h4[id], h5[id], h6[id]):hover { |
60 | 60 | @apply underline decoration-zinc-300 underline-offset-4 dark:decoration-zinc-700; |
61 | 61 | } |
| 62 | + |
| 63 | + .openai-prose { |
| 64 | + @apply prose prose-zinc dark:prose-invert; |
| 65 | + } |
| 66 | + |
| 67 | + .openai-prose { |
| 68 | + font-size: 17px; |
| 69 | + line-height: 1.75; |
| 70 | + } |
| 71 | + |
| 72 | + .openai-prose :where(p):not(:where(.not-prose, .not-prose *)) { |
| 73 | + margin-top: 1.1em; |
| 74 | + margin-bottom: 1.1em; |
| 75 | + } |
| 76 | + |
| 77 | + .openai-prose :where(h1):not(:where(.not-prose, .not-prose *)) { |
| 78 | + @apply tracking-tight; |
| 79 | + font-size: 40px; |
| 80 | + line-height: 1.1; |
| 81 | + margin-top: 0; |
| 82 | + margin-bottom: 0.6em; |
| 83 | + } |
| 84 | + |
| 85 | + .openai-prose :where(h2):not(:where(.not-prose, .not-prose *)) { |
| 86 | + @apply tracking-tight; |
| 87 | + font-size: 28px; |
| 88 | + line-height: 1.2; |
| 89 | + margin-top: 1.6em; |
| 90 | + margin-bottom: 0.6em; |
| 91 | + } |
| 92 | + |
| 93 | + .openai-prose :where(h3):not(:where(.not-prose, .not-prose *)) { |
| 94 | + @apply tracking-tight; |
| 95 | + font-size: 22px; |
| 96 | + line-height: 1.25; |
| 97 | + margin-top: 1.4em; |
| 98 | + margin-bottom: 0.5em; |
| 99 | + } |
| 100 | + |
| 101 | + .openai-prose :where(ul, ol):not(:where(.not-prose, .not-prose *)) { |
| 102 | + margin-top: 1em; |
| 103 | + margin-bottom: 1em; |
| 104 | + } |
| 105 | + |
| 106 | + .openai-prose :where(li):not(:where(.not-prose, .not-prose *)) { |
| 107 | + margin-top: 0.35em; |
| 108 | + margin-bottom: 0.35em; |
| 109 | + } |
| 110 | + |
| 111 | + .openai-prose :where(a):not(:where(.not-prose, .not-prose *)) { |
| 112 | + @apply no-underline; |
| 113 | + border-bottom: 1px solid rgb(212 212 216); |
| 114 | + transition: border-color 150ms ease, color 150ms ease; |
| 115 | + } |
| 116 | + |
| 117 | + .openai-prose :where(a:hover):not(:where(.not-prose, .not-prose *)) { |
| 118 | + border-bottom-color: rgb(24 24 27); |
| 119 | + } |
| 120 | + |
| 121 | + .openai-prose :where(.dark a):not(:where(.not-prose, .not-prose *)) { |
| 122 | + border-bottom-color: rgb(82 82 91); |
| 123 | + } |
| 124 | + |
| 125 | + .openai-prose :where(.dark a:hover):not(:where(.not-prose, .not-prose *)) { |
| 126 | + border-bottom-color: rgb(244 244 245); |
| 127 | + } |
| 128 | + |
| 129 | + .openai-prose :where(pre):not(:where(.not-prose, .not-prose *)) { |
| 130 | + @apply rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-800 dark:bg-zinc-950; |
| 131 | + padding: 16px; |
| 132 | + overflow-x: auto; |
| 133 | + } |
| 134 | + |
| 135 | + .openai-prose :where(pre code):not(:where(.not-prose, .not-prose *)) { |
| 136 | + background: transparent; |
| 137 | + padding: 0; |
| 138 | + border-radius: 0; |
| 139 | + font-size: 0.9em; |
| 140 | + color: inherit; |
| 141 | + } |
| 142 | + |
| 143 | + .openai-prose :where(blockquote):not(:where(.not-prose, .not-prose *)) { |
| 144 | + @apply rounded-xl border border-zinc-200 bg-zinc-50 px-5 py-4 text-zinc-700 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-200; |
| 145 | + border-left-width: 4px; |
| 146 | + border-left-color: rgb(161 161 170); |
| 147 | + } |
| 148 | + |
| 149 | + .openai-prose :where(hr):not(:where(.not-prose, .not-prose *)) { |
| 150 | + @apply border-zinc-200 dark:border-zinc-800; |
| 151 | + margin-top: 2em; |
| 152 | + margin-bottom: 2em; |
| 153 | + } |
| 154 | + |
| 155 | + .openai-prose :where(img):not(:where(.not-prose, .not-prose *)) { |
| 156 | + @apply rounded-2xl; |
| 157 | + } |
62 | 158 | } |
63 | 159 |
|
64 | 160 | @layer base { |
|
0 commit comments