马一丁

Add SWOT analysis to enable pagination

@@ -3478,17 +3478,32 @@ blockquote {{ @@ -3478,17 +3478,32 @@ blockquote {{
3478 }} 3478 }}
3479 .swot-card {{ 3479 .swot-card {{
3480 color: var(--swot-text); 3480 color: var(--swot-text);
  3481 + /* 允许卡片内部分页,避免整体被抬到下一页 */
  3482 + break-inside: auto !important;
  3483 + page-break-inside: auto !important;
3481 }} 3484 }}
3482 - .swot-legend {{  
3483 - display: none !important; 3485 + .swot-card__head {{
  3486 + break-after: avoid;
  3487 + page-break-after: avoid;
3484 }} 3488 }}
3485 .swot-grid {{ 3489 .swot-grid {{
  3490 + break-before: avoid;
  3491 + page-break-before: avoid;
  3492 + break-inside: auto;
  3493 + page-break-inside: auto;
3486 display: flex; 3494 display: flex;
3487 flex-wrap: wrap; 3495 flex-wrap: wrap;
3488 gap: 10px; 3496 gap: 10px;
3489 align-items: stretch; 3497 align-items: stretch;
3490 }} 3498 }}
3491 .swot-grid .swot-cell {{ 3499 .swot-grid .swot-cell {{
  3500 + break-inside: avoid;
  3501 + page-break-inside: avoid;
  3502 + }}
  3503 + .swot-legend {{
  3504 + display: none !important;
  3505 + }}
  3506 + .swot-grid .swot-cell {{
3492 flex: 1 1 320px; 3507 flex: 1 1 320px;
3493 min-width: 240px; 3508 min-width: 240px;
3494 height: auto; 3509 height: auto;
@@ -1053,20 +1053,31 @@ body {{ @@ -1053,20 +1053,31 @@ body {{
1053 .swot-legend {{ 1053 .swot-legend {{
1054 display: none !important; 1054 display: none !important;
1055 }} 1055 }}
  1056 +.swot-card {{
  1057 + /* 允许卡片内容在必要时分页,避免整体被抬到下一页 */
  1058 + break-inside: auto !important;
  1059 + page-break-inside: auto !important;
  1060 +}}
  1061 +.swot-card__head {{
  1062 + break-after: avoid;
  1063 + page-break-after: avoid;
  1064 +}}
1056 .swot-grid {{ 1065 .swot-grid {{
1057 display: flex; 1066 display: flex;
1058 flex-wrap: wrap; 1067 flex-wrap: wrap;
1059 gap: 12px; 1068 gap: 12px;
1060 align-items: stretch; 1069 align-items: stretch;
  1070 + break-before: avoid;
  1071 + page-break-before: avoid;
  1072 + break-inside: auto;
  1073 + page-break-inside: auto;
1061 }} 1074 }}
1062 .swot-grid .swot-cell {{ 1075 .swot-grid .swot-cell {{
1063 flex: 1 1 320px; 1076 flex: 1 1 320px;
1064 min-width: 240px; 1077 min-width: 240px;
1065 height: auto; 1078 height: auto;
1066 page-break-inside: avoid; 1079 page-break-inside: avoid;
1067 -}}  
1068 -.swot-card {{  
1069 - page-break-inside: avoid; 1080 + break-inside: avoid;
1070 }} 1081 }}
1071 1082
1072 {optimized_css} 1083 {optimized_css}