toolkit 2.2.0 → 2.3.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/_colors.scss +29 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e62eb9094150a57206e6c808c8d047e62582e9e
|
4
|
+
data.tar.gz: bb1304e86045a86c33edcfcd7e7305f84f37d669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53acad9c325cf75ae61f262f11efc9180722571225cc1d930e5abe60a07a8f1666d69de5a6af59fd0351c788894164bb9a865b58edf8000c689f9610298be912
|
7
|
+
data.tar.gz: 08983705da379fc53680ce07a821fdb074ce64fface6e100daed27555f9f93adad698d789297a8358d09c560167cfc4465c8a16206689fba010f0482c7d562c1
|
data/lib/toolkit.rb
CHANGED
@@ -13,6 +13,35 @@
|
|
13
13
|
@return mix(toolkit-get('shade color'), $color, $amount);
|
14
14
|
}
|
15
15
|
|
16
|
+
//////////////////////////////
|
17
|
+
// Luma
|
18
|
+
//////////////////////////////
|
19
|
+
@function luma($color) {
|
20
|
+
@return (red($color) * .299) + (green($color) * .587) + (blue($color) * .114);
|
21
|
+
}
|
22
|
+
|
23
|
+
@function luma-gte($color1, $color2) {
|
24
|
+
@if luma($color1) >= luma($color2) {
|
25
|
+
@return true;
|
26
|
+
}
|
27
|
+
@else {
|
28
|
+
@return false;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
@function luma-lte($color1, $color2) {
|
33
|
+
@if luma($color1) <= luma($color2) {
|
34
|
+
@return true;
|
35
|
+
}
|
36
|
+
@else {
|
37
|
+
@return false;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
@function luma-diff($color1, $color2) {
|
42
|
+
@return luma($color1) - luma($color2);
|
43
|
+
}
|
44
|
+
|
16
45
|
//////////////////////////////
|
17
46
|
// Color Stacks
|
18
47
|
//////////////////////////////
|
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.3.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: 2014-
|
13
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sass
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '1.2'
|
75
75
|
requirements: []
|
76
76
|
rubyforge_project: toolkit
|
77
|
-
rubygems_version: 2.
|
77
|
+
rubygems_version: 2.2.2
|
78
78
|
signing_key:
|
79
79
|
specification_version: 4
|
80
80
|
summary: Toolkit of awesome Sass stuff
|