diff --git a/github-markdown-dark.css b/github-markdown-dark.css index 9966c60..43dedc0 100644 --- a/github-markdown-dark.css +++ b/github-markdown-dark.css @@ -42,6 +42,10 @@ display: list-item; } +.markdown-body [hidden] { + display: none !important; +} + .markdown-body a { background-color: transparent; color: #58a6ff; @@ -55,7 +59,6 @@ .markdown-body abbr[title] { border-bottom: none; - -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } @@ -77,7 +80,7 @@ } .markdown-body mark { - background-color: #ff0; + background-color: rgba(187,128,9,0.15); color: #c9d1d9; } @@ -132,7 +135,16 @@ border: 0; } -.markdown-body html [type=button], +.markdown-body input { + font: inherit; + margin: 0; + overflow: visible; + font-family: inherit; + font-size: inherit; + line-height: inherit; +} + +.markdown-body [type=button], .markdown-body [type=reset], .markdown-body [type=submit] { -webkit-appearance: button; @@ -322,14 +334,11 @@ word-wrap: normal; } -.markdown-body :-ms-input-placeholder { - color: #484f58; - opacity: 1; -} - -.markdown-body ::-ms-input-placeholder { - color: #484f58; - opacity: 1; +.markdown-body .octicon { + display: inline-block; + overflow: visible !important; + vertical-align: text-bottom; + fill: currentColor; } .markdown-body ::placeholder { @@ -337,6 +346,13 @@ opacity: 1; } +.markdown-body input::-webkit-outer-spin-button, +.markdown-body input::-webkit-inner-spin-button { + margin: 0; + -webkit-appearance: none; + appearance: none; +} + .markdown-body .pl-c { color: #8b949e; } @@ -891,8 +907,33 @@ font-family: monospace; } -.markdown-body [hidden] { - display: none !important; +.markdown-body .task-list-item { + list-style-type: none; +} + +.markdown-body .task-list-item label { + font-weight: 400; +} + +.markdown-body .task-list-item.enabled label { + cursor: pointer; +} + +.markdown-body .task-list-item+.task-list-item { + margin-top: 3px; +} + +.markdown-body .task-list-item .handle { + display: none; +} + +.markdown-body .task-list-item-checkbox { + margin: 0 .2em .25em -1.6em; + vertical-align: middle; +} + +.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox { + margin: 0 -1.6em .25em .2em; } .markdown-body ::-webkit-calendar-picker-indicator { diff --git a/github-markdown-light.css b/github-markdown-light.css index 2e2783c..15e3530 100644 --- a/github-markdown-light.css +++ b/github-markdown-light.css @@ -41,6 +41,10 @@ display: list-item; } +.markdown-body [hidden] { + display: none !important; +} + .markdown-body a { background-color: transparent; color: #0969da; @@ -54,7 +58,6 @@ .markdown-body abbr[title] { border-bottom: none; - -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } @@ -76,7 +79,7 @@ } .markdown-body mark { - background-color: #ff0; + background-color: #fff8c5; color: #24292f; } @@ -131,7 +134,16 @@ border: 0; } -.markdown-body html [type=button], +.markdown-body input { + font: inherit; + margin: 0; + overflow: visible; + font-family: inherit; + font-size: inherit; + line-height: inherit; +} + +.markdown-body [type=button], .markdown-body [type=reset], .markdown-body [type=submit] { -webkit-appearance: button; @@ -321,14 +333,11 @@ word-wrap: normal; } -.markdown-body :-ms-input-placeholder { - color: #6e7781; - opacity: 1; -} - -.markdown-body ::-ms-input-placeholder { - color: #6e7781; - opacity: 1; +.markdown-body .octicon { + display: inline-block; + overflow: visible !important; + vertical-align: text-bottom; + fill: currentColor; } .markdown-body ::placeholder { @@ -336,6 +345,13 @@ opacity: 1; } +.markdown-body input::-webkit-outer-spin-button, +.markdown-body input::-webkit-inner-spin-button { + margin: 0; + -webkit-appearance: none; + appearance: none; +} + .markdown-body .pl-c { color: #6e7781; } @@ -890,8 +906,33 @@ font-family: monospace; } -.markdown-body [hidden] { - display: none !important; +.markdown-body .task-list-item { + list-style-type: none; +} + +.markdown-body .task-list-item label { + font-weight: 400; +} + +.markdown-body .task-list-item.enabled label { + cursor: pointer; +} + +.markdown-body .task-list-item+.task-list-item { + margin-top: 3px; +} + +.markdown-body .task-list-item .handle { + display: none; +} + +.markdown-body .task-list-item-checkbox { + margin: 0 .2em .25em -1.6em; + vertical-align: middle; +} + +.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox { + margin: 0 -1.6em .25em .2em; } .markdown-body ::-webkit-calendar-picker-indicator { diff --git a/github-markdown.css b/github-markdown.css index 1e6d127..c4bf145 100644 --- a/github-markdown.css +++ b/github-markdown.css @@ -41,6 +41,7 @@ --color-neutral-muted: rgba(110,118,129,0.4); --color-accent-fg: #58a6ff; --color-accent-emphasis: #1f6feb; + --color-attention-subtle: rgba(187,128,9,0.15); --color-danger-fg: #f85149; } } @@ -88,6 +89,7 @@ --color-neutral-muted: rgba(175,184,193,0.2); --color-accent-fg: #0969da; --color-accent-emphasis: #0969da; + --color-attention-subtle: #fff8c5; --color-danger-fg: #cf222e; } } @@ -135,6 +137,10 @@ display: list-item; } +.markdown-body [hidden] { + display: none !important; +} + .markdown-body a { background-color: transparent; color: var(--color-accent-fg); @@ -148,7 +154,6 @@ .markdown-body abbr[title] { border-bottom: none; - -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } @@ -170,7 +175,7 @@ } .markdown-body mark { - background-color: #ff0; + background-color: var(--color-attention-subtle); color: var(--color-text-primary); } @@ -225,7 +230,16 @@ border: 0; } -.markdown-body html [type=button], +.markdown-body input { + font: inherit; + margin: 0; + overflow: visible; + font-family: inherit; + font-size: inherit; + line-height: inherit; +} + +.markdown-body [type=button], .markdown-body [type=reset], .markdown-body [type=submit] { -webkit-appearance: button; @@ -415,14 +429,11 @@ word-wrap: normal; } -.markdown-body :-ms-input-placeholder { - color: var(--color-fg-subtle); - opacity: 1; -} - -.markdown-body ::-ms-input-placeholder { - color: var(--color-fg-subtle); - opacity: 1; +.markdown-body .octicon { + display: inline-block; + overflow: visible !important; + vertical-align: text-bottom; + fill: currentColor; } .markdown-body ::placeholder { @@ -430,6 +441,13 @@ opacity: 1; } +.markdown-body input::-webkit-outer-spin-button, +.markdown-body input::-webkit-inner-spin-button { + margin: 0; + -webkit-appearance: none; + appearance: none; +} + .markdown-body .pl-c { color: var(--color-prettylights-syntax-comment); } @@ -984,8 +1002,33 @@ font-family: monospace; } -.markdown-body [hidden] { - display: none !important; +.markdown-body .task-list-item { + list-style-type: none; +} + +.markdown-body .task-list-item label { + font-weight: 400; +} + +.markdown-body .task-list-item.enabled label { + cursor: pointer; +} + +.markdown-body .task-list-item+.task-list-item { + margin-top: 3px; +} + +.markdown-body .task-list-item .handle { + display: none; +} + +.markdown-body .task-list-item-checkbox { + margin: 0 .2em .25em -1.6em; + vertical-align: middle; +} + +.markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox { + margin: 0 -1.6em .25em .2em; } .markdown-body ::-webkit-calendar-picker-indicator { diff --git a/package.json b/package.json index 7b5ca9b..0b9e62e 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,6 @@ "stylesheet" ], "devDependencies": { - "generate-github-markdown-css": "^5.0.0" + "generate-github-markdown-css": "^5.0.1" } }