Skip to content

style: improve HTML styling for issue #107#111

Merged
drkrillo merged 1 commit into
drkrillo:mainfrom
Tattaisreeram:style-html-issue-107
Jun 6, 2026
Merged

style: improve HTML styling for issue #107#111
drkrillo merged 1 commit into
drkrillo:mainfrom
Tattaisreeram:style-html-issue-107

Conversation

@Tattaisreeram

@Tattaisreeram Tattaisreeram commented May 31, 2026

Copy link
Copy Markdown
Contributor

Add dark mode via CSS custom properties, responsive layout with centered
container and flex toolbar, sticky table header, zebra rows, focus rings,
accessibility fixes (aria-label, type=button, meta viewport), and
smooth hover transitions.

What does this PR do?

This PR adds a couple of frontend improvements.It introduces a dark mode that adapts to the user’s OS theme, enhances the layout for mobile devices, nd refines the table UI with sticky headers and hover effects to ease navigation.

Related Issue

Fixes #107

Checklist

  • I read the CONTRIBUTING.md
  • I ran the project locally and tested my changes
  • I verified my changes are working as expected
  • This PR description is written by me, not by AI

Add dark mode via CSS custom properties, responsive layout with centered
  container and flex toolbar, sticky table header, zebra rows, focus rings,
  accessibility fixes (aria-label, type=button, meta viewport), and
  smooth hover transitions.
@drkrillo

drkrillo commented Jun 1, 2026

Copy link
Copy Markdown
Owner

hey @Tattaisreeram !

Thanks for your interest in contributing.

I've noticed the "Something like:..." at the beginning of What does this PR do?. In the checklist, it is stated explicitly "This PR description is written by me, not by AI". Please, rewrite it with your own words so I can review the PR.

Also, and more importantly, in #107, the issue associated to this PR, a contributor asked for the dark mode implementation and I gave them a go ahead before this PR was open. If they don't open a PR in a reasonable amount of time, I'll come back to this PR and let you know.

This is important for the project, thanks for understanding.

@drkrillo drkrillo left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Nice code! Approved.

Some comments:

#sortComments is included in the shared selector with #searchBox and #languageFilter, but then most of those properties are overridden in its own block .

It would be cleaner to remove #sortComments from the shared selector and give it its own styles from the start. That way you avoid setting properties just to override them right after. Not a blocker, but to have in consideration for future iterations.

Comment thread app/frontend/index.html
--row-alt: #f5f7fa;
--row-hover: #e8f0fe;
--link: #1a73e8;
--btn-bg: #1a73e8;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

--focus-ring, --link, --btn-bg, are all using the same value.

We could consider for further iterations generalizing here.

Comment thread app/frontend/index.html
color: var(--text);
margin: 0;
padding: 32px 16px;
transition: background-color 0.2s, color 0.2s;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I like this transition!

@drkrillo

drkrillo commented Jun 6, 2026

Copy link
Copy Markdown
Owner

The code looks nice and the table with the zebra lines and responsive is looking great.

Would be nice to see you around in other issues. There will be added new colujmns to the CSV and we will need to add them to the frontend and add sorting to them : #106 . Would you like to take it once added to the backend? Once we make some more steps forward the page will be hosted on GitHub Pages, so your code will be live.

Thanks for your contribution.

@drkrillo drkrillo merged commit 08f4b86 into drkrillo:main Jun 6, 2026
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.

[ENHANCEMENT]: Add styling to HTML

2 participants