prelude-framework 0.8.6 → 0.8.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZjRmNmEzM2Y5ODAwYzhhNzFmYTZlMzdlYjIzNTIyMjFkNmQ2Y2I1MA==
5
- data.tar.gz: !binary |-
6
- YTMwYjRmZjAwOTQ1ZDE3ODE4NzE2YzM3ZTY5YzI4OTRkY2VmYTkyZg==
2
+ SHA1:
3
+ metadata.gz: cf4067d171ffa49b93816cffb816b22f7d2ac64f
4
+ data.tar.gz: 4f3a86c081706f7a99b03cd5a6ca7bc593a35305
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OThhNzA2YTkxODkwZDRlYzIzMGNhMzU1YTVkZTU4YTdiMTc4MDhlODkxNTdm
10
- YTNjYmFkNTZhYWM4NWViMGVkN2U1MGQ5MGFkOWJlZTY2YzI5NWRhYTYxMTRi
11
- MjNhZmIxN2M0MmZjYjI5NzBlODM2NzUxM2IxZmE1ZDQzNzUwMzY=
12
- data.tar.gz: !binary |-
13
- MGNkMzE5MTJmM2FkZjJhNzA0YzliZTYyNGQ2Y2Y4Njc4MmRmYTBlMmQ4OWFl
14
- NTJlMWQ3MjQ4YmNkYjQxNGJhODMwNWIzMzgxODFhZDFiM2ZjZjMyNjc2YTQ5
15
- ZTU3NTdmZjQzNDUzYTExYTNlODM1NDNmMWMwMjdkNTQ3NmMwMDQ=
6
+ metadata.gz: af748e84f19d34f28215c074a578a24b03d791deed4ab711f8e59589e9e159ebd0c9a8502558b216a1a6bd95c8a89f17c51d550d73984545fdf9133c13bcf651
7
+ data.tar.gz: 2d57746034451de40eced89122bd29db12bb46e6104aae302e5e246e27cca99cae52920224b17316b69d753bdd6b6047578e3b09f2498efb71c7392337e4b353
@@ -1,3 +1,3 @@
1
1
  module Prelude
2
- VERSION = "0.8.6"
2
+ VERSION = "0.8.7"
3
3
  end
data/prelude.gemspec CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency "sass", [">= 3.2.3"]
21
- gem.add_dependency "compass", [">= 0.12.2"]
20
+ gem.add_dependency "sass", [">= 3.3"]
21
+ gem.add_dependency "compass", [">= 1.0.0.alpha"]
22
22
  gem.add_dependency "rake"
23
23
  end
data/scss/prelude.scss CHANGED
@@ -17,7 +17,6 @@
17
17
  // prelude/helpers/display-utilities
18
18
  //
19
19
  // prelude/mixins
20
- // prelude/mixins/rem
21
20
  // prelude/mixins/grid
22
21
  // prelude/mixins/gradients
23
22
  // prelude/mixins/button-style
@@ -4,7 +4,6 @@
4
4
  // =============================================================================
5
5
 
6
6
  @import "mixins/gradients",
7
- "mixins/rem",
8
7
  "mixins/set-font-size",
9
8
  "mixins/button-style",
10
9
  "mixins/grid";
@@ -12,8 +12,7 @@
12
12
  //
13
13
  // =============================================================================
14
14
 
15
- @import "../mixins/button-style",
16
- "../mixins/rem";
15
+ @import "../mixins/button-style";
17
16
 
18
17
  // =============================================================================
19
18
  // 1. Button class
@@ -87,10 +86,10 @@
87
86
  // 3. Sizes
88
87
  // =============================================================================
89
88
 
90
- &.btn--large { @include rem(font-size, $gamma); }
91
- &.btn--medium { @include rem(font-size, $delta); }
92
- &.btn--small { @include rem(font-size, $micro); }
93
- &.btn--tiny { @include rem(font-size, $nano); }
89
+ &.btn--large { font-size: $gamma; }
90
+ &.btn--medium { font-size: $delta; }
91
+ &.btn--small { font-size: $micro; }
92
+ &.btn--tiny { font-size: $nano; }
94
93
  &.btn--expand { width: 100%; }
95
94
 
96
95
 
@@ -10,15 +10,13 @@
10
10
  //
11
11
  // =============================================================================
12
12
 
13
- @import "../mixins/rem";
14
-
15
13
  $mesure: $base-font-size * $base-line-height;
16
14
  $sizes: giga $giga, mega $mega, kilo $kilo, alpha $alpha, beta $beta, gamma $gamma, delta $delta, epsilon $epsilon, zeta $zeta, milli $milli, micro $micro, nano $nano;
17
15
 
18
16
  @each $size in $sizes {
19
17
  .#{nth($size, 1)} {
20
- @include rem(font-size, nth($size, 2));
21
- @include rem(margin-bottom, ($mesure/nth($size, 2)));
18
+ font-size: nth($size, 2);
19
+ margin-bottom: round($mesure/nth($size, 2));
22
20
  }
23
21
  }
24
22
 
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prelude-framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Guillan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-16 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.3
19
+ version: '3.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ! '>='
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.3
26
+ version: '3.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: compass
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ! '>='
31
+ - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.12.2
33
+ version: 1.0.0.alpha
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ! '>='
38
+ - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.12.2
40
+ version: 1.0.0.alpha
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: A robust, extensible and opinionated OOCSS front-end framework built
@@ -105,7 +105,6 @@ files:
105
105
  - scss/prelude/mixins/_each-grid-breakpoint.scss
106
106
  - scss/prelude/mixins/_gradients.scss
107
107
  - scss/prelude/mixins/_grid.scss
108
- - scss/prelude/mixins/_rem.scss
109
108
  - scss/prelude/mixins/_set-font-size.scss
110
109
  - scss/prelude/modules/_buttons.scss
111
110
  - scss/prelude/modules/_forms.scss
@@ -129,17 +128,17 @@ require_paths:
129
128
  - lib
130
129
  required_ruby_version: !ruby/object:Gem::Requirement
131
130
  requirements:
132
- - - ! '>='
131
+ - - '>='
133
132
  - !ruby/object:Gem::Version
134
133
  version: '0'
135
134
  required_rubygems_version: !ruby/object:Gem::Requirement
136
135
  requirements:
137
- - - ! '>='
136
+ - - '>='
138
137
  - !ruby/object:Gem::Version
139
138
  version: '0'
140
139
  requirements: []
141
140
  rubyforge_project:
142
- rubygems_version: 2.1.6
141
+ rubygems_version: 2.2.2
143
142
  signing_key:
144
143
  specification_version: 4
145
144
  summary: A robust, extensible and opinionated OOCSS front-end framework built with
@@ -1,31 +0,0 @@
1
- // =============================================================================
2
- // Pixels to rems
3
- //
4
- // @usage: @include rem(property, value-in-pixels)
5
- // @example: @include rem(font-size, 16px); // result: font-size: 16px; font-size: 1rem;
6
- //
7
- // =============================================================================
8
-
9
- @mixin rem($property, $values) {
10
-
11
- // Placeholder variables
12
- $shorthand-px: "";
13
- $shorthand-rem: "";
14
-
15
- // Parameter $values might be a list of elements
16
- @each $value in $values
17
- {
18
- // Current value is a valid number and greater than 0
19
- @if $value != auto and $value != 0 {
20
- $shorthand-px: #{ $shorthand-px + " " + $value };
21
- $shorthand-rem: #{ $shorthand-rem + " " + ($value / $base-font-size) + rem };
22
- } @else {
23
- // Add only 'auto' or 0 to the placeholder variables
24
- $shorthand-px: #{ $shorthand-px + " " + $value };
25
- $shorthand-rem: #{ $shorthand-rem + " " + $value };
26
- }
27
- }
28
- // Output the property in px and rems
29
- #{$property}: $shorthand-px;
30
- #{$property}: $shorthand-rem;
31
- }