breakpoint-slicer 1.2 → 1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3fc3617fc95ee9904af6f713e6c6c8ea34ea1076
|
4
|
+
data.tar.gz: f71f8432e32322e446e0714a21f9c4cc1b4c22cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 606aad81a36d3e5e7debd3cb60b5f1c7c9e3ae80d21f5bdcb6331f42b068d41be91eaf80067a51067d38fb71e22331ce22edd122b43a7450a2465914c9bc4bd4
|
7
|
+
data.tar.gz: 617d54b0969e38515a9fb254a7d6e4d4579adbf973c97af7ba4dd08551b49e6db7af1c892854e9954bb850ee4f086d04655668acc8245d47554aa08f89cf7253
|
data/lib/breakpoint-slicer.rb
CHANGED
@@ -81,4 +81,26 @@
|
|
81
81
|
//
|
82
82
|
// A shortcut for nth($slicer-breakpoints, $slice)
|
83
83
|
@function bp($slice)
|
84
|
-
@return nth($slicer-breakpoints, $slice)
|
84
|
+
@return nth($slicer-breakpoints, $slice)
|
85
|
+
|
86
|
+
|
87
|
+
// get-slice-id($slice-id-or-name)
|
88
|
+
// - $slice-id-or-name: <slice number or name> Should be either a number of a slice (positive integer)
|
89
|
+
or a name of the slice from $slicer-breakpoint-names (string)
|
90
|
+
@function get-slice-id($slice-id-or-name)
|
91
|
+
|
92
|
+
// Treating the argument as a slice name.
|
93
|
+
// Retrieving slice id for given slice name
|
94
|
+
$slice-id: index($slicer-breakpoint-names, $slice-id-or-name)
|
95
|
+
|
96
|
+
// Checking whether a slice with the given name exists
|
97
|
+
@if $slice-id
|
98
|
+
//@warn "slice-id is truthful"
|
99
|
+
|
100
|
+
// Return the id found
|
101
|
+
@return $slice-id
|
102
|
+
@else
|
103
|
+
//@warn "slice-id is falsy"
|
104
|
+
|
105
|
+
// Assume an id was given in the first place
|
106
|
+
@return $slice-id-or-name
|
@@ -13,6 +13,10 @@
|
|
13
13
|
// - $no-query : [<.class>] A class to provide the no-query fallback (see Breakpoint docs).
|
14
14
|
=between($slice-left, $slice-right, $no-query: false)
|
15
15
|
|
16
|
+
// Parsing slice names.
|
17
|
+
$slice-left: get-slice-id($slice-left)
|
18
|
+
$slice-right: get-slice-id($slice-right)
|
19
|
+
|
16
20
|
// If the slices provided are the first and the last one,
|
17
21
|
// the breakpoint becomes meaningless
|
18
22
|
@if ($slice-left == 1) and ($slice-right == total-slices())
|
@@ -1,3 +1,3 @@
|
|
1
|
-
// The defaults
|
2
|
-
$slicer-breakpoints: 0 400px 600px 800px 1010px !default
|
1
|
+
// The defaults
|
2
|
+
$slicer-breakpoints: 0 400px 600px 800px 1010px !default
|
3
3
|
$slicer-anti-overlap-corrections: 1px !default
|
metadata
CHANGED
@@ -1,55 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breakpoint-slicer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.3'
|
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:
|
11
|
+
date: 2014-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.2.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.2.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: compass
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.12.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.12.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: breakpoint
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 2.0.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 2.0.1
|
55
55
|
description: A very quick and efficient syntax for Breakpoint
|
@@ -60,10 +60,10 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- lib/breakpoint-slicer.rb
|
63
|
+
- stylesheets/_breakpoint-slicer.sass
|
63
64
|
- stylesheets/breakpoint-slicer/_helper-functions.sass
|
64
65
|
- stylesheets/breakpoint-slicer/_mixins.sass
|
65
66
|
- stylesheets/breakpoint-slicer/_variables.sass
|
66
|
-
- stylesheets/_breakpoint-slicer.sass
|
67
67
|
homepage: https://github.com/lolmaus/breakpoint-slicer
|
68
68
|
licenses: []
|
69
69
|
metadata: {}
|
@@ -73,17 +73,17 @@ require_paths:
|
|
73
73
|
- lib
|
74
74
|
required_ruby_version: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- -
|
76
|
+
- - ">="
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
79
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '1.2'
|
84
84
|
requirements: []
|
85
85
|
rubyforge_project: singularitygs
|
86
|
-
rubygems_version: 2.
|
86
|
+
rubygems_version: 2.2.2
|
87
87
|
signing_key:
|
88
88
|
specification_version: 4
|
89
89
|
summary: Along with Respond To, Breakpoint Slicer is an alternative syntax for Breakpoint.
|