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
This commit is contained in:
Kevin Ansfield 2019-05-01 17:12:18 +02:00 committed by GitHub
parent ff43de1c63
commit ec296edfa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

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