Skip to content

Commit

Permalink
Regenerate GitHub CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 10, 2023
1 parent 5ec832f commit b8b9732
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 45 deletions.
40 changes: 24 additions & 16 deletions github-markdown-dark.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/*dark*/

.markdown-body {
color-scheme: dark;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
margin: 0;
color: #c9d1d9;
color: #e6edf3;
background-color: #0d1117;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
font-size: 16px;
Expand Down Expand Up @@ -48,12 +50,13 @@

.markdown-body a {
background-color: transparent;
color: #58a6ff;
color: #2f81f7;
text-decoration: none;
}

.markdown-body abbr[title] {
border-bottom: none;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}

Expand All @@ -76,7 +79,7 @@

.markdown-body mark {
background-color: rgba(187,128,9,0.15);
color: #c9d1d9;
color: #e6edf3;
}

.markdown-body small {
Expand Down Expand Up @@ -217,7 +220,7 @@
.markdown-body [role=button]:focus,
.markdown-body input[type=radio]:focus,
.markdown-body input[type=checkbox]:focus {
outline: 2px solid #58a6ff;
outline: 2px solid #2f81f7;
outline-offset: -2px;
box-shadow: none;
}
Expand All @@ -233,7 +236,7 @@
.markdown-body [role=button]:focus-visible,
.markdown-body input[type=radio]:focus-visible,
.markdown-body input[type=checkbox]:focus-visible {
outline: 2px solid #58a6ff;
outline: 2px solid #2f81f7;
outline-offset: -2px;
box-shadow: none;
}
Expand All @@ -252,7 +255,7 @@
padding: 3px 5px;
font: 11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
line-height: 10px;
color: #c9d1d9;
color: #e6edf3;
vertical-align: middle;
background-color: #161b22;
border: solid 1px rgba(110,118,129,0.4);
Expand Down Expand Up @@ -298,7 +301,7 @@
.markdown-body h6 {
font-weight: 600;
font-size: .85em;
color: #8b949e;
color: #7d8590;
}

.markdown-body p {
Expand All @@ -309,7 +312,7 @@
.markdown-body blockquote {
margin: 0;
padding: 0 1em;
color: #8b949e;
color: #7d8590;
border-left: .25em solid #30363d;
}

Expand Down Expand Up @@ -430,7 +433,7 @@
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
color: #c9d1d9;
color: #e6edf3;
vertical-align: middle;
visibility: hidden;
}
Expand Down Expand Up @@ -499,19 +502,19 @@
list-style-type: none;
}

.markdown-body ol[type=a] {
.markdown-body ol[type="a s"] {
list-style-type: lower-alpha;
}

.markdown-body ol[type=A] {
.markdown-body ol[type="A s"] {
list-style-type: upper-alpha;
}

.markdown-body ol[type=i] {
.markdown-body ol[type="i s"] {
list-style-type: lower-roman;
}

.markdown-body ol[type=I] {
.markdown-body ol[type="I s"] {
list-style-type: upper-roman;
}

Expand Down Expand Up @@ -566,6 +569,10 @@
border: 1px solid #30363d;
}

.markdown-body table td>:last-child {
margin-bottom: 0;
}

.markdown-body table tr {
background-color: #0d1117;
border-top: 1px solid #21262d;
Expand Down Expand Up @@ -617,7 +624,7 @@
display: block;
padding: 5px 0 0;
clear: both;
color: #c9d1d9;
color: #e6edf3;
}

.markdown-body span.align-center {
Expand Down Expand Up @@ -732,6 +739,7 @@
overflow: auto;
font-size: 85%;
line-height: 1.45;
color: #e6edf3;
background-color: #161b22;
border-radius: 6px;
}
Expand Down Expand Up @@ -786,7 +794,7 @@

.markdown-body .footnotes {
font-size: 12px;
color: #8b949e;
color: #7d8590;
border-top: 1px solid #30363d;
}

Expand Down Expand Up @@ -817,7 +825,7 @@
}

.markdown-body .footnotes li:target {
color: #c9d1d9;
color: #e6edf3;
}

.markdown-body .footnotes .data-footnote-backref g-emoji {
Expand Down
38 changes: 23 additions & 15 deletions github-markdown-light.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
/*light*/

.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
margin: 0;
color: #24292f;
color: #1F2328;
background-color: #ffffff;
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
font-size: 16px;
Expand Down Expand Up @@ -53,6 +55,7 @@

.markdown-body abbr[title] {
border-bottom: none;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}

Expand All @@ -75,7 +78,7 @@

.markdown-body mark {
background-color: #fff8c5;
color: #24292f;
color: #1F2328;
}

.markdown-body small {
Expand Down Expand Up @@ -251,7 +254,7 @@
padding: 3px 5px;
font: 11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
line-height: 10px;
color: #24292f;
color: #1F2328;
vertical-align: middle;
background-color: #f6f8fa;
border: solid 1px rgba(175,184,193,0.2);
Expand Down Expand Up @@ -297,7 +300,7 @@
.markdown-body h6 {
font-weight: 600;
font-size: .85em;
color: #57606a;
color: #656d76;
}

.markdown-body p {
Expand All @@ -308,7 +311,7 @@
.markdown-body blockquote {
margin: 0;
padding: 0 1em;
color: #57606a;
color: #656d76;
border-left: .25em solid #d0d7de;
}

Expand Down Expand Up @@ -389,7 +392,7 @@
}

.markdown-body .absent {
color: #cf222e;
color: #d1242f;
}

.markdown-body .anchor {
Expand Down Expand Up @@ -429,7 +432,7 @@
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
color: #24292f;
color: #1F2328;
vertical-align: middle;
visibility: hidden;
}
Expand Down Expand Up @@ -498,19 +501,19 @@
list-style-type: none;
}

.markdown-body ol[type=a] {
.markdown-body ol[type="a s"] {
list-style-type: lower-alpha;
}

.markdown-body ol[type=A] {
.markdown-body ol[type="A s"] {
list-style-type: upper-alpha;
}

.markdown-body ol[type=i] {
.markdown-body ol[type="i s"] {
list-style-type: lower-roman;
}

.markdown-body ol[type=I] {
.markdown-body ol[type="I s"] {
list-style-type: upper-roman;
}

Expand Down Expand Up @@ -565,6 +568,10 @@
border: 1px solid #d0d7de;
}

.markdown-body table td>:last-child {
margin-bottom: 0;
}

.markdown-body table tr {
background-color: #ffffff;
border-top: 1px solid hsla(210,18%,87%,1);
Expand Down Expand Up @@ -616,7 +623,7 @@
display: block;
padding: 5px 0 0;
clear: both;
color: #24292f;
color: #1F2328;
}

.markdown-body span.align-center {
Expand Down Expand Up @@ -731,6 +738,7 @@
overflow: auto;
font-size: 85%;
line-height: 1.45;
color: #1F2328;
background-color: #f6f8fa;
border-radius: 6px;
}
Expand Down Expand Up @@ -785,7 +793,7 @@

.markdown-body .footnotes {
font-size: 12px;
color: #57606a;
color: #656d76;
border-top: 1px solid #d0d7de;
}

Expand Down Expand Up @@ -816,7 +824,7 @@
}

.markdown-body .footnotes li:target {
color: #24292f;
color: #1F2328;
}

.markdown-body .footnotes .data-footnote-backref g-emoji {
Expand All @@ -834,7 +842,7 @@

.markdown-body .pl-e,
.markdown-body .pl-en {
color: #8250df;
color: #6639ba;
}

.markdown-body .pl-smi,
Expand Down
Loading

0 comments on commit b8b9732

Please sign in to comment.