faalis 0.26.3 → 1.0.0.alpha0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +35 -6
  3. data/Rakefile +2 -25
  4. data/app/assets/javascripts/faalis/angular-manifest.js +8 -2
  5. data/app/assets/javascripts/faalis/application.js +0 -3
  6. data/app/assets/javascripts/faalis/dashboard/application.js.erb +0 -5
  7. data/app/assets/javascripts/faalis/dashboard/functions.js.erb +9 -0
  8. data/app/assets/javascripts/faalis/dashboard/init.js +1 -1
  9. data/app/assets/javascripts/faalis/dashboard/modules/auth/group.js +0 -6
  10. data/app/assets/javascripts/faalis/dashboard/modules/fields/fields.js +1 -1
  11. data/app/assets/javascripts/faalis/dashboard/modules/fields/image.js +115 -0
  12. data/app/assets/javascripts/faalis/dashboard/modules/fields/tag.js +76 -0
  13. data/app/assets/javascripts/faalis/dashboard/variables.js.erb +1 -1
  14. data/app/assets/locale/templates.pot +282 -0
  15. data/app/assets/stylesheets/faalis/dashboard/dashboard.css.scss +4 -0
  16. data/app/assets/stylesheets/faalis/dashboard/ltr/application.css +4 -4
  17. data/app/assets/stylesheets/faalis/dashboard/rtl/application.css +4 -4
  18. data/app/assets/stylesheets/faalis/dashboard/rtl/base.css.scss.erb +2 -2
  19. data/app/controllers/faalis/api/v1/permissions_controller.rb +8 -39
  20. data/app/controllers/faalis/api/v1/users_controller.rb +7 -7
  21. data/app/models/ability.rb +4 -6
  22. data/app/models/faalis/concerns/assignment.rb +2 -2
  23. data/app/models/faalis/group.rb +18 -4
  24. data/app/models/faalis/permission.rb +11 -2
  25. data/app/models/faalis/permissions/auth.rb +3 -2
  26. data/app/models/faalis/user.rb +27 -73
  27. data/app/models/faalis/user/auth_definitions.rb +94 -0
  28. data/app/models/faalis/user/mongoid_fields.rb +76 -0
  29. data/app/models/faalis/user/permission.rb +21 -0
  30. data/app/views/angularjs_templates/auth/groups/new.html +0 -20
  31. data/app/views/angularjs_templates/fields/image/image.html +1 -0
  32. data/app/views/angularjs_templates/fields/relation/relation.html +3 -1
  33. data/app/views/angularjs_templates/fields/tag/tag.html +1 -0
  34. data/app/views/angularjs_templates/nav.html.erb +0 -1
  35. data/app/views/faalis/api/v1/users/index.json.jbuilder +1 -1
  36. data/app/views/layouts/faalis/application.html.erb +2 -0
  37. data/app/views/layouts/faalis/dashboard.html.erb +1 -0
  38. data/app/views/layouts/faalis/simple.html.erb +1 -0
  39. data/config/initializers/devise.rb +0 -7
  40. data/db/migrate/20131013091000_devise_create_faalis_users.rb +3 -2
  41. data/db/migrate/20140613120923_add_users_groups_table.rb +8 -0
  42. data/db/migrate/20140617124019_faalis_groups_users.rb +4 -0
  43. data/db/seeds.rb +39 -11
  44. data/lib/faalis.rb +5 -4
  45. data/lib/faalis/concerns.rb +7 -0
  46. data/lib/faalis/concerns/authorizable.rb +76 -0
  47. data/lib/faalis/discovery.rb +8 -0
  48. data/lib/faalis/discovery/permissions.rb +51 -0
  49. data/lib/faalis/engine.rb +19 -5
  50. data/lib/faalis/extensions.rb +18 -0
  51. data/lib/faalis/extensions/base.rb +29 -0
  52. data/lib/faalis/fake_assets.rb +7 -0
  53. data/lib/faalis/generators/dashboard_scaffold.rb +23 -5
  54. data/lib/faalis/omniauth.rb +3 -0
  55. data/lib/faalis/orm.rb +29 -0
  56. data/lib/faalis/{active_record.rb → patches/models.rb} +1 -3
  57. data/lib/faalis/version.rb +1 -1
  58. data/lib/generators/faalis/install_generator.rb +7 -3
  59. data/lib/{faalis/plugins.rb → generators/faalis/js/install_i18n_generator.rb} +20 -17
  60. data/lib/generators/faalis/scaffold_generator.rb +139 -0
  61. data/lib/generators/faalis/templates/application.js +1 -1
  62. data/lib/generators/faalis/templates/i18n/Gruntfile.js.erb +30 -0
  63. data/lib/generators/faalis/templates/i18n/README +13 -0
  64. data/lib/generators/faalis/templates/i18n/fa.js +3 -0
  65. data/lib/generators/faalis/templates/js/list_view/README +1 -1
  66. data/lib/tasks/faalis_tasks.rake +26 -20
  67. data/lib/tasks/grunt/Gruntfile.js +7 -2
  68. data/spec/dummy/config/initializers/faalis.rb +40 -0
  69. metadata +134 -44
  70. data/app/assets/javascripts/faalis/dashboard/lib/angular-gettext.js +0 -202
  71. data/app/assets/javascripts/faalis/dashboard/lib/ng-grid.js +0 -3260
  72. data/app/assets/javascripts/faalis/dashboard/lib/ng-quick-date.js +0 -297
  73. data/app/assets/javascripts/faalis/dashboard/lib/restangular.js +0 -1066
  74. data/app/assets/javascripts/faalis/dashboard/lib/select2.js +0 -3255
  75. data/app/assets/javascripts/faalis/dashboard/lib/ui.select2.js +0 -217
  76. data/app/assets/stylesheets/faalis/dashboard/ng-grid.css.scss +0 -442
  77. data/app/assets/stylesheets/faalis/dashboard/ng-quick-date-default-theme.css.scss +0 -20
  78. data/app/assets/stylesheets/faalis/dashboard/ng-quick-date.css.scss +0 -19
  79. data/app/assets/stylesheets/faalis/dashboard/select2.css.scss.erb +0 -618
  80. data/app/controllers/faalis/api/v1/#conversations_controller.rb# +0 -120
  81. data/app/models/faalis/workflow.rb +0 -4
  82. data/db/migrate/20140413180202_create_faalis_workflows.rb +0 -9
  83. data/lib/faalis/permissions.rb +0 -72
  84. data/lib/faalis/workflows.rb +0 -7
  85. data/lib/faalis/workflows/base.rb +0 -70
  86. data/lib/faalis/workflows/discovery.rb +0 -42
  87. data/lib/generators/faalis/js_scaffold_generator.rb +0 -113
@@ -1,20 +0,0 @@
1
- .quickdate{display:inline-block;vertical-align:bottom;font-size:15px;font-family:'Helvetica Neue',Helvetica,Ariel,sans-serif;}
2
- .quickdate input,.quickdate select{font-size:13px}
3
- .quickdate-button{background:#fff;color:#333;border:solid 1px #ccc;box-shadow:outset 0 1px 1px rgba(0,0,0,0.075);border-radius:4px;padding:4px 8px;display:inline-block;text-decoration:none;}
4
- .quickdate-button:hover{text-decoration:underline;}
5
- .quickdate-button:hover i{text-decoration:none}
6
- .quickdate-button i{padding-right:4px}
7
- .quickdate-popup{color:#333;font-size:15px;background-color:#fafafa;border:solid 1px #ddd;border-radius:3px;-webkit-box-shadow:0 10px 30px rgba(25,25,25,0.92);-moz-box-shadow:0 10px 30px rgba(25,25,25,0.92);box-shadow:0 10px 30px rgba(25,25,25,0.92)}
8
- .quickdate-action-link:visited,.quickdate-action-link:hover{color:#333}
9
- .quickdate-next-month i{padding-left:10px}
10
- .quickdate-prev-month i{padding-right:10px}
11
- table.quickdate-calendar{border:solid 1px #ccc;background-color:#fff;}
12
- table.quickdate-calendar th,table.quickdate-calendar td{border-right:1px solid #ccc;border-bottom:1px solid #ccc}
13
- table.quickdate-calendar td:hover{background-color:#e6e6e6}
14
- table.quickdate-calendar td.other-month{background-color:#dcdcdc;color:#707070;}
15
- table.quickdate-calendar td.other-month:hover{background-color:#c8c8c8}
16
- table.quickdate-calendar td.selected{background-color:#b0ccde;font-weight:bold}
17
- table.quickdate-calendar td.is-today{color:#b58922;font-weight:bold}
18
- .quickdate-popup-footer{margin:3px 1px 0}
19
- .quickdate-clear{display:inline-block;padding:2px 4px;background-color:#fff;color:#333;border:solid 1px #ccc;box-shadow:outset 0 1px 1px rgba(0,0,0,0.075);border-radius:4px;text-decoration:none;}
20
- .quickdate-clear:hover{background-color:#f2f2f2}
@@ -1,19 +0,0 @@
1
- .quickdate{display:inline-block;position:relative}
2
- .quickdate-button div,.quickdate-action-link div{display:inline}
3
- .quickdate-popup{z-index:10;background-color:#fff;border:solid 1px #000;text-align:center;width:250px;display:none;position:absolute;padding:5px;}
4
- .quickdate-popup.open{display:block}
5
- .quickdate-close{position:absolute;top:5px;right:5px;color:#333;}
6
- .quickdate-close:hover,.quickdate-close:visited{color:#333}
7
- .quickdate-calendar-header{display:block;padding:2px 0;margin-bottom:5px;text-align:center}
8
- .quickdate-month{display:inline-block}
9
- a.quickdate-prev-month{float:left}
10
- a.quickdate-next-month{float:right}
11
- .quickdate-text-inputs{text-align:left;margin-bottom:5px}
12
- .quickdate-input-wrapper{width:48%;display:inline-block}
13
- input.quickdate-date-input,input.quickdate-time-input{width:100px;margin:0;height:auto;padding:2px 3px}
14
- table.quickdate-calendar{border-collapse:collapse;border-spacing:0;width:100%;margin-top:5px;}
15
- table.quickdate-calendar th,table.quickdate-calendar td{padding:5px}
16
- table.quickdate-calendar td:hover{cursor:pointer}
17
- .quickdate-popup-footer{text-align:right;display:block}
18
- .quickdate-error{border:1px solid #dd3b30 !important}
19
- .quickdate-error:focus{outline-color:#dd3b30 !important}
@@ -1,618 +0,0 @@
1
- @import "faalis/variables";
2
- /*
3
- Version: 3.4.5 Timestamp: Mon Nov 4 08:22:42 PST 2013
4
- */
5
- .select2-container {
6
- margin: 0;
7
- position: relative;
8
- display: inline-block;
9
- /* inline-block for ie7 */
10
- zoom: 1;
11
- *display: inline;
12
- vertical-align: middle;
13
- width: 100%;
14
- }
15
-
16
- .select2-container,
17
- .select2-drop,
18
- .select2-search,
19
- .select2-search input {
20
- /*
21
- Force border-box so that % widths fit the parent
22
- container without overlap because of margin/padding.
23
-
24
- More Info : http://www.quirksmode.org/css/box.html
25
- */
26
- -webkit-box-sizing: border-box; /* webkit */
27
- -moz-box-sizing: border-box; /* firefox */
28
- box-sizing: border-box; /* css3 */
29
- }
30
-
31
- .select2-container .select2-choice {
32
- display: block;
33
- height: 30px;
34
-
35
- padding: 0 0 0 8px;
36
- overflow: hidden;
37
- position: relative;
38
-
39
- border: 1px solid darken(#fff, 20%);
40
- white-space: nowrap;
41
- line-height: 26px;
42
- color: $darkgray;
43
- text-decoration: none;
44
-
45
- border-radius: 3px;
46
-
47
- background-clip: padding-box;
48
-
49
- -webkit-touch-callout: none;
50
- -webkit-user-select: none;
51
- -moz-user-select: none;
52
- -ms-user-select: none;
53
- user-select: none;
54
-
55
- background-color: #fff;
56
- //background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.5, #fff));
57
- //background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 50%);
58
- //background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 50%);
59
- //filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);
60
- //background-image: linear-gradient(top, #fff 0%, #eee 50%);
61
- }
62
-
63
- .select2-container.select2-drop-above .select2-choice {
64
- border-bottom-color: $lightergray;
65
-
66
- border-radius: 0 0 3px 3px;
67
-
68
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.9, #fff));
69
- background-image: -webkit-linear-gradient(center bottom, #eee 0%, #fff 90%);
70
- background-image: -moz-linear-gradient(center bottom, #eee 0%, #fff 90%);
71
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eeeeee', GradientType=0);
72
- background-image: linear-gradient(top, #eee 0%, #fff 90%);
73
- }
74
-
75
- .select2-container.select2-allowclear .select2-choice .select2-chosen {
76
- margin-right: 42px;
77
- }
78
-
79
- .select2-container .select2-choice > .select2-chosen {
80
- margin-right: 26px;
81
- display: block;
82
- overflow: hidden;
83
-
84
- white-space: nowrap;
85
-
86
- text-overflow: ellipsis;
87
- }
88
-
89
- .select2-container .select2-choice abbr {
90
- display: none;
91
- width: 12px;
92
- height: 12px;
93
- position: absolute;
94
- right: 24px;
95
- top: 8px;
96
-
97
- font-size: 1px;
98
- text-decoration: none;
99
-
100
- border: 0;
101
- background: url('<%= image_path("faalis/select2.png") %>') right top no-repeat;
102
- cursor: pointer;
103
- outline: 0;
104
- }
105
-
106
- .select2-container.select2-allowclear .select2-choice abbr {
107
- display: inline-block;
108
- }
109
-
110
- .select2-container .select2-choice abbr:hover {
111
- background-position: right -11px;
112
- cursor: pointer;
113
- }
114
-
115
- .select2-drop-mask {
116
- border: 0;
117
- margin: 0;
118
- padding: 0;
119
- position: fixed;
120
- left: 0;
121
- top: 0;
122
- min-height: 100%;
123
- min-width: 100%;
124
- height: auto;
125
- width: auto;
126
- opacity: 0;
127
- z-index: 9998;
128
- /* styles required for IE to work */
129
- background-color: #fff;
130
- filter: alpha(opacity=0);
131
- }
132
-
133
- .select2-drop {
134
- width: 100%;
135
- margin-top: -1px;
136
- position: absolute;
137
- z-index: 9999;
138
- top: 100%;
139
-
140
- background: #fff;
141
- color: $darkgray;
142
- border: 1px solid darken(#fff, 20%);
143
- border-top: 0;
144
-
145
- border-radius: 0 0 4px 4px;
146
-
147
- -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
148
- box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
149
- }
150
-
151
- .select2-drop-auto-width {
152
- border-top: 1px solid #aaa;
153
- width: auto;
154
- }
155
-
156
- .select2-drop-auto-width .select2-search {
157
- padding-top: 4px;
158
- }
159
-
160
- .select2-drop.select2-drop-above {
161
- margin-top: 1px;
162
- border-top: 1px solid darken(#fff, 20%);
163
- border-bottom: 0;
164
-
165
- border-radius: 3px 3px 0 0;
166
-
167
- -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
168
- box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
169
- }
170
-
171
- .select2-drop-active {
172
- border: 1px solid $lightgray;
173
- border-top: none;
174
- }
175
-
176
- .select2-drop.select2-drop-above.select2-drop-active {
177
- border-top: 1px solid $lightgray;
178
- }
179
-
180
- .select2-container .select2-choice .select2-arrow {
181
- display: inline-block;
182
- width: 18px;
183
- height: 100%;
184
- position: absolute;
185
- right: 0;
186
- top: 0;
187
-
188
- border-left: 1px solid #aaa;
189
- border-radius: 0 4px 4px 0;
190
-
191
- background-clip: padding-box;
192
-
193
- background: #ccc;
194
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
195
- background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
196
- background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
197
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);
198
- background-image: linear-gradient(top, #ccc 0%, #eee 60%);
199
- }
200
-
201
- .select2-container .select2-choice .select2-arrow b {
202
- display: block;
203
- width: 100%;
204
- height: 100%;
205
- background: url('<%= image_path("faalis/select2.png") %>') no-repeat 0 1px;
206
- }
207
-
208
- .select2-search {
209
- display: inline-block;
210
- width: 100%;
211
- min-height: 26px;
212
- margin: 0;
213
- padding-left: 4px;
214
- padding-right: 4px;
215
-
216
- position: relative;
217
- z-index: 10000;
218
-
219
- white-space: nowrap;
220
- }
221
-
222
- .select2-search input {
223
- width: 100%;
224
- height: auto !important;
225
- min-height: 26px;
226
- padding: 4px 20px 4px 5px;
227
- margin: 0;
228
-
229
- outline: 0;
230
- font-family: sans-serif;
231
- font-size: 1em;
232
-
233
- border: 1px solid #aaa;
234
- border-radius: 0;
235
-
236
- -webkit-box-shadow: none;
237
- box-shadow: none;
238
-
239
- background: #fff url('<%= image_path("faalis/select2.png") %>') no-repeat 100% -22px;
240
- background: url('<%= image_path("faalis/select2.png") %>') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
241
- background: url('<%= image_path("faalis/select2.png") %>') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
242
- background: url('<%= image_path("faalis/select2.png") %>') no-repeat 100% -22px, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
243
- background: url('<%= image_path("faalis/select2.png") %>') no-repeat 100% -22px, linear-gradient(top, #fff 85%, #eee 99%);
244
- }
245
-
246
- .select2-drop.select2-drop-above .select2-search input {
247
- margin-top: 4px;
248
- }
249
-
250
- .select2-search input.select2-active {
251
- background: #fff url('<%= image_path("faalis/select2-spinner.gif") %>') no-repeat 100%;
252
- background: url('<%= image_path("faalis/select2-spinner.gif") %>') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, #fff), color-stop(0.99, #eee));
253
- background: url('<%= image_path("faalis/select2-spinner.gif") %>') no-repeat 100%, -webkit-linear-gradient(center bottom, #fff 85%, #eee 99%);
254
- background: url('<%= image_path("faalis/select2-spinner.gif") %>') no-repeat 100%, -moz-linear-gradient(center bottom, #fff 85%, #eee 99%);
255
- background: url('<%= image_path("faalis/select2-spinner.gif") %>') no-repeat 100%, linear-gradient(top, #fff 85%, #eee 99%);
256
- }
257
-
258
- .select2-container-active .select2-choice,
259
- .select2-container-active .select2-choices {
260
- border: 1px solid $lightgray;
261
- outline: none;
262
-
263
- -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
264
- box-shadow: 0 0 5px rgba(0, 0, 0, .3);
265
- }
266
-
267
- .select2-dropdown-open .select2-choice {
268
- border-bottom-color: transparent;
269
- -webkit-box-shadow: 0 1px 0 #fff inset;
270
- box-shadow: 0 1px 0 #fff inset;
271
-
272
- border-bottom-left-radius: 0;
273
- border-bottom-right-radius: 0;
274
-
275
- background-color: #eee;
276
- background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #fff), color-stop(0.5, #eee));
277
- background-image: -webkit-linear-gradient(center bottom, #fff 0%, #eee 50%);
278
- background-image: -moz-linear-gradient(center bottom, #fff 0%, #eee 50%);
279
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
280
- background-image: linear-gradient(top, #fff 0%, #eee 50%);
281
- }
282
-
283
- .select2-dropdown-open.select2-drop-above .select2-choice,
284
- .select2-dropdown-open.select2-drop-above .select2-choices {
285
- border: 1px solid $lightgray;
286
- border-top-color: transparent;
287
-
288
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(0.5, #eee));
289
- background-image: -webkit-linear-gradient(center top, #fff 0%, #eee 50%);
290
- background-image: -moz-linear-gradient(center top, #fff 0%, #eee 50%);
291
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#ffffff', GradientType=0);
292
- background-image: linear-gradient(bottom, #fff 0%, #eee 50%);
293
- }
294
-
295
- .select2-dropdown-open .select2-choice .select2-arrow {
296
- background: transparent;
297
- border-left: none;
298
- filter: none;
299
- }
300
- .select2-dropdown-open .select2-choice .select2-arrow b {
301
- background-position: -18px 1px;
302
- }
303
-
304
- /* results */
305
- .select2-results {
306
- max-height: 200px;
307
- padding: 0 0 0 4px;
308
- margin: 4px 4px 4px 0;
309
- position: relative;
310
- overflow-x: hidden;
311
- overflow-y: auto;
312
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
313
- }
314
-
315
- .select2-results ul.select2-result-sub {
316
- margin: 0;
317
- padding-left: 0;
318
- }
319
-
320
- .select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
321
- .select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 40px }
322
- .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 60px }
323
- .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 80px }
324
- .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 100px }
325
- .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 110px }
326
- .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 120px }
327
-
328
- .select2-results li {
329
- list-style: none;
330
- display: list-item;
331
- background-image: none;
332
- }
333
-
334
- .select2-results li.select2-result-with-children > .select2-result-label {
335
- font-weight: bold;
336
- }
337
-
338
- .select2-results .select2-result-label {
339
- padding: 3px 7px 4px;
340
- margin: 0;
341
- cursor: pointer;
342
-
343
- min-height: 1em;
344
-
345
- -webkit-touch-callout: none;
346
- -webkit-user-select: none;
347
- -moz-user-select: none;
348
- -ms-user-select: none;
349
- user-select: none;
350
- }
351
-
352
- .select2-results .select2-highlighted {
353
- background: #3875d7;
354
- color: #fff;
355
- }
356
-
357
- .select2-results li em {
358
- background: #feffde;
359
- font-style: normal;
360
- }
361
-
362
- .select2-results .select2-highlighted em {
363
- background: transparent;
364
- }
365
-
366
- .select2-results .select2-highlighted ul {
367
- background: #fff;
368
- color: #000;
369
- }
370
-
371
-
372
- .select2-results .select2-no-results,
373
- .select2-results .select2-searching,
374
- .select2-results .select2-selection-limit {
375
- background: #f4f4f4;
376
- display: list-item;
377
- }
378
-
379
- /*
380
- disabled look for disabled choices in the results dropdown
381
- */
382
- .select2-results .select2-disabled.select2-highlighted {
383
- color: #666;
384
- background: #f4f4f4;
385
- display: list-item;
386
- cursor: default;
387
- }
388
- .select2-results .select2-disabled {
389
- background: #f4f4f4;
390
- display: list-item;
391
- cursor: default;
392
- }
393
-
394
- .select2-results .select2-selected {
395
- display: none;
396
- }
397
-
398
- .select2-more-results.select2-active {
399
- background: #f4f4f4 url('<%= image_path("faalis/select2-spinner.gif") %>') no-repeat 100%;
400
- }
401
-
402
- .select2-more-results {
403
- background: #f4f4f4;
404
- display: list-item;
405
- }
406
-
407
- /* disabled styles */
408
-
409
- .select2-container.select2-container-disabled .select2-choice {
410
- background-color: #f4f4f4;
411
- background-image: none;
412
- border: 1px solid #ddd;
413
- cursor: default;
414
- }
415
-
416
- .select2-container.select2-container-disabled .select2-choice .select2-arrow {
417
- background-color: #f4f4f4;
418
- background-image: none;
419
- border-left: 0;
420
- }
421
-
422
- .select2-container.select2-container-disabled .select2-choice abbr {
423
- display: none;
424
- }
425
-
426
-
427
- /* multiselect */
428
-
429
- .select2-container-multi .select2-choices {
430
- height: auto !important;
431
- height: 1%;
432
- margin: 0;
433
- padding: 0;
434
- position: relative;
435
-
436
- border: 1px solid #aaa;
437
- cursor: text;
438
- overflow: hidden;
439
-
440
- background-color: #fff;
441
- background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff));
442
- background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%);
443
- background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%);
444
- background-image: linear-gradient(top, #eee 1%, #fff 15%);
445
- }
446
-
447
- .select2-locked {
448
- padding: 3px 5px 3px 5px !important;
449
- }
450
-
451
- .select2-container-multi .select2-choices {
452
- min-height: 26px;
453
- }
454
-
455
- .select2-container-multi.select2-container-active .select2-choices {
456
- border: 1px solid $lightgray;
457
- outline: none;
458
-
459
- -webkit-box-shadow: 0 0 5px rgba(0, 0, 0, .3);
460
- box-shadow: 0 0 5px rgba(0, 0, 0, .3);
461
- }
462
- .select2-container-multi .select2-choices li {
463
- float: left;
464
- list-style: none;
465
- }
466
- .select2-container-multi .select2-choices .select2-search-field {
467
- margin: 0;
468
- padding: 0;
469
- white-space: nowrap;
470
- }
471
-
472
- .select2-container-multi .select2-choices .select2-search-field input {
473
- padding: 5px;
474
- margin: 1px 0;
475
-
476
- //font-family: sans-serif;
477
- font-size: 100%;
478
- color: $darkgray;
479
- outline: 0;
480
- border: 0;
481
- -webkit-box-shadow: none;
482
- box-shadow: none;
483
- background: transparent !important;
484
- }
485
-
486
- .select2-container-multi .select2-choices .select2-search-field input.select2-active {
487
- background: #fff url('<%= image_path("faalis/select2-spinner.gif") %>') no-repeat 100% !important;
488
- }
489
-
490
- .select2-default {
491
- color: #999 !important;
492
- }
493
-
494
- .select2-container-multi .select2-choices .select2-search-choice {
495
- padding: 3px 5px 3px 18px;
496
- margin: 3px 0 3px 5px;
497
- position: relative;
498
-
499
- line-height: 13px;
500
- color: #333;
501
- cursor: default;
502
- border: 1px solid darken(#fff, 20%);
503
-
504
- border-radius: 3px;
505
-
506
- -webkit-box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
507
- box-shadow: 0 0 2px #fff inset, 0 1px 0 rgba(0, 0, 0, 0.05);
508
-
509
- background-clip: padding-box;
510
-
511
- -webkit-touch-callout: none;
512
- -webkit-user-select: none;
513
- -moz-user-select: none;
514
- -ms-user-select: none;
515
- user-select: none;
516
-
517
- background-color: #e4e4e4;
518
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0);
519
- background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eee));
520
- background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
521
- background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
522
- background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eee 100%);
523
- }
524
- .select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
525
- cursor: default;
526
- }
527
- .select2-container-multi .select2-choices .select2-search-choice-focus {
528
- background: #d4d4d4;
529
- }
530
-
531
- .select2-search-choice-close {
532
- display: block;
533
- width: 12px;
534
- height: 13px;
535
- position: absolute;
536
- right: 3px;
537
- top: 4px;
538
-
539
- font-size: 1px;
540
- outline: none;
541
- background: url('<%= image_path("faalis/select2.png") %>') right top no-repeat;
542
- }
543
-
544
- .select2-container-multi .select2-search-choice-close {
545
- left: 3px;
546
- }
547
-
548
- .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
549
- background-position: right -11px;
550
- }
551
- .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
552
- background-position: right -11px;
553
- }
554
-
555
- /* disabled styles */
556
- .select2-container-multi.select2-container-disabled .select2-choices {
557
- background-color: #f4f4f4;
558
- background-image: none;
559
- border: 1px solid #ddd;
560
- cursor: default;
561
- }
562
-
563
- .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
564
- padding: 3px 5px 3px 5px;
565
- border: 1px solid #ddd;
566
- background-image: none;
567
- background-color: #f4f4f4;
568
- }
569
-
570
- .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
571
- background: none;
572
- }
573
- /* end multiselect */
574
-
575
-
576
- .select2-result-selectable .select2-match,
577
- .select2-result-unselectable .select2-match {
578
- text-decoration: underline;
579
- }
580
-
581
- .select2-offscreen, .select2-offscreen:focus {
582
- clip: rect(0 0 0 0) !important;
583
- width: 1px !important;
584
- height: 1px !important;
585
- border: 0 !important;
586
- margin: 0 !important;
587
- padding: 0 !important;
588
- overflow: hidden !important;
589
- position: absolute !important;
590
- outline: 0 !important;
591
- left: 0px !important;
592
- top: 0px !important;
593
- }
594
-
595
- .select2-display-none {
596
- display: none;
597
- }
598
-
599
- .select2-measure-scrollbar {
600
- position: absolute;
601
- top: -10000px;
602
- left: -10000px;
603
- width: 100px;
604
- height: 100px;
605
- overflow: scroll;
606
- }
607
- /* Retina-ize icons */
608
-
609
- @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {
610
- .select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice .select2-arrow b {
611
- background-image: url('<%= image_path("faalis/select2x2.png") %>') !important;
612
- background-repeat: no-repeat !important;
613
- background-size: 60px 40px !important;
614
- }
615
- .select2-search input {
616
- background-position: 100% -21px !important;
617
- }
618
- }