Skip to content

Commit

Permalink
Regenerate GitHub CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jun 14, 2024
1 parent b3977a0 commit 5e1d34a
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 155 deletions.
71 changes: 45 additions & 26 deletions github-markdown-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
font-size: 16px;
line-height: 1.5;
word-wrap: break-word;
scroll-behavior: auto;
}

.markdown-body .octicon {
Expand Down Expand Up @@ -50,7 +51,7 @@

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

Expand All @@ -74,11 +75,11 @@
font-weight: 600;
padding-bottom: .3em;
font-size: 2em;
border-bottom: 1px solid #21262d;
border-bottom: 1px solid #30363db3;
}

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

Expand Down Expand Up @@ -125,7 +126,7 @@
box-sizing: content-box;
overflow: hidden;
background: transparent;
border-bottom: 1px solid #21262d;
border-bottom: 1px solid #30363db3;
height: .25em;
padding: 0;
margin: 24px 0;
Expand Down Expand Up @@ -182,7 +183,7 @@
}

.markdown-body ::placeholder {
color: #6e7681;
color: #8d96a0;
opacity: 1;
}

Expand Down Expand Up @@ -216,14 +217,14 @@
}

.markdown-body details:not([open])>*:not(summary) {
display: none !important;
display: none;
}

.markdown-body a:focus,
.markdown-body [role=button]:focus,
.markdown-body input[type=radio]:focus,
.markdown-body input[type=checkbox]:focus {
outline: 2px solid #2f81f7;
outline: 2px solid #1f6feb;
outline-offset: -2px;
box-shadow: none;
}
Expand All @@ -239,7 +240,7 @@
.markdown-body [role=button]:focus-visible,
.markdown-body input[type=radio]:focus-visible,
.markdown-body input[type=checkbox]:focus-visible {
outline: 2px solid #2f81f7;
outline: 2px solid #1f6feb;
outline-offset: -2px;
box-shadow: none;
}
Expand All @@ -256,15 +257,15 @@
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
line-height: 10px;
color: #e6edf3;
vertical-align: middle;
background-color: #161b22;
border: solid 1px rgba(110,118,129,0.4);
border-bottom-color: rgba(110,118,129,0.4);
border: solid 1px #6e768166;
border-bottom-color: #6e768166;
border-radius: 6px;
box-shadow: inset 0 -1px 0 rgba(110,118,129,0.4);
box-shadow: inset 0 -1px 0 #6e768166;
}

.markdown-body h1,
Expand All @@ -283,7 +284,7 @@
font-weight: 600;
padding-bottom: .3em;
font-size: 1.5em;
border-bottom: 1px solid #21262d;
border-bottom: 1px solid #30363db3;
}

.markdown-body h3 {
Expand All @@ -304,7 +305,7 @@
.markdown-body h6 {
font-weight: 600;
font-size: .85em;
color: #848d97;
color: #8d96a0;
}

.markdown-body p {
Expand All @@ -315,7 +316,7 @@
.markdown-body blockquote {
margin: 0;
padding: 0 1em;
color: #848d97;
color: #8d96a0;
border-left: .25em solid #30363d;
}

Expand Down Expand Up @@ -345,14 +346,14 @@
.markdown-body tt,
.markdown-body code,
.markdown-body samp {
font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
font-size: 12px;
}

.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
font-size: 12px;
word-wrap: normal;
}
Expand All @@ -372,7 +373,7 @@
}

.markdown-body .mr-2 {
margin-right: 8px !important;
margin-right: 0.5rem !important;
}

.markdown-body::before {
Expand Down Expand Up @@ -582,7 +583,7 @@

.markdown-body table tr {
background-color: #0d1117;
border-top: 1px solid #21262d;
border-top: 1px solid #30363db3;
}

.markdown-body table tr:nth-child(2n) {
Expand Down Expand Up @@ -701,7 +702,7 @@
margin: 0;
font-size: 85%;
white-space: break-spaces;
background-color: rgba(110,118,129,0.4);
background-color: #6e768166;
border-radius: 6px;
}

Expand Down Expand Up @@ -801,7 +802,7 @@

.markdown-body .footnotes {
font-size: 12px;
color: #848d97;
color: #8d96a0;
border-top: 1px solid #30363d;
}

Expand Down Expand Up @@ -959,6 +960,20 @@
color: #a5d6ff;
}

.markdown-body [role=button]:focus:not(:focus-visible),
.markdown-body [role=tabpanel][tabindex="0"]:focus:not(:focus-visible),
.markdown-body button:focus:not(:focus-visible),
.markdown-body summary:focus:not(:focus-visible),
.markdown-body a:focus:not(:focus-visible) {
outline: none;
box-shadow: none;
}

.markdown-body [tabindex="0"]:focus:not(:focus-visible),
.markdown-body details-dialog:focus:not(:focus-visible) {
outline: none;
}

.markdown-body g-emoji {
display: inline-block;
min-width: 1ch;
Expand Down Expand Up @@ -988,7 +1003,7 @@
}

.markdown-body .task-list-item+.task-list-item {
margin-top: 4px;
margin-top: 0.25rem;
}

.markdown-body .task-list-item .handle {
Expand Down Expand Up @@ -1022,8 +1037,8 @@
}

.markdown-body .markdown-alert {
padding: 8px 16px;
margin-bottom: 16px;
padding: 0.5rem 1rem;
margin-bottom: 1rem;
color: inherit;
border-left: .25em solid #30363d;
}
Expand All @@ -1048,15 +1063,15 @@
}

.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title {
color: #2f81f7;
color: #4493f8;
}

.markdown-body .markdown-alert.markdown-alert-important {
border-left-color: #8957e5;
}

.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title {
color: #a371f7;
color: #ab7df8;
}

.markdown-body .markdown-alert.markdown-alert-warning {
Expand All @@ -1082,3 +1097,7 @@
.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title {
color: #f85149;
}

.markdown-body>*:first-child>.heading-element:first-child {
margin-top: 0 !important;
}
Loading

0 comments on commit 5e1d34a

Please sign in to comment.