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

Show full header h1 for smaller displays #49

Merged

Conversation

tswfi
Copy link
Contributor

@tswfi tswfi commented Jan 27, 2020

The header h1 before "./ " would be lost in mobile displays and/or when the browser viewport is smaller than the container width as the header has negative left margin for the "./ " text.

This pr removes the left margin from the header for smaller displays. Also adds a scss variable
so that its easy to change the point where the margin is applied.

Before:

before

And with longer header text even the next line of the header is too much on the left:

image

After:

after

And with longer header text:

image

Does not affect the layout if window size is larger than container max-width.

image

The prefix "./" would be lost in mobile displays and when the browser viewport
is smaller than the container width.

This removes the left margin from the header for smaller displays. Also adds a scss variable
so that its easy to change the point where the "mobil" margin is applied.
@welcome
Copy link

welcome bot commented Jan 27, 2020

Welcome! Congrats on your first pull request to The Hacker Theme. If you haven't already, please be sure to check out the contributing guidelines.

@benbalter benbalter merged commit b5d117c into pages-themes:master Jan 27, 2020
@welcome
Copy link

welcome bot commented Jan 27, 2020

Congrats on getting your first pull request to The Hacker Theme merged! Without amazing humans like you submitting pull requests, we couldn’t run this project. You rock! 🎉

If you're interested in tackling another bug or feature, take a look at the open issues, especially those labeled help wanted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants