Regenerate GitHub CSS

This commit is contained in:
Sindre Sorhus 2023-12-11 15:11:26 +01:00
parent b336b4215c
commit f03290ff30
5 changed files with 147 additions and 166 deletions

4
.github/funding.yml vendored
View File

@ -1,4 +0,0 @@
github: sindresorhus
open_collective: sindresorhus
tidelift: npm/github-markdown-css
custom: https://sindresorhus.com/donate

View File

@ -146,6 +146,7 @@
.markdown-body [type=reset], .markdown-body [type=reset],
.markdown-body [type=submit] { .markdown-body [type=submit] {
-webkit-appearance: button; -webkit-appearance: button;
appearance: button;
} }
.markdown-body [type=checkbox], .markdown-body [type=checkbox],
@ -162,6 +163,7 @@
.markdown-body [type=search]::-webkit-search-cancel-button, .markdown-body [type=search]::-webkit-search-cancel-button,
.markdown-body [type=search]::-webkit-search-decoration { .markdown-body [type=search]::-webkit-search-decoration {
-webkit-appearance: none; -webkit-appearance: none;
appearance: none;
} }
.markdown-body ::-webkit-input-placeholder { .markdown-body ::-webkit-input-placeholder {
@ -171,6 +173,7 @@
.markdown-body ::-webkit-file-upload-button { .markdown-body ::-webkit-file-upload-button {
-webkit-appearance: button; -webkit-appearance: button;
appearance: button;
font: inherit; font: inherit;
} }
@ -301,7 +304,7 @@
.markdown-body h6 { .markdown-body h6 {
font-weight: 600; font-weight: 600;
font-size: .85em; font-size: .85em;
color: #7d8590; color: #848d97;
} }
.markdown-body p { .markdown-body p {
@ -312,7 +315,7 @@
.markdown-body blockquote { .markdown-body blockquote {
margin: 0; margin: 0;
padding: 0 1em; padding: 0 1em;
color: #7d8590; color: #848d97;
border-left: .25em solid #30363d; border-left: .25em solid #30363d;
} }
@ -368,32 +371,8 @@
appearance: none; appearance: none;
} }
.markdown-body .color-fg-accent { .markdown-body .mr-2 {
color: #2f81f7 !important; margin-right: 8px !important;
}
.markdown-body .color-fg-attention {
color: #d29922 !important;
}
.markdown-body .color-fg-done {
color: #a371f7 !important;
}
.markdown-body .flex-items-center {
align-items: center !important;
}
.markdown-body .mb-1 {
margin-bottom: var(--base-size-4, 4px) !important;
}
.markdown-body .text-semibold {
font-weight: var(--base-text-weight-medium, 500) !important;
}
.markdown-body .d-inline-flex {
display: inline-flex !important;
} }
.markdown-body::before { .markdown-body::before {
@ -822,7 +801,7 @@
.markdown-body .footnotes { .markdown-body .footnotes {
font-size: 12px; font-size: 12px;
color: #7d8590; color: #848d97;
border-top: 1px solid #30363d; border-top: 1px solid #30363d;
} }
@ -1038,20 +1017,12 @@
clip: auto; clip: auto;
} }
.markdown-body .QueryBuilder .qb-entity {
color: #d2a8ff;
}
.markdown-body .QueryBuilder .qb-constant {
color: #79c0ff;
}
.markdown-body ::-webkit-calendar-picker-indicator { .markdown-body ::-webkit-calendar-picker-indicator {
filter: invert(50%); filter: invert(50%);
} }
.markdown-body .markdown-alert { .markdown-body .markdown-alert {
padding: 0 1em; padding: 8px 16px;
margin-bottom: 16px; margin-bottom: 16px;
color: inherit; color: inherit;
border-left: .25em solid #30363d; border-left: .25em solid #30363d;
@ -1065,14 +1036,49 @@
margin-bottom: 0; margin-bottom: 0;
} }
.markdown-body .markdown-alert .markdown-alert-title {
display: flex;
font-weight: 500;
align-items: center;
line-height: 1;
}
.markdown-body .markdown-alert.markdown-alert-note { .markdown-body .markdown-alert.markdown-alert-note {
border-left-color: #2f81f7; border-left-color: #1f6feb;
}
.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title {
color: #2f81f7;
} }
.markdown-body .markdown-alert.markdown-alert-important { .markdown-body .markdown-alert.markdown-alert-important {
border-left-color: #a371f7; border-left-color: #8957e5;
}
.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title {
color: #a371f7;
} }
.markdown-body .markdown-alert.markdown-alert-warning { .markdown-body .markdown-alert.markdown-alert-warning {
border-left-color: #d29922; border-left-color: #9e6a03;
}
.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title {
color: #d29922;
}
.markdown-body .markdown-alert.markdown-alert-tip {
border-left-color: #238636;
}
.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title {
color: #3fb950;
}
.markdown-body .markdown-alert.markdown-alert-caution {
border-left-color: #da3633;
}
.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title {
color: #f85149;
} }

View File

@ -145,6 +145,7 @@
.markdown-body [type=reset], .markdown-body [type=reset],
.markdown-body [type=submit] { .markdown-body [type=submit] {
-webkit-appearance: button; -webkit-appearance: button;
appearance: button;
} }
.markdown-body [type=checkbox], .markdown-body [type=checkbox],
@ -161,6 +162,7 @@
.markdown-body [type=search]::-webkit-search-cancel-button, .markdown-body [type=search]::-webkit-search-cancel-button,
.markdown-body [type=search]::-webkit-search-decoration { .markdown-body [type=search]::-webkit-search-decoration {
-webkit-appearance: none; -webkit-appearance: none;
appearance: none;
} }
.markdown-body ::-webkit-input-placeholder { .markdown-body ::-webkit-input-placeholder {
@ -170,6 +172,7 @@
.markdown-body ::-webkit-file-upload-button { .markdown-body ::-webkit-file-upload-button {
-webkit-appearance: button; -webkit-appearance: button;
appearance: button;
font: inherit; font: inherit;
} }
@ -367,32 +370,8 @@
appearance: none; appearance: none;
} }
.markdown-body .color-fg-accent { .markdown-body .mr-2 {
color: #0969da !important; margin-right: 8px !important;
}
.markdown-body .color-fg-attention {
color: #9a6700 !important;
}
.markdown-body .color-fg-done {
color: #8250df !important;
}
.markdown-body .flex-items-center {
align-items: center !important;
}
.markdown-body .mb-1 {
margin-bottom: var(--base-size-4, 4px) !important;
}
.markdown-body .text-semibold {
font-weight: var(--base-text-weight-medium, 500) !important;
}
.markdown-body .d-inline-flex {
display: inline-flex !important;
} }
.markdown-body::before { .markdown-body::before {
@ -860,7 +839,7 @@
} }
.markdown-body .pl-c { .markdown-body .pl-c {
color: #6e7781; color: #57606a;
} }
.markdown-body .pl-c1, .markdown-body .pl-c1,
@ -1037,20 +1016,12 @@
clip: auto; clip: auto;
} }
.markdown-body .QueryBuilder .qb-entity {
color: #6639ba;
}
.markdown-body .QueryBuilder .qb-constant {
color: #0550ae;
}
.markdown-body ::-webkit-calendar-picker-indicator { .markdown-body ::-webkit-calendar-picker-indicator {
filter: invert(50%); filter: invert(50%);
} }
.markdown-body .markdown-alert { .markdown-body .markdown-alert {
padding: 0 1em; padding: 8px 16px;
margin-bottom: 16px; margin-bottom: 16px;
color: inherit; color: inherit;
border-left: .25em solid #d0d7de; border-left: .25em solid #d0d7de;
@ -1064,14 +1035,49 @@
margin-bottom: 0; margin-bottom: 0;
} }
.markdown-body .markdown-alert .markdown-alert-title {
display: flex;
font-weight: 500;
align-items: center;
line-height: 1;
}
.markdown-body .markdown-alert.markdown-alert-note { .markdown-body .markdown-alert.markdown-alert-note {
border-left-color: #0969da; border-left-color: #0969da;
} }
.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title {
color: #0969da;
}
.markdown-body .markdown-alert.markdown-alert-important { .markdown-body .markdown-alert.markdown-alert-important {
border-left-color: #8250df; border-left-color: #8250df;
} }
.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title {
color: #8250df;
}
.markdown-body .markdown-alert.markdown-alert-warning { .markdown-body .markdown-alert.markdown-alert-warning {
border-left-color: #9a6700; border-left-color: #9a6700;
} }
.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title {
color: #9a6700;
}
.markdown-body .markdown-alert.markdown-alert-tip {
border-left-color: #1f883d;
}
.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title {
color: #1a7f37;
}
.markdown-body .markdown-alert.markdown-alert-caution {
border-left-color: #cf222e;
}
.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title {
color: #d1242f;
}

View File

@ -34,7 +34,7 @@
--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58; --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;
--color-prettylights-syntax-constant-other-reference-link: #a5d6ff; --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
--color-fg-default: #e6edf3; --color-fg-default: #e6edf3;
--color-fg-muted: #7d8590; --color-fg-muted: #848d97;
--color-fg-subtle: #6e7681; --color-fg-subtle: #6e7681;
--color-canvas-default: #0d1117; --color-canvas-default: #0d1117;
--color-canvas-subtle: #161b22; --color-canvas-subtle: #161b22;
@ -43,10 +43,15 @@
--color-neutral-muted: rgba(110,118,129,0.4); --color-neutral-muted: rgba(110,118,129,0.4);
--color-accent-fg: #2f81f7; --color-accent-fg: #2f81f7;
--color-accent-emphasis: #1f6feb; --color-accent-emphasis: #1f6feb;
--color-success-fg: #3fb950;
--color-success-emphasis: #238636;
--color-attention-fg: #d29922; --color-attention-fg: #d29922;
--color-attention-emphasis: #9e6a03;
--color-attention-subtle: rgba(187,128,9,0.15); --color-attention-subtle: rgba(187,128,9,0.15);
--color-danger-fg: #f85149; --color-danger-fg: #f85149;
--color-danger-emphasis: #da3633;
--color-done-fg: #a371f7; --color-done-fg: #a371f7;
--color-done-emphasis: #8957e5;
} }
} }
@ -55,51 +60,7 @@
[data-theme="light"] { [data-theme="light"] {
/*light*/ /*light*/
color-scheme: light; color-scheme: light;
--color-prettylights-syntax-comment: #6e7781; --color-prettylights-syntax-comment: #57606a;
--color-prettylights-syntax-constant: #0550ae;
--color-prettylights-syntax-entity: #6639ba;
--color-prettylights-syntax-storage-modifier-import: #24292f;
--color-prettylights-syntax-entity-tag: #116329;
--color-prettylights-syntax-keyword: #cf222e;
--color-prettylights-syntax-string: #0a3069;
--color-prettylights-syntax-variable: #953800;
--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;
--color-prettylights-syntax-invalid-illegal-bg: #82071e;
--color-prettylights-syntax-carriage-return-text: #f6f8fa;
--color-prettylights-syntax-carriage-return-bg: #cf222e;
--color-prettylights-syntax-string-regexp: #116329;
--color-prettylights-syntax-markup-list: #3b2300;
--color-prettylights-syntax-markup-heading: #0550ae;
--color-prettylights-syntax-markup-italic: #24292f;
--color-prettylights-syntax-markup-bold: #24292f;
--color-prettylights-syntax-markup-deleted-text: #82071e;
--color-prettylights-syntax-markup-deleted-bg: #ffebe9;
--color-prettylights-syntax-markup-inserted-text: #116329;
--color-prettylights-syntax-markup-inserted-bg: #dafbe1;
--color-prettylights-syntax-markup-changed-text: #953800;
--color-prettylights-syntax-markup-changed-bg: #ffd8b5;
--color-prettylights-syntax-markup-ignored-text: #eaeef2;
--color-prettylights-syntax-markup-ignored-bg: #0550ae;
--color-prettylights-syntax-meta-diff-range: #8250df;
--color-prettylights-syntax-brackethighlighter-angle: #57606a;
--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;
--color-prettylights-syntax-constant-other-reference-link: #0a3069;
--color-fg-default: #1F2328;
--color-fg-muted: #656d76;
--color-fg-subtle: #6e7781;
--color-canvas-default: #ffffff;
--color-canvas-subtle: #f6f8fa;
--color-border-default: #d0d7de;
--color-border-muted: hsla(210,18%,87%,1);
--color-neutral-muted: rgba(175,184,193,0.2);
--color-accent-fg: #0969da;
--color-accent-emphasis: #0969da;
--color-attention-fg: #9a6700;
--color-attention-subtle: #fff8c5;
--color-danger-fg: #d1242f;
--color-done-fg: #8250df;
--color-prettylights-syntax-comment: #6e7781;
--color-prettylights-syntax-constant: #0550ae; --color-prettylights-syntax-constant: #0550ae;
--color-prettylights-syntax-entity: #6639ba; --color-prettylights-syntax-entity: #6639ba;
--color-prettylights-syntax-storage-modifier-import: #24292f; --color-prettylights-syntax-storage-modifier-import: #24292f;
@ -139,10 +100,15 @@
--color-neutral-muted: rgba(175,184,193,0.2); --color-neutral-muted: rgba(175,184,193,0.2);
--color-accent-fg: #0969da; --color-accent-fg: #0969da;
--color-accent-emphasis: #0969da; --color-accent-emphasis: #0969da;
--color-success-fg: #1a7f37;
--color-success-emphasis: #1f883d;
--color-attention-fg: #9a6700; --color-attention-fg: #9a6700;
--color-attention-emphasis: #9a6700;
--color-attention-subtle: #fff8c5; --color-attention-subtle: #fff8c5;
--color-danger-fg: #d1242f; --color-danger-fg: #d1242f;
--color-danger-emphasis: #cf222e;
--color-done-fg: #8250df; --color-done-fg: #8250df;
--color-done-emphasis: #8250df;
} }
} }
@ -291,6 +257,7 @@
.markdown-body [type=reset], .markdown-body [type=reset],
.markdown-body [type=submit] { .markdown-body [type=submit] {
-webkit-appearance: button; -webkit-appearance: button;
appearance: button;
} }
.markdown-body [type=checkbox], .markdown-body [type=checkbox],
@ -307,6 +274,7 @@
.markdown-body [type=search]::-webkit-search-cancel-button, .markdown-body [type=search]::-webkit-search-cancel-button,
.markdown-body [type=search]::-webkit-search-decoration { .markdown-body [type=search]::-webkit-search-decoration {
-webkit-appearance: none; -webkit-appearance: none;
appearance: none;
} }
.markdown-body ::-webkit-input-placeholder { .markdown-body ::-webkit-input-placeholder {
@ -316,6 +284,7 @@
.markdown-body ::-webkit-file-upload-button { .markdown-body ::-webkit-file-upload-button {
-webkit-appearance: button; -webkit-appearance: button;
appearance: button;
font: inherit; font: inherit;
} }
@ -513,32 +482,8 @@
appearance: none; appearance: none;
} }
.markdown-body .color-fg-accent { .markdown-body .mr-2 {
color: var(--color-accent-fg) !important; margin-right: var(--base-size-8, 8px) !important;
}
.markdown-body .color-fg-attention {
color: var(--color-attention-fg) !important;
}
.markdown-body .color-fg-done {
color: var(--color-done-fg) !important;
}
.markdown-body .flex-items-center {
align-items: center !important;
}
.markdown-body .mb-1 {
margin-bottom: var(--base-size-4, 4px) !important;
}
.markdown-body .text-semibold {
font-weight: var(--base-text-weight-medium, 500) !important;
}
.markdown-body .d-inline-flex {
display: inline-flex !important;
} }
.markdown-body::before { .markdown-body::before {
@ -1183,20 +1128,12 @@
clip: auto; clip: auto;
} }
.markdown-body .QueryBuilder .qb-entity {
color: var(--color-prettylights-syntax-entity);
}
.markdown-body .QueryBuilder .qb-constant {
color: var(--color-prettylights-syntax-constant);
}
.markdown-body ::-webkit-calendar-picker-indicator { .markdown-body ::-webkit-calendar-picker-indicator {
filter: invert(50%); filter: invert(50%);
} }
.markdown-body .markdown-alert { .markdown-body .markdown-alert {
padding: 0 1em; padding: var(--base-size-8) var(--base-size-16);
margin-bottom: 16px; margin-bottom: 16px;
color: inherit; color: inherit;
border-left: .25em solid var(--color-border-default); border-left: .25em solid var(--color-border-default);
@ -1210,14 +1147,49 @@
margin-bottom: 0; margin-bottom: 0;
} }
.markdown-body .markdown-alert .markdown-alert-title {
display: flex;
font-weight: var(--base-text-weight-medium, 500);
align-items: center;
line-height: 1;
}
.markdown-body .markdown-alert.markdown-alert-note { .markdown-body .markdown-alert.markdown-alert-note {
border-left-color: var(--color-accent-fg); border-left-color: var(--color-accent-emphasis);
}
.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title {
color: var(--color-accent-fg);
} }
.markdown-body .markdown-alert.markdown-alert-important { .markdown-body .markdown-alert.markdown-alert-important {
border-left-color: var(--color-done-fg); border-left-color: var(--color-done-emphasis);
}
.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title {
color: var(--color-done-fg);
} }
.markdown-body .markdown-alert.markdown-alert-warning { .markdown-body .markdown-alert.markdown-alert-warning {
border-left-color: var(--color-attention-fg); border-left-color: var(--color-attention-emphasis);
}
.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title {
color: var(--color-attention-fg);
}
.markdown-body .markdown-alert.markdown-alert-tip {
border-left-color: var(--color-success-emphasis);
}
.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title {
color: var(--color-success-fg);
}
.markdown-body .markdown-alert.markdown-alert-caution {
border-left-color: var(--color-danger-emphasis);
}
.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title {
color: var(--color-danger-fg);
} }

View File

@ -11,6 +11,7 @@
"url": "https://sindresorhus.com" "url": "https://sindresorhus.com"
}, },
"main": "github-markdown.css", "main": "github-markdown.css",
"sideEffects": false,
"engines": { "engines": {
"node": ">=10" "node": ">=10"
}, },
@ -35,6 +36,6 @@
"stylesheet" "stylesheet"
], ],
"devDependencies": { "devDependencies": {
"generate-github-markdown-css": "^6.1.0" "generate-github-markdown-css": "^6.2.0"
} }
} }