修复压缩产物丢失的代码块样式,并把主题更新源收进主站
1. kratos.min.css 补回 6 条代码块样式 上次为了注释掉 max-height 把单行压缩版手工展开,展开时整组丢了 .content 下的 pre / code / kbd / pre code / pre ol / pre li, 而未压缩的 kratos.css 里它们都在,源与产物从此不一致。 表现是行内 code 与 kbd 没有样式(代码块因插件主题覆盖才没露馅)。 改为用 clean-css 从 kratos.css 重新生成,不再手工维护产物。 2. 删掉 max-height / text-overflow 两条声明,而不是注释掉 注释会被压缩器剥掉,产物里等于没改过。 3. 补上 Prism 代码高亮兜底(此前只存在于线上,仓库里没有) 语言包路径改用 plugins_url() 动态生成,换域名或加 CDN 不会静默 404。 4. 主题更新元数据从独立子域名迁到主站 /theme-update/ 地址可用 wp-config.php 的 YANG_THEME_UPDATE_URL 覆盖,换域名不必改主题代码。 5. footer 的主题链接指向自建源库;补文档说明自动升级会覆盖主题目录、 以及发布新版本必须"先打包再改版本号"的顺序。 6. 顺带去掉 .a-post .header .label 里重复声明的 position。
This commit is contained in:
@@ -575,14 +575,13 @@ button:focus {
|
||||
display: -webkit-box;
|
||||
overflow: hidden;
|
||||
margin: 3px 0 6px;
|
||||
max-height: 25px;
|
||||
text-overflow: ellipsis;
|
||||
/* 下面两条已废弃:新版 Chrome 里 max-height 与 -webkit-line-clamp 同时生效会截断成半行。
|
||||
直接删除而不是注释,因为注释会被 CSS 压缩器剥掉,产物里等于没改。 */
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 1;
|
||||
}
|
||||
|
||||
.k-main .board .article-panel .a-post .header .label {
|
||||
position: relative;
|
||||
position: relative;
|
||||
top: -2px;
|
||||
display: inline-block;
|
||||
|
||||
Reference in New Issue
Block a user