mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(docs-infra): remove negative margin (#44126)
remove the top padding for the homepage article, instead of having that top padding and moving the element up via a negative bottom margin in the intro section note: the result is identical except for when the article's media query is applied, the difference is barely noticeable anyways PR Close #44126
This commit is contained in:
committed by
Jessica Janiuk
parent
9255d0b05d
commit
d8ae34aea8
@@ -44,7 +44,7 @@ section#intro {
|
||||
max-width: 900px;
|
||||
width: 100%;
|
||||
height: 480px;
|
||||
margin: 0 auto -32px;
|
||||
margin: 0 auto;
|
||||
padding: 48px 0 0;
|
||||
|
||||
.hero-logo {
|
||||
@@ -240,9 +240,11 @@ section#intro {
|
||||
|
||||
article {
|
||||
padding: 3rem;
|
||||
padding-top: 0;
|
||||
|
||||
@media (max-width: 800px) {
|
||||
padding: 2.2rem;
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user