compass-aura 0.2 → 0.2.1

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.
@@ -13,6 +13,7 @@
13
13
  $body-font-size-pt: bfs('pt');
14
14
 
15
15
  // Default Responsive Ratio if none is set
16
+ // If using font-scale, suggest $major-third ratio. If not, suggest $golden ratio
16
17
  @if not $responsive-ratio {
17
18
  @if $font-scale {
18
19
  $responsive-ratio: $major-third;
@@ -264,8 +265,7 @@ $modular-scale-loaded: false !default;
264
265
  $i: $i + 1;
265
266
  }
266
267
 
267
- // Special case for Breakpoint Length equal to 2, 3, or 4
268
- @if length($breakpoints) >= 2 and length($breakpoints) <= 4 {
268
+ @if $breakpoints != false {
269
269
  // Check to see if the 2nd item is a number. If it is, we've got a single query
270
270
  @if type-of(nth($breakpoints, 2)) == 'number' {
271
271
  // Check to see if the context matches the breakpoint namespace
@@ -290,19 +290,6 @@ $modular-scale-loaded: false !default;
290
290
  }
291
291
  }
292
292
  }
293
- // Else, loop over all of them
294
- @else {
295
- // Loop over each breakpoint and check context
296
- @each $bkpt in $breakpoints {
297
- // If context is correct…
298
- @if $context == nth($bkpt, 1) {
299
- // Call the generator!
300
- @include media-query-gen($bkpt) {
301
- @content;
302
- }
303
- }
304
- }
305
- }
306
293
  }
307
294
 
308
295
  @mixin media-query-gen($bpt) {
@@ -16,7 +16,6 @@ $measure-width: $alphabet-count* $fourth !default;
16
16
  $lh-addition: .3em !default;
17
17
  $responsive-ratio: false !default;
18
18
  $breakpoints: false !default;
19
- // If using font-scale, suggest $major-third ratio. If not, suggest $golden ratio
20
19
  // Bad Options
21
20
  $width: false !default;
22
21
  // Optionally can set width for main grid which will override all other options.
@@ -33,4 +32,4 @@ $body-font-size-percent: false !default;
33
32
  $body-font-size-pt: false !default;
34
33
  $width-em: false !default;
35
34
  $modular-scale-loaded: false !default;
36
- $sizes: 'full' 'large' 'medium' 'small';
35
+ $sizes: 'full' 'large' 'medium' 'small';
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- version: "0.2"
8
+ - 1
9
+ version: 0.2.1
9
10
  platform: ruby
10
11
  authors:
11
12
  - Sam Richard
@@ -13,7 +14,7 @@ autorequire:
13
14
  bindir: bin
14
15
  cert_chain: []
15
16
 
16
- date: 2011-04-25 00:00:00 -04:00
17
+ date: 2011-04-26 00:00:00 -04:00
17
18
  default_executable:
18
19
  dependencies:
19
20
  - !ruby/object:Gem::Dependency