mirror of
https://github.com/ViViDboarder/Vivid-Casper.git
synced 2024-12-22 19:47:38 +00:00
Fix bug where incorrect styles were applied if codeblocks have captions
This commit is contained in:
parent
b7faac9eda
commit
b5c2869ff6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -951,7 +951,7 @@ is the very first element in the post content */
|
|||||||
background: var(--ghost-accent-color);
|
background: var(--ghost-accent-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-content :not(pre) code {
|
.gh-content ::not(pre) code {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
padding: 0.15em 0.4em 0.15em;
|
padding: 0.15em 0.4em 0.15em;
|
||||||
border: #e1eaef 1px solid;
|
border: #e1eaef 1px solid;
|
||||||
@ -963,10 +963,10 @@ is the very first element in the post content */
|
|||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gh-content > pre {
|
.gh-content pre {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
padding: 20px;
|
padding: 16px 20px;
|
||||||
border: 1px solid color-mod(var(--color-darkgrey) l(-20%));
|
border: 1px solid color-mod(var(--color-darkgrey) l(-20%));
|
||||||
color: var(--color-wash);
|
color: var(--color-wash);
|
||||||
font-size: 1.4rem;
|
font-size: 1.4rem;
|
||||||
@ -1001,11 +1001,11 @@ make sure they look good, and are given a bit of extra spacing. */
|
|||||||
|
|
||||||
/* Add extra margin before/after any cards,
|
/* Add extra margin before/after any cards,
|
||||||
except for when immediately preceeded by a heading */
|
except for when immediately preceeded by a heading */
|
||||||
.gh-content :not(.kg-card):not([id]) + .kg-card {
|
.gh-content ::not(.kg-card):not([id]) + .kg-card {
|
||||||
margin-top: 6vmin;
|
margin-top: 6vmin;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.gh-content .kg-card + :not(.kg-card) {
|
.gh-content .kg-card + ::not(.kg-card) {
|
||||||
margin-top: 6vmin;
|
margin-top: 6vmin;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user