patterns 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,11 @@
1
1
  @mixin center {
2
- text-align: center;
3
2
  margin: 0px auto;
4
3
  }
5
4
  @mixin center_container {
6
5
  text-align: center;
7
6
  & > * {
8
7
  margin: 0px auto;
8
+ text-align: left;
9
9
  }
10
10
  }
11
11
  /*
@@ -6,4 +6,23 @@
6
6
  -moz-background-size: cover;
7
7
  -o-background-size: cover;
8
8
  background-size: cover;
9
+ }
10
+
11
+ @mixin image_background_contaner {
12
+ position:fixed;
13
+ top:-50%;
14
+ left:-50%;
15
+ width:200%;
16
+ height:200%;
17
+
18
+ & > img {
19
+ position:absolute;
20
+ top:0;
21
+ left:0;
22
+ right:0;
23
+ bottom:0;
24
+ margin:auto;
25
+ min-width:50%;
26
+ min-height:50%;
27
+ }
9
28
  }
data/lib/patterns.rb CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  module Patterns
4
4
  if defined?(Rails) && defined?(Rails::Engine)
5
- class Engine < ::Rails::Engine
6
- require 'patterns/engine'
5
+ class Engine < Rails::Engine
6
+ # auto wire
7
7
  end
8
8
  end
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module Patterns
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patterns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-21 00:00:00.000000000 Z
12
+ date: 2012-11-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
@@ -66,7 +66,6 @@ files:
66
66
  - app/assets/stylesheets/widgets/_clean_list.scss
67
67
  - app/assets/stylesheets/widgets/_scroll.scss
68
68
  - lib/patterns.rb
69
- - lib/patterns/engine.rb
70
69
  - lib/patterns/version.rb
71
70
  - patterns.gemspec
72
71
  homepage: ''
@@ -1,6 +0,0 @@
1
- # from https://github.com/thoughtbot/bourbon/blob/master/lib/bourbon/engine.rb
2
- module Patterns
3
- class Engine < Rails::Engine
4
- # auto wire
5
- end
6
- end