Showing
2 changed files
with
49 additions
and
0 deletions
| @@ -3208,6 +3208,21 @@ table th {{ | @@ -3208,6 +3208,21 @@ table th {{ | ||
| 3208 | color: var(--swot-muted); | 3208 | color: var(--swot-muted); |
| 3209 | opacity: 0.7; | 3209 | opacity: 0.7; |
| 3210 | }} | 3210 | }} |
| 3211 | +/* PDF/导出时的SWOT专用布局,避免圆角框重叠 */ | ||
| 3212 | +body.exporting .swot-legend {{ | ||
| 3213 | + display: none !important; | ||
| 3214 | +}} | ||
| 3215 | +body.exporting .swot-grid {{ | ||
| 3216 | + display: flex; | ||
| 3217 | + flex-wrap: wrap; | ||
| 3218 | + gap: 12px; | ||
| 3219 | + align-items: stretch; | ||
| 3220 | +}} | ||
| 3221 | +body.exporting .swot-cell {{ | ||
| 3222 | + flex: 1 1 320px; | ||
| 3223 | + min-width: 240px; | ||
| 3224 | + height: auto; | ||
| 3225 | +}} | ||
| 3211 | .callout {{ | 3226 | .callout {{ |
| 3212 | border-left: 4px solid var(--primary-color); | 3227 | border-left: 4px solid var(--primary-color); |
| 3213 | padding: 16px; | 3228 | padding: 16px; |
| @@ -3464,6 +3479,20 @@ blockquote {{ | @@ -3464,6 +3479,20 @@ blockquote {{ | ||
| 3464 | .swot-card {{ | 3479 | .swot-card {{ |
| 3465 | color: var(--swot-text); | 3480 | color: var(--swot-text); |
| 3466 | }} | 3481 | }} |
| 3482 | + .swot-legend {{ | ||
| 3483 | + display: none !important; | ||
| 3484 | + }} | ||
| 3485 | + .swot-grid {{ | ||
| 3486 | + display: flex; | ||
| 3487 | + flex-wrap: wrap; | ||
| 3488 | + gap: 10px; | ||
| 3489 | + align-items: stretch; | ||
| 3490 | + }} | ||
| 3491 | + .swot-grid .swot-cell {{ | ||
| 3492 | + flex: 1 1 320px; | ||
| 3493 | + min-width: 240px; | ||
| 3494 | + height: auto; | ||
| 3495 | + }} | ||
| 3467 | .table-wrap {{ | 3496 | .table-wrap {{ |
| 3468 | overflow-x: auto; | 3497 | overflow-x: auto; |
| 3469 | max-width: 100%; | 3498 | max-width: 100%; |
| @@ -1049,6 +1049,26 @@ body {{ | @@ -1049,6 +1049,26 @@ body {{ | ||
| 1049 | min-height: 400px; | 1049 | min-height: 400px; |
| 1050 | }} | 1050 | }} |
| 1051 | 1051 | ||
| 1052 | +/* SWOT:PDF导出隐藏四象限标注,并使用自适应布局避免重叠 */ | ||
| 1053 | +.swot-legend {{ | ||
| 1054 | + display: none !important; | ||
| 1055 | +}} | ||
| 1056 | +.swot-grid {{ | ||
| 1057 | + display: flex; | ||
| 1058 | + flex-wrap: wrap; | ||
| 1059 | + gap: 12px; | ||
| 1060 | + align-items: stretch; | ||
| 1061 | +}} | ||
| 1062 | +.swot-grid .swot-cell {{ | ||
| 1063 | + flex: 1 1 320px; | ||
| 1064 | + min-width: 240px; | ||
| 1065 | + height: auto; | ||
| 1066 | + page-break-inside: avoid; | ||
| 1067 | +}} | ||
| 1068 | +.swot-card {{ | ||
| 1069 | + page-break-inside: avoid; | ||
| 1070 | +}} | ||
| 1071 | + | ||
| 1052 | {optimized_css} | 1072 | {optimized_css} |
| 1053 | </style> | 1073 | </style> |
| 1054 | """ | 1074 | """ |
-
Please register or login to post a comment