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;