-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Removing ::before ::after padding hack on markdown #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
fa1ab24
6626240
7c6f49c
cce0269
607ce88
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1 @@ | ||
| <link rel="stylesheet" href="https://unpkg.com/primer-css@9.2.0/build/build.css"> | ||
| <script src="https://github.com/site/assets/styleguide.js" async></script> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| // Inline code snippets | ||
| code, | ||
| tt { | ||
| padding: 0.2em; | ||
| padding: 0.2em 0.4em; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One day in the future we should bring this into our proposed em-based scale and stick to common fractions. |
||
| margin: 0; | ||
| font-size: 85%; | ||
| background-color: rgba($black, 0.05); | ||
|
|
@@ -59,10 +59,5 @@ | |
| word-wrap: normal; | ||
| background-color: transparent; | ||
| border: 0; | ||
|
|
||
| &::before, | ||
| &::after { | ||
| content: normal; | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import React from 'react' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎉 Yay for adding more stories! It would be great to add the rest of the markdown styles when you get a chance. |
||
| import { storiesOf } from '@storybook/react' | ||
|
|
||
| storiesOf('Markdown', module) | ||
| .add('code', () => ( | ||
| <div className="markdown-body"> | ||
| <p> | ||
| This is inline <code>code block</code>. This <code>code block has a <br><br/> in it</code>. <code>When a code block has a long sentence in it, it should wrap the page to a new line</code>. Some people like to see the world burn and put <code>reallylongunbrokenstringsreallylongunbrokenstringsreallylongunbrokenstringsreallylongunbrokenstringsreallylongunbrokenstrings</code> in the code blocks. | ||
| </p> | ||
| </div> | ||
| )) | ||
| .add('pre', () => ( | ||
| <div className="markdown-body"> | ||
| <pre> | ||
| <code>Really long pre blocks should scroll horizontally when the words are longer than the parent container</code> | ||
| </pre> | ||
| </div> | ||
| )) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍