From 37df22eac6ebf6398e29e7c3254b36d750efdd10 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Mon, 30 Jun 2014 00:58:27 -0700 Subject: [PATCH] suppress h1,h2,h3 top margin in quotes --- .../stylesheets/desktop/topic-post.scss | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/desktop/topic-post.scss b/app/assets/stylesheets/desktop/topic-post.scss index 4c2b1a3e235..061083b3746 100644 --- a/app/assets/stylesheets/desktop/topic-post.scss +++ b/app/assets/stylesheets/desktop/topic-post.scss @@ -663,22 +663,25 @@ iframe { } -blockquote { /* solo quotes */ +/* solo quotes */ +blockquote { /* inherit only the default top and bottom margins here */ margin-left: 0; margin-right: 0; padding: 12px; - - a.mention {background: darken(scale-color-diff(), 10%);} - p:first-of-type {margin-top: 0;} - p:last-of-type {margin-bottom: 0;} + a.mention {background: darken(scale-color-diff(), 10%);} + p:first-of-type {margin-top: 0;} + p:last-of-type {margin-bottom: 0;} + h1:first-of-type, h2:first-of-type, h3:first-of-type { margin-top: 0;} } -.quote { /* quotes with attribution */ +/* quotes with attribution */ +.quote { &>blockquote { - margin-top: 0; - padding-top: 0; - p:first-of-type {margin:0;} + margin-top: 0; + padding-top: 0; + p:first-of-type {margin:0;} + h1:first-of-type, h2:first-of-type, h3:first-of-type { margin-top: 0;} .onebox-result { background-color: scale-color-diff(); }