metro-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,82 @@
1
+ /*
2
+ * Metro UI CSS v 1.0.1
3
+ * Copyright 2012 Sergey Pimenov
4
+ * Licensed under the MIT Lilcense
5
+ */
6
+
7
+ .metro {
8
+ .metro-form {
9
+
10
+ .metro-form-control {
11
+ margin-bottom: 10px;
12
+
13
+ label {
14
+ font-size: 11pt;
15
+ }
16
+
17
+ .metro-text-box {
18
+ position: relative;
19
+ width: 100%;
20
+
21
+ input[type=text] {
22
+ background: #d2d2d2;
23
+ border: 2px #d2d2d2 solid;
24
+ color: #646464;
25
+ border-radius: 0;
26
+ font-size: 11pt;
27
+ padding: 5px 8px;
28
+ width: 100%;
29
+ outline: 0;
30
+ display: inline-block;
31
+
32
+ &:focus {
33
+ background: #fff;
34
+ border-color: #fff;
35
+ color: #000;
36
+ }
37
+
38
+ &:disabled {
39
+ background: #1d1d1d;
40
+ border: 2px #777777 solid;
41
+ }
42
+
43
+ &:not(:focus):not(:disabled):hover {
44
+ background: #e2e2e2;
45
+ }
46
+ }
47
+
48
+ .helper {
49
+ cursor: pointer;
50
+ z-index: 100;
51
+ }
52
+
53
+ input[type=text] + .helper::before {
54
+ display: inline-block;
55
+ position: absolute;
56
+ width: 16px;
57
+ height: 16px;
58
+ background: #ccc;
59
+ top: 3px;
60
+ right: -17px;
61
+ visibility: hidden;
62
+ content: "\00d7";
63
+ font-size: 18pt;
64
+ font-weight: bold;
65
+ color: #000;
66
+ cursor: pointer;
67
+ padding: 2px 6px 9px 6px;
68
+ }
69
+ input[type=text]:focus + .helper::before {
70
+ visibility: visible;
71
+ }
72
+
73
+ &:hover input[type=text] + .helper:before {
74
+ background: #dedede !important;
75
+ }
76
+ &:action input[type=text] + .helper:before {
77
+ background: #000 !important;
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
@@ -0,0 +1,371 @@
1
+ /*
2
+ * Metro UI CSS v 1.0.1
3
+ * Copyright 2012 Sergey Pimenov
4
+ * Licensed under the MIT Lilcense
5
+ * Images collections
6
+ *
7
+ */
8
+
9
+ .metro {
10
+
11
+ .metro-images {
12
+ list-style: none;
13
+ margin: 0;
14
+ padding: 0;
15
+
16
+ .metro-image {
17
+ display: block;
18
+ float: left;
19
+ width: @block-width;
20
+ height: @block-height;
21
+ overflow: hidden;
22
+ border: 4px transparent solid;
23
+ margin: @block-margin;
24
+ position: relative;
25
+ cursor: pointer;
26
+
27
+ .image {
28
+ width: @block-image-width;
29
+ height: @block-image-height;
30
+ display: table-cell;
31
+ text-align: center;
32
+ vertical-align: middle;
33
+ background: #6e6e6e;
34
+ z-index: 1;
35
+ overflow: hidden;
36
+ // border: 1px #fff dotted;
37
+
38
+ img {
39
+ max-width: @block-image-width;
40
+ max-height: @block-image-height;
41
+ display:inline-block !important;
42
+ vertical-align:middle !important;
43
+ }
44
+ }
45
+
46
+ &:hover {
47
+ border: 4px #57d3d9 solid;
48
+
49
+ .overlay.floatable {
50
+ -webkit-transform: translate(0, -30px);
51
+ -ms-transform: translate(0, -30px);
52
+ -o-transform: translate(0, -30px);
53
+ -moz-transform: translate(0, -30px);
54
+ transform: translate(0, -30px);
55
+
56
+ -webkit-transition: all @overlay-speed ease;
57
+ -moz-transition: all @overlay-speed ease;
58
+ -o-transition: all @overlay-speed ease;
59
+ transition: all @overlay-speed easet;
60
+ }
61
+
62
+ .overlay.double.floatable {
63
+ -webkit-transform: translate(0, -60px);
64
+ -ms-transform: translate(0, -60px);
65
+ -o-transform: translate(0, -60px);
66
+ -moz-transform: translate(0, -60px);
67
+ transform: translate(0, -60px);
68
+ }
69
+ }
70
+
71
+ .overlay {
72
+ z-index: 2;
73
+ position: absolute;
74
+ bottom: 0;
75
+ height: @overlay-height;
76
+ width: 100%;
77
+ background: #262626;
78
+ overflow: hidden;
79
+ text-align: center;
80
+ display: block;
81
+ float: none;
82
+
83
+ * {
84
+ margin: 0;
85
+ padding: 0;
86
+ }
87
+
88
+ .text {
89
+ color: @white;
90
+ font-size: 14px;
91
+ padding-top: 5px;
92
+ //text-align: center;
93
+ }
94
+ }
95
+
96
+ .overlay.double {
97
+ height: @overlay-height * 2;
98
+ }
99
+
100
+ .overlay.floatable {
101
+ bottom: -30px;
102
+ }
103
+
104
+ .overlay.double.floatable {
105
+ bottom: -60px;
106
+ }
107
+ }
108
+
109
+ .metro-image-overlay {
110
+ display: block;
111
+ float: left;
112
+ width: @large-block-width;
113
+ height: @large-block-height;
114
+ overflow: hidden;
115
+ border: 4px transparent solid;
116
+ margin: @block-margin;
117
+ position: relative;
118
+ cursor: pointer;
119
+
120
+ .image {
121
+ width: @large-block-image-width;
122
+ height: @large-block-image-height;
123
+ display: table-cell;
124
+ text-align: center;
125
+ vertical-align: middle;
126
+ background: #6e6e6e;
127
+ z-index: 1;
128
+ overflow: hidden;
129
+ // border: 1px #fff dotted;
130
+
131
+ img {
132
+ max-width: @large-block-image-width;
133
+ max-height: @large-block-image-height;
134
+ display:inline-block !important;
135
+ vertical-align:middle !important;
136
+ }
137
+ }
138
+
139
+ .overlay {
140
+ z-index: 2;
141
+ position: absolute;
142
+ bottom: 0;
143
+ height: @large-overlay-height;
144
+ width: 100%;
145
+ background: #262626;
146
+ overflow: hidden;
147
+ text-align: center;
148
+ display: block;
149
+ float: none;
150
+
151
+ * {
152
+ margin: 0;
153
+ padding: 0;
154
+ }
155
+
156
+ .text {
157
+ color: @white;
158
+ font-size: 14px;
159
+ text-align: left;
160
+ padding: 5px 20px;
161
+
162
+ small {
163
+ font-size: 10px;
164
+ color: #909090;
165
+ display: block;
166
+ margin: 5px 0;
167
+ }
168
+ }
169
+ }
170
+ &:hover {
171
+ border: 4px #57d3d9 solid;
172
+ }
173
+ }
174
+
175
+ .metro-image, .metro-image-overlay {
176
+ .image.stretch {
177
+ img {
178
+ width: 100% !important;
179
+ height: 100% !important;
180
+ }
181
+ }
182
+
183
+ .image.stretchH {
184
+ img {
185
+ height: 100% !important;
186
+ max-width: auto !important;
187
+ }
188
+ }
189
+
190
+ .image.stretchW {
191
+ img {
192
+ width: 100% !important;
193
+ max-height: auto !important;
194
+ }
195
+ }
196
+ }
197
+
198
+ .metro-image.no-hovered, .metro-image-overlay.no-hovered {
199
+ border: 4px transparent solid;
200
+ }
201
+
202
+ .metro-image.selected, .metro-image-overlay.selected, .metro-icon-text.selected, .metro-image-text.selected {
203
+ border: 4px #219297 solid;
204
+ b.check {
205
+ width: 0;
206
+ height: 0;
207
+ border-top: 30px solid #219297;
208
+ border-left: 30px solid transparent;
209
+ position: absolute;
210
+ display: block;
211
+ right: 0;
212
+
213
+ &:after {
214
+ position: absolute;
215
+ content: "\2713";
216
+ color: #fff;
217
+ top: -35px;
218
+ right: 0px;
219
+ }
220
+ }
221
+ }
222
+
223
+ .metro-icon-text.selected {
224
+ border: 0;
225
+ background: #219297;
226
+ b.check {
227
+ &:after {
228
+ right: 5px;
229
+ top: -30px;
230
+ }
231
+ }
232
+ }
233
+
234
+ .metro-icon-text-header {
235
+ text-decoration: none;
236
+ color: #fff;
237
+ margin: 20px 0;
238
+ text-decoration: none;
239
+
240
+ * {
241
+ color: #fff;
242
+ text-decoration: none;
243
+ }
244
+ }
245
+
246
+ .metro-icon-text.disabled {
247
+ * {
248
+ color: #696969 !important;
249
+ }
250
+ &:hover {
251
+ background: transparent;
252
+ }
253
+ }
254
+
255
+ .metro-icon-text {
256
+ display: block;
257
+ width: 250px;
258
+ height: 60px;
259
+ overflow: hidden;
260
+ margin: @block-margin;
261
+ position: relative;
262
+ cursor: pointer;
263
+ background: transparent;
264
+ padding-bottom: 10px;
265
+
266
+ .image {
267
+ margin: 10px 0 10px 10px;
268
+ background: #6e6e6e;
269
+ border: 4px #464646 solid;
270
+ width: 40px;
271
+ height: 40px;
272
+ float: left;
273
+
274
+ img {
275
+ width: 100%;
276
+ height: 100%;
277
+ }
278
+ }
279
+
280
+ .text {
281
+ margin: 15px 20px 10px 65px;
282
+ .title {
283
+ color: #fff;
284
+ font-size: 95%;
285
+ font-weight: bold;
286
+ }
287
+ .subtitle {
288
+ font-size: 75%;
289
+ color: #ccc;
290
+ }
291
+
292
+ }
293
+
294
+ &:hover {
295
+ background: #219297;
296
+ }
297
+ }
298
+
299
+ .metro-image-text {
300
+ display: block;
301
+ width: 480px;
302
+ height: 110px;
303
+ margin: @block-margin;
304
+ position: relative;
305
+ cursor: pointer;
306
+ background: transparent;
307
+ padding: 10px;
308
+ overflow: hidden;
309
+
310
+ &:hover {
311
+ background: #219297;
312
+
313
+ * {
314
+ color: #fff !important;
315
+ }
316
+ }
317
+
318
+ .image {
319
+ margin: 10px;
320
+ width: 110px;
321
+ height: 110px;
322
+ display: table-cell;
323
+ text-align: center;
324
+ vertical-align: middle;
325
+ background: #6e6e6e;
326
+ z-index: 1;
327
+ overflow: hidden;
328
+
329
+ img {
330
+ max-width: 110px;
331
+ //height: 100%;
332
+ display:inline-block !important;
333
+ vertical-align:middle !important;
334
+ }
335
+ }
336
+ .text {
337
+ margin-left: 120px;
338
+ margin-top: -115px;
339
+
340
+ .title {
341
+ font-size: 100%;
342
+ //font-weight: bolder;
343
+ color: @white;
344
+ }
345
+ .subtitle {
346
+ font-size: 75%;
347
+ color: #7b7b7b;
348
+ }
349
+ .description {
350
+ font-size: 90%;
351
+ color: @white;
352
+ }
353
+ }
354
+ }
355
+ .metro-image-text.selected {
356
+ border: 0;
357
+ background: #219297;
358
+ * {
359
+ color: #fff !important;
360
+ }
361
+ b.check {
362
+ &:after {
363
+ right: 5px;
364
+ top: -40px;
365
+ }
366
+ }
367
+ }
368
+ }
369
+
370
+ .metro-images.selectable {}
371
+ }