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

Update how horizontal scrollbars work for code and tables #77

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

cdw9
Copy link
Collaborator

@cdw9 cdw9 commented Jan 21, 2025

boostorg/website-v2#1612
For consistency across browsers and systems, set the overflow-x to auto, but using colors that match the background of the code block or table, so the scrollbar isn’t initially visible. On hover, the colors will change to the defined scrollbar colors. Note they do still display differently depending on each user’s systems settings, based on if they use classic or overlay scrollbars. Also moved scrollbar-related code to that section of the CSS file

For consistency across browsers and systems, set the overflow-x to auto, but using colors that match the background of the code block or table, so the scrollbar isn’t initially visible. On hover, the colors will change to the defined scrollbar colors. Note they do still display differently depending on each user’s systems settings, based on if they use classic or overlay scrollbars
Also moved scrollbar-related code to that section of the CSS file
@cdw9 cdw9 requested review from julioest and rbbeeston January 21, 2025 18:25
@cppalliance-bot
Copy link

An automated preview of the documentation is available at https://77.boostlook.prtest2.cppalliance.org/tools/boostlook/doc/html/index.html

Copy link
Member

@rbbeeston rbbeeston left a comment

Choose a reason for hiding this comment

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

Looks good to me, wait for Julio to sign off on it

Copy link
Collaborator

@julioest julioest left a comment

Choose a reason for hiding this comment

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

Scrollbars look good on my end (macOS - Chrome, Arc, Safari)

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.

4 participants