瀏覽代碼

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 Key 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
/* ---------------------------------------------------------- */



Loading…
取消
儲存