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 space below h1 #785

Merged
merged 2 commits into from
Apr 17, 2023
Merged

Conversation

LukasKalbertodt
Copy link
Member

See commits.

I saw that Bern university added an empty text block as first block to
get more distance between the header and the first real text. In their
version (1.4) the distance was 12px due to the `h1:first-child`.
However, this `first-child` thing was not used anymore at all because
of multiple things (wrapper divs inside Root or having breadcrumbs
first). So I removed that.

But I further increased the space from 16 to 20 because I think it looks
better, certainly for realms. Most non-realm pages are not changed by
this as they often have an element with a larger margin-top below the
h1. Some pages are changed, but only slightly and it's still fine.
Due to the use of flexbox, there was an extra unnecessary 16px space
above and below the heading.
@LukasKalbertodt LukasKalbertodt added the changelog:user User facing changes label Apr 17, 2023
@github-actions github-actions bot temporarily deployed to test-deployment-pr785 April 17, 2023 11:28 Destroyed
@@ -99,7 +99,7 @@ const ManageVideos: React.FC<Props> = ({ connection, vars }) => {
} else {
inner = <>
<PageNavigation {...{ vars, connection }} />
<div css={{ flex: "1 0 0" }}>
<div css={{ flex: "1 0 0", margin: "16px 0" }}>
Copy link
Member

Choose a reason for hiding this comment

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

I made exactly the same changes to this file in #778 🤨

Copy link
Member Author

Choose a reason for hiding this comment

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

Interesting how this doesn't result in a merge conflict or something ...

@owi92 owi92 merged commit 6d85ef2 into elan-ev:master Apr 17, 2023
2 checks passed
@LukasKalbertodt LukasKalbertodt deleted the add-space-below-h1 branch April 18, 2023 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:user User facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants