Fix bug with :not unfixing previous fix of ::not which it turns out is not a thing

This commit is contained in:
John O'Nolan 2021-03-09 09:03:54 -05:00
parent b5c2869ff6
commit ea6942a7fe
3 changed files with 8 additions and 6 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

@ -951,7 +951,7 @@ is the very first element in the post content */
background: var(--ghost-accent-color);
}
.gh-content ::not(pre) code {
.gh-content :not(pre) code {
vertical-align: middle;
padding: 0.15em 0.4em 0.15em;
border: #e1eaef 1px solid;
@ -1001,11 +1001,11 @@ make sure they look good, and are given a bit of extra spacing. */
/* Add extra margin before/after any cards,
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-bottom: 0;
}
.gh-content .kg-card + ::not(.kg-card) {
.gh-content .kg-card + :not(.kg-card) {
margin-top: 6vmin;
margin-bottom: 0;
}
@ -1041,8 +1041,10 @@ except for when immediately preceeded by a heading */
/* Galleries
/* ---------------------------------------------------------- */
/* When there are two galleries in a two, reduce margin
/* When there galleries are mixed with images, reduce margin
between them, so it looks like 1 big gallery */
.kg-image-card + .kg-gallery-card,
.kg-gallery-card + .kg-image-card,
.kg-gallery-card + .kg-gallery-card {
margin-top: 0.75em;
}