stratum 0.3.3 → 0.3.5

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.
@@ -2,6 +2,7 @@
2
2
  @import "css3/animation";
3
3
  @import "css3/border-radius";
4
4
  @import "css3/box-sizing";
5
+ @import "css3/calc";
5
6
  @import "css3/columns";
6
7
  @import "css3/flex";
7
8
  @import "css3/transform";
@@ -1,7 +1,7 @@
1
1
  // Helper mixins
2
- @import "helpers/vendor-prefix";
2
+ @import "helpers/box";
3
3
  @import "helpers/group";
4
4
  @import "helpers/icons";
5
5
  @import "helpers/position";
6
- @import "helpers/box";
7
6
  @import "helpers/triangle";
7
+ @import "helpers/vendor-prefix";
@@ -19,7 +19,7 @@ $scaffolding-debug: true !default; // Highlight disabled features
19
19
  @import "layout/grid";
20
20
 
21
21
  // Forms
22
- @import "forms/input-placeholder";
22
+ @import "forms/placeholder";
23
23
 
24
24
  // Icons
25
25
  $stratum-icons: $stratum-dingbats !default;
@@ -0,0 +1,33 @@
1
+ // Calculate CSS unit values
2
+ // -------------------------
3
+
4
+ // Vendor prefixes:
5
+ // - Chrome < 26
6
+ // - iOS 6
7
+ // - Safari 6
8
+ // - Blackberry 10
9
+ // - Firefox 4+
10
+
11
+ // No prefixes
12
+ // - Chrome 26+
13
+ // - Firefox 16+
14
+ // - IE 9+
15
+
16
+ // Not compatible
17
+ // - Opera
18
+ // - Opera Mini
19
+ // - Android browser
20
+
21
+
22
+ // Usage: `@include calc(width, "100% - 40px", 90%)`
23
+
24
+ @mixin calc($property, $expression, $fallback: null) {
25
+ $-expression: unquote($expression);
26
+
27
+ @if($fallback) {
28
+ #{$property}: $fallback;
29
+ }
30
+ #{$property}: -moz-calc(#{$-expression});
31
+ #{$property}: -webkit-calc(#{$-expression});
32
+ #{$property}: calc(#{$-expression});
33
+ }
@@ -1,7 +1,7 @@
1
1
  // Form related mixins
2
2
  // ============================================================================
3
3
 
4
- @mixin input-placeholder {
4
+ @mixin placeholder {
5
5
  &::-webkit-input-placeholder {
6
6
  @content;
7
7
  }
@@ -1,3 +1,3 @@
1
1
  module Stratum
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stratum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-09 00:00:00.000000000 Z
12
+ date: 2013-03-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
16
- requirement: &70228562652640 !ruby/object:Gem::Requirement
16
+ requirement: &70317771982500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70228562652640
24
+ version_requirements: *70317771982500
25
25
  description: Stratum is a collection of SASS mixins and utilities for your web development
26
26
  needs.
27
27
  email: tyom@semonov.com
@@ -40,12 +40,13 @@ files:
40
40
  - assets/stylesheets/css3/_animation.scss
41
41
  - assets/stylesheets/css3/_border-radius.scss
42
42
  - assets/stylesheets/css3/_box-sizing.scss
43
+ - assets/stylesheets/css3/_calc.scss
43
44
  - assets/stylesheets/css3/_columns.scss
44
45
  - assets/stylesheets/css3/_flex.scss
45
46
  - assets/stylesheets/css3/_transform.scss
46
47
  - assets/stylesheets/css3/_transition.scss
47
48
  - assets/stylesheets/css3/_user-select.scss
48
- - assets/stylesheets/forms/_input-placeholder.scss
49
+ - assets/stylesheets/forms/_placeholder.scss
49
50
  - assets/stylesheets/helpers/_box.scss
50
51
  - assets/stylesheets/helpers/_dimensions.scss
51
52
  - assets/stylesheets/helpers/_group.scss