From dd6773a5fa44eff678f1a4e3cc50f4840acc369c Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Thu, 17 Dec 2015 13:57:23 -0500 Subject: [PATCH] fix(typography): remove negative margin top for first header unless in padding fixes #769 --- ionic/components/app/typography.scss | 8 ++++++-- ionic/components/searchbar/test/floating/main.html | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ionic/components/app/typography.scss b/ionic/components/app/typography.scss index e4843e315d..1f13d585ec 100644 --- a/ionic/components/app/typography.scss +++ b/ionic/components/app/typography.scss @@ -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; + } } } diff --git a/ionic/components/searchbar/test/floating/main.html b/ionic/components/searchbar/test/floating/main.html index 54a5199fef..27eecacf83 100644 --- a/ionic/components/searchbar/test/floating/main.html +++ b/ionic/components/searchbar/test/floating/main.html @@ -1,5 +1,5 @@ -
Search - Default
+
Search - Default