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

Search bar results is misaligned by 1 pixel #374

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

Search bar results is misaligned by 1 pixel #374

Timber232 opened this issue Jun 15, 2017 · 3 comments
Assignees

Comments

@Timber232
Copy link

@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 Search bar is misaligned by 1 pixel Search bar results is misaligned by 1 pixel Jun 15, 2017
@squidfunk
Copy link
Owner

@squidfunk 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
Copy link
Owner

@squidfunk squidfunk commented Oct 19, 2017

Fixed in #505.

@squidfunk squidfunk self-assigned this Oct 19, 2017
@squidfunk
Copy link
Owner

@squidfunk 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants