1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-20 01:46:11 -05:00

Make code font size dynamic

This commit is contained in:
Patrick Marsceill 2020-05-01 15:07:27 -04:00
parent ff5047e523
commit 2f13db1f01
No known key found for this signature in database
GPG Key ID: 286B93882D828F40
2 changed files with 6 additions and 1 deletions

View File

@ -86,7 +86,7 @@ a:not([class]) {
code { code {
font-family: $mono-font-family; font-family: $mono-font-family;
font-size: 12px; font-size: 0.75em;
line-height: $body-line-height; line-height: $body-line-height;
} }

View File

@ -22,9 +22,14 @@ Code can be rendered inline by wrapping it in single back ticks.
<div class="code-example" markdown="1"> <div class="code-example" markdown="1">
Lorem ipsum dolor sit amet, `<inline code snippet>` adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, `<inline code snippet>` adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
## Heading with `<inline code snippet>` in it.
{: .no_toc }
</div> </div>
```markdown ```markdown
Lorem ipsum dolor sit amet, `<inline code snippet>` adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Lorem ipsum dolor sit amet, `<inline code snippet>` adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
## Heading with `<inline code snippet>` in it.
``` ```
--- ---