Skip to content

Commit

Permalink
rebuild - golden ratio padding
Browse files Browse the repository at this point in the history
  • Loading branch information
RazvanDH committed Dec 18, 2015
1 parent 971eb2a commit e29c5d6
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
Binary file modified dist/fonts/fc-icons.eot
Binary file not shown.
Binary file modified dist/fonts/fc-icons.ttf
Binary file not shown.
Binary file modified dist/fonts/fc-icons.woff
Binary file not shown.
20 changes: 20 additions & 0 deletions dist/sass/_mixins/structure.scss
Original file line number Diff line number Diff line change
Expand Up @@ -457,3 +457,23 @@ $maxWrapWidth: 1200px;
}
}
}

/* ---------------------------------------------------------------------- *\
GOLDEN RATIO PADDINGS
Sets golden ratio left/right paddings for elements
$grpColumn: ratio of the content
$grpPadding: ratio for paddings
e.g: @include goldenRatioPaddings(5, 3 2);
\* ---------------------------------------------------------------------- */

@mixin goldenRatioPaddings($grpColumn, $grpPadding) {
$grpWidths: ();
$grpWidths: append($grpPadding, $grpColumn);
$grpWidths: colsWidth($grpWidths);

padding-left: nth($grpWidths, 1) * 1%;
padding-right: nth($grpWidths, 2) * 1%;
}
9 changes: 9 additions & 0 deletions dist/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,15 @@ th {
e.g: @include ratioWidth(5, 3 2, true, $bpMobilePortrait $bpDesktop);
\* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- * GOLDEN RATIO PADDINGS
Sets golden ratio left/right paddings for elements
$grpColumn: ratio of the content
$grpPadding: ratio for paddings
e.g: @include goldenRatioPaddings(5, 3 2);
\* ---------------------------------------------------------------------- */
/* ---------------------------------------------------------------------- * HERO MIXIN
Expand Down

0 comments on commit e29c5d6

Please sign in to comment.