✨ 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:
parent
ff43de1c63
commit
ec296edfa0
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
|
@ -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…
Reference in a new issue