neat-omega 3.0.0 → 3.1.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/README.md +15 -11
- data/bower.json +17 -13
- data/core/_omega-flex.scss +3 -3
- data/core/_omega.scss +1 -1
- data/lib/neat-omega.rb +10 -5
- data/neat-omega.gemspec +2 -2
- data/package.json +3 -3
- 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: bf1100c2e23700bfc041276e307608b4c1b6ccd0
|
4
|
+
data.tar.gz: a6f9328e8021ad53a160601ccf71f8eb640ed66a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33142a2a16147f46bb8da378c973167e169f9e56463a3227d38989956f80495ed1bfd7fef3cc7f7fcec9174b0719341d332a42bfc40017782c4320de3685a113
|
7
|
+
data.tar.gz: 726b4dbcc444e02eebced5b585c284ee7747f5fbbc792409f016de6fef763742aeb71d41de96d7381ee596e3cf260602c1181640c2405475006eda49a833cfd3
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Neat-Omega Family for Bourbon Neat (
|
1
|
+
# Neat-Omega Family for Bourbon Neat (3.x.x+)
|
2
2
|
The Omega family is a group of mixins that accomplish several supplemental goals within the Bourbon-Neat framework.
|
3
3
|
|
4
4
|
Originally created to address: https://github.com/thoughtbot/neat/issues/543
|
@@ -8,13 +8,17 @@ Originally created to address: https://github.com/thoughtbot/neat/issues/543
|
|
8
8
|
|
9
9
|
- `npm install --save neat-omega`
|
10
10
|
- add `@import neat-omega` after your `@import neat` statement in your scss.
|
11
|
-
- add `
|
11
|
+
- add `node_modules/neat-omega/core` to your sass import paths.
|
12
12
|
|
13
13
|
## with Bower
|
14
14
|
- `bower install neat-omega`
|
15
15
|
- add `@import neat-omega` after your `@import neat` statement in your scss.
|
16
16
|
- add `bower_components/neat-omega/core` to your sass import paths.
|
17
17
|
|
18
|
+
## with Bundler
|
19
|
+
- add `gem "neat-omega"` to Gemfile
|
20
|
+
- add `@import neat-omega` after your `@import neat` statement in your scss.
|
21
|
+
|
18
22
|
# Documentation
|
19
23
|
|
20
24
|
## alpha
|
@@ -103,11 +107,14 @@ element {
|
|
103
107
|
margin-right: 20px;
|
104
108
|
}
|
105
109
|
```
|
106
|
-
|
110
|
+
## omega-flex
|
111
|
+
`@include omega-flex($selector: null, $grid: $neat-grid)`
|
112
|
+
- Adds a margin right to the specified object, or if auto, to the last child of the grid.
|
113
|
+
|
107
114
|
<strong>example SCSS</strong>
|
108
115
|
```SCSS
|
109
116
|
.element {
|
110
|
-
@include flex
|
117
|
+
@include omega-flex;
|
111
118
|
}
|
112
119
|
```
|
113
120
|
<strong>example CSS</strong>
|
@@ -116,13 +123,10 @@ element {
|
|
116
123
|
margin-right: 20px;
|
117
124
|
}
|
118
125
|
```
|
119
|
-
|
120
|
-
## omega-flex
|
121
|
-
`@include omega-flex($selector: null, $grid: $neat-grid)`
|
122
|
-
- Adds a margin right to the specified object, or if auto, to the last child of the grid.
|
126
|
+
---
|
123
127
|
<strong>example SCSS</strong>
|
124
128
|
```SCSS
|
125
|
-
@include flex
|
129
|
+
@include omega-flex('.element:nth-of-type(3n+2)');
|
126
130
|
```
|
127
131
|
<strong>example CSS</strong>
|
128
132
|
```CSS
|
@@ -135,7 +139,7 @@ element {
|
|
135
139
|
<strong>example SCSS</strong>
|
136
140
|
```SCSS
|
137
141
|
.element {
|
138
|
-
@include flex
|
142
|
+
@include omega-flex('&:nth-of-type(3n+1)');
|
139
143
|
}
|
140
144
|
```
|
141
145
|
<strong>example CSS</strong>
|
@@ -149,7 +153,7 @@ element {
|
|
149
153
|
<strong>example SCSS</strong>
|
150
154
|
```SCSS
|
151
155
|
.element {
|
152
|
-
@include flex
|
156
|
+
@include omega-flex(auto);
|
153
157
|
}
|
154
158
|
```
|
155
159
|
<strong>example CSS</strong>
|
data/bower.json
CHANGED
@@ -1,12 +1,16 @@
|
|
1
1
|
{
|
2
2
|
"name": "neat-omega",
|
3
|
-
"description": "A family of omega mixins for Neat
|
4
|
-
"version": "3.
|
3
|
+
"description": "A family of omega mixins for Neat 3.x+",
|
4
|
+
"version": "3.1.0",
|
5
5
|
"main": "neat-omega.scss",
|
6
|
-
"authors": [
|
7
|
-
"Kevin Garcia"
|
8
|
-
],
|
9
6
|
"license": "MIT",
|
7
|
+
"ignore": [
|
8
|
+
"**/.*",
|
9
|
+
"node_modules",
|
10
|
+
"bower_components",
|
11
|
+
"test",
|
12
|
+
"tests"
|
13
|
+
],
|
10
14
|
"keywords": [
|
11
15
|
"columns",
|
12
16
|
"grid",
|
@@ -19,15 +23,15 @@
|
|
19
23
|
"scss",
|
20
24
|
"semantic"
|
21
25
|
],
|
22
|
-
"
|
23
|
-
|
24
|
-
"**/.*",
|
25
|
-
"node_modules",
|
26
|
-
"bower_components",
|
27
|
-
"test",
|
28
|
-
"tests"
|
26
|
+
"authors": [
|
27
|
+
"Kevin Garcia"
|
29
28
|
],
|
29
|
+
"homepage": "https://github.com/kgcreative/neat-omega",
|
30
30
|
"dependencies": {
|
31
|
-
"neat": "^
|
31
|
+
"neat": "^3"
|
32
|
+
},
|
33
|
+
"repository": {
|
34
|
+
"type": "git",
|
35
|
+
"url": "https://github.com/kgcreative/neat-omega"
|
32
36
|
}
|
33
37
|
}
|
data/core/_omega-flex.scss
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
/// By default, the global `$neat-grid` will be used.
|
17
17
|
///
|
18
18
|
/// @example scss - Usage
|
19
|
-
/// @include flex
|
19
|
+
/// @include omega-flex('.element:nth-of-type(3n+2)');
|
20
20
|
///
|
21
21
|
/// @example css - CSS Output
|
22
22
|
/// .element:nth-of-type(3n+2) {
|
@@ -25,7 +25,7 @@
|
|
25
25
|
///
|
26
26
|
/// @example scss - Usage
|
27
27
|
/// .element {
|
28
|
-
/// @include flex
|
28
|
+
/// @include omega-flex('&:nth-of-type(3n+1)');
|
29
29
|
/// }
|
30
30
|
///
|
31
31
|
/// @example css - CSS Output
|
@@ -35,7 +35,7 @@
|
|
35
35
|
///
|
36
36
|
/// @example scss - Usage
|
37
37
|
/// .element {
|
38
|
-
/// @include flex
|
38
|
+
/// @include omega-flex(auto);
|
39
39
|
/// }
|
40
40
|
///
|
41
41
|
/// @example css - CSS Output
|
data/core/_omega.scss
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
/// @name Omega
|
8
8
|
///
|
9
9
|
/// @argument { string } $selector
|
10
|
-
/// The omega
|
10
|
+
/// The omega mixin creates a margin-right on the specified selector.
|
11
11
|
///
|
12
12
|
/// @argument {map} $grid [$neat-grid]
|
13
13
|
/// The grid to be used to generate the margins.
|
data/lib/neat-omega.rb
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
+
require "sass"
|
1
2
|
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
module NeatOmega
|
4
|
+
if defined?(Rails::Engine)
|
5
|
+
class Engine < ::Rails::Engine
|
6
|
+
config.assets.paths << File.expand_path("../core", __dir__)
|
7
|
+
end
|
8
|
+
else
|
9
|
+
Sass.load_paths << File.expand_path("../core", __dir__)
|
10
|
+
end
|
11
|
+
end
|
data/neat-omega.gemspec
CHANGED
@@ -11,6 +11,6 @@ Gem::Specification.new do |s|
|
|
11
11
|
s.name = "neat-omega"
|
12
12
|
s.platform = Gem::Platform::RUBY
|
13
13
|
s.require_paths = ["lib"]
|
14
|
-
s.summary = "An omega mixin family for Neat
|
15
|
-
s.version = "3.
|
14
|
+
s.summary = "An omega mixin family for Neat 3.x"
|
15
|
+
s.version = "3.1.0"
|
16
16
|
end
|
data/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "neat-omega",
|
3
|
-
"version": "3.
|
4
|
-
"description": "A family of omega mixins for Neat
|
3
|
+
"version": "3.1.0",
|
4
|
+
"description": "A family of omega mixins for Neat 3.x+",
|
5
5
|
"keywords": [
|
6
6
|
"columns",
|
7
7
|
"grid",
|
@@ -28,6 +28,6 @@
|
|
28
28
|
"url": "https://github.com/kgcreative/neat-omega.git"
|
29
29
|
},
|
30
30
|
"dependencies": {
|
31
|
-
"bourbon-neat": "^
|
31
|
+
"bourbon-neat": "^3"
|
32
32
|
}
|
33
33
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neat-omega
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sass
|
@@ -63,8 +63,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
65
|
rubyforge_project:
|
66
|
-
rubygems_version: 2.
|
66
|
+
rubygems_version: 2.5.2.3
|
67
67
|
signing_key:
|
68
68
|
specification_version: 4
|
69
|
-
summary: An omega mixin family for Neat
|
69
|
+
summary: An omega mixin family for Neat 3.x
|
70
70
|
test_files: []
|