-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Set opaque background on markup and images #23578
Conversation
There is a small regression in dropzone attachment rendering because of the padding change, checking... |
🎺 🤖 |
* upstream/main: Use a general approch to improve a11y for all checkboxes and dropdowns. (go-gitea#23542) [skip ci] Updated translations via Crowdin Update PR documentation (go-gitea#23620) Set opaque background on markup and images (go-gitea#23578) Decouple the issue-template code from comment_tab.tmpl (go-gitea#23556) Remove `id="comment-form"` dead code, fix tag (go-gitea#23555) Introduce path Clean/Join helper functions (go-gitea#23495) Remove conflicting CSS rules on notifications, improve notifications table (go-gitea#23565) Remove @metalmatze as maintainer (go-gitea#23612) Keep (add if not existing) xmlns attribute for generated SVG images (go-gitea#23410)
@@ -3,6 +3,7 @@ | |||
font-size: 16px; | |||
line-height: 1.5 !important; | |||
word-wrap: break-word; | |||
background: var(--color-box-body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
background
does not inherit or cascade by default, so inherit
would only inherit from the direct element parent, but in the release list we actually would want to inherit from body
.
@@ -2740,6 +2740,12 @@ | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
margin: 0 !important; | |||
padding: 0 !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also suggest to revert this change.
It causes unnecessary overwriting problems.
Fix regression from #23578. Only visible on arc-green. Before: <img width="997" alt="Screenshot 2023-03-27 at 19 14 21" src="https://user-images.githubusercontent.com/115237/228016589-e7cabfb9-bfd0-45fd-9407-6b76c665ed1a.png"> After: <img width="1000" alt="Screenshot 2023-03-27 at 19 14 05" src="https://user-images.githubusercontent.com/115237/228016600-db2e6002-4e2c-4d18-8393-9d7e1f525acb.png"> Fixes: #20625 Fixes: #23718
<hr>
padding
is provided by the.markup
element instead of its parent, matching the file rendering view which does the same.Before:
After:
Example documents:
https://try.gitea.io/silverwind/symlink-test/src/branch/master/test-page.md
https://github.com/silverwind/symlink-test/blob/master/test-page.md