typus 3.0.10 → 3.0.11.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. data/.gitignore +0 -1
  2. data/Gemfile +9 -5
  3. data/README.md +17 -53
  4. data/app/assets/vendor/typus/javascripts/application.js +2 -0
  5. data/app/assets/vendor/typus/javascripts/jquery.application.js +29 -0
  6. data/app/assets/vendor/typus/javascripts/jquery.rails.autocomplete.js +32 -0
  7. data/app/assets/vendor/typus/javascripts/jquery.rails.js +158 -0
  8. data/app/assets/vendor/typus/javascripts/jquery.searchField.js +91 -0
  9. data/app/assets/vendor/typus/stylesheets/application.css +11 -0
  10. data/app/assets/vendor/typus/stylesheets/reset.css +48 -0
  11. data/app/assets/vendor/typus/stylesheets/screen.css +361 -0
  12. data/app/assets/vendor/typus/vendor/jquery-tokeninput/css/token-input-facebook.css +122 -0
  13. data/app/assets/vendor/typus/vendor/jquery-tokeninput/css/token-input-mac.css +204 -0
  14. data/app/assets/vendor/typus/vendor/jquery-tokeninput/css/token-input.css +120 -0
  15. data/app/assets/vendor/typus/vendor/jquery-tokeninput/js/jquery.tokeninput.js +736 -0
  16. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  17. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  18. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
  19. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  20. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  21. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  22. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  23. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  24. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  25. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
  26. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
  27. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
  28. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
  29. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
  30. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/css/ui-lightness/jquery-ui-1.8.12.custom.css +578 -0
  31. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/index.html +367 -0
  32. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/js/jquery-1.5.1.min.js +16 -0
  33. data/app/assets/vendor/typus/vendor/jquery-ui-1.8.12.custom/js/jquery-ui-1.8.12.custom.min.js +783 -0
  34. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/blank.gif +0 -0
  35. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_close.png +0 -0
  36. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_loading.png +0 -0
  37. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_left.png +0 -0
  38. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_nav_right.png +0 -0
  39. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_e.png +0 -0
  40. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_n.png +0 -0
  41. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_ne.png +0 -0
  42. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_nw.png +0 -0
  43. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_s.png +0 -0
  44. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_se.png +0 -0
  45. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_sw.png +0 -0
  46. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_shadow_w.png +0 -0
  47. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_left.png +0 -0
  48. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_main.png +0 -0
  49. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_over.png +0 -0
  50. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancy_title_right.png +0 -0
  51. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-x.png +0 -0
  52. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancybox-y.png +0 -0
  53. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/fancybox.png +0 -0
  54. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.easing-1.3.pack.js +72 -0
  55. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.css +359 -0
  56. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.js +1156 -0
  57. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.js +46 -0
  58. data/app/assets/vendor/typus/vendor/jquery.fancybox-1.3.4/fancybox/jquery.mousewheel-3.0.4.pack.js +14 -0
  59. data/app/controllers/admin/account_controller.rb +2 -2
  60. data/app/controllers/admin/base_controller.rb +4 -0
  61. data/app/controllers/admin/resources_controller.rb +8 -83
  62. data/app/controllers/admin/session_controller.rb +10 -2
  63. data/app/helpers/admin/file_preview_helper.rb +15 -1
  64. data/app/helpers/admin/filters_helper.rb +4 -4
  65. data/app/helpers/admin/relationships_helper.rb +11 -6
  66. data/app/helpers/admin/resources_helper.rb +4 -1
  67. data/app/helpers/admin/table_helper.rb +6 -3
  68. data/app/views/admin/dashboard/_sidebar.html.erb +1 -3
  69. data/app/views/admin/helpers/table/_table.html.erb +0 -8
  70. data/app/views/admin/resources/index.html.erb +3 -1
  71. data/app/views/admin/shared/_head.html.erb +30 -0
  72. data/app/views/admin/templates/_belongs_to_with_autocomplete.html.erb +23 -4
  73. data/app/views/admin/templates/_relate_form.html.erb +1 -1
  74. data/app/views/admin/templates/_selector.html.erb +5 -1
  75. data/app/views/layouts/admin/base.html.erb +1 -30
  76. data/app/views/layouts/admin/headless.html.erb +1 -30
  77. data/app/views/layouts/admin/session.html.erb +1 -19
  78. data/doc/mongo_db.md +10 -0
  79. data/lib/generators/typus/typus_generator.rb +0 -5
  80. data/lib/support/active_record.rb +8 -0
  81. data/lib/typus.rb +2 -1
  82. data/lib/typus/controller/actions.rb +7 -0
  83. data/lib/typus/controller/acts_as.rb +22 -0
  84. data/lib/typus/controller/associations.rb +66 -0
  85. data/lib/typus/controller/autocomplete.rb +1 -1
  86. data/lib/typus/controller/format.rb +1 -1
  87. data/lib/typus/engine.rb +7 -2
  88. data/lib/typus/orm/active_record/class_methods.rb +1 -1
  89. data/lib/typus/version.rb +1 -1
  90. data/test/app/controllers/admin/assets_controller_test.rb +8 -5
  91. data/test/app/controllers/admin/pages_controller_test.rb +2 -2
  92. data/test/app/controllers/admin/posts_controller_test.rb +27 -2
  93. data/test/app/controllers/admin/views_controller_test.rb +36 -0
  94. data/test/app/helpers/admin/file_preview_helper_test.rb +9 -1
  95. data/test/app/helpers/admin/filters_helper_test.rb +5 -0
  96. data/test/app/helpers/admin/resources_helper_test.rb +2 -2
  97. data/test/app/helpers/admin/table_helper_test.rb +26 -0
  98. data/test/factories.rb +11 -0
  99. data/test/fixtures/rails_app/app/controllers/admin/hits_controller.rb +0 -3
  100. data/test/fixtures/rails_app/app/controllers/admin/views_controller.rb +6 -0
  101. data/test/fixtures/rails_app/app/models/asset.rb +16 -4
  102. data/test/fixtures/rails_app/app/models/site.rb +16 -0
  103. data/test/fixtures/rails_app/app/models/view.rb +2 -0
  104. data/test/fixtures/rails_app/config/typus/crud_extended.yml +2 -2
  105. data/test/fixtures/rails_app/db/schema.rb +15 -0
  106. data/test/lib/support/active_record_test.rb +24 -0
  107. data/test/lib/typus/orm/active_record/class_methods_test.rb +4 -4
  108. data/test/lib/typus_test.rb +1 -1
  109. metadata +68 -190
  110. data/.gemtest +0 -0
  111. data/doc/hudson_setup.md +0 -19
  112. data/lib/generators/typus/assets_generator.rb +0 -19
  113. data/test/fixtures/rails_app/app/views/layouts/admin/headless.html.erb +0 -38
@@ -0,0 +1,11 @@
1
+ /* Place your application-specific stylesheets for the admin panel here */
2
+
3
+ /*
4
+ .logo {
5
+ height: 50px;
6
+ width: 150px;
7
+ background: transparent url(/images/logo.gif) no-repeat;
8
+ text-indent: -10000px;
9
+ }
10
+
11
+ */
@@ -0,0 +1,48 @@
1
+ /* http://meyerweb.com/eric/tools/css/reset/
2
+ v2.0 | 20110126
3
+ License: none (public domain)
4
+ */
5
+
6
+ html, body, div, span, applet, object, iframe,
7
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8
+ a, abbr, acronym, address, big, cite, code,
9
+ del, dfn, em, img, ins, kbd, q, s, samp,
10
+ small, strike, strong, sub, sup, tt, var,
11
+ b, u, i, center,
12
+ dl, dt, dd, ol, ul, li,
13
+ fieldset, form, label, legend,
14
+ table, caption, tbody, tfoot, thead, tr, th, td,
15
+ article, aside, canvas, details, embed,
16
+ figure, figcaption, footer, header, hgroup,
17
+ menu, nav, output, ruby, section, summary,
18
+ time, mark, audio, video {
19
+ margin: 0;
20
+ padding: 0;
21
+ border: 0;
22
+ font-size: 100%;
23
+ font: inherit;
24
+ vertical-align: baseline;
25
+ }
26
+ /* HTML5 display-role reset for older browsers */
27
+ article, aside, details, figcaption, figure,
28
+ footer, header, hgroup, menu, nav, section {
29
+ display: block;
30
+ }
31
+ body {
32
+ line-height: 1;
33
+ }
34
+ ol, ul {
35
+ list-style: none;
36
+ }
37
+ blockquote, q {
38
+ quotes: none;
39
+ }
40
+ blockquote:before, blockquote:after,
41
+ q:before, q:after {
42
+ content: '';
43
+ content: none;
44
+ }
45
+ table {
46
+ border-collapse: collapse;
47
+ border-spacing: 0;
48
+ }
@@ -0,0 +1,361 @@
1
+ /*
2
+ Copyright (c) 2010, Francesc Esplugas Marti
3
+ Code licensed under the MIT License
4
+ Updated: 20100618
5
+
6
+ Global Styles – (body, paragraphs, lists, etc)
7
+ Header
8
+ Page Structure
9
+ Headings
10
+ Text Styles
11
+ Navigation
12
+ Forms
13
+ Comments
14
+ Extras
15
+
16
+ */
17
+
18
+ /* @group Defaults */
19
+
20
+ html, body {}
21
+
22
+ body {
23
+ font-family: "Lucida Grande", Sans-serif;
24
+ font-size: 75%;
25
+ height: 100%;
26
+ }
27
+
28
+ label { display: block; font-weight: bold; margin: 0 0 5px 0; }
29
+ strong { font-weight: bold; }
30
+ em { font-style: italic; }
31
+
32
+ dl { margin: 14px 0 20px 0; }
33
+ dt { font-weight: bold; }
34
+ dd { font-size: 18px; margin: 0.25em 0 1em 0; }
35
+ dd p { color: #000; }
36
+
37
+ p { color: #777; line-height: 1.25em; margin: 1em 0; }
38
+
39
+ h1 { font-size: 2em; font-weight: normal; }
40
+ h2 { font-weight: bold; }
41
+ h3 { font-size: 1.25em; font-weight: bold; margin: 1em 0; }
42
+
43
+ li { color: #777; }
44
+
45
+ /* @end */
46
+
47
+ /* @group Links */
48
+
49
+ a,
50
+ a:visited,
51
+ a:link { color: #000; font-weight: normal; }
52
+ a:hover { color: #333; text-decoration: underline!important; }
53
+
54
+ /* @end */
55
+
56
+ /* @group Header */
57
+
58
+ #header_wrapper { background: #4A525A; }
59
+
60
+ #header_wrapper #header { color: #FFF; padding: 1.25em 2em 0.25em 2em; }
61
+ #header_wrapper #header h1 a { color: #FFF; text-decoration: none; }
62
+ #header_wrapper #header h1 a:hover { text-decoration: underline; }
63
+
64
+ #header_wrapper #links { color: #FFF; padding: 1.25em 2em; }
65
+ #header_wrapper #links ul li { display: inline; padding-left: 0.5em; color: #FFF; }
66
+ #header_wrapper #links a { color: #FFF; }
67
+
68
+ #header_wrapper #links .left { float: left; }
69
+ #header_wrapper #links .left ul { display: block; }
70
+ #header_wrapper #links .left ul li { display: inline; padding: 0 0.5em 0 0; }
71
+ #header_wrapper #links .left ul li a {
72
+ -webkit-border-radius: 5px;
73
+ background: #242527;
74
+ padding: 3px 5px;
75
+ text-decoration: none;
76
+ }
77
+
78
+ #header_wrapper #links .left ul li a.active,
79
+ #header_wrapper #links .left ul li a:hover { background: #FFF; color: #000; }
80
+
81
+ #header_wrapper #links .right { float: right; }
82
+
83
+ /* @end */
84
+
85
+ /* @group Wrapper */
86
+
87
+ #wrapper { min-height: 100%; position: relative; }
88
+
89
+ /* @end */
90
+
91
+ /* @group Content Wrapper */
92
+
93
+ #content_wrapper { margin: 0em 0 2em 0; padding: 2em; }
94
+
95
+ /* @end */
96
+
97
+ /* @group Content */
98
+
99
+ #content { margin: 0 0 0 20em; }
100
+ #content.headless { margin: 1em; }
101
+
102
+ #content h2 { font-size: 1.5em; margin: 0.5em 0; }
103
+ #content h2 small { font-size: 0.75em; }
104
+ #content h2 small a { color: #666; }
105
+
106
+ #content ol { margin: 1em 2em; }
107
+ #content ul { margin: 0 1.5em; }
108
+ #content li { list-style: square; line-height: 20px; }
109
+
110
+ #content pre {
111
+ background: #000;
112
+ color: #FFF;
113
+ font-size: 1.5em;
114
+ margin: 1em 0;
115
+ overflow: auto;
116
+ padding: 1em;
117
+ }
118
+
119
+ #content blockquote {
120
+ -moz-border-radius: 3px;
121
+ -webkit-border-radius: 3px;
122
+ font-size: 1.25em;
123
+ font-family: georgia;
124
+ line-height: 1.5em;
125
+ margin: 1em 0;
126
+ padding: 0 1em;
127
+ border: 1px solid #AAA;
128
+ }
129
+
130
+ /* @end */
131
+
132
+ /* @group Sidebar */
133
+
134
+ #sidebar { float: left; margin: -1em 2em 0 0; width: 18em; }
135
+
136
+ #sidebar h2 { font-size: 1.5em; margin: 1.1em 0 0 0; }
137
+
138
+ #sidebar h3 {
139
+ -moz-border-radius: 0.5em;
140
+ -webkit-border-radius: 0.5em;
141
+ background: #242527;
142
+ color: #FFF;
143
+ padding: 0.5em;
144
+ }
145
+
146
+ #sidebar h3 a { color: #FFF; }
147
+ #sidebar ul { font-weight: bold; }
148
+ #sidebar ul li { padding: 0.25em 1em; }
149
+
150
+ #sidebar a { text-decoration: none; }
151
+ #sidebar li a:hover { text-decoration: underline; }
152
+
153
+ /* @end */
154
+
155
+ /* @group Footer */
156
+
157
+ #footer_wrapper { display: none; }
158
+
159
+ /* @end */
160
+
161
+ /* @group Fieldsets */
162
+
163
+ fieldset { margin: 0; padding: 0; }
164
+ fieldset ol { margin: 0!important; }
165
+ fieldset ol li { list-style: none!important; margin: 1em 0!important; }
166
+ fieldset small { font-size: 0.9em; font-weight: normal; margin: 0 0 0 0.25em; }
167
+ fieldset small a { text-decoration: none; }
168
+
169
+ fieldset.inputs { }
170
+
171
+ fieldset.inputs input[type='text'],
172
+ fieldset.inputs input[type='password'] {
173
+ border: 1px solid #999;
174
+ font-size: 20px;
175
+ padding: 5px;
176
+ width: 685px;
177
+ }
178
+
179
+ fieldset.inputs input[type='text']:focus,
180
+ fieldset.inputs input[type='password']:focus {
181
+ /* background: #FFFCE1; */
182
+ }
183
+
184
+ fieldset.inputs textarea {
185
+ font-size: 1.2em;
186
+ padding: 3px;
187
+ width: 691px;
188
+ }
189
+
190
+ fieldset.inputs select { border: 1px solid #999; font-size: 1.20em; }
191
+
192
+ fieldset.inputs textarea:focus { background: #FFFCE1; }
193
+ fieldset.inputs label.inline_label { display: inline; }
194
+
195
+ fieldset.buttons { }
196
+
197
+ /* @end */
198
+
199
+ /* @group Content Tables */
200
+
201
+ #content table { margin-bottom: 2em!important; width: 100%; text-align: left; }
202
+ #content table a { text-decoration: none; }
203
+ #content table th { background: #242527; color: #FFF; padding: 6px; }
204
+ #content table th a { color: #FFF!important; text-decoration: none; }
205
+ #content table th a:hover { text-decoration: underline; }
206
+ #content table td.right { text-align: right; }
207
+ #content table tr.even { background: #FFF!important; }
208
+ #content table tr.even:hover,
209
+ #content table tr.odd:hover { background: #E4E4E4!important; }
210
+ #content table tr.odd { background: #F3F3F3; }
211
+ #content table td { border: none; padding: 5px; vertical-align: top; }
212
+
213
+ /* @end */
214
+
215
+ /* @group Login Page Dialog */
216
+
217
+ #account { background: #F3F3F3; }
218
+
219
+ #account #wrapper { margin: 10em auto; width: 40em; }
220
+
221
+ #account #box {
222
+ -moz-border-radius: 3px;
223
+ -webkit-border-radius: 3px;
224
+ background: #FFF;
225
+ border: 0.1em solid #D3D3D3;
226
+ padding: 1em 2em;
227
+ margin: 0 0 1em 0;
228
+ }
229
+
230
+ #account #box h1 { margin: 0.5em 0; }
231
+ #account #box ul { margin: 1.5em 0 0.5em 0; }
232
+ #account #box li { margin: 1em 0; }
233
+
234
+ #account #box input.text { font-size: 2em; padding: 0.25em; width: 17.25em; }
235
+ #account #box input.button { margin: 0.5em 1em 0 0; }
236
+
237
+ #account #footer { font-size: 0.9em; line-height: 1.8em; text-align: center; }
238
+ #account #footer a { font-weight: bold; }
239
+
240
+ /* @end */
241
+
242
+ /* @group Pagination */
243
+
244
+ .pagination {
245
+ border-top: 1px solid #D3D3D3;
246
+ margin: 1.5em auto;
247
+ padding: 1em 0;
248
+ text-align: center;
249
+ }
250
+
251
+ .pagination em { font-style: normal!important; }
252
+ .pagination em,
253
+ .pagination a { padding: 3px 5px; text-decoration: none; }
254
+ .pagination a:hover,
255
+ .pagination em { background: #000; color: #FFF; }
256
+
257
+ .pagination span.disabled { color: #D3D3D3; margin: 2px; padding: 2px 3px; }
258
+
259
+ .pagination .previous_page { float: left; }
260
+ .pagination .next_page { float: right; }
261
+
262
+ /* @end */
263
+
264
+ /* @group Rails errors and flashes */
265
+
266
+ #errorExplanation,
267
+ .alert,
268
+ .notice {
269
+ padding: 0.8em;
270
+ margin: 1em 0;
271
+ border: 1px solid #ddd;
272
+ -moz-border-radius: 8px;
273
+ -webkit-border-radius: 8px;
274
+ line-height: 1.5em;
275
+ }
276
+
277
+ #errorExplanation p,
278
+ #errorExplanation li,
279
+ #errorExplanation h3 {
280
+ color: #D12F19;
281
+ }
282
+
283
+ #errorExplanation h3 { margin: 5px 0 0 0; }
284
+
285
+ #errorExplanation ul { margin: 10px 0 0 20px!important; }
286
+
287
+ #errorExplanation,
288
+ .alert { background: #FBE3E4; border-color: #FBC2C4; color: #D12F19; }
289
+ .alert a { color: #D12F19; text-decoration: underline; }
290
+
291
+ .notice { background: #FFF6BF; border-color: #FFD324; color: #817134; }
292
+ .notice a { color: #817134; text-decoration: underline; }
293
+
294
+ .fieldWithErrors label { color: #CD0A0A;}
295
+ .fieldWithErrors input { background: #FEF8F6; }
296
+
297
+ #errorExplanation ul { margin: 1em 1.5em; }
298
+ #errorExplanation ul li { list-style: square!important; margin: 0!important; }
299
+
300
+ /* @end */
301
+
302
+ /* Boxes */
303
+
304
+ .box {
305
+ -moz-border-radius: 3px;
306
+ -webkit-border-radius: 3px;
307
+ background: #FFF;
308
+ border: 1px solid #AAA;
309
+ margin: 1em 0;
310
+ padding: 0.5em 1em ;
311
+ }
312
+
313
+ .box h3 { margin: 0.5em 0!important; }
314
+
315
+ /* @group Hacks */
316
+
317
+ .clear { clear: both; }
318
+ .box_relationships { margin-top: 2.5em; }
319
+
320
+ /* @end */
321
+
322
+ /* @group Filters */
323
+
324
+ #content .filters {
325
+ border-top: 1px solid #D3D3D3;
326
+ border-bottom: 1px solid #D3D3D3;
327
+ height: 2em;
328
+ margin: 0 0 1em 0;
329
+ padding: 1em 0;
330
+ }
331
+
332
+ #content .filters ul { margin: 0; }
333
+ #content .filters ul li { float: left; list-style: none; margin: 0 1em 0 0; }
334
+
335
+ /* @end */
336
+
337
+ /* @group Search */
338
+
339
+ #search { float: right; }
340
+ #search input { font-size: 1em; padding: 3px; }
341
+
342
+ /* @end */
343
+
344
+ /* @group Misc */
345
+
346
+ ul.predefined_filters {
347
+ margin: 1em 0 0.5em 0!important;
348
+ }
349
+
350
+ ul.predefined_filters li {
351
+ display: inline;
352
+ margin: 0 0.5em 0 0;
353
+ }
354
+
355
+ .actions {
356
+ font-size: 0.9em;
357
+ margin: 0.5em 0;
358
+ height: 1em;
359
+ }
360
+
361
+ /* @end */
@@ -0,0 +1,122 @@
1
+ /* Example tokeninput style #2: Facebook style */
2
+ ul.token-input-list-facebook {
3
+ overflow: hidden;
4
+ height: auto !important;
5
+ height: 1%;
6
+ width: 690px;
7
+ border: 1px solid #999;
8
+ cursor: text;
9
+ font-size: 12px;
10
+ font-family: Verdana;
11
+ min-height: 1px;
12
+ z-index: 999;
13
+ margin: 0!important;
14
+ padding: 0!important;
15
+ background-color: #fff;
16
+ list-style-type: none;
17
+ clear: left;
18
+ }
19
+
20
+ ul.token-input-list-facebook li input {
21
+ border: 0;
22
+ width: 100px;
23
+ padding: 3px 8px;
24
+ background-color: white;
25
+ margin: 2px 0;
26
+ -webkit-appearance: caret;
27
+ }
28
+
29
+ li.token-input-token-facebook {
30
+ overflow: hidden;
31
+ height: auto !important;
32
+ height: 15px;
33
+ margin: 30px;
34
+ padding: 1px 3px;
35
+ background-color: #eff2f7;
36
+ color: #000;
37
+ cursor: default;
38
+ border: 1px solid #ccd5e4;
39
+ font-size: 11px;
40
+ border-radius: 5px;
41
+ -moz-border-radius: 5px;
42
+ -webkit-border-radius: 5px;
43
+ float: left;
44
+ white-space: nowrap;
45
+ }
46
+
47
+ li.token-input-token-facebook p {
48
+ display: inline;
49
+ padding: 0;
50
+ margin: 0;
51
+ }
52
+
53
+ li.token-input-token-facebook span {
54
+ color: #a6b3cf;
55
+ margin-left: 5px;
56
+ font-weight: bold;
57
+ cursor: pointer;
58
+ }
59
+
60
+ li.token-input-selected-token-facebook {
61
+ background-color: #5670a6;
62
+ border: 1px solid #3b5998;
63
+ color: #fff;
64
+ }
65
+
66
+ li.token-input-input-token-facebook {
67
+ float: left;
68
+ margin: 0;
69
+ padding: 0;
70
+ list-style-type: none;
71
+ }
72
+
73
+ div.token-input-dropdown-facebook {
74
+ position: absolute;
75
+ width: 690px;
76
+ background-color: #fff;
77
+ overflow: hidden;
78
+ border-left: 1px solid #ccc;
79
+ border-right: 1px solid #ccc;
80
+ border-bottom: 1px solid #ccc;
81
+ cursor: default;
82
+ font-size: 11px;
83
+ font-family: Verdana;
84
+ z-index: 1;
85
+ }
86
+
87
+ div.token-input-dropdown-facebook p {
88
+ margin: 0;
89
+ padding: 5px;
90
+ font-weight: bold;
91
+ color: #777;
92
+ }
93
+
94
+ div.token-input-dropdown-facebook ul {
95
+ margin: 0;
96
+ padding: 0;
97
+ }
98
+
99
+ div.token-input-dropdown-facebook ul li {
100
+ background-color: #fff;
101
+ padding: 3px;
102
+ margin: 0;
103
+ list-style-type: none;
104
+ }
105
+
106
+ div.token-input-dropdown-facebook ul li.token-input-dropdown-item-facebook {
107
+ background-color: #fff;
108
+ }
109
+
110
+ div.token-input-dropdown-facebook ul li.token-input-dropdown-item2-facebook {
111
+ background-color: #fff;
112
+ }
113
+
114
+ div.token-input-dropdown-facebook ul li em {
115
+ font-weight: bold;
116
+ font-style: normal;
117
+ }
118
+
119
+ div.token-input-dropdown-facebook ul li.token-input-selected-dropdown-item-facebook {
120
+ background-color: #3b5998;
121
+ color: #fff;
122
+ }