mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
fix(typography): remove negative margin top for first header unless in padding
fixes #769
This commit is contained in:
@ -36,9 +36,13 @@ h1, h2, h3, h4, h5, h6 {
|
||||
line-height: $headings-line-height;
|
||||
margin-top: 1.6rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
margin-top: -0.3rem;
|
||||
[padding] {
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
&:first-child {
|
||||
margin-top: -0.3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<ion-content>
|
||||
<h5 padding-left padding-top> Search - Default </h5>
|
||||
<h5 padding-left> Search - Default </h5>
|
||||
<ion-searchbar [(ngModel)]="defaultSearch" (input)="triggerInput($event)" class="e2eDefaultFloatingSearchbar"></ion-searchbar>
|
||||
|
||||
<p padding-left>
|
||||
|
Reference in New Issue
Block a user