From f6424a3de877bf0b362c8ad4c15e19293fdec2ba Mon Sep 17 00:00:00 2001 From: ehunter-usgs Date: Mon, 19 Sep 2016 17:08:37 -0600 Subject: [PATCH] Update margin-top on header with no link to provide more space, this will look more like (padding + margin) on headers with links --- src/htdocs/css/_footer.scss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/htdocs/css/_footer.scss b/src/htdocs/css/_footer.scss index df16d6f..0c1f7f4 100644 --- a/src/htdocs/css/_footer.scss +++ b/src/htdocs/css/_footer.scss @@ -40,8 +40,9 @@ > header { margin: calc($spacing * 3/4) $spacing; + /* leave a top margin of 0.5em */ > a { - margin: 0 -$spacing -calc($spacing * 3/4); + margin: -calc($spacing * 1/4) -$spacing -calc($spacing * 3/4); } } @@ -49,6 +50,11 @@ font-size: 0.88em; padding: calc($spacing * 2/3) calc($spacing * 1/0.88); } + + /* leave more space for first section header link */ + &:first-child > header > a { + margin-top: 0; + } } }