Skip to content

Commit

Permalink
style: Stylize blockqoutes
Browse files Browse the repository at this point in the history
Update sample doc post
  • Loading branch information
manid2 committed Apr 24, 2021
1 parent 85d1215 commit 9dc56f7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
18 changes: 16 additions & 2 deletions _posts/2019-02-17-welcome-to-jekyll.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,23 @@ print_hi('Tom')
#=> prints 'Hi, Tom' to STDOUT.
{% endhighlight %}

#### More Code?
## Blockquote

I think no.
### Simple blockquote

>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat
> a ante.
*Someone famous in Source Title*

### Blockquote with citation

NOTE: Markdown has no support for citation, hence use html.

<blockquote class="blockquote">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.</p>
<footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
</blockquote>

## What else?

Expand Down
21 changes: 21 additions & 0 deletions _sass/lone-wolf-theme/_extend-bs4.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,27 @@ a h2, .card h2 {
@extend .border-0;
}

// stylize blockquote
blockquote {
@extend .blockquote;
@extend .p-2;
background-color: $gray-100;
border-left: 0.25rem solid $primary;

p {
@extend .mb-0;
@extend .font-italic;
}

footer {
@extend .blockquote-footer;
}

cite {
@extend .font-italic;
}
}

/*
home page jumbotron background
=============================*/
Expand Down

0 comments on commit 9dc56f7

Please sign in to comment.