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

css for line counter #150

Merged
merged 3 commits into from
Jan 8, 2025
Merged

css for line counter #150

merged 3 commits into from
Jan 8, 2025

Conversation

hlageek
Copy link
Contributor

@hlageek hlageek commented Jan 7, 2025

Enhancement (user request): line counter

@hlageek hlageek requested a review from skvrnami January 7, 2025 18:08
@@ -77,6 +77,7 @@ p.docpar::before {
left: -45px; /* Negative offset to place numbers in the padding area */
width: 30px; /* Fixed width for alignment */
text-align: right; /* Align numbers to the right */
font-family: 'Courier New', Courier, monospace; /* Specify a monospace font */
color: lightgray; /* Style the numbers */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest changing the colour to darker gray (e.g. #959595), the current lightgray has low contrast (see https://coolors.co/contrast-checker/d3d3d3-ffffff). According to some accessibility guidelines, the contrast should be at least 3 (https://www.colorlabs.net/posts/what-is-the-minimum-color-contrast-ratio-for-non-text-elements-in-wcag).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely, I intended to change it myself, having hard time reading it. It is a tradeoff though, as we want the actual text to stand out.

@hlageek hlageek merged commit 191f376 into main Jan 8, 2025
4 checks passed
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