feat(shortcodes): add quote shortcode, and example (#414)

* Add quote shortcode, and example

* Use trim to improve whitespace

* Allow for quote with neither author nor source

* Format code and move quote.scss to article.scss

This style is only used on the article page, so it makes more sense to have it there.

Co-authored-by: Jimmy Cai <github@jimmycai.com>
This commit is contained in:
Simon Guest
2022-06-08 17:59:23 +02:00
committed by GitHub
co-authored by Jimmy Cai
parent 0a5cbea10f
commit 955bb8dd7f
3 changed files with 47 additions and 1 deletions
+10
View File
@@ -231,6 +231,16 @@
border-inline-start: var(--blockquote-border-size) solid var(--card-separator-color);
padding: 15px calc(var(--card-padding) - var(--blockquote-border-size));
background-color: var(--blockquote-background-color);
.cite {
display: block;
text-align: right;
font-size: 0.75em;
a {
text-decoration: underline;
}
}
}
hr {