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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be6ff121c061dfa8a558e8586a88b5b089f193f5
4
- data.tar.gz: a6648614821c99e143ca5d3977a4ea323383f14a
3
+ metadata.gz: bf1100c2e23700bfc041276e307608b4c1b6ccd0
4
+ data.tar.gz: a6f9328e8021ad53a160601ccf71f8eb640ed66a
5
5
  SHA512:
6
- metadata.gz: 07b1a39b1e1a87ad22322f0da431e2b2192a4cbe4ba50ca07604238b0624de50f335fe4de066988d108b62bef641ddaeff9ac31e248b472d454c51a5885897a9
7
- data.tar.gz: 6a6c2f05168645cb4434d5f8f541cacaf799515e49741d3126bb93d5d85469c1bbdd9e894c7ec62a5633046d483ae17a9a89ae4930a67f317da28b9f037f8c33
6
+ metadata.gz: 33142a2a16147f46bb8da378c973167e169f9e56463a3227d38989956f80495ed1bfd7fef3cc7f7fcec9174b0719341d332a42bfc40017782c4320de3685a113
7
+ data.tar.gz: 726b4dbcc444e02eebced5b585c284ee7747f5fbbc792409f016de6fef763742aeb71d41de96d7381ee596e3cf260602c1181640c2405475006eda49a833cfd3
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Neat-Omega Family for Bourbon Neat (2.x.x)
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 `node-modules/neat-omega/core` to your sass import paths.
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-omega;
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-omega('.element:nth-of-type(3n+2)');
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-omega('&:nth-of-type(3n+1)');
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-omega(auto);
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 2.0",
4
- "version": "3.0.0",
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
- "homepage": "https://github.com/kgcreative/neat-omega",
23
- "ignore": [
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": "^2"
31
+ "neat": "^3"
32
+ },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/kgcreative/neat-omega"
32
36
  }
33
37
  }
@@ -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-omega('.element:nth-of-type(3n+2)');
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-omega('&:nth-of-type(3n+1)');
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-omega(auto);
38
+ /// @include omega-flex(auto);
39
39
  /// }
40
40
  ///
41
41
  /// @example css - CSS Output
@@ -7,7 +7,7 @@
7
7
  /// @name Omega
8
8
  ///
9
9
  /// @argument { string } $selector
10
- /// The omega-flex mixin creates a margin-right on the specified selector.
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.
@@ -1,6 +1,11 @@
1
+ require "sass"
1
2
 
2
- neat_omega_path = File.expand_path("../../core", __FILE__)
3
- ENV["SASS_PATH"] = [
4
- ENV["SASS_PATH"],
5
- neat_omega_path,
6
- ].compact.join(File::PATH_SEPARATOR)
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
@@ -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 2.x"
15
- s.version = "3.0.0"
14
+ s.summary = "An omega mixin family for Neat 3.x"
15
+ s.version = "3.1.0"
16
16
  end
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "neat-omega",
3
- "version": "3.0.0",
4
- "description": "A family of omega mixins for Neat 2.0",
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": "^2"
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.0.0
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: 2017-04-30 00:00:00.000000000 Z
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.6.11
66
+ rubygems_version: 2.5.2.3
67
67
  signing_key:
68
68
  specification_version: 4
69
- summary: An omega mixin family for Neat 2.x
69
+ summary: An omega mixin family for Neat 3.x
70
70
  test_files: []