浏览代码

Added support for code cards with captions (#575)

refs https://github.com/TryGhost/Ghost/pull/10719

- adds styling for `.kg-code-card` so that code blocks are styled the same no matter if they are top-level or inside of a `<figure>` element
master
Kevin Ansfield 1年前
committed by GitHub
父节点
当前提交
ec296edfa0
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 3 个文件被更改,包括 11 次插入2 次删除
  1. +1
    -1
      assets/built/screen.css
  2. +1
    -1
      assets/built/screen.css.map
  3. +9
    -0
      assets/css/screen.css

+ 1
- 1
assets/built/screen.css
文件差异内容过多而无法显示
查看文件


+ 1
- 1
assets/built/screen.css.map
文件差异内容过多而无法显示
查看文件


+ 9
- 0
assets/css/screen.css 查看文件

@@ -1936,6 +1936,15 @@ Usage (In Ghost editor):
margin: -2.25em 0 3em;
}

/* keep existing <pre> styles for code cards with captions */
.kg-code-card {
min-width: 100%;
}

.kg-code-card pre {
margin: 0;
}

/* 8. Author Template
/* ---------------------------------------------------------- */



正在加载...
取消
保存