|
220 | 220 | overflow: hidden; |
221 | 221 | } |
222 | 222 |
|
| 223 | + /* Hide header in docs code blocks - no copy button or label needed */ |
223 | 224 | .docs-content :global(.code-block-header) { |
224 | | - display: flex; |
225 | | - align-items: center; |
226 | | - justify-content: space-between; |
227 | | - padding: var(--space-xs) var(--space-sm); |
228 | | - background: var(--surface-raised); |
229 | | - border-bottom: 1px solid var(--border); |
230 | | - } |
231 | | -
|
232 | | - .docs-content :global(.code-label) { |
233 | | - font-size: 9px; |
234 | | - font-weight: 600; |
235 | | - color: var(--text-muted); |
236 | | - text-transform: uppercase; |
237 | | - letter-spacing: 0.5px; |
238 | | - } |
239 | | -
|
240 | | - .docs-content :global(.copy-btn) { |
241 | | - display: flex; |
242 | | - align-items: center; |
243 | | - justify-content: center; |
244 | | - padding: 2px; |
245 | | - background: none; |
246 | | - border: none; |
247 | | - color: var(--text-muted); |
248 | | - cursor: pointer; |
249 | | - border-radius: var(--radius-sm); |
250 | | - transition: all var(--transition-fast); |
251 | | - } |
252 | | -
|
253 | | - .docs-content :global(.copy-btn:hover) { |
254 | | - color: var(--text); |
255 | | - background: var(--surface-hover); |
| 225 | + display: none; |
256 | 226 | } |
257 | 227 |
|
258 | 228 | .docs-content :global(.cm-container) { |
259 | | - font-size: 10px; |
260 | | - line-height: 1.5; |
| 229 | + font-size: 9px; |
| 230 | + line-height: 1.4; |
261 | 231 | } |
262 | 232 |
|
263 | 233 | /* CodeMirror overrides for compact display */ |
264 | 234 | .docs-content :global(.cm-editor) { |
265 | 235 | background: var(--surface); |
266 | 236 | } |
267 | 237 |
|
| 238 | + /* Hide line numbers in docs code blocks */ |
268 | 239 | .docs-content :global(.cm-gutters) { |
269 | | - background: var(--surface); |
270 | | - border-right: 1px solid var(--border); |
271 | | - } |
272 | | -
|
273 | | - .docs-content :global(.cm-lineNumbers .cm-gutterElement) { |
274 | | - padding: 0 4px 0 8px; |
275 | | - min-width: 24px; |
276 | | - font-size: 9px; |
| 240 | + display: none; |
277 | 241 | } |
278 | 242 |
|
279 | 243 | /* Fallback pre/code styles (before CodeMirror processes) */ |
|
0 commit comments