From 1e8b65ea49cf713b5e15e57b9ed233bc1e49dc3a Mon Sep 17 00:00:00 2001 From: jlukic Date: Fri, 6 Mar 2015 12:31:11 -0500 Subject: [PATCH] Adds margins to h1-h5 --- src/definitions/globals/site.less | 16 ++++++++++++++++ src/themes/default/globals/site.variables | 18 +++++++++--------- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/src/definitions/globals/site.less b/src/definitions/globals/site.less index 0eef55c2f..1dcf7d0b7 100755 --- a/src/definitions/globals/site.less +++ b/src/definitions/globals/site.less @@ -79,6 +79,22 @@ h5 { font-size: @h5; } +h1:first-child, +h2:first-child, +h3:first-child, +h4:first-child, +h5:first-child { + margin-top: 0em; +} + +h1:last-child, +h2:last-child, +h3:last-child, +h4:last-child, +h5:last-child { + margin-bottom: 0em; +} + /******************************* Text diff --git a/src/themes/default/globals/site.variables b/src/themes/default/globals/site.variables index dce24400e..2656c4510 100644 --- a/src/themes/default/globals/site.variables +++ b/src/themes/default/globals/site.variables @@ -377,17 +377,17 @@ /* Rendered Scrollbar Width */ @scrollBarWidth: 15px; -/* Header Spacing */ -@headerLineHeightOffset : (@lineHeight - 1em) / 2; -@headerTopMargin : ~"calc(2rem - "@lineHeightOffset~")"; -@headerBottomMargin : 1rem; -@headerMargin : @headerTopMargin 0em @headerBottomMargin; +/* Used to match floats with text */ +@lineHeightOffset : ((@lineHeight - 1em) / 2); +@headerLineHeightOffset : (@headerLineHeight - 1em) / 2; -/* Makes sure padded grid can fit at 320px */ -@pageMinWidth : (320px - (@fontSize * 3)); +/* Header Spacing */ +@headerTopMargin : ~"calc(2rem - "@headerLineHeightOffset~")"; +@headerBottomMargin : 1rem; +@headerMargin : @headerTopMargin 0em @headerBottomMargin; -/* Used to match floats with text */ -@lineHeightOffset : ((@lineHeight - 1em) / 2); +/* Minimum Mobile Width */ +@pageMinWidth : 320px; /* Positive / Negative Dupes */ @successColor : @positiveColor;