Skip to content

css: fix an issue on .highlight pre border radius#1762

Merged
chalin merged 1 commit intogoogle:mainfrom
mtardy:fix-css-codeblock
Dec 6, 2023
Merged

css: fix an issue on .highlight pre border radius#1762
chalin merged 1 commit intogoogle:mainfrom
mtardy:fix-css-codeblock

Conversation

@mtardy
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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
@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