compass-placeholders 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df8eb5f7eb5c6fde2552d6a8b0dbbc5487cc7c19
4
- data.tar.gz: 1841da81061f1e00080bd75382cb974ee99a6235
3
+ metadata.gz: 1bd91630cf76e05cdcb7f7212f41da2e63559a0b
4
+ data.tar.gz: 43eccf397f4cf905568251df3a45cecb88af6c8b
5
5
  SHA512:
6
- metadata.gz: b3f824113da19761ea039e34a2041da1ccdd4c5d46da0da6c752b943dabced6b601a98a4b20677bc9362b252a6d6d19c5c0fb765b91c1435d265d2ccf8626056
7
- data.tar.gz: 2770756488c13b18eb068411d68f726ea960abc9ce0f27bb85013c31e7404462321aae30d92049b9288308272bbc2f46fd828545d4fc05d029a12fe41507f75a
6
+ metadata.gz: 12aadb0ffa96c8e782e21df32ca7ca2bed6fe8b9da6f46a7109cb872d99e6f5bdc96626b9217816e09c08a48fda3933a42eb0f518305ec867b7a11055d2e1fb4
7
+ data.tar.gz: f57eb6d744c4d0ce8728a21d1a68c492000fe1b89e6fa0065d0b85209dd2179273cf23f0da00a7f6740e788ddd783f6f4ea3b359611a512a9ba32f876b93b249
data/README.md CHANGED
@@ -333,6 +333,12 @@ Non Compass-related Placeholders
333
333
  ~~~
334
334
 
335
335
 
336
+ ### Vertical Align
337
+ See [this blog post](http://zerosixthree.se/vertical-align-anything-with-just-3-lines-of-css/) for details.
338
+ ~~~ scss
339
+ @extend %vertical-align;
340
+ ~~~
341
+
336
342
 
337
343
  Using Customized Placeholders
338
344
  -----------------------------
@@ -1,3 +1,3 @@
1
1
  module CompassPlaceholders
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -3,3 +3,4 @@
3
3
  @import "utilities/display";
4
4
  @import "utilities/cursor";
5
5
  @import "utilities/float";
6
+ @import "utilities/vertical-align";
@@ -0,0 +1,6 @@
1
+ %vertical-align {
2
+ position: relative;
3
+ top: 50%;
4
+ @include transform(translateY(-50%));
5
+ }
6
+
@@ -0,0 +1,14 @@
1
+ @import "compass-placeholders";
2
+
3
+ #test {
4
+ @extend %vertical-align;
5
+ }
6
+
7
+ ===
8
+
9
+ #test {
10
+ position: relative;
11
+ top: 50%;
12
+ transform: translateY(-50%);
13
+ }
14
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass-placeholders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nico Hagenburger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-10 00:00:00.000000000 Z
11
+ date: 2014-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: compass
@@ -82,6 +82,7 @@ files:
82
82
  - stylesheets/compass-placeholders/utilities/_display.scss
83
83
  - stylesheets/compass-placeholders/utilities/_float.scss
84
84
  - stylesheets/compass-placeholders/utilities/_resets.scss
85
+ - stylesheets/compass-placeholders/utilities/_vertical-align.scss
85
86
  - test/integration/css3/appearance.scss.test
86
87
  - test/integration/css3/backface-visibility.scss
87
88
  - test/integration/css3/background-clip.scss.test
@@ -104,6 +105,7 @@ files:
104
105
  - test/integration/utilities/display.scss.test
105
106
  - test/integration/utilities/float.scss.test
106
107
  - test/integration/utilities/resets.scss.test
108
+ - test/integration/utilities/vertical-align.scss.test
107
109
  - test/test_helper.rb
108
110
  homepage: ''
109
111
  licenses: []
@@ -151,4 +153,5 @@ test_files:
151
153
  - test/integration/utilities/display.scss.test
152
154
  - test/integration/utilities/float.scss.test
153
155
  - test/integration/utilities/resets.scss.test
156
+ - test/integration/utilities/vertical-align.scss.test
154
157
  - test/test_helper.rb