fix(typography): remove negative margin top for first header unless in padding

fixes #769
This commit is contained in:
Brandy Carney
2015-12-17 13:57:23 -05:00
parent b005bd1601
commit dd6773a5fa
2 changed files with 7 additions and 3 deletions

View File

@ -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;
}
} }
} }

View File

@ -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>