compass-aurora 1.1 → 1.1.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.
@@ -7,6 +7,6 @@ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
7
7
  Compass::Frameworks.register('aurora', :path => extension_path)
8
8
 
9
9
  module Aurora
10
- VERSION = "1.1"
10
+ VERSION = "1.1.1"
11
11
  DATE = "2013-01-09"
12
12
  end
@@ -19,13 +19,13 @@ file '_base.scss', :like => :stylesheet, :to => 'partials/base/_base.scss'
19
19
  file '_variables.scss', :like => :stylesheet, :to => 'partials/base/_variables.scss'
20
20
  file '../shared/_functions.scss', :like => :stylesheet, :to => 'partials/base/_functions.scss'
21
21
  file '../shared/_mixins.scss', :like => :stylesheet, :to => 'partials/base/_mixins.scss'
22
- file '../shared/_extendables.scss', :like => :stylesheet, :to => 'partials/global/_extendables.scss'
23
22
 
24
23
  # Global partials: Form elements, typeface, etc.
25
24
  file '_global.scss', :like => :stylesheet, :to => 'partials/global/_global.scss'
26
25
  file '_defaults.scss', :like => :stylesheet, :to => 'partials/global/_defaults.scss'
27
26
  file '_forms.scss', :like => :stylesheet, :to => 'partials/global/_forms.scss'
28
27
  file '_type.scss', :like => :stylesheet, :to => 'partials/global/_type.scss'
28
+ file '../shared/_extendables.scss', :like => :stylesheet, :to => 'partials/global/_extendables.scss'
29
29
 
30
30
  # Design partial: Just a place for design elements to be put in.
31
31
  file '_design.scss', :like => :stylesheet, :to => 'partials/design/_design.scss'
@@ -33,10 +33,10 @@ file '_design.scss', :like => :stylesheet, :to => 'partials/design/_design.scss'
33
33
  # Add in READMEs for n00bs.
34
34
  file '../shared/README-Sass.md', :like => :stylesheet, :to => 'README.md'
35
35
  file '../shared/README-Partials.md', :like => :stylesheet, :to => 'partials/README.md'
36
+ file '../shared/README-templates.md', :to => "tpl/README.md", :erb => true
36
37
 
37
38
  # JavaScript
38
39
  file '../shared/hammer.js', :like => :javascript, :to => 'hammer.js'
39
- file '../shared/loader.js', :like => :javascript, :to => 'loader.js'
40
40
 
41
41
  # Git
42
42
  file '../shared/gitignore.txt', :to => ".gitignore", :erb => true
@@ -37,7 +37,6 @@ file '../shared/_print.scss', :like => :stylesheet, :to => '_print.scss'
37
37
 
38
38
  # JavaScript
39
39
  file '../shared/hammer.js', :like => :javascript, :to => 'hammer.js'
40
- file '../shared/loader.js', :like => :javascript, :to => 'loader.js'
41
40
 
42
41
  help %Q{
43
42
  Please contact Sam Richard with questions:
@@ -12,8 +12,8 @@ function <%= project_name %>_preprocess_maintenance_page(&$vars, $hook) {
12
12
  // When a variable is manipulated or added in preprocess_html or
13
13
  // preprocess_page, that same work is probably needed for the maintenance page
14
14
  // as well, so we can just re-use those functions to do that work here.
15
- <%= project_name %>_preprocess_html($variables, $hook);
16
- <%= project_name %>_preprocess_page($variables, $hook);
15
+ // <%= project_name %>_preprocess_html($variables, $hook);
16
+ // <%= project_name %>_preprocess_page($variables, $hook);
17
17
 
18
18
  // This preprocessor will also be used if the db is inactive. To ensure your
19
19
  // theme is used, add the following line to your settings.php file:
@@ -21,6 +21,23 @@ function <%= project_name %>_preprocess_maintenance_page(&$vars, $hook) {
21
21
  // Also, check $vars['db_is_active'] before doing any db queries.
22
22
  }
23
23
 
24
+ /**
25
+ * Implements hook_modernizr_load_alter().
26
+ *
27
+ * @return
28
+ * An array to be output as yepnope testObjects.
29
+ */
30
+ function <%= project_name %>_modernizr_load_alter(&$load) {
31
+
32
+ // We will check for touch events, and if we do load the hammer.js script.
33
+ $load[] = array(
34
+ 'test' => 'Modernizr.touch',
35
+ 'yep' => array('/'. drupal_get_path('theme','<%= project_name %>') . '/<%= project_js %>/hammer.js'),
36
+ );
37
+
38
+ return $load;
39
+ }
40
+
24
41
  /**
25
42
  * Implements hook_preprocess_html()
26
43
  *
@@ -29,9 +46,9 @@ function <%= project_name %>_preprocess_maintenance_page(&$vars, $hook) {
29
46
  * @param $hook
30
47
  * The name of the template being rendered ("html" in this case.)
31
48
  */
49
+ /* -- Delete this line if you want to use this function
32
50
  function <%= project_name %>_preprocess_html(&$vars) {
33
- // yep/nope for conditional JS loading!
34
- drupal_add_js(drupal_get_path('theme', '<%= project_name %>') . '/<%= project_js %>/loader.js');
51
+
35
52
  }
36
53
 
37
54
  /**
@@ -42,8 +59,9 @@ function <%= project_name %>_preprocess_html(&$vars) {
42
59
  * @param $hook
43
60
  * The name of the template being rendered ("page" in this case.)
44
61
  */
62
+ /* -- Delete this line if you want to use this function
45
63
  function <%= project_name %>_preprocess_page(&$vars) {
46
- // Leaving this on by default for the maintainance page preprocessor.
64
+
47
65
  }
48
66
 
49
67
  /**
@@ -36,7 +36,6 @@ file '../shared/_print.scss', :like => :stylesheet, :to => '_print.scss'
36
36
 
37
37
  # JavaScript
38
38
  file '../shared/hammer.js', :like => :javascript, :to => 'hammer.js'
39
- file '../shared/loader.js', :like => :javascript, :to => 'loader.js'
40
39
 
41
40
  # Behaviors
42
41
  file 'behaviors/box-sizing/boxsizing.htc'
@@ -36,7 +36,6 @@ file '../shared/_print.scss', :like => :stylesheet, :to => '_print.scss'
36
36
 
37
37
  # JavaScript
38
38
  file '../shared/hammer.js', :like => :javascript, :to => 'hammer.js'
39
- file '../shared/loader.js', :like => :javascript, :to => 'loader.js'
40
39
 
41
40
  help %Q{
42
41
  Please contact Sam Richard with questions:
metadata CHANGED
@@ -5,7 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 1
8
- version: "1.1"
8
+ - 1
9
+ version: 1.1.1
9
10
  platform: ruby
10
11
  authors:
11
12
  - Sam Richard
@@ -117,7 +118,6 @@ files:
117
118
  - templates/shared/config.rb.erb
118
119
  - templates/shared/gitignore.txt
119
120
  - templates/shared/hammer.js
120
- - templates/shared/loader.js
121
121
  - templates/shared/README-Partials.md
122
122
  - templates/shared/README-Sass.md
123
123
  - templates/shared/README-templates.md
@@ -1,7 +0,0 @@
1
- // For more information on how to use Modernizr.load, see the official docs
2
- // http://modernizr.com/docs/#load
3
-
4
- Modernizr.load({
5
- test: Modernizr.touch,
6
- yep: 'hammer.js'
7
- });