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

Add class to page content to unify top margin #13766

Merged
merged 6 commits into from
Dec 1, 2020

Conversation

silverwind
Copy link
Member

Previously pages would individually set this margin but some didn't so content would stick to the header without any space. Resolve this by adding a new class that is added on all pages. The only place where we remove this margin again is on the pages with menu or wrapper in the header.

Before:
Screen Shot 2020-11-30 at 20 43 12

After:
Screen Shot 2020-11-30 at 20 43 06

@zeripath
Copy link
Contributor

it's a shame to have to change so many files. Is there really no way to use CSS selectors to do this?

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Nov 30, 2020
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Nov 30, 2020
@silverwind
Copy link
Member Author

Not really, the pages use various classes for the root content element which makes them hard to consistently target for things like this.

@silverwind
Copy link
Member Author

I do believe it's possible with CSS selectors but I also think such a class is generally useful to have and might come in handy for the future.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Nov 30, 2020
Previously pages would individually set this margin but some didn't so
content would stick to the header without any space. Resolve this by
adding a new class that is added on all pages. The only place where we
remove this margin again is on the pages with menu or wrapper in the
header.
@lafriks lafriks added the topic/ui Change the appearance of the Gitea UI label Nov 30, 2020
@lafriks lafriks added this to the 1.14.0 milestone Nov 30, 2020
@lafriks lafriks added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Nov 30, 2020
@techknowlogick
Copy link
Member

🚀

@techknowlogick techknowlogick merged commit b1cf7f4 into go-gitea:master Dec 1, 2020
@silverwind silverwind deleted the margins branch December 1, 2020 07:51
@go-gitea go-gitea locked and limited conversation to collaborators Jan 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. topic/ui Change the appearance of the Gitea UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants