1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 13:44:15 +00:00

fix: prompt with nested blockquotes renders incorrectly (#846)

Resolves #846
This commit is contained in:
Cotes Chung
2023-01-30 04:58:30 +08:00
parent 511df11546
commit babb4a0c5a
2 changed files with 10 additions and 60 deletions

View File

@@ -131,9 +131,8 @@ blockquote {
color: var(--blockquote-text-color);
&[class^="prompt-"] {
display: flex;
border-left: 0;
padding: 1rem;
padding: 1rem 1rem 1rem 3rem;
color: var(--prompt-text-color);
@extend %rounded;
@@ -141,19 +140,15 @@ blockquote {
&::before {
text-align: center;
width: 1.25rem;
margin-right: 0.75rem;
position: relative;
top: 0.4rem;
position: absolute;
left: 2.5rem;
margin-top: 0.4rem;
text-rendering: auto;
-webkit-font-smoothing: antialiased;
}
> div {
max-width: calc(100% - 2rem);
> :last-child {
margin-bottom: 0;
}
> p:last-child {
margin-bottom: 0;
}
}
@@ -1279,11 +1274,14 @@ $sidebar-display: "sidebar-display";
.post-content {
> blockquote[class^="prompt-"] {
@include pl-pr(1.25rem);
@include ml-mr(-1.25rem);
border-radius: 0;
max-width: none;
&::before {
left: 1rem;
}
}
}
}