This repository has been archived by the owner on Nov 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from growcss/develop
Release v2.0.7
- Loading branch information
Showing
18 changed files
with
90 additions
and
55 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
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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@charset "UTF-8"; | ||
|
||
// Gets a value to/from a configuration path | ||
// | ||
// @function config-get | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@charset "UTF-8"; | ||
|
||
// Returns whether a configuration path exists | ||
// | ||
// @function config-has | ||
|
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,25 @@ | ||
@charset "UTF-8"; | ||
|
||
// Remove settings | ||
// | ||
// @function config-reset | ||
// | ||
// @param $settings {string} Configuration path | ||
// @param $default {bool} Whether the configuration is default | ||
// | ||
// @return {bool} True if the configuration path is removed. | ||
@function config-reset($settings, $default: false) { | ||
@if length($settings) == 1 { | ||
$settings: nth($settings, 1); | ||
} | ||
|
||
@each $setting in $settings { | ||
@if ($default) { | ||
$config-default: map-remove($config-default, $setting) !global; | ||
} @else { | ||
$config-attr: map-remove($config-attr, $setting) !global; | ||
} | ||
} | ||
|
||
@return true; | ||
} |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@charset "UTF-8"; | ||
|
||
// Sets a value to/from a configuration path | ||
// | ||
// @function config | ||
|
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 |
---|---|---|
@@ -1,3 +1,8 @@ | ||
@charset "UTF-8"; | ||
|
||
// Here are all the functions. | ||
// - - - - - - - - - - - - - - - - - - - - - - - - - | ||
@import "config-set"; | ||
@import "config-get"; | ||
@import "config-has"; | ||
@import "config-reset"; |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
@charset "UTF-8"; | ||
|
||
// Here are all the helpers. | ||
// - - - - - - - - - - - - - - - - - - - - - - - - - | ||
@import "list"; | ||
@import "str"; | ||
@import "map"; |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@charset "UTF-8"; | ||
|
||
// Sets a value to a Map by the map path | ||
// | ||
// @function config-map-set | ||
|
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@charset "UTF-8"; | ||
|
||
// Joins list elements with a string | ||
// | ||
// @function str-join | ||
|
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 |
---|---|---|
@@ -1,13 +1,27 @@ | ||
@charset "UTF-8"; | ||
|
||
// Sass Mixins | ||
// - - - - - - - - - - - - - - - - - - - - - - - - - | ||
|
||
// Sets a value to a configuration path | ||
// | ||
// @mixin config-set | ||
// | ||
// @param $key {string} The configuration key | ||
// @param $key {string} The configuration key | ||
// @param $value {*|null} The value to set | ||
// @param $default {bool} Whether the configuration is default | ||
@mixin config-set($key, $value, $default: false) { | ||
$config: config-set($key, $value, $default); | ||
} | ||
|
||
// Remove settings | ||
// | ||
// @mixin config-reset | ||
// | ||
// @param $settings {string} Configuration path | ||
// @param $default {bool} Whether the configuration is default | ||
// | ||
// @return {bool} True if the configuration path is removed. | ||
@mixin config-reset($settings, $default:false) { | ||
$config-reset: config-reset($settings); | ||
} |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@charset "UTF-8"; | ||
|
||
// Sass Variables | ||
// - - - - - - - - - - - - - - - - - - - - - - - - - | ||
|
||
|
This file was deleted.
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