mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +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;
|
line-height: $headings-line-height;
|
||||||
margin-top: 1.6rem;
|
margin-top: 1.6rem;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
&:first-child {
|
[padding] {
|
||||||
margin-top: -0.3rem;
|
h1, h2, h3, h4, h5, h6 {
|
||||||
|
&:first-child {
|
||||||
|
margin-top: -0.3rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<ion-content>
|
<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>
|
<ion-searchbar [(ngModel)]="defaultSearch" (input)="triggerInput($event)" class="e2eDefaultFloatingSearchbar"></ion-searchbar>
|
||||||
|
|
||||||
<p padding-left>
|
<p padding-left>
|
||||||
|
Reference in New Issue
Block a user