Committed by
GitHub
Merge pull request #492 from 666ghj/Blocked-HTML
Blocked html
Showing
3 changed files
with
102 additions
and
12 deletions
| @@ -3170,6 +3170,11 @@ body {{ /* 含义:全局排版与背景设置;设置:在本块内调整相 | @@ -3170,6 +3170,11 @@ body {{ /* 含义:全局排版与背景设置;设置:在本块内调整相 | ||
| 3170 | grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* 含义:网格列模板;设置:按需调整数值/颜色/变量 */ | 3170 | grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* 含义:网格列模板;设置:按需调整数值/颜色/变量 */ |
| 3171 | gap: 12px; /* 含义:子元素间距;设置:按需调整数值/颜色/变量 */ | 3171 | gap: 12px; /* 含义:子元素间距;设置:按需调整数值/颜色/变量 */ |
| 3172 | }} /* 结束 .hero-side */ | 3172 | }} /* 结束 .hero-side */ |
| 3173 | +@media screen {{ | ||
| 3174 | + .hero-side {{ | ||
| 3175 | + margin-top: 28px; /* 含义:仅在屏幕显示时下移,避免遮挡;设置:按需调整数值 */ | ||
| 3176 | + }} | ||
| 3177 | +}} | ||
| 3173 | .hero-kpi {{ /* 含义:封面 KPI 卡片;设置:在本块内调整相关属性 */ | 3178 | .hero-kpi {{ /* 含义:封面 KPI 卡片;设置:在本块内调整相关属性 */ |
| 3174 | background: var(--card-bg); /* 含义:背景色或渐变效果;设置:按需调整数值/颜色/变量 */ | 3179 | background: var(--card-bg); /* 含义:背景色或渐变效果;设置:按需调整数值/颜色/变量 */ |
| 3175 | border-radius: 14px; /* 含义:圆角;设置:按需调整数值/颜色/变量 */ | 3180 | border-radius: 14px; /* 含义:圆角;设置:按需调整数值/颜色/变量 */ |
| @@ -800,9 +800,40 @@ class PDFLayoutOptimizer: | @@ -800,9 +800,40 @@ class PDFLayoutOptimizer: | ||
| 800 | display: none !important; | 800 | display: none !important; |
| 801 | }} | 801 | }} |
| 802 | 802 | ||
| 803 | -/* PDF中隐藏hero actions(深蓝色的三个按钮) */ | 803 | +/* PDF中显示hero actions(建议/行动条目) */ |
| 804 | .hero-actions {{ | 804 | .hero-actions {{ |
| 805 | - display: none !important; | 805 | + display: flex !important; |
| 806 | + flex-wrap: wrap !important; | ||
| 807 | + gap: 8px !important; | ||
| 808 | + margin-top: 14px !important; | ||
| 809 | + padding: 0 !important; | ||
| 810 | +}} | ||
| 811 | + | ||
| 812 | +.hero-actions .ghost-btn {{ | ||
| 813 | + display: inline-flex !important; | ||
| 814 | + align-items: center !important; | ||
| 815 | + justify-content: flex-start !important; | ||
| 816 | + background: rgba(0, 0, 0, 0.04) !important; | ||
| 817 | + border: none !important; | ||
| 818 | + border-width: 0 !important; | ||
| 819 | + border-style: none !important; | ||
| 820 | + border-radius: 999px !important; | ||
| 821 | + padding: 8px 16px !important; | ||
| 822 | + font-size: {max(cfg.page.font_size_base - 2, 11)}px !important; | ||
| 823 | + color: #222 !important; | ||
| 824 | + width: auto !important; | ||
| 825 | + height: auto !important; | ||
| 826 | + white-space: normal !important; | ||
| 827 | + line-height: 1.4 !important; | ||
| 828 | + text-align: left !important; | ||
| 829 | + box-shadow: none !important; | ||
| 830 | + cursor: default !important; | ||
| 831 | + -webkit-appearance: none !important; | ||
| 832 | + appearance: none !important; | ||
| 833 | + outline: none !important; | ||
| 834 | + word-break: break-word !important; | ||
| 835 | + max-width: 100% !important; | ||
| 836 | + box-sizing: border-box !important; | ||
| 806 | }} | 837 | }} |
| 807 | 838 | ||
| 808 | /* 页面基础样式 */ | 839 | /* 页面基础样式 */ |
| @@ -1243,25 +1274,40 @@ td {{ | @@ -1243,25 +1274,40 @@ td {{ | ||
| 1243 | justify-content: flex-start; | 1274 | justify-content: flex-start; |
| 1244 | }} | 1275 | }} |
| 1245 | 1276 | ||
| 1246 | -/* Hero actions按钮 - PDF中仍隐藏,保留缩进样式 */ | 1277 | +/* Hero actions按钮 - PDF中显示为线框标签样式 */ |
| 1247 | .hero-actions {{ | 1278 | .hero-actions {{ |
| 1248 | - margin-top: 12px; | ||
| 1249 | - display: flex; | 1279 | + margin-top: 14px; |
| 1280 | + display: flex !important; | ||
| 1250 | flex-wrap: wrap; | 1281 | flex-wrap: wrap; |
| 1251 | - gap: 6px; | 1282 | + gap: 8px; |
| 1252 | max-width: 100%; | 1283 | max-width: 100%; |
| 1253 | - overflow: hidden; | 1284 | + overflow: visible; |
| 1285 | + padding: 0; | ||
| 1254 | }} | 1286 | }} |
| 1255 | 1287 | ||
| 1256 | -.hero-actions button {{ | 1288 | +.hero-actions button, |
| 1289 | +.hero-actions .ghost-btn {{ | ||
| 1257 | font-size: {max(cfg.page.font_size_base - 2, 11)}px !important; | 1290 | font-size: {max(cfg.page.font_size_base - 2, 11)}px !important; |
| 1258 | - padding: 5px 10px !important; | ||
| 1259 | - max-width: 200px; | 1291 | + padding: 8px 16px !important; |
| 1292 | + max-width: 100%; | ||
| 1260 | word-break: break-word; | 1293 | word-break: break-word; |
| 1261 | white-space: normal; | 1294 | white-space: normal; |
| 1262 | - overflow: hidden; | ||
| 1263 | - text-overflow: ellipsis; | 1295 | + overflow: visible; |
| 1264 | box-sizing: border-box; | 1296 | box-sizing: border-box; |
| 1297 | + background: rgba(0, 0, 0, 0.04) !important; | ||
| 1298 | + border: none !important; | ||
| 1299 | + border-width: 0 !important; | ||
| 1300 | + border-style: none !important; | ||
| 1301 | + border-radius: 999px !important; | ||
| 1302 | + color: #222 !important; | ||
| 1303 | + line-height: 1.4; | ||
| 1304 | + display: inline-flex !important; | ||
| 1305 | + align-items: center; | ||
| 1306 | + justify-content: flex-start; | ||
| 1307 | + outline: none !important; | ||
| 1308 | + -webkit-appearance: none !important; | ||
| 1309 | + appearance: none !important; | ||
| 1310 | + box-shadow: none !important; | ||
| 1265 | }} | 1311 | }} |
| 1266 | 1312 | ||
| 1267 | /* 防止标题孤行 */ | 1313 | /* 防止标题孤行 */ |
| @@ -1127,6 +1127,45 @@ body {{ | @@ -1127,6 +1127,45 @@ body {{ | ||
| 1127 | background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(23,162,184,0.1)) !important; | 1127 | background: linear-gradient(135deg, rgba(0,123,255,0.1), rgba(23,162,184,0.1)) !important; |
| 1128 | }} | 1128 | }} |
| 1129 | 1129 | ||
| 1130 | +/* ========== 覆盖 hero-actions 按钮样式(无边框样式) ========== */ | ||
| 1131 | +.hero-actions {{ | ||
| 1132 | + display: flex !important; | ||
| 1133 | + flex-wrap: wrap !important; | ||
| 1134 | + gap: 8px !important; | ||
| 1135 | + margin-top: 14px !important; | ||
| 1136 | + padding: 0 !important; | ||
| 1137 | +}} | ||
| 1138 | + | ||
| 1139 | +.hero-actions button, | ||
| 1140 | +.hero-actions .ghost-btn, | ||
| 1141 | +button.ghost-btn {{ | ||
| 1142 | + display: inline-flex !important; | ||
| 1143 | + align-items: center !important; | ||
| 1144 | + justify-content: flex-start !important; | ||
| 1145 | + background: rgba(0, 0, 0, 0.04) !important; | ||
| 1146 | + border: none !important; | ||
| 1147 | + border-width: 0 !important; | ||
| 1148 | + border-style: none !important; | ||
| 1149 | + border-radius: 999px !important; | ||
| 1150 | + padding: 8px 16px !important; | ||
| 1151 | + font-size: 12px !important; | ||
| 1152 | + color: #222 !important; | ||
| 1153 | + white-space: normal !important; | ||
| 1154 | + line-height: 1.4 !important; | ||
| 1155 | + text-align: left !important; | ||
| 1156 | + box-shadow: none !important; | ||
| 1157 | + -webkit-appearance: none !important; | ||
| 1158 | + -moz-appearance: none !important; | ||
| 1159 | + appearance: none !important; | ||
| 1160 | + outline: none !important; | ||
| 1161 | + outline-width: 0 !important; | ||
| 1162 | + word-break: break-word !important; | ||
| 1163 | + max-width: 100% !important; | ||
| 1164 | + box-sizing: border-box !important; | ||
| 1165 | + margin: 0 !important; | ||
| 1166 | + font-family: inherit !important; | ||
| 1167 | +}} | ||
| 1168 | + | ||
| 1130 | /* SVG图表容器样式 */ | 1169 | /* SVG图表容器样式 */ |
| 1131 | .chart-svg-container {{ | 1170 | .chart-svg-container {{ |
| 1132 | width: 100%; | 1171 | width: 100%; |
-
Please register or login to post a comment