-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(blockquote): improve blockquote look
1. Open and Close quotes are displayed 2. Set background color of the quote 3. Respect paragraph breaks inisde the quote
- Loading branch information
Showing
4 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Title: Blockquote Style | ||
Tags: style, typography | ||
Category: Components | ||
Date: 2019-12-01 18:41 | ||
Slug: blockquote-style | ||
Authors: Talha Mansoor | ||
Subtitle: | ||
Summary: | ||
Keywords: | ||
|
||
This is how blockquotes appear in the Elegant theme. | ||
|
||
> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pellentesque eu tincidunt tortor aliquam nulla facilisi. Nibh tortor id aliquet lectus proin nibh nisl condimentum id. | ||
> | ||
> Lobortis feugiat vivamus at augue. Sed augue lacus viverra vitae congue eu consequat. Elit pellentesque habitant morbi tristique senectus et. Netus et malesuada fames ac turpis egestas. | ||
> | ||
> Porttitor rhoncus dolor purus non enim praesent elementum facilisis. Augue eget arcu dictum varius duis at consectetur. | ||
> | ||
> Pharetra pharetra massa massa ultricies mi quis. Vulputate enim nulla aliquet porttitor lacus luctus accumsan. Pulvinar neque laoreet suspendisse interdum. | ||
> | ||
> Ultrices eros in cursus turpis massa tincidunt dui ut ornare. Sem et tortor consequat id porta nibh venenatis. Nulla facilisi morbi tempus iaculis urna id volutpat lacus. | ||
> | ||
> Arcu ac tortor dignissim convallis aenean. Mauris pharetra et ultrices neque ornare. Scelerisque fermentum dui faucibus in ornare. Nibh tellus molestie nunc non blandit. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
blockquote { | ||
margin: 3em 0 3em 2em; | ||
padding: 0 7px; | ||
background: Cornsilk; | ||
border-radius: var(--border-radius); | ||
border-left: 5px solid goldenrod; | ||
} | ||
blockquote:before, | ||
blockquote:after { | ||
font-size: 4em; | ||
color: dimgray; | ||
vertical-align: top; | ||
} | ||
blockquote:before { | ||
content: open-quote; | ||
margin-left: -0.8em; | ||
position: absolute; | ||
} | ||
blockquote:after { | ||
content: close-quote; | ||
position: relative; | ||
right: -97%; | ||
top: 45px; | ||
} | ||
blockquote p { | ||
font-family: "Helvetica Neue", Helvetica, Arial, Sans-Serif; | ||
font-size: inherit; | ||
font-variant: normal; | ||
line-height: 1.7em; | ||
text-transform: none; | ||
font-weight: 300; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.