From 34876406f51ef11242b187bccb250c2cd94b47fa Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 26 Mar 2017 15:34:32 +0700 Subject: [PATCH 01/24] Regenerate GitHub CSS --- github-markdown.css | 163 ++++++++++++++++++++++++++------------------ package.json | 2 +- 2 files changed, 96 insertions(+), 69 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index 42e38eb..3f4a3dd 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -7,8 +7,8 @@ -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; line-height: 1.5; - color: #333; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + color: #24292e; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; line-height: 1.5; word-wrap: break-word; @@ -51,11 +51,12 @@ color: #183691; } -.markdown-body .pl-v { +.markdown-body .pl-v, +.markdown-body .pl-smw { color: #ed6a43; } -.markdown-body .pl-id { +.markdown-body .pl-bu { color: #b52a1d; } @@ -64,6 +65,15 @@ background-color: #b52a1d; } +.markdown-body .pl-c2 { + color: #f8f8f8; + background-color: #b52a1d; +} + +.markdown-body .pl-c2::before { + content: "^M"; +} + .markdown-body .pl-sr .pl-cce { font-weight: bold; color: #63a35c; @@ -104,6 +114,16 @@ background-color: #eaffea; } +.markdown-body .pl-mc { + color: #ef9700; + background-color: #ffe3b4; +} + +.markdown-body .pl-mi2 { + color: #d8d8d8; + background-color: #808080; +} + .markdown-body .pl-mdr { font-weight: bold; color: #795da3; @@ -113,6 +133,19 @@ color: #1d3e81; } +.markdown-body .pl-ba { + color: #595e62; +} + +.markdown-body .pl-sg { + color: #c0c0c0; +} + +.markdown-body .pl-corl { + text-decoration: underline; + color: #183691; +} + .markdown-body .octicon { display: inline-block; vertical-align: text-top; @@ -188,12 +221,11 @@ } .markdown-body a { - color: #4078c0; + color: #0366d6; text-decoration: none; } -.markdown-body a:hover, -.markdown-body a:active { +.markdown-body a:hover { text-decoration: underline; } @@ -207,7 +239,7 @@ overflow: hidden; background: transparent; border: 0; - border-bottom: 1px solid #ddd; + border-bottom: 1px solid #dfe2e5; } .markdown-body hr::before { @@ -304,23 +336,46 @@ } .markdown-body code { - font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; + font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; } .markdown-body pre { margin-top: 0; margin-bottom: 0; - font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace; + font: 12px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; } .markdown-body .octicon { vertical-align: text-bottom; } -.markdown-body input { - -webkit-font-feature-settings: "liga" 0; - font-feature-settings: "liga" 0; +.markdown-body .pl-0 { + padding-left: 0 !important; +} + +.markdown-body .pl-1 { + padding-left: 4px !important; +} + +.markdown-body .pl-2 { + padding-left: 8px !important; +} + +.markdown-body .pl-3 { + padding-left: 16px !important; +} + +.markdown-body .pl-4 { + padding-left: 24px !important; +} + +.markdown-body .pl-5 { + padding-left: 32px !important; +} + +.markdown-body .pl-6 { + padding-left: 40px !important; } .markdown-body::before { @@ -373,14 +428,14 @@ height: 0.25em; padding: 0; margin: 24px 0; - background-color: #e7e7e7; + background-color: #e1e4e8; border: 0; } .markdown-body blockquote { padding: 0 1em; - color: #777; - border-left: 0.25em solid #ddd; + color: #6a737d; + border-left: 0.25em solid #dfe2e5; } .markdown-body blockquote>:first-child { @@ -396,13 +451,13 @@ padding: 3px 5px; font-size: 11px; line-height: 10px; - color: #555; + color: #444d56; vertical-align: middle; - background-color: #fcfcfc; - border: solid 1px #ccc; - border-bottom-color: #bbb; + background-color: #fafbfc; + border: solid 1px #c6cbd1; + border-bottom-color: #959da5; border-radius: 3px; - box-shadow: inset 0 -1px 0 #bbb; + box-shadow: inset 0 -1px 0 #959da5; } .markdown-body h1, @@ -423,7 +478,7 @@ .markdown-body h4 .octicon-link, .markdown-body h5 .octicon-link, .markdown-body h6 .octicon-link { - color: #000; + color: #1b1f23; vertical-align: middle; visibility: hidden; } @@ -449,13 +504,13 @@ .markdown-body h1 { padding-bottom: 0.3em; font-size: 2em; - border-bottom: 1px solid #eee; + border-bottom: 1px solid #eaecef; } .markdown-body h2 { padding-bottom: 0.3em; font-size: 1.5em; - border-bottom: 1px solid #eee; + border-bottom: 1px solid #eaecef; } .markdown-body h3 { @@ -472,7 +527,7 @@ .markdown-body h6 { font-size: 0.85em; - color: #777; + color: #6a737d; } .markdown-body ul, @@ -505,7 +560,7 @@ margin-top: 16px; font-size: 1em; font-style: italic; - font-weight: bold; + font-weight: 600; } .markdown-body dl dd { @@ -520,22 +575,22 @@ } .markdown-body table th { - font-weight: bold; + font-weight: 600; } .markdown-body table th, .markdown-body table td { padding: 6px 13px; - border: 1px solid #ddd; + border: 1px solid #dfe2e5; } .markdown-body table tr { background-color: #fff; - border-top: 1px solid #ccc; + border-top: 1px solid #c6cbd1; } .markdown-body table tr:nth-child(2n) { - background-color: #f8f8f8; + background-color: #f6f8fa; } .markdown-body img { @@ -550,7 +605,7 @@ padding-bottom: 0.2em; margin: 0; font-size: 85%; - background-color: rgba(0,0,0,0.04); + background-color: rgba(27,31,35,0.05); border-radius: 3px; } @@ -589,7 +644,7 @@ overflow: auto; font-size: 85%; line-height: 1.45; - background-color: #f7f7f7; + background-color: #f6f8fa; border-radius: 3px; } @@ -610,57 +665,29 @@ content: normal; } -.markdown-body .pl-0 { - padding-left: 0 !important; -} - -.markdown-body .pl-1 { - padding-left: 3px !important; -} - -.markdown-body .pl-2 { - padding-left: 6px !important; -} - -.markdown-body .pl-3 { - padding-left: 12px !important; -} - -.markdown-body .pl-4 { - padding-left: 24px !important; -} - -.markdown-body .pl-5 { - padding-left: 36px !important; -} - -.markdown-body .pl-6 { - padding-left: 48px !important; -} - .markdown-body .full-commit .btn-outline:not(:disabled):hover { - color: #4078c0; - border: 1px solid #4078c0; + color: #005cc5; + border-color: #005cc5; } .markdown-body kbd { display: inline-block; padding: 3px 5px; - font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace; + font: 11px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; line-height: 10px; - color: #555; + color: #444d56; vertical-align: middle; background-color: #fcfcfc; - border: solid 1px #ccc; - border-bottom-color: #bbb; + border: solid 1px #c6cbd1; + border-bottom-color: #959da5; border-radius: 3px; - box-shadow: inset 0 -1px 0 #bbb; + box-shadow: inset 0 -1px 0 #959da5; } .markdown-body :checked+.radio-label { position: relative; z-index: 1; - border-color: #4078c0; + border-color: #0366d6; } .markdown-body .task-list-item { diff --git a/package.json b/package.json index 213bc66..4678155 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,6 @@ "stylesheet" ], "devDependencies": { - "generate-github-markdown-css": "^2.0.0" + "generate-github-markdown-css": "^2.1.0" } } From 322382b0504213e608cba0449c95b3fe98ca8ec9 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 26 Mar 2017 15:34:58 +0700 Subject: [PATCH 02/24] 2.5.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4678155..77c6951 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.4.1", + "version": "2.5.0", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From f7cd505bfae3468764cff97dd788ad4162b4cb9d Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 2 Apr 2017 10:37:09 +0700 Subject: [PATCH 03/24] Regenerate GitHub CSS Fixes #43 --- github-markdown.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-markdown.css b/github-markdown.css index 3f4a3dd..ed8ab9e 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -8,7 +8,7 @@ -webkit-text-size-adjust: 100%; line-height: 1.5; color: #24292e; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; line-height: 1.5; word-wrap: break-word; From 9981e776899a8dad2cb4c066362e622d7dd03a6a Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 2 Apr 2017 10:43:19 +0700 Subject: [PATCH 04/24] 2.6.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 77c6951..4e14276 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.5.0", + "version": "2.6.0", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 65728029255b04e7d2cdc1d26d0c3807dcb091e3 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 11 Jun 2017 22:51:09 +0200 Subject: [PATCH 05/24] Regenerate GitHub CSS --- github-markdown.css | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index ed8ab9e..43da7b9 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -8,7 +8,7 @@ -webkit-text-size-adjust: 100%; line-height: 1.5; color: #24292e; - font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; line-height: 1.5; word-wrap: break-word; @@ -677,11 +677,11 @@ line-height: 10px; color: #444d56; vertical-align: middle; - background-color: #fcfcfc; - border: solid 1px #c6cbd1; - border-bottom-color: #959da5; + background-color: #fafbfc; + border: solid 1px #d1d5da; + border-bottom-color: #c6cbd1; border-radius: 3px; - box-shadow: inset 0 -1px 0 #959da5; + box-shadow: inset 0 -1px 0 #c6cbd1; } .markdown-body :checked+.radio-label { From 576e8f647915d6783d7b0479b565fab92d6eac57 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 11 Jun 2017 22:53:56 +0200 Subject: [PATCH 06/24] 2.7.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4e14276..40835f0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.6.0", + "version": "2.7.0", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From c59b17b20d92513fb75ef4fb4a68a685839a9d23 Mon Sep 17 00:00:00 2001 From: Jeff Puckett Date: Thu, 15 Jun 2017 10:43:33 +0000 Subject: [PATCH 07/24] Document mobile responsiveness (#45) --- readme.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 2e00e1d..5d148e2 100644 --- a/readme.md +++ b/readme.md @@ -18,9 +18,10 @@ $ npm install --save github-markdown-css ## Usage -Import the `github-markdown.css` file and add a `markdown-body` class to the container of your rendered Markdown and set a width for it. GitHub uses `980px` width and `45px` padding. +Import the `github-markdown.css` file and add a `markdown-body` class to the container of your rendered Markdown and set a width for it. GitHub uses `980px` width and `45px` padding, and `15px` padding for mobile. ```html +

Unicorns

From db0ab249ce3e93ce2096ddc266ce4d0b1fbc3b76 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 15 Jun 2017 12:45:30 +0200 Subject: [PATCH 08/24] Regenerate GitHub CSS --- github-markdown.css | 68 ++++++++++++++++++++------------------------- readme.md | 2 +- 2 files changed, 31 insertions(+), 39 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index 43da7b9..57c63c7 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -15,30 +15,30 @@ } .markdown-body .pl-c { - color: #969896; + color: #6a737d; } .markdown-body .pl-c1, .markdown-body .pl-s .pl-v { - color: #0086b3; + color: #005cc5; } .markdown-body .pl-e, .markdown-body .pl-en { - color: #795da3; + color: #6f42c1; } .markdown-body .pl-smi, .markdown-body .pl-s .pl-s1 { - color: #333; + color: #24292e; } .markdown-body .pl-ent { - color: #63a35c; + color: #22863a; } .markdown-body .pl-k { - color: #a71d5d; + color: #d73a49; } .markdown-body .pl-s, @@ -48,26 +48,26 @@ .markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-sre, .markdown-body .pl-sr .pl-sra { - color: #183691; + color: #032f62; } .markdown-body .pl-v, .markdown-body .pl-smw { - color: #ed6a43; + color: #e36209; } .markdown-body .pl-bu { - color: #b52a1d; + color: #b31d28; } .markdown-body .pl-ii { - color: #f8f8f8; - background-color: #b52a1d; + color: #fafbfc; + background-color: #b31d28; } .markdown-body .pl-c2 { - color: #f8f8f8; - background-color: #b52a1d; + color: #fafbfc; + background-color: #d73a49; } .markdown-body .pl-c2::before { @@ -76,74 +76,66 @@ .markdown-body .pl-sr .pl-cce { font-weight: bold; - color: #63a35c; + color: #22863a; } .markdown-body .pl-ml { - color: #693a17; + color: #735c0f; } .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { font-weight: bold; - color: #1d3e81; -} - -.markdown-body .pl-mq { - color: #008080; + color: #005cc5; } .markdown-body .pl-mi { font-style: italic; - color: #333; + color: #24292e; } .markdown-body .pl-mb { font-weight: bold; - color: #333; + color: #24292e; } .markdown-body .pl-md { - color: #bd2c00; - background-color: #ffecec; + color: #b31d28; + background-color: #ffeef0; } .markdown-body .pl-mi1 { - color: #55a532; - background-color: #eaffea; + color: #22863a; + background-color: #f0fff4; } .markdown-body .pl-mc { - color: #ef9700; - background-color: #ffe3b4; + color: #e36209; + background-color: #ffebda; } .markdown-body .pl-mi2 { - color: #d8d8d8; - background-color: #808080; + color: #f6f8fa; + background-color: #005cc5; } .markdown-body .pl-mdr { font-weight: bold; - color: #795da3; -} - -.markdown-body .pl-mo { - color: #1d3e81; + color: #6f42c1; } .markdown-body .pl-ba { - color: #595e62; + color: #586069; } .markdown-body .pl-sg { - color: #c0c0c0; + color: #959da5; } .markdown-body .pl-corl { text-decoration: underline; - color: #183691; + color: #032f62; } .markdown-body .octicon { diff --git a/readme.md b/readme.md index 5d148e2..3779d14 100644 --- a/readme.md +++ b/readme.md @@ -31,7 +31,7 @@ Import the `github-markdown.css` file and add a `markdown-body` class to the con margin: 0 auto; padding: 45px; } - + @media (max-width: 767px) { .markdown-body { padding: 15px; From 3fc8bc8a14eabf40448027b56e82238220050300 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 15 Jun 2017 12:47:16 +0200 Subject: [PATCH 09/24] 2.8.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 40835f0..f1ad9e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.7.0", + "version": "2.8.0", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 3d272011a5da44de87a8a8bcb8605b6ab12e49f3 Mon Sep 17 00:00:00 2001 From: Danny Guo Date: Thu, 17 Aug 2017 21:17:17 -0500 Subject: [PATCH 10/24] Add a link to the CDNJS page (#47) --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 3779d14..d7ef7d1 100644 --- a/readme.md +++ b/readme.md @@ -9,7 +9,7 @@ ## Install -Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css) or with npm: +Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css), from [CDNJS](https://cdnjs.com/libraries/github-markdown-css), or with npm: ``` $ npm install --save github-markdown-css From a5b85d18214c07f492ff73bdf4c2a5fc88138e89 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 15 Oct 2017 13:43:38 +0700 Subject: [PATCH 11/24] Regenerate GitHub CSS Closes #49 --- github-markdown.css | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/github-markdown.css b/github-markdown.css index 57c63c7..e197e59 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -335,7 +335,8 @@ .markdown-body pre { margin-top: 0; margin-bottom: 0; - font: 12px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; + font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; + font-size: 12px; } .markdown-body .octicon { @@ -591,6 +592,14 @@ background-color: #fff; } +.markdown-body img[align=right] { + padding-left: 20px; +} + +.markdown-body img[align=left] { + padding-right: 20px; +} + .markdown-body code { padding: 0; padding-top: 0.2em; From 09cdf605dac341e359fd828463a79face98a265e Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 15 Oct 2017 13:55:26 +0700 Subject: [PATCH 12/24] Meta tweaks --- .editorconfig | 5 +--- .gitattributes | 1 + .gitignore | 1 + .npmrc | 1 + license | 20 ++++------------ package.json | 64 +++++++++++++++++++++++++------------------------- readme.md | 4 ++-- 7 files changed, 42 insertions(+), 54 deletions(-) create mode 100644 .npmrc diff --git a/.editorconfig b/.editorconfig index 86c8f59..1c6314a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,9 +7,6 @@ charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true -[package.json] +[*.yml] indent_style = space indent_size = 2 - -[*.md] -trim_trailing_whitespace = false diff --git a/.gitattributes b/.gitattributes index 176a458..391f0a4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ * text=auto +*.js text eol=lf diff --git a/.gitignore b/.gitignore index 3c3629e..239ecff 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules +yarn.lock diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..43c97e7 --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +package-lock=false diff --git a/license b/license index 654d0bf..e7af2f7 100644 --- a/license +++ b/license @@ -1,21 +1,9 @@ -The MIT License (MIT) +MIT License Copyright (c) Sindre Sorhus (sindresorhus.com) -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: +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 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. +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. diff --git a/package.json b/package.json index f1ad9e6..883e697 100644 --- a/package.json +++ b/package.json @@ -1,34 +1,34 @@ { - "name": "github-markdown-css", - "version": "2.8.0", - "description": "The minimal amount of CSS to replicate the GitHub Markdown style", - "license": "MIT", - "repository": "sindresorhus/github-markdown-css", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "main": "github-markdown.css", - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "make": "github-markdown-css > github-markdown.css" - }, - "files": [ - "github-markdown.css" - ], - "keywords": [ - "browser", - "github", - "markdown", - "md", - "css", - "style", - "stylesheet" - ], - "devDependencies": { - "generate-github-markdown-css": "^2.1.0" - } + "name": "github-markdown-css", + "version": "2.8.0", + "description": "The minimal amount of CSS to replicate the GitHub Markdown style", + "license": "MIT", + "repository": "sindresorhus/github-markdown-css", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "main": "github-markdown.css", + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "make": "github-markdown-css > github-markdown.css" + }, + "files": [ + "github-markdown.css" + ], + "keywords": [ + "browser", + "github", + "markdown", + "md", + "css", + "style", + "stylesheet" + ], + "devDependencies": { + "generate-github-markdown-css": "^2.1.0" + } } diff --git a/readme.md b/readme.md index d7ef7d1..790cef5 100644 --- a/readme.md +++ b/readme.md @@ -12,7 +12,7 @@ Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdown-css/gh-pages/github-markdown.css), from [CDNJS](https://cdnjs.com/libraries/github-markdown-css), or with npm: ``` -$ npm install --save github-markdown-css +$ npm install github-markdown-css ``` @@ -57,4 +57,4 @@ Run `npm run make` to update the CSS. ## License -MIT © [Sindre Sorhus](http://sindresorhus.com) +MIT © [Sindre Sorhus](https://sindresorhus.com) From 7308c9ab9a5b019a2ebd52d59d9b2ca1df5cc2a4 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 15 Oct 2017 13:56:03 +0700 Subject: [PATCH 13/24] 2.9.0 --- package.json | 64 ++++++++++++++++++++++++++-------------------------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/package.json b/package.json index 883e697..a652bcf 100644 --- a/package.json +++ b/package.json @@ -1,34 +1,34 @@ { - "name": "github-markdown-css", - "version": "2.8.0", - "description": "The minimal amount of CSS to replicate the GitHub Markdown style", - "license": "MIT", - "repository": "sindresorhus/github-markdown-css", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "main": "github-markdown.css", - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "make": "github-markdown-css > github-markdown.css" - }, - "files": [ - "github-markdown.css" - ], - "keywords": [ - "browser", - "github", - "markdown", - "md", - "css", - "style", - "stylesheet" - ], - "devDependencies": { - "generate-github-markdown-css": "^2.1.0" - } + "name": "github-markdown-css", + "version": "2.9.0", + "description": "The minimal amount of CSS to replicate the GitHub Markdown style", + "license": "MIT", + "repository": "sindresorhus/github-markdown-css", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "main": "github-markdown.css", + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "make": "github-markdown-css > github-markdown.css" + }, + "files": [ + "github-markdown.css" + ], + "keywords": [ + "browser", + "github", + "markdown", + "md", + "css", + "style", + "stylesheet" + ], + "devDependencies": { + "generate-github-markdown-css": "^2.1.0" + } } From e91ece348fd1828c1890c06df59a499214e455b7 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 31 Dec 2017 13:54:15 +0100 Subject: [PATCH 14/24] Regenerate GitHub CSS --- github-markdown.css | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index e197e59..c5f9777 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -146,7 +146,6 @@ .markdown-body a { background-color: transparent; - -webkit-text-decoration-skip: objects; } .markdown-body a:active, @@ -171,10 +170,6 @@ border-style: none; } -.markdown-body svg:not(:root) { - overflow: hidden; -} - .markdown-body code, .markdown-body kbd, .markdown-body pre { @@ -536,6 +531,10 @@ margin-bottom: 0; } +.markdown-body li { + word-wrap: break-all; +} + .markdown-body li>p { margin-top: 16px; } @@ -601,21 +600,13 @@ } .markdown-body code { - padding: 0; - padding-top: 0.2em; - padding-bottom: 0.2em; + padding: 0.2em 0.4em; margin: 0; font-size: 85%; background-color: rgba(27,31,35,0.05); border-radius: 3px; } -.markdown-body code::before, -.markdown-body code::after { - letter-spacing: -0.2em; - content: "\00a0"; -} - .markdown-body pre { word-wrap: normal; } @@ -661,11 +652,6 @@ border: 0; } -.markdown-body pre code::before, -.markdown-body pre code::after { - content: normal; -} - .markdown-body .full-commit .btn-outline:not(:disabled):hover { color: #005cc5; border-color: #005cc5; From 4d639a534aa9b8856a3b8bcc43239ea48d68d1fc Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 31 Dec 2017 13:55:32 +0100 Subject: [PATCH 15/24] 2.10.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a652bcf..62e402d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.9.0", + "version": "2.10.0", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 0d25bb4525eab80cbe95a2d18977a2ad91a7299e Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 31 Jan 2019 19:49:28 +0700 Subject: [PATCH 16/24] Regenerate GitHub CSS --- github-markdown.css | 633 +++++++++++++++++++++++++++++++------------- package.json | 64 ++--- 2 files changed, 479 insertions(+), 218 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index c5f9777..aa85199 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -1,14 +1,59 @@ -@font-face { - font-family: octicons-link; + +font-family: octicons-link; src: url(data:font/woff;charset=utf-8;base64,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) format('woff'); } +.markdown-body .octicon { + display: inline-block; + fill: currentColor; + vertical-align: text-bottom; +} + +.markdown-body .anchor { + float: left; + line-height: 1; + margin-left: -20px; + padding-right: 4px; +} + +.markdown-body .anchor:focus { + outline: none; +} + +.markdown-body h1 .octicon-link, +.markdown-body h2 .octicon-link, +.markdown-body h3 .octicon-link, +.markdown-body h4 .octicon-link, +.markdown-body h5 .octicon-link, +.markdown-body h6 .octicon-link { + color: #1b1f23; + vertical-align: middle; + visibility: hidden; +} + +.markdown-body h1:hover .anchor, +.markdown-body h2:hover .anchor, +.markdown-body h3:hover .anchor, +.markdown-body h4:hover .anchor, +.markdown-body h5:hover .anchor, +.markdown-body h6:hover .anchor { + text-decoration: none; +} + +.markdown-body h1:hover .anchor .octicon-link, +.markdown-body h2:hover .anchor .octicon-link, +.markdown-body h3:hover .anchor .octicon-link, +.markdown-body h4:hover .anchor .octicon-link, +.markdown-body h5:hover .anchor .octicon-link, +.markdown-body h6:hover .anchor .octicon-link { + visibility: visible; +} .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; - line-height: 1.5; color: #24292e; - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + line-height: 1.5; + font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 16px; line-height: 1.5; word-wrap: break-word; @@ -28,8 +73,8 @@ color: #6f42c1; } -.markdown-body .pl-smi, -.markdown-body .pl-s .pl-s1 { +.markdown-body .pl-s .pl-s1, +.markdown-body .pl-smi { color: #24292e; } @@ -41,18 +86,18 @@ color: #d73a49; } -.markdown-body .pl-s, .markdown-body .pl-pds, +.markdown-body .pl-s, .markdown-body .pl-s .pl-pse .pl-s1, .markdown-body .pl-sr, .markdown-body .pl-sr .pl-cce, -.markdown-body .pl-sr .pl-sre, -.markdown-body .pl-sr .pl-sra { +.markdown-body .pl-sr .pl-sra, +.markdown-body .pl-sr .pl-sre { color: #032f62; } -.markdown-body .pl-v, -.markdown-body .pl-smw { +.markdown-body .pl-smw, +.markdown-body .pl-v { color: #e36209; } @@ -61,22 +106,22 @@ } .markdown-body .pl-ii { - color: #fafbfc; background-color: #b31d28; + color: #fafbfc; } .markdown-body .pl-c2 { - color: #fafbfc; background-color: #d73a49; + color: #fafbfc; } -.markdown-body .pl-c2::before { +.markdown-body .pl-c2:before { content: "^M"; } .markdown-body .pl-sr .pl-cce { - font-weight: bold; color: #22863a; + font-weight: 700; } .markdown-body .pl-ml { @@ -86,43 +131,43 @@ .markdown-body .pl-mh, .markdown-body .pl-mh .pl-en, .markdown-body .pl-ms { - font-weight: bold; color: #005cc5; + font-weight: 700; } .markdown-body .pl-mi { - font-style: italic; color: #24292e; + font-style: italic; } .markdown-body .pl-mb { - font-weight: bold; color: #24292e; + font-weight: 700; } .markdown-body .pl-md { - color: #b31d28; background-color: #ffeef0; + color: #b31d28; } .markdown-body .pl-mi1 { - color: #22863a; background-color: #f0fff4; + color: #22863a; } .markdown-body .pl-mc { - color: #e36209; background-color: #ffebda; + color: #e36209; } .markdown-body .pl-mi2 { - color: #f6f8fa; background-color: #005cc5; + color: #f6f8fa; } .markdown-body .pl-mdr { - font-weight: bold; color: #6f42c1; + font-weight: 700; } .markdown-body .pl-ba { @@ -134,14 +179,16 @@ } .markdown-body .pl-corl { - text-decoration: underline; color: #032f62; + text-decoration: underline; } -.markdown-body .octicon { - display: inline-block; - vertical-align: text-top; - fill: currentColor; +.markdown-body details { + display: block; +} + +.markdown-body summary { + display: list-item; } .markdown-body a { @@ -155,15 +202,12 @@ .markdown-body strong { font-weight: inherit; -} - -.markdown-body strong { font-weight: bolder; } .markdown-body h1 { font-size: 2em; - margin: 0.67em 0; + margin: .67em 0; } .markdown-body img { @@ -173,7 +217,7 @@ .markdown-body code, .markdown-body kbd, .markdown-body pre { - font-family: monospace, monospace; + font-family: monospace,monospace; font-size: 1em; } @@ -192,7 +236,7 @@ overflow: visible; } -.markdown-body [type="checkbox"] { +.markdown-body [type=checkbox] { box-sizing: border-box; padding: 0; } @@ -221,28 +265,28 @@ } .markdown-body hr { - height: 0; - margin: 15px 0; - overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #dfe2e5; + height: 0; + margin: 15px 0; + overflow: hidden; } -.markdown-body hr::before { - display: table; +.markdown-body hr:before { content: ""; + display: table; } -.markdown-body hr::after { - display: table; +.markdown-body hr:after { clear: both; content: ""; + display: table; } .markdown-body table { - border-spacing: 0; border-collapse: collapse; + border-spacing: 0; } .markdown-body td, @@ -250,60 +294,73 @@ padding: 0; } +.markdown-body details summary { + cursor: pointer; +} + .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { - margin-top: 0; margin-bottom: 0; + margin-top: 0; } .markdown-body h1 { font-size: 32px; +} + +.markdown-body h1, +.markdown-body h2 { font-weight: 600; } .markdown-body h2 { font-size: 24px; - font-weight: 600; } .markdown-body h3 { font-size: 20px; +} + +.markdown-body h3, +.markdown-body h4 { font-weight: 600; } .markdown-body h4 { font-size: 16px; - font-weight: 600; } .markdown-body h5 { font-size: 14px; +} + +.markdown-body h5, +.markdown-body h6 { font-weight: 600; } .markdown-body h6 { font-size: 12px; - font-weight: 600; } .markdown-body p { - margin-top: 0; margin-bottom: 10px; + margin-top: 0; } .markdown-body blockquote { margin: 0; } -.markdown-body ul, -.markdown-body ol { - padding-left: 0; - margin-top: 0; +.markdown-body ol, +.markdown-body ul { margin-bottom: 0; + margin-top: 0; + padding-left: 0; } .markdown-body ol ol, @@ -311,10 +368,10 @@ list-style-type: lower-roman; } -.markdown-body ul ul ol, -.markdown-body ul ol ol, +.markdown-body ol ol ol, .markdown-body ol ul ol, -.markdown-body ol ol ol { +.markdown-body ul ol ol, +.markdown-body ul ul ol { list-style-type: lower-alpha; } @@ -322,67 +379,133 @@ margin-left: 0; } -.markdown-body code { - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; +.markdown-body code, +.markdown-body pre { + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; font-size: 12px; } .markdown-body pre { - margin-top: 0; margin-bottom: 0; - font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; - font-size: 12px; + margin-top: 0; } -.markdown-body .octicon { - vertical-align: text-bottom; +.markdown-body input::-webkit-inner-spin-button, +.markdown-body input::-webkit-outer-spin-button { + -webkit-appearance: none; + appearance: none; + margin: 0; +} + +.markdown-body .border { + border: 1px solid #e1e4e8!important; +} + +.markdown-body .border-0 { + border: 0!important; +} + +.markdown-body .border-bottom { + border-bottom: 1px solid #e1e4e8!important; +} + +.markdown-body .rounded-1 { + border-radius: 3px!important; +} + +.markdown-body .bg-white { + background-color: #fff!important; +} + +.markdown-body .bg-gray-light { + background-color: #fafbfc!important; +} + +.markdown-body .text-gray-light { + color: #6a737d!important; +} + +.markdown-body .mb-0 { + margin-bottom: 0!important; +} + +.markdown-body .my-2 { + margin-bottom: 8px!important; + margin-top: 8px!important; } .markdown-body .pl-0 { - padding-left: 0 !important; + padding-left: 0!important; +} + +.markdown-body .py-0 { + padding-bottom: 0!important; + padding-top: 0!important; } .markdown-body .pl-1 { - padding-left: 4px !important; + padding-left: 4px!important; } .markdown-body .pl-2 { - padding-left: 8px !important; + padding-left: 8px!important; } -.markdown-body .pl-3 { - padding-left: 16px !important; +.markdown-body .py-2 { + padding-bottom: 8px!important; + padding-top: 8px!important; +} + +.markdown-body .pl-3, +.markdown-body .px-3 { + padding-left: 16px!important; +} + +.markdown-body .px-3 { + padding-right: 16px!important; } .markdown-body .pl-4 { - padding-left: 24px !important; + padding-left: 24px!important; } .markdown-body .pl-5 { - padding-left: 32px !important; + padding-left: 32px!important; } .markdown-body .pl-6 { - padding-left: 40px !important; + padding-left: 40px!important; } -.markdown-body::before { - display: table; - content: ""; +.markdown-body .f6 { + font-size: 12px!important; +} + +.markdown-body .lh-condensed { + line-height: 1.25!important; +} + +.markdown-body .text-bold { + font-weight: 600!important; } -.markdown-body::after { +.markdown-body:before { + content: ""; display: table; +} + +.markdown-body:after { clear: both; content: ""; + display: table; } -.markdown-body>*:first-child { - margin-top: 0 !important; +.markdown-body>:first-child { + margin-top: 0!important; } -.markdown-body>*:last-child { - margin-bottom: 0 !important; +.markdown-body>:last-child { + margin-bottom: 0!important; } .markdown-body a:not([href]) { @@ -390,40 +513,29 @@ text-decoration: none; } -.markdown-body .anchor { - float: left; - padding-right: 4px; - margin-left: -20px; - line-height: 1; -} - -.markdown-body .anchor:focus { - outline: none; -} - -.markdown-body p, .markdown-body blockquote, -.markdown-body ul, -.markdown-body ol, .markdown-body dl, +.markdown-body ol, +.markdown-body p, +.markdown-body pre, .markdown-body table, -.markdown-body pre { - margin-top: 0; +.markdown-body ul { margin-bottom: 16px; + margin-top: 0; } .markdown-body hr { - height: 0.25em; - padding: 0; - margin: 24px 0; background-color: #e1e4e8; border: 0; + height: .25em; + margin: 24px 0; + padding: 0; } .markdown-body blockquote { - padding: 0 1em; + border-left: .25em solid #dfe2e5; color: #6a737d; - border-left: 0.25em solid #dfe2e5; + padding: 0 1em; } .markdown-body blockquote>:first-child { @@ -435,17 +547,17 @@ } .markdown-body kbd { - display: inline-block; - padding: 3px 5px; - font-size: 11px; - line-height: 10px; - color: #444d56; - vertical-align: middle; background-color: #fafbfc; - border: solid 1px #c6cbd1; + border: 1px solid #c6cbd1; border-bottom-color: #959da5; border-radius: 3px; box-shadow: inset 0 -1px 0 #959da5; + color: #444d56; + display: inline-block; + font-size: 11px; + line-height: 10px; + padding: 3px 5px; + vertical-align: middle; } .markdown-body h1, @@ -454,51 +566,24 @@ .markdown-body h4, .markdown-body h5, .markdown-body h6 { - margin-top: 24px; - margin-bottom: 16px; font-weight: 600; line-height: 1.25; -} - -.markdown-body h1 .octicon-link, -.markdown-body h2 .octicon-link, -.markdown-body h3 .octicon-link, -.markdown-body h4 .octicon-link, -.markdown-body h5 .octicon-link, -.markdown-body h6 .octicon-link { - color: #1b1f23; - vertical-align: middle; - visibility: hidden; -} - -.markdown-body h1:hover .anchor, -.markdown-body h2:hover .anchor, -.markdown-body h3:hover .anchor, -.markdown-body h4:hover .anchor, -.markdown-body h5:hover .anchor, -.markdown-body h6:hover .anchor { - text-decoration: none; -} - -.markdown-body h1:hover .anchor .octicon-link, -.markdown-body h2:hover .anchor .octicon-link, -.markdown-body h3:hover .anchor .octicon-link, -.markdown-body h4:hover .anchor .octicon-link, -.markdown-body h5:hover .anchor .octicon-link, -.markdown-body h6:hover .anchor .octicon-link { - visibility: visible; + margin-bottom: 16px; + margin-top: 24px; } .markdown-body h1 { - padding-bottom: 0.3em; font-size: 2em; +} + +.markdown-body h1, +.markdown-body h2 { border-bottom: 1px solid #eaecef; + padding-bottom: .3em; } .markdown-body h2 { - padding-bottom: 0.3em; font-size: 1.5em; - border-bottom: 1px solid #eaecef; } .markdown-body h3 { @@ -510,25 +595,25 @@ } .markdown-body h5 { - font-size: 0.875em; + font-size: .875em; } .markdown-body h6 { - font-size: 0.85em; color: #6a737d; + font-size: .85em; } -.markdown-body ul, -.markdown-body ol { +.markdown-body ol, +.markdown-body ul { padding-left: 2em; } -.markdown-body ul ul, -.markdown-body ul ol, .markdown-body ol ol, -.markdown-body ol ul { - margin-top: 0; +.markdown-body ol ul, +.markdown-body ul ol, +.markdown-body ul ul { margin-bottom: 0; + margin-top: 0; } .markdown-body li { @@ -540,7 +625,7 @@ } .markdown-body li+li { - margin-top: 0.25em; + margin-top: .25em; } .markdown-body dl { @@ -548,32 +633,32 @@ } .markdown-body dl dt { - padding: 0; - margin-top: 16px; font-size: 1em; font-style: italic; font-weight: 600; + margin-top: 16px; + padding: 0; } .markdown-body dl dd { - padding: 0 16px; margin-bottom: 16px; + padding: 0 16px; } .markdown-body table { display: block; - width: 100%; overflow: auto; + width: 100%; } .markdown-body table th { font-weight: 600; } -.markdown-body table th, -.markdown-body table td { - padding: 6px 13px; +.markdown-body table td, +.markdown-body table th { border: 1px solid #dfe2e5; + padding: 6px 13px; } .markdown-body table tr { @@ -586,9 +671,9 @@ } .markdown-body img { - max-width: 100%; - box-sizing: content-box; background-color: #fff; + box-sizing: content-box; + max-width: 100%; } .markdown-body img[align=right] { @@ -600,11 +685,11 @@ } .markdown-body code { - padding: 0.2em 0.4em; - margin: 0; - font-size: 85%; - background-color: rgba(27,31,35,0.05); + background-color: rgba(27,31,35,.05); border-radius: 3px; + font-size: 85%; + margin: 0; + padding: .2em .4em; } .markdown-body pre { @@ -612,13 +697,13 @@ } .markdown-body pre>code { - padding: 0; - margin: 0; - font-size: 100%; - word-break: normal; - white-space: pre; background: transparent; border: 0; + font-size: 100%; + margin: 0; + padding: 0; + white-space: pre; + word-break: normal; } .markdown-body .highlight { @@ -632,49 +717,173 @@ .markdown-body .highlight pre, .markdown-body pre { - padding: 16px; - overflow: auto; - font-size: 85%; - line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; + font-size: 85%; + line-height: 1.45; + overflow: auto; + padding: 16px; } .markdown-body pre code { + background-color: transparent; + border: 0; display: inline; + line-height: inherit; + margin: 0; max-width: auto; + overflow: visible; padding: 0; - margin: 0; + word-wrap: normal; +} + +.markdown-body .commit-tease-sha { + color: #444d56; + display: inline-block; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; + font-size: 90%; +} + +.markdown-body .blob-wrapper { + border-bottom-left-radius: 3px; + border-bottom-right-radius: 3px; + overflow-x: auto; + overflow-y: hidden; +} + +.markdown-body .blob-wrapper-embedded { + max-height: 240px; + overflow-y: auto; +} + +.markdown-body .blob-num { + -moz-user-select: none; + -ms-user-select: none; + -webkit-user-select: none; + color: rgba(27,31,35,.3); + cursor: pointer; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; + font-size: 12px; + line-height: 20px; + min-width: 50px; + padding-left: 10px; + padding-right: 10px; + text-align: right; + user-select: none; + vertical-align: top; + white-space: nowrap; + width: 1%; +} + +.markdown-body .blob-num:hover { + color: rgba(27,31,35,.6); +} + +.markdown-body .blob-num:before { + content: attr(data-line-number); +} + +.markdown-body .blob-code { + line-height: 20px; + padding-left: 10px; + padding-right: 10px; + position: relative; + vertical-align: top; +} + +.markdown-body .blob-code-inner { + color: #24292e; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; + font-size: 12px; overflow: visible; - line-height: inherit; + white-space: pre; word-wrap: normal; - background-color: transparent; - border: 0; } -.markdown-body .full-commit .btn-outline:not(:disabled):hover { - color: #005cc5; - border-color: #005cc5; +.markdown-body .pl-token.active, +.markdown-body .pl-token:hover { + background: #ffea7f; + cursor: pointer; } .markdown-body kbd { - display: inline-block; - padding: 3px 5px; - font: 11px "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace; - line-height: 10px; - color: #444d56; - vertical-align: middle; background-color: #fafbfc; - border: solid 1px #d1d5da; + border: 1px solid #d1d5da; border-bottom-color: #c6cbd1; border-radius: 3px; box-shadow: inset 0 -1px 0 #c6cbd1; + color: #444d56; + display: inline-block; + font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; + line-height: 10px; + padding: 3px 5px; + vertical-align: middle; } .markdown-body :checked+.radio-label { + border-color: #0366d6; position: relative; z-index: 1; - border-color: #0366d6; +} + +.markdown-body .tab-size[data-tab-size="1"] { + -moz-tab-size: 1; + tab-size: 1; +} + +.markdown-body .tab-size[data-tab-size="2"] { + -moz-tab-size: 2; + tab-size: 2; +} + +.markdown-body .tab-size[data-tab-size="3"] { + -moz-tab-size: 3; + tab-size: 3; +} + +.markdown-body .tab-size[data-tab-size="4"] { + -moz-tab-size: 4; + tab-size: 4; +} + +.markdown-body .tab-size[data-tab-size="5"] { + -moz-tab-size: 5; + tab-size: 5; +} + +.markdown-body .tab-size[data-tab-size="6"] { + -moz-tab-size: 6; + tab-size: 6; +} + +.markdown-body .tab-size[data-tab-size="7"] { + -moz-tab-size: 7; + tab-size: 7; +} + +.markdown-body .tab-size[data-tab-size="8"] { + -moz-tab-size: 8; + tab-size: 8; +} + +.markdown-body .tab-size[data-tab-size="9"] { + -moz-tab-size: 9; + tab-size: 9; +} + +.markdown-body .tab-size[data-tab-size="10"] { + -moz-tab-size: 10; + tab-size: 10; +} + +.markdown-body .tab-size[data-tab-size="11"] { + -moz-tab-size: 11; + tab-size: 11; +} + +.markdown-body .tab-size[data-tab-size="12"] { + -moz-tab-size: 12; + tab-size: 12; } .markdown-body .task-list-item { @@ -686,10 +895,62 @@ } .markdown-body .task-list-item input { - margin: 0 0.2em 0.25em -1.6em; + margin: 0 .2em .25em -1.6em; vertical-align: middle; } .markdown-body hr { border-bottom-color: #eee; } + +.markdown-body .pl-0 { + padding-left: 0!important; +} + +.markdown-body .pl-1 { + padding-left: 4px!important; +} + +.markdown-body .pl-2 { + padding-left: 8px!important; +} + +.markdown-body .pl-3 { + padding-left: 16px!important; +} + +.markdown-body .pl-4 { + padding-left: 24px!important; +} + +.markdown-body .pl-5 { + padding-left: 32px!important; +} + +.markdown-body .pl-6 { + padding-left: 40px!important; +} + +.markdown-body .pl-7 { + padding-left: 48px!important; +} + +.markdown-body .pl-8 { + padding-left: 64px!important; +} + +.markdown-body .pl-9 { + padding-left: 80px!important; +} + +.markdown-body .pl-10 { + padding-left: 96px!important; +} + +.markdown-body .pl-11 { + padding-left: 112px!important; +} + +.markdown-body .pl-12 { + padding-left: 128px!important; +} diff --git a/package.json b/package.json index 62e402d..bdfc5f3 100644 --- a/package.json +++ b/package.json @@ -1,34 +1,34 @@ { - "name": "github-markdown-css", - "version": "2.10.0", - "description": "The minimal amount of CSS to replicate the GitHub Markdown style", - "license": "MIT", - "repository": "sindresorhus/github-markdown-css", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "main": "github-markdown.css", - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "make": "github-markdown-css > github-markdown.css" - }, - "files": [ - "github-markdown.css" - ], - "keywords": [ - "browser", - "github", - "markdown", - "md", - "css", - "style", - "stylesheet" - ], - "devDependencies": { - "generate-github-markdown-css": "^2.1.0" - } + "name": "github-markdown-css", + "version": "2.10.0", + "description": "The minimal amount of CSS to replicate the GitHub Markdown style", + "license": "MIT", + "repository": "sindresorhus/github-markdown-css", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "main": "github-markdown.css", + "engines": { + "node": ">=0.10.0" + }, + "scripts": { + "make": "github-markdown-css > github-markdown.css" + }, + "files": [ + "github-markdown.css" + ], + "keywords": [ + "browser", + "github", + "markdown", + "md", + "css", + "style", + "stylesheet" + ], + "devDependencies": { + "generate-github-markdown-css": "^3.0.1" + } } From 7b0d2e1014d316853bf52312314ab0c02cf93529 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 31 Jan 2019 23:39:10 +0700 Subject: [PATCH 17/24] Drop support for Bower --- .gitattributes | 3 +-- bower.json | 19 ------------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 bower.json diff --git a/.gitattributes b/.gitattributes index 391f0a4..6313b56 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1 @@ -* text=auto -*.js text eol=lf +* text=auto eol=lf diff --git a/bower.json b/bower.json deleted file mode 100644 index 6b16432..0000000 --- a/bower.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "github-markdown-css", - "description": "The minimal amount of CSS to replicate the GitHub Markdown style", - "license": "MIT", - "main": "github-markdown.css", - "keywords": [ - "github", - "markdown", - "md", - "css", - "style", - "stylesheet" - ], - "ignore": [ - "**/.*", - "package.json", - "index.html" - ] -} From e3c7e7f89d7a76a516a1f2902c560683b07dadb0 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 31 Jan 2019 23:41:47 +0700 Subject: [PATCH 18/24] 3.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index bdfc5f3..85924af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "2.10.0", + "version": "3.0.0", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 12ab1315532a378ee547269442813fae131912df Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 1 Feb 2019 16:38:11 +0700 Subject: [PATCH 19/24] Fix invalid CSS caused by copy-paste mistake Fixes #63 --- github-markdown.css | 5 +++-- package.json | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index aa85199..6085db2 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -1,5 +1,5 @@ - -font-family: octicons-link; +@font-face { + font-family: octicons-link; src: url(data:font/woff;charset=utf-8;base64,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) format('woff'); } @@ -48,6 +48,7 @@ font-family: octicons-link; .markdown-body h6:hover .anchor .octicon-link { visibility: visible; } + .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; diff --git a/package.json b/package.json index 85924af..4a415a7 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,6 @@ "stylesheet" ], "devDependencies": { - "generate-github-markdown-css": "^3.0.1" + "generate-github-markdown-css": "^3.0.2" } } From 6616212a2a469d1c1a127d793788dc440c7e3197 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Fri, 1 Feb 2019 16:38:35 +0700 Subject: [PATCH 20/24] 3.0.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4a415a7..e666dd6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "3.0.0", + "version": "3.0.1", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 8e8d8570e8ec15013134cacddbebedebfb5b3876 Mon Sep 17 00:00:00 2001 From: Atsushi Yamamoto Date: Wed, 19 Jun 2019 23:17:48 +0900 Subject: [PATCH 21/24] Add render instruction for code syntax highlighting (#66) Co-authored-by: Sindre Sorhus --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 790cef5..a289872 100644 --- a/readme.md +++ b/readme.md @@ -44,6 +44,8 @@ Import the `github-markdown.css` file and add a `markdown-body` class to the con
``` +If you want code syntax highlighted, use GitHub Flavored Markdown rendered from [GitHub's `/markdown` API](https://developer.github.com/v3/markdown/). + ## How From 28b11434c1355a09e32b1d169ae2e0b49bcf3896 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 22 Feb 2020 17:31:42 +0700 Subject: [PATCH 22/24] Regenerate GitHub CSS --- github-markdown.css | 664 +++++++++++++++++++++++--------------------- license | 2 +- package.json | 8 +- readme.md | 11 +- 4 files changed, 351 insertions(+), 334 deletions(-) diff --git a/github-markdown.css b/github-markdown.css index 6085db2..7c6cd78 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -1,8 +1,3 @@ -@font-face { - font-family: octicons-link; - src: url(data:font/woff;charset=utf-8;base64,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) format('woff'); -} - .markdown-body .octicon { display: inline-block; fill: currentColor; @@ -49,141 +44,28 @@ visibility: visible; } -.markdown-body { +.markdown-body h1:hover .anchor .octicon-link:before, +.markdown-body h2:hover .anchor .octicon-link:before, +.markdown-body h3:hover .anchor .octicon-link:before, +.markdown-body h4:hover .anchor .octicon-link:before, +.markdown-body h5:hover .anchor .octicon-link:before, +.markdown-body h6:hover .anchor .octicon-link:before { + width: 16px; + height: 16px; + content: ' '; + display: inline-block; + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' version='1.1' width='16' height='16' aria-hidden='true'%3E%3Cpath fill-rule='evenodd' d='M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z'%3E%3C/path%3E%3C/svg%3E"); +}.markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; - color: #24292e; line-height: 1.5; - font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; + color: #24292e; + font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji; font-size: 16px; line-height: 1.5; word-wrap: break-word; } -.markdown-body .pl-c { - color: #6a737d; -} - -.markdown-body .pl-c1, -.markdown-body .pl-s .pl-v { - color: #005cc5; -} - -.markdown-body .pl-e, -.markdown-body .pl-en { - color: #6f42c1; -} - -.markdown-body .pl-s .pl-s1, -.markdown-body .pl-smi { - color: #24292e; -} - -.markdown-body .pl-ent { - color: #22863a; -} - -.markdown-body .pl-k { - color: #d73a49; -} - -.markdown-body .pl-pds, -.markdown-body .pl-s, -.markdown-body .pl-s .pl-pse .pl-s1, -.markdown-body .pl-sr, -.markdown-body .pl-sr .pl-cce, -.markdown-body .pl-sr .pl-sra, -.markdown-body .pl-sr .pl-sre { - color: #032f62; -} - -.markdown-body .pl-smw, -.markdown-body .pl-v { - color: #e36209; -} - -.markdown-body .pl-bu { - color: #b31d28; -} - -.markdown-body .pl-ii { - background-color: #b31d28; - color: #fafbfc; -} - -.markdown-body .pl-c2 { - background-color: #d73a49; - color: #fafbfc; -} - -.markdown-body .pl-c2:before { - content: "^M"; -} - -.markdown-body .pl-sr .pl-cce { - color: #22863a; - font-weight: 700; -} - -.markdown-body .pl-ml { - color: #735c0f; -} - -.markdown-body .pl-mh, -.markdown-body .pl-mh .pl-en, -.markdown-body .pl-ms { - color: #005cc5; - font-weight: 700; -} - -.markdown-body .pl-mi { - color: #24292e; - font-style: italic; -} - -.markdown-body .pl-mb { - color: #24292e; - font-weight: 700; -} - -.markdown-body .pl-md { - background-color: #ffeef0; - color: #b31d28; -} - -.markdown-body .pl-mi1 { - background-color: #f0fff4; - color: #22863a; -} - -.markdown-body .pl-mc { - background-color: #ffebda; - color: #e36209; -} - -.markdown-body .pl-mi2 { - background-color: #005cc5; - color: #f6f8fa; -} - -.markdown-body .pl-mdr { - color: #6f42c1; - font-weight: 700; -} - -.markdown-body .pl-ba { - color: #586069; -} - -.markdown-body .pl-sg { - color: #959da5; -} - -.markdown-body .pl-corl { - color: #032f62; - text-decoration: underline; -} - .markdown-body details { display: block; } @@ -193,7 +75,7 @@ } .markdown-body a { - background-color: transparent; + background-color: initial; } .markdown-body a:active, @@ -223,7 +105,7 @@ } .markdown-body hr { - box-sizing: content-box; + box-sizing: initial; height: 0; overflow: visible; } @@ -266,28 +148,27 @@ } .markdown-body hr { - background: transparent; - border: 0; - border-bottom: 1px solid #dfe2e5; height: 0; margin: 15px 0; overflow: hidden; + background: transparent; + border: 0; + border-bottom: 1px solid #dfe2e5; } +.markdown-body hr:after, .markdown-body hr:before { - content: ""; display: table; + content: ""; } .markdown-body hr:after { clear: both; - content: ""; - display: table; } .markdown-body table { - border-collapse: collapse; border-spacing: 0; + border-collapse: collapse; } .markdown-body td, @@ -299,14 +180,27 @@ cursor: pointer; } +.markdown-body kbd { + display: inline-block; + padding: 3px 5px; + font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; + line-height: 10px; + color: #444d56; + vertical-align: middle; + background-color: #fafbfc; + border: 1px solid #d1d5da; + border-radius: 3px; + box-shadow: inset 0 -1px 0 #d1d5da; +} + .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { - margin-bottom: 0; margin-top: 0; + margin-bottom: 0; } .markdown-body h1 { @@ -349,8 +243,8 @@ } .markdown-body p { - margin-bottom: 10px; margin-top: 0; + margin-bottom: 10px; } .markdown-body blockquote { @@ -359,9 +253,9 @@ .markdown-body ol, .markdown-body ul { - margin-bottom: 0; - margin-top: 0; padding-left: 0; + margin-top: 0; + margin-bottom: 0; } .markdown-body ol ol, @@ -382,20 +276,26 @@ .markdown-body code, .markdown-body pre { - font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; font-size: 12px; } .markdown-body pre { - margin-bottom: 0; margin-top: 0; + margin-bottom: 0; } .markdown-body input::-webkit-inner-spin-button, .markdown-body input::-webkit-outer-spin-button { + margin: 0; -webkit-appearance: none; appearance: none; - margin: 0; +} + +.markdown-body :checked+.radio-label { + position: relative; + z-index: 1; + border-color: #0366d6; } .markdown-body .border { @@ -418,12 +318,200 @@ background-color: #fff!important; } -.markdown-body .bg-gray-light { - background-color: #fafbfc!important; +.markdown-body .bg-gray-light { + background-color: #fafbfc!important; +} + +.markdown-body .text-gray-light { + color: #6a737d!important; +} + +.markdown-body .mb-0 { + margin-bottom: 0!important; +} + +.markdown-body .my-2 { + margin-top: 8px!important; + margin-bottom: 8px!important; +} + +.markdown-body .pl-0 { + padding-left: 0!important; +} + +.markdown-body .py-0 { + padding-top: 0!important; + padding-bottom: 0!important; +} + +.markdown-body .pl-1 { + padding-left: 4px!important; +} + +.markdown-body .pl-2 { + padding-left: 8px!important; +} + +.markdown-body .py-2 { + padding-top: 8px!important; + padding-bottom: 8px!important; +} + +.markdown-body .pl-3, +.markdown-body .px-3 { + padding-left: 16px!important; +} + +.markdown-body .px-3 { + padding-right: 16px!important; +} + +.markdown-body .pl-4 { + padding-left: 24px!important; +} + +.markdown-body .pl-5 { + padding-left: 32px!important; +} + +.markdown-body .pl-6 { + padding-left: 40px!important; +} + +.markdown-body .f6 { + font-size: 12px!important; +} + +.markdown-body .lh-condensed { + line-height: 1.25!important; +} + +.markdown-body .text-bold { + font-weight: 600!important; +} + +.markdown-body .pl-c { + color: #6a737d; +} + +.markdown-body .pl-c1, +.markdown-body .pl-s .pl-v { + color: #005cc5; +} + +.markdown-body .pl-e, +.markdown-body .pl-en { + color: #6f42c1; +} + +.markdown-body .pl-s .pl-s1, +.markdown-body .pl-smi { + color: #24292e; +} + +.markdown-body .pl-ent { + color: #22863a; +} + +.markdown-body .pl-k { + color: #d73a49; +} + +.markdown-body .pl-pds, +.markdown-body .pl-s, +.markdown-body .pl-s .pl-pse .pl-s1, +.markdown-body .pl-sr, +.markdown-body .pl-sr .pl-cce, +.markdown-body .pl-sr .pl-sra, +.markdown-body .pl-sr .pl-sre { + color: #032f62; +} + +.markdown-body .pl-smw, +.markdown-body .pl-v { + color: #e36209; +} + +.markdown-body .pl-bu { + color: #b31d28; +} + +.markdown-body .pl-ii { + color: #fafbfc; + background-color: #b31d28; +} + +.markdown-body .pl-c2 { + color: #fafbfc; + background-color: #d73a49; +} + +.markdown-body .pl-c2:before { + content: "^M"; +} + +.markdown-body .pl-sr .pl-cce { + font-weight: 700; + color: #22863a; +} + +.markdown-body .pl-ml { + color: #735c0f; +} + +.markdown-body .pl-mh, +.markdown-body .pl-mh .pl-en, +.markdown-body .pl-ms { + font-weight: 700; + color: #005cc5; +} + +.markdown-body .pl-mi { + font-style: italic; + color: #24292e; +} + +.markdown-body .pl-mb { + font-weight: 700; + color: #24292e; +} + +.markdown-body .pl-md { + color: #b31d28; + background-color: #ffeef0; +} + +.markdown-body .pl-mi1 { + color: #22863a; + background-color: #f0fff4; +} + +.markdown-body .pl-mc { + color: #e36209; + background-color: #ffebda; +} + +.markdown-body .pl-mi2 { + color: #f6f8fa; + background-color: #005cc5; +} + +.markdown-body .pl-mdr { + font-weight: 700; + color: #6f42c1; +} + +.markdown-body .pl-ba { + color: #586069; +} + +.markdown-body .pl-sg { + color: #959da5; } -.markdown-body .text-gray-light { - color: #6a737d!important; +.markdown-body .pl-corl { + text-decoration: underline; + color: #032f62; } .markdown-body .mb-0 { @@ -432,6 +520,9 @@ .markdown-body .my-2 { margin-bottom: 8px!important; +} + +.markdown-body .my-2 { margin-top: 8px!important; } @@ -440,8 +531,8 @@ } .markdown-body .py-0 { - padding-bottom: 0!important; padding-top: 0!important; + padding-bottom: 0!important; } .markdown-body .pl-1 { @@ -453,19 +544,14 @@ } .markdown-body .py-2 { - padding-bottom: 8px!important; padding-top: 8px!important; + padding-bottom: 8px!important; } -.markdown-body .pl-3, -.markdown-body .px-3 { +.markdown-body .pl-3 { padding-left: 16px!important; } -.markdown-body .px-3 { - padding-right: 16px!important; -} - .markdown-body .pl-4 { padding-left: 24px!important; } @@ -478,27 +564,55 @@ padding-left: 40px!important; } -.markdown-body .f6 { - font-size: 12px!important; +.markdown-body .pl-7 { + padding-left: 48px!important; } -.markdown-body .lh-condensed { - line-height: 1.25!important; +.markdown-body .pl-8 { + padding-left: 64px!important; } -.markdown-body .text-bold { - font-weight: 600!important; +.markdown-body .pl-9 { + padding-left: 80px!important; +} + +.markdown-body .pl-10 { + padding-left: 96px!important; +} + +.markdown-body .pl-11 { + padding-left: 112px!important; +} + +.markdown-body .pl-12 { + padding-left: 128px!important; +} + +.markdown-body hr { + border-bottom-color: #eee; +} + +.markdown-body kbd { + display: inline-block; + padding: 3px 5px; + font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; + line-height: 10px; + color: #444d56; + vertical-align: middle; + background-color: #fafbfc; + border: 1px solid #d1d5da; + border-radius: 3px; + box-shadow: inset 0 -1px 0 #d1d5da; } +.markdown-body:after, .markdown-body:before { - content: ""; display: table; + content: ""; } .markdown-body:after { clear: both; - content: ""; - display: table; } .markdown-body>:first-child { @@ -515,28 +629,29 @@ } .markdown-body blockquote, +.markdown-body details, .markdown-body dl, .markdown-body ol, .markdown-body p, .markdown-body pre, .markdown-body table, .markdown-body ul { - margin-bottom: 16px; margin-top: 0; + margin-bottom: 16px; } .markdown-body hr { - background-color: #e1e4e8; - border: 0; height: .25em; - margin: 24px 0; padding: 0; + margin: 24px 0; + background-color: #e1e4e8; + border: 0; } .markdown-body blockquote { - border-left: .25em solid #dfe2e5; - color: #6a737d; padding: 0 1em; + color: #6a737d; + border-left: .25em solid #dfe2e5; } .markdown-body blockquote>:first-child { @@ -547,30 +662,16 @@ margin-bottom: 0; } -.markdown-body kbd { - background-color: #fafbfc; - border: 1px solid #c6cbd1; - border-bottom-color: #959da5; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #959da5; - color: #444d56; - display: inline-block; - font-size: 11px; - line-height: 10px; - padding: 3px 5px; - vertical-align: middle; -} - .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 { + margin-top: 24px; + margin-bottom: 16px; font-weight: 600; line-height: 1.25; - margin-bottom: 16px; - margin-top: 24px; } .markdown-body h1 { @@ -579,8 +680,8 @@ .markdown-body h1, .markdown-body h2 { - border-bottom: 1px solid #eaecef; padding-bottom: .3em; + border-bottom: 1px solid #eaecef; } .markdown-body h2 { @@ -600,8 +701,8 @@ } .markdown-body h6 { - color: #6a737d; font-size: .85em; + color: #6a737d; } .markdown-body ol, @@ -613,8 +714,8 @@ .markdown-body ol ul, .markdown-body ul ol, .markdown-body ul ul { - margin-bottom: 0; margin-top: 0; + margin-bottom: 0; } .markdown-body li { @@ -634,22 +735,22 @@ } .markdown-body dl dt { + padding: 0; + margin-top: 16px; font-size: 1em; font-style: italic; font-weight: 600; - margin-top: 16px; - padding: 0; } .markdown-body dl dd { - margin-bottom: 16px; padding: 0 16px; + margin-bottom: 16px; } .markdown-body table { display: block; - overflow: auto; width: 100%; + overflow: auto; } .markdown-body table th { @@ -658,8 +759,8 @@ .markdown-body table td, .markdown-body table th { - border: 1px solid #dfe2e5; padding: 6px 13px; + border: 1px solid #dfe2e5; } .markdown-body table tr { @@ -672,9 +773,9 @@ } .markdown-body img { - background-color: #fff; - box-sizing: content-box; max-width: 100%; + box-sizing: initial; + background-color: #fff; } .markdown-body img[align=right] { @@ -686,11 +787,11 @@ } .markdown-body code { + padding: .2em .4em; + margin: 0; + font-size: 85%; background-color: rgba(27,31,35,.05); border-radius: 3px; - font-size: 85%; - margin: 0; - padding: .2em .4em; } .markdown-body pre { @@ -698,13 +799,13 @@ } .markdown-body pre>code { - background: transparent; - border: 0; - font-size: 100%; - margin: 0; padding: 0; - white-space: pre; + margin: 0; + font-size: 100%; word-break: normal; + white-space: pre; + background: transparent; + border: 0; } .markdown-body .highlight { @@ -718,36 +819,39 @@ .markdown-body .highlight pre, .markdown-body pre { - background-color: #f6f8fa; - border-radius: 3px; + padding: 16px; + overflow: auto; font-size: 85%; line-height: 1.45; - overflow: auto; - padding: 16px; + background-color: #f6f8fa; + border-radius: 3px; } .markdown-body pre code { - background-color: transparent; - border: 0; display: inline; - line-height: inherit; - margin: 0; max-width: auto; - overflow: visible; padding: 0; + margin: 0; + overflow: visible; + line-height: inherit; word-wrap: normal; + background-color: initial; + border: 0; } .markdown-body .commit-tease-sha { - color: #444d56; display: inline-block; - font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; font-size: 90%; + color: #444d56; +} + +.markdown-body .full-commit .btn-outline:not(:disabled):hover { + color: #005cc5; + border-color: #005cc5; } .markdown-body .blob-wrapper { - border-bottom-left-radius: 3px; - border-bottom-right-radius: 3px; overflow-x: auto; overflow-y: hidden; } @@ -758,22 +862,22 @@ } .markdown-body .blob-num { - -moz-user-select: none; - -ms-user-select: none; - -webkit-user-select: none; - color: rgba(27,31,35,.3); - cursor: pointer; - font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; - font-size: 12px; - line-height: 20px; + width: 1%; min-width: 50px; - padding-left: 10px; padding-right: 10px; + padding-left: 10px; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; + font-size: 12px; + line-height: 20px; + color: rgba(27,31,35,.3); text-align: right; - user-select: none; - vertical-align: top; white-space: nowrap; - width: 1%; + vertical-align: top; + cursor: pointer; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; } .markdown-body .blob-num:hover { @@ -785,46 +889,26 @@ } .markdown-body .blob-code { - line-height: 20px; - padding-left: 10px; - padding-right: 10px; position: relative; + padding-right: 10px; + padding-left: 10px; + line-height: 20px; vertical-align: top; } .markdown-body .blob-code-inner { - color: #24292e; - font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; - font-size: 12px; overflow: visible; - white-space: pre; + font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace; + font-size: 12px; + color: #24292e; word-wrap: normal; + white-space: pre; } .markdown-body .pl-token.active, .markdown-body .pl-token:hover { - background: #ffea7f; cursor: pointer; -} - -.markdown-body kbd { - background-color: #fafbfc; - border: 1px solid #d1d5da; - border-bottom-color: #c6cbd1; - border-radius: 3px; - box-shadow: inset 0 -1px 0 #c6cbd1; - color: #444d56; - display: inline-block; - font: 11px SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace; - line-height: 10px; - padding: 3px 5px; - vertical-align: middle; -} - -.markdown-body :checked+.radio-label { - border-color: #0366d6; - position: relative; - z-index: 1; + background: #ffea7f; } .markdown-body .tab-size[data-tab-size="1"] { @@ -899,59 +983,3 @@ margin: 0 .2em .25em -1.6em; vertical-align: middle; } - -.markdown-body hr { - border-bottom-color: #eee; -} - -.markdown-body .pl-0 { - padding-left: 0!important; -} - -.markdown-body .pl-1 { - padding-left: 4px!important; -} - -.markdown-body .pl-2 { - padding-left: 8px!important; -} - -.markdown-body .pl-3 { - padding-left: 16px!important; -} - -.markdown-body .pl-4 { - padding-left: 24px!important; -} - -.markdown-body .pl-5 { - padding-left: 32px!important; -} - -.markdown-body .pl-6 { - padding-left: 40px!important; -} - -.markdown-body .pl-7 { - padding-left: 48px!important; -} - -.markdown-body .pl-8 { - padding-left: 64px!important; -} - -.markdown-body .pl-9 { - padding-left: 80px!important; -} - -.markdown-body .pl-10 { - padding-left: 96px!important; -} - -.markdown-body .pl-11 { - padding-left: 112px!important; -} - -.markdown-body .pl-12 { - padding-left: 128px!important; -} diff --git a/license b/license index e7af2f7..fa7ceba 100644 --- a/license +++ b/license @@ -1,6 +1,6 @@ MIT License -Copyright (c) Sindre Sorhus (sindresorhus.com) +Copyright (c) Sindre Sorhus (https://sindresorhus.com) 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: diff --git a/package.json b/package.json index e666dd6..80b6604 100644 --- a/package.json +++ b/package.json @@ -4,15 +4,13 @@ "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", + "funding": "https://github.com/sponsors/sindresorhus", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" + "url": "https://sindresorhus.com" }, "main": "github-markdown.css", - "engines": { - "node": ">=0.10.0" - }, "scripts": { "make": "github-markdown-css > github-markdown.css" }, @@ -29,6 +27,6 @@ "stylesheet" ], "devDependencies": { - "generate-github-markdown-css": "^3.0.2" + "generate-github-markdown-css": "^4.0.0" } } diff --git a/readme.md b/readme.md index a289872..bc73f37 100644 --- a/readme.md +++ b/readme.md @@ -4,8 +4,7 @@ [](http://sindresorhus.com/github-markdown-css) -## [Demo](http://sindresorhus.com/github-markdown-css) - +## [Demo](https://sindresorhus.com/github-markdown-css) ## Install @@ -15,7 +14,6 @@ Download [manually](https://raw.githubusercontent.com/sindresorhus/github-markdo $ npm install github-markdown-css ``` - ## Usage Import the `github-markdown.css` file and add a `markdown-body` class to the container of your rendered Markdown and set a width for it. GitHub uses `980px` width and `45px` padding, and `15px` padding for mobile. @@ -46,17 +44,10 @@ Import the `github-markdown.css` file and add a `markdown-body` class to the con If you want code syntax highlighted, use GitHub Flavored Markdown rendered from [GitHub's `/markdown` API](https://developer.github.com/v3/markdown/). - ## How See [`generate-github-markdown-css`](https://github.com/sindresorhus/generate-github-markdown-css) for how it's generated and ability to generate your own. - ## Dev Run `npm run make` to update the CSS. - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) From 1485dd78f5e744ef36e946e5ae44838e3906f9d8 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sat, 22 Feb 2020 18:41:22 +0700 Subject: [PATCH 23/24] 4.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 80b6604..ad95233 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-markdown-css", - "version": "3.0.1", + "version": "4.0.0", "description": "The minimal amount of CSS to replicate the GitHub Markdown style", "license": "MIT", "repository": "sindresorhus/github-markdown-css", From 888d5a03223a2c14a8d3eb40e90a22f62469a46b Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Tue, 20 Oct 2020 20:24:11 +0800 Subject: [PATCH 24/24] Update GFM render API link (#75) --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index bc73f37..d1d32a6 100644 --- a/readme.md +++ b/readme.md @@ -42,7 +42,7 @@ Import the `github-markdown.css` file and add a `markdown-body` class to the con ``` -If you want code syntax highlighted, use GitHub Flavored Markdown rendered from [GitHub's `/markdown` API](https://developer.github.com/v3/markdown/). +If you want code syntax highlighted, use GitHub Flavored Markdown rendered from [GitHub's `/markdown` API](https://docs.github.com/en/free-pro-team@latest/rest/reference/markdown). ## How