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

Search bar results is misaligned by 1 pixel #374

Closed
Timber232 opened this Issue Jun 15, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@Timber232

Timber232 commented Jun 15, 2017

Description

This is really minor, but the search bar results panel is misaligned with the search text box by 1 pixel.

Expected behavior

The search bar result element to be perfectly aligned with the search text box.

image

Actual behavior

image

Steps to reproduce the bug

  1. Click on the search bar
  2. Notice that the search result is 1 pixel misaligned

Package versions

  • Python: 2.7.13
  • MkDocs: 0.16.3
  • Material: 1.7.2

Project configuration

Not relevant, also happening on the main MkDocs Material website.

System information

  • OS: Windows 10
  • Browser: Chrome

@Timber232 Timber232 changed the title from Search bar is misaligned by 1 pixel to Search bar results is misaligned by 1 pixel Jun 15, 2017

@squidfunk

This comment has been minimized.

Show comment
Hide comment
@squidfunk

squidfunk Jun 21, 2017

Owner

This is a known problem which stems from the rem/font-based sitzing of the theme on large screens, see:

https://github.com/squidfunk/mkdocs-material/blob/master/src/assets/stylesheets/layout/_base.scss#L37-L50

This is related to subpixel rounding. If someone has a fix that does not kill the nice feature of automatic sizing, I'm happy to include it.

Owner

squidfunk commented Jun 21, 2017

This is a known problem which stems from the rem/font-based sitzing of the theme on large screens, see:

https://github.com/squidfunk/mkdocs-material/blob/master/src/assets/stylesheets/layout/_base.scss#L37-L50

This is related to subpixel rounding. If someone has a fix that does not kill the nice feature of automatic sizing, I'm happy to include it.

@squidfunk squidfunk added the bug label Jun 22, 2017

@squidfunk

This comment has been minimized.

Show comment
Hide comment
@squidfunk

squidfunk Oct 19, 2017

Owner

Fixed in #505.

Owner

squidfunk commented Oct 19, 2017

Fixed in #505.

@squidfunk squidfunk self-assigned this Oct 19, 2017

@squidfunk

This comment has been minimized.

Show comment
Hide comment
@squidfunk

squidfunk Oct 20, 2017

Owner

Released with 1.12.0

Owner

squidfunk commented Oct 20, 2017

Released with 1.12.0

@squidfunk squidfunk closed this Oct 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment