bourbon 3.2.0.beta.1 → 3.2.0.beta.2

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: 76c3e5482cfe076cc5ce6cb6d6ffa24bc3bf47aa
4
- data.tar.gz: 7e1407b0d99e0a73bbf35f3f77dc42fd61596ea8
3
+ metadata.gz: a0958f38cd9506facf93fca9a2c5e4c45fa7166e
4
+ data.tar.gz: 85c6ab26901bf27586813cadf3e56d922c08b621
5
5
  SHA512:
6
- metadata.gz: caac802aa0c0f9a39fca9494475a82be089b075399db9a80911550ab347c2d7af50d1e511e0a8bc228b73b4e22b206e8da913b193cd5ddf885d5e55fbb86637f
7
- data.tar.gz: 92080aaad7f91365d5df6f1d86a34f7599eda95a392f60c28043a13fb5aae4d72341454fb89ca7e197b8de9edf694007566e13852eeeec0c00a972e5b5e3ab7c
6
+ metadata.gz: f2308618607f69486ed61b29141b44d6aa7ebb91f7e2d5ea0004a86aa5e31af19f6a747af1c3d5075f392bccc8acdf0459ed089022f58609d0a823c157485534
7
+ data.tar.gz: c1bc58cf85afb92ba3e99ab68d2ab9ffb810659e084ae8924a365221dbc1ce502dfc419c8b33b15e86125c6e7cd5db72ae907f9cd885172ebfd59ff53d7e589d
@@ -11,6 +11,7 @@
11
11
  @import "helpers/shape-size-stripper";
12
12
 
13
13
  // Custom Functions
14
+ @import "functions/assign";
14
15
  @import "functions/flex-grid";
15
16
  @import "functions/grid-width";
16
17
  @import "functions/golden-ratio";
@@ -20,29 +20,19 @@ $inputs-list: 'input[type="email"]',
20
20
  'input[type="time"]',
21
21
  'input[type="week"]';
22
22
 
23
- $unquoted-inputs-list: ();
24
- @each $input-type in $inputs-list {
25
- $unquoted-inputs-list: append($unquoted-inputs-list, unquote($input-type), comma) !global;
26
- }
27
-
28
- $all-text-inputs: $unquoted-inputs-list;
29
-
23
+ // Bare inputs
24
+ //************************************************************************//
25
+ $all-text-inputs: assign-inputs($inputs-list);
30
26
 
31
27
  // Hover Pseudo-class
32
28
  //************************************************************************//
33
- $all-text-inputs-hover: ();
34
- @each $input-type in $unquoted-inputs-list {
35
- $input-type-hover: $input-type + ":hover";
36
- $all-text-inputs-hover: append($all-text-inputs-hover, $input-type-hover, comma) !global;
37
- }
29
+ $all-text-inputs-hover: assign-inputs($inputs-list, hover);
38
30
 
39
31
  // Focus Pseudo-class
40
32
  //************************************************************************//
41
- $all-text-inputs-focus: ();
42
- @each $input-type in $unquoted-inputs-list {
43
- $input-type-focus: $input-type + ":focus";
44
- $all-text-inputs-focus: append($all-text-inputs-focus, $input-type-focus, comma) !global;
45
- }
33
+ $all-text-inputs-focus: assign-inputs($inputs-list, focus);
34
+
35
+
46
36
 
47
37
  // You must use interpolation on the variable:
48
38
  // #{$all-text-inputs}
@@ -65,37 +55,23 @@ $inputs-button-list: 'input[type="button"]',
65
55
  'input[type="reset"]',
66
56
  'input[type="submit"]';
67
57
 
68
- $unquoted-inputs-button-list: ();
69
- @each $input-type in $inputs-button-list {
70
- $unquoted-inputs-button-list: append($unquoted-inputs-button-list, unquote($input-type), comma);
71
- }
72
-
73
- $all-button-inputs: $unquoted-inputs-button-list;
74
-
58
+ // Bare inputs
59
+ //************************************************************************//
60
+ $all-button-inputs: assign-inputs($inputs-button-list);
75
61
 
76
62
  // Hover Pseudo-class
77
63
  //************************************************************************//
78
- $all-button-inputs-hover: ();
79
- @each $input-type in $unquoted-inputs-button-list {
80
- $input-type-hover: $input-type + ":hover";
81
- $all-button-inputs-hover: append($all-button-inputs-hover, $input-type-hover, comma);
82
- }
64
+ $all-button-inputs-hover: assign-inputs($inputs-button-list, hover);
83
65
 
84
66
  // Focus Pseudo-class
85
67
  //************************************************************************//
86
- $all-button-inputs-focus: ();
87
- @each $input-type in $unquoted-inputs-button-list {
88
- $input-type-focus: $input-type + ":focus";
89
- $all-button-inputs-focus: append($all-button-inputs-focus, $input-type-focus, comma);
90
- }
68
+ $all-button-inputs-focus: assign-inputs($inputs-button-list, focus);
91
69
 
92
70
  // Active Pseudo-class
93
71
  //************************************************************************//
94
- $all-button-inputs-active: ();
95
- @each $input-type in $unquoted-inputs-button-list {
96
- $input-type-active: $input-type + ":active";
97
- $all-button-inputs-active: append($all-button-inputs-active, $input-type-active, comma);
98
- }
72
+ $all-button-inputs-active: assign-inputs($inputs-button-list, active);
73
+
74
+
99
75
 
100
76
  // You must use interpolation on the variable:
101
77
  // #{$all-button-inputs}
@@ -37,9 +37,9 @@
37
37
  }
38
38
 
39
39
  @mixin disable-prefix-for-all() {
40
- $prefix-for-webkit: false;
41
- $prefix-for-mozilla: false;
42
- $prefix-for-microsoft: false;
43
- $prefix-for-opera: false;
44
- $prefix-for-spec: false;
40
+ $prefix-for-webkit: false !global;
41
+ $prefix-for-mozilla: false !global;
42
+ $prefix-for-microsoft: false !global;
43
+ $prefix-for-opera: false !global;
44
+ $prefix-for-spec: false !global;
45
45
  }
@@ -8,29 +8,29 @@
8
8
 
9
9
  @if $original-prefix-for-webkit {
10
10
  @include disable-prefix-for-all();
11
- $prefix-for-webkit: true;
11
+ $prefix-for-webkit: true !global;
12
12
  @-webkit-keyframes #{$name} {
13
13
  @content;
14
14
  }
15
15
  }
16
16
  @if $original-prefix-for-mozilla {
17
17
  @include disable-prefix-for-all();
18
- $prefix-for-mozilla: true;
18
+ $prefix-for-mozilla: true !global;
19
19
  @-moz-keyframes #{$name} {
20
20
  @content;
21
21
  }
22
22
  }
23
23
  @if $original-prefix-for-spec {
24
24
  @include disable-prefix-for-all();
25
- $prefix-for-spec: true;
25
+ $prefix-for-spec: true !global;
26
26
  @keyframes #{$name} {
27
27
  @content;
28
28
  }
29
29
  }
30
30
 
31
- $prefix-for-webkit: $original-prefix-for-webkit;
32
- $prefix-for-mozilla: $original-prefix-for-mozilla;
33
- $prefix-for-microsoft: $original-prefix-for-microsoft;
34
- $prefix-for-opera: $original-prefix-for-opera;
35
- $prefix-for-spec: $original-prefix-for-spec;
31
+ $prefix-for-webkit: $original-prefix-for-webkit !global;
32
+ $prefix-for-mozilla: $original-prefix-for-mozilla !global;
33
+ $prefix-for-microsoft: $original-prefix-for-microsoft !global;
34
+ $prefix-for-opera: $original-prefix-for-opera !global;
35
+ $prefix-for-spec: $original-prefix-for-spec !global;
36
36
  }
@@ -1,29 +1,8 @@
1
- $placeholders: '-webkit-input-placeholder',
2
- '-moz-placeholder',
3
- '-ms-input-placeholder';
4
-
5
1
  @mixin placeholder {
2
+ $placeholders: ":-webkit-input" ":-moz" "-moz" "-ms-input";
6
3
  @each $placeholder in $placeholders {
7
- @if $placeholder == "-webkit-input-placeholder" {
8
- &::#{$placeholder} {
9
- @content;
10
- }
11
- }
12
- @else if $placeholder == "-moz-placeholder" {
13
- // FF 18-
14
- &:#{$placeholder} {
15
- @content;
16
- }
17
-
18
- // FF 19+
19
- &::#{$placeholder} {
20
- @content;
21
- }
22
- }
23
- @else {
24
- &:#{$placeholder} {
25
- @content;
26
- }
4
+ &:#{$placeholder}-placeholder {
5
+ @content;
27
6
  }
28
7
  }
29
8
  }
@@ -0,0 +1,11 @@
1
+ @function assign-inputs($inputs, $pseudo: null) {
2
+ $list : ();
3
+
4
+ @each $input in $inputs {
5
+ $input: unquote($input);
6
+ $input: if($pseudo, $input + ":" + $pseudo, $input);
7
+ $list: append($list, $input, comma);
8
+ }
9
+
10
+ @return $list;
11
+ }
data/bourbon.gemspec CHANGED
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Phil LaPier", "Chad Mazzola", "Matt Jankowski", "Nick Quaranto", "Jeremy Raines", "Mike Burns", "Andres Mejia", "Travis Haynes", "Chris Lloyd", "Gabe Berke-Williams", "J. Edward Dewyea", "Reda Lemeden"]
10
10
  s.email = ["support@thoughtbot.com"]
11
+ s.license = 'MIT'
11
12
  s.homepage = "https://github.com/thoughtbot/bourbon"
12
13
  s.summary = "Bourbon Sass Mixins using SCSS syntax."
13
14
  s.description = <<-DESC
@@ -26,7 +27,7 @@ that support only CSS3 prefixed properties.
26
27
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
27
28
  s.require_paths = ["lib"]
28
29
 
29
- s.add_dependency('sass', '>= 3.3.0.rc.1')
30
+ s.add_dependency('sass', '>= 3.3.0.rc.2')
30
31
  s.add_dependency('thor')
31
32
 
32
33
  s.add_development_dependency('aruba', '~> 0.4')
@@ -1,3 +1,3 @@
1
1
  module Bourbon
2
- VERSION = "3.2.0.beta.1"
2
+ VERSION = "3.2.0.beta.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bourbon
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0.beta.1
4
+ version: 3.2.0.beta.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil LaPier
@@ -19,7 +19,7 @@ authors:
19
19
  autorequire:
20
20
  bindir: bin
21
21
  cert_chain: []
22
- date: 2013-11-15 00:00:00.000000000 Z
22
+ date: 2014-01-09 00:00:00.000000000 Z
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
25
25
  name: sass
@@ -27,14 +27,14 @@ dependencies:
27
27
  requirements:
28
28
  - - '>='
29
29
  - !ruby/object:Gem::Version
30
- version: 3.3.0.rc.1
30
+ version: 3.3.0.rc.2
31
31
  type: :runtime
32
32
  prerelease: false
33
33
  version_requirements: !ruby/object:Gem::Requirement
34
34
  requirements:
35
35
  - - '>='
36
36
  - !ruby/object:Gem::Version
37
- version: 3.3.0.rc.1
37
+ version: 3.3.0.rc.2
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: thor
40
40
  requirement: !ruby/object:Gem::Requirement
@@ -136,6 +136,7 @@ files:
136
136
  - app/assets/stylesheets/css3/_transform.scss
137
137
  - app/assets/stylesheets/css3/_transition.scss
138
138
  - app/assets/stylesheets/css3/_user-select.scss
139
+ - app/assets/stylesheets/functions/_assign.scss
139
140
  - app/assets/stylesheets/functions/_flex-grid.scss
140
141
  - app/assets/stylesheets/functions/_golden-ratio.scss
141
142
  - app/assets/stylesheets/functions/_grid-width.scss
@@ -230,7 +231,8 @@ files:
230
231
  - lib/tasks/install.rake
231
232
  - readme.md
232
233
  homepage: https://github.com/thoughtbot/bourbon
233
- licenses: []
234
+ licenses:
235
+ - MIT
234
236
  metadata: {}
235
237
  post_install_message:
236
238
  rdoc_options: []