compass-aurora-os 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. data/lib/aurora-os.rb +12 -0
  2. data/stylesheets/_aurora.scss +5 -0
  3. data/stylesheets/aurora/_singularity-grid.scss +2 -0
  4. data/stylesheets/aurora/_susy-grid.scss +2 -0
  5. data/stylesheets/aurora/_system.scss +24 -0
  6. data/stylesheets/drupal/_system.scss +19 -0
  7. data/stylesheets/drupal/_vertical-tabs.scss +196 -0
  8. data/templates/arcturus/arcturus.info.erb +69 -0
  9. data/templates/arcturus/manifest.rb +44 -0
  10. data/templates/arcturus/partials/global/_base.scss +24 -0
  11. data/templates/arcturus/partials/layouts/_layouts.scss +6 -0
  12. data/templates/arcturus/partials/modules/_modules.scss +6 -0
  13. data/templates/arcturus/partials/states/_states.scss +6 -0
  14. data/templates/arcturus/partials/styleguide/_style-guide.scss +19 -0
  15. data/templates/arcturus/print.scss +16 -0
  16. data/templates/arcturus/style.scss +41 -0
  17. data/templates/arcturus/template.php.erb +177 -0
  18. data/templates/bower/manifest.rb +20 -0
  19. data/templates/box-sizing/README-behaviors.md +4 -0
  20. data/templates/box-sizing/behaviors/box-sizing/boxsizing.htc +399 -0
  21. data/templates/box-sizing/behaviors/box-sizing/boxsizing.php +23 -0
  22. data/templates/box-sizing/manifest.rb +5 -0
  23. data/templates/corona/maintenance.scss +29 -0
  24. data/templates/corona/manifest.rb +47 -0
  25. data/templates/corona/partials/_base.scss +31 -0
  26. data/templates/corona/partials/_variables.scss +137 -0
  27. data/templates/corona/partials/design/_design.scss +4 -0
  28. data/templates/corona/partials/global/_defaults.scss +3 -0
  29. data/templates/corona/partials/global/_forms.scss +62 -0
  30. data/templates/corona/partials/global/_global.scss +11 -0
  31. data/templates/corona/partials/global/_type.scss +124 -0
  32. data/templates/corona/print.scss +16 -0
  33. data/templates/corona/style.scss +21 -0
  34. data/templates/grunt/manifest.rb +23 -0
  35. data/templates/polaris/manifest.rb +46 -0
  36. data/templates/polaris/partials/global/_base.scss +24 -0
  37. data/templates/polaris/partials/layouts/_layouts.scss +6 -0
  38. data/templates/polaris/partials/modules/_modules.scss +6 -0
  39. data/templates/polaris/partials/states/_states.scss +6 -0
  40. data/templates/polaris/partials/styleguide/_style-guide.scss +19 -0
  41. data/templates/polaris/print.scss +16 -0
  42. data/templates/polaris/style.scss +39 -0
  43. data/templates/project/manifest.rb +46 -0
  44. data/templates/project/partials/design/_design.scss +8 -0
  45. data/templates/project/partials/global/_base.scss +22 -0
  46. data/templates/project/partials/layout/_layout.scss +8 -0
  47. data/templates/project/partials/styleguide/_style-guide.scss +18 -0
  48. data/templates/project/print.scss +16 -0
  49. data/templates/project/style.scss +34 -0
  50. data/templates/shared/Gemfile.txt +16 -0
  51. data/templates/shared/Gruntfile.js.erb +159 -0
  52. data/templates/shared/README-Partials.md +82 -0
  53. data/templates/shared/README-Sass.md +77 -0
  54. data/templates/shared/README-templates.md +3 -0
  55. data/templates/shared/_extendables.scss +22 -0
  56. data/templates/shared/_functions.scss +5 -0
  57. data/templates/shared/_mixins.scss +5 -0
  58. data/templates/shared/_variables.scss +5 -0
  59. data/templates/shared/aurora.info.erb +69 -0
  60. data/templates/shared/bowerrc.txt +3 -0
  61. data/templates/shared/component.json.erb +8 -0
  62. data/templates/shared/config.rb.erb +40 -0
  63. data/templates/shared/editorconfig.txt +21 -0
  64. data/templates/shared/gitignore.txt +2 -0
  65. data/templates/shared/jshintrc.txt +24 -0
  66. data/templates/shared/package.json.erb +19 -0
  67. data/templates/shared/template.php.erb +180 -0
  68. metadata +229 -0
@@ -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';
12
+
13
+
14
+ ////////////////////////
15
+ // Custom Code
16
+ ////////////////////////
@@ -0,0 +1,21 @@
1
+ ////////////////////////
2
+ // Style File
3
+ //
4
+ // This file gets turned into style.css. This file should really hold nothing except for imports of your base, global, and design partials.
5
+ ////////////////////////
6
+
7
+ ////////////////////////
8
+ // Base Import
9
+ ////////////////////////
10
+ @import 'partials/base';
11
+
12
+ ////////////////////////
13
+ // Import Global Stylings
14
+ ////////////////////////
15
+ @import 'partials/global/global';
16
+
17
+ ////////////////////////
18
+ // Import Design Stylings
19
+ ////////////////////////
20
+ @import 'partials/design/design';
21
+
@@ -0,0 +1,23 @@
1
+ description "Aurora Grunt Configuration"
2
+ no_configuration_file!
3
+
4
+ # Grunt's for the Boars
5
+ file '../shared/Gruntfile.js.erb', :to => 'Gruntfile.js', :erb => true
6
+ file '../shared/package.json.erb', :to => 'package.json', :erb => true
7
+ file '../shared/jshintrc.txt', :to => '.jshintrc'
8
+
9
+ help %Q{
10
+ Please contact Sam Richard with questions:
11
+
12
+ sam@snug.ug
13
+ }
14
+
15
+ welcome_message %Q{
16
+ Aurora Grunt Configuration.
17
+
18
+ See http://snugug.github.io/Aurora/ for full documentation.
19
+
20
+ Now run `npm install` to install your Grunt dependencies.
21
+
22
+ You can now simply run `grunt watch` to compile your Sass and start LiveReload.
23
+ }
@@ -0,0 +1,46 @@
1
+ description "Aurora Sub 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', :like => :stylesheet, :to => 'README.md'
9
+ file '../shared/README-Partials.md', :like => :stylesheet, :to => 'partials/README.md'
10
+ file '../shared/README-templates.md', :to => "templates/README.md"
11
+
12
+ # ERB ALL the Drupal files!
13
+ file '../shared/aurora.info.erb', :to => "#{options[:project_name] || File.basename(Compass.configuration.project_path)}.info", :erb => true
14
+
15
+ file '../shared/template.php.erb', :to => "template.php", :erb => true
16
+
17
+ # Stylesheets
18
+ discover :stylesheets
19
+
20
+ file '../shared/_variables.scss', :like => :stylesheet, :to => 'partials/global/_variables.scss'
21
+ file '../shared/_functions.scss', :like => :stylesheet, :to => 'partials/global/_functions.scss'
22
+ file '../shared/_mixins.scss', :like => :stylesheet, :to => 'partials/global/_mixins.scss'
23
+ file '../shared/_extendables.scss', :like => :stylesheet, :to => 'partials/global/_extendables.scss'
24
+
25
+ # Developer Consistency
26
+ file '../shared/Gemfile.txt', :to => 'Gemfile'
27
+ file '../shared/editorconfig.txt', :to => '.editorconfig'
28
+ file '../shared/gitignore.txt', :to => ".gitignore"
29
+
30
+ help %Q{
31
+ Please contact Sam Richard with questions:
32
+
33
+ sam@snug.ug
34
+ }
35
+
36
+ welcome_message %Q{
37
+ Polaris based Aurora Subtheme.
38
+
39
+ See http://snugug.github.io/Aurora/ for full documentation.
40
+
41
+ Please run `bundle install` from inside your new subtheme to install the required dependencies. This will create a Gemfile.lock file, add this to your version control.
42
+
43
+ When you are ready start compiling, run `bundle exec compass watch` instead of simply `compass watch` to ensure you are compiling using your dependent Compass extensions.
44
+
45
+ Alternatively, if you are using Grunt, simply run `grunt watch` to compile and start LiveReload
46
+ }
@@ -0,0 +1,24 @@
1
+ ////////////////////////
2
+ // Base Partials
3
+ //
4
+ // These files will be shared across all three of your output
5
+ // CSS files. Generally included here are only Compass Extension
6
+ // imports and imports for variables, functions, mixins, and extendables.
7
+ //
8
+ // Toolkit imports all of Compass, so there is no need to import it separately.
9
+ ////////////////////////
10
+
11
+ ////////////////////////
12
+ // Compass Extensions
13
+ ////////////////////////
14
+ @import 'singularitygs';
15
+ @import 'toolkit';
16
+ @import 'sassy-buttons';
17
+
18
+ ////////////////////////
19
+ // Private Imports
20
+ ////////////////////////
21
+ @import 'variables';
22
+ @import 'functions';
23
+ @import 'mixins';
24
+ @import 'extendables';
@@ -0,0 +1,6 @@
1
+ ////////////////////////
2
+ // Layouts Partials
3
+ //
4
+ // Your SMACSS Layouts go here
5
+ // Build sub folders and partials in this folder, with everything being imported, in cascading order, into this file.
6
+ ////////////////////////
@@ -0,0 +1,6 @@
1
+ ////////////////////////
2
+ // Module Partials
3
+ //
4
+ // Your SMACSS Modules go here
5
+ // Build sub folders and partials in this folder, with everything being imported, in cascading order, into this file.
6
+ ////////////////////////
@@ -0,0 +1,6 @@
1
+ ////////////////////////
2
+ // States Partials
3
+ //
4
+ // Your SMACSS States go here
5
+ // Build sub folders and partials in this folder, with everything being imported, in cascading order, into this file.
6
+ ////////////////////////
@@ -0,0 +1,19 @@
1
+ ////////////////////////
2
+ // Style Guide Partials
3
+ //
4
+ // Your Style Guide
5
+ // Build sub folders and partials in this folder, with everything being imported, in cascading order, into this file.
6
+ //
7
+ // All Style Guide selectors should go in here, regardless of layout or design (but separating the two in here is a good idea).
8
+ ////////////////////////
9
+
10
+
11
+ //////////////////////////////
12
+ // CSS Resets
13
+ //
14
+ // Choose your CSS Reset method:
15
+ // If you'd like a hard reset, uncomment `compass/reset`.
16
+ // If you'd prefer a soft reset, uncomment `normalize`
17
+ //////////////////////////////
18
+ // @import 'compass/reset';
19
+ // @import 'normalize';
@@ -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/global/base';
12
+
13
+
14
+ ////////////////////////
15
+ // Custom Code
16
+ ////////////////////////
@@ -0,0 +1,39 @@
1
+ ////////////////////////
2
+ // Style File
3
+ //
4
+ // This file gets turned into style.css. This file should really hold nothing except for imports of your base, style guide, layouts, modules, and states partials.
5
+ ////////////////////////
6
+
7
+ //////////////////////////////
8
+ // Legacy Support Setup
9
+ //////////////////////////////
10
+ $legacy-support-for-ie6: false;
11
+ $legacy-support-for-ie7: false;
12
+ $legacy-support-for-ie8: true;
13
+
14
+ $legacy-support-for-mozilla: false;
15
+
16
+ ////////////////////////
17
+ // Base Import
18
+ ////////////////////////
19
+ @import 'partials/global/base';
20
+
21
+ ////////////////////////
22
+ // Import Style Guide
23
+ ////////////////////////
24
+ @import 'partials/styleguide/style-guide';
25
+
26
+ ////////////////////////
27
+ // Import Layouts
28
+ ////////////////////////
29
+ @import 'partials/layouts/layouts';
30
+
31
+ ////////////////////////
32
+ // Import Modules
33
+ ////////////////////////
34
+ @import 'partials/modules/modules';
35
+
36
+ ////////////////////////
37
+ // Import States
38
+ ////////////////////////
39
+ @import 'partials/states/states';
@@ -0,0 +1,46 @@
1
+ description "Aurora Sub 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', :like => :stylesheet, :to => 'README.md'
9
+ file '../shared/README-Partials.md', :like => :stylesheet, :to => 'partials/README.md'
10
+ file '../shared/README-templates.md', :to => "templates/README.md"
11
+
12
+ # ERB ALL the Drupal files!
13
+ file '../shared/aurora.info.erb', :to => "#{options[:project_name] || File.basename(Compass.configuration.project_path)}.info", :erb => true
14
+
15
+ file '../shared/template.php.erb', :to => "template.php", :erb => true
16
+
17
+ # Stylesheets
18
+ discover :stylesheets
19
+
20
+ file '../shared/_variables.scss', :like => :stylesheet, :to => 'partials/global/_variables.scss'
21
+ file '../shared/_functions.scss', :like => :stylesheet, :to => 'partials/global/_functions.scss'
22
+ file '../shared/_mixins.scss', :like => :stylesheet, :to => 'partials/global/_mixins.scss'
23
+ file '../shared/_extendables.scss', :like => :stylesheet, :to => 'partials/global/_extendables.scss'
24
+
25
+ # Developer Consistency
26
+ file '../shared/Gemfile.txt', :to => 'Gemfile'
27
+ file '../shared/editorconfig.txt', :to => '.editorconfig'
28
+ file '../shared/gitignore.txt', :to => ".gitignore"
29
+
30
+ help %Q{
31
+ Please contact Sam Richard with questions:
32
+
33
+ sam@snug.ug
34
+ }
35
+
36
+ welcome_message %Q{
37
+ Aurora Subtheme.
38
+
39
+ See http://snugug.github.io/Aurora/ for full documentation.
40
+
41
+ Please run `bundle install` from inside your new subtheme to install the required dependencies. This will create a Gemfile.lock file, add this to your version control.
42
+
43
+ When you are ready start compiling, run `bundle exec compass watch` instead of simply `compass watch` to ensure you are compiling using your dependent Compass extensions.
44
+
45
+ Alternatively, if you are using Grunt, simply run `grunt watch` to compile and start LiveReload.
46
+ }
@@ -0,0 +1,8 @@
1
+ ////////////////////////
2
+ // Design Partials
3
+ //
4
+ // Separate your Layout from Design
5
+ // Build sub folders and partials in this folder, with everything being imported, in cascading order, into this file.
6
+ //
7
+ // All styling, non box model properties go here
8
+ ////////////////////////
@@ -0,0 +1,22 @@
1
+ ////////////////////////
2
+ // Base Partials
3
+ //
4
+ // These files will be shared across all three of your output CSS files. Generally included here are only Compass Extension imports and imports for variables, functions, mixins, and extendables.
5
+ //
6
+ // Toolkit imports all of Compass, so there is no need to import it separately.
7
+ ////////////////////////
8
+
9
+ ////////////////////////
10
+ // Compass Extensions
11
+ ////////////////////////
12
+ @import 'singularitygs';
13
+ @import 'toolkit';
14
+ @import 'sassy-buttons';
15
+
16
+ ////////////////////////
17
+ // Private Imports
18
+ ////////////////////////
19
+ @import 'variables';
20
+ @import 'functions';
21
+ @import 'mixins';
22
+ @import 'extendables';
@@ -0,0 +1,8 @@
1
+ ////////////////////////
2
+ // Layouts Partials
3
+ //
4
+ // Separate your Layout from Design
5
+ // Build sub folders and partials in this folder, with everything being imported, in cascading order, into this file.
6
+ //
7
+ // All box model properties go here
8
+ ////////////////////////
@@ -0,0 +1,18 @@
1
+ ////////////////////////
2
+ // Style Guide Partials
3
+ //
4
+ // Your Style Guide
5
+ // Build sub folders and partials in this folder, with everything being imported, in cascading order, into this file.
6
+ //
7
+ // All Style Guide selectors should go in here, regardless of layout or design (but separating the two in here is a good idea).
8
+ ////////////////////////
9
+
10
+ //////////////////////////////
11
+ // CSS Resets
12
+ //
13
+ // Choose your CSS Reset method:
14
+ // If you'd like a hard reset, uncomment `compass/reset`.
15
+ // If you'd prefer a soft reset, uncomment `normalize`
16
+ //////////////////////////////
17
+ // @import 'compass/reset';
18
+ // @import 'normalize';
@@ -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/global/base';
12
+
13
+
14
+ ////////////////////////
15
+ // Custom Code
16
+ ////////////////////////
@@ -0,0 +1,34 @@
1
+ ////////////////////////
2
+ // Style File
3
+ //
4
+ // This file gets turned into style.css. This file should really hold nothing except for imports of your base, style guide, layout, and design partials.
5
+ ////////////////////////
6
+
7
+ //////////////////////////////
8
+ // Legacy Support Setup
9
+ //////////////////////////////
10
+ $legacy-support-for-ie6: false;
11
+ $legacy-support-for-ie7: false;
12
+ $legacy-support-for-ie8: true;
13
+
14
+ $legacy-support-for-mozilla: false;
15
+
16
+ ////////////////////////
17
+ // Base Import
18
+ ////////////////////////
19
+ @import 'partials/global/base';
20
+
21
+ ////////////////////////
22
+ // Import Style Guide
23
+ ////////////////////////
24
+ @import 'partials/styleguide/style-guide';
25
+
26
+ ////////////////////////
27
+ // Import Layout
28
+ ////////////////////////
29
+ @import 'partials/layout/layout';
30
+
31
+ ////////////////////////
32
+ // Import Design
33
+ ////////////////////////
34
+ @import 'partials/design/design';
@@ -0,0 +1,16 @@
1
+ # Pull gems from RubyGems
2
+ source 'https://rubygems.org'
3
+
4
+ # We declare depdendencies at less than their next full version to ensure
5
+ # we don't get any breaking changes.
6
+ gem 'compass-aurora-os', '<1.0.0'
7
+ gem 'toolkit', '<2.0.0'
8
+ gem 'singularitygs', '<2.0.0'
9
+ # breakpoint 2.2.0 introduces a compass 0.13.alpha dependency, which
10
+ # we dont want right now.
11
+ gem 'breakpoint', '<2.2.0'
12
+ gem 'sassy-buttons', '<1.0.0'
13
+ gem 'compass-normalize', '<2.0.0'
14
+ gem 'css_parser', '~>1.3.4'
15
+
16
+ # Now that you're using Bundler, you need to run `bundle exec compass watch` instead of simply `compass watch`.
@@ -0,0 +1,159 @@
1
+ <% project_name = File.basename(Compass.configuration.project_path) %><% project_js = Compass.configuration.javascripts_dir %><% project_css = Compass.configuration.css_dir %><% project_sass = Compass.configuration.sass_dir %><% project_img = Compass.configuration.images_dir %>'use strict';
2
+
3
+ module.exports = function (grunt) {
4
+
5
+ grunt.initConfig({
6
+ watch: {
7
+ options: {
8
+ livereload: 9001
9
+ },
10
+ sass: {
11
+ files: ['<%= project_sass %>/{,**/}*.scss'],
12
+ tasks: ['compass:dev'],
13
+ options: {
14
+ livereload: false
15
+ }
16
+ },
17
+ css: {
18
+ files: ['<%= project_css %>/{,**/}*.css']
19
+ },
20
+ images: {
21
+ files: ['<%= project_img %>/**']
22
+ },
23
+ js: {
24
+ files: [
25
+ '<%= project_js %>/{,**/}*.js',
26
+ '!<%= project_js %>/{,**/}*.js'
27
+ ],
28
+ tasks: ['jshint', 'uglify:dev']
29
+ }
30
+ },
31
+
32
+ compass: {
33
+ options: {
34
+ config: 'config.rb',
35
+ bundleExec: true
36
+ },
37
+ dev: {
38
+ options: {
39
+ environment: 'development'
40
+ }
41
+ },
42
+ dist: {
43
+ options: {
44
+ environment: 'production',
45
+ imagesDir: '<%= project_img %>-min',
46
+ force: true
47
+ }
48
+ }
49
+ },
50
+
51
+ jshint: {
52
+ options: {
53
+ jshintrc: '.jshintrc'
54
+ },
55
+ all: [
56
+ '<%= project_js %>/{,**/}*.js',
57
+ '!<%= project_js %>/{,**/}*.min.js'
58
+ ]
59
+ },
60
+
61
+ imagemin: {
62
+ dist: {
63
+ options: {
64
+ optimizationLevel: 3
65
+ },
66
+ files: [{
67
+ expand: true,
68
+ cwd: '<%= project_img %>',
69
+ src: ['**/*.png', '**/*.jpg'],
70
+ dest: '<%= project_img %>-min/'
71
+ }]
72
+ }
73
+ },
74
+
75
+ svgmin: {
76
+ dist: {
77
+ files: [{
78
+ expand: true,
79
+ cwd: '<%= project_img %>',
80
+ src: '**/*.svg',
81
+ dest: '<%= project_img %>-min'
82
+ }]
83
+ }
84
+ },
85
+
86
+ uglify: {
87
+ dev: {
88
+ options: {
89
+ mangle: false,
90
+ compress: false,
91
+ beautify: true
92
+ },
93
+ files: [{
94
+ expand: true,
95
+ cwd: '<%= project_js %>',
96
+ src: ['**/*.js', '!**/*.min.js'],
97
+ dest: '<%= project_js %>',
98
+ ext: '.min.js'
99
+ }]
100
+ },
101
+ dist: {
102
+ options: {
103
+ mangle: true,
104
+ compress: true
105
+ },
106
+ files: [{
107
+ expand: true,
108
+ cwd: '<%= project_js %>',
109
+ src: ['**/*.js', '!**/*.min.js'],
110
+ dest: '<%= project_js %>',
111
+ ext: '.min.js'
112
+ }]
113
+ }
114
+ },
115
+
116
+ copy: {
117
+ dist: {
118
+ files: [
119
+ {
120
+ expand: true,
121
+ cwd: '<%= project_img %>',
122
+ src: ['**', '!**/*.svg', '!**/*.png', '!**/*.jpg'],
123
+ dest: '<%= project_img %>-min'
124
+ }
125
+ ]
126
+ }
127
+ },
128
+
129
+ parallel: {
130
+ assets: {
131
+ grunt: true,
132
+ tasks: ['imagemin', 'svgmin', 'uglify:dist', 'copy:dist']
133
+ }
134
+ }
135
+ });
136
+
137
+
138
+ grunt.event.on('watch', function(action, filepath) {
139
+ grunt.config([
140
+ 'compass:dev',
141
+ 'jshint'
142
+ ], filepath);
143
+ });
144
+
145
+ grunt.loadNpmTasks('grunt-contrib-watch');
146
+ grunt.loadNpmTasks('grunt-contrib-compass');
147
+ grunt.loadNpmTasks('grunt-contrib-jshint');
148
+ grunt.loadNpmTasks('grunt-contrib-imagemin');
149
+ grunt.loadNpmTasks('grunt-parallel');
150
+ grunt.loadNpmTasks('grunt-svgmin');
151
+ grunt.loadNpmTasks('grunt-contrib-uglify');
152
+ grunt.loadNpmTasks('grunt-contrib-copy');
153
+
154
+ grunt.registerTask('build', [
155
+ 'parallel:assets',
156
+ 'compass:dist',
157
+ 'jshint'
158
+ ]);
159
+ };