-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #464 from kbayliss/fix/markdown-styles
Adding a fix from @kbayliss to address some spacing inconsistencies in the code blocks and markdown blocks being used for the blog. Apply richtext styles to markdown blocks and improve spacing of markdown/code blocks
- Loading branch information
Showing
7 changed files
with
70 additions
and
52 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.../project_styleguide/templates/patterns/components/streamfields/code_block/code_block.html
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{% load wagtailcore_tags %} | ||
<div class="grid"> | ||
<div class="grid-align"> | ||
<div class="code-block code-block--{{ self.block.name|default:'markdownblock' }}"> | ||
{{ code }} | ||
</div> | ||
</div> |
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,23 @@ | ||
.code-block { | ||
@include sf-spacing(2); | ||
|
||
grid-column: 2 / span 2; | ||
|
||
@include media-query(medium) { | ||
grid-column: 2 / span 3; | ||
} | ||
|
||
@include media-query(large) { | ||
grid-column: 3 / span 3; | ||
} | ||
|
||
&--markdownblock { | ||
// Ensure HTML components are styled correctly. | ||
@include richtext(); | ||
|
||
// Make `CodeBlock` and code blocks within `MarkDownBlock` look the same. | ||
pre { | ||
@include sf-spacing(2); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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
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