-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a new functions file with some basic functions to start
Fixed a bug on desktop nested columns
- Loading branch information
Ramon Lapenta
committed
Nov 6, 2015
1 parent
b024929
commit 5fba58c
Showing
13 changed files
with
340 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
// * | ||
// * Hoisin.scss | ||
// * Functions library | ||
// * | ||
// * | ||
|
||
|
||
|
||
// * Darken colors | ||
// * | ||
// * This function uses mix to have a more granular control of the darkening. | ||
// * @param $color ($variable | #HEX); | ||
// * @param $value (percentage); | ||
// * | ||
// * dark($blue, 20%); | ||
// * | ||
@function dark($color, $value: 10%) { | ||
@return mix(black, $color, $value); | ||
} | ||
|
||
|
||
|
||
// * Lighten colors | ||
// * | ||
// * This function uses mix to have a more granular control of the darkening. | ||
// * @param $color ($variable | #HEX); | ||
// * @param $value (percentage); | ||
// * | ||
// * light($blue, 20%); | ||
// * | ||
@function light($color, $value: 10%) { | ||
@return mix(white, $color, $value); | ||
} | ||
|
||
|
||
|
||
|
||
// * Flexible Span | ||
// * | ||
// * This function generates a width value based on the parameter given, using | ||
// * details from the medium size grid. | ||
// * | ||
// * @param $width ($width); | ||
// * | ||
// * span-fw("m-2_3"); | ||
// * | ||
@function span-fw($width) { | ||
@if $width == "m-2_3" { | ||
@return 66.66%; | ||
} | ||
@else if $width == "m-half" { | ||
@return 50%; | ||
} | ||
@else if $width == "m-1_3" { | ||
@return 33.33%; | ||
} | ||
@else if $width == "m-4_4" { | ||
@return 25%; | ||
} | ||
@else { | ||
@return 100%; | ||
} | ||
} | ||
|
||
|
||
|
||
|
||
|
||
// * Span | ||
// * | ||
// * This function generates a width value based on the parameter given, using | ||
// * details from the $gutter and $col global variables. | ||
// * | ||
// * @param $cols ($cols); | ||
// * | ||
// * span(8); | ||
// * | ||
@function span($cols: 12) { | ||
@return ($cols * $col-width) + (($cols - 1) * $gutter); | ||
} | ||
|
||
|
||
|
||
// * Span XL | ||
// * | ||
// * This function generates a width value based on the parameter given, using | ||
// * details from the $xl-gutter and $xl-col global variables. | ||
// * | ||
// * @param $cols ($cols); | ||
// * | ||
// * span-xl(8); | ||
// * | ||
@function span-xl($cols: 12) { | ||
@return ($cols * $xl-col-width) + (($cols - 1) * $xl-gutter); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
// * Hoisin.scss | ||
// * CSS responsive framework boilerplate | ||
// * Create your own grids, plugin anything | ||
// * Version: 0.9.11 | ||
// * Version: 0.9.12 | ||
// * Created by: Cyber-Duck Ltd <[email protected]>, | ||
// * Ramon Lapenta <[email protected]> | ||
// * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.