Skip to content

Commit 7abfc93

Browse files
author
Miguel Solorio
committed
Open scope for blockquote and fix weird spacing bug
1 parent 10de4c3 commit 7abfc93

File tree

1 file changed

+20
-13
lines changed

1 file changed

+20
-13
lines changed

preview-src/index.css

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,26 @@ body .comment-form .form-actions button {
335335
content: "No description provided."
336336
}
337337

338+
blockquote {
339+
display: block;
340+
flex-direction: column;
341+
margin: 8px 0;
342+
padding: 8px 12px;
343+
border-left-width: 5px;
344+
border-left-style: solid;
345+
}
346+
347+
blockquote p {
348+
margin: 8px 0;
349+
}
350+
351+
blockquote p:first-child {
352+
margin-top: 0;
353+
}
354+
355+
blockquote p:last-child {
356+
margin-bottom: 0;
357+
}
338358

339359
.comment-body img {
340360
max-width: 100%;
@@ -405,19 +425,6 @@ body .comment-form .form-actions button {
405425
border-top: 1px solid;
406426
}
407427

408-
.comment-body blockquote {
409-
display: flex;
410-
flex-direction: column;
411-
margin: 8px 0;
412-
padding: 0px 12px;
413-
border-left-width: 5px;
414-
border-left-style: solid;
415-
}
416-
417-
.comment-body blockquote p {
418-
margin: 8px 0;
419-
}
420-
421428
.comment-body code {
422429
font-family: Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace, "Droid Sans Fallback";
423430
}

0 commit comments

Comments
 (0)