-
-
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
Absolute positioned checkboxes overlay floated elements #26870
Merged
Merged
Changes from 3 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
5ce3479
posistion checkboxes relative
57c05bf
remove padding from ol and ul
41c62f9
Merge branch 'go-gitea:main' into main
rafh 3695136
offset placement of list-item
9ef0a9c
remove margin for p tags in list-items
3421f67
Merge branch 'main' into main
rafh caf7a5e
prevent vertical centering of checkboxes
a47a9c7
Merge branch 'main' into main
rafh 3a714d3
Merge branch 'main' into main
rafh f5df2d5
Merge branch 'main' into main
rafh fa9143a
Merge branch 'main' into main
rafh 4512aeb
update styling to better align with github
ef901d4
Merge branch 'main' into main
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@rafh I'm worried about this style affecting other elements unrelated to checkboxes. Are there other markdown
ul
ol
items this will apply to in markdown (I assume yes)?Especially because this value was not changed here: https://github.com/go-gitea/gitea/pull/17411/files
(btw, this is an area front-end testing could validate)
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.
@kdumontnu I understand your point. Instead, we should change the
em
back to2em
and update the.task-list-item
to havemargin-left: -2em;
. This will ensure that all checkboxes are aligned properly without impacting allol
andul
.Here's an example of the markup and how it is rendered within Gitea.
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.
That seems like a reasonable solution to me, or maybe you can add a
:not(.task-list-item)
to the selectors above and. Whatever will apply the style to the.task-list-item
items, but not change the styling for other lists.