Browse Source

Adds margins to h1-h5

pull/1944/head
jlukic 9 years ago
parent
commit
1e8b65ea49
2 changed files with 25 additions and 9 deletions
  1. 16
      src/definitions/globals/site.less
  2. 18
      src/themes/default/globals/site.variables

16
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

18
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;

Loading…
Cancel
Save