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

Make usage of <code> in headers *not* ugly on small device screens #85

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

toughengineer
Copy link
Contributor

This is similar to
Make usage of <code> in headers not ugly #34
and fixes the issue for small screens.

The base font size is 14px, the size of code and pre elements is supposed to be 11px.
11/14 = 0.7(857142857142), 0.7857 seems to be the good place to truncate it.
So for 14px base size code and pre size will be
14px*0.7857 = 10,9998px which is very close to 11px.

Before the fix:
toughengineer github io_talks_2023_C++%20Russia_(Samsung Galaxy S8+)

After the fix:
toughengineer github io_talks_2023_C++%20Russia_(Samsung Galaxy S8+) (1)

Make usage of <code> in headers *not* ugly on small device screens
@koppor
Copy link

koppor commented Nov 15, 2023

@toughengineer I stumbled on this PR and saw that there were failing checks, but I could not check. Maybe, you can add a commit to rigger the checks again?

Update: Maybe the errors are because of #60 (comment)?

@toughengineer
Copy link
Contributor Author

@koppor, here you go.
No idea about the failing checks.

@koppor
Copy link

koppor commented Nov 17, 2023

For the record, this is the error:

HTML-Proofer finished successfully.
Inspecting 3 files
..W

Offenses:

script/validate-html:23:40: W: [Correctable] Lint/RedundantStringCoercion: Redundant use of Object#to_s in puts.
  results.errors.each { |err| puts err.to_s }
                                       ^^^^

3 files inspected, 1 offense detected, 1 offense autocorrectable

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.

None yet

2 participants