vertical-align
See original GitHub issueIcons are not properly aligned vertically in GitHub.
I suggest adding vertical-align: -3px;
to the <img>
tags.
default | + github-vscode-icons | + vertical-align |
---|---|---|
What do you think?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
vertical-align - CSS: Cascading Style Sheets - MDN Web Docs
The vertical-align CSS property sets vertical alignment of an inline, inline-block or table-cell box.
Read more >CSS vertical-align property - W3Schools
The vertical-align property sets the vertical alignment of an element. Show demo ❯. Default value: baseline. Inherited: no. Animatable: yes. Read about ...
Read more >vertical-align - CSS-Tricks
The vertical-align property in CSS controls how elements set next to each other on a line are lined up.
Read more >Vertical alignment - Bootstrap
Easily change the vertical alignment of inline, inline-block, inline-table, and table cell elements.
Read more >Vertical Align - Tailwind CSS
Utilities for controlling the vertical alignment of an inline or table-cell box.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Since
vertical-align: middle;
looks pretty similar, adding the classvscode-icon
to theimg
should do the trick as well.This would mean just adding
class="vscode-icon"
to this line.https://github.com/dderevjanik/github-vscode-icons/blob/3470130cbd55f0470cda9491e34325e3e0e5a55c/packages/content/pages/GitHub.ts#L103
Try it out and tell me what you think:
This is the css file used by the extension. And the selector would be something like
div.Box-row > div:nth-child(1) > img:nth-child(1)
.