]> git.ipfire.org Git - ipfire.org.git/commitdiff
CSS: Style blockquotes
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Feb 2020 20:03:22 +0000 (20:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 12 Feb 2020 20:29:11 +0000 (20:29 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/scss/_variables.scss
src/scss/style.scss

index 77d3051bb2c3db8ed11c854d20f9595c55f4e207..749b58f59d67d45a26b6de159e4c5a7b422e06c4 100644 (file)
@@ -61,6 +61,8 @@ $small-font-size:                     87.5%;
 
 $line-height-base:                     1.5;
 
+$blockquote-font-size:         $font-size-base * 1.125;
+
 // Headings
 $headings-font-weight:         500;
 $headings-line-height:         1.15;
index 05ac5e0023a3425f6ffd999723af3978172002c0..521a4af4e16147237c23243bec844f059df24202 100644 (file)
@@ -227,6 +227,33 @@ section {
        }
 }
 
+blockquote {
+       @extend .blockquote;
+
+       // Add a light border to the left
+       border-left: 0.5rem solid $light;
+       padding: $spacer;
+
+       quotes: "“" "”" "“" "”";
+
+       // Quote
+       &:before{
+               color: $light;
+               font-size: $display1-size;
+               line-height: 0;
+               margin-right: 0.25em;
+               vertical-align: -0.4em;
+       }
+
+       &:before {
+               content: open-quote;
+       }
+
+       p {
+               margin-bottom: 0;
+       }
+}
+
 .blog-post {
        .blog-header {
                h4 {