compass-aurora 0.9.3 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/lib/aurora.rb +2 -2
  2. data/templates/parmesan/README_PARTIALS.md +82 -0
  3. data/templates/parmesan/README_SASS.md +55 -0
  4. data/templates/parmesan/_base.scss +28 -0
  5. data/templates/parmesan/_basic_page.scss +10 -0
  6. data/templates/parmesan/_comment.scss +6 -0
  7. data/templates/parmesan/_content.scss +9 -0
  8. data/templates/parmesan/_defaults.scss +8 -0
  9. data/templates/parmesan/_footer.scss +7 -0
  10. data/templates/parmesan/_forms.scss +62 -0
  11. data/templates/parmesan/_global.scss +7 -0
  12. data/templates/parmesan/_header.scss +7 -0
  13. data/templates/parmesan/_node.scss +6 -0
  14. data/templates/parmesan/_page.scss +11 -0
  15. data/templates/parmesan/_sidebar_first.scss +7 -0
  16. data/templates/parmesan/_sidebar_second.scss +7 -0
  17. data/templates/parmesan/_type.scss +125 -0
  18. data/templates/parmesan/_variables.scss +153 -0
  19. data/templates/parmesan/_view.scss +6 -0
  20. data/templates/parmesan/maintenance.scss +31 -0
  21. data/templates/parmesan/manifest.rb +66 -0
  22. data/templates/parmesan/print.scss +16 -0
  23. data/templates/{shared/ie.scss → parmesan/style.scss} +15 -10
  24. data/templates/project/manifest.rb +10 -7
  25. data/templates/shared/README-Sass.md +54 -0
  26. data/templates/shared/{print.scss → _print.scss} +0 -0
  27. data/templates/shared/aurora.info.erb +13 -9
  28. data/templates/shared/config.rb.erb +17 -18
  29. data/templates/shared/modernizr.js +1118 -0
  30. data/templates/shared/style.scss +5 -1
  31. data/templates/shared/template.php.erb +169 -7
  32. data/templates/singularity/manifest.rb +10 -7
  33. data/templates/susy/manifest.rb +10 -7
  34. metadata +28 -9
  35. data/templates/shared/_ie-design.scss +0 -9
  36. data/templates/shared/_ie-layout.scss +0 -9
  37. data/templates/shared/_ie-style-guide.scss +0 -10
  38. data/templates/shared/modernizr-2.5.3.js +0 -726
@@ -0,0 +1,153 @@
1
+ ////////////////////////
2
+ // Variables Partials
3
+ //
4
+ // All of your variables should go in this file.
5
+ ////////////////////////
6
+
7
+
8
+ //
9
+ // Legacy IE support
10
+ //
11
+ // These variables are used by many mixins to add additional CSS to support
12
+ // specific versions of IE or specific vendor prefixes.
13
+ //
14
+ // To turn on support for IE6 or IE7, set those variables to true.
15
+ //
16
+ // Zen does not require special handling for IE8 or later. But Compass uses that
17
+ // variable for a couple edge cases. We include it for completeness sake. See
18
+ // the documentation at http://compass-style.org/reference/compass/support/
19
+ $legacy-support-for-ie6: false;
20
+ $legacy-support-for-ie7: false;
21
+ $legacy-support-for-ie8: true;
22
+
23
+
24
+ //
25
+ // Font faces, stacks and sizes.
26
+ //
27
+
28
+ // Compass' vertical_rhythm extension is a powerful tool to set up a vertical
29
+ // rhythm for your entire page. You can see some of its mixins and functions in
30
+ // use in the normalize.scss file.
31
+ // @see http://compass-style.org/reference/compass/typography/vertical_rhythm/
32
+
33
+ $base-font-size: 16px; // The font size set on the root html element.
34
+ $base-line-height: 24px; // This line-height determines the basic unit of vertical rhythm.
35
+
36
+ $h1-font-size: 2 * $base-font-size;
37
+ $h2-font-size: 1.5 * $base-font-size;
38
+ $h3-font-size: 1.17 * $base-font-size;
39
+ $h4-font-size: 1 * $base-font-size;
40
+ $h5-font-size: 0.83 * $base-font-size;
41
+ $h6-font-size: 0.75 * $base-font-size;
42
+
43
+
44
+
45
+ // The following font family declarations are based on the Microsoft core web
46
+ // fonts which are common fonts available on most computer systems. The DejaVu
47
+ // and Nimbus Sans fonts are commonly available on Linux systems where the MS
48
+ // fonts are less common. Tahoma and Helvetica are also widely available.
49
+ //
50
+ // A user's web browser will look at the comma-separated list and will
51
+ // attempt to use each font in turn until it finds one that is available
52
+ // on the user's computer. The final "generic" font (sans-serif, serif or
53
+ // monospace) hints at what type of font to use if the web browser doesn't
54
+ // find any of the fonts in the list.
55
+
56
+ // First, let's create some font stacks.
57
+ $times-new-roman: "Times New Roman", Times, Georgia, "DejaVu Serif", serif;
58
+ $times: Times, "Times New Roman", Georgia, "DejaVu Serif", serif;
59
+ $georgia: Georgia, "Times New Roman", "DejaVu Serif", serif;
60
+
61
+ $verdana: Verdana, Tahoma, "DejaVu Sans", sans-serif;
62
+ $tahoma: Tahoma, Verdana, "DejaVu Sans", sans-serif;
63
+ $helvetica: Helvetica, Arial, "Nimbus Sans L", sans-serif;
64
+ $arial: Arial, Helvetica, "Nimbus Sans L", sans-serif;
65
+
66
+ // Project-specific fonts
67
+ // Put any font families here that are specific to your project.
68
+
69
+
70
+ // For an explanation of why "sans-serif" is at the end of this list, see
71
+ // http://meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/
72
+ $courier: "Courier New", "DejaVu Sans Mono", monospace, sans-serif;
73
+
74
+ // Now create some variables for the font stacks we want to use on this site.
75
+ $base-font-family: $georgia; // The font family set on the html element.
76
+ $font-body: $verdana;
77
+ $font-monospace: $courier;
78
+ $form-font-family: $arial;
79
+
80
+
81
+ //
82
+ // Colors, etc.
83
+ //
84
+
85
+ $white : #FFFFFF;
86
+ $black : #000000;
87
+
88
+ // Standard colors: for standard 4K and other brand colors.
89
+ // Note: these are just for reference, and some brands have multiple colors.
90
+ $color-facebook : #3B5998;
91
+ $color-twitter : #33CCFF;
92
+ $color-youtube : #FF3333;
93
+ $color-pinterest: #990000;
94
+ $color-skype : #12A5F4;
95
+ $color-flickr : #FE0883;
96
+ $color-foursquare: #8FD400;
97
+ $color-instagram: #4E433C;
98
+ $color-linkedin : #4875B4;
99
+ $color-tumblr : #2B4964;
100
+ $color-vimeo : #86B32D;
101
+ $color-google : #D6492C;
102
+ $color-fk : #66B360;
103
+
104
+
105
+ // Base color variables.
106
+ $link : #2090B4;
107
+ $visited : $link;
108
+ $selection-bg : #66B360;
109
+ $selection : $white;
110
+
111
+ // The amount lists, blockquotes and comments are indented.
112
+ $indent-amount: 2em;
113
+
114
+
115
+ // Add Susy responsive layout settings.
116
+ //
117
+ // Susy operates using just five variables listed here. By adjusting these
118
+ // variables, you can instantly change your grid without touching any of
119
+ // the details of your implementation.
120
+ //
121
+ // @see http://susy.oddbird.net/guides/reference/
122
+
123
+ $total-columns : 12;
124
+ $column-width : 4em;
125
+ $gutter-width : 1em;
126
+ $grid-padding : $gutter-width;
127
+
128
+ $show-grid-backgrounds : false;
129
+
130
+
131
+
132
+ // Add respond-to settings.
133
+ //
134
+ // Respond-to allows us to embed media queries directly into each rule that
135
+ // needs it, rather than forcing a developer to place rules for a single
136
+ // component in multiple places depending on the media query they want to
137
+ // affect.
138
+ //
139
+ // @see https://github.com/Snugug/respond-to
140
+ //
141
+ // Listed here are named breakpoints. They can vary in complexity, allowing you to
142
+ // get rid of the cognitive load behind typing and remembering media queries.
143
+ //
144
+ // @see https://github.com/Snugug/respond-to/blob/master/README.md
145
+ // @see https://github.com/canarymason/breakpoint/blob/master/README.markdown
146
+
147
+ $breakpoints: 'smartphone' (300px),
148
+ 'smartphone landscape' (480px),
149
+ 'tablet' (768px),
150
+ 'desktop' (980px),
151
+ 'smartphone only' (320px 767px),
152
+ 'smartphone landscape only' (480px 767px),
153
+ 'tablet only' (768px 979px);
@@ -0,0 +1,6 @@
1
+ /**
2
+ * View partials: Partials for styling nodes.
3
+ */
4
+
5
+
6
+ // @import 'view_name';
@@ -0,0 +1,31 @@
1
+ ////////////////////////
2
+ // Maintenance Page File
3
+ //
4
+ // This file gets turned into maintenance.css.
5
+ // We keep is separate so that you may have custom CSS on the maintenance
6
+ // page if you so wish, and not include your full site's css.
7
+ ////////////////////////
8
+
9
+ ////////////////////////
10
+ // Base Import
11
+ ////////////////////////
12
+ @import 'partials/base/base';
13
+
14
+ ////////////////////////
15
+ // Other partial import
16
+ ////////////////////////
17
+ @import 'partials/global/global';
18
+ @import 'partials/page/header';
19
+ @import 'partials/page/content';
20
+ @import 'partials/page/footer';
21
+
22
+ // Code specifically for the maintenance page.
23
+
24
+ .maintenance-page {
25
+
26
+ // Specifically if the db cannot be reached.
27
+ &.db-offline {
28
+
29
+ }
30
+
31
+ }
@@ -0,0 +1,66 @@
1
+ description "Aurora Base Theme"
2
+ no_configuration_file!
3
+
4
+ # ERB ALL the Drupal files!
5
+ file '../shared/aurora.info.erb', :to => "#{options[:project_name] || File.basename(Compass.configuration.project_path)}.info", :erb => true
6
+
7
+ file '../shared/template.php.erb', :to => "template.php", :erb => true
8
+
9
+ # Add in custom config file.
10
+ file '../shared/config.rb.erb', :to => "config.rb", :erb => true
11
+
12
+ # Stylesheets
13
+ file 'style.scss', :like => :stylesheet, :media => 'screen, projection', :to => 'style.scss'
14
+ file 'maintenance.scss', :like => :stylesheet, :media => 'screen, projection', :to => 'maintenance.scss'
15
+ file 'print.scss', :like => :stylesheet, :media => 'print', :to => 'print.scss'
16
+
17
+ # Base partials: Settings and the like.
18
+ file '_base.scss', :like => :stylesheet, :to => 'partials/base/_base.scss'
19
+ file '_variables.scss', :like => :stylesheet, :to => 'partials/base/_variables.scss'
20
+ file '../shared/_functions.scss', :like => :stylesheet, :to => 'partials/base/_functions.scss'
21
+ file '../shared/_mixins.scss', :like => :stylesheet, :to => 'partials/base/_mixins.scss'
22
+ file '../shared/_extendables.scss', :like => :stylesheet, :to => 'partials/base/_extendables.scss'
23
+
24
+ # Global partials: Form elements, typeface, etc.
25
+ file '_global.scss', :like => :stylesheet, :to => 'partials/global/_global.scss'
26
+ file '_defaults.scss', :like => :stylesheet, :to => 'partials/global/_defaults.scss'
27
+ file '_forms.scss', :like => :stylesheet, :to => 'partials/global/_forms.scss'
28
+ file '_type.scss', :like => :stylesheet, :to => 'partials/global/_type.scss'
29
+
30
+ # Page-based partials: For site-structure-based content.
31
+ file '_page.scss', :like => :stylesheet, :to => 'partials/page/_page.scss'
32
+ file '_header.scss', :like => :stylesheet, :to => 'partials/page/_header.scss'
33
+ file '_content.scss', :like => :stylesheet, :to => 'partials/page/_content.scss'
34
+ file '_sidebar_first.scss', :like => :stylesheet, :to => 'partials/page/_sidebar_first.scss'
35
+ file '_sidebar_second.scss', :like => :stylesheet, :to => 'partials/page/_sidebar_second.scss'
36
+ file '_comment.scss', :like => :stylesheet, :to => 'partials/page/_comment.scss'
37
+ file '_footer.scss', :like => :stylesheet, :to => 'partials/page/_footer.scss'
38
+
39
+ # Node-base partials: For node-content types.
40
+ file '_node.scss', :like => :stylesheet, :to => 'partials/node/_node.scss'
41
+ file '_basic_page.scss', :like => :stylesheet, :to => 'partials/node/_basic_page.scss'
42
+
43
+ # View-based partials: For specific views.
44
+ file '_view.scss', :like => :stylesheet, :to => 'partials/view/_view.scss'
45
+
46
+ # Helpful read-mes for n00bs.
47
+ file 'README_SASS.md', :like => :stylesheet, :to => 'partials/README.md'
48
+ file 'README_PARTIALS.md', :like => :stylesheet, :to => 'README.md'
49
+
50
+ # JavaScript
51
+ file '../shared/hammer.js', :like => :javascript, :to => 'hammer.js'
52
+ file '../shared/loader.js', :like => :javascript, :to => 'loader.js'
53
+ file '../shared/modernizr.js', :like => :javascript, :to => 'modernizr.js'
54
+
55
+ help %Q{
56
+ Please contact Sam Richard with questions:
57
+
58
+ sam@snug.ug
59
+ }
60
+
61
+ welcome_message %Q{
62
+
63
+ Aurora Base Theme using Susy.
64
+
65
+ }
66
+
@@ -0,0 +1,16 @@
1
+ ////////////////////////
2
+ // Print File
3
+ //
4
+ // This file gets turned into print.css.
5
+ // This file is styles specific to Printed files.
6
+ ////////////////////////
7
+
8
+ ////////////////////////
9
+ // Base Import
10
+ ////////////////////////
11
+ @import 'partials/base/base';
12
+
13
+
14
+ ////////////////////////
15
+ // Custom Code
16
+ ////////////////////////
@@ -1,28 +1,33 @@
1
1
  ////////////////////////
2
- // IE File
2
+ // Style File
3
3
  //
4
- // This file gets turned into ie.css. This file should really
4
+ // This file gets turned into style.css. This file should really
5
5
  // hold nothing except for imports of your base, layout, and design
6
6
  // partials, plus the mixins required to kickstart Aura and Style Guide.
7
- // This file is styles specific to IE 8 and below.
8
7
  ////////////////////////
9
8
 
10
9
  ////////////////////////
11
10
  // Base Import
12
11
  ////////////////////////
13
- @import 'partials/global/base';
12
+ @import 'partials/base/base';
14
13
 
15
14
  ////////////////////////
16
- // Import Style Guide
15
+ // Import Global Stylings
17
16
  ////////////////////////
18
- @import 'partials/styleguide/ie-style-guide';
17
+ @import 'partials/global/global';
19
18
 
20
19
  ////////////////////////
21
- // Import Layout
20
+ // Import Page Stylings
22
21
  ////////////////////////
23
- @import 'partials/layout/ie-layout';
22
+ @import 'partials/page/page';
24
23
 
25
24
  ////////////////////////
26
- // Import Design
25
+ // Import Node Stylings
27
26
  ////////////////////////
28
- @import 'partials/design/ie-design';
27
+ @import 'partials/node/node';
28
+
29
+ ////////////////////////
30
+ // Import View Stylings
31
+ ////////////////////////
32
+ @import 'partials/view/view';
33
+
@@ -1,4 +1,11 @@
1
1
  description "Aurora Base Theme"
2
+ no_configuration_file!
3
+
4
+ # Add in custom config file.
5
+ file '../shared/config.rb.erb', :to => "config.rb", :erb => true
6
+
7
+ # Add in README
8
+ file '../shared/README-Sass.md', :to => 'README-Sass.md'
2
9
 
3
10
  # ERB ALL the Drupal files!
4
11
  file '../shared/aurora.info.erb', :to => "#{options[:project_name] || File.basename(Compass.configuration.project_path)}.info", :erb => true
@@ -6,7 +13,7 @@ file '../shared/aurora.info.erb', :to => "#{options[:project_name] || File.basen
6
13
  file '../shared/template.php.erb', :to => "template.php", :erb => true
7
14
 
8
15
  # Stylesheets
9
- file '../shared/style.scss', :like => :stylesheet, :media => 'screen, projection', :to => 'style.scss'
16
+ file '../shared/style.scss', :like => :stylesheet, :media => 'all', :to => 'style.scss'
10
17
 
11
18
  file '_base.scss', :like => :stylesheet, :to => 'partials/global/_base.scss'
12
19
  file '../shared/_variables.scss', :like => :stylesheet, :to => 'partials/global/_variables.scss'
@@ -16,23 +23,19 @@ file '../shared/_extendables.scss', :like => :stylesheet, :to => 'partials/globa
16
23
 
17
24
  file '../shared/_style-guide.scss', :like => :stylesheet, :to => 'partials/styleguide/_style-guide.scss'
18
25
  file '../shared/_print-style-guide.scss', :like => :stylesheet, :to => 'partials/styleguide/_print-style-guide.scss'
19
- file '../shared/_ie-style-guide.scss', :like => :stylesheet, :to => 'partials/styleguide/_ie-style-guide.scss'
20
26
 
21
27
  file '../shared/_layout.scss', :like => :stylesheet, :to => 'partials/layout/_layout.scss'
22
- file '../shared/_ie-layout.scss', :like => :stylesheet, :to => 'partials/layout/_ie-layout.scss'
23
28
  file '../shared/_print-layout.scss', :like => :stylesheet, :to => 'partials/layout/_print-layout.scss'
24
29
 
25
30
  file '../shared/_design.scss', :like => :stylesheet, :to => 'partials/design/_design.scss'
26
- file '../shared/_ie-design.scss', :like => :stylesheet, :to => 'partials/design/_ie-design.scss'
27
31
  file '../shared/_print-design.scss', :like => :stylesheet, :to => 'partials/design/_print-design.scss'
28
32
 
29
- file '../shared/print.scss', :like => :stylesheet, :media => 'print', :to => 'print.scss'
30
- file '../shared/ie.scss', :like => :stylesheet, :media => 'screen, projection', :condition => "lt IE 8", :to => 'ie.scss'
33
+ file '../shared/_print.scss', :like => :stylesheet, :to => '_print.scss'
31
34
 
32
35
  # JavaScript
33
36
  file '../shared/hammer.js', :like => :javascript, :to => 'hammer.js'
34
37
  file '../shared/loader.js', :like => :javascript, :to => 'loader.js'
35
- file '../shared/modernizr-2.5.3.js', :like => :javascript, :to => 'modernizr-2.5.3.js'
38
+ file '../shared/modernizr.js', :like => :javascript, :to => 'modernizr.js'
36
39
 
37
40
  help %Q{
38
41
  Please contact Sam Richard with questions:
@@ -0,0 +1,54 @@
1
+ ABOUT SASS AND COMPASS
2
+ ----------------------
3
+
4
+ Sass is a language that is just normal CSS plus some extra features, like
5
+ variables, nested rules, math, mixins, etc. If your stylesheets are written in
6
+ Sass, helper applications can convert them to standard CSS so that you can
7
+ include the CSS in the normal ways with your theme.
8
+
9
+ To learn more about Sass, visit: http://sass-lang.com
10
+
11
+ Compass is a helper library for Sass. It includes libraries of shared mixins, a
12
+ package manager to add additional extension libraries, and an executable that
13
+ can easily convert Sass files into CSS.
14
+
15
+ To learn more about Compass, visit: http://compass-style.org
16
+
17
+
18
+ DEVELOPING WITH SASS AND COMPASS
19
+ --------------------------------
20
+
21
+ To automatically generate the CSS versions of the scss while you are doing theme
22
+ development, you'll need to tell Compass to "watch" the sass directory so that
23
+ any time a .scss file is changed it will automatically place a generated CSS
24
+ file into your sub-theme's css directory:
25
+
26
+ `compass watch <path to your sub-theme's directory>`
27
+
28
+ If you are already in the root of your sub-theme's directory, you can simply
29
+ type: `compass watch`
30
+
31
+ While using generated CSS with your browser's inspectors, the line numbers it reports will be
32
+ wrong since it will be showing the generated CSS file's line numbers and not the
33
+ line numbers of the source Sass files. By default, Compass will output a comment with what line and what partial the CSS is comming from above the selector. This is useful if you're looking at your CSS file itself, but not as useful if you're trying to debug straight from your inspector. If you'd like to debug straight from your inspector, there are two options, one for Google Chrome and one for Firefox.
34
+
35
+ If you are using Firefox, you can install the [FireSass](https://addons.mozilla.org/en-US/firefox/addon/firesass-for-firebug/) plug-in into Firefox. Then, edit your sub-theme's config.rb file so Firesass is true (`firesass = true`) and make sure that `sass_options = :debug_info => true` is enabled (in the example config.rb file, there's a check for whether you're on the development environment). If you are using Google Chrome (currently available in the Canary build, soon in the full version), make sure the Debug Info is enabled as well, go to `about://flags`, Enable Developer Tools experiments, restart Canary, open your inspector, click settings (the gear on the bottom right), open experiments, and check Support for Sass.
36
+
37
+
38
+ MOVING YOUR CSS TO PRODUCTION
39
+ -----------------------------
40
+
41
+ Once you have finished your sub-theme development and are ready to move your CSS
42
+ files to your production server, you'll need to tell sass to update all your CSS
43
+ files and to compress them (to improve performance). Note: the Compass command
44
+ will only generate CSS for .scss files that have recently changed; in order to
45
+ force it to regenerate all the CSS files, you can use the Compass' clean command
46
+ to delete all the generated CSS files.
47
+
48
+ - Delete all CSS files by running: `compass clean`
49
+ - Edit the config.rb file in your theme's directory and uncomment this line by
50
+ deleting the "#" from the beginnning:
51
+ `#environment = :production`
52
+ - Regenerate all the CSS files by running: `compass compile`
53
+
54
+ And don't forget to turn on Drupal's CSS aggregation. :-)
@@ -4,15 +4,13 @@ core = 7.x
4
4
  base theme = aurora
5
5
 
6
6
  ; Stylesheets
7
- stylesheets[all][] = <%= project_css %>/style.css
8
- stylesheets[print][] = <%= project_css %>/print.css
9
- stylesheets-conditional[lt IE 9][all][] = <%= project_css %>/ie.css
7
+ stylesheets[all][] = css/style.css
10
8
 
11
9
  ; Regions
12
10
  regions[header] = Header
11
+ regions[main_prefix] = Main Region Prefix
13
12
  regions[highlighted] = Highlighted
14
13
  regions[help] = Help
15
- regions[main_prefix] = Main Region Prefix
16
14
  regions[content] = Content
17
15
  regions[sidebar_first] = Primary Sidebar
18
16
  regions[sidebar_second] = Secondary Sidebar
@@ -26,18 +24,24 @@ settings[aurora_enable_chrome_frame] = 1
26
24
  settings[aurora_min_ie_support] = 10
27
25
 
28
26
  ; Optimization Options
29
- settings[aurora_footer_js] = 1
27
+ settings[aurora_remove_core_css] = 0
30
28
  settings[aurora_html_tags] = 1
31
29
 
30
+ ; JavaScript Options
31
+ settings[aurora_footer_js] = 1
32
+ settings[aurora_libraries_head] = 0
33
+ settings[aurora_jquery_cdn] = 0
34
+ settings[aurora_jquery_version] = 1.4.4
35
+
32
36
  ; Toggle Display
33
37
  settings[toggle_logo] = 1
34
38
  settings[toggle_name] = 1
35
- settings[toggle_slogan] = 1
36
- settings[toggle_node_user_picture] = 1
37
- settings[toggle_comment_user_picture] = 1
39
+ settings[toggle_slogan] = 0
40
+ settings[toggle_node_user_picture] = 0
41
+ settings[toggle_comment_user_picture] = 0
38
42
  settings[toggle_comment_user_verification] = 1
39
43
  settings[toggle_favicon] = 1
40
- settings[toggle_breadcrumbs] = 1
44
+ settings[toggle_breadcrumbs] = 0
41
45
 
42
46
  ; Development Options
43
47
  settings[aurora_rebuild_registry] = 1