mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-23 03:57:38 +00:00
✨ 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
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;
|
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
|
/* 8. Author Template
|
||||||
/* ---------------------------------------------------------- */
|
/* ---------------------------------------------------------- */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user