-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Style rst directives: figure, quote, section headings (#130)
* Adjust styling of some rst directives * Use MyST directives * Move figure and quote styling into their own files Co-authored-by: Storm Heg <[email protected]>
- Loading branch information
Showing
8 changed files
with
76 additions
and
316 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
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 |
---|---|---|
|
@@ -21,6 +21,7 @@ lists | |
nesting/index | ||
paragraphs | ||
progressive-disclosure | ||
quotes | ||
rst-page | ||
tables | ||
tables-of-content | ||
|
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,22 @@ | ||
# Quotes | ||
|
||
Quotes, also known as blockquotes or pull-quotes, should stand out: | ||
|
||
> Lorem Ipsum is simply dummy text of the printing and typesetting industry. | ||
> Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, | ||
> when an unknown printer took a galley of type and scrambled it to make a type | ||
> specimen book. | ||
|
||
RST has `epigraph`, `highlights`, and `pull-quote` which all create a quote. | ||
Adding the double dash line at the bottom properly attributes an author. | ||
|
||
```{epigraph} | ||
Lorem Ipsum is simply dummy text of the printing and typesetting industry. | ||
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, | ||
when an unknown printer took a galley of type and scrambled it to make a type | ||
specimen book. | ||
-- lipsum.com | ||
``` |
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
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,12 @@ | ||
// Figures | ||
.figure { | ||
img { | ||
border-radius: $border-radius; | ||
box-shadow: $box-shadow-sm; | ||
margin-bottom: $paragraph-margin-bottom / 2; | ||
} | ||
.caption { | ||
color: $text-muted; | ||
font-style: italic; | ||
} | ||
} |
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,9 @@ | ||
// Quotes | ||
blockquote { | ||
border-left: 4px solid $gray-100; | ||
padding-left: $spacer; | ||
margin: ($paragraph-margin-bottom * 2) 0; | ||
.attribution { | ||
color: $blockquote-small-color; | ||
} | ||
} |
Oops, something went wrong.