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: fix an issue on .highlight pre border radius #1762

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

mtardy
Copy link
Contributor

@mtardy mtardy commented Dec 1, 2023

Class .td-content.highlight has a border radius of 6px but .td-content.highlight pre had a border radius of 0. This fixes the visual discomfort of seing a square on a rounded border on codeblocks.

Notice the corners of codeblock, this thing has been annoying me for ages, notably on https://kubernetes.io and all the other websites using Docsy.

Before:
image

After:
image

Class .td-content.highlight has a border radius of 6px but
.td-content.highlight pre had a border radius of 0. This fixes the
visual discomfort of seing a square on a rounded border on codeblocks.
@fekete-robert
Copy link
Collaborator

LGTM :) For an example, see the preview: https://deploy-preview-1762--docsydocs.netlify.app/docs/adding-content/shortcodes/

Copy link
Collaborator

@deining deining left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@chalin chalin left a comment

Choose a reason for hiding this comment

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

Thanks all!

@chalin chalin merged commit 0d3d631 into google:main Dec 6, 2023
5 checks passed
@mtardy mtardy deleted the fix-css-codeblock branch December 6, 2023 07:47
mtardy added a commit to cilium/tetragon that referenced this pull request May 31, 2024
See PR google/docsy#1762 and upstream main commit
google/docsy@0d3d631.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
mtardy added a commit to cilium/tetragon that referenced this pull request May 31, 2024
See PR google/docsy#1762 and upstream main commit
google/docsy@0d3d631.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
mtardy added a commit to cilium/tetragon that referenced this pull request Jun 3, 2024
See PR google/docsy#1762 and upstream main commit
google/docsy@0d3d631.

Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
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