mirror of
https://github.com/sindresorhus/github-markdown-css.git
synced 2024-03-22 13:10:53 +08:00
build for storybook
This commit is contained in:
parent
c0d8c9f723
commit
cfbf65f095
@ -1,12 +0,0 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
indent_style = tab
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
[*.yml]
|
||||
indent_style = space
|
||||
indent_size = 2
|
19
bower.json
19
bower.json
@ -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"
|
||||
]
|
||||
}
|
@ -6,9 +6,9 @@
|
||||
.addon-notes-container {
|
||||
-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 +28,8 @@
|
||||
color: #6f42c1;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-smi,
|
||||
.addon-notes-container .pl-s .pl-s1 {
|
||||
.addon-notes-container .pl-s .pl-s1,
|
||||
.addon-notes-container .pl-smi {
|
||||
color: #24292e;
|
||||
}
|
||||
|
||||
@ -41,18 +41,18 @@
|
||||
color: #d73a49;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-s,
|
||||
.addon-notes-container .pl-pds,
|
||||
.addon-notes-container .pl-s,
|
||||
.addon-notes-container .pl-s .pl-pse .pl-s1,
|
||||
.addon-notes-container .pl-sr,
|
||||
.addon-notes-container .pl-sr .pl-cce,
|
||||
.addon-notes-container .pl-sr .pl-sre,
|
||||
.addon-notes-container .pl-sr .pl-sra {
|
||||
.addon-notes-container .pl-sr .pl-sra,
|
||||
.addon-notes-container .pl-sr .pl-sre {
|
||||
color: #032f62;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-v,
|
||||
.addon-notes-container .pl-smw {
|
||||
.addon-notes-container .pl-smw,
|
||||
.addon-notes-container .pl-v {
|
||||
color: #e36209;
|
||||
}
|
||||
|
||||
@ -61,22 +61,22 @@
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-ii {
|
||||
color: #fafbfc;
|
||||
background-color: #b31d28;
|
||||
color: #fafbfc;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-c2 {
|
||||
color: #fafbfc;
|
||||
background-color: #d73a49;
|
||||
color: #fafbfc;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-c2::before {
|
||||
.addon-notes-container .pl-c2:before {
|
||||
content: "^M";
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-sr .pl-cce {
|
||||
font-weight: bold;
|
||||
color: #22863a;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-ml {
|
||||
@ -86,43 +86,43 @@
|
||||
.addon-notes-container .pl-mh,
|
||||
.addon-notes-container .pl-mh .pl-en,
|
||||
.addon-notes-container .pl-ms {
|
||||
font-weight: bold;
|
||||
color: #005cc5;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-mi {
|
||||
font-style: italic;
|
||||
color: #24292e;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-mb {
|
||||
font-weight: bold;
|
||||
color: #24292e;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-md {
|
||||
color: #b31d28;
|
||||
background-color: #ffeef0;
|
||||
color: #b31d28;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-mi1 {
|
||||
color: #22863a;
|
||||
background-color: #f0fff4;
|
||||
color: #22863a;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-mc {
|
||||
color: #e36209;
|
||||
background-color: #ffebda;
|
||||
color: #e36209;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-mi2 {
|
||||
color: #f6f8fa;
|
||||
background-color: #005cc5;
|
||||
color: #f6f8fa;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-mdr {
|
||||
font-weight: bold;
|
||||
color: #6f42c1;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-ba {
|
||||
@ -134,18 +134,22 @@
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-corl {
|
||||
text-decoration: underline;
|
||||
color: #032f62;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.addon-notes-container .octicon {
|
||||
display: inline-block;
|
||||
vertical-align: text-top;
|
||||
fill: currentColor;
|
||||
vertical-align: text-top;
|
||||
}
|
||||
|
||||
.addon-notes-container .placeholder-box {
|
||||
border: 1px solid #959da5;
|
||||
}
|
||||
|
||||
.addon-notes-container a {
|
||||
background-color: transparent;
|
||||
background-color: initial;
|
||||
}
|
||||
|
||||
.addon-notes-container a:active,
|
||||
@ -155,15 +159,12 @@
|
||||
|
||||
.addon-notes-container strong {
|
||||
font-weight: inherit;
|
||||
}
|
||||
|
||||
.addon-notes-container strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.addon-notes-container h1 {
|
||||
font-size: 2em;
|
||||
margin: 0.67em 0;
|
||||
margin: .67em 0;
|
||||
}
|
||||
|
||||
.addon-notes-container img {
|
||||
@ -173,12 +174,12 @@
|
||||
.addon-notes-container code,
|
||||
.addon-notes-container kbd,
|
||||
.addon-notes-container pre {
|
||||
font-family: monospace, monospace;
|
||||
font-family: monospace,monospace;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.addon-notes-container hr {
|
||||
box-sizing: content-box;
|
||||
box-sizing: initial;
|
||||
height: 0;
|
||||
overflow: visible;
|
||||
}
|
||||
@ -192,7 +193,7 @@
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.addon-notes-container [type="checkbox"] {
|
||||
.addon-notes-container [type=checkbox] {
|
||||
box-sizing: border-box;
|
||||
padding: 0;
|
||||
}
|
||||
@ -221,28 +222,27 @@
|
||||
}
|
||||
|
||||
.addon-notes-container hr {
|
||||
height: 0;
|
||||
margin: 15px 0;
|
||||
overflow: hidden;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #dfe2e5;
|
||||
height: 0;
|
||||
margin: 15px 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.addon-notes-container hr::before {
|
||||
display: table;
|
||||
.addon-notes-container hr:after,
|
||||
.addon-notes-container hr:before {
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
|
||||
.addon-notes-container hr::after {
|
||||
display: table;
|
||||
.addon-notes-container hr:after {
|
||||
clear: both;
|
||||
content: "";
|
||||
}
|
||||
|
||||
.addon-notes-container table {
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
}
|
||||
|
||||
.addon-notes-container td,
|
||||
@ -256,54 +256,63 @@
|
||||
.addon-notes-container h4,
|
||||
.addon-notes-container h5,
|
||||
.addon-notes-container h6 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.addon-notes-container h1 {
|
||||
font-size: 32px;
|
||||
}
|
||||
|
||||
.addon-notes-container h1,
|
||||
.addon-notes-container h2 {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.addon-notes-container h2 {
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.addon-notes-container h3 {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.addon-notes-container h3,
|
||||
.addon-notes-container h4 {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.addon-notes-container h4 {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.addon-notes-container h5 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.addon-notes-container h5,
|
||||
.addon-notes-container h6 {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.addon-notes-container h6 {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.addon-notes-container p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.addon-notes-container blockquote {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.addon-notes-container ul,
|
||||
.addon-notes-container ol {
|
||||
padding-left: 0;
|
||||
margin-top: 0;
|
||||
.addon-notes-container ol,
|
||||
.addon-notes-container ul {
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.addon-notes-container ol ol,
|
||||
@ -311,10 +320,10 @@
|
||||
list-style-type: lower-roman;
|
||||
}
|
||||
|
||||
.addon-notes-container ul ul ol,
|
||||
.addon-notes-container ul ol ol,
|
||||
.addon-notes-container ol ol ol,
|
||||
.addon-notes-container ol ul ol,
|
||||
.addon-notes-container ol ol ol {
|
||||
.addon-notes-container ul ol ol,
|
||||
.addon-notes-container ul ul ol {
|
||||
list-style-type: lower-alpha;
|
||||
}
|
||||
|
||||
@ -322,67 +331,72 @@
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.addon-notes-container code {
|
||||
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
||||
.addon-notes-container code,
|
||||
.addon-notes-container pre {
|
||||
font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.addon-notes-container pre {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
||||
font-size: 12px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.addon-notes-container .octicon {
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
.addon-notes-container input::-webkit-inner-spin-button,
|
||||
.addon-notes-container input::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-0 {
|
||||
padding-left: 0 !important;
|
||||
padding-left: 0!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-1 {
|
||||
padding-left: 4px !important;
|
||||
padding-left: 4px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-2 {
|
||||
padding-left: 8px !important;
|
||||
padding-left: 8px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-3 {
|
||||
padding-left: 16px !important;
|
||||
padding-left: 16px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-4 {
|
||||
padding-left: 24px !important;
|
||||
padding-left: 24px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-5 {
|
||||
padding-left: 32px !important;
|
||||
padding-left: 32px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-6 {
|
||||
padding-left: 40px !important;
|
||||
padding-left: 40px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container::before {
|
||||
display: table;
|
||||
.addon-notes-container:after,
|
||||
.addon-notes-container:before {
|
||||
content: "";
|
||||
display: table;
|
||||
}
|
||||
|
||||
.addon-notes-container::after {
|
||||
display: table;
|
||||
.addon-notes-container:after {
|
||||
clear: both;
|
||||
content: "";
|
||||
}
|
||||
|
||||
.addon-notes-container>*:first-child {
|
||||
margin-top: 0 !important;
|
||||
.addon-notes-container>:first-child {
|
||||
margin-top: 0!important;
|
||||
}
|
||||
|
||||
.addon-notes-container>*:last-child {
|
||||
margin-bottom: 0 !important;
|
||||
.addon-notes-container>:last-child {
|
||||
margin-bottom: 0!important;
|
||||
}
|
||||
|
||||
.addon-notes-container a:not([href]) {
|
||||
@ -392,38 +406,38 @@
|
||||
|
||||
.addon-notes-container .anchor {
|
||||
float: left;
|
||||
padding-right: 4px;
|
||||
margin-left: -20px;
|
||||
line-height: 1;
|
||||
margin-left: -20px;
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
.addon-notes-container .anchor:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.addon-notes-container p,
|
||||
.addon-notes-container blockquote,
|
||||
.addon-notes-container ul,
|
||||
.addon-notes-container ol,
|
||||
.addon-notes-container dl,
|
||||
.addon-notes-container ol,
|
||||
.addon-notes-container p,
|
||||
.addon-notes-container pre,
|
||||
.addon-notes-container table,
|
||||
.addon-notes-container pre {
|
||||
margin-top: 0;
|
||||
.addon-notes-container ul {
|
||||
margin-bottom: 16px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.addon-notes-container hr {
|
||||
height: 0.25em;
|
||||
padding: 0;
|
||||
margin: 24px 0;
|
||||
background-color: #e1e4e8;
|
||||
border: 0;
|
||||
height: .25em;
|
||||
margin: 24px 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.addon-notes-container blockquote {
|
||||
padding: 0 1em;
|
||||
border-left: .25em solid #dfe2e5;
|
||||
color: #6a737d;
|
||||
border-left: 0.25em solid #dfe2e5;
|
||||
padding: 0 1em;
|
||||
}
|
||||
|
||||
.addon-notes-container blockquote>:first-child {
|
||||
@ -435,17 +449,17 @@
|
||||
}
|
||||
|
||||
.addon-notes-container 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;
|
||||
}
|
||||
|
||||
.addon-notes-container h1,
|
||||
@ -454,10 +468,10 @@
|
||||
.addon-notes-container h4,
|
||||
.addon-notes-container h5,
|
||||
.addon-notes-container h6 {
|
||||
margin-top: 24px;
|
||||
margin-bottom: 16px;
|
||||
font-weight: 600;
|
||||
line-height: 1.25;
|
||||
margin-bottom: 16px;
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
.addon-notes-container h1 .octicon-link,
|
||||
@ -490,15 +504,17 @@
|
||||
}
|
||||
|
||||
.addon-notes-container h1 {
|
||||
padding-bottom: 0.3em;
|
||||
font-size: 2em;
|
||||
}
|
||||
|
||||
.addon-notes-container h1,
|
||||
.addon-notes-container h2 {
|
||||
border-bottom: 1px solid #eaecef;
|
||||
padding-bottom: .3em;
|
||||
}
|
||||
|
||||
.addon-notes-container h2 {
|
||||
padding-bottom: 0.3em;
|
||||
font-size: 1.5em;
|
||||
border-bottom: 1px solid #eaecef;
|
||||
}
|
||||
|
||||
.addon-notes-container h3 {
|
||||
@ -510,25 +526,25 @@
|
||||
}
|
||||
|
||||
.addon-notes-container h5 {
|
||||
font-size: 0.875em;
|
||||
font-size: .875em;
|
||||
}
|
||||
|
||||
.addon-notes-container h6 {
|
||||
font-size: 0.85em;
|
||||
color: #6a737d;
|
||||
font-size: .85em;
|
||||
}
|
||||
|
||||
.addon-notes-container ul,
|
||||
.addon-notes-container ol {
|
||||
.addon-notes-container ol,
|
||||
.addon-notes-container ul {
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
.addon-notes-container ul ul,
|
||||
.addon-notes-container ul ol,
|
||||
.addon-notes-container ol ol,
|
||||
.addon-notes-container ol ul {
|
||||
margin-top: 0;
|
||||
.addon-notes-container ol ul,
|
||||
.addon-notes-container ul ol,
|
||||
.addon-notes-container ul ul {
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.addon-notes-container li {
|
||||
@ -540,7 +556,7 @@
|
||||
}
|
||||
|
||||
.addon-notes-container li+li {
|
||||
margin-top: 0.25em;
|
||||
margin-top: .25em;
|
||||
}
|
||||
|
||||
.addon-notes-container dl {
|
||||
@ -548,32 +564,32 @@
|
||||
}
|
||||
|
||||
.addon-notes-container dl dt {
|
||||
padding: 0;
|
||||
margin-top: 16px;
|
||||
font-size: 1em;
|
||||
font-style: italic;
|
||||
font-weight: 600;
|
||||
margin-top: 16px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.addon-notes-container dl dd {
|
||||
padding: 0 16px;
|
||||
margin-bottom: 16px;
|
||||
padding: 0 16px;
|
||||
}
|
||||
|
||||
.addon-notes-container table {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.addon-notes-container table th {
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.addon-notes-container table th,
|
||||
.addon-notes-container table td {
|
||||
padding: 6px 13px;
|
||||
.addon-notes-container table td,
|
||||
.addon-notes-container table th {
|
||||
border: 1px solid #dfe2e5;
|
||||
padding: 6px 13px;
|
||||
}
|
||||
|
||||
.addon-notes-container table tr {
|
||||
@ -586,9 +602,9 @@
|
||||
}
|
||||
|
||||
.addon-notes-container img {
|
||||
max-width: 100%;
|
||||
box-sizing: content-box;
|
||||
background-color: #fff;
|
||||
box-sizing: initial;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.addon-notes-container img[align=right] {
|
||||
@ -600,11 +616,11 @@
|
||||
}
|
||||
|
||||
.addon-notes-container 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;
|
||||
}
|
||||
|
||||
.addon-notes-container pre {
|
||||
@ -612,13 +628,13 @@
|
||||
}
|
||||
|
||||
.addon-notes-container 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;
|
||||
}
|
||||
|
||||
.addon-notes-container .highlight {
|
||||
@ -632,49 +648,53 @@
|
||||
|
||||
.addon-notes-container .highlight pre,
|
||||
.addon-notes-container 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;
|
||||
}
|
||||
|
||||
.addon-notes-container pre code {
|
||||
display: inline;
|
||||
max-width: auto;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
overflow: visible;
|
||||
line-height: inherit;
|
||||
word-wrap: normal;
|
||||
background-color: transparent;
|
||||
background-color: initial;
|
||||
border: 0;
|
||||
display: inline;
|
||||
line-height: inherit;
|
||||
margin: 0;
|
||||
max-width: auto;
|
||||
overflow: visible;
|
||||
padding: 0;
|
||||
word-wrap: normal;
|
||||
}
|
||||
|
||||
.addon-notes-container .full-commit .btn-outline:not(:disabled):hover {
|
||||
color: #005cc5;
|
||||
border-color: #005cc5;
|
||||
color: #005cc5;
|
||||
}
|
||||
|
||||
.addon-notes-container 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;
|
||||
}
|
||||
|
||||
.addon-notes-container :checked+.radio-label {
|
||||
border-color: #0366d6;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
border-color: #0366d6;
|
||||
}
|
||||
|
||||
.addon-notes-container .new-label-color-input:invalid {
|
||||
color: #cb2431;
|
||||
}
|
||||
|
||||
.addon-notes-container .task-list-item {
|
||||
@ -686,10 +706,62 @@
|
||||
}
|
||||
|
||||
.addon-notes-container .task-list-item input {
|
||||
margin: 0 0.2em 0.25em -1.6em;
|
||||
margin: 0 .2em .25em -1.6em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.addon-notes-container hr {
|
||||
border-bottom-color: #eee;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-0 {
|
||||
padding-left: 0!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-1 {
|
||||
padding-left: 4px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-2 {
|
||||
padding-left: 8px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-3 {
|
||||
padding-left: 16px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-4 {
|
||||
padding-left: 24px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-5 {
|
||||
padding-left: 32px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-6 {
|
||||
padding-left: 40px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-7 {
|
||||
padding-left: 48px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-8 {
|
||||
padding-left: 64px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-9 {
|
||||
padding-left: 80px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-10 {
|
||||
padding-left: 96px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-11 {
|
||||
padding-left: 112px!important;
|
||||
}
|
||||
|
||||
.addon-notes-container .pl-12 {
|
||||
padding-left: 128px!important;
|
||||
}
|
||||
|
16
license
16
license
@ -2,8 +2,18 @@ MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (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.
|
||||
|
20
package.json
20
package.json
@ -1,20 +1,19 @@
|
||||
{
|
||||
"name": "github-markdown-css",
|
||||
"version": "2.10.0",
|
||||
"description": "The minimal amount of CSS to replicate the GitHub Markdown style",
|
||||
"version": "1.0.0",
|
||||
"description": "Make your notes addon look like github markdown",
|
||||
"license": "MIT",
|
||||
"repository": "sindresorhus/github-markdown-css",
|
||||
"repository": "hipstersmoothie/github-markdown-css",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
"name": "Andrew Lisowski",
|
||||
"email": "lisowski54@gmail.com"
|
||||
},
|
||||
"main": "github-markdown.css",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"make": "github-markdown-css > github-markdown.css"
|
||||
"make": "github-markdown-css > github-markdown.css && replace-in-file --configFile=replace-config.js github-markdown.css"
|
||||
},
|
||||
"files": [
|
||||
"github-markdown.css"
|
||||
@ -26,9 +25,14 @@
|
||||
"md",
|
||||
"css",
|
||||
"style",
|
||||
"stylesheet"
|
||||
"stylesheet",
|
||||
"storybook",
|
||||
"notes"
|
||||
],
|
||||
"devDependencies": {
|
||||
"generate-github-markdown-css": "^2.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"replace-in-file": "^3.4.2"
|
||||
}
|
||||
}
|
||||
|
51
readme.md
51
readme.md
@ -1,12 +1,13 @@
|
||||
# github-markdown-css
|
||||
# storybook-addon-notes-github-markdown-css
|
||||
|
||||
> The minimal amount of CSS to replicate the GitHub Markdown style
|
||||
|
||||
Make your notes addon look like github markdown. Shameless fork of [this](https://github.com/sindresorhus/github-markdown-css).
|
||||
|
||||
[<img src="https://cloud.githubusercontent.com/assets/170270/5219062/f22a978c-7685-11e4-8316-af25b6c89bc0.png" width="300">](http://sindresorhus.com/github-markdown-css)
|
||||
|
||||
## [Demo](http://sindresorhus.com/github-markdown-css)
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
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:
|
||||
@ -15,46 +16,40 @@ 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.
|
||||
To use within you storybook you need to load the style sheet into the manager's head. The best way I have found to do this is to interact with storybook's html-webpack-plugin. To facilitate this I released [html-webpack-inject-plugin](https://github.com/hipstersmoothie/html-webpack-inject-plugin), it lets you easily inject text into the head or body of the html document.
|
||||
|
||||
```html
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="stylesheet" href="github-markdown.css">
|
||||
<style>
|
||||
.markdown-body {
|
||||
box-sizing: border-box;
|
||||
min-width: 200px;
|
||||
max-width: 980px;
|
||||
margin: 0 auto;
|
||||
padding: 45px;
|
||||
}
|
||||
`webpack.config.js`:
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.markdown-body {
|
||||
padding: 15px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<article class="markdown-body">
|
||||
<h1>Unicorns</h1>
|
||||
<p>All the things</p>
|
||||
</article>
|
||||
```js
|
||||
const HtmlWebpackInsertTextPlugin = require("html-webpack-insert-text-plugin")
|
||||
.default;
|
||||
|
||||
module.exports = (baseConfig, env, config) => {
|
||||
config.plugins.push(
|
||||
new HtmlWebpackInsertTextPlugin([
|
||||
{
|
||||
target: "index.html",
|
||||
parent: "head",
|
||||
text:
|
||||
'<link rel="stylesheet" type="text/css" href="https://raw.githubusercontent.com/hipstersmoothie/github-markdown-css/gh-pages/github-markdown.css" />'
|
||||
}
|
||||
])
|
||||
);
|
||||
|
||||
return config;
|
||||
};
|
||||
```
|
||||
|
||||
|
||||
## 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)
|
||||
|
4
replace-config.js
Normal file
4
replace-config.js
Normal file
@ -0,0 +1,4 @@
|
||||
module.exports = {
|
||||
from: /markdown-body/g,
|
||||
to: "addon-notes-container"
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user