semantic_ui_rails 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE +20 -0
  5. data/README.md +4 -0
  6. data/Rakefile +1 -0
  7. data/app/assets/fonts/semantic/icons.eot +0 -0
  8. data/app/assets/fonts/semantic/icons.svg +450 -0
  9. data/app/assets/fonts/semantic/icons.ttf +0 -0
  10. data/app/assets/fonts/semantic/icons.woff +0 -0
  11. data/app/assets/images/semantic/loader-large-inverted.gif +0 -0
  12. data/app/assets/images/semantic/loader-large.gif +0 -0
  13. data/app/assets/images/semantic/loader-medium-inverted.gif +0 -0
  14. data/app/assets/images/semantic/loader-medium.gif +0 -0
  15. data/app/assets/images/semantic/loader-mini-inverted.gif +0 -0
  16. data/app/assets/images/semantic/loader-mini.gif +0 -0
  17. data/app/assets/images/semantic/loader-small-inverted.gif +0 -0
  18. data/app/assets/images/semantic/loader-small.gif +0 -0
  19. data/app/assets/javascript/semantic/accordion.js +411 -0
  20. data/app/assets/javascript/semantic/behavior/api.js +666 -0
  21. data/app/assets/javascript/semantic/behavior/colorize.js +271 -0
  22. data/app/assets/javascript/semantic/behavior/form.js +703 -0
  23. data/app/assets/javascript/semantic/behavior/state.js +752 -0
  24. data/app/assets/javascript/semantic/chatroom.js +766 -0
  25. data/app/assets/javascript/semantic/checkbox.js +348 -0
  26. data/app/assets/javascript/semantic/dimmer.js +524 -0
  27. data/app/assets/javascript/semantic/dropdown.js +707 -0
  28. data/app/assets/javascript/semantic/modal.js +478 -0
  29. data/app/assets/javascript/semantic/nag.js +542 -0
  30. data/app/assets/javascript/semantic/popup.js +721 -0
  31. data/app/assets/javascript/semantic/rating.js +358 -0
  32. data/app/assets/javascript/semantic/search.js +769 -0
  33. data/app/assets/javascript/semantic/shape.js +776 -0
  34. data/app/assets/javascript/semantic/sidebar.js +489 -0
  35. data/app/assets/javascript/semantic/tab.js +674 -0
  36. data/app/assets/javascript/semantic/transition.js +650 -0
  37. data/app/assets/javascript/semantic/video.js +459 -0
  38. data/app/assets/stylesheets/semantic/accordion.css +97 -0
  39. data/app/assets/stylesheets/semantic/breadcrumb.css +66 -0
  40. data/app/assets/stylesheets/semantic/button.css +993 -0
  41. data/app/assets/stylesheets/semantic/chatroom.css +242 -0
  42. data/app/assets/stylesheets/semantic/checkbox.css +300 -0
  43. data/app/assets/stylesheets/semantic/comment.css +178 -0
  44. data/app/assets/stylesheets/semantic/dimmer.css +185 -0
  45. data/app/assets/stylesheets/semantic/divider.css +155 -0
  46. data/app/assets/stylesheets/semantic/dropdown.css +415 -0
  47. data/app/assets/stylesheets/semantic/feed.css +126 -0
  48. data/app/assets/stylesheets/semantic/form.css +427 -0
  49. data/app/assets/stylesheets/semantic/grid.css +561 -0
  50. data/app/assets/stylesheets/semantic/header.css +277 -0
  51. data/app/assets/stylesheets/semantic/icon.css +811 -0
  52. data/app/assets/stylesheets/semantic/image.css +143 -0
  53. data/app/assets/stylesheets/semantic/input.css +225 -0
  54. data/app/assets/stylesheets/semantic/item.css +564 -0
  55. data/app/assets/stylesheets/semantic/label.css +687 -0
  56. data/app/assets/stylesheets/semantic/list.css +418 -0
  57. data/app/assets/stylesheets/semantic/loader.css +148 -0
  58. data/app/assets/stylesheets/semantic/menu.css +1409 -0
  59. data/app/assets/stylesheets/semantic/message.css +242 -0
  60. data/app/assets/stylesheets/semantic/modal.css +123 -0
  61. data/app/assets/stylesheets/semantic/nag.css +130 -0
  62. data/app/assets/stylesheets/semantic/popup.css +209 -0
  63. data/app/assets/stylesheets/semantic/progress.css +257 -0
  64. data/app/assets/stylesheets/semantic/rating.css +120 -0
  65. data/app/assets/stylesheets/semantic/reveal.css +283 -0
  66. data/app/assets/stylesheets/semantic/search.css +222 -0
  67. data/app/assets/stylesheets/semantic/segment.css +362 -0
  68. data/app/assets/stylesheets/semantic/shape.css +87 -0
  69. data/app/assets/stylesheets/semantic/sidebar.css +100 -0
  70. data/app/assets/stylesheets/semantic/step.css +240 -0
  71. data/app/assets/stylesheets/semantic/tab.css +52 -0
  72. data/app/assets/stylesheets/semantic/table.css +468 -0
  73. data/app/assets/stylesheets/semantic/transition.css +867 -0
  74. data/app/assets/stylesheets/semantic/video.css +81 -0
  75. data/lib/semantic_ui_rails/version.rb +3 -0
  76. data/lib/semantic_ui_rails.rb +7 -0
  77. data/semantic_ui_rails.gemspec +23 -0
  78. metadata +149 -0
@@ -0,0 +1,468 @@
1
+ /*
2
+ * # Semantic Table
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: April 24 2013
11
+ */
12
+ /*******************************
13
+ Table
14
+ *******************************/
15
+ /* Prototype */
16
+ .ui.table {
17
+ width: 100%;
18
+ border-collapse: collapse;
19
+ }
20
+ /* Table Content */
21
+ .ui.table th,
22
+ .ui.table tr,
23
+ .ui.table td {
24
+ border-collapse: collapse;
25
+ -webkit-box-sizing: border-box;
26
+ -moz-box-sizing: border-box;
27
+ -ms-box-sizing: border-box;
28
+ box-sizing: border-box;
29
+ -webkit-transition: all 0.1s ease-out;
30
+ -moz-transition: all 0.1s ease-out;
31
+ -o-transition: all 0.1s ease-out;
32
+ -ms-transition: all 0.1s ease-out;
33
+ transition: all 0.1s ease-out;
34
+ }
35
+ /* Headers */
36
+ .ui.table thead {
37
+ border-bottom: 1px solid rgba(0, 0, 0, 0.03);
38
+ }
39
+ .ui.table th {
40
+ cursor: auto;
41
+ background-color: rgba(0, 0, 0, 0.03);
42
+ text-align: left;
43
+ color: rgba(0, 0, 0, 0.8);
44
+ padding: 0.5em 0.7em;
45
+ vertical-align: middle;
46
+ }
47
+ .ui.table thead th:first-child {
48
+ border-radius: 5px 0px 0px 0px;
49
+ }
50
+ .ui.table thead th:last-child {
51
+ border-radius: 0px 5px 0px 0px;
52
+ }
53
+ .ui.table tfoot th:first-child {
54
+ border-radius: 0px 0px 0px 5px;
55
+ }
56
+ .ui.table tfoot th:last-child {
57
+ border-radius: 0px 0px 5px 0px;
58
+ }
59
+ /* Table Cells */
60
+ .ui.table td {
61
+ padding: 0.40em 0.7em;
62
+ vertical-align: middle;
63
+ }
64
+ /* Footer */
65
+ .ui.table tfoot {
66
+ border-top: 1px solid rgba(0, 0, 0, 0.03);
67
+ }
68
+ .ui.table tfoot th {
69
+ font-weight: normal;
70
+ font-style: italic;
71
+ }
72
+ /* Table Striping */
73
+ .ui.table tbody tr:nth-child(2n) {
74
+ background-color: rgba(0, 0, 50, 0.02);
75
+ }
76
+ /* Icons */
77
+ .ui.table > .icon {
78
+ vertical-align: baseline;
79
+ }
80
+ .ui.table > .icon:only-child {
81
+ margin: 0em;
82
+ }
83
+ /* Table Segment */
84
+ .ui.table.segment:after {
85
+ display: none;
86
+ }
87
+ .ui.table.segment.stacked:after {
88
+ display: block;
89
+ }
90
+ /*******************************
91
+ States
92
+ *******************************/
93
+ /*--------------
94
+ Hover
95
+ ---------------*/
96
+ /* Sortable */
97
+ .ui.sortable.table thead th:hover {
98
+ background-image: none;
99
+ color: rgba(0, 0, 0, 0.8);
100
+ }
101
+ .ui.sortable.table th.disabled:hover {
102
+ cursor: auto;
103
+ background-color: rgba(0, 0, 0, 0.1);
104
+ text-align: left;
105
+ font-weight: bold;
106
+ color: #333333;
107
+ color: rgba(0, 0, 0, 0.8);
108
+ }
109
+ /*--------------
110
+ Positive
111
+ ---------------*/
112
+ .ui.table tr.positive,
113
+ .ui.table td.positive {
114
+ -webkit-box-shadow: 2px 0px 0px #119000 inset;
115
+ -moz-box-shadow: 2px 0px 0px #119000 inset;
116
+ box-shadow: 2px 0px 0px #119000 inset;
117
+ }
118
+ .ui.table tr.positive td,
119
+ .ui.table td.positive {
120
+ background-color: #F2F8F0 !important;
121
+ color: #119000 !important;
122
+ }
123
+ .ui.celled.table tr.positive:hover td,
124
+ .ui.celled.table tr:hover td.positive,
125
+ .ui.table tr.positive:hover td,
126
+ .ui.table td:hover.positive,
127
+ .ui.table th:hover.positive {
128
+ background-color: #ECF5E9 !important;
129
+ color: #119000 !important;
130
+ }
131
+ /*--------------
132
+ Negative
133
+ ---------------*/
134
+ .ui.table tr.negative,
135
+ .ui.table td.negative {
136
+ -webkit-box-shadow: 2px 0px 0px #CD2929 inset;
137
+ -moz-box-shadow: 2px 0px 0px #CD2929 inset;
138
+ box-shadow: 2px 0px 0px #CD2929 inset;
139
+ }
140
+ .ui.table tr.negative td,
141
+ .ui.table td.negative {
142
+ background-color: #F9F4F4;
143
+ color: #CD2929 !important;
144
+ }
145
+ .ui.celled.table tr.negative:hover td,
146
+ .ui.celled.table tr:hover td.negative,
147
+ .ui.table tr.negative:hover td,
148
+ .ui.table td:hover.negative,
149
+ .ui.table th:hover.negative {
150
+ background-color: #F2E8E8 !important;
151
+ color: #CD2929 !important;
152
+ }
153
+ /*--------------
154
+ Error
155
+ ---------------*/
156
+ .ui.table tr.error,
157
+ .ui.table td.error {
158
+ -webkit-box-shadow: 2px 0px 0px #CD2929 inset;
159
+ -moz-box-shadow: 2px 0px 0px #CD2929 inset;
160
+ box-shadow: 2px 0px 0px #CD2929 inset;
161
+ }
162
+ .ui.table tr.error td,
163
+ .ui.table td.error,
164
+ .ui.table th.error {
165
+ background-color: #F9F4F4 !important;
166
+ color: #CD2929 !important;
167
+ }
168
+ .ui.celled.table tr.error:hover td,
169
+ .ui.celled.table tr:hover td.error,
170
+ .ui.table tr.error:hover td,
171
+ .ui.table td:hover.error,
172
+ .ui.table th:hover.error {
173
+ background-color: #F2E8E8 !important;
174
+ color: #CD2929 !important;
175
+ }
176
+ /*--------------
177
+ Warning
178
+ ---------------*/
179
+ .ui.table tr.warning,
180
+ .ui.table td.warning {
181
+ -webkit-box-shadow: 2px 0px 0px #7D6C00 inset;
182
+ -moz-box-shadow: 2px 0px 0px #7D6C00 inset;
183
+ box-shadow: 2px 0px 0px #7D6C00 inset;
184
+ }
185
+ .ui.table tr.warning td,
186
+ .ui.table td.warning,
187
+ .ui.table th.warning {
188
+ background-color: #FBF6E9;
189
+ color: #7D6C00 !important;
190
+ }
191
+ .ui.celled.table tr.warning:hover td,
192
+ .ui.celled.table tr:hover td.warning,
193
+ .ui.table tr.warning:hover td,
194
+ .ui.table td:hover.warning,
195
+ .ui.table th:hover.warning {
196
+ background-color: #F3EDDC !important;
197
+ color: #7D6C00 !important;
198
+ }
199
+ /*--------------
200
+ Active
201
+ ---------------*/
202
+ .ui.table tr.active,
203
+ .ui.table td.active {
204
+ -webkit-box-shadow: 2px 0px 0px rgba(50, 50, 50, 0.9) inset;
205
+ -moz-box-shadow: 2px 0px 0px rgba(50, 50, 50, 0.9) inset;
206
+ box-shadow: 2px 0px 0px rgba(50, 50, 50, 0.9) inset;
207
+ }
208
+ .ui.table tr.active td,
209
+ .ui.table tr td.active {
210
+ background-color: #E0E0E0 !important;
211
+ color: rgba(50, 50, 50, 0.9);
212
+ /* border-color: rgba(0, 0, 0, 0.15) !important; */
213
+
214
+ }
215
+ /*--------------
216
+ Disabled
217
+ ---------------*/
218
+ .ui.table tr.disabled td,
219
+ .ui.table tr td.disabled,
220
+ .ui.table tr.disabled:hover td,
221
+ .ui.table tr:hover td.disabled {
222
+ color: rgba(150, 150, 150, 0.3);
223
+ }
224
+ /*******************************
225
+ Variations
226
+ *******************************/
227
+ /*--------------
228
+ Column Count
229
+ ---------------*/
230
+ .ui.two.column.table td {
231
+ width: 50%;
232
+ }
233
+ .ui.three.column.table td {
234
+ width: 33.3333%;
235
+ }
236
+ .ui.four.column.table td {
237
+ width: 25%;
238
+ }
239
+ .ui.five.column.table td {
240
+ width: 20%;
241
+ }
242
+ .ui.six.column.table td {
243
+ width: 16.66667%;
244
+ }
245
+ .ui.seven.column.table td {
246
+ width: 14.2857%;
247
+ }
248
+ .ui.eight.column.table td {
249
+ width: 12.5%;
250
+ }
251
+ .ui.nine.column.table td {
252
+ width: 11.1111%;
253
+ }
254
+ .ui.ten.column.table td {
255
+ width: 10%;
256
+ }
257
+ .ui.eleven.column.table td {
258
+ width: 9.0909%;
259
+ }
260
+ .ui.twelve.column.table td {
261
+ width: 8.3333%;
262
+ }
263
+ .ui.thirteen.column.table td {
264
+ width: 7.6923%;
265
+ }
266
+ .ui.fourteen.column.table td {
267
+ width: 7.1428%;
268
+ }
269
+ .ui.fifteen.column.table td {
270
+ width: 6.6666%;
271
+ }
272
+ .ui.sixteen.column.table td {
273
+ width: 6.25%;
274
+ }
275
+ /* Column Width */
276
+ .ui.table th.one.wide,
277
+ .ui.table td.one.wide {
278
+ width: 6.25%;
279
+ }
280
+ .ui.table th.two.wide,
281
+ .ui.table td.two.wide {
282
+ width: 12.5%;
283
+ }
284
+ .ui.table th.three.wide,
285
+ .ui.table td.three.wide {
286
+ width: 18.75%;
287
+ }
288
+ .ui.table th.four.wide,
289
+ .ui.table td.four.wide {
290
+ width: 25%;
291
+ }
292
+ .ui.table th.five.wide,
293
+ .ui.table td.five.wide {
294
+ width: 31.25%;
295
+ }
296
+ .ui.table th.six.wide,
297
+ .ui.table td.six.wide {
298
+ width: 37.5%;
299
+ }
300
+ .ui.table th.seven.wide,
301
+ .ui.table td.seven.wide {
302
+ width: 43.75%;
303
+ }
304
+ .ui.table th.eight.wide,
305
+ .ui.table td.eight.wide {
306
+ width: 50%;
307
+ }
308
+ .ui.table th.nine.wide,
309
+ .ui.table td.nine.wide {
310
+ width: 56.25%;
311
+ }
312
+ .ui.table th.ten.wide,
313
+ .ui.table td.ten.wide {
314
+ width: 62.5%;
315
+ }
316
+ .ui.table th.eleven.wide,
317
+ .ui.table td.eleven.wide {
318
+ width: 68.75%;
319
+ }
320
+ .ui.table th.twelve.wide,
321
+ .ui.table td.twelve.wide {
322
+ width: 75%;
323
+ }
324
+ .ui.table th.thirteen.wide,
325
+ .ui.table td.thirteen.wide {
326
+ width: 81.25%;
327
+ }
328
+ .ui.table th.fourteen.wide,
329
+ .ui.table td.fourteen.wide {
330
+ width: 87.5%;
331
+ }
332
+ .ui.table th.fifteen.wide,
333
+ .ui.table td.fifteen.wide {
334
+ width: 93.75%;
335
+ }
336
+ .ui.table th.sixteen.wide,
337
+ .ui.table td.sixteen.wide {
338
+ width: 100%;
339
+ }
340
+ /*--------------
341
+ Celled
342
+ ---------------*/
343
+ .ui.celled.table {
344
+ color: rgba(0, 0, 0, 0.8);
345
+ }
346
+ .ui.celled.table tbody tr,
347
+ .ui.celled.table tfoot tr {
348
+ border: none;
349
+ }
350
+ .ui.celled.table th,
351
+ .ui.celled.table tbody td {
352
+ border: 1px solid rgba(0, 0, 0, 0.1);
353
+ }
354
+ /* Coupling with segment */
355
+ .ui.celled.table.segment th {
356
+ border: none;
357
+ }
358
+ .ui.celled.table.segment tbody td:first-child {
359
+ border-left: none;
360
+ }
361
+ .ui.celled.table.segment tbody td:last-child {
362
+ border-right: none;
363
+ }
364
+ /*--------------
365
+ Sortable
366
+ ---------------*/
367
+ .ui.sortable.table thead th {
368
+ cursor: pointer;
369
+ white-space: nowrap;
370
+ }
371
+ .ui.sortable.table thead th.sorted,
372
+ .ui.sortable.table thead th.sorted:hover {
373
+ -webkit-user-select: none;
374
+ -moz-user-select: none;
375
+ -ms-user-select: none;
376
+ user-select: none;
377
+ }
378
+ .ui.sortable.table thead th:after {
379
+ display: inline-block;
380
+ content: '';
381
+ width: 1em;
382
+ opacity: 0.8;
383
+ margin: 0em 0em 0em 0.5em;
384
+ font-family: 'Icons';
385
+ font-style: normal;
386
+ font-weight: normal;
387
+ text-decoration: inherit;
388
+ }
389
+ .ui.sortable.table thead th.ascending:after {
390
+ content: '\25b4';
391
+ }
392
+ .ui.sortable.table thead th.descending:after {
393
+ content: '\25be';
394
+ }
395
+ /*--------------
396
+ Inverted
397
+ ---------------*/
398
+ /* Text Color */
399
+ .ui.inverted.table td {
400
+ color: rgba(255, 255, 255, 0.9);
401
+ }
402
+ .ui.inverted.table th {
403
+ background-color: rgba(0, 0, 0, 0.15);
404
+ color: rgba(255, 255, 255, 0.9);
405
+ }
406
+ /* Stripes */
407
+ .ui.inverted.table tbody tr:nth-child(2n) {
408
+ background-color: rgba(255, 255, 255, 0.06);
409
+ }
410
+ /*--------------
411
+ Definition
412
+ ---------------*/
413
+ .ui.definition.table {
414
+ border: 1px solid rgba(0, 0, 0, 0.1);
415
+ }
416
+ .ui.definition.table tr {
417
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
418
+ }
419
+ .ui.definition.table td:first-child {
420
+ font-weight: bold;
421
+ }
422
+ /*--------------
423
+ Collapsing
424
+ ---------------*/
425
+ .ui.collapsing.table {
426
+ width: auto;
427
+ }
428
+ /*--------------
429
+ Basic
430
+ ---------------*/
431
+ .ui.basic.table th {
432
+ background-color: transparent;
433
+ padding: 0.5em;
434
+ }
435
+ .ui.basic.table tbody tr {
436
+ border-bottom: 1px solid rgba(0, 0, 0, 0.03);
437
+ }
438
+ .ui.basic.table td {
439
+ padding: 0.8em 0.5em;
440
+ }
441
+ /*--------------
442
+ Padded
443
+ ---------------*/
444
+ .ui.padded.table th,
445
+ .ui.padded.table td {
446
+ padding: 0.8em 1em;
447
+ }
448
+ .ui.compact.table th {
449
+ padding: 0.3em 0.5em;
450
+ }
451
+ .ui.compact.table td {
452
+ padding: 0.2em 0.5em;
453
+ }
454
+ /*--------------
455
+ Sizes
456
+ ---------------*/
457
+ /* Small */
458
+ .ui.small.table {
459
+ font-size: 0.875em;
460
+ }
461
+ /* Standard */
462
+ .ui.table {
463
+ font-size: 1em;
464
+ }
465
+ /* Large */
466
+ .ui.large.table {
467
+ font-size: 1.1em;
468
+ }