diff --git a/github-markdown-dark.css b/github-markdown-dark.css index c65130d..a5a7343 100644 --- a/github-markdown-dark.css +++ b/github-markdown-dark.css @@ -3,15 +3,13 @@ color-scheme: dark; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; + margin: 0; color: #f0f6fc; 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; - word-wrap: break-word; - margin: 0; - min-height: 100vh; line-height: 1.5; - scroll-behavior: smooth; + word-wrap: break-word; } .markdown-body .octicon { @@ -134,12 +132,12 @@ } .markdown-body input { + font: inherit; margin: 0; overflow: visible; font-family: inherit; font-size: inherit; line-height: inherit; - font: inherit; } .markdown-body [type=button], @@ -1101,31 +1099,7 @@ margin-top: 0 !important; } -.markdown-body ul[role='list'], -.markdown-body ol[role='list'] { - list-style: none; -} - -.markdown-body html[focus-within] { - scroll-behavior: smooth; -} - -.markdown-body html:focus-within { - scroll-behavior: smooth; -} - -.markdown-body a:not([class]) { - -webkit-text-decoration-skip: ink; - text-decoration-skip-ink: auto; -} - -.markdown-body img, -.markdown-body picture { - max-width: 100%; - display: block; -} - -.markdown-body [class^=Primer_Brand__Link-module__Link___]::after { - width: calc(100% - 20px); +.markdown-body .highlight pre:has(+.zeroclipboard-container) { + min-height: 52px; } diff --git a/github-markdown-light.css b/github-markdown-light.css index 80b6561..ce0861d 100644 --- a/github-markdown-light.css +++ b/github-markdown-light.css @@ -3,15 +3,13 @@ color-scheme: light; -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; + margin: 0; 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; - word-wrap: break-word; - margin: 0; - min-height: 100vh; line-height: 1.5; - scroll-behavior: smooth; + word-wrap: break-word; } .markdown-body .octicon { @@ -134,12 +132,12 @@ } .markdown-body input { + font: inherit; margin: 0; overflow: visible; font-family: inherit; font-size: inherit; line-height: inherit; - font: inherit; } .markdown-body [type=button], @@ -1101,31 +1099,7 @@ margin-top: 0 !important; } -.markdown-body ul[role='list'], -.markdown-body ol[role='list'] { - list-style: none; -} - -.markdown-body html[focus-within] { - scroll-behavior: smooth; -} - -.markdown-body html:focus-within { - scroll-behavior: smooth; -} - -.markdown-body a:not([class]) { - -webkit-text-decoration-skip: ink; - text-decoration-skip-ink: auto; -} - -.markdown-body img, -.markdown-body picture { - max-width: 100%; - display: block; -} - -.markdown-body [class^=Primer_Brand__Link-module__Link___]::after { - width: calc(100% - 20px); +.markdown-body .highlight pre:has(+.zeroclipboard-container) { + min-height: 52px; } diff --git a/github-markdown.css b/github-markdown.css index 257b921..bc8e12b 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -126,15 +126,13 @@ .markdown-body { -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; + margin: 0; color: var(--fgColor-default); background-color: var(--bgColor-default); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; font-size: 16px; - word-wrap: break-word; - margin: 0; - min-height: 100vh; line-height: 1.5; - scroll-behavior: smooth; + word-wrap: break-word; } .markdown-body .octicon { @@ -257,12 +255,12 @@ } .markdown-body input { + font: inherit; margin: 0; overflow: visible; font-family: inherit; font-size: inherit; line-height: inherit; - font: inherit; } .markdown-body [type=button], @@ -1224,31 +1222,7 @@ margin-top: 0 !important; } -.markdown-body ul[role='list'], -.markdown-body ol[role='list'] { - list-style: none; -} - -.markdown-body html[focus-within] { - scroll-behavior: smooth; -} - -.markdown-body html:focus-within { - scroll-behavior: smooth; -} - -.markdown-body a:not([class]) { - -webkit-text-decoration-skip: ink; - text-decoration-skip-ink: auto; -} - -.markdown-body img, -.markdown-body picture { - max-width: 100%; - display: block; -} - -.markdown-body [class^=Primer_Brand__Link-module__Link___]::after { - width: calc(100% - 20px); +.markdown-body .highlight pre:has(+.zeroclipboard-container) { + min-height: 52px; } diff --git a/package.json b/package.json index f91fa99..3b207a1 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,6 @@ "stylesheet" ], "devDependencies": { - "generate-github-markdown-css": "^6.5.0" + "generate-github-markdown-css": "^6.5.1" } }