Browse Source

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 year ago
committed by GitHub
parent
commit
ec296edfa0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions
  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
File diff suppressed because it is too large
View File


+ 1
- 1
assets/built/screen.css.map
File diff suppressed because it is too large
View File


+ 9
- 0
assets/css/screen.css View File

@@ -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…
Cancel
Save