Skip to content

Commit 5f70cce

Browse files
committed
Add CSS files for all GitHub themes
Fixes #122
1 parent 3a4131b commit 5f70cce

9 files changed

+4700
-136
lines changed

github-markdown-dark-colorblind.css

Lines changed: 1124 additions & 0 deletions
Large diffs are not rendered by default.

github-markdown-dark-dimmed.css

Lines changed: 1124 additions & 0 deletions
Large diffs are not rendered by default.

github-markdown-dark-high-contrast.css

Lines changed: 1124 additions & 0 deletions
Large diffs are not rendered by default.

github-markdown-dark.css

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
1-
/* dark */
1+
/*dark */
22
.markdown-body {
33
color-scheme: dark;
4+
/** CSS default easing. Use for hover state changes and micro-interactions. */
5+
/** Accelerating motion. Use for elements exiting the viewport (moving off-screen). */
6+
/** Smooth acceleration and deceleration. Use for elements moving or morphing within the viewport. */
7+
/** Decelerating motion. Use for elements entering the viewport or appearing on screen. */
8+
/** Constant motion with no acceleration. Use for continuous animations like progress bars or loaders. */
49
-ms-text-size-adjust: 100%;
510
-webkit-text-size-adjust: 100%;
611
margin: 0;
12+
font-weight: 400;
713
color: #f0f6fc;
814
background-color: #0d1117;
9-
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
15+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
1016
font-size: 16px;
1117
line-height: 1.5;
1218
word-wrap: break-word;
1319
}
1420

21+
.markdown-body a {
22+
text-decoration: underline;
23+
text-underline-offset: .2rem;
24+
}
25+
1526
.markdown-body .octicon {
1627
display: inline-block;
1728
fill: currentColor;
@@ -48,7 +59,7 @@
4859
}
4960

5061
.markdown-body a {
51-
background-color: transparent;
62+
background-color: rgba(0,0,0,0);
5263
color: #4493f8;
5364
text-decoration: none;
5465
}
@@ -122,7 +133,7 @@
122133
.markdown-body hr {
123134
box-sizing: content-box;
124135
overflow: hidden;
125-
background: transparent;
136+
background: rgba(0,0,0,0);
126137
border-bottom: 1px solid #3d444db3;
127138
height: .25em;
128139
padding: 0;
@@ -218,7 +229,7 @@
218229
.markdown-body [role=button]:focus,
219230
.markdown-body input[type=radio]:focus,
220231
.markdown-body input[type=checkbox]:focus {
221-
outline: 2px solid #1f6feb;
232+
outline: 2px solid var(--borderColor-accent-emphasis);
222233
outline-offset: -2px;
223234
box-shadow: none;
224235
}
@@ -227,14 +238,14 @@
227238
.markdown-body [role=button]:focus:not(:focus-visible),
228239
.markdown-body input[type=radio]:focus:not(:focus-visible),
229240
.markdown-body input[type=checkbox]:focus:not(:focus-visible) {
230-
outline: solid 1px transparent;
241+
outline: solid 1px rgba(0,0,0,0);
231242
}
232243

233244
.markdown-body a:focus-visible,
234245
.markdown-body [role=button]:focus-visible,
235246
.markdown-body input[type=radio]:focus-visible,
236247
.markdown-body input[type=checkbox]:focus-visible {
237-
outline: 2px solid #1f6feb;
248+
outline: 2px solid var(--borderColor-accent-emphasis);
238249
outline-offset: -2px;
239250
box-shadow: none;
240251
}
@@ -256,10 +267,10 @@
256267
color: #f0f6fc;
257268
vertical-align: middle;
258269
background-color: #151b23;
259-
border: solid 1px #3d444db3;
260-
border-bottom-color: #3d444db3;
270+
border: solid 1px var(--borderColor-muted);
271+
border-bottom-color: var(--borderColor-muted);
261272
border-radius: 6px;
262-
box-shadow: inset 0 -1px 0 #3d444db3;
273+
box-shadow: inset 0 -1px 0 var(--borderColor-muted);
263274
}
264275

265276
.markdown-body h1,
@@ -584,7 +595,7 @@
584595
}
585596

586597
.markdown-body table img {
587-
background-color: transparent;
598+
background-color: rgba(0,0,0,0);
588599
}
589600

590601
.markdown-body img[align=right] {
@@ -598,7 +609,7 @@
598609
.markdown-body .emoji {
599610
max-width: none;
600611
vertical-align: text-top;
601-
background-color: transparent;
612+
background-color: rgba(0,0,0,0);
602613
}
603614

604615
.markdown-body span.frame {
@@ -721,7 +732,7 @@
721732
margin: 0;
722733
word-break: normal;
723734
white-space: pre;
724-
background: transparent;
735+
background: rgba(0,0,0,0);
725736
border: 0;
726737
}
727738

@@ -748,13 +759,12 @@
748759
.markdown-body pre code,
749760
.markdown-body pre tt {
750761
display: inline;
751-
max-width: auto;
752762
padding: 0;
753763
margin: 0;
754764
overflow: visible;
755765
line-height: inherit;
756766
word-wrap: normal;
757-
background-color: transparent;
767+
background-color: rgba(0,0,0,0);
758768
border: 0;
759769
}
760770

@@ -833,10 +843,6 @@
833843
font-family: monospace;
834844
}
835845

836-
.markdown-body body:has(:modal) {
837-
padding-right: var(--dialog-scrollgutter) !important;
838-
}
839-
840846
.markdown-body .pl-c {
841847
color: #9198a1;
842848
}
@@ -884,8 +890,8 @@
884890
}
885891

886892
.markdown-body .pl-ii {
887-
color: #f0f6fc;
888-
background-color: #8e1519;
893+
color: var(--fgColor-danger);
894+
background-color: var(--bgColor-danger-muted);
889895
}
890896

891897
.markdown-body .pl-c2 {
@@ -987,6 +993,19 @@
987993
height: 1em;
988994
}
989995

996+
.markdown-body a:has(>p,>div,>pre,>blockquote) {
997+
display: block;
998+
}
999+
1000+
.markdown-body a:has(>p,>div,>pre,>blockquote):not(:has(.snippet-clipboard-content,>pre)) {
1001+
width: fit-content;
1002+
}
1003+
1004+
.markdown-body a:has(>p,>div,>pre,>blockquote):has(.snippet-clipboard-content,>pre):focus-visible {
1005+
outline: 2px solid var(--borderColor-accent-emphasis);
1006+
outline-offset: 2px;
1007+
}
1008+
9901009
.markdown-body .task-list-item {
9911010
list-style-type: none;
9921011
}
@@ -1026,7 +1045,7 @@
10261045
width: auto;
10271046
height: 24px;
10281047
overflow: visible;
1029-
clip: auto;
1048+
clip-path: none;
10301049
}
10311050

10321051
.markdown-body ::-webkit-calendar-picker-indicator {

0 commit comments

Comments
 (0)