kube-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/README.md +1 -0
  2. data/Rakefile +14 -0
  3. data/lib/generators/kube/install/install_generator.rb +53 -0
  4. data/lib/generators/kube/install/templates/application.css +7 -0
  5. data/lib/generators/kube/install/templates/application.js +10 -0
  6. data/lib/generators/kube/install/templates/bootstrap.coffee +4 -0
  7. data/lib/generators/kube/install/templates/bootstrap_and_overrides.less +28 -0
  8. data/lib/generators/kube/layout/layout_generator.rb +23 -0
  9. data/lib/generators/kube/layout/templates/layout.html.erb +108 -0
  10. data/lib/generators/kube/layout/templates/layout.html.haml +68 -0
  11. data/lib/generators/kube/layout/templates/layout.html.slim +68 -0
  12. data/lib/generators/kube/partial/partial_generator.rb +20 -0
  13. data/lib/generators/kube/partial/templates/_login.html.erb +29 -0
  14. data/lib/generators/kube/partial/templates/_navbar.html.erb +13 -0
  15. data/lib/generators/kube/themed/templates/_form.html.erb +16 -0
  16. data/lib/generators/kube/themed/templates/_form.html.haml +10 -0
  17. data/lib/generators/kube/themed/templates/_form.html.slim +11 -0
  18. data/lib/generators/kube/themed/templates/edit.html.erb +6 -0
  19. data/lib/generators/kube/themed/templates/edit.html.haml +4 -0
  20. data/lib/generators/kube/themed/templates/edit.html.slim +4 -0
  21. data/lib/generators/kube/themed/templates/index.html.erb +40 -0
  22. data/lib/generators/kube/themed/templates/index.html.haml +25 -0
  23. data/lib/generators/kube/themed/templates/index.html.slim +27 -0
  24. data/lib/generators/kube/themed/templates/new.html.erb +6 -0
  25. data/lib/generators/kube/themed/templates/new.html.haml +4 -0
  26. data/lib/generators/kube/themed/templates/new.html.slim +4 -0
  27. data/lib/generators/kube/themed/templates/show.html.erb +23 -0
  28. data/lib/generators/kube/themed/templates/show.html.haml +15 -0
  29. data/lib/generators/kube/themed/templates/show.html.slim +17 -0
  30. data/lib/generators/kube/themed/templates/simple_form/_form.html.erb +14 -0
  31. data/lib/generators/kube/themed/templates/simple_form/_form.html.haml +11 -0
  32. data/lib/generators/kube/themed/templates/simple_form/_form.html.slim +12 -0
  33. data/lib/generators/kube/themed/themed_generator.rb +104 -0
  34. data/lib/kube/rails/engine.rb +13 -0
  35. data/lib/kube/rails/kube.rb +2 -0
  36. data/lib/kube/rails/version.rb +5 -0
  37. data/lib/kube-rails.rb +8 -0
  38. data/vendor/kube/base.less +199 -0
  39. data/vendor/kube/blocks.less +27 -0
  40. data/vendor/kube/buttons.less +138 -0
  41. data/vendor/kube/forms.less +219 -0
  42. data/vendor/kube/goodies.less +119 -0
  43. data/vendor/kube/grid.less +149 -0
  44. data/vendor/kube/kube.less +18 -0
  45. data/vendor/kube/mixins.less +76 -0
  46. data/vendor/kube/responsive.less +93 -0
  47. data/vendor/kube/tables.less +41 -0
  48. data/vendor/kube/typo.less +230 -0
  49. data/vendor/kube/variables.less +67 -0
  50. metadata +174 -0
@@ -0,0 +1,230 @@
1
+ /* =Typography
2
+ -----------------------------------------------------------------------------*/
3
+ body {
4
+ background: @colorWhite;
5
+ color: @colorBlack;
6
+ font-size: @baseFontSize / 16 * 1em;
7
+ line-height: @baseLine/@em;
8
+ font-family: @baseFontFamily;
9
+ }
10
+ a {
11
+ color: @colorLink;
12
+ }
13
+ a:hover {
14
+ color: darken(@colorLink, 20%);
15
+ }
16
+ h1,
17
+ h2,
18
+ h3,
19
+ h4,
20
+ h5,
21
+ h6 {
22
+ font-weight: bold;
23
+ margin-bottom: 0.5em;
24
+ }
25
+ h1 {
26
+ font-size: @h1 / @em; // headerSize / baseFontSize
27
+ line-height: 1em;
28
+ }
29
+ h2 {
30
+ font-size: @h2 / @em;
31
+ line-height: 1.1em;
32
+ }
33
+ h3 {
34
+ font-size: @h3 / @em;
35
+ line-height: 1.3em;
36
+ }
37
+ h4 {
38
+ font-size: @h4 / @em;
39
+ line-height: 1.3em;
40
+ }
41
+ h5 {
42
+ font-size: @h5 / @em;
43
+ line-height: 1.3em;
44
+ }
45
+ h6 {
46
+ font-size: @h6 / @em;
47
+ line-height: 1.3em;
48
+ text-transform: uppercase;
49
+ }
50
+ hgroup h1,
51
+ hgroup h2,
52
+ hgroup h3,
53
+ hgroup h4 {
54
+ margin-bottom: .1em;
55
+ }
56
+ .subheader {
57
+ font-size: 1.2em;
58
+ font-weight: normal;
59
+ color: #8f8f8f;
60
+ margin-bottom: 1em;
61
+ }
62
+ p,
63
+ ul,
64
+ ol,
65
+ dl,
66
+ dd,
67
+ dt,
68
+ blockquote,
69
+ td,
70
+ th {
71
+ line-height: @baseLine/@em;
72
+ }
73
+ ul,
74
+ ol,
75
+ ul ul,
76
+ ol ol,
77
+ ul ol,
78
+ ol ul {
79
+ margin: 0 0 0 @listsLeft;
80
+ }
81
+ ol ol li {
82
+ list-style-type: lower-alpha;
83
+ }
84
+ ol ol ol li {
85
+ list-style-type: lower-roman;
86
+ }
87
+ p,
88
+ ul,
89
+ ol,
90
+ dl,
91
+ blockquote,
92
+ hr,
93
+ pre,
94
+ hgroup,
95
+ table,
96
+ form,
97
+ fieldset {
98
+ margin-bottom: @baseLine/@em;
99
+ }
100
+ dl dt {
101
+ font-weight: bold;
102
+ }
103
+ dd {
104
+ margin-left: @listsLeft / 2;
105
+ }
106
+ blockquote {
107
+ margin-bottom: @baseLine/@em;
108
+ padding-left: @baseLine/@em;
109
+ border-left: 1px solid #ccc;
110
+ color: #666;
111
+ }
112
+ blockquote small, cite {
113
+ color: #888;
114
+ font-style: italic;
115
+ }
116
+ blockquote p {
117
+ margin-bottom: 1em;
118
+ font-style: italic;
119
+ }
120
+ small,
121
+ blockquote cite {
122
+ font-size: @smallFontSize;
123
+ line-height: 1;
124
+ }
125
+ blockquote .pull-right, .row blockquote .pull-right {
126
+ float: none;
127
+ text-align: right;
128
+ display: block;
129
+ }
130
+ address {
131
+ font-style: italic;
132
+ }
133
+ del {
134
+ text-decoration: line-through;
135
+ }
136
+ abbr[title],
137
+ dfn[title] {
138
+ border-bottom: 1px dotted #000;
139
+ cursor: help;
140
+ }
141
+ strong,
142
+ b {
143
+ font-weight: bold;
144
+ }
145
+ em,
146
+ i {
147
+ font-style: italic;
148
+ }
149
+ sub,
150
+ sup {
151
+ font-size: @superSmallFontSize;
152
+ line-height: 0;
153
+ position: relative;
154
+ }
155
+ sup {
156
+ top: -0.5em;
157
+ }
158
+ sub {
159
+ bottom: -0.25em;
160
+ }
161
+ figcaption {
162
+ font-size: @smallFontSize;
163
+ font-style: italic;
164
+ }
165
+ ins,
166
+ mark {
167
+ background-color: @markBackgroundColor;
168
+ color: @colorBlack;
169
+ text-decoration: none;
170
+ }
171
+ pre,
172
+ code,
173
+ kbd,
174
+ samp {
175
+ font-size: 90%;
176
+ font-family: Menlo, Monaco, monospace, sans-serif;
177
+ }
178
+ pre {
179
+ background: @codeBackgroundColor;
180
+ border: 1px solid #ddd;
181
+ border-radius: 3px;
182
+ padding: @baseLine/@em;
183
+ white-space: pre;
184
+ overflow: auto;
185
+ }
186
+ code {
187
+ padding: 2px 3px;
188
+ display: inline-block;
189
+ line-height: 1;
190
+ background: @codeBackgroundColor;
191
+ border: 1px solid #ddd;
192
+ }
193
+
194
+
195
+ kbd {
196
+ padding: 0 6px;
197
+ border-radius: 4px;
198
+ box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2),0 0 0 1px white inset;
199
+ background-color: #fafafa;
200
+ border-color: #ccc #ccc white;
201
+ border-style: solid solid none;
202
+ border-width: 1px 1px medium;
203
+ color: #444;
204
+ font-weight: normal;
205
+ white-space: nowrap;
206
+ }
207
+ input[type="text"],
208
+ input[type="password"],
209
+ input[type="email"],
210
+ textarea {
211
+ font-size: 13px;
212
+ }
213
+ fieldset {
214
+ padding: 2em @baseLine/@em;
215
+ margin-bottom: @baseLine/@em;
216
+ border: @fieldsetBorder;
217
+ }
218
+ legend {
219
+ font-size: 1.2em;
220
+ text-transform: uppercase;
221
+ font-weight: bold;
222
+ padding: 0 1em;
223
+ }
224
+ tfoot th, tfoot td {
225
+ background-color: @tfootBackgroundColor;
226
+ }
227
+ th, td {
228
+ border-bottom: @cellBorder;
229
+ padding: ((@baseLine / 2) / @em) 0.5em;
230
+ }
@@ -0,0 +1,67 @@
1
+ // Font
2
+ @baseFontFamily: Helvetica, Arial, Tahoma, sans-serif;
3
+ @inputFontFamily: Helvetica, Arial, Tahoma, sans-serif;
4
+ @codeFontFamily: monospace, sans-serif;
5
+
6
+ // Type
7
+ @baseFontSize: 14;
8
+ @baseLine: 21; // e.g. baseFontSize * 1.5
9
+
10
+ // Heading
11
+ @h1: 36;
12
+ @h2: 30;
13
+ @h3: 24;
14
+ @h4: 18;
15
+ @h5: 16;
16
+ @h6: 14;
17
+
18
+ // Grid
19
+ @gridWidth: 940;
20
+ @gridGutterWidth: 30;
21
+
22
+ // Misc sizes
23
+ @listsLeft: 2em;
24
+ @columnarWidth: 150px;
25
+ @columnarMargin: 20px;
26
+
27
+ // Font sizes
28
+ @bigFontSize: 1.2em;
29
+ @smallFontSize: 0.85em;
30
+ @superSmallFontSize: 0.7em;
31
+
32
+
33
+ // FloatingImages
34
+ @floatingMargin: 1em;
35
+ @floatingBackgroundColor: #fff;
36
+ @floatingPadding: 0;
37
+ @floatingBorder: none;
38
+
39
+ // LinkColor
40
+ @colorLink: #369;
41
+ @colorLinkHover: #900;
42
+
43
+ // TextColor
44
+ @colorBlack: #000;
45
+ @colorGrayDark: #555;
46
+ @colorGray: #777;
47
+ @colorGrayLight: #999;
48
+ @colorWhite: #fff;
49
+ @colorRed: #da3e5a;
50
+ @colorGreen: #18a011;
51
+
52
+ // BackgroundColor
53
+ @markBackgroundColor: #fe5;
54
+ @codeBackgroundColor: #f8f8f8;
55
+ @tfootBackgroundColor: #f2f2f2;
56
+ @colorStripedTable: #f8f8f8;
57
+ @colorHoveredTable: #f6f6f6;
58
+
59
+ // Borders
60
+ @cellBorder: 1px solid #eee;
61
+ @cellBorderDark: 1px solid #ddd;
62
+ @fieldsetBorder: 1px solid #ddd;
63
+
64
+ // Util
65
+ @em: @baseFontSize*1em; // outputting ems, e.g. 14/@em
66
+
67
+
metadata ADDED
@@ -0,0 +1,174 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: kube-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Mindaugas Mozūras
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-10-14 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '3.1'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '3.1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: actionpack
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '3.1'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '3.1'
46
+ - !ruby/object:Gem::Dependency
47
+ name: therubyracer
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: 0.10.2
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.10.2
62
+ - !ruby/object:Gem::Dependency
63
+ name: less-rails
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ~>
68
+ - !ruby/object:Gem::Version
69
+ version: 2.2.3
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 2.2.3
78
+ - !ruby/object:Gem::Dependency
79
+ name: rails
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '3.1'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '3.1'
94
+ description: kube-rails project integrates Kube for Rails 3.1 Asset Pipeline
95
+ email:
96
+ - mindaugas.mozuras@gmail.com
97
+ executables: []
98
+ extensions: []
99
+ extra_rdoc_files: []
100
+ files:
101
+ - lib/generators/kube/install/install_generator.rb
102
+ - lib/generators/kube/install/templates/application.css
103
+ - lib/generators/kube/install/templates/application.js
104
+ - lib/generators/kube/install/templates/bootstrap.coffee
105
+ - lib/generators/kube/install/templates/bootstrap_and_overrides.less
106
+ - lib/generators/kube/layout/layout_generator.rb
107
+ - lib/generators/kube/layout/templates/layout.html.erb
108
+ - lib/generators/kube/layout/templates/layout.html.haml
109
+ - lib/generators/kube/layout/templates/layout.html.slim
110
+ - lib/generators/kube/partial/partial_generator.rb
111
+ - lib/generators/kube/partial/templates/_login.html.erb
112
+ - lib/generators/kube/partial/templates/_navbar.html.erb
113
+ - lib/generators/kube/themed/templates/_form.html.erb
114
+ - lib/generators/kube/themed/templates/_form.html.haml
115
+ - lib/generators/kube/themed/templates/_form.html.slim
116
+ - lib/generators/kube/themed/templates/edit.html.erb
117
+ - lib/generators/kube/themed/templates/edit.html.haml
118
+ - lib/generators/kube/themed/templates/edit.html.slim
119
+ - lib/generators/kube/themed/templates/index.html.erb
120
+ - lib/generators/kube/themed/templates/index.html.haml
121
+ - lib/generators/kube/themed/templates/index.html.slim
122
+ - lib/generators/kube/themed/templates/new.html.erb
123
+ - lib/generators/kube/themed/templates/new.html.haml
124
+ - lib/generators/kube/themed/templates/new.html.slim
125
+ - lib/generators/kube/themed/templates/show.html.erb
126
+ - lib/generators/kube/themed/templates/show.html.haml
127
+ - lib/generators/kube/themed/templates/show.html.slim
128
+ - lib/generators/kube/themed/templates/simple_form/_form.html.erb
129
+ - lib/generators/kube/themed/templates/simple_form/_form.html.haml
130
+ - lib/generators/kube/themed/templates/simple_form/_form.html.slim
131
+ - lib/generators/kube/themed/themed_generator.rb
132
+ - lib/kube/rails/engine.rb
133
+ - lib/kube/rails/kube.rb
134
+ - lib/kube/rails/version.rb
135
+ - lib/kube-rails.rb
136
+ - vendor/kube/base.less
137
+ - vendor/kube/blocks.less
138
+ - vendor/kube/buttons.less
139
+ - vendor/kube/forms.less
140
+ - vendor/kube/goodies.less
141
+ - vendor/kube/grid.less
142
+ - vendor/kube/kube.less
143
+ - vendor/kube/mixins.less
144
+ - vendor/kube/responsive.less
145
+ - vendor/kube/tables.less
146
+ - vendor/kube/typo.less
147
+ - vendor/kube/variables.less
148
+ - Rakefile
149
+ - README.md
150
+ homepage: https://github.com/mmozuras/kube-rails
151
+ licenses: []
152
+ post_install_message:
153
+ rdoc_options: []
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
157
+ none: false
158
+ requirements:
159
+ - - ! '>='
160
+ - !ruby/object:Gem::Version
161
+ version: '0'
162
+ required_rubygems_version: !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ! '>='
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
168
+ requirements: []
169
+ rubyforge_project: kube-rails
170
+ rubygems_version: 1.8.23
171
+ signing_key:
172
+ specification_version: 3
173
+ summary: Kube for Rails 3.1 Asset Pipeline
174
+ test_files: []