@knowcode/doc-builder 1.9.12 → 1.9.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/notion-style.css +65 -1
- package/package.json +1 -1
|
@@ -2245,5 +2245,69 @@ body.has-private-access .private-nav {
|
|
|
2245
2245
|
padding: var(--space-2) var(--space-3);
|
|
2246
2246
|
}
|
|
2247
2247
|
}
|
|
2248
|
-
|
|
2248
|
+
|
|
2249
|
+
/* Print styles - hide breadcrumbs and other UI elements for clean PDF output */
|
|
2250
|
+
@media print {
|
|
2251
|
+
/* Hide breadcrumbs completely when printing */
|
|
2252
|
+
.breadcrumbs {
|
|
2253
|
+
display: none !important;
|
|
2254
|
+
}
|
|
2255
|
+
|
|
2256
|
+
/* Hide navigation and header elements for clean printing */
|
|
2257
|
+
.navigation,
|
|
2258
|
+
.menu-toggle,
|
|
2259
|
+
.theme-toggle,
|
|
2260
|
+
.auth-btn,
|
|
2261
|
+
.header {
|
|
2262
|
+
display: none !important;
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
/* Adjust main content area for printing without breadcrumbs */
|
|
2266
|
+
.main-content {
|
|
2267
|
+
margin-top: 0 !important;
|
|
2268
|
+
min-height: auto !important;
|
|
2269
|
+
padding-top: var(--space-4);
|
|
2270
|
+
}
|
|
2271
|
+
|
|
2272
|
+
/* Ensure content takes full width for printing */
|
|
2273
|
+
.content-area {
|
|
2274
|
+
max-width: none !important;
|
|
2275
|
+
padding: 0;
|
|
2276
|
+
margin: 0;
|
|
2277
|
+
}
|
|
2278
|
+
|
|
2279
|
+
/* Optimize text for printing */
|
|
2280
|
+
body {
|
|
2281
|
+
background: white !important;
|
|
2282
|
+
color: black !important;
|
|
2283
|
+
font-size: 12pt;
|
|
2284
|
+
line-height: 1.4;
|
|
2285
|
+
}
|
|
2286
|
+
|
|
2287
|
+
/* Hide interactive elements */
|
|
2288
|
+
.image-modal,
|
|
2289
|
+
.tooltip,
|
|
2290
|
+
button:not(.copy-btn) {
|
|
2291
|
+
display: none !important;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
/* Ensure code blocks print well */
|
|
2295
|
+
pre, code {
|
|
2296
|
+
background: #f5f5f5 !important;
|
|
2297
|
+
border: 1px solid #ddd !important;
|
|
2298
|
+
page-break-inside: avoid;
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2301
|
+
/* Page break optimization */
|
|
2302
|
+
h1, h2, h3, h4, h5, h6 {
|
|
2303
|
+
page-break-after: avoid;
|
|
2304
|
+
color: black !important;
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
/* Avoid breaking images */
|
|
2308
|
+
img {
|
|
2309
|
+
page-break-inside: avoid;
|
|
2310
|
+
max-width: 100% !important;
|
|
2311
|
+
height: auto !important;
|
|
2312
|
+
}
|
|
2249
2313
|
}
|