breakpoint-slicer 1.3.4 → 1.3.5.alpha.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/breakpoint-slicer.rb +2 -2
- data/stylesheets/breakpoint-slicer/_helper-functions.sass +31 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac6d26ff7668ad716717ac63c79fbda5e9875767
|
4
|
+
data.tar.gz: 1e3a751fd2923fb1adfa769862d1b6f0e2bee34a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 904e243f2a29e0c11762ee0781d5c3c8b04708e4e476ab5c4c35927ca2bb618a61933e55eae6dc02b7ae2bffc704121a2c4a3cce96e1509f354ecea4bf6f574f
|
7
|
+
data.tar.gz: 41f5c00c895a399cca68fd66a62f76401ba77c2112592048e8e0f5646112ad50d655da8fb10aca264589c33b9ef867181be8b1b584751e7357803b3ba09499e5
|
data/lib/breakpoint-slicer.rb
CHANGED
@@ -122,4 +122,34 @@
|
|
122
122
|
//@warn "slice-id is falsy"
|
123
123
|
|
124
124
|
// Assume an id was given in the first place
|
125
|
-
@return $slice-id-or-name
|
125
|
+
@return $slice-id-or-name
|
126
|
+
|
127
|
+
|
128
|
+
// prev-slice($slice-id-or-name)
|
129
|
+
//
|
130
|
+
// Returns previous slice id for the given slice
|
131
|
+
@function prev-slice($slice-id-or-name)
|
132
|
+
|
133
|
+
$slice-id: get-slice-id($slice-id-or-name)
|
134
|
+
|
135
|
+
@if $slice-id > 1
|
136
|
+
$slice-id: $slice-id - 1
|
137
|
+
@else
|
138
|
+
@warn "Previous slice for the first slice requested"
|
139
|
+
|
140
|
+
@return $slice-id
|
141
|
+
|
142
|
+
|
143
|
+
// next-slice($slice-id-or-name)
|
144
|
+
//
|
145
|
+
// Returns next slice id for the given slice
|
146
|
+
@function prev-slice($slice-id-or-name)
|
147
|
+
|
148
|
+
$slice-id: get-slice-id($slice-id-or-name)
|
149
|
+
|
150
|
+
@if $slice-id < total-slices()
|
151
|
+
$slice-id: $slice-id + 1
|
152
|
+
@else
|
153
|
+
@warn "Previous slice for the first slice requested"
|
154
|
+
|
155
|
+
@return $slice-id
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breakpoint-slicer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.5.alpha.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey 'lolmaus' Mikhaylov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -82,8 +82,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '1.2'
|
84
84
|
requirements: []
|
85
|
-
rubyforge_project:
|
86
|
-
rubygems_version: 2.
|
85
|
+
rubyforge_project:
|
86
|
+
rubygems_version: 2.4.1
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Along with Respond To, Breakpoint Slicer is an alternative syntax for Breakpoint.
|