jeet 6.0.0 → 6.1.2
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/Changelog.md +3 -0
- data/lib/jeet/version.rb +1 -1
- data/vendor/assets/stylesheets/jeet.scss +3 -3
- data/vendor/assets/stylesheets/jeet/_functions.scss +12 -3
- data/vendor/assets/stylesheets/jeet/_grid.scss +38 -30
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 601f1bbda3877ad68e50cef49f75ecf0347bbbf8
|
4
|
+
data.tar.gz: 7ee2b2b95556ba7a853478915e767ce58fb9c7e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78975f986c1a6b72c46a7d73ea0c6963739ce4edf69aa55f668e3357dd62c277425f74fc8ed1abe92a9f20f6d6ff7d433ce7bf037e283db63d84d6fcbb3c4f29
|
7
|
+
data.tar.gz: c2dadfe097371aa910ea42641437c736d486c2def0384552bf5ab31538edd78901c0a3f68286251ea0dd55f8dcd52d4bf46a62a7109ac2395fbe120796b730b3
|
data/Changelog.md
CHANGED
data/lib/jeet/version.rb
CHANGED
@@ -78,15 +78,24 @@
|
|
78
78
|
$result: ();
|
79
79
|
|
80
80
|
@for $i from length($list) * -1 through -1 {
|
81
|
-
$
|
81
|
+
$item: nth($list, abs($i));
|
82
|
+
|
83
|
+
@if length($item) > 1 and $recursive {
|
84
|
+
$result: append($result, jeet-reverse($item, $recursive));
|
85
|
+
}
|
86
|
+
@else {
|
87
|
+
$result: append($result, $item);
|
88
|
+
}
|
82
89
|
}
|
83
90
|
|
84
91
|
@return $result;
|
85
92
|
}
|
86
93
|
|
87
|
-
// Sass 3.3
|
88
|
-
@for $i from 1 through
|
94
|
+
// Sass 3.3+
|
95
|
+
@for $i from 1 through ceil(length($list)/2) {
|
89
96
|
$tmp: nth($list, $i);
|
97
|
+
$tmp: if(length($tmp) > 1 and $recursive, reverse($tmp, $recursive), $tmp);
|
98
|
+
|
90
99
|
$list: set-nth($list, $i, nth($list, -$i));
|
91
100
|
$list: set-nth($list, -$i, $tmp);
|
92
101
|
}
|
@@ -72,39 +72,19 @@
|
|
72
72
|
/**
|
73
73
|
* Get the width of a column and nothing else.
|
74
74
|
* @param {number} [$ratios=1] - A width relative to its container as a fraction.
|
75
|
-
* @param {number} [$
|
75
|
+
* @param {number} [$gutter=$jeet-gutter] - Specify the gutter width as a percentage of the containers width.
|
76
76
|
*/
|
77
|
-
@function column-width($ratios: 1, $
|
78
|
-
@
|
79
|
-
$ratios: jeet-reverse($ratios);
|
80
|
-
}
|
81
|
-
|
82
|
-
$w: 100;
|
83
|
-
|
84
|
-
@each $ratio in $ratios {
|
85
|
-
$w: 100 * $ratio - $g + $ratio * $g;
|
86
|
-
}
|
87
|
-
|
88
|
-
@return unquote($w + '%');
|
77
|
+
@function column-width($ratios: 1, $gutter: $jeet-gutter) {
|
78
|
+
@return unquote(nth(jeet-get-column($ratios, $gutter), 1) + '%');
|
89
79
|
}
|
90
80
|
|
91
81
|
/**
|
92
82
|
* Get the gutter size of a column and nothing else.
|
93
83
|
* @param {number} [ratios=1] - A width relative to its container as a fraction.
|
94
|
-
* @param {number} [
|
84
|
+
* @param {number} [gutter=jeet.gutter] - Specify the gutter width as a percentage of the containers width.
|
95
85
|
*/
|
96
|
-
@function column-gutter($ratios: 1, $
|
97
|
-
@
|
98
|
-
$ratios: jeet-reverse($ratios);
|
99
|
-
}
|
100
|
-
|
101
|
-
$w: 100;
|
102
|
-
|
103
|
-
@each $ratio in $ratios {
|
104
|
-
$g: $g / $w * 100;
|
105
|
-
}
|
106
|
-
|
107
|
-
@return unquote($g + '%');
|
86
|
+
@function column-gutter($ratios: 1, $gutter: $jeet-gutter) {
|
87
|
+
@return unquote(nth(jeet-get-column($ratios, $gutter), 2) + '%');
|
108
88
|
}
|
109
89
|
|
110
90
|
/**
|
@@ -127,8 +107,10 @@
|
|
127
107
|
* Style an element as a column without any gutters for a seamless row.
|
128
108
|
* @param {number} [$ratios=1] - A width relative to its container as a fraction.
|
129
109
|
* @param {number} [$offset=0] - A offset specified as a fraction (see $ratios).
|
110
|
+
* @param {number} [cycle=0] - Easily create an nth column grid where cycle equals the number of columns.
|
111
|
+
* @param {number} [uncycle=0] - Undo a previous cycle value to allow for a new one.
|
130
112
|
*/
|
131
|
-
@mixin span($ratio: 1, $offset: 0) {
|
113
|
+
@mixin span($ratio: 1, $offset: 0, $cycle: 0, $uncycle: 0) {
|
132
114
|
$side: jeet-get-layout-direction();
|
133
115
|
$opposite-side: jeet-opposite-direction($side);
|
134
116
|
$span-width: jeet-get-span($ratio);
|
@@ -152,6 +134,25 @@
|
|
152
134
|
#{$side}: $margin-l * 1%;
|
153
135
|
#{$opposite-side}: $margin-r * 1%;
|
154
136
|
};
|
137
|
+
|
138
|
+
@if $cycle != 0 {
|
139
|
+
&:nth-child(#{$cycle}n) {
|
140
|
+
float: $opposite-side;
|
141
|
+
}
|
142
|
+
&:nth-child(#{$cycle}n + 1) {
|
143
|
+
clear: both;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
@if $uncycle != 0 {
|
148
|
+
&:nth-child(#{$uncycle}n) {
|
149
|
+
float: $side;
|
150
|
+
}
|
151
|
+
&:nth-child(#{$uncycle}n + 1) {
|
152
|
+
clear: none;
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
155
156
|
}
|
156
157
|
|
157
158
|
/**
|
@@ -190,10 +191,17 @@
|
|
190
191
|
/**
|
191
192
|
* View the grid and its layers for easy debugging.
|
192
193
|
* @param {string} [$color=black] - The background tint applied.
|
194
|
+
* @param {boolean} [$important=false] - Whether to apply the style as !important.
|
193
195
|
*/
|
194
|
-
@mixin edit($color: black) {
|
195
|
-
|
196
|
-
|
196
|
+
@mixin edit($color: black, $important: false) {
|
197
|
+
@if $important {
|
198
|
+
* {
|
199
|
+
background: rgba($color, .05) !important;
|
200
|
+
}
|
201
|
+
} @else {
|
202
|
+
* {
|
203
|
+
background: rgba($color, .05);
|
204
|
+
}
|
197
205
|
}
|
198
206
|
}
|
199
207
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jeet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cory Simmons
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-09-
|
12
|
+
date: 2014-09-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sass
|