Skip to content

Commit 0b0d6ed

Browse files
committed
Regenerate GitHub CSS
1 parent 74e1bcc commit 0b0d6ed

File tree

4 files changed

+118
-19
lines changed

4 files changed

+118
-19
lines changed

github-markdown-dark.css

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
color-scheme: dark;
44
-ms-text-size-adjust: 100%;
55
-webkit-text-size-adjust: 100%;
6-
margin: 0;
76
color: #f0f6fc;
87
background-color: #0d1117;
98
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
109
font-size: 16px;
11-
line-height: 1.5;
1210
word-wrap: break-word;
13-
scroll-behavior: auto !important;
11+
margin: 0;
12+
min-height: 100vh;
13+
line-height: 1.5;
14+
scroll-behavior: smooth;
1415
}
1516

1617
.markdown-body .octicon {
@@ -133,12 +134,12 @@
133134
}
134135

135136
.markdown-body input {
136-
font: inherit;
137137
margin: 0;
138138
overflow: visible;
139139
font-family: inherit;
140140
font-size: inherit;
141141
line-height: inherit;
142+
font: inherit;
142143
}
143144

144145
.markdown-body [type=button],
@@ -203,6 +204,7 @@
203204
width: max-content;
204205
max-width: 100%;
205206
overflow: auto;
207+
font-variant: tabular-nums;
206208
}
207209

208210
.markdown-body td,
@@ -362,7 +364,6 @@
362364
.markdown-body input::-webkit-outer-spin-button,
363365
.markdown-body input::-webkit-inner-spin-button {
364366
margin: 0;
365-
-webkit-appearance: none;
366367
appearance: none;
367368
}
368369

@@ -834,6 +835,10 @@
834835
font-family: monospace;
835836
}
836837

838+
.markdown-body body:has(:modal) {
839+
padding-right: var(--dialog-scrollgutter) !important;
840+
}
841+
837842
.markdown-body .pl-c {
838843
color: #9198a1;
839844
}
@@ -1096,3 +1101,31 @@
10961101
margin-top: 0 !important;
10971102
}
10981103

1104+
.markdown-body ul[role='list'],
1105+
.markdown-body ol[role='list'] {
1106+
list-style: none;
1107+
}
1108+
1109+
.markdown-body html[focus-within] {
1110+
scroll-behavior: smooth;
1111+
}
1112+
1113+
.markdown-body html:focus-within {
1114+
scroll-behavior: smooth;
1115+
}
1116+
1117+
.markdown-body a:not([class]) {
1118+
-webkit-text-decoration-skip: ink;
1119+
text-decoration-skip-ink: auto;
1120+
}
1121+
1122+
.markdown-body img,
1123+
.markdown-body picture {
1124+
max-width: 100%;
1125+
display: block;
1126+
}
1127+
1128+
.markdown-body [class^=Primer_Brand__Link-module__Link___]::after {
1129+
width: calc(100% - 20px);
1130+
}
1131+

github-markdown-light.css

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
color-scheme: light;
44
-ms-text-size-adjust: 100%;
55
-webkit-text-size-adjust: 100%;
6-
margin: 0;
76
color: #1f2328;
87
background-color: #ffffff;
98
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
109
font-size: 16px;
11-
line-height: 1.5;
1210
word-wrap: break-word;
13-
scroll-behavior: auto !important;
11+
margin: 0;
12+
min-height: 100vh;
13+
line-height: 1.5;
14+
scroll-behavior: smooth;
1415
}
1516

1617
.markdown-body .octicon {
@@ -133,12 +134,12 @@
133134
}
134135

135136
.markdown-body input {
136-
font: inherit;
137137
margin: 0;
138138
overflow: visible;
139139
font-family: inherit;
140140
font-size: inherit;
141141
line-height: inherit;
142+
font: inherit;
142143
}
143144

144145
.markdown-body [type=button],
@@ -203,6 +204,7 @@
203204
width: max-content;
204205
max-width: 100%;
205206
overflow: auto;
207+
font-variant: tabular-nums;
206208
}
207209

208210
.markdown-body td,
@@ -362,7 +364,6 @@
362364
.markdown-body input::-webkit-outer-spin-button,
363365
.markdown-body input::-webkit-inner-spin-button {
364366
margin: 0;
365-
-webkit-appearance: none;
366367
appearance: none;
367368
}
368369

@@ -834,6 +835,10 @@
834835
font-family: monospace;
835836
}
836837

838+
.markdown-body body:has(:modal) {
839+
padding-right: var(--dialog-scrollgutter) !important;
840+
}
841+
837842
.markdown-body .pl-c {
838843
color: #59636e;
839844
}
@@ -1096,3 +1101,31 @@
10961101
margin-top: 0 !important;
10971102
}
10981103

1104+
.markdown-body ul[role='list'],
1105+
.markdown-body ol[role='list'] {
1106+
list-style: none;
1107+
}
1108+
1109+
.markdown-body html[focus-within] {
1110+
scroll-behavior: smooth;
1111+
}
1112+
1113+
.markdown-body html:focus-within {
1114+
scroll-behavior: smooth;
1115+
}
1116+
1117+
.markdown-body a:not([class]) {
1118+
-webkit-text-decoration-skip: ink;
1119+
text-decoration-skip-ink: auto;
1120+
}
1121+
1122+
.markdown-body img,
1123+
.markdown-body picture {
1124+
max-width: 100%;
1125+
display: block;
1126+
}
1127+
1128+
.markdown-body [class^=Primer_Brand__Link-module__Link___]::after {
1129+
width: calc(100% - 20px);
1130+
}
1131+

github-markdown.css

Lines changed: 38 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,15 @@
126126
.markdown-body {
127127
-ms-text-size-adjust: 100%;
128128
-webkit-text-size-adjust: 100%;
129-
margin: 0;
130129
color: var(--fgColor-default);
131130
background-color: var(--bgColor-default);
132131
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
133132
font-size: 16px;
134-
line-height: 1.5;
135133
word-wrap: break-word;
136-
scroll-behavior: auto !important;
134+
margin: 0;
135+
min-height: 100vh;
136+
line-height: 1.5;
137+
scroll-behavior: smooth;
137138
}
138139

139140
.markdown-body .octicon {
@@ -256,12 +257,12 @@
256257
}
257258

258259
.markdown-body input {
259-
font: inherit;
260260
margin: 0;
261261
overflow: visible;
262262
font-family: inherit;
263263
font-size: inherit;
264264
line-height: inherit;
265+
font: inherit;
265266
}
266267

267268
.markdown-body [type=button],
@@ -326,6 +327,7 @@
326327
width: max-content;
327328
max-width: 100%;
328329
overflow: auto;
330+
font-variant: tabular-nums;
329331
}
330332

331333
.markdown-body td,
@@ -485,7 +487,6 @@
485487
.markdown-body input::-webkit-outer-spin-button,
486488
.markdown-body input::-webkit-inner-spin-button {
487489
margin: 0;
488-
-webkit-appearance: none;
489490
appearance: none;
490491
}
491492

@@ -957,6 +958,10 @@
957958
font-family: monospace;
958959
}
959960

961+
.markdown-body body:has(:modal) {
962+
padding-right: var(--dialog-scrollgutter) !important;
963+
}
964+
960965
.markdown-body .pl-c {
961966
color: var(--color-prettylights-syntax-comment);
962967
}
@@ -1219,3 +1224,31 @@
12191224
margin-top: 0 !important;
12201225
}
12211226

1227+
.markdown-body ul[role='list'],
1228+
.markdown-body ol[role='list'] {
1229+
list-style: none;
1230+
}
1231+
1232+
.markdown-body html[focus-within] {
1233+
scroll-behavior: smooth;
1234+
}
1235+
1236+
.markdown-body html:focus-within {
1237+
scroll-behavior: smooth;
1238+
}
1239+
1240+
.markdown-body a:not([class]) {
1241+
-webkit-text-decoration-skip: ink;
1242+
text-decoration-skip-ink: auto;
1243+
}
1244+
1245+
.markdown-body img,
1246+
.markdown-body picture {
1247+
max-width: 100%;
1248+
display: block;
1249+
}
1250+
1251+
.markdown-body [class^=Primer_Brand__Link-module__Link___]::after {
1252+
width: calc(100% - 20px);
1253+
}
1254+

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"node": ">=10"
1616
},
1717
"scripts": {
18-
"make:light": "github-markdown-css --type light > github-markdown-light.css",
19-
"make:dark": "github-markdown-css --type dark > github-markdown-dark.css",
20-
"make:auto": "github-markdown-css --type auto > github-markdown.css",
18+
"make:light": "github-markdown-css --no-use-fixture --type light > github-markdown-light.css",
19+
"make:dark": "github-markdown-css --no-use-fixture --type dark > github-markdown-dark.css",
20+
"make:auto": "github-markdown-css --no-use-fixture --type auto > github-markdown.css",
2121
"make": "npm run make:light && npm run make:dark && npm run make:auto"
2222
},
2323
"files": [
@@ -35,6 +35,6 @@
3535
"stylesheet"
3636
],
3737
"devDependencies": {
38-
"generate-github-markdown-css": "^6.4.0"
38+
"generate-github-markdown-css": "^6.5.0"
3939
}
4040
}

0 commit comments

Comments
 (0)