inuit_rails 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +29 -0
  6. data/Rakefile +1 -0
  7. data/inuit_rails.gemspec +23 -0
  8. data/lib/generators/inuit_rails/install_generator.rb +23 -0
  9. data/lib/generators/inuit_rails/templates/inuit_override.css.scss +209 -0
  10. data/lib/inuit_rails.rb +6 -0
  11. data/lib/inuit_rails/version.rb +3 -0
  12. data/vendor/assets/stylesheets/_defaults.scss +226 -0
  13. data/vendor/assets/stylesheets/_inuit.scss +215 -0
  14. data/vendor/assets/stylesheets/base/_code.scss +63 -0
  15. data/vendor/assets/stylesheets/base/_forms.scss +174 -0
  16. data/vendor/assets/stylesheets/base/_headings.scss +45 -0
  17. data/vendor/assets/stylesheets/base/_images.scss +73 -0
  18. data/vendor/assets/stylesheets/base/_lists.scss +19 -0
  19. data/vendor/assets/stylesheets/base/_main.scss +13 -0
  20. data/vendor/assets/stylesheets/base/_massive_print.scss +16 -0
  21. data/vendor/assets/stylesheets/base/_quotes.scss +98 -0
  22. data/vendor/assets/stylesheets/base/_small_print.scss +13 -0
  23. data/vendor/assets/stylesheets/base/_tables.scss +163 -0
  24. data/vendor/assets/stylesheets/generic/_brand.scss +18 -0
  25. data/vendor/assets/stylesheets/generic/_clearfix.scss +15 -0
  26. data/vendor/assets/stylesheets/generic/_debug.scss +168 -0
  27. data/vendor/assets/stylesheets/generic/_helper.scss +184 -0
  28. data/vendor/assets/stylesheets/generic/_inline_block_fix.scss +14 -0
  29. data/vendor/assets/stylesheets/generic/_inline_block_whitespace_fix.scss +13 -0
  30. data/vendor/assets/stylesheets/generic/_mixins.scss +341 -0
  31. data/vendor/assets/stylesheets/generic/_normalize.scss +396 -0
  32. data/vendor/assets/stylesheets/generic/_pull.scss +147 -0
  33. data/vendor/assets/stylesheets/generic/_push.scss +147 -0
  34. data/vendor/assets/stylesheets/generic/_reset.scss +85 -0
  35. data/vendor/assets/stylesheets/generic/_shared.scss +61 -0
  36. data/vendor/assets/stylesheets/generic/_widths.scss +158 -0
  37. data/vendor/assets/stylesheets/objects/_arrows.scss +147 -0
  38. data/vendor/assets/stylesheets/objects/_beautons.scss +218 -0
  39. data/vendor/assets/stylesheets/objects/_block-list.scss +45 -0
  40. data/vendor/assets/stylesheets/objects/_columns.scss +22 -0
  41. data/vendor/assets/stylesheets/objects/_flexbox.scss +55 -0
  42. data/vendor/assets/stylesheets/objects/_flyout.scss +80 -0
  43. data/vendor/assets/stylesheets/objects/_greybox.scss +58 -0
  44. data/vendor/assets/stylesheets/objects/_grids.scss +76 -0
  45. data/vendor/assets/stylesheets/objects/_icon-text.scss +40 -0
  46. data/vendor/assets/stylesheets/objects/_island.scss +38 -0
  47. data/vendor/assets/stylesheets/objects/_link-complex.scss +32 -0
  48. data/vendor/assets/stylesheets/objects/_lozenges.scss +46 -0
  49. data/vendor/assets/stylesheets/objects/_marginalia.scss +52 -0
  50. data/vendor/assets/stylesheets/objects/_matrix.scss +89 -0
  51. data/vendor/assets/stylesheets/objects/_media.scss +60 -0
  52. data/vendor/assets/stylesheets/objects/_nav.scss +155 -0
  53. data/vendor/assets/stylesheets/objects/_nav__breadcrumb.scss +67 -0
  54. data/vendor/assets/stylesheets/objects/_nav__options.scss +45 -0
  55. data/vendor/assets/stylesheets/objects/_nav__pagination.scss +53 -0
  56. data/vendor/assets/stylesheets/objects/_rules.scss +63 -0
  57. data/vendor/assets/stylesheets/objects/_split.scss +39 -0
  58. data/vendor/assets/stylesheets/objects/_sprite.scss +98 -0
  59. data/vendor/assets/stylesheets/objects/_stats.scss +52 -0
  60. data/vendor/assets/stylesheets/objects/_this-or-this.scss +38 -0
  61. metadata +131 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 27c5868d843d0e2ee8fc7bd3fe275fd40dc16b06
4
+ data.tar.gz: 38ae7cbc28e173ccbb79f20999e4f03bd077f567
5
+ SHA512:
6
+ metadata.gz: ae3acec9077b9b52042d003f40cd12669f43f42f4e2ec4a55e39b7beadbd2bf9c58e00648094a69f3fe831777bdd922bff464ebba5ffccb2585def393db8d571
7
+ data.tar.gz: c7f02c973d4094479bee2dfc24a8c791aed9d1f79865b14fddd07ded358b4b87ee913bb8a7a8ab260613791f2d660d597c1a79082b5ef3929f275a8b25a1a35c
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in inuit_rails.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 farmerworking
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # InuitRails
2
+
3
+ This is a wrapper of inuit for rails application. Of course it's a gem!
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'inuit_rails'
10
+
11
+ And then execute:
12
+
13
+ $ bundle install
14
+
15
+
16
+ ## Usage
17
+
18
+ Just run the command below and you are good to go:
19
+
20
+ rails g inuit_rails:install
21
+
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'inuit_rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "inuit_rails"
8
+ spec.version = InuitRails::VERSION
9
+ spec.authors = ["farmerworking"]
10
+ spec.email = ["farmerworking@gmail.com"]
11
+ spec.description = %q{Wapper of inuit.css for rails applications}
12
+ spec.summary = %q{Wapper of inuit.css for rails applications}
13
+ spec.homepage = ""
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.3"
22
+ spec.add_development_dependency "rake"
23
+ end
@@ -0,0 +1,23 @@
1
+ require 'rails/generators'
2
+
3
+ module InuitRails
4
+ module Generators
5
+ class InstallGenerator < Rails::Generators::Base
6
+ def self.source_root
7
+ @source_root ||= File.join(File.dirname(__FILE__), 'templates')
8
+ end
9
+
10
+ def copy_files
11
+ copy_file "inuit_override.css.scss", "app/assets/stylesheets/inuit_override.css.scss"
12
+ end
13
+
14
+ def prepend_to_files
15
+ if not File.exists?("app/assets/stylesheets/application.css.scss")
16
+ create_file "app/assets/stylesheets/application.css.scss"
17
+ end
18
+
19
+ prepend_to_file "app/assets/stylesheets/application.css.scss", "@import \"inuit_override\";\n"
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,209 @@
1
+ /**
2
+ * Any variables you find set in inuit.css’ _defaults.scss that you do not wish to
3
+ * keep, simply redefine here. This means that if inuit.css, for example, sets
4
+ * your `$base-font-size` at 16px and you wish it to be 14px, simply redeclare
5
+ * that variable in this file. inuit.css ignores its own variables in favour of
6
+ * using your own, so you can completely modify how inuit.css works without ever
7
+ * having to alter the framework itself.
8
+ */
9
+
10
+
11
+
12
+
13
+
14
+ /*------------------------------------*\
15
+ $OBJECTS-AND-ABSTRACTIONS
16
+ \*------------------------------------*/
17
+ /**
18
+ * All of inuit.css’ objects and abstractions are initially turned off by
19
+ * default. This means that you start any project with as little as possible,
20
+ * and introducing objects and abstractions is as simple as switching the
21
+ * following variables to `true`.
22
+ */
23
+ $use-grids: false;
24
+ $use-flexbox: false;
25
+ $use-columns: false;
26
+ $use-nav: false;
27
+ $use-options: false;
28
+ $use-pagination: false;
29
+ $use-breadcrumb: false;
30
+ $use-media: false;
31
+ $use-marginalia: false;
32
+ $use-island: false;
33
+ $use-block-list: false;
34
+ $use-matrix: false;
35
+ $use-split: false;
36
+ $use-this-or-this: false;
37
+ $use-link-complex: false;
38
+ $use-flyout: false;
39
+ $use-arrows: false;
40
+ $use-sprite: false;
41
+ $use-icon-text: false;
42
+ $use-beautons: false;
43
+ $use-lozenges: false;
44
+ $use-rules: false;
45
+ $use-stats: false;
46
+ $use-greybox: false;
47
+
48
+
49
+
50
+
51
+
52
+ /*------------------------------------*\
53
+ $OVERRIDES
54
+ \*------------------------------------*/
55
+ /**
56
+ * All inuit vars is list below, override whatever you want after think carefully
57
+ */
58
+
59
+
60
+ /**
61
+ * Debug mode will visually highlight any potential markup/accessibility quirks
62
+ * in the browser. Set to `true` or `false`.
63
+ */
64
+ // $debug-mode: false!default;
65
+
66
+
67
+ /**
68
+ * Do you want all elements to adopt `box-sizing:border-box;` as per
69
+ * paulirish.com/2012/box-sizing-border-box-ftw ?
70
+ */
71
+ // $global-border-box: true!default;
72
+
73
+
74
+ /**
75
+ * Base stuff
76
+ */
77
+ // $base-font-size: 16px!default;
78
+ // $base-line-height: 24px!default;
79
+
80
+
81
+ /**
82
+ * Base font-family.
83
+ */
84
+ // $base-font-family: sans-serif!default;
85
+
86
+
87
+ /**
88
+ * Default colour for objects’ borders etc.
89
+ */
90
+ // $base-ui-color: #ccc!default;
91
+
92
+
93
+ /**
94
+ * Responsiveness?
95
+ */
96
+ // $responsive: true!default;
97
+
98
+
99
+ /**
100
+ * Responsiveness for widescreen/high resolution desktop monitors and beyond?
101
+ * Note: `$responsive` variable above must be set to true before enabling this.
102
+ */
103
+ // $responsive-extra: false!default;
104
+
105
+
106
+ /**
107
+ * Responsive push and pull produce a LOT of code, only turn them on if you
108
+ * definitely need them.
109
+ */
110
+ // $push: false!default;
111
+
112
+
113
+ /**
114
+ * Note: `$push` variable above must be set to true before enabling these.
115
+ */
116
+ // $palm-push: false!default;
117
+ // $lap-push: false!default;
118
+ // $lap-and-up-push: false!default;
119
+ // $portable-push: false!default;
120
+ // $desk-push: false!default;
121
+
122
+ // $pull: false!default;
123
+
124
+
125
+ /**
126
+ * Note: `$pull` variable above must be set to true before enabling these.
127
+ */
128
+ // $palm-pull: false!default;
129
+ // $lap-pull: false!default;
130
+ // $lap-and-up-pull: false!default;
131
+ // $portable-pull: false!default;
132
+ // $desk-pull: false!default;
133
+
134
+
135
+ /**
136
+ * Tell inuit.css when breakpoints start.
137
+ */
138
+ // $lap-start: 481px!default;
139
+ // $desk-start: 1024px!default;
140
+ // $desk-wide-start: 1200px!default;
141
+
142
+
143
+ /**
144
+ * Font-sizes (in pixels). Refer to relevant sections for their implementations.
145
+ */
146
+ // $giga-size: 96px!default;
147
+ // $mega-size: 72px!default;
148
+ // $kilo-size: 48px!default;
149
+
150
+ // $h1-size: 36px!default; // .alpha
151
+ // $h2-size: 30px!default; // .beta
152
+ // $h3-size: 24px!default; // .gamma
153
+ // $h4-size: 20px!default; // .delta
154
+ // $h5-size: 16px!default; // .epsilon
155
+ // $h6-size: 14px!default; // .zeta
156
+
157
+ // $milli-size: 12px!default;
158
+ // $micro-size: 10px!default;
159
+
160
+
161
+ /**
162
+ * English quote marks?
163
+ */
164
+ // $english-quotes: true!default;
165
+
166
+
167
+ /**
168
+ * If you want English quotes then please do not edit these; they’re only here
169
+ * because Sass needs them.
170
+ */
171
+ // $open-quote: null;
172
+ // $close-quote: null;
173
+
174
+
175
+ /**
176
+ * If you need non-English quotes, please alter the following values accordingly:
177
+ */
178
+ // @if $english-quotes != true{
179
+ // $open-quote: \00AB;
180
+ // $close-quote: \00BB;
181
+ // }
182
+
183
+
184
+ /**
185
+ * Brand stuff
186
+ */
187
+ // $brand-color: #4a8ec2!default;
188
+ // $brand-face: "Helvetica Neue", sans-serif!default;
189
+
190
+
191
+ /**
192
+ * How big would you like round corners to be by default?
193
+ */
194
+ // $brand-round: 4px!default;
195
+
196
+
197
+ /**
198
+ * inuit.css will work these next ones out for use within the framework.
199
+ *
200
+ * Assign our `$base-line-height` to a new spacing var for more transparency.
201
+ */
202
+ // $base-spacing-unit: $base-line-height!default;
203
+ // $half-spacing-unit: $base-spacing-unit / 2!default;
204
+ // $double-spacing-unit: $base-spacing-unit * 2!default;
205
+ // $line-height-ratio: $base-line-height / $base-font-size;
206
+
207
+
208
+
209
+ @import "inuit";
@@ -0,0 +1,6 @@
1
+ require "inuit_rails/version"
2
+
3
+ module InuitRails
4
+ class Engine < Rails::Engine
5
+ end
6
+ end
@@ -0,0 +1,3 @@
1
+ module InuitRails
2
+ VERSION = "0.0.2"
3
+ end
@@ -0,0 +1,226 @@
1
+ /*------------------------------------*\
2
+ $DEFAULTS
3
+ \*------------------------------------*/
4
+ /**
5
+ * inuit.css’ default variables. Redefine these in your `_vars.scss` file (found
6
+ * in the inuit.css-web-template) to override them.
7
+ */
8
+
9
+
10
+
11
+
12
+
13
+ /*------------------------------------*\
14
+ $DEBUG
15
+ \*------------------------------------*/
16
+ /**
17
+ * Debug mode will visually highlight any potential markup/accessibility quirks
18
+ * in the browser. Set to `true` or `false`.
19
+ */
20
+ $debug-mode: false!default;
21
+
22
+
23
+
24
+
25
+
26
+ /*------------------------------------*\
27
+ $BORDER-BOX
28
+ \*------------------------------------*/
29
+ /**
30
+ * Do you want all elements to adopt `box-sizing:border-box;` as per
31
+ * paulirish.com/2012/box-sizing-border-box-ftw ?
32
+ */
33
+ $global-border-box: true!default;
34
+
35
+
36
+
37
+
38
+
39
+ /*------------------------------------*\
40
+ $BASE
41
+ \*------------------------------------*/
42
+ /**
43
+ * Base stuff
44
+ */
45
+ $base-font-size: 16px!default;
46
+ $base-line-height: 24px!default;
47
+
48
+ /**
49
+ * Base font-family.
50
+ */
51
+ $base-font-family: sans-serif!default;
52
+
53
+ /**
54
+ * Default colour for objects’ borders etc.
55
+ */
56
+ $base-ui-color: #ccc!default;
57
+
58
+
59
+
60
+
61
+
62
+ /*------------------------------------*\
63
+ $RESPONSIVE
64
+ \*------------------------------------*/
65
+ /**
66
+ * Responsiveness?
67
+ */
68
+ $responsive: true!default;
69
+
70
+ /**
71
+ * Responsiveness for widescreen/high resolution desktop monitors and beyond?
72
+ * Note: `$responsive` variable above must be set to true before enabling this.
73
+ */
74
+ $responsive-extra: false!default;
75
+
76
+ /**
77
+ * Responsive push and pull produce a LOT of code, only turn them on if you
78
+ * definitely need them.
79
+ */
80
+ $push: false!default;
81
+ /**
82
+ * Note: `$push` variable above must be set to true before enabling these.
83
+ */
84
+ $palm-push: false!default;
85
+ $lap-push: false!default;
86
+ $lap-and-up-push: false!default;
87
+ $portable-push: false!default;
88
+ $desk-push: false!default;
89
+
90
+ $pull: false!default;
91
+ /**
92
+ * Note: `$pull` variable above must be set to true before enabling these.
93
+ */
94
+ $palm-pull: false!default;
95
+ $lap-pull: false!default;
96
+ $lap-and-up-pull: false!default;
97
+ $portable-pull: false!default;
98
+ $desk-pull: false!default;
99
+
100
+ /**
101
+ * Tell inuit.css when breakpoints start.
102
+ */
103
+ $lap-start: 481px!default;
104
+ $desk-start: 1024px!default;
105
+ $desk-wide-start: 1200px!default;
106
+
107
+
108
+
109
+
110
+
111
+ /*------------------------------------*\
112
+ $FONT-SIZES
113
+ \*------------------------------------*/
114
+ /**
115
+ * Font-sizes (in pixels). Refer to relevant sections for their implementations.
116
+ */
117
+ $giga-size: 96px!default;
118
+ $mega-size: 72px!default;
119
+ $kilo-size: 48px!default;
120
+
121
+ $h1-size: 36px!default; // .alpha
122
+ $h2-size: 30px!default; // .beta
123
+ $h3-size: 24px!default; // .gamma
124
+ $h4-size: 20px!default; // .delta
125
+ $h5-size: 16px!default; // .epsilon
126
+ $h6-size: 14px!default; // .zeta
127
+
128
+ $milli-size: 12px!default;
129
+ $micro-size: 10px!default;
130
+
131
+
132
+
133
+
134
+
135
+ /*------------------------------------*\
136
+ $QUOTES
137
+ \*------------------------------------*/
138
+ /**
139
+ * English quote marks?
140
+ */
141
+ $english-quotes: true!default;
142
+
143
+ /**
144
+ * If you want English quotes then please do not edit these; they’re only here
145
+ * because Sass needs them.
146
+ */
147
+ $open-quote: null;
148
+ $close-quote: null;
149
+
150
+ /**
151
+ * If you need non-English quotes, please alter the following values accordingly:
152
+ */
153
+ @if $english-quotes != true{
154
+ $open-quote: \00AB;
155
+ $close-quote: \00BB;
156
+ }
157
+
158
+
159
+
160
+
161
+
162
+ /*------------------------------------*\
163
+ $BRAND
164
+ \*------------------------------------*/
165
+ /**
166
+ * Brand stuff
167
+ */
168
+ $brand-color: #4a8ec2!default;
169
+ $brand-face: "Helvetica Neue", sans-serif!default;
170
+
171
+ /**
172
+ * How big would you like round corners to be by default?
173
+ */
174
+ $brand-round: 4px!default;
175
+
176
+
177
+
178
+
179
+
180
+ /*------------------------------------*\
181
+ $OBJECTS AND ABSTRACTIONS
182
+ \*------------------------------------*/
183
+ /**
184
+ * Which objects and abstractions would you like to use?
185
+ */
186
+ $use-grids: false!default;
187
+ $use-flexbox: false!default;
188
+ $use-columns: false!default;
189
+ $use-nav: false!default;
190
+ $use-options: false!default;
191
+ $use-pagination: false!default;
192
+ $use-breadcrumb: false!default;
193
+ $use-media: false!default;
194
+ $use-marginalia: false!default;
195
+ $use-island: false!default;
196
+ $use-block-list: false!default;
197
+ $use-matrix: false!default;
198
+ $use-split: false!default;
199
+ $use-this-or-this: false!default;
200
+ $use-link-complex: false!default;
201
+ $use-flyout: false!default;
202
+ $use-arrows: false!default;
203
+ $use-sprite: false!default;
204
+ $use-icon-text: false!default;
205
+ $use-beautons: false!default;
206
+ $use-lozenges: false!default;
207
+ $use-rules: false!default;
208
+ $use-stats: false!default;
209
+ $use-greybox: false!default;
210
+
211
+
212
+
213
+
214
+
215
+ /*------------------------------------*\
216
+ $FRAMEWORK
217
+ \*------------------------------------*/
218
+ /**
219
+ * inuit.css will work these next ones out for use within the framework.
220
+ *
221
+ * Assign our `$base-line-height` to a new spacing var for more transparency.
222
+ */
223
+ $base-spacing-unit: $base-line-height!default;
224
+ $half-spacing-unit: $base-spacing-unit / 2!default;
225
+ $double-spacing-unit: $base-spacing-unit * 2!default;
226
+ $line-height-ratio: $base-line-height / $base-font-size;