macbury-metro-ui-rails 0.15.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. data/.gitignore +21 -0
  2. data/.gitmodules +3 -0
  3. data/Gemfile +4 -0
  4. data/README.md +44 -0
  5. data/Rakefile +74 -0
  6. data/lib/generators/metro/layout/layout_generator.rb +19 -0
  7. data/lib/generators/metro/layout/templates/layout.html.erb +92 -0
  8. data/lib/metro/ui/rails/engine.rb +16 -0
  9. data/lib/metro/ui/rails/metro.rb +2 -0
  10. data/lib/metro/ui/rails/version.rb +7 -0
  11. data/lib/metro-ui-rails.rb +10 -0
  12. data/metro-ui-rails.gemspec +20 -0
  13. data/vendor/assets/fonts/metro-ui/iconFont.eot +0 -0
  14. data/vendor/assets/fonts/metro-ui/iconFont.svg +2005 -0
  15. data/vendor/assets/fonts/metro-ui/iconFont.ttf +0 -0
  16. data/vendor/assets/fonts/metro-ui/iconFont.woff +0 -0
  17. data/vendor/assets/javascripts/metro-ui/accordion.js +44 -0
  18. data/vendor/assets/javascripts/metro-ui/buttonset.js +34 -0
  19. data/vendor/assets/javascripts/metro-ui/carousel.js +368 -0
  20. data/vendor/assets/javascripts/metro-ui/dropdown.js +95 -0
  21. data/vendor/assets/javascripts/metro-ui/input-control.js +103 -0
  22. data/vendor/assets/javascripts/metro-ui/pagecontrol.js +64 -0
  23. data/vendor/assets/javascripts/metro-ui/rating.js +249 -0
  24. data/vendor/assets/javascripts/metro-ui/slider.js +248 -0
  25. data/vendor/assets/javascripts/metro-ui/tile-drag.js +332 -0
  26. data/vendor/assets/javascripts/metro-ui/tile-slider.js +196 -0
  27. data/vendor/assets/javascripts/metro-ui.js +10 -0
  28. data/vendor/toolkit/metro-ui/accordion.less +69 -0
  29. data/vendor/toolkit/metro-ui/bricks.less +59 -0
  30. data/vendor/toolkit/metro-ui/buttons.less +434 -0
  31. data/vendor/toolkit/metro-ui/cards.less +113 -0
  32. data/vendor/toolkit/metro-ui/carousel.less +109 -0
  33. data/vendor/toolkit/metro-ui/code.less +47 -0
  34. data/vendor/toolkit/metro-ui/colors.less +115 -0
  35. data/vendor/toolkit/metro-ui/forms.less +434 -0
  36. data/vendor/toolkit/metro-ui/grid.less +115 -0
  37. data/vendor/toolkit/metro-ui/hero.less +18 -0
  38. data/vendor/toolkit/metro-ui/icons.less +1168 -0
  39. data/vendor/toolkit/metro-ui/images.less +121 -0
  40. data/vendor/toolkit/metro-ui/jqgrid.less +12 -0
  41. data/vendor/toolkit/metro-ui/layout.less +287 -0
  42. data/vendor/toolkit/metro-ui/listview.less +143 -0
  43. data/vendor/toolkit/metro-ui/menus.less +249 -0
  44. data/vendor/toolkit/metro-ui/modern-responsive-max480.less +147 -0
  45. data/vendor/toolkit/metro-ui/modern-responsive-max767.less +241 -0
  46. data/vendor/toolkit/metro-ui/modern-responsive-max979.less +97 -0
  47. data/vendor/toolkit/metro-ui/modern-responsive-min1200.less +28 -0
  48. data/vendor/toolkit/metro-ui/modern-responsive.less +13 -0
  49. data/vendor/toolkit/metro-ui/modern.less +35 -0
  50. data/vendor/toolkit/metro-ui/notices.less +185 -0
  51. data/vendor/toolkit/metro-ui/pagecontrol.less +100 -0
  52. data/vendor/toolkit/metro-ui/progress.less +22 -0
  53. data/vendor/toolkit/metro-ui/rating.less +80 -0
  54. data/vendor/toolkit/metro-ui/reset.less +504 -0
  55. data/vendor/toolkit/metro-ui/routines.less +141 -0
  56. data/vendor/toolkit/metro-ui/sidebar.less +136 -0
  57. data/vendor/toolkit/metro-ui/slider.less +67 -0
  58. data/vendor/toolkit/metro-ui/tables.less +164 -0
  59. data/vendor/toolkit/metro-ui/theme-dark.less +54 -0
  60. data/vendor/toolkit/metro-ui/tiles.less +285 -0
  61. data/vendor/toolkit/metro-ui/typography.less +347 -0
  62. metadata +139 -0
@@ -0,0 +1,347 @@
1
+ /*
2
+ * Metro UI CSS
3
+ * Copyright 2012 Sergey Pimenov
4
+ * Licensed under the MIT Lilcense
5
+ *
6
+ * Typography.less
7
+ *
8
+ */
9
+
10
+ // Cambria equals
11
+ // font-family: "PT Serif Caption", serif;
12
+ @font-face {
13
+ font-family: "PT Serif Caption";
14
+ font-style: normal;
15
+ font-weight: 400;
16
+ src: local("PT Serif Caption"), local("PTSerif-Caption"), url(http://themes.googleusercontent.com/static/fonts/ptserifcaption/v4/7xkFOeTxxO1GMC1suOUYWWhBabBbEjGd1iRmpyoZukE.woff) format('woff');
17
+ }
18
+
19
+ @font-face {
20
+ font-family: "Open Sans";
21
+ font-style: normal;
22
+ font-weight: 700;
23
+ src: local("Open Sans Bold"), local("OpenSans-Bold"), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzJ1r3JsPcQLi8jytr04NNhU.woff) format('woff');
24
+ }
25
+ @font-face {
26
+ font-family: "Open Sans";
27
+ font-style: normal;
28
+ font-weight: 300;
29
+ src: local("Open Sans Light"), local("OpenSans-Light"), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTZ1r3JsPcQLi8jytr04NNhU.woff) format('woff');
30
+ }
31
+ @font-face {
32
+ font-family: "Open Sans";
33
+ font-style: normal;
34
+ font-weight: 800;
35
+ src: local("Open Sans Extrabold"), local("OpenSans-Extrabold"), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/EInbV5DfGHOiMmvb1Xr-hp1r3JsPcQLi8jytr04NNhU.woff) format('woff');
36
+ }
37
+ @font-face {
38
+ font-family: "Open Sans";
39
+ font-style: normal;
40
+ font-weight: 400;
41
+ src: local("Open Sans"), local("OpenSans"), url(http://themes.googleusercontent.com/static/fonts/opensans/v6/K88pR3goAWT7BTt32Z01mz8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
42
+ }
43
+
44
+ .text-rest-state {color: rgba(0, 0, 0, 1.0);}
45
+ .text-rest2-state {color: rgba(0, 0, 0, 0.6);}
46
+ .text-hover-state {color: rgba(0, 0, 0, 0.8);}
47
+ .text-pressed-state {color: rgba(0, 0, 0, 0.4);}
48
+
49
+ #font {
50
+ .header {
51
+ font-family: 'Segoe UI Light', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
52
+ font-weight: 200;
53
+ font-size: 42pt;
54
+ letter-spacing: 0.00em;
55
+ line-height: 44pt;
56
+ }
57
+
58
+ .subheader, .subheader-secondary {
59
+ font-family: 'Segoe UI Light', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
60
+ font-weight: 200;
61
+ font-size: 20pt;
62
+ letter-spacing: 0.01em;
63
+ line-height: 24pt;
64
+ }
65
+
66
+ .subheader-smaller, .subheader-secondary-smaller {
67
+ font-family: 'Segoe UI Light', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
68
+ font-weight: 200;
69
+ letter-spacing: 0.01em;
70
+ line-height: 24pt;
71
+ font-size: 16pt;
72
+ }
73
+
74
+ .small-subheader, .small-subheader-secondary {
75
+ font-family: 'Segoe UI Semibold', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
76
+ font-weight: 600;
77
+ font-size: 11pt;
78
+ letter-spacing: 0.01em;
79
+ line-height: 14pt;
80
+ }
81
+
82
+ .navigation {
83
+ font-family: 'Segoe UI', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
84
+ font-weight: 400;
85
+ font-size: 11pt;
86
+ letter-spacing: 0.01em;
87
+ line-height: 14pt;
88
+ }
89
+
90
+ .body, .body-secondary, .normal {
91
+ font-family: 'Segoe UI Semilight', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
92
+ font-weight: 300;
93
+ font-size: 11pt;
94
+ letter-spacing: 0.02em;
95
+ line-height: 20px;
96
+ }
97
+
98
+ .link {
99
+ font-family: 'Segoe UI', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
100
+ font-weight: 400;
101
+ font-size: 11pt;
102
+ }
103
+
104
+ .tertiary, .tertiary-secondary {
105
+ font-family: 'Segoe UI', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
106
+ font-weight: 400;
107
+ font-size: 9pt;
108
+ }
109
+
110
+ .control {
111
+ font-family: 'Segoe UI', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
112
+ font-weight: 400;
113
+ font-size: 9pt;
114
+ }
115
+
116
+ .small {
117
+ font-family: 'Segoe UI', 'Open Sans', Verdana, Arial, Helvetica, sans-serif;
118
+ font-weight: 300;
119
+ font-size: 8pt;
120
+ }
121
+
122
+ .long-text {
123
+ //.body;
124
+ font-family: 'PT Serif Caption', sans-serif, serif !important;
125
+ font-weight: 300;
126
+ font-size: 10pt;
127
+ letter-spacing: 0.02em;
128
+ line-height: 20px;
129
+ }
130
+ .long-text-smaller {
131
+ .long-text;
132
+ font-size: 9pt;
133
+ }
134
+ .long-text-lead {
135
+ .long-text;
136
+ font-size: 20pt;
137
+ }
138
+
139
+ }
140
+
141
+ #state {
142
+ .header, .subheader, .small-subheader, .navigation, .body, .tertiary {
143
+ .text-rest-state();
144
+
145
+ &:hover {
146
+ .text-hover-state();
147
+ }
148
+ &:active {
149
+ .text-pressed-state();
150
+ }
151
+ }
152
+
153
+ .subheader-secondary, .subheader-secondary-smaller, .small-subheader, .small-subheader-secondary, .body-secondary, .tertiary-secondary {
154
+ .text-rest2-state();
155
+
156
+ &:hover {
157
+ .text-hover-state();
158
+ }
159
+ &:active {
160
+ .text-pressed-state();
161
+ }
162
+ }
163
+
164
+ .link {
165
+ color: rgb(46, 146, 207);
166
+
167
+ &:hover {
168
+ color: rgba(45, 173, 237, 0.8);
169
+ }
170
+ &:active {
171
+ color: rgba(45, 173, 237, 0.6);
172
+ }
173
+ }
174
+ }
175
+
176
+ a, .link {
177
+ #font > .link;
178
+ #state > .link;
179
+ text-decoration: none;
180
+ }
181
+
182
+ h1, h2, h3, h4, h5, h6 {
183
+ margin: 10px 0;
184
+ padding: 0;
185
+ }
186
+
187
+ h1 {
188
+ #font > .header;
189
+ #state > .header;
190
+ }
191
+
192
+ h2 {
193
+ #font > .subheader;
194
+ #state > .subheader;
195
+ }
196
+
197
+ h3 {
198
+ #font > .subheader;
199
+ #state > .subheader-secondary;
200
+ font-size: 16pt;
201
+ line-height: 24px;
202
+ }
203
+
204
+ h4 {
205
+ #font > .small-subheader();
206
+ #state > .small-subheader();
207
+ }
208
+
209
+ h5 {
210
+ #font > .small-subheader-secondary;
211
+ #state > .small-subheader-secondary;
212
+ font-size: 90%;
213
+ }
214
+
215
+ h6 {
216
+ #font > .small-subheader-secondary;
217
+ #state > .small-subheader-secondary;
218
+ font-size: 80%;
219
+ }
220
+
221
+ body, p {
222
+ #font > .body;
223
+ }
224
+
225
+ p.long-text {
226
+ #font > .long-text;
227
+ }
228
+
229
+ p {
230
+ margin: 0 0 10px;
231
+ }
232
+
233
+ p.indent:first-letter {
234
+ padding-left: @subunit * 5;
235
+ }
236
+
237
+ .lead {
238
+ font-size: 120%;
239
+ line-height: 26px;
240
+ }
241
+
242
+ .tertiary-info-text, .tertiary-text {
243
+ #font > .tertiary;
244
+ #state > .tertiary;
245
+ }
246
+ .tertiary-info-secondary-text, .tertiary-secondary-text {
247
+ #font > .tertiary-secondary;
248
+ #state > .tertiary-secondary;
249
+ }
250
+
251
+ abbr.initialism {
252
+ font-size: 90%;
253
+ text-transform: uppercase !important;
254
+ }
255
+
256
+ abbr[title] {
257
+ cursor: help !important;
258
+ }
259
+
260
+ address {
261
+ display: block;
262
+ margin-bottom: @unit;
263
+ #font > .body;
264
+ line-height: 20px;
265
+ font-style: normal;
266
+ }
267
+
268
+ blockquote {
269
+ margin: 0;
270
+ padding: @subunit @unit;
271
+ border-left: 4px #ccc solid;
272
+ display: block;
273
+ background-color: rgba(204, 204, 204, 0.1);
274
+
275
+ p {
276
+ margin-bottom: 0;
277
+ }
278
+
279
+ small:before {
280
+ content: '\2014';
281
+ .text-pressed-state;
282
+ margin-right: @subunit;
283
+ }
284
+
285
+ &.place-right {
286
+ float: none !important;
287
+ text-align: right;
288
+ border: 0;
289
+ border-right: 4px #ccc solid;
290
+
291
+ small {
292
+ text-align: right;
293
+ &:before {
294
+ content: "";
295
+ }
296
+ &:after {
297
+ content: '\2014';
298
+ .text-pressed-state;
299
+ margin-left: @subunit;
300
+ }
301
+ }
302
+ }
303
+ }
304
+
305
+ ul, ol {
306
+ padding: 0;
307
+ margin: 0 0 10px 0px;
308
+ display: block;
309
+ }
310
+
311
+ ul:nth-child(1) {
312
+ margin-left: 25px;
313
+ }
314
+
315
+ ul ul, ul ol, ol ol, ol ul {
316
+ margin-bottom: 0 !important;
317
+ }
318
+
319
+ ul {
320
+ list-style-position: inside;
321
+ list-style-type: square;
322
+
323
+ ul {
324
+ list-style-type: circle;
325
+ }
326
+ }
327
+
328
+ ul, ol {
329
+ list-style-position: inside;
330
+ li {
331
+ display: list-item;
332
+ font-size: 14px;
333
+ line-height: 20px;
334
+ }
335
+ }
336
+
337
+ ol {
338
+ list-style-type: decimal;
339
+ }
340
+
341
+ ul.unstyled, ol.unstyled, .unstyled {
342
+ margin-left: 0;
343
+ list-style: none;
344
+ }
345
+
346
+
347
+
metadata ADDED
@@ -0,0 +1,139 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: macbury-metro-ui-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.15.9
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Vilius Luneckas
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-01-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ type: :runtime
16
+ name: less-rails
17
+ prerelease: false
18
+ requirement: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 2.2.3
23
+ none: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ version: 2.2.3
29
+ none: false
30
+ - !ruby/object:Gem::Dependency
31
+ type: :development
32
+ name: rails
33
+ prerelease: false
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ! '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '3.1'
39
+ none: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '3.1'
45
+ none: false
46
+ description: metro-ui-rails project integrates Metro-UI CSS toolkit for Rails 3.1
47
+ Asset Pipeline
48
+ email:
49
+ - vilius.luneckas@gmail.com
50
+ executables: []
51
+ extensions: []
52
+ extra_rdoc_files: []
53
+ files:
54
+ - .gitignore
55
+ - .gitmodules
56
+ - Gemfile
57
+ - README.md
58
+ - Rakefile
59
+ - lib/generators/metro/layout/layout_generator.rb
60
+ - lib/generators/metro/layout/templates/layout.html.erb
61
+ - lib/metro-ui-rails.rb
62
+ - lib/metro/ui/rails/engine.rb
63
+ - lib/metro/ui/rails/metro.rb
64
+ - lib/metro/ui/rails/version.rb
65
+ - metro-ui-rails.gemspec
66
+ - vendor/assets/fonts/metro-ui/iconFont.eot
67
+ - vendor/assets/fonts/metro-ui/iconFont.svg
68
+ - vendor/assets/fonts/metro-ui/iconFont.ttf
69
+ - vendor/assets/fonts/metro-ui/iconFont.woff
70
+ - vendor/assets/javascripts/metro-ui.js
71
+ - vendor/assets/javascripts/metro-ui/accordion.js
72
+ - vendor/assets/javascripts/metro-ui/buttonset.js
73
+ - vendor/assets/javascripts/metro-ui/carousel.js
74
+ - vendor/assets/javascripts/metro-ui/dropdown.js
75
+ - vendor/assets/javascripts/metro-ui/input-control.js
76
+ - vendor/assets/javascripts/metro-ui/pagecontrol.js
77
+ - vendor/assets/javascripts/metro-ui/rating.js
78
+ - vendor/assets/javascripts/metro-ui/slider.js
79
+ - vendor/assets/javascripts/metro-ui/tile-drag.js
80
+ - vendor/assets/javascripts/metro-ui/tile-slider.js
81
+ - vendor/toolkit/metro-ui/accordion.less
82
+ - vendor/toolkit/metro-ui/bricks.less
83
+ - vendor/toolkit/metro-ui/buttons.less
84
+ - vendor/toolkit/metro-ui/cards.less
85
+ - vendor/toolkit/metro-ui/carousel.less
86
+ - vendor/toolkit/metro-ui/code.less
87
+ - vendor/toolkit/metro-ui/colors.less
88
+ - vendor/toolkit/metro-ui/forms.less
89
+ - vendor/toolkit/metro-ui/grid.less
90
+ - vendor/toolkit/metro-ui/hero.less
91
+ - vendor/toolkit/metro-ui/icons.less
92
+ - vendor/toolkit/metro-ui/images.less
93
+ - vendor/toolkit/metro-ui/jqgrid.less
94
+ - vendor/toolkit/metro-ui/layout.less
95
+ - vendor/toolkit/metro-ui/listview.less
96
+ - vendor/toolkit/metro-ui/menus.less
97
+ - vendor/toolkit/metro-ui/modern-responsive-max480.less
98
+ - vendor/toolkit/metro-ui/modern-responsive-max767.less
99
+ - vendor/toolkit/metro-ui/modern-responsive-max979.less
100
+ - vendor/toolkit/metro-ui/modern-responsive-min1200.less
101
+ - vendor/toolkit/metro-ui/modern-responsive.less
102
+ - vendor/toolkit/metro-ui/modern.less
103
+ - vendor/toolkit/metro-ui/notices.less
104
+ - vendor/toolkit/metro-ui/pagecontrol.less
105
+ - vendor/toolkit/metro-ui/progress.less
106
+ - vendor/toolkit/metro-ui/rating.less
107
+ - vendor/toolkit/metro-ui/reset.less
108
+ - vendor/toolkit/metro-ui/routines.less
109
+ - vendor/toolkit/metro-ui/sidebar.less
110
+ - vendor/toolkit/metro-ui/slider.less
111
+ - vendor/toolkit/metro-ui/tables.less
112
+ - vendor/toolkit/metro-ui/theme-dark.less
113
+ - vendor/toolkit/metro-ui/tiles.less
114
+ - vendor/toolkit/metro-ui/typography.less
115
+ homepage: https://github.com/viliusluneckas/metro-ui-rails
116
+ licenses: []
117
+ post_install_message:
118
+ rdoc_options: []
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ none: false
127
+ required_rubygems_version: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ none: false
133
+ requirements: []
134
+ rubyforge_project:
135
+ rubygems_version: 1.8.23
136
+ signing_key:
137
+ specification_version: 3
138
+ summary: Metro-UI CSS toolkit for Rails 3.1 Asset Pipeline
139
+ test_files: []