semantic-ui-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) 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 +26 -0
  6. data/Rakefile +1 -0
  7. data/lib/generators/semantic/install/install_generator.rb +38 -0
  8. data/lib/generators/semantic/install/templates/semantic-ui.js +21 -0
  9. data/lib/generators/semantic/install/templates/semantic-ui/collections.less +6 -0
  10. data/lib/generators/semantic/install/templates/semantic-ui/elements.less +11 -0
  11. data/lib/generators/semantic/install/templates/semantic-ui/modules.less +18 -0
  12. data/lib/generators/semantic/install/templates/semantic-ui/views.less +6 -0
  13. data/lib/semantic/ui/rails.rb +10 -0
  14. data/lib/semantic/ui/rails/engine.rb +8 -0
  15. data/lib/semantic/ui/rails/version.rb +7 -0
  16. data/semantic-ui-rails.gemspec +23 -0
  17. data/vendor/assets/fonts/icons.eot +0 -0
  18. data/vendor/assets/fonts/icons.svg +450 -0
  19. data/vendor/assets/fonts/icons.ttf +0 -0
  20. data/vendor/assets/fonts/icons.woff +0 -0
  21. data/vendor/assets/images/semantic-ui/loader-large-inverted.gif +0 -0
  22. data/vendor/assets/images/semantic-ui/loader-large.gif +0 -0
  23. data/vendor/assets/images/semantic-ui/loader-medium-inverted.gif +0 -0
  24. data/vendor/assets/images/semantic-ui/loader-medium.gif +0 -0
  25. data/vendor/assets/images/semantic-ui/loader-mini-inverted.gif +0 -0
  26. data/vendor/assets/images/semantic-ui/loader-mini.gif +0 -0
  27. data/vendor/assets/images/semantic-ui/loader-small-inverted.gif +0 -0
  28. data/vendor/assets/images/semantic-ui/loader-small.gif +0 -0
  29. data/vendor/assets/javascripts/semantic-ui/accordion.js +411 -0
  30. data/vendor/assets/javascripts/semantic-ui/behavior/api.js +666 -0
  31. data/vendor/assets/javascripts/semantic-ui/behavior/colorize.js +271 -0
  32. data/vendor/assets/javascripts/semantic-ui/behavior/form.js +657 -0
  33. data/vendor/assets/javascripts/semantic-ui/behavior/state.js +752 -0
  34. data/vendor/assets/javascripts/semantic-ui/carousel.js +327 -0
  35. data/vendor/assets/javascripts/semantic-ui/chatroom.js +766 -0
  36. data/vendor/assets/javascripts/semantic-ui/checkbox.js +348 -0
  37. data/vendor/assets/javascripts/semantic-ui/dimmer.js +525 -0
  38. data/vendor/assets/javascripts/semantic-ui/dropdown.js +697 -0
  39. data/vendor/assets/javascripts/semantic-ui/modal.js +478 -0
  40. data/vendor/assets/javascripts/semantic-ui/nag.js +542 -0
  41. data/vendor/assets/javascripts/semantic-ui/popup.js +721 -0
  42. data/vendor/assets/javascripts/semantic-ui/rating.js +358 -0
  43. data/vendor/assets/javascripts/semantic-ui/search.js +770 -0
  44. data/vendor/assets/javascripts/semantic-ui/shape.js +776 -0
  45. data/vendor/assets/javascripts/semantic-ui/sidebar.js +489 -0
  46. data/vendor/assets/javascripts/semantic-ui/tab.js +674 -0
  47. data/vendor/assets/javascripts/semantic-ui/transition.js +645 -0
  48. data/vendor/assets/javascripts/semantic-ui/video.js +459 -0
  49. data/vendor/assets/stylesheets/semantic-ui/collections/breadcrumb.less +79 -0
  50. data/vendor/assets/stylesheets/semantic-ui/collections/form.less +536 -0
  51. data/vendor/assets/stylesheets/semantic-ui/collections/grid.less +655 -0
  52. data/vendor/assets/stylesheets/semantic-ui/collections/menu.less +1736 -0
  53. data/vendor/assets/stylesheets/semantic-ui/collections/message.less +337 -0
  54. data/vendor/assets/stylesheets/semantic-ui/collections/table.less +526 -0
  55. data/vendor/assets/stylesheets/semantic-ui/elements/button.less +1294 -0
  56. data/vendor/assets/stylesheets/semantic-ui/elements/divider.less +200 -0
  57. data/vendor/assets/stylesheets/semantic-ui/elements/header.less +325 -0
  58. data/vendor/assets/stylesheets/semantic-ui/elements/icon.less +449 -0
  59. data/vendor/assets/stylesheets/semantic-ui/elements/image.less +170 -0
  60. data/vendor/assets/stylesheets/semantic-ui/elements/input.less +287 -0
  61. data/vendor/assets/stylesheets/semantic-ui/elements/label.less +805 -0
  62. data/vendor/assets/stylesheets/semantic-ui/elements/loader.less +178 -0
  63. data/vendor/assets/stylesheets/semantic-ui/elements/progress.less +353 -0
  64. data/vendor/assets/stylesheets/semantic-ui/elements/segment.less +465 -0
  65. data/vendor/assets/stylesheets/semantic-ui/elements/step.less +294 -0
  66. data/vendor/assets/stylesheets/semantic-ui/modules/accordion.less +135 -0
  67. data/vendor/assets/stylesheets/semantic-ui/modules/carousel.less +71 -0
  68. data/vendor/assets/stylesheets/semantic-ui/modules/chatroom.less +271 -0
  69. data/vendor/assets/stylesheets/semantic-ui/modules/checkbox.less +378 -0
  70. data/vendor/assets/stylesheets/semantic-ui/modules/dimmer.less +230 -0
  71. data/vendor/assets/stylesheets/semantic-ui/modules/dropdown.less +506 -0
  72. data/vendor/assets/stylesheets/semantic-ui/modules/extra.transition.less +1197 -0
  73. data/vendor/assets/stylesheets/semantic-ui/modules/modal.less +154 -0
  74. data/vendor/assets/stylesheets/semantic-ui/modules/nag.less +175 -0
  75. data/vendor/assets/stylesheets/semantic-ui/modules/popup.less +238 -0
  76. data/vendor/assets/stylesheets/semantic-ui/modules/rating.less +151 -0
  77. data/vendor/assets/stylesheets/semantic-ui/modules/reveal.less +367 -0
  78. data/vendor/assets/stylesheets/semantic-ui/modules/search.less +275 -0
  79. data/vendor/assets/stylesheets/semantic-ui/modules/shape.less +115 -0
  80. data/vendor/assets/stylesheets/semantic-ui/modules/sidebar.less +147 -0
  81. data/vendor/assets/stylesheets/semantic-ui/modules/tab.less +59 -0
  82. data/vendor/assets/stylesheets/semantic-ui/modules/transition.less +839 -0
  83. data/vendor/assets/stylesheets/semantic-ui/modules/video.less +99 -0
  84. data/vendor/assets/stylesheets/semantic-ui/views/comment.less +221 -0
  85. data/vendor/assets/stylesheets/semantic-ui/views/feed.less +151 -0
  86. data/vendor/assets/stylesheets/semantic-ui/views/item.less +641 -0
  87. data/vendor/assets/stylesheets/semantic-ui/views/list.less +491 -0
  88. data/vendor/assets/stylesheets/semantic-ui/views/sitemap.less +47 -0
  89. data/vendor/assets/stylesheets/semantic-ui/views/statistic.less +34 -0
  90. metadata +161 -0
@@ -0,0 +1,465 @@
1
+ /*
2
+ * # Semantic Segment - Flat
3
+ * http://github.com/quirkyinc/semantic
4
+ *
5
+ *
6
+ * Copyright 2013 Contributors
7
+ * Released under the MIT license
8
+ * http://opensource.org/licenses/MIT
9
+ *
10
+ * Released: May 17 2013
11
+ */
12
+
13
+
14
+ /*******************************
15
+ Segment
16
+ *******************************/
17
+
18
+ .ui.segment {
19
+ position: relative;
20
+ background-color: #FFFFFF;
21
+
22
+ -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
23
+ -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
24
+ box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
25
+
26
+ margin: 1em 0em;
27
+ padding: 1em;
28
+
29
+ -webkit-border-radius: 5px 5px 5px 5px;
30
+ -moz-border-radius: 5px 5px 5px 5px;
31
+ border-radius: 5px 5px 5px 5px;
32
+
33
+ -webkit-box-sizing: border-box;
34
+ -moz-box-sizing: border-box;
35
+ -ms-box-sizing: border-box;
36
+ box-sizing: border-box;
37
+
38
+ }
39
+
40
+ .ui.segment:first-child {
41
+ margin-top: 0em;
42
+ }
43
+
44
+ .ui.segment:last-child {
45
+ margin-bottom: 0em;
46
+ }
47
+
48
+ .ui.segment:after {
49
+ content: '';
50
+ display: block;
51
+ height: 0;
52
+ clear: both;
53
+ visibility: hidden;
54
+ }
55
+
56
+ .ui.vertical.segment {
57
+ margin: 0em;
58
+ padding-left: 0em;
59
+ padding-right: 0em;
60
+
61
+ background-color: transparent;
62
+
63
+ -webkit-border-radius: 0px;
64
+ -moz-border-radius: 0px;
65
+ border-radius: 0px;
66
+
67
+ -webkit-box-shadow:
68
+ 0px 1px 0px rgba(0, 0, 0, 0.1)
69
+ ;
70
+ -moz-box-shadow:
71
+ 0px 1px 0px rgba(0, 0, 0, 0.1)
72
+ ;
73
+ box-shadow:
74
+ 0px 1px 0px rgba(0, 0, 0, 0.1)
75
+ ;
76
+ }
77
+ .ui.vertical.segment:first-child {
78
+ padding-top: 0em;
79
+ }
80
+
81
+ .ui.horizontal.segment {
82
+ margin: 0em;
83
+ padding-top: 0em;
84
+ padding-bottom: 0em;
85
+
86
+ background-color: transparent;
87
+
88
+ -webkit-border-radius: 0px;
89
+ -moz-border-radius: 0px;
90
+ border-radius: 0px;
91
+
92
+ -webkit-box-shadow:
93
+ 1px 0px 0px rgba(0, 0, 0, 0.1)
94
+ ;
95
+ -moz-box-shadow:
96
+ 1px 0px 0px rgba(0, 0, 0, 0.1)
97
+ ;
98
+ box-shadow:
99
+ 1px 0px 0px rgba(0, 0, 0, 0.1)
100
+ ;
101
+ }
102
+ .ui.horizontal.segment:first-child {
103
+ padding-left: 0em;
104
+ }
105
+
106
+ /*-------------------
107
+ Loose Coupling
108
+ --------------------*/
109
+
110
+ .ui.pointing.menu + .ui.attached.segment {
111
+ top: 1px;
112
+ }
113
+
114
+ /* No padding on edge content */
115
+ .ui.segment > :first-child {
116
+ margin-top: 0em;
117
+ }
118
+ .ui.segment > :last-child {
119
+ margin-bottom: 0em;
120
+ }
121
+
122
+ /* Padding on next content after a label */
123
+ .ui.segment > .attached.label:first-child + * {
124
+ margin-top: 2em;
125
+ }
126
+ .ui.segment > .bottom.attached.label:first-child ~ :last-child {
127
+ margin-top: 0em;
128
+ margin-bottom: 2em;
129
+ }
130
+
131
+ /*******************************
132
+ Types
133
+ *******************************/
134
+
135
+ /*-------------------
136
+ Piled
137
+ --------------------*/
138
+
139
+ .ui.piled.segment {
140
+ margin: 2em 0em;
141
+ -webkit-box-shadow:
142
+ 0px 0px 1px 1px rgba(0, 0, 0, 0.15)
143
+ ;
144
+ -moz-box-shadow:
145
+ 0px 0px 1px 1px rgba(0, 0, 0, 0.15)
146
+ ;
147
+ -ms-box-shadow:
148
+ 0px 0px 1px 1px rgba(0, 0, 0, 0.15)
149
+ ;
150
+ -o-box-shadow:
151
+ 0px 0px 1px 1px rgba(0, 0, 0, 0.15)
152
+ ;
153
+ box-shadow:
154
+ 0px 0px 1px 1px rgba(0, 0, 0, 0.15)
155
+ ;
156
+ }
157
+ .ui.piled.segment:first-child {
158
+ margin-top: 0em;
159
+ }
160
+ .ui.piled.segment:last-child {
161
+ margin-bottom: 0em;
162
+ }
163
+ .ui.piled.segment:after,
164
+ .ui.piled.segment:before {
165
+ background-color: #FFFFFF;
166
+ visibility: visible;
167
+ content: "";
168
+ display: block;
169
+ height: 100%;
170
+ left: -1px;
171
+ position: absolute;
172
+ width: 100%;
173
+
174
+ -webkit-box-shadow:
175
+ 0px 0px 1px 1px rgba(0, 0, 0, 0.1)
176
+ ;
177
+ -moz-box-shadow:
178
+ 0px 0px 1px 1px rgba(0, 0, 0, 0.1)
179
+ ;
180
+ box-shadow:
181
+ 0px 0px 1px 1px rgba(0, 0, 0, 0.1)
182
+ ;
183
+ }
184
+ .ui.piled.segment:after {
185
+ -webkit-transform: rotate(1.2deg);
186
+ -moz-transform: rotate(1.2deg);
187
+ -ms-transform: rotate(1.2deg);
188
+ -o-transform: rotate(1.2deg);
189
+ transform: rotate(1.2deg);
190
+ top: 0;
191
+ z-index: -1;
192
+ }
193
+ .ui.piled.segment:before {
194
+ -webkit-transform: rotate(-1.2deg);
195
+ -moz-transform: rotate(-1.2deg);
196
+ -ms-transform: rotate(-1.2deg);
197
+ -o-transform: rotate(-1.2deg);
198
+ transform: rotate(-1.2deg);
199
+ top: 0;
200
+ z-index: -2;
201
+ }
202
+
203
+ /*-------------------
204
+ Stacked
205
+ --------------------*/
206
+
207
+ .ui.stacked.segment {
208
+ padding-bottom: 1.7em;
209
+ }
210
+ .ui.stacked.segment:after,
211
+ .ui.stacked.segment:before {
212
+ content: '';
213
+ position: absolute;
214
+ bottom: -3px;
215
+ left: 0%;
216
+
217
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
218
+ background-color: rgba(0, 0, 0, 0.02);
219
+
220
+ width: 100%;
221
+ height: 5px;
222
+ visibility: visible;
223
+ }
224
+ .ui.stacked.segment:before {
225
+ bottom: 0px;
226
+ }
227
+
228
+ /* Inverted */
229
+ .ui.stacked.inverted.segment:after,
230
+ .ui.stacked.inverted.segment:before {
231
+ background-color: rgba(255, 255, 255, 0.1);
232
+ border-top: 1px solid rgba(255, 255, 255, 0.35);
233
+ }
234
+
235
+ /*-------------------
236
+ Raised
237
+ --------------------*/
238
+
239
+ .ui.raised.segment {
240
+ -webkit-box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.1);
241
+ -moz-box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.1);
242
+ box-shadow: 0px 1px 2px 1px rgba(0, 0, 0, 0.1);
243
+ }
244
+
245
+
246
+ /*******************************
247
+ States
248
+ *******************************/
249
+
250
+ .ui.disabled.segment {
251
+ opacity: 0.8;
252
+ color: #DDDDDD;
253
+ }
254
+
255
+
256
+ /*******************************
257
+ Variations
258
+ *******************************/
259
+
260
+
261
+ /*-------------------
262
+ Basic
263
+ --------------------*/
264
+
265
+ .ui.basic.segment {
266
+ position: relative;
267
+ background-color: transparent;
268
+
269
+ -webkit-box-shadow: none;
270
+ -moz-box-shadow: none;
271
+ box-shadow: none;
272
+
273
+ -webkit-border-radius: 0px;
274
+ -moz-border-radius: 0px;
275
+ border-radius: 0px;
276
+ }
277
+ .ui.basic.segment:first-child {
278
+ padding-top: 0em;
279
+ }
280
+ .ui.basic.segment:last-child {
281
+ padding-bottom: 0em;
282
+ }
283
+
284
+
285
+ /*-------------------
286
+ Fittted
287
+ --------------------*/
288
+
289
+ .ui.fitted.segment {
290
+ padding: 0em;
291
+ }
292
+
293
+
294
+ /*-------------------
295
+ Colors
296
+ --------------------*/
297
+
298
+ .ui.blue.segment {
299
+ border-top: 0.2em solid #6ECFF5;
300
+ }
301
+ .ui.green.segment {
302
+ border-top: 0.2em solid #A1CF64;
303
+ }
304
+ .ui.red.segment {
305
+ border-top: 0.2em solid #D95C5C;
306
+ }
307
+ .ui.purple.segment {
308
+ border-top: 0.2em solid #564F8A;
309
+ }
310
+ .ui.teal.segment {
311
+ border-top: 0.2em solid #00B5AD;
312
+ }
313
+
314
+ /*-------------------
315
+ Inverted Colors
316
+ --------------------*/
317
+
318
+ .ui.inverted.black.segment {
319
+ background-color: #5C6166 !important;
320
+ color: #FFFFFF !important;
321
+ }
322
+ .ui.inverted.blue.segment {
323
+ background-color: #6ECFF5 !important;
324
+ color: #FFFFFF !important;
325
+ }
326
+ .ui.inverted.green.segment {
327
+ background-color: #A1CF64 !important;
328
+ color: #FFFFFF !important;
329
+ }
330
+ .ui.inverted.red.segment {
331
+ background-color: #D95C5C !important;
332
+ color: #FFFFFF !important;
333
+ }
334
+ .ui.inverted.purple.segment {
335
+ background-color: #564F8A !important;
336
+ color: #FFFFFF !important;
337
+ }
338
+ .ui.inverted.teal.segment {
339
+ background-color: #00B5AD !important;
340
+ color: #FFFFFF !important;
341
+ }
342
+
343
+
344
+ /*-------------------
345
+ Aligned
346
+ --------------------*/
347
+
348
+ .ui.left.aligned.segment {
349
+ text-align: left;
350
+ }
351
+ .ui.right.aligned.segment {
352
+ text-align: right;
353
+ }
354
+ .ui.center.aligned.segment {
355
+ text-align: center;
356
+ }
357
+
358
+ /*-------------------
359
+ Floated
360
+ --------------------*/
361
+
362
+ .ui.floated.segment,
363
+ .ui.left.floated.segment {
364
+ float: left;
365
+ }
366
+ .ui.right.floated.segment {
367
+ float: right;
368
+ }
369
+
370
+
371
+ /*-------------------
372
+ Inverted
373
+ --------------------*/
374
+
375
+ .ui.inverted.segment {
376
+ border: none;
377
+ -webkit-box-shadow: none;
378
+ -moz-box-shadow: none;
379
+ box-shadow: none;
380
+ }
381
+ .ui.inverted.segment,
382
+ .ui.primary.inverted.segment {
383
+ background-color: #222222;
384
+ color: #FFFFFF;
385
+ }
386
+
387
+ /*-------------------
388
+ Ordinality
389
+ --------------------*/
390
+
391
+ .ui.primary.segment {
392
+ background-color: #FFFFFF;
393
+ color: #555555;
394
+ }
395
+
396
+ .ui.secondary.segment {
397
+ background-color: #FAF9FA;
398
+ color: #777777;
399
+ }
400
+
401
+ .ui.tertiary.segment {
402
+ background-color: #EBEBEB;
403
+ color: #B0B0B0;
404
+ }
405
+
406
+ .ui.secondary.inverted.segment {
407
+ background-color: #555555;
408
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255, 255, 255, 0.3)), to(rgba(255, 255, 255, 0.3)));
409
+ background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
410
+ background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
411
+ background-image: -o-linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
412
+ background-image: linear-gradient(rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.3) 100%);
413
+ color: #FAFAFA;
414
+ }
415
+ .ui.tertiary.inverted.segment {
416
+ background-color: #555555;
417
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(rgba(255, 255, 255, 0.6)), to(rgba(255, 255, 255, 0.6)));
418
+ background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
419
+ background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
420
+ background-image: -o-linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
421
+ background-image: linear-gradient(rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 100%);
422
+ color: #EEEEEE;
423
+ }
424
+
425
+
426
+ /*-------------------
427
+ Attached
428
+ --------------------*/
429
+
430
+ .ui.segment.attached {
431
+ top: -1px;
432
+ bottom: -1px;
433
+
434
+ -moz-border-radius: 0px;
435
+ -webkit-border-radius: 0px;
436
+ border-radius: 0px;
437
+
438
+ margin: 0em;
439
+
440
+ -moz-box-shadow: 0px 0px 0px 1px #DDDDDD;
441
+ -webkit-box-shadow: 0px 0px 0px 1px #DDDDDD;
442
+ box-shadow: 0px 0px 0px 1px #DDDDDD;
443
+ }
444
+ .ui.top.attached.segment {
445
+ top: 0px;
446
+ bottom: -1px;
447
+
448
+ margin-top: 1em;
449
+ margin-bottom: 0em;
450
+
451
+ -moz-border-radius: 5px 5px 0px 0px;
452
+ -webkit-border-radius: 5px 5px 0px 0px;
453
+ border-radius: 5px 5px 0px 0px;
454
+ }
455
+ .ui.segment.bottom.attached {
456
+ top: -1px;
457
+ bottom: 0px;
458
+
459
+ margin-top: 0em;
460
+ margin-bottom: 1em;
461
+
462
+ -moz-border-radius: 0px 0px 5px 5px;
463
+ -webkit-border-radius: 0px 0px 5px 5px;
464
+ border-radius: 0px 0px 5px 5px;
465
+ }