patterns 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,18 +1,31 @@
1
- @mixin center {
1
+ @mixin horizontally_center {
2
2
  margin: 0px auto;
3
3
  }
4
- @mixin center_container {
4
+ @mixin horizontal_center_container {
5
5
  text-align: center;
6
6
  & > * {
7
7
  margin: 0px auto;
8
8
  text-align: left;
9
9
  }
10
10
  }
11
+
12
+ // http://www.jakpsatweb.cz/css/css-vertical-center-solution.html
13
+ @mixin vertical_center_container {
14
+ display: table;
15
+ position: static;
16
+
17
+ & > * {
18
+ display: table-cell;
19
+ vertical-align: middle;
20
+ width: 100%;
21
+ }
22
+ }
23
+
11
24
  /*
12
25
  http://css-tricks.com/centering-in-the-unknown/
13
26
  Changes the parent
14
27
  */
15
- @mixin center_container_unknown {
28
+ @mixin center_container {
16
29
  text-align: center;
17
30
  &:before {
18
31
  content: '';
@@ -1,3 +1,3 @@
1
1
  module Patterns
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
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-23 00:00:00.000000000 Z
12
+ date: 2012-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass