compass-aura 0.2.2 → 0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -88,9 +88,9 @@
88
88
 
89
89
  $col-total: col-total();
90
90
  $gutter-col-grid: gutter-col-grid($col-total);
91
- $col-width: col-width($gutter-col-grid);
91
+ $column-width: col-width($gutter-col-grid);
92
92
  $gutter-width: gutter-width($gutter-col-grid);
93
- $side-gutter-width: $gutter-width;
93
+ $grid-padding: $gutter-width;
94
94
 
95
95
  $aura-breakpoints: join($aura-breakpoints, columns-width() * $scale-ratio);
96
96
 
@@ -147,14 +147,14 @@
147
147
 
148
148
  @if $length == 2 {
149
149
  @if $num == 0 {
150
- $total-cols: $main-content-cols;
150
+ $total-columns: $main-content-cols;
151
151
  @return 0;
152
152
  }
153
153
  @else if $num == 1 {
154
- @return $total-cols - $main-content-cols;
154
+ @return $total-columns - $main-content-cols;
155
155
  }
156
156
  @else if $num == 2 {
157
- $remainder: $total-cols - $main-content-cols;
157
+ $remainder: $total-columns - $main-content-cols;
158
158
  $floor: floor($remainder / 2);
159
159
  $extra: $remainder - $floor;
160
160
  $big: '';
@@ -192,15 +192,15 @@
192
192
  }
193
193
 
194
194
  @if $num == 0 {
195
- $total-cols: $main-content-cols;
195
+ $total-columns: $main-content-cols;
196
196
  @return 0;
197
197
  }
198
198
  @else if $num == 1 {
199
- $total-cols: $main-content-cols + $sidebar-width;
199
+ $total-columns: $main-content-cols + $sidebar-width;
200
200
  @return $sidebar-width;
201
201
  }
202
202
  @else if $num == 2 {
203
- $total-cols: $main-content-cols + 2 * $sidebar-width;
203
+ $total-columns: $main-content-cols + 2 * $sidebar-width;
204
204
  @return $sidebar-width;
205
205
  }
206
206
  }
@@ -218,11 +218,11 @@
218
218
  }
219
219
 
220
220
  @if $num == 0 {
221
- $total-cols: $main-content-cols;
221
+ $total-columns: $main-content-cols;
222
222
  @return 0;
223
223
  }
224
224
  @else if $num > 1 {
225
- $total-cols: $main-content-cols + $sidebar-1-width + $sidebar-2-width;
225
+ $total-columns: $main-content-cols + $sidebar-1-width + $sidebar-2-width;
226
226
 
227
227
  $big: '';
228
228
  $small: '';
@@ -31,22 +31,21 @@
31
31
  $measure: $measure-width;
32
32
  }
33
33
 
34
- // Set up sidebars now as sidebars can affect $total-cols
34
+ // Set up sidebars now as sidebars can affect $total-columns
35
35
  %primary-sidebar {
36
- @include columns($total-cols, $total-cols);
37
- margin-left: gutter();
36
+ clear: both;
38
37
 
39
38
  // Single column debugging for mobile-first design!
40
39
  @if $single-column == false {
41
40
  @include respond-to('small') {
42
- margin-left: 0;
43
- @include columns(sidebar-width());
41
+ clear: none;
42
+ @include span-columns(sidebar-width());
44
43
  }
45
44
 
46
45
  @if nth($sidebars, 2) == 'left' or nth($sidebars, 2) == 'both'{
47
46
  float: none;
48
47
  @include respond-to('small') {
49
- @include alpha();
48
+ ;
50
49
  float: left;
51
50
  }
52
51
  }
@@ -55,8 +54,7 @@
55
54
  @include respond-to('small') {
56
55
  float: left;
57
56
  @if nth($sidebars, 1) == 1 {
58
- margin-left: 0;
59
- margin-right: gutter();
57
+ @include omega;
60
58
  }
61
59
  }
62
60
  }
@@ -74,16 +72,17 @@
74
72
  float: none;
75
73
  }
76
74
  }
75
+ ;
76
+
77
77
 
78
78
  %secondary-sidebar {
79
- @include columns($total-cols, $total-cols);
80
- margin-left: gutter();
81
-
79
+ // @include span-columns($total-columns);
80
+ clear: both;
82
81
  // Single column debugging for mobile-first design!
83
82
  @if $single-column == false {
84
83
  @include respond-to('small') {
85
- margin-left: 0;
86
- @include columns(sidebar-width($overflow: false));
84
+ clear: none;
85
+ @include span-columns(sidebar-width($overflow: false));
87
86
  }
88
87
 
89
88
  @if nth($sidebars, 2) == 'left' {
@@ -96,14 +95,14 @@
96
95
  float: none;
97
96
  @include respond-to('small') {
98
97
  float: right;
99
- margin-left: 0;
100
- margin-right: gutter();
98
+ @include omega;
101
99
  }
102
100
  }
103
101
  @else if nth($sidebars, 2) == 'both' {
104
102
  float: none;
105
103
  @include respond-to('small') {
106
104
  float: right;
105
+ // Need to fake "pull" for this column in order to work
107
106
  margin-right: -1 * (columns($main-content-cols) + columns(sidebar-width($overflow: false)) + gutter());
108
107
  }
109
108
  }
@@ -123,18 +122,18 @@
123
122
  // If there's a width, figure out body-font-size for width
124
123
  @if $width {
125
124
  $width-em: px-em($width);
126
- $sub-col: $width-em / ($total-cols * gutter-col-total() + nth($gutter-to-col, 1));
127
- $col-width: $sub-col * nth($gutter-to-col, 2);
125
+ $sub-col: $width-em / ($total-columns * gutter-col-total() + nth($gutter-to-col, 1));
126
+ $column-width: $sub-col * nth($gutter-to-col, 2);
128
127
  $gutter-width: $sub-col * nth($gutter-to-col, 1);
129
- $side-gutter-width: $gutter-width;
128
+ $grid-padding: $gutter-width;
130
129
  }
131
130
  @else {
132
131
  $col-total: col-total();
133
132
  $gutter-col-total: gutter-col-total();
134
133
  $gutter-col-grid: gutter-col-grid($col-total);
135
- $col-width: col-width($gutter-col-grid);
134
+ $column-width: col-width($gutter-col-grid);
136
135
  $gutter-width: gutter-width($gutter-col-grid);
137
- $side-gutter-width: $gutter-width;
136
+ $grid-padding: $gutter-width;
138
137
  }
139
138
 
140
139
  // Set Root Em
@@ -177,53 +176,43 @@
177
176
 
178
177
  // Create Measure class to be extended
179
178
  %measure {
180
- @include full;
179
+ clear: both;
181
180
 
182
181
  // Single column debugging for mobile-first design!
183
182
  @if $single-column == false {
184
183
  @include respond-to('small') {
185
- @include columns($main-content-cols);
184
+ clear: none;
185
+ @include span-columns($main-content-cols);
186
186
  }
187
187
  @if nth($sidebars, 2) == 'left'{
188
188
  float: none;
189
189
  @include respond-to('small') {
190
- float: right;
190
+ @include omega;
191
+ margin-right: 0;
191
192
  }
192
193
  }
193
194
  @else if nth($sidebars, 2) == 'both' {
194
195
  float: none;
195
196
  @include respond-to('small') {
196
197
  float: right;
197
- @include alpha;
198
- margin-left: 0;
199
- margin-right: columns(sidebar-width($overflow: false)) + gutter() + gutter();
198
+ @include push(2, $from: 'right');
200
199
  }
201
200
  }
202
201
  @else if nth($sidebars, 2) == 'right' {
203
202
  float: none;
204
203
  @include respond-to('small') {
205
- @include alpha();
206
204
  float: left;
207
205
  }
208
206
  }
209
207
  @else if nth($sidebars, 2) == 'none' {
210
208
  float: none;
211
209
  @include respond-to('small') {
212
- @include alpha();
213
210
  float: left;
214
211
  }
215
212
  }
216
213
  @else {
217
214
  @warn 'Sidebar side can only have a value of left, right, both, or none';
218
215
  }
219
-
220
- // Add in "Omega"
221
- @if nth($sidebars, 2) == 'left' {
222
- @include respond-to('small') {
223
- margin-left: 0;
224
- margin-right: gutter();
225
- }
226
- }
227
216
  }
228
217
  }
229
218
 
@@ -3,7 +3,7 @@
3
3
  //////////////////////////////
4
4
  // Basic Options.
5
5
  $body-font-size: 16px !default;
6
- $total-cols: 12 !default;
6
+ $total-columns: 12 !default;
7
7
  $main-content-cols: 9 !default;
8
8
  $font-scale: true !default;
9
9
  $obj-scale: true !default;
metadata CHANGED
@@ -4,9 +4,8 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 2
8
- - 2
9
- version: 0.2.2
7
+ - 3
8
+ version: "0.3"
10
9
  platform: ruby
11
10
  authors:
12
11
  - Sam Richard
@@ -14,7 +13,7 @@ autorequire:
14
13
  bindir: bin
15
14
  cert_chain: []
16
15
 
17
- date: 2011-04-26 00:00:00 -04:00
16
+ date: 2011-05-14 00:00:00 -04:00
18
17
  default_executable:
19
18
  dependencies:
20
19
  - !ruby/object:Gem::Dependency
@@ -32,16 +31,18 @@ dependencies:
32
31
  type: :runtime
33
32
  version_requirements: *id001
34
33
  - !ruby/object:Gem::Dependency
35
- name: compass-susy-plugin
34
+ name: susy
36
35
  prerelease: false
37
36
  requirement: &id002 !ruby/object:Gem::Requirement
38
37
  requirements:
39
38
  - - ">="
40
39
  - !ruby/object:Gem::Version
41
40
  segments:
41
+ - 1
42
+ - 0
43
+ - rc
42
44
  - 0
43
- - 9
44
- version: "0.9"
45
+ version: 1.0.rc.0
45
46
  type: :runtime
46
47
  version_requirements: *id002
47
48
  - !ruby/object:Gem::Dependency
@@ -58,7 +59,7 @@ dependencies:
58
59
  version: 0.1.8
59
60
  type: :runtime
60
61
  version_requirements: *id003
61
- description: Typography based Responsive Framework utilizing Susy and Modular Scale.
62
+ description: Responsive Framework utilizing Susy and Modular Scale.
62
63
  email:
63
64
  - snugug@gmail.com
64
65
  executables: []
@@ -103,6 +104,6 @@ rubyforge_project: compass-aura
103
104
  rubygems_version: 1.3.6
104
105
  signing_key:
105
106
  specification_version: 3
106
- summary: Typography based Responsive Framework.
107
+ summary: Responsive Framework for Compass.
107
108
  test_files: []
108
109