mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-04-24 20:35:33 +08:00
Initial hacky version of site
This commit is contained in:
202
node_modules/primer-markdown/CHANGELOG.md
generated
vendored
Normal file
202
node_modules/primer-markdown/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,202 @@
|
||||
# v3.3.7
|
||||
|
||||
* bump version number - Caleb Winters [github/github@1babcd0](https://github.com/github/github/commit/1babcd0)
|
||||
* update code blocks - Caleb Winters [github/github@eb3c6b4](https://github.com/github/github/commit/eb3c6b4)Revert "Fix extra fancy code blocks"Fix extra fancy code blocks
|
||||
|
||||
# v3.3.6
|
||||
|
||||
* Bump all the version numbers for readme - Mu-An Chiou [github/github@a9d152f](https://github.com/github/github/commit/a9d152f)
|
||||
* Fix all the travis badge URL - Mu-An Chiou [github/github@9cd6d84](https://github.com/github/github/commit/9cd6d84)
|
||||
|
||||
# v3.3.5
|
||||
|
||||
* bump version numbers that were missed previously - broccolini [github/github@ee50553](https://github.com/github/github/commit/ee50553)
|
||||
* update markdown primer-product module color variables - broccolini [github/github@ffe0fd7](https://github.com/github/github/commit/ffe0fd7)
|
||||
* bg color transparent - Caleb Winters [github/github@d398e79](https://github.com/github/github/commit/d398e79)
|
||||
* fix bg color css - Caleb Winters [github/github@e626139](https://github.com/github/github/commit/e626139)
|
||||
* clean up selector - Caleb Winters [github/github@408bf5d](https://github.com/github/github/commit/408bf5d)
|
||||
* only remove bg color on images in table row - Caleb Winters [github/github@e752a40](https://github.com/github/github/commit/e752a40)
|
||||
* remove background-color css for markdown images - Caleb Winters [github/github@60b13f6](https://github.com/github/github/commit/60b13f6)
|
||||
|
||||
# v3.3.3
|
||||
|
||||
* update version numbers for primer package with bold update - broccolini [github/github@5d3e089](https://github.com/github/github/commit/5d3e089)
|
||||
|
||||
# v3.3.2
|
||||
|
||||
* bumping the version - Jon Rohan [github/github@4a72b25](https://github.com/github/github/commit/4a72b25)
|
||||
* Pointing main js file to build - Jon Rohan [github/github@3575651](https://github.com/github/github/commit/3575651)
|
||||
* don't change the versions yet - Jon Rohan [github/github@6bebcff](https://github.com/github/github/commit/6bebcff)
|
||||
* Bumping version - Jon Rohan [github/github@df8b91c](https://github.com/github/github/commit/df8b91c)
|
||||
* Cleaning up devDependencies versions and simplifying npm scripts - Jon Rohan [github/github@2c42571](https://github.com/github/github/commit/2c42571)
|
||||
* Sorting and table objects. We also don't need homepage - Jon Rohan [github/github@798629d](https://github.com/github/github/commit/798629d)
|
||||
* Removing duplicate headers - Jon Rohan [github/github@225cee1](https://github.com/github/github/commit/225cee1)
|
||||
|
||||
# v3.3.1
|
||||
|
||||
* Rename repository with prefix primer- - Jon Rohan [github/github@ec8774a](https://github.com/github/github/commit/ec8774a)
|
||||
* move blob-csv into markdown folder: - broccolini [github/github@ede5601](https://github.com/github/github/commit/ede5601)
|
||||
* Separating out modules into primer-core and primer-product - Jon Rohan [github/github@ddf698c](https://github.com/github/github/commit/ddf698c)
|
||||
|
||||
# v3.3.0
|
||||
|
||||
* Updating version - Jon Rohan [github/github@6bf5fe5](https://github.com/github/github/commit/6bf5fe5)
|
||||
* Fix lint test - Garen Torikian [github/github@0d2bc5d](https://github.com/github/github/commit/0d2bc5d)
|
||||
* Keep it together - Garen Torikian [github/github@50871a8](https://github.com/github/github/commit/50871a8)
|
||||
* Updating the modules stylelint - Jon Rohan [github/github@389609f](https://github.com/github/github/commit/389609f)
|
||||
* more linting - Mark Otto [github/github@5d8e498](https://github.com/github/github/commit/5d8e498)
|
||||
* leading zero - Mark Otto [github/github@46b14af](https://github.com/github/github/commit/46b14af)
|
||||
* Update Markdown typography styles - Mark Otto [github/github@ffd6b27](https://github.com/github/github/commit/ffd6b27)
|
||||
|
||||
# v3.2.0
|
||||
|
||||
* Bumping to a new version - Jon Rohan [github/github@ff32813](https://github.com/github/github/commit/ff32813)
|
||||
* Make sure the modules build without error before publishing - Jon Rohan [github/github@57ac5e6](https://github.com/github/github/commit/57ac5e6)
|
||||
* First part of genpopping all system font changes: remove typographic overrides for font-size, line-height, etc on global components - Mark Otto [github/github@6c50e2d](https://github.com/github/github/commit/6c50e2d)
|
||||
* Adding documentation status to most of the modules - Jon Rohan [github/github@b97695c](https://github.com/github/github/commit/b97695c)
|
||||
|
||||
# v3.1.3
|
||||
|
||||
* Publishing a new version - Jon Rohan [github/github@eed0e96](https://github.com/github/github/commit/eed0e96)
|
||||
* Adding link to homepage in readme docs - Jon Rohan [github/github@633f421](https://github.com/github/github/commit/633f421)
|
||||
* Removing some unnecessary lint plugins and using native - Jon Rohan [github/github@2ae0070](https://github.com/github/github/commit/2ae0070)
|
||||
* including no-utility lint plugin - Jon Rohan [github/github@5cb86ed](https://github.com/github/github/commit/5cb86ed)
|
||||
* Disabling utility check - Jon Rohan [github/github@e92dbf4](https://github.com/github/github/commit/e92dbf4)
|
||||
* Adding lint plugins for new config - Jon Rohan [github/github@7fb9613](https://github.com/github/github/commit/7fb9613)
|
||||
|
||||
# v3.1.2
|
||||
|
||||
* Mentioning the build file - Jon Rohan [github/github@64ca4a7](https://github.com/github/github/commit/64ca4a7)
|
||||
* Including build/build.css in distributed npm module - Jon Rohan [github/github@e4effbf](https://github.com/github/github/commit/e4effbf)
|
||||
* Updating modules to run on prepublish to include build.css in distribution - Jon Rohan [github/github@5b573a0](https://github.com/github/github/commit/5b573a0)
|
||||
* Re-ordering the docs to the bottom of the readme - Jon Rohan [github/github@9c1f291](https://github.com/github/github/commit/9c1f291)
|
||||
* Updating the link - Jon Rohan [github/github@f67684b](https://github.com/github/github/commit/f67684b)
|
||||
|
||||
# v3.1.1
|
||||
|
||||
* Bumping version to include postcss.json in npm - Jon Rohan [github/github@9e560ba](https://github.com/github/github/commit/9e560ba)
|
||||
* Using stylelint to lint the modules instead of scss_lint - Jon Rohan [github/github@cb0b8fd](https://github.com/github/github/commit/cb0b8fd)
|
||||
* Updating for stylelint instead of scss_lint - Jon Rohan [github/github@87a2c68](https://github.com/github/github/commit/87a2c68)
|
||||
|
||||
# v3.1.0
|
||||
|
||||
* Don't link requirements - Jon Rohan [github/github@7740e81](https://github.com/github/github/commit/7740e81)
|
||||
* Updating the README with more detailed instructions - Jon Rohan [github/github@5dd7c34](https://github.com/github/github/commit/5dd7c34)
|
||||
* Bumping the version - Jon Rohan [github/github@01e7c4e](https://github.com/github/github/commit/01e7c4e)
|
||||
* Reorganize the module folders into a more flexible organization - Jon Rohan [github/github@5a07101](https://github.com/github/github/commit/5a07101)
|
||||
* cleaning up the package.json files - Jon Rohan [github/github@77763a1](https://github.com/github/github/commit/77763a1)
|
||||
* Adding npm version badges to readme - Jon Rohan [github/github@90b1871](https://github.com/github/github/commit/90b1871)
|
||||
|
||||
# v3.0.0
|
||||
|
||||
* Adding travis build status - Jon Rohan [github/github@5758f9e](https://github.com/github/github/commit/5758f9e)
|
||||
* Moving primer-markdown to a css module - Jon Rohan [github/github@96b9132](https://github.com/github/github/commit/96b9132)
|
||||
|
||||
# v2.5.1
|
||||
Fixes #59Override background-color on `.emoji` so it doesn't look awkward in zebra striped tables.
|
||||
|
||||
# v2.5.0
|
||||
Add Apple Emoji to default font stackImproves emoji color rendering in Chrome.
|
||||
|
||||
# v2.4.0
|
||||
Make Windows color emoji work in Markdown contentSpecifying Segoe UI Emoji gives us color emoji on Windows 8.1 and newer.
|
||||
Windows 7 and 8 will render monochrome emoji without any extra work on
|
||||
our part, but specifying Segoe UI Symbol gives us slightly better rendering
|
||||
in IE for a few glyphs. This also matches Primer's non-Markdown font stack.
|
||||
|
||||
# v2.3.0
|
||||
Adding clearfix to the markdown body.
|
||||
|
||||
# v2.2.3
|
||||
Changing to content-box on images
|
||||
|
||||
# v2.2.2
|
||||
|
||||
|
||||
# v2.2.1
|
||||
Updates to left and right aligned images
|
||||
|
||||
# v2.2.0
|
||||
|
||||
|
||||
# v2.1.9
|
||||
Remove overflow: hidden on `.markdown-body`
|
||||
|
||||
# v2.1.8
|
||||
Fixin' some links in README and CONTRIBUTINGUpdate README.mdRemove apostropheLooks like the repo changed its name at one point + a copy paste derpfrom twbs/bootstrap.Speaking of which, it might be worth tweaking the “Feature Requests”guidelines in light of GH not really wanting any for Primer :-)
|
||||
|
||||
# v2.1.7
|
||||
Make links in comments underlined on hover in SafariSafari 8 has a bug with the a:not(:link):not(:visited) selector we wereusing previously (see https://bugs.webkit.org/show_bug.cgi?id=142737).Now we use a:not([href]) instead, which should cover all of the cases wecare about (namely, <a name="foo"> elements explicitly created usingHTML syntax in Markdown).
|
||||
|
||||
# v2.1.6
|
||||
Remove link styles on non-link anchors in user contentIt seems to be fairly common for users to write Markdown like thefollowing: <a name="examples" /> Examples ======== Here are some examples:This will generate the following HTML: <p><a name="examples" /></p> <h2>Examples</h2> <p>Here are some examples:</p>github.com's current sanitizer (Sanitize 2.0.4) respects self-closingtag syntax (because it is built on top of libxml2, an XML parser, andself-closing tags are an XML thing). So when this gets run throughSanitize 2.0.4, you end up with the following HTML: <p><a name="examples"></a></p> <h2>Examples</h2> <p>Here are some examples:</p>However, both Sanitize 3.x and the new sanitizer we're developing forgithub.com are based on an HTML-compliant parser rather than libxml2.HTML parsers treat this markup differently, and produce the following: <p><a name="examples"></a></p><a name="examples"> <h2>Examples</h2> <p>Here are some examples:</p></a>Browsers do the exact same thing given this HTML, as you can see in theLive DOM Viewer[1].Forgetting to close a non-link anchor, or using self-closing tag syntax(which also leaves the tag unclosed) is not normally a problem. Browsersdon't apply any styles to these elements by default, so many web authorsnever even notice they've made this mistake. But github.com applies linkstyles to all anchor elements whether or not they're actually links, sothis mistake becomes very noticeable: suddenly large parts of yourdocument are blue!Changing all of github.com's CSS to only target a:link and a:visitedelements would be a huge change that is probably not worth the effort.Instead, we'll remove the link styles from non-link anchor elements inuser content.[1]: http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cp%3E%3Ca%20name%3D%22examples%22%20%2F%3E%3C%2Fp%3E%0A%3Ch2%3EExamples%3C%2Fh2%3E%0A%3Cp%3EHere%20are%20some%20examples%3A%3C%2Fp%3E%0A
|
||||
|
||||
# v2.1.5
|
||||
Fix emoji being shrunk by max-width on `img`This overrides the max-width set on `.markdown-body img`so that emoji
|
||||
would not be shrunk.
|
||||
|
||||
# v2.1.4
|
||||
|
||||
|
||||
# v2.1.3
|
||||
Anchor link alignmentAdd <kbd> stylingKilling the syntax theme and ace syntax theme out of user-contentIgnore render-test.mdre https://github.com/github/github/pull/35950We don't need to distribute this file.
|
||||
|
||||
# v2.0.0
|
||||
|
||||
|
||||
# 2.1.2
|
||||
Anchor link alignment
|
||||
|
||||
# 2.1.1
|
||||
Add <kbd> styling
|
||||
|
||||
# 2.1.0
|
||||
Killing the syntax theme and ace syntax theme out of user-content
|
||||
|
||||
# 2.0.1
|
||||
Ignore render-test.mdre https://github.com/github/github/pull/35950New syntax themes, adding ace editor syntaxdon't set height on .anchorFix styling of closing brackets in Ruby interpolated stringsWe need to override the normal .h style in this case.This is for our style guide https://github.com/styleguide/cssSupport recursive grammars by resetting CSS scopesUnder our new TextMate-based highlighting, we can end up with nestedhighlighting <span>s. In some cases we need to reset the highlightingstyles to match the top-level styles. This makes it so that, e.g., codeinside interpolated strings is colored as code rather than as stringtext. The new <span class="h"> elements that the TextMate highlighterproduces indicate where this needs to happen, and the styles added inthis commit accomplish the reset.See https://github.com/github/lex-luthor/issues/31 andhttps://github.com/github/github/pull/34312 for more discussion.We don't need to distribute this file.
|
||||
|
||||
# 1.2.9
|
||||
Fix code strikethroughs
|
||||
|
||||
# 1.2.8
|
||||
Revert keyword type changeNew color made keywords indistinguishable fromfunctions in certain cases. This change causescss scale values (px, (r)em, etc.) to appeardifferently than the associated number value,but we may just have to make that compromise for now.Organize syntax styles
|
||||
* Groups and combines related selectorsMissed the base number literal classUpdate syntax highlightingTake syntax highlighted diffs into account and tweakcontrast for words affected by intra-line highlighting.Fix underpants typoUnless this is some sort of weird Michigan dialect @bkeepers.Add task lists to sample documentAdd Markdown render test file
|
||||
|
||||
# 1.2.7
|
||||
Make sure code lines don't wrap
|
||||
|
||||
# 1.2.6
|
||||
Add word-break: break-word
|
||||
|
||||
# 1.2.5
|
||||
Segoe UI for Windows Markdown
|
||||
|
||||
Thoughts? This is with `font-size: 15px` (for some reason, Segoe always looks better when the font size is an odd number), I'm not sure how to do that via pure CSS though, probably need a "If Windows" stylesheet. Just changing it to Segoe looks better too though:
|
||||
|
||||

|
||||
|
||||
# 1.2.4
|
||||
Make sure plain <pre> elements have bottom margin
|
||||
|
||||
# 1.2.3
|
||||
Add bottom margin to all header sizes
|
||||
* master: bump to 1.2.2 fix margins on code inside .highlight containers use top margins for paragraphs in nested lists use rgba for code background colorsConflicts: bower.json package.json
|
||||
|
||||
# 1.2.2
|
||||
|
||||
|
||||
# 1.2.10
|
||||
Support recursive grammars by resetting CSS scopesUnder our new TextMate-based highlighting, we can end up with nestedhighlighting <span>s. In some cases we need to reset the highlightingstyles to match the top-level styles. This makes it so that, e.g., codeinside interpolated strings is colored as code rather than as stringtext. The new <span class="h"> elements that the TextMate highlighterproduces indicate where this needs to happen, and the styles added inthis commit accomplish the reset.See https://github.com/github/lex-luthor/issues/31 andhttps://github.com/github/github/pull/34312 for more discussion.Fix code strikethroughsRevert keyword type changeNew color made keywords indistinguishable fromfunctions in certain cases. This change causescss scale values (px, (r)em, etc.) to appeardifferently than the associated number value,but we may just have to make that compromise for now.Organize syntax styles
|
||||
* Groups and combines related selectorsMissed the base number literal classUpdate syntax highlightingTake syntax highlighted diffs into account and tweakcontrast for words affected by intra-line highlighting.Fix underpants typoUnless this is some sort of weird Michigan dialect @bkeepers.Add task lists to sample documentAdd Markdown render test fileMake sure code lines don't wrapAdd word-break: break-wordSegoe UI for Windows MarkdownMake sure plain <pre> elements have bottom marginAdd bottom margin to all header sizes
|
||||
* master: bump to 1.2.2 fix margins on code inside .highlight containers use top margins for paragraphs in nested lists use rgba for code background colorsConflicts: bower.json package.jsonMore Markdown tweaksThis is so code blocks on shaded tables cells are still visible.
|
||||
|
||||
Thoughts? This is with `font-size: 15px` (for some reason, Segoe always looks better when the font size is an odd number), I'm not sure how to do that via pure CSS though, probably need a "If Windows" stylesheet. Just changing it to Segoe looks better too though:
|
||||
|
||||

|
||||
|
||||
# 1.2.1
|
||||
Make h1 and h2 headings bold like the othersRemove explicit code/tt colorThis was overriding the blue link colors so commit referencesdidn't look clickable.
|
||||
|
||||
# 1.2.0
|
||||
[WIP] Smaller headings in .markdown-bodybased on @mdo's recommendationsUnstripe <hr> elements
|
||||
21
node_modules/primer-markdown/LICENSE
generated
vendored
Normal file
21
node_modules/primer-markdown/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 GitHub Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
218
node_modules/primer-markdown/README.md
generated
vendored
Normal file
218
node_modules/primer-markdown/README.md
generated
vendored
Normal file
@@ -0,0 +1,218 @@
|
||||
# Primer CSS Markdown
|
||||
|
||||
[](https://www.npmjs.org/package/primer-markdown)
|
||||
[](https://travis-ci.org/primer/primer-css)
|
||||
|
||||
> Stylesheets for rendering GitHub Flavored Markdown and syntax highlighted code snippets.
|
||||
|
||||
This repository is a module of the full [primer-css][primer-css] repository.
|
||||
|
||||
## Install
|
||||
|
||||
This repository is distributed with [npm][npm]. After [installing npm][install-npm], you can install `primer-markdown` with this command.
|
||||
|
||||
```
|
||||
$ npm install --save primer-markdown
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
The source files included are written in [Sass][sass] (`scss`) You can simply point your sass `include-path` at your `node_modules` directory and import it like this.
|
||||
|
||||
```scss
|
||||
@import "primer-markdown/index.scss";
|
||||
```
|
||||
|
||||
You can also import specific portions of the module by importing those partials from the `/lib/` folder. _Make sure you import any requirements along with the modules._
|
||||
|
||||
## Build
|
||||
|
||||
For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css` The built css file is also included in the npm package.
|
||||
|
||||
```
|
||||
$ npm run build
|
||||
```
|
||||
|
||||
## Documentation
|
||||
|
||||
<!-- %docs
|
||||
title: Markdown
|
||||
status: Stable
|
||||
-->
|
||||
|
||||
Text can be **bold**, _italic_, or ~~strikethrough~~. [Links](https://github.com) should be blue with no underlines (unless hovered over).
|
||||
|
||||
There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs.
|
||||
|
||||
There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs. There should be whitespace between paragraphs.
|
||||
|
||||
> There should be no margin above this first sentence.
|
||||
>
|
||||
> Blockquotes should be a lighter gray with a gray border along the left side.
|
||||
>
|
||||
> There should be no margin below this final sentence.
|
||||
|
||||
# Header 1
|
||||
|
||||
This is a normal paragraph following a header. Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.
|
||||
|
||||
## Header 2
|
||||
|
||||
> This is a blockquote following a header. Bacon ipsum dolor sit amet t-bone doner shank drumstick, pork belly porchetta chuck sausage brisket ham hock rump pig. Chuck kielbasa leberkas, pork bresaola ham hock filet mignon cow shoulder short ribs biltong.
|
||||
|
||||
### Header 3
|
||||
|
||||
```
|
||||
This is a code block following a header.
|
||||
```
|
||||
|
||||
#### Header 4
|
||||
|
||||
* This is an unordered list following a header.
|
||||
* This is an unordered list following a header.
|
||||
* This is an unordered list following a header.
|
||||
|
||||
##### Header 5
|
||||
|
||||
1. This is an ordered list following a header.
|
||||
2. This is an ordered list following a header.
|
||||
3. This is an ordered list following a header.
|
||||
|
||||
###### Header 6
|
||||
|
||||
| What | Follows |
|
||||
|-----------|-----------------|
|
||||
| A table | A header |
|
||||
| A table | A header |
|
||||
| A table | A header |
|
||||
|
||||
----------------
|
||||
|
||||
There's a horizontal rule above and below this.
|
||||
|
||||
----------------
|
||||
|
||||
Here is an unordered list:
|
||||
|
||||
* Salt-n-Pepa
|
||||
* Bel Biv DeVoe
|
||||
* Kid 'N Play
|
||||
|
||||
And an ordered list:
|
||||
|
||||
1. Michael Jackson
|
||||
2. Michael Bolton
|
||||
3. Michael Bublé
|
||||
|
||||
And an unordered task list:
|
||||
|
||||
- [x] Create a sample markdown document
|
||||
- [x] Add task lists to it
|
||||
- [ ] Take a vacation
|
||||
|
||||
And a "mixed" task list:
|
||||
|
||||
- [ ] Steal underpants
|
||||
- ?
|
||||
- [ ] Profit!
|
||||
|
||||
And a nested list:
|
||||
|
||||
* Jackson 5
|
||||
* Michael
|
||||
* Tito
|
||||
* Jackie
|
||||
* Marlon
|
||||
* Jermaine
|
||||
* TMNT
|
||||
* Leonardo
|
||||
* Michelangelo
|
||||
* Donatello
|
||||
* Raphael
|
||||
|
||||
Definition lists can be used with HTML syntax. Definition terms are bold and italic.
|
||||
|
||||
<dl>
|
||||
<dt>Name</dt>
|
||||
<dd>Godzilla</dd>
|
||||
<dt>Born</dt>
|
||||
<dd>1952</dd>
|
||||
<dt>Birthplace</dt>
|
||||
<dd>Japan</dd>
|
||||
<dt>Color</dt>
|
||||
<dd>Green</dd>
|
||||
</dl>
|
||||
|
||||
----------------
|
||||
|
||||
Tables should have bold headings and alternating shaded rows.
|
||||
|
||||
| Artist | Album | Year |
|
||||
|-------------------|-----------------|------|
|
||||
| Michael Jackson | Thriller | 1982 |
|
||||
| Prince | Purple Rain | 1984 |
|
||||
| Beastie Boys | License to Ill | 1986 |
|
||||
|
||||
If a table is too wide, it should condense down and/or scroll horizontally.
|
||||
|
||||
| Artist | Album | Year | Label | Awards | Songs |
|
||||
|-------------------|-----------------|------|-------------|----------|-----------|
|
||||
| Michael Jackson | Thriller | 1982 | Epic Records | Grammy Award for Album of the Year, American Music Award for Favorite Pop/Rock Album, American Music Award for Favorite Soul/R&B Album, Brit Award for Best Selling Album, Grammy Award for Best Engineered Album, Non-Classical | Wanna Be Startin' Somethin', Baby Be Mine, The Girl Is Mine, Thriller, Beat It, Billie Jean, Human Nature, P.Y.T. (Pretty Young Thing), The Lady in My Life |
|
||||
| Prince | Purple Rain | 1984 | Warner Brothers Records | Grammy Award for Best Score Soundtrack for Visual Media, American Music Award for Favorite Pop/Rock Album, American Music Award for Favorite Soul/R&B Album, Brit Award for Best Soundtrack/Cast Recording, Grammy Award for Best Rock Performance by a Duo or Group with Vocal | Let's Go Crazy, Take Me With U, The Beautiful Ones, Computer Blue, Darling Nikki, When Doves Cry, I Would Die 4 U, Baby I'm a Star, Purple Rain |
|
||||
| Beastie Boys | License to Ill | 1986 | Mercury Records | noawardsbutthistablecelliswide | Rhymin & Stealin, The New Style, She's Crafty, Posse in Effect, Slow Ride, Girls, (You Gotta) Fight for Your Right, No Sleep Till Brooklyn, Paul Revere, Hold It Now, Hit It, Brass Monkey, Slow and Low, Time to Get Ill |
|
||||
|
||||
----------------
|
||||
|
||||
Code snippets like `var foo = "bar";` can be shown inline.
|
||||
|
||||
Also, `this should vertically align` ~~`with this`~~ ~~and this~~.
|
||||
|
||||
Code can also be shown in a block element.
|
||||
```
|
||||
var foo = "bar";
|
||||
```
|
||||
|
||||
Code can also use syntax highlighting.
|
||||
```javascript
|
||||
var foo = "bar";
|
||||
```
|
||||
|
||||
```
|
||||
Long, single-line code blocks should not wrap. They should horizontally scroll if they are too long. This line should be long enough to demonstrate this.
|
||||
```
|
||||
|
||||
```javascript
|
||||
var foo = "The same thing is true for code with syntax highlighting. A single line of code should horizontally scroll if it is really long.";
|
||||
```
|
||||
|
||||
Inline code inside table cells should still be distinguishable.
|
||||
|
||||
| Language | Code |
|
||||
|-------------|--------------------|
|
||||
| Javascript | `var foo = "bar";` |
|
||||
| Ruby | `foo = "bar"` |
|
||||
|
||||
----------------
|
||||
|
||||
Small images should be shown at their actual size.
|
||||
|
||||

|
||||
|
||||
Large images should always scale down and fit in the content container.
|
||||
|
||||

|
||||
|
||||
```
|
||||
This is the final element on the page and there should be no margin below this.
|
||||
```
|
||||
<!-- %enddocs -->
|
||||
|
||||
## License
|
||||
|
||||
[MIT](./LICENSE) © [GitHub](https://github.com/)
|
||||
|
||||
[primer-css]: https://github.com/primer/primer
|
||||
[docs]: http://primercss.io/
|
||||
[npm]: https://www.npmjs.com/
|
||||
[install-npm]: https://docs.npmjs.com/getting-started/installing-node
|
||||
[sass]: http://sass-lang.com/
|
||||
1
node_modules/primer-markdown/build/build.css
generated
vendored
Normal file
1
node_modules/primer-markdown/build/build.css
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1
node_modules/primer-markdown/build/index.js
generated
vendored
Normal file
1
node_modules/primer-markdown/build/index.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
8
node_modules/primer-markdown/index.scss
generated
vendored
Normal file
8
node_modules/primer-markdown/index.scss
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
@import "primer-support/index.scss";
|
||||
@import "./lib/markdown-body.scss";
|
||||
@import "./lib/headings.scss";
|
||||
@import "./lib/lists.scss";
|
||||
@import "./lib/tables.scss";
|
||||
@import "./lib/images.scss";
|
||||
@import "./lib/code.scss";
|
||||
@import "./lib/blob-csv.scss";
|
||||
27
node_modules/primer-markdown/lib/blob-csv.scss
generated
vendored
Normal file
27
node_modules/primer-markdown/lib/blob-csv.scss
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
// stylelint-disable selector-no-type
|
||||
.markdown-body .csv-data {
|
||||
td,
|
||||
th {
|
||||
padding: 5px;
|
||||
overflow: hidden;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.blob-num {
|
||||
padding: 10px 8px 9px;
|
||||
text-align: right;
|
||||
background: $bg-white;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
tr { border-top: 0; }
|
||||
|
||||
th {
|
||||
font-weight: $font-weight-bold;
|
||||
background: $gray-100;
|
||||
border-top: 0;
|
||||
}
|
||||
}
|
||||
76
node_modules/primer-markdown/lib/code.scss
generated
vendored
Normal file
76
node_modules/primer-markdown/lib/code.scss
generated
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
// stylelint-disable selector-no-type
|
||||
.markdown-body {
|
||||
// Inline code snippets
|
||||
code,
|
||||
tt {
|
||||
padding: 0;
|
||||
padding-top: 0.2em;
|
||||
padding-bottom: 0.2em;
|
||||
margin: 0;
|
||||
font-size: 85%;
|
||||
background-color: rgba($black, 0.05);
|
||||
border-radius: 3px; // don't add padding, gives scrollbars
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
letter-spacing: -0.2em; // this creates padding
|
||||
content: "\00a0";
|
||||
}
|
||||
|
||||
br { display: none; }
|
||||
}
|
||||
|
||||
del code { text-decoration: inherit; }
|
||||
|
||||
pre {
|
||||
word-wrap: normal;
|
||||
|
||||
// Code tags within code blocks (<pre>s)
|
||||
> code {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-size: 100%;
|
||||
word-break: normal;
|
||||
white-space: pre;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.highlight {
|
||||
margin-bottom: $margin;
|
||||
|
||||
pre {
|
||||
margin-bottom: 0;
|
||||
word-break: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.highlight pre,
|
||||
pre {
|
||||
padding: $margin;
|
||||
overflow: auto;
|
||||
font-size: 85%;
|
||||
line-height: 1.45;
|
||||
background-color: $gray-100;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
pre code,
|
||||
pre tt {
|
||||
display: inline;
|
||||
max-width: auto;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
line-height: inherit;
|
||||
word-wrap: normal;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
content: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
65
node_modules/primer-markdown/lib/headings.scss
generated
vendored
Normal file
65
node_modules/primer-markdown/lib/headings.scss
generated
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
// Needs refactoring
|
||||
// stylelint-disable selector-max-compound-selectors, selector-max-specificity
|
||||
// stylelint-disable selector-no-type
|
||||
.markdown-body {
|
||||
// Headings
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin-top: ($margin * 1.5);
|
||||
margin-bottom: $margin;
|
||||
font-weight: $font-weight-bold;
|
||||
line-height: $lh-condensed;
|
||||
|
||||
.octicon-link {
|
||||
color: $black;
|
||||
vertical-align: middle;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
&:hover .anchor {
|
||||
text-decoration: none;
|
||||
|
||||
.octicon-link {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
tt,
|
||||
code {
|
||||
font-size: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
padding-bottom: 0.3em;
|
||||
font-size: 2em;
|
||||
border-bottom: 1px solid lighten($gray-200, 3%);
|
||||
}
|
||||
|
||||
h2 {
|
||||
padding-bottom: 0.3em;
|
||||
font-size: 1.5em;
|
||||
border-bottom: 1px solid lighten($gray-200, 3%);
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.25em;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 0.875em;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 0.85em;
|
||||
color: $gray-500;
|
||||
}
|
||||
}
|
||||
119
node_modules/primer-markdown/lib/images.scss
generated
vendored
Normal file
119
node_modules/primer-markdown/lib/images.scss
generated
vendored
Normal file
@@ -0,0 +1,119 @@
|
||||
// Need to target base styles
|
||||
// stylelint-disable selector-max-compound-selectors, selector-no-qualifying-type, primer/selector-no-utility
|
||||
// stylelint-disable selector-no-type
|
||||
.markdown-body {
|
||||
// Images & Stuff
|
||||
img {
|
||||
max-width: 100%;
|
||||
// because we put padding on the images to hide header lines, and some people
|
||||
// specify the width of their images in their markdown.
|
||||
box-sizing: content-box;
|
||||
background-color: $bg-white;
|
||||
|
||||
&[align=right] {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
&[align=left] {
|
||||
padding-right: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.emoji {
|
||||
max-width: none;
|
||||
vertical-align: text-top;
|
||||
// Override `<img>` styles so Emjois don't clash with zebra striping in our tables
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
// Gollum Image Tags
|
||||
|
||||
// Framed
|
||||
span.frame {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
|
||||
> span {
|
||||
display: block;
|
||||
float: left;
|
||||
width: auto;
|
||||
padding: 7px;
|
||||
margin: 13px 0 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid lighten($gray-300, 5%);
|
||||
}
|
||||
|
||||
span img {
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
span span {
|
||||
display: block;
|
||||
padding: 5px 0 0;
|
||||
clear: both;
|
||||
color: $text-gray-dark;
|
||||
}
|
||||
}
|
||||
|
||||
span.align-center {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
clear: both;
|
||||
|
||||
> span {
|
||||
display: block;
|
||||
margin: 13px auto 0;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
span img {
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
span.align-right {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
clear: both;
|
||||
|
||||
> span {
|
||||
display: block;
|
||||
margin: 13px 0 0;
|
||||
overflow: hidden;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
span img {
|
||||
margin: 0;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
span.float-left {
|
||||
display: block;
|
||||
float: left;
|
||||
margin-right: 13px;
|
||||
overflow: hidden;
|
||||
|
||||
span {
|
||||
margin: 13px 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
span.float-right {
|
||||
display: block;
|
||||
float: right;
|
||||
margin-left: 13px;
|
||||
overflow: hidden;
|
||||
|
||||
> span {
|
||||
display: block;
|
||||
margin: 13px auto 0;
|
||||
overflow: hidden;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
}
|
||||
72
node_modules/primer-markdown/lib/lists.scss
generated
vendored
Normal file
72
node_modules/primer-markdown/lib/lists.scss
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
// Base styles
|
||||
// stylelint-disable selector-no-qualifying-type
|
||||
// stylelint-disable selector-no-type
|
||||
.markdown-body {
|
||||
|
||||
// Lists, Blockquotes & Such
|
||||
ul,
|
||||
ol {
|
||||
padding-left: 2em;
|
||||
|
||||
&.no-list {
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
}
|
||||
|
||||
// Did someone complain about list spacing? Encourage them
|
||||
// to create the spacing with their markdown formatting.
|
||||
// List behavior should be controled by the markup, not the css.
|
||||
//
|
||||
// For lists with padding between items, use blank
|
||||
// lines between items. This will generate paragraphs with
|
||||
// padding to space things out.
|
||||
//
|
||||
// - item
|
||||
//
|
||||
// - item
|
||||
//
|
||||
// - item
|
||||
//
|
||||
// For list without padding, don't use blank lines.
|
||||
//
|
||||
// - item
|
||||
// - item
|
||||
// - item
|
||||
//
|
||||
// Modifying the css to emulate these behaviors merely brakes
|
||||
// one case in the process of solving another. Don't change
|
||||
// this unless it's really really a bug.
|
||||
ul ul,
|
||||
ul ol,
|
||||
ol ol,
|
||||
ol ul {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
li > p {
|
||||
margin-top: $margin;
|
||||
}
|
||||
|
||||
li + li {
|
||||
margin-top: 0.25em;
|
||||
}
|
||||
|
||||
dl {
|
||||
padding: 0;
|
||||
|
||||
dt {
|
||||
padding: 0;
|
||||
margin-top: $margin;
|
||||
font-size: 1em;
|
||||
font-style: italic;
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
dd {
|
||||
padding: 0 $margin;
|
||||
margin-bottom: $margin;
|
||||
}
|
||||
}
|
||||
}
|
||||
107
node_modules/primer-markdown/lib/markdown-body.scss
generated
vendored
Normal file
107
node_modules/primer-markdown/lib/markdown-body.scss
generated
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
// All of our block level items should have the same margin
|
||||
// stylelint-disable selector-no-type
|
||||
$margin: 16px;
|
||||
|
||||
// This is styling for generic markdownized text. Anything you put in a
|
||||
// container with .markdown-body on it should render generally well. It also
|
||||
// includes some GitHub Flavored Markdown specific styling (like @mentions)
|
||||
.markdown-body {
|
||||
font-family: $body-font;
|
||||
font-size: 16px;
|
||||
line-height: $body-line-height;
|
||||
word-wrap: break-word;
|
||||
|
||||
// Clearfix on the markdown body
|
||||
&::before {
|
||||
display: table;
|
||||
content: "";
|
||||
}
|
||||
|
||||
&::after {
|
||||
display: table;
|
||||
clear: both;
|
||||
content: "";
|
||||
}
|
||||
|
||||
> *:first-child {
|
||||
margin-top: 0 !important;
|
||||
}
|
||||
|
||||
> *:last-child {
|
||||
margin-bottom: 0 !important;
|
||||
}
|
||||
|
||||
// Anchors like <a name="examples">. These sometimes end up wrapped around
|
||||
// text when users mistakenly forget to close the tag or use self-closing tag
|
||||
// syntax. We don't want them to appear like links.
|
||||
// FIXME: a:not(:link):not(:visited) would be a little clearer here (and
|
||||
// possibly faster to match), but it breaks styling of <a href> elements due
|
||||
// to https://bugs.webkit.org/show_bug.cgi?id=142737.
|
||||
a:not([href]) {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
// Link Colors
|
||||
.absent {
|
||||
color: $red-600;
|
||||
}
|
||||
|
||||
.anchor {
|
||||
float: left;
|
||||
padding-right: 4px;
|
||||
margin-left: -20px;
|
||||
line-height: 1;
|
||||
|
||||
&:focus {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
p,
|
||||
blockquote,
|
||||
ul,
|
||||
ol,
|
||||
dl,
|
||||
table,
|
||||
pre {
|
||||
margin-top: 0;
|
||||
margin-bottom: $margin;
|
||||
}
|
||||
|
||||
hr {
|
||||
height: 0.25em;
|
||||
padding: 0;
|
||||
margin: ($margin * 1.5) 0;
|
||||
background-color: $gray-200;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
padding: 0 1em;
|
||||
color: $gray-500;
|
||||
border-left: 0.25em solid lighten($gray-300, 5%);
|
||||
|
||||
> :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
kbd {
|
||||
display: inline-block;
|
||||
padding: 3px 5px;
|
||||
font-size: 11px;
|
||||
line-height: 10px;
|
||||
color: $gray-700;
|
||||
vertical-align: middle;
|
||||
background-color: $gray-000;
|
||||
border: solid 1px darken($gray-300, 4%);
|
||||
border-bottom-color: $gray-400;
|
||||
border-radius: 3px;
|
||||
box-shadow: inset 0 -1px 0 $gray-400;
|
||||
}
|
||||
}
|
||||
33
node_modules/primer-markdown/lib/tables.scss
generated
vendored
Normal file
33
node_modules/primer-markdown/lib/tables.scss
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
// Needs refactoring
|
||||
// stylelint-disable selector-no-type
|
||||
.markdown-body {
|
||||
// Tables
|
||||
table {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: auto;
|
||||
|
||||
th {
|
||||
font-weight: $font-weight-bold;
|
||||
}
|
||||
|
||||
th,
|
||||
td {
|
||||
padding: 6px 13px;
|
||||
border: 1px solid lighten($gray-300, 5%);
|
||||
}
|
||||
|
||||
tr {
|
||||
background-color: $bg-white;
|
||||
border-top: 1px solid darken($gray-300, 4%);
|
||||
|
||||
&:nth-child(2n) {
|
||||
background-color: $gray-100;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
73
node_modules/primer-markdown/package.json
generated
vendored
Normal file
73
node_modules/primer-markdown/package.json
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"_from": "primer-markdown@^3.3.12",
|
||||
"_id": "primer-markdown@3.3.12",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-aN6IYA7cSdKHJ6/u4y4O/8HKKv4=",
|
||||
"_location": "/primer-markdown",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "primer-markdown@^3.3.12",
|
||||
"name": "primer-markdown",
|
||||
"escapedName": "primer-markdown",
|
||||
"rawSpec": "^3.3.12",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^3.3.12"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/primer-css",
|
||||
"/primer-product"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/primer-markdown/-/primer-markdown-3.3.12.tgz",
|
||||
"_shasum": "68de88600edc49d28727afeee32e0effc1ca2afe",
|
||||
"_spec": "primer-markdown@^3.3.12",
|
||||
"_where": "/Users/bkeepers/projects/probot/probot.github.io/node_modules/primer-css",
|
||||
"author": {
|
||||
"name": "GitHub, Inc."
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/primer/primer-css/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"primer-support": "^4.0.6"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "GitHub stylesheets for rendering markdown.",
|
||||
"devDependencies": {
|
||||
"primer-module-build": "*",
|
||||
"stylelint": "*",
|
||||
"stylelint-config-primer": "*"
|
||||
},
|
||||
"files": [
|
||||
"index.scss",
|
||||
"lib",
|
||||
"build"
|
||||
],
|
||||
"homepage": "https://github.com/primer/primer-markdown",
|
||||
"keywords": [
|
||||
"github",
|
||||
"markdown",
|
||||
"css",
|
||||
"scss",
|
||||
"primer",
|
||||
"style",
|
||||
"stylesheets",
|
||||
"md"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "build/index.js",
|
||||
"name": "primer-markdown",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/primer/primer-css/tree/master/packages/primer-markdown"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "primer-module-build index.scss",
|
||||
"prepare": "npm run build",
|
||||
"test": "npm run build && stylelint **/*.scss -c .stylelintrc.json -s scss"
|
||||
},
|
||||
"style": "index.scss",
|
||||
"version": "3.3.12"
|
||||
}
|
||||
Reference in New Issue
Block a user