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
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open

Comments

@Timber232
Copy link

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

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 Issue reports a bug label Jun 22, 2017
@squidfunk
Copy link
Owner

Fixed in #505.

@squidfunk squidfunk added the resolved Issue is resolved, yet unreleased if open label Oct 19, 2017
@squidfunk squidfunk self-assigned this Oct 19, 2017
@squidfunk
Copy link
Owner

Released with 1.12.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue reports a bug resolved Issue is resolved, yet unreleased if open
Projects
None yet
Development

No branches or pull requests

2 participants