metro-rails 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +14 -0
- data/Rakefile +2 -0
- data/lib/metro-rails.rb +7 -0
- data/lib/metro-rails/version.rb +5 -0
- data/metro-rails.gemspec +18 -0
- data/vendor/assets/images/metro/back.png +0 -0
- data/vendor/assets/images/metro/next.png +0 -0
- data/vendor/assets/stylesheets/metro/buttons.less +362 -0
- data/vendor/assets/stylesheets/metro/buttons.scss +0 -0
- data/vendor/assets/stylesheets/metro/form.less +82 -0
- data/vendor/assets/stylesheets/metro/images.less +371 -0
- data/vendor/assets/stylesheets/metro/metro.less +43 -0
- data/vendor/assets/stylesheets/metro/notices.less +181 -0
- data/vendor/assets/stylesheets/metro/reset.less +123 -0
- data/vendor/assets/stylesheets/metro/routines.less +54 -0
- data/vendor/assets/stylesheets/metro/themes.less +267 -0
- data/vendor/assets/stylesheets/metro/tiles.less +178 -0
- data/vendor/assets/stylesheets/metro/typography.less +115 -0
- data/vendor/assets/stylesheets/metro/variables.less +61 -0
- metadata +84 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Martin Schürrer
|
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,14 @@
|
|
1
|
+
# metro-rails
|
2
|
+
|
3
|
+
Make https://github.com/olton/Metro-UI-CSS available for the asset
|
4
|
+
pipeline.
|
5
|
+
|
6
|
+
Due to this bug the stylesheets still are `.less`: https://github.com/nex3/sass/issues/122
|
7
|
+
|
8
|
+
## Contributing
|
9
|
+
|
10
|
+
1. Fork it
|
11
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
12
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
13
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
14
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/lib/metro-rails.rb
ADDED
data/metro-rails.gemspec
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path('../lib/metro-rails/version', __FILE__)
|
3
|
+
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.authors = ["Martin Schürrer"]
|
6
|
+
gem.email = ["martin@schuerrer.org"]
|
7
|
+
gem.description = %q{metroui.org.ua as a plugin for the Rails Asset Pipeline}
|
8
|
+
gem.summary = %q{Uses less and not sass for now.}
|
9
|
+
gem.homepage = ""
|
10
|
+
|
11
|
+
gem.files = `git ls-files`.split($\)
|
12
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
13
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
|
+
gem.name = "metro-rails"
|
15
|
+
gem.require_paths = ["lib"]
|
16
|
+
gem.version = Metro::Rails::VERSION
|
17
|
+
gem.add_runtime_dependency 'less-rails'
|
18
|
+
end
|
Binary file
|
Binary file
|
@@ -0,0 +1,362 @@
|
|
1
|
+
/*
|
2
|
+
* Metro UI CSS v 1.0.1
|
3
|
+
* Copyright 2012 Sergey Pimenov
|
4
|
+
* Licensed under the MIT Lilcense
|
5
|
+
*/
|
6
|
+
|
7
|
+
|
8
|
+
.metro {
|
9
|
+
.metro-button {
|
10
|
+
text-decoration: none;
|
11
|
+
border: 2px #e2e2e2 solid;
|
12
|
+
padding: 5px 20px;
|
13
|
+
margin: 10px 10px 0 10px;
|
14
|
+
color: #fff !important;
|
15
|
+
background: #1d1d1d;
|
16
|
+
cursor: pointer;
|
17
|
+
min-width: 50px;
|
18
|
+
//min-height: 22px;
|
19
|
+
display: inline-block;
|
20
|
+
position: relative;
|
21
|
+
text-align: center;
|
22
|
+
border-radius: 0;
|
23
|
+
|
24
|
+
&:hover {
|
25
|
+
background: #3a3a3a;
|
26
|
+
}
|
27
|
+
|
28
|
+
&.default:hover {
|
29
|
+
background: #219297;
|
30
|
+
}
|
31
|
+
|
32
|
+
&:active {
|
33
|
+
background: #ffffff;
|
34
|
+
color: #1d1d1d !important;
|
35
|
+
top: 2px;
|
36
|
+
left: 2px;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.metro-button.disabled, .metro-button:disabled, .metro-command-button.disabled, .metro-command-button:disabled {
|
41
|
+
border-color: #777777;
|
42
|
+
color: #777777 !important;
|
43
|
+
cursor: default;
|
44
|
+
background: #1d1d1d !important;
|
45
|
+
&:hover {
|
46
|
+
background: #1d1d1d;
|
47
|
+
}
|
48
|
+
&:active {
|
49
|
+
top: 0;
|
50
|
+
left: 0;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
input.metro-button, button.metro-button {
|
55
|
+
min-width: 94px !important;
|
56
|
+
}
|
57
|
+
|
58
|
+
.metro-button.default {
|
59
|
+
background: #008287;
|
60
|
+
&:active {
|
61
|
+
background: #fff;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
.metro-command-button {
|
66
|
+
text-decoration: none;
|
67
|
+
border: 2px @white solid;
|
68
|
+
padding: 5px 20px;
|
69
|
+
display: block;
|
70
|
+
width: 240px;
|
71
|
+
height: 40px;
|
72
|
+
background: #1d1d1d;
|
73
|
+
position: relative;
|
74
|
+
margin: 10px 10px 0 10px;
|
75
|
+
|
76
|
+
.title {
|
77
|
+
color: #fff;
|
78
|
+
display: block;
|
79
|
+
font-weight: bold;
|
80
|
+
}
|
81
|
+
.subtitle {
|
82
|
+
color: #a1a1a1;
|
83
|
+
display: block;
|
84
|
+
font-size: 90%;
|
85
|
+
}
|
86
|
+
|
87
|
+
&:hover {
|
88
|
+
background: #3a3a3a;
|
89
|
+
}
|
90
|
+
|
91
|
+
&:active {
|
92
|
+
background: @white;
|
93
|
+
* {
|
94
|
+
color: #000;
|
95
|
+
}
|
96
|
+
top: 2px;
|
97
|
+
left: 2px;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
.metro-command-button.default {
|
102
|
+
background: #008287;
|
103
|
+
&:active {
|
104
|
+
background: #fff;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
.metro-command-button.default:hover {
|
109
|
+
background: #219297;
|
110
|
+
}
|
111
|
+
|
112
|
+
button.metro-command-button {
|
113
|
+
text-align: left;
|
114
|
+
min-width: 285px !important;
|
115
|
+
min-height: 60px;
|
116
|
+
}
|
117
|
+
|
118
|
+
.metro-command-button.disabled, .metro-command-button:disabled {
|
119
|
+
.title, .subtitle {color: #3a3a3a;}
|
120
|
+
&:active {
|
121
|
+
.title, .subtitle {color: #3a3a3a;}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
.metro-radio, .metro-check, .metro-switch {
|
126
|
+
cursor: pointer;
|
127
|
+
cursor: hand;
|
128
|
+
position: relative;
|
129
|
+
}
|
130
|
+
|
131
|
+
.metro-radio {
|
132
|
+
input[type=radio],
|
133
|
+
input[type=radio] + span,
|
134
|
+
input[type=radio] + span::before,
|
135
|
+
input[type=radio] + span::after, {
|
136
|
+
vertical-align: middle;
|
137
|
+
display: inline-block;
|
138
|
+
}
|
139
|
+
|
140
|
+
input[type=radio] {
|
141
|
+
position: absolute;
|
142
|
+
filter: alpha(opacity=0);
|
143
|
+
-moz-opacity: 0;
|
144
|
+
opacity: 0;
|
145
|
+
}
|
146
|
+
|
147
|
+
input[type=radio] + span {
|
148
|
+
font: normal 13px/14px "Segoe UI", Sans-serif;
|
149
|
+
}
|
150
|
+
|
151
|
+
input[type=radio] + span::before {
|
152
|
+
content: "\2022";
|
153
|
+
text-indent: -9999px;
|
154
|
+
width: 24px;
|
155
|
+
height: 24px;
|
156
|
+
background: #cfcfcf;
|
157
|
+
margin-right: 10px;
|
158
|
+
border-radius: 50%;
|
159
|
+
}
|
160
|
+
|
161
|
+
input[type=radio]:checked + span::after {
|
162
|
+
text-indent: -9999px;
|
163
|
+
position: absolute;
|
164
|
+
content: "\2022";
|
165
|
+
background: #212121;
|
166
|
+
z-index: 1000;
|
167
|
+
width: 12px;
|
168
|
+
height: 12px;
|
169
|
+
border-radius: 50%;
|
170
|
+
left: 6px;
|
171
|
+
top: 6px;
|
172
|
+
}
|
173
|
+
input[type=radio]:checked + span::before {
|
174
|
+
background: #d1d1d1;
|
175
|
+
}
|
176
|
+
|
177
|
+
input[type=radio]:not(:checked):disabled + span::before {
|
178
|
+
cursor: default;
|
179
|
+
background: #868686;
|
180
|
+
}
|
181
|
+
|
182
|
+
input[type=radio]:disabled + span::before {
|
183
|
+
cursor: default;
|
184
|
+
background: #868686;
|
185
|
+
}
|
186
|
+
|
187
|
+
input[type=radio]:disabled + span::after {
|
188
|
+
background: #484848;
|
189
|
+
}
|
190
|
+
|
191
|
+
&:hover input[type=radio]:not(:checked):disabled + span::before {
|
192
|
+
background: #868686;
|
193
|
+
}
|
194
|
+
&:hover input[type=radio]:not(:checked) + span::before {
|
195
|
+
background: #ffffff;
|
196
|
+
}
|
197
|
+
&:hover input[type=radio]:checked + span::before {
|
198
|
+
background: #dfdfdf;
|
199
|
+
}
|
200
|
+
&:hover input[type=radio]:checked:disabled + span::before {
|
201
|
+
background: #868686;
|
202
|
+
}
|
203
|
+
&:hover input[type=radio]:checked:disabled + span::after {
|
204
|
+
background: #484848;
|
205
|
+
}
|
206
|
+
&:hover input[type=radio]:checked + span::after {
|
207
|
+
background: #000000;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
.metro-check {
|
212
|
+
input[type=checkbox],
|
213
|
+
input[type=checkbox] + span,
|
214
|
+
input[type=checkbox] + span::before,
|
215
|
+
input[type=checkbox] + span::after, {
|
216
|
+
vertical-align: middle;
|
217
|
+
display: inline-block;
|
218
|
+
}
|
219
|
+
|
220
|
+
input[type=checkbox] {
|
221
|
+
position: absolute;
|
222
|
+
filter: alpha(opacity=0);
|
223
|
+
-moz-opacity: 0;
|
224
|
+
opacity: 0;
|
225
|
+
}
|
226
|
+
|
227
|
+
input[type=checkbox] + span {
|
228
|
+
font: normal 13px/14px "Segoe UI", Sans-serif;
|
229
|
+
}
|
230
|
+
|
231
|
+
&:hover input[type=checkbox] + span::before {
|
232
|
+
background: #fff;
|
233
|
+
}
|
234
|
+
|
235
|
+
&:hover input[type=checkbox]:checked + span::before {
|
236
|
+
background: #e1e1e1;
|
237
|
+
}
|
238
|
+
|
239
|
+
input[type=checkbox] + span::before {
|
240
|
+
content: "\2714";
|
241
|
+
text-indent: -9999px;
|
242
|
+
width: 22px;
|
243
|
+
height: 22px;
|
244
|
+
background: #d1d1d1;
|
245
|
+
margin-right: 10px;
|
246
|
+
}
|
247
|
+
|
248
|
+
input[type=checkbox]:checked + span::after {
|
249
|
+
position: absolute;
|
250
|
+
content: "\2713";
|
251
|
+
color: #202020;
|
252
|
+
z-index: 1000;
|
253
|
+
font-size: 20px;
|
254
|
+
font-weight: bold;
|
255
|
+
font-family: Tahoma;
|
256
|
+
left: 4px;
|
257
|
+
top: 4px;
|
258
|
+
}
|
259
|
+
input[type=checkbox]:checked + span::before {
|
260
|
+
background: #d1d1d1;
|
261
|
+
}
|
262
|
+
|
263
|
+
input[type=checkbox]:not(:checked):disabled + span::before {
|
264
|
+
cursor: default;
|
265
|
+
background: #767676;
|
266
|
+
}
|
267
|
+
|
268
|
+
input[type=checkbox]:disabled + span::before {
|
269
|
+
cursor: default;
|
270
|
+
background: #767676;
|
271
|
+
}
|
272
|
+
|
273
|
+
input[type=checkbox]:disabled + span::after {
|
274
|
+
color: #4c4c4c;
|
275
|
+
}
|
276
|
+
|
277
|
+
&:hover input[type=checkbox]:disabled + span::before {
|
278
|
+
cursor: default;
|
279
|
+
background: #767676;
|
280
|
+
}
|
281
|
+
|
282
|
+
}
|
283
|
+
|
284
|
+
.metro-switch {
|
285
|
+
input[type=checkbox],
|
286
|
+
input[type=checkbox] + span,
|
287
|
+
input[type=checkbox] + span::before,
|
288
|
+
input[type=checkbox] + span::after, {
|
289
|
+
vertical-align: middle;
|
290
|
+
display: inline-block;
|
291
|
+
}
|
292
|
+
|
293
|
+
input[type=checkbox] {
|
294
|
+
position: absolute;
|
295
|
+
filter: alpha(opacity=0);
|
296
|
+
-moz-opacity: 0;
|
297
|
+
opacity: 0;
|
298
|
+
}
|
299
|
+
|
300
|
+
input[type=checkbox] + span {
|
301
|
+
font: normal 13px/14px "Segoe UI", Sans-serif;
|
302
|
+
}
|
303
|
+
|
304
|
+
input[type=checkbox] + span::before {
|
305
|
+
content: "";
|
306
|
+
width: 43px;
|
307
|
+
height: 14px;
|
308
|
+
outline: 2px #777777 solid;
|
309
|
+
border: 1px @darken solid;
|
310
|
+
cursor: pointer;
|
311
|
+
background: #6c6c6c;
|
312
|
+
margin-left: 2px;
|
313
|
+
position: relative;
|
314
|
+
margin-right: 10px;
|
315
|
+
z-index: 100;
|
316
|
+
}
|
317
|
+
|
318
|
+
input[type=checkbox] + span::after {
|
319
|
+
content: "";
|
320
|
+
position: absolute;
|
321
|
+
top: 2px;
|
322
|
+
left: 35px;
|
323
|
+
width: 13px;
|
324
|
+
height: 19px;
|
325
|
+
background: #ffffff;
|
326
|
+
z-index: 200;
|
327
|
+
}
|
328
|
+
|
329
|
+
input[type=checkbox]:checked + span::before {
|
330
|
+
background: #008287;
|
331
|
+
}
|
332
|
+
|
333
|
+
input[type=checkbox]:not(:checked) + span::after {
|
334
|
+
top: 2px;
|
335
|
+
left: 0px;
|
336
|
+
}
|
337
|
+
|
338
|
+
input[type=checkbox]:disabled + span::before {
|
339
|
+
cursor: default !important;
|
340
|
+
background: #383838;
|
341
|
+
outline: 2px #494949 solid;
|
342
|
+
}
|
343
|
+
|
344
|
+
input[type=checkbox]:disabled + span::after {
|
345
|
+
background: #6c6c6c;
|
346
|
+
}
|
347
|
+
|
348
|
+
&:hover input[type=checkbox]:not(:checked) + span::before {
|
349
|
+
background: #5f5f5f;
|
350
|
+
}
|
351
|
+
|
352
|
+
&:hover input[type=checkbox] + span::before {
|
353
|
+
background: #219297;
|
354
|
+
}
|
355
|
+
|
356
|
+
&:hover input[type=checkbox]:disabled + span::before {
|
357
|
+
cursor: default;
|
358
|
+
background: #383838;
|
359
|
+
}
|
360
|
+
}
|
361
|
+
|
362
|
+
}
|