Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix style initialization for elements in VS Code preview pane #75

Merged
merged 2 commits into from
Sep 17, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
}

/* Override VS Code default CSS rules reverting to initial
https://github.com/Microsoft/vscode/blob/master/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js#L412 */
https://github.com/microsoft/vscode/blob/master/src/vs/workbench/contrib/webview/browser/pre/main.js#L53 */
body.marp-vscode {
padding: 0;
}

body.marp-vscode img {
max-width: initial;
max-height: initial;
max-width: unset;
max-height: unset;
}

body.marp-vscode a,
body.marp-vscode a:hover,
body.marp-vscode code {
color: initial;
color: unset;
}

body.marp-vscode blockquote {
background: initial;
border-color: initial;
background: unset;
border-color: unset;
}

@media screen {
Expand All @@ -40,7 +40,7 @@ body.marp-vscode blockquote {
overflow: visible;
}

/* from https://github.com/Microsoft/vscode-docs-authoring/blob/master/docs-preview/media/markdown.css */
/* Based on https://github.com/microsoft/vscode/blob/master/extensions/markdown-language-features/media/markdown.css */
#code-csp-warning {
background-color: #444;
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.25);
Expand Down