toolkit 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/toolkit.rb +2 -2
- data/stylesheets/_toolkit.scss +2 -1
- data/stylesheets/toolkit/_art.scss +33 -0
- data/stylesheets/toolkit/_colors.scss +3 -2
- data/stylesheets/toolkit/_set-multiple.scss +20 -0
- data/stylesheets/toolkit/_settings.scss +4 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58d37125285242e58743c407bea4f55f2c087512
|
4
|
+
data.tar.gz: 47fbc89356ca7d94ac53a59bcede133fc65e0edf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f92243b070a6ff815f6b4acccf1e29752cf231aeeecd85924197673513dfb0e396f8b276ee392d2181cbc9d6b457bd0993a8f0d7c5d899bf1c7d25203a56547c
|
7
|
+
data.tar.gz: 0460fcfc57746bf8968be8c3259eddb081cdbc56d77ebaebffeab2b5e26a914e359a0ff1a16af9cd065b2c463ebc40ac92cfa33ac1fc8aacdba039595a9b221c
|
data/lib/toolkit.rb
CHANGED
data/stylesheets/_toolkit.scss
CHANGED
@@ -0,0 +1,33 @@
|
|
1
|
+
//////////////////////////////
|
2
|
+
// ART!
|
3
|
+
// Inspired by http://elrumordelaluz.github.io/Pixelator/
|
4
|
+
//////////////////////////////
|
5
|
+
@mixin art($art, $px-size: null, $color: null, $radius: null) {
|
6
|
+
$px-size: if($px-size != null, $px-size, toolkit-get('art pixel size'));
|
7
|
+
$color: if($color != null, $color, toolkit-get('art color'));
|
8
|
+
$radius: if($radius != null, $radius, toolkit-get('art border radius'));
|
9
|
+
|
10
|
+
$build: ();
|
11
|
+
$y: $px-size;
|
12
|
+
$x: 0;
|
13
|
+
|
14
|
+
height: $px-size;
|
15
|
+
width: $px-size;
|
16
|
+
border-radius: $radius;
|
17
|
+
|
18
|
+
@for $i from 1 through str_length($art) {
|
19
|
+
$char: str_slice($art, $i, $i);
|
20
|
+
$x: $x + $px-size;
|
21
|
+
|
22
|
+
@if $char == 'n' {
|
23
|
+
$y: $y + $px-size;
|
24
|
+
$x: 0;
|
25
|
+
}
|
26
|
+
@else if $char != ' ' {
|
27
|
+
$border: $x $y 0 $color;
|
28
|
+
$build: append($build, $border, comma);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
box-shadow: $build;
|
33
|
+
}
|
@@ -110,7 +110,7 @@
|
|
110
110
|
// Color Scales
|
111
111
|
//////////////////////////////
|
112
112
|
@function color-scale($main, $secondary, $steps: null) {
|
113
|
-
$steps: if($steps != null, $steps, toolkit-get('color scale steps'))
|
113
|
+
$steps: if($steps != null, $steps, toolkit-get('color scale steps'));
|
114
114
|
|
115
115
|
$list: $main;
|
116
116
|
|
@@ -172,4 +172,5 @@
|
|
172
172
|
}
|
173
173
|
|
174
174
|
@return $list;
|
175
|
-
}
|
175
|
+
}
|
176
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@mixin set-multiple($value, $properties...) {
|
2
|
+
$property-length: length($properties);
|
3
|
+
$error-msg: "The `set-multiple` mixin requires you to pass in a list of properties as the second argument";
|
4
|
+
|
5
|
+
@if $property-length < 1 {
|
6
|
+
@if feature-exists(at-error) {
|
7
|
+
@error $error-msg;
|
8
|
+
}
|
9
|
+
@else {
|
10
|
+
@warn $error-msg;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
// If the first argument passed in is a white-spaced separated list.
|
15
|
+
$properties: if($property-length == 1, nth($properties, 1), $properties);
|
16
|
+
|
17
|
+
@each $property in $properties {
|
18
|
+
#{$property}: $value
|
19
|
+
}
|
20
|
+
}
|
@@ -48,7 +48,10 @@ $Toolkit-Settings: (
|
|
48
48
|
'underline clear descenders': true,
|
49
49
|
'underline distance': 1,
|
50
50
|
'underline width': 2,
|
51
|
-
'underline extend': false
|
51
|
+
'underline extend': false,
|
52
|
+
'art pixel size': 1px,
|
53
|
+
'art color': black,
|
54
|
+
'art border radius': 0%
|
52
55
|
);
|
53
56
|
|
54
57
|
//////////////////////////////
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Richard
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-01-21 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sass
|
@@ -38,6 +38,7 @@ extra_rdoc_files: []
|
|
38
38
|
files:
|
39
39
|
- lib/toolkit.rb
|
40
40
|
- stylesheets/_toolkit.scss
|
41
|
+
- stylesheets/toolkit/_art.scss
|
41
42
|
- stylesheets/toolkit/_center.scss
|
42
43
|
- stylesheets/toolkit/_clearfix.scss
|
43
44
|
- stylesheets/toolkit/_colors.scss
|
@@ -48,6 +49,7 @@ files:
|
|
48
49
|
- stylesheets/toolkit/_parallax.scss
|
49
50
|
- stylesheets/toolkit/_placeholders.scss
|
50
51
|
- stylesheets/toolkit/_rtl.scss
|
52
|
+
- stylesheets/toolkit/_set-multiple.scss
|
51
53
|
- stylesheets/toolkit/_settings.scss
|
52
54
|
- stylesheets/toolkit/_target.scss
|
53
55
|
- stylesheets/toolkit/_triangle.scss
|