-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.x.x' of github.com:Team-Sass/toolkit into 2.x.x
# By Alex Williams (3) and others # Via Sam Richard (3) and Jed Foster (1) * '2.x.x' of github.com:Team-Sass/toolkit: Fix trailing line return Fix syntax issue with LibSass Update CHANGELOG.md Test for Set Multiple mixin Set Multiple mixin definition Change README Added EditorConfig Long overdue update to README Update README.md Update README.md Update LICENSE.txt Update README.md Conflicts: CONTRIBUTING.md stylesheets/_toolkit.scss
- Loading branch information
Showing
9 changed files
with
125 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# EditorConfig helps developers define and maintain consistent | ||
# coding styles between different editors and IDEs | ||
# editorconfig.org | ||
|
||
root = true | ||
|
||
|
||
[*] | ||
|
||
# Change these settings to your own preference | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# We recommend you to keep these unchanged | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@mixin set-multiple($value, $properties...) { | ||
$property-length: length($properties); | ||
$error-msg: "The `set-multiple` mixin requires you to pass in a list of properties as the second argument"; | ||
|
||
@if $property-length < 1 { | ||
@if feature-exists(at-error) { | ||
@error $error-msg; | ||
} | ||
@else { | ||
@warn $error-msg; | ||
} | ||
} | ||
|
||
// If the first argument passed in is a white-spaced separated list. | ||
$properties: if($property-length == 1, nth($properties, 1), $properties); | ||
|
||
@each $property in $properties { | ||
#{$property}: $value | ||
} | ||
} |
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,14 @@ | ||
/** | ||
* Set Multiple | ||
**/ | ||
.property { | ||
_test: "@include set-multiple(30px, margin-left margin-right);"; | ||
margin-left: 30px; | ||
margin-right: 30px; | ||
} | ||
|
||
.property { | ||
_test: "@include set-multiple(50%, width, height);"; | ||
width: 50%; | ||
height: 50%; | ||
} |
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,16 @@ | ||
@import "toolkit"; | ||
|
||
/** | ||
* Set Multiple | ||
**/ | ||
|
||
.property { | ||
_test: "@include set-multiple(30px, margin-left margin-right);"; | ||
@include set-multiple(30px, margin-left margin-right); | ||
} | ||
|
||
.property { | ||
_test: "@include set-multiple(50%, width, height);"; | ||
@include set-multiple(50%, width, height); | ||
} | ||
|