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,154 @@
1
+ /*
2
+ * # Semantic Modal
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: Aug 05, 2013
11
+ */
12
+
13
+
14
+ /*******************************
15
+ Modal
16
+ *******************************/
17
+
18
+ .ui.modal {
19
+ display: none;
20
+ position: fixed;
21
+ z-index: 1001;
22
+
23
+ top: 50%;
24
+ left: 50%;
25
+ text-align: left;
26
+
27
+ width: 800px;
28
+ margin-left: -400px;
29
+
30
+ background-color: #FFFFFF;
31
+ border: 1px solid #DDDDDD;
32
+
33
+ -webkit-border-radius: 5px;
34
+ -moz-border-radius: 5px;
35
+ border-radius: 5px;
36
+ }
37
+
38
+ /*******************************
39
+ Content
40
+ *******************************/
41
+
42
+ /*--------------
43
+ Close
44
+ ---------------*/
45
+
46
+ .ui.modal > .close {
47
+ cursor: pointer;
48
+ position: absolute;
49
+
50
+ opacity: 0.8;
51
+
52
+ font-size: 1.25em;
53
+ top: -1.75em;
54
+ right: -1.75em;
55
+
56
+ color: #FFFFFF;
57
+ }
58
+ .ui.modal > .close:hover {
59
+ opacity: 1;
60
+ }
61
+
62
+ /*--------------
63
+ Header
64
+ ---------------*/
65
+
66
+ .ui.modal > .header {
67
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
68
+
69
+ margin: 0em;
70
+ padding: 1.5rem 2rem;
71
+
72
+ font-size: 1.6em;
73
+ font-weight: bold;
74
+
75
+ -webkit-border-radius: 0.325em 0.325em 0px 0px;
76
+ -moz-border-radius: 0.325em 0.325em 0px 0px;
77
+ border-radius: 0.325em 0.325em 0px 0px;
78
+ }
79
+
80
+ /*--------------
81
+ Content
82
+ ---------------*/
83
+
84
+ .ui.modal > .content {
85
+ display: table;
86
+ position: relative;
87
+ padding: 2em;
88
+ background-color: #F4F4F4;
89
+ }
90
+ .ui.modal > .content > .left {
91
+ display: table-cell;
92
+ padding-right: 5%;
93
+ }
94
+ .ui.modal > .content > .right {
95
+ display: table-cell;
96
+ padding-left: 5%;
97
+ vertical-align: middle;
98
+
99
+ box-shadow: -1px 0px 0px 0px rgba(0, 0, 0, 0.1);
100
+ }
101
+ .ui.modal > .content p {
102
+ line-height: 1.6;
103
+ }
104
+
105
+ /*--------------
106
+ Actions
107
+ ---------------*/
108
+
109
+ .ui.modal .actions {
110
+ border-top: 1px solid rgba(0, 0, 0, 0.1);
111
+
112
+ padding: 1rem 2rem;
113
+ text-align: right;
114
+ }
115
+ .ui.modal .actions > .button {
116
+ margin-left: 0.75em;
117
+ }
118
+
119
+
120
+
121
+ /*******************************
122
+ Types
123
+ *******************************/
124
+
125
+ .ui.basic.modal {
126
+ background-color: transparent;
127
+ border: none;
128
+ color: #FFFFFF;
129
+ }
130
+ .ui.basic.modal .content {
131
+ background-color: transparent;
132
+ }
133
+
134
+
135
+
136
+ /*******************************
137
+ Variations
138
+ *******************************/
139
+
140
+ /* A modal that cannot fit on the page */
141
+ .ui.modal.scrolling {
142
+ position: absolute;
143
+ margin-top: 100px;
144
+ }
145
+
146
+
147
+
148
+ /*******************************
149
+ States
150
+ *******************************/
151
+
152
+ .ui.active.modal {
153
+ display: block;
154
+ }
@@ -0,0 +1,175 @@
1
+ /*
2
+ * # Semantic Nag
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 17 2013
11
+ */
12
+
13
+
14
+ /*******************************
15
+ Nag
16
+ *******************************/
17
+
18
+ .ui.nag {
19
+ display: none;
20
+ opacity: 0.95;
21
+
22
+ position: relative;
23
+ top: 0px;
24
+ left: 0%;
25
+ z-index: 101;
26
+
27
+ min-height: 0;
28
+ width: 100%;
29
+
30
+ -webkit-box-sizing: border-box;
31
+ -moz-box-sizing: border-box;
32
+ -ms-box-sizing: border-box;
33
+ box-sizing: border-box;
34
+
35
+ margin: 0em;
36
+ line-height: 3em;
37
+ padding: 0em 1em;
38
+
39
+ background-color: #555555;
40
+
41
+ -webkit-box-shadow:
42
+ 0px 1px 2px 0px rgba(0, 0, 0, 0.2)
43
+ ;
44
+ -moz-box-shadow:
45
+ 0px 1px 2px 0px rgba(0, 0, 0, 0.2)
46
+ ;
47
+ box-shadow:
48
+ 0px 1px 2px 0px rgba(0, 0, 0, 0.2)
49
+ ;
50
+
51
+ font-size: 1em;
52
+ text-align: center;
53
+ color: rgba(255, 255, 255, 0.8);
54
+
55
+ -webkit-border-radius: 0px 0px 5px 5px;
56
+ -moz-border-radius: 0px 0px 5px 5px;
57
+ border-radius: 0px 0px 5px 5px;
58
+
59
+ -webkit-transition: 0.2s background;
60
+ -moz-transition: 0.2s background;
61
+ -o-transition: 0.2s background;
62
+ -ms-transition: 0.2s background;
63
+ transition: 0.2s background;
64
+ }
65
+
66
+ a.ui.nag {
67
+ cursor: pointer;
68
+ }
69
+
70
+ .ui.nag > .title {
71
+ display: inline-block;
72
+ margin: 0em 0.5em;
73
+ color: #FFFFFF;
74
+ }
75
+
76
+
77
+ .ui.nag > .close.icon {
78
+ cursor: pointer;
79
+ opacity: 0.4;
80
+
81
+ position: absolute;
82
+ top: 50%;
83
+ right: 1em;
84
+
85
+ margin-top: -0.5em;
86
+ color: #FFFFFF;
87
+
88
+ -webkit-transition: 0.1s opacity;
89
+ -moz-transition: 0.1s opacity;
90
+ -o-transition: 0.1s opacity;
91
+ -ms-transition: 0.1s opacity;
92
+ transition: 0.1s opacity;
93
+ }
94
+
95
+
96
+
97
+ /*******************************
98
+ States
99
+ *******************************/
100
+
101
+ /* Hover */
102
+ .ui.nag:hover {
103
+ opacity: 1;
104
+ }
105
+
106
+ .ui.nag .close:hover {
107
+ opacity: 1;
108
+ }
109
+
110
+
111
+ /*******************************
112
+ Variations
113
+ *******************************/
114
+
115
+
116
+ /*--------------
117
+ Static
118
+ ---------------*/
119
+
120
+ .ui.overlay.nag {
121
+ position: absolute;
122
+ display: block;
123
+ }
124
+
125
+ /*--------------
126
+ Fixed
127
+ ---------------*/
128
+
129
+ .ui.fixed.nag {
130
+ position: fixed;
131
+ }
132
+
133
+ /*--------------
134
+ Bottom
135
+ ---------------*/
136
+
137
+ .ui.botton.nag {
138
+ -webkit-border-radius: 5px 5px 0px 0px;
139
+ -moz-border-radius: 5px 5px 0px 0px;
140
+ border-radius: 5px 5px 0px 0px;
141
+ }
142
+ .ui.fixed.bottom.nags,
143
+ .ui.fixed.bottom.nag {
144
+ top: auto;
145
+ bottom: 0px;
146
+ }
147
+
148
+
149
+ /*--------------
150
+ White
151
+ ---------------*/
152
+
153
+ .ui.white.nags .nag,
154
+ .ui.white.nag {
155
+ background-color: #F1F1F1;
156
+ text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.8);
157
+ color: #ACACAC;
158
+ }
159
+ .ui.white.nags .nag .close,
160
+ .ui.white.nags .nag .title,
161
+ .ui.white.nag .close,
162
+ .ui.white.nag .title {
163
+ color: #333333;
164
+ }
165
+
166
+
167
+ /*******************************
168
+ Groups
169
+ *******************************/
170
+
171
+ .ui.nags .nag {
172
+ -webkit-border-radius: 0px;
173
+ -moz-border-radius: 0px;
174
+ border-radius: 0px;
175
+ }
@@ -0,0 +1,238 @@
1
+ /*
2
+ * # Semantic Popup
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 17 2013
11
+ */
12
+
13
+ /*******************************
14
+ Popup
15
+ *******************************/
16
+
17
+ .ui.popup {
18
+ display: none;
19
+ position: absolute;
20
+ top: 0px;
21
+ right: 0px;
22
+ z-index: 900;
23
+
24
+ border: 1px solid #DCDDDE;
25
+ max-width: 250px;
26
+ background-color: #FFFFFF;
27
+
28
+ padding: 0.8em 1.2em;
29
+ font-size: 0.875rem;
30
+ font-weight: normal;
31
+ font-style: normal;
32
+ color: rgba(0, 0, 0, 0.7);
33
+
34
+ -webkit-border-radius: 0.2em;
35
+ -moz-border-radius: 0.2em;
36
+ border-radius: 0.2em;
37
+
38
+ -webkit-box-shadow: 0px 1px 1px #DCDDDE;
39
+ -moz-box-shadow: 0px 1px 1px #DCDDDE;
40
+ box-shadow: 0px 1px 1px #DCDDDE;
41
+ }
42
+ .ui.popup .header {
43
+ padding: 0em 0em 0.5em;
44
+
45
+ font-size: 1.125em;
46
+ line-height: 1.2;
47
+ font-weight: bold;
48
+ }
49
+
50
+ .ui.popup:before {
51
+ position: absolute;
52
+ content: "";
53
+ width: 0.75em;
54
+ height: 0.75rem;
55
+
56
+ background-image: none;
57
+ background-color: #FFFFFF;
58
+
59
+ -webkit-transform: rotate(45deg);
60
+ -moz-transform: rotate(45deg);
61
+ transform: rotate(45deg);
62
+
63
+ z-index: 2;
64
+
65
+ -webkit-box-sizing: border-box;
66
+ -moz-box-sizing: border-box;
67
+ -ms-box-sizing: border-box;
68
+ box-sizing: border-box;
69
+
70
+ -webkit-box-shadow: 1px 1px 1px #DCDDDE;
71
+ -moz-box-shadow: 1px 1px 1px #DCDDDE;
72
+ box-shadow: 1px 1px 1px #DCDDDE;
73
+ }
74
+
75
+ .ui.popup .ui.button {
76
+ width: 100%;
77
+ }
78
+
79
+ /*******************************
80
+ Types
81
+ *******************************/
82
+
83
+ /*--------------
84
+ Spacing
85
+ ---------------*/
86
+ .ui.popup {
87
+ margin: 0em;
88
+ }
89
+ .ui.popup.bottom {
90
+ margin: 0.75em 0em 0em;
91
+ }
92
+ .ui.popup.top {
93
+ margin: 0em 0em 0.75em;
94
+ }
95
+ .ui.popup.left.center {
96
+ margin: 0em 0.75em 0em 0em;
97
+ }
98
+ .ui.popup.right.center {
99
+ margin: 0em 0em 0em 0.75em;
100
+ }
101
+ .ui.popup.center {
102
+ margin-left: -1.25em;
103
+ }
104
+
105
+ /*--------------
106
+ Pointer
107
+ ---------------*/
108
+
109
+ /*--- Below ---*/
110
+ .ui.bottom.center.popup:before {
111
+ margin-left: -0.4em;
112
+ top: -0.4em;
113
+ left: 50%;
114
+ right: auto;
115
+ bottom: auto;
116
+ -webkit-box-shadow: -1px -1px 1px #dcddde;
117
+ -moz-box-shadow: -1px -1px 1px #dcddde;
118
+ box-shadow: -1px -1px 1px #dcddde;
119
+ }
120
+ .ui.bottom.left.popup:before {
121
+ top: -0.4em;
122
+ left: 1em;
123
+ right: auto;
124
+ bottom: auto;
125
+ margin-left: 0em;
126
+ -webkit-box-shadow: -1px -1px 1px #dcddde;
127
+ -moz-box-shadow: -1px -1px 1px #dcddde;
128
+ box-shadow: -1px -1px 1px #dcddde;
129
+ }
130
+ .ui.bottom.right.popup:before {
131
+ top: -0.4em;
132
+ right: 1em;
133
+ bottom: auto;
134
+ left: auto;
135
+ margin-left: 0em;
136
+ -webkit-box-shadow: -1px -1px 1px #dcddde;
137
+ -moz-box-shadow: -1px -1px 1px #dcddde;
138
+ box-shadow: -1px -1px 1px #dcddde;
139
+ }
140
+ /*--- Above ---*/
141
+ .ui.top.center.popup:before {
142
+ top: auto;
143
+ right: auto;
144
+ bottom: -0.4em;
145
+ left: 50%;
146
+ margin-left: -0.4em;
147
+ }
148
+ .ui.top.left.popup:before {
149
+ bottom: -0.4em;
150
+ left: 1em;
151
+ top: auto;
152
+ right: auto;
153
+ margin-left: 0em;
154
+ }
155
+ .ui.top.right.popup:before {
156
+ bottom: -0.4em;
157
+ right: 1em;
158
+ top: auto;
159
+ left: auto;
160
+ margin-left: 0em;
161
+ }
162
+ /*--- Left ---*/
163
+ .ui.left.center.popup:before {
164
+ top: 50%;
165
+ right: -0.35em;
166
+ bottom: auto;
167
+ left: auto;
168
+ margin-top: -0.4em;
169
+ -moz-box-shadow: 1px -1px 1px #dcddde;
170
+ -webkit-box-shadow: 1px -1px 1px #dcddde;
171
+ box-shadow: 1px -1px 1px #dcddde;
172
+ }
173
+ /*--- Right ---*/
174
+ .ui.right.center.popup:before {
175
+ top: 50%;
176
+ left: -0.35em;
177
+ bottom: auto;
178
+ right: auto;
179
+ margin-top: -0.4em;
180
+ -moz-box-shadow: -1px 1px 1px #dcddde;
181
+ -webkit-box-shadow: -1px 1px 1px #dcddde;
182
+ box-shadow: -1px 1px 1px #dcddde;
183
+ }
184
+
185
+ /*******************************
186
+ States
187
+ *******************************/
188
+
189
+ .ui.loading.popup {
190
+ display: block;
191
+ visibility: hidden;
192
+ }
193
+ .ui.active.popup {
194
+ display: block;
195
+ }
196
+
197
+
198
+ /*******************************
199
+ Variations
200
+ *******************************/
201
+
202
+ /*--------------
203
+ Size
204
+ ---------------*/
205
+
206
+ .ui.small.popup {
207
+ font-size: 0.75rem;
208
+ }
209
+ .ui.large.popup {
210
+ font-size: 1rem;
211
+ }
212
+
213
+
214
+ /*--------------
215
+ Colors
216
+ ---------------*/
217
+
218
+ /* Inverted colors */
219
+ .ui.inverted.popup {
220
+ background-color: #333333;
221
+ border: none;
222
+ color: #FFFFFF;
223
+
224
+ -webkit-box-shadow: none;
225
+ -moz-box-shadow: none;
226
+ box-shadow: none;
227
+ }
228
+ .ui.inverted.popup .header {
229
+ background-color: rgba(0, 0, 0, 0.2);
230
+ color: #FFFFFF;
231
+ }
232
+ .ui.inverted.popup:before {
233
+ background-color: #333333;
234
+
235
+ -webkit-box-shadow: none;
236
+ -moz-box-shadow: none;
237
+ box-shadow: none;
238
+ }