oulu 0.12.11 → 0.12.12

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: 18f64e1f34f3238114218e6b79fe5f81d27cad75
4
- data.tar.gz: a0f62a265103785166589db19f7a023a1a82789e
3
+ metadata.gz: d54156ed3b994a983959d24cbc88a89ba26b1758
4
+ data.tar.gz: d13f94ff655f5ba9e7c3f3f0468150871b0b44fa
5
5
  SHA512:
6
- metadata.gz: ab340ea9b7a2f73c319f8339e4bc77458f847d13145f41580ee28fb9049df9283ae85b70fb7193ac79975dc31f2bea76fab35cf698ac226277d6879c5cfcbe55
7
- data.tar.gz: 3896e35e13073bd288277a48e716073d794c3c53d5ead1e7b7cdda1d5bcad838d894a5883ab05158515f0379be675d7c6ea3ebe63183fdc5ddd5785bbb1487b8
6
+ metadata.gz: 7da340cc63e95015557d7bf6ead498503244600d2f74ebc2fbc70cf421535d9a2e896ab2835e51af83169b89412c5d43615f36cd79325a2595377f3b52537ef0
7
+ data.tar.gz: 504d22529077a4dabd13d081ba1a1e8209683ad4f26770fb9abad0143eac922d0299761479101dc34d1eff0b0b0dcfa6b18b5fb0053d2010d095171a4917aed5
@@ -0,0 +1,35 @@
1
+ =assign-margin-padding($direction, $property, $n-px)
2
+ @if $direction == horizontal
3
+ #{$property}-left: $n-px
4
+ #{$property}-right: $n-px
5
+ @else if $direction == vertical
6
+ #{$property}-top: $n-px
7
+ #{$property}-bottom: $n-px
8
+ @else
9
+ #{$property}-#{$direction}: $n-px
10
+ body
11
+ @for $i from 0 through 20
12
+ $n: $i*4
13
+ $n-px: px_to_rem($n*1px)
14
+ $properties: margin
15
+ $directions: top, bottom, left, right, horizontal, vertical
16
+ $breakpoints: xs, sm, md, lg, xl, false
17
+ $scopes: up, down
18
+ @each $property in $properties
19
+ @each $direction in $directions
20
+ @each $breakpoint in $breakpoints
21
+ @each $scope in $scopes
22
+ @if $breakpoint
23
+ .is-#{$property}-#{$direction}-#{$n}-#{$breakpoint}-#{$scope}
24
+ @if $scope == up
25
+ +media-breakpoint-up($breakpoint)
26
+ +assign-margin-padding($direction, $property, $n-px)
27
+ @else if $scope == down
28
+ +media-breakpoint-down($breakpoint)
29
+ +assign-margin-padding($direction, $property, $n-px)
30
+ @else if $scope == only
31
+ +media-breakpoint-only($breakpoint)
32
+ +assign-margin-padding($direction, $property, $n-px)
33
+ @else
34
+ .is-#{$property}-#{$direction}-#{$n}
35
+ +assign-margin-padding($direction, $property, $n-px)
@@ -0,0 +1,35 @@
1
+ =assign-margin-padding($direction, $property, $n-px)
2
+ @if $direction == horizontal
3
+ #{$property}-left: $n-px
4
+ #{$property}-right: $n-px
5
+ @else if $direction == vertical
6
+ #{$property}-top: $n-px
7
+ #{$property}-bottom: $n-px
8
+ @else
9
+ #{$property}-#{$direction}: $n-px
10
+ body
11
+ @for $i from 0 through 20
12
+ $n: $i*4
13
+ $n-px: px_to_rem($n*1px)
14
+ $properties: padding
15
+ $directions: top, bottom, left, right, horizontal, vertical
16
+ $breakpoints: xs, sm, md, lg, xl, false
17
+ $scopes: up, down
18
+ @each $property in $properties
19
+ @each $direction in $directions
20
+ @each $breakpoint in $breakpoints
21
+ @each $scope in $scopes
22
+ @if $breakpoint
23
+ .is-#{$property}-#{$direction}-#{$n}-#{$breakpoint}-#{$scope}
24
+ @if $scope == up
25
+ +media-breakpoint-up($breakpoint)
26
+ +assign-margin-padding($direction, $property, $n-px)
27
+ @else if $scope == down
28
+ +media-breakpoint-down($breakpoint)
29
+ +assign-margin-padding($direction, $property, $n-px)
30
+ @else if $scope == only
31
+ +media-breakpoint-only($breakpoint)
32
+ +assign-margin-padding($direction, $property, $n-px)
33
+ @else
34
+ .is-#{$property}-#{$direction}-#{$n}
35
+ +assign-margin-padding($direction, $property, $n-px)
data/bower.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oulu",
3
- "version": "0.12.11",
3
+ "version": "0.12.12",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
data/lib/oulu/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Oulu
2
- VERSION = "0.12.11"
2
+ VERSION = "0.12.12"
3
3
  end
data/lib/oulu.rb CHANGED
@@ -13,6 +13,15 @@ unless defined?(Sass)
13
13
  end
14
14
 
15
15
  module Oulu
16
+ @components ||= []
17
+ class << self
18
+ attr_accessor :components
19
+
20
+ def load_paths
21
+ components.flat_map(&:load_paths)
22
+ end
23
+ end
24
+
16
25
  if defined?(Rails) && defined?(Rails::Engine)
17
26
  class Engine < ::Rails::Engine
18
27
  require 'oulu/engine'
data/oulu.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Oulu::VERSION
9
9
  spec.authors = ["machida"]
10
10
  spec.email = ["machidanohimitsu@gmail.com"]
11
- spec.description = %q{This gem provides assets files for Middleman Project.}
12
- spec.summary = %q{My assets gem for middleman.}
11
+ spec.description = %q{Sass mixins.}
12
+ spec.summary = %q{Sass mixins.}
13
13
  spec.homepage = ""
14
14
  spec.license = "MIT"
15
15
 
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oulu",
3
- "version": "0.12.11",
3
+ "version": "0.12.12",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "type": "git",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oulu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.11
4
+ version: 0.12.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - machida
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-09 00:00:00.000000000 Z
11
+ date: 2016-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- description: This gem provides assets files for Middleman Project.
41
+ description: Sass mixins.
42
42
  email:
43
43
  - machidanohimitsu@gmail.com
44
44
  executables: []
@@ -62,6 +62,8 @@ files:
62
62
  - app/assets/stylesheets/helpers/_border.sass
63
63
  - app/assets/stylesheets/helpers/_font-awsome.sass
64
64
  - app/assets/stylesheets/helpers/_margin-padding.sass
65
+ - app/assets/stylesheets/helpers/_margin.sass
66
+ - app/assets/stylesheets/helpers/_padding.sass
65
67
  - app/assets/stylesheets/helpers/_position.sass
66
68
  - app/assets/stylesheets/helpers/_typoglaphy.sass
67
69
  - app/assets/stylesheets/helpers/_visibility.sass
@@ -189,6 +191,6 @@ rubyforge_project:
189
191
  rubygems_version: 2.5.1
190
192
  signing_key:
191
193
  specification_version: 4
192
- summary: My assets gem for middleman.
194
+ summary: Sass mixins.
193
195
  test_files: []
194
196
  has_rdoc: