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

404 layout: fix HTML, avoid nested main #1137

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

chalin
Copy link
Collaborator

@chalin chalin commented Jul 28, 2022

@chalin chalin requested review from LisaFC and geriom July 28, 2022 21:02
Comment on lines +28 to 32
.td-main main {
padding-top: 1.5rem;
padding-bottom: 2rem;
@include media-breakpoint-up(md) { padding-top: 5.5rem; }
}
Copy link
Collaborator Author

@chalin chalin Jul 28, 2022

Choose a reason for hiding this comment

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

This change is a refactoring of the selector .td-main main so that the style definition can be reused for .td-404 main, plus the added non-media-breakpoint base style of padding-top: 1.5rem. IMHO, the result looks better if you look at the screenshots in the Conversation tab.

Copy link
Contributor

@lxmarinkovic lxmarinkovic left a comment

Choose a reason for hiding this comment

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

lgtm :D

Copy link
Collaborator

@geriom geriom left a comment

Choose a reason for hiding this comment

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

lgtm. Thanks!

@geriom geriom force-pushed the chalin-im-404-html-fix-2022-07-28 branch from c9417c3 to 5d31b24 Compare August 2, 2022 14:34
@geriom geriom merged commit 33b2028 into google:main Aug 2, 2022
@chalin chalin deleted the chalin-im-404-html-fix-2022-07-28 branch August 6, 2022 09:11
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.

404 layout generates invalid HTML
3 participants