-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
code highlight slightly misaligned #9381
Comments
Ah yep, it's a padding issue. |
The font does seem to be monospace, this is some kind of CSS weirdness… |
The font is Monaco and it is a monospace font only. |
The padding seems to apply only to the first line |
@mscdex Looks like it is working. I tried this patch diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css
index 1e82464..13f0ce6 100644
--- a/doc/api_assets/style.css
+++ b/doc/api_assets/style.css
@@ -358,7 +358,6 @@ tt, code {
color: #040404;
background-color: #f2f2f2;
border-radius: 2px;
- padding: .1em .3em;
}
a code { and this is the result ![virtualbox_ubuntu_01_11_2016_02_04_13](https://cloud.githubusercontent.com/assets/696611/19870713/bf0b05da-9fd7-11e6-85a4-12eb8e0f06db.png) |
Probably a bug from #8811? I think we should be safe to remove the padding? Odd that it doesn't apply to multiple lines here... 🤔 |
The problem with just removing that line is that it also removes the padding from inline code, which to me does look better with the padding. Perhaps we need to have an inline code class that just has that padding or a code block class that overrides that padding? |
I've noticed that a few of the code examples have an minor indentation issue with the first line, for example: https://nodejs.org/api/child_process.html#child_process_child_process This commit attempt to fix this issue by using the solution provided provided by silverwind and hiendv. Fixes: nodejs#9381
I've noticed that a few of the code examples have an minor indentation issue with the first line, for example: https://nodejs.org/api/child_process.html#child_process_child_process This commit attempt to fix this issue by using the solution provided provided by silverwind and hiendv. Fixes: #9381 PR-URL: #9482 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
I've noticed that a few of the code examples have an minor indentation issue with the first line, for example: https://nodejs.org/api/child_process.html#child_process_child_process This commit attempt to fix this issue by using the solution provided provided by silverwind and hiendv. Fixes: #9381 PR-URL: #9482 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
I've noticed that a few of the code examples have an minor indentation issue with the first line, for example: https://nodejs.org/api/child_process.html#child_process_child_process This commit attempt to fix this issue by using the solution provided provided by silverwind and hiendv. Fixes: #9381 PR-URL: #9482 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
I've noticed that a few of the code examples have an minor indentation issue with the first line, for example: https://nodejs.org/api/child_process.html#child_process_child_process This commit attempt to fix this issue by using the solution provided provided by silverwind and hiendv. Fixes: #9381 PR-URL: #9482 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
I've noticed that a few of the code examples have an minor indentation issue with the first line, for example: https://nodejs.org/api/child_process.html#child_process_child_process This commit attempt to fix this issue by using the solution provided provided by silverwind and hiendv. Fixes: #9381 PR-URL: #9482 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
As seen in the screenprint, the very first line of code section is slightly indented, in all pages.
cc @nodejs/documentation
The text was updated successfully, but these errors were encountered: