web_admin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (264) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +2 -0
  4. data/.ruby-version +1 -0
  5. data/Gemfile +32 -0
  6. data/Gemfile.lock +335 -0
  7. data/MIT-LICENSE +20 -0
  8. data/README.rdoc +3 -0
  9. data/Rakefile +22 -0
  10. data/app/assets/images/web_admin/.keep +0 -0
  11. data/app/assets/images/web_admin/avatar.jpg +0 -0
  12. data/app/assets/images/web_admin/first_icon.png +0 -0
  13. data/app/assets/images/web_admin/render-1-thumb.jpg +0 -0
  14. data/app/assets/images/web_admin/render-1.jpg +0 -0
  15. data/app/assets/images/web_admin/render-2-thumb.jpg +0 -0
  16. data/app/assets/images/web_admin/render-2.jpg +0 -0
  17. data/app/assets/images/web_admin/render-3-thumb.jpg +0 -0
  18. data/app/assets/images/web_admin/render-3.jpg +0 -0
  19. data/app/assets/images/web_admin/render-4-thumb.jpg +0 -0
  20. data/app/assets/images/web_admin/render-4.jpg +0 -0
  21. data/app/assets/images/web_admin/responsive.png +0 -0
  22. data/app/assets/javascripts/web_admin/app.data.js +336 -0
  23. data/app/assets/javascripts/web_admin/app.js +172 -0
  24. data/app/assets/javascripts/web_admin/app.plugin.js +220 -0
  25. data/app/assets/javascripts/web_admin/application.js +20 -0
  26. data/app/assets/javascripts/web_admin/bootstrap-filestyle.min.js +1 -0
  27. data/app/assets/javascripts/web_admin/bootstrap.js +1951 -0
  28. data/app/assets/javascripts/web_admin/charts/easypiechart/jquery.easy-pie-chart.js +184 -0
  29. data/app/assets/javascripts/web_admin/charts/sparkline/jquery.sparkline.min.js +5 -0
  30. data/app/assets/javascripts/web_admin/combodate/combodate.js +453 -0
  31. data/app/assets/javascripts/web_admin/combodate/moment.min.js +6 -0
  32. data/app/assets/javascripts/web_admin/data/datagrid.json +1900 -0
  33. data/app/assets/javascripts/web_admin/data/datatable.json +401 -0
  34. data/app/assets/javascripts/web_admin/datatables/jquery.dataTables.min.js +155 -0
  35. data/app/assets/javascripts/web_admin/datepicker/bootstrap-datepicker.js +474 -0
  36. data/app/assets/javascripts/web_admin/datepicker.js +3 -0
  37. data/app/assets/javascripts/web_admin/fuelux/fuelux.js +1645 -0
  38. data/app/assets/javascripts/web_admin/fullcalendar/fullcalendar.min.js +7 -0
  39. data/app/assets/javascripts/web_admin/grid/gallery.js +14 -0
  40. data/app/assets/javascripts/web_admin/grid/jquery.grid-a-licious.min.js +15 -0
  41. data/app/assets/javascripts/web_admin/grid/masonry.pkgd.min.js +9 -0
  42. data/app/assets/javascripts/web_admin/ie/excanvas.js +924 -0
  43. data/app/assets/javascripts/web_admin/ie/html5.js +9 -0
  44. data/app/assets/javascripts/web_admin/ie/respond.min.js +6 -0
  45. data/app/assets/javascripts/web_admin/jquery-ui-1.10.3.custom.min.js +6 -0
  46. data/app/assets/javascripts/web_admin/jquery.datetimepicker.js +1851 -0
  47. data/app/assets/javascripts/web_admin/jquery.ui.touch-punch.min.js +11 -0
  48. data/app/assets/javascripts/web_admin/parsley/parsley.min.js +35 -0
  49. data/app/assets/javascripts/web_admin/prettyphoto/default/default_thumb.png +0 -0
  50. data/app/assets/javascripts/web_admin/prettyphoto/default/loader.gif +0 -0
  51. data/app/assets/javascripts/web_admin/prettyphoto/default/sprite.png +0 -0
  52. data/app/assets/javascripts/web_admin/prettyphoto/default/sprite_next.png +0 -0
  53. data/app/assets/javascripts/web_admin/prettyphoto/default/sprite_prev.png +0 -0
  54. data/app/assets/javascripts/web_admin/prettyphoto/default/sprite_x.png +0 -0
  55. data/app/assets/javascripts/web_admin/prettyphoto/default/sprite_y.png +0 -0
  56. data/app/assets/javascripts/web_admin/prettyphoto/jquery.prettyPhoto.js +7 -0
  57. data/app/assets/javascripts/web_admin/prettyphoto/prettyPhoto.css +170 -0
  58. data/app/assets/javascripts/web_admin/select2/select2.css +652 -0
  59. data/app/assets/javascripts/web_admin/select2/select2.min.js +22 -0
  60. data/app/assets/javascripts/web_admin/slider/bootstrap-slider.js +388 -0
  61. data/app/assets/javascripts/web_admin/underscore-min.js +7 -0
  62. data/app/assets/javascripts/web_admin/underscore-min.map +1 -0
  63. data/app/assets/javascripts/web_admin/upload_image.js +39 -0
  64. data/app/assets/stylesheets/web_admin/application.css +15 -0
  65. data/app/assets/stylesheets/web_admin/bootstrap.css +5784 -0
  66. data/app/assets/stylesheets/web_admin/font-awesome.min.css +4 -0
  67. data/app/assets/stylesheets/web_admin/font.css +18 -0
  68. data/app/assets/stylesheets/web_admin/fonts/FontAwesome.otf +0 -0
  69. data/app/assets/stylesheets/web_admin/fonts/fontawesome-webfont.eot +0 -0
  70. data/app/assets/stylesheets/web_admin/fonts/fontawesome-webfont.svg +414 -0
  71. data/app/assets/stylesheets/web_admin/fonts/fontawesome-webfont.ttf +0 -0
  72. data/app/assets/stylesheets/web_admin/fonts/fontawesome-webfont.woff +0 -0
  73. data/app/assets/stylesheets/web_admin/fonts/glyphicons-halflings-regular.eot +0 -0
  74. data/app/assets/stylesheets/web_admin/fonts/glyphicons-halflings-regular.svg +229 -0
  75. data/app/assets/stylesheets/web_admin/fonts/glyphicons-halflings-regular.ttf +0 -0
  76. data/app/assets/stylesheets/web_admin/fonts/glyphicons-halflings-regular.woff +0 -0
  77. data/app/assets/stylesheets/web_admin/fonts/opensans/opensans-bold-webfont.woff +0 -0
  78. data/app/assets/stylesheets/web_admin/fonts/opensans/opensans-light-webfont.woff +0 -0
  79. data/app/assets/stylesheets/web_admin/fonts/opensans/opensans-webfont.woff +0 -0
  80. data/app/assets/stylesheets/web_admin/landing.css +272 -0
  81. data/app/assets/stylesheets/web_admin/plugin.css +1132 -0
  82. data/app/assets/stylesheets/web_admin/style.css +613 -0
  83. data/app/assets/stylesheets/web_admin/style2.css +21 -0
  84. data/app/controllers/web_admin/albums_controller.rb +8 -0
  85. data/app/controllers/web_admin/application_controller.rb +10 -0
  86. data/app/controllers/web_admin/crud_controller.rb +61 -0
  87. data/app/controllers/web_admin/events_controller.rb +9 -0
  88. data/app/controllers/web_admin/images_controller.rb +8 -0
  89. data/app/controllers/web_admin/institutionals_controller.rb +8 -0
  90. data/app/controllers/web_admin/main_controller.rb +7 -0
  91. data/app/controllers/web_admin/posts_controller.rb +19 -0
  92. data/app/controllers/web_admin/users_controller.rb +15 -0
  93. data/app/controllers/web_admin/videos_controller.rb +8 -0
  94. data/app/enumerations/web_admin/permission_type.rb +5 -0
  95. data/app/enumerations/web_admin/user_type.rb +6 -0
  96. data/app/helpers/web_admin/application_helper.rb +20 -0
  97. data/app/models/ability.rb +14 -0
  98. data/app/models/ckeditor/asset.rb +7 -0
  99. data/app/models/ckeditor/attachment_file.rb +7 -0
  100. data/app/models/ckeditor/picture.rb +7 -0
  101. data/app/models/web_admin/album.rb +13 -0
  102. data/app/models/web_admin/event.rb +20 -0
  103. data/app/models/web_admin/image.rb +10 -0
  104. data/app/models/web_admin/institutional.rb +11 -0
  105. data/app/models/web_admin/permission.rb +9 -0
  106. data/app/models/web_admin/post.rb +14 -0
  107. data/app/models/web_admin/user.rb +25 -0
  108. data/app/models/web_admin/video.rb +17 -0
  109. data/app/uploaders/ckeditor_attachment_file_uploader.rb +36 -0
  110. data/app/uploaders/ckeditor_picture_uploader.rb +47 -0
  111. data/app/uploaders/web_admin/image_post_uploader.rb +55 -0
  112. data/app/uploaders/web_admin/image_uploader.rb +52 -0
  113. data/app/views/devise/confirmations/new.html.erb +12 -0
  114. data/app/views/devise/mailer/confirmation_instructions.html.erb +5 -0
  115. data/app/views/devise/mailer/reset_password_instructions.html.erb +8 -0
  116. data/app/views/devise/mailer/unlock_instructions.html.erb +7 -0
  117. data/app/views/devise/passwords/edit.html.erb +16 -0
  118. data/app/views/devise/passwords/new.html.erb +12 -0
  119. data/app/views/devise/registrations/edit.html.erb +29 -0
  120. data/app/views/devise/registrations/new.html.erb +18 -0
  121. data/app/views/devise/sessions/new.html.erb +16 -0
  122. data/app/views/devise/shared/_links.html.erb +25 -0
  123. data/app/views/devise/unlocks/new.html.erb +12 -0
  124. data/app/views/layouts/web_admin/devise.html.erb +42 -0
  125. data/app/views/shared/403.html +57 -0
  126. data/app/views/shared/_header.html.erb +16 -0
  127. data/app/views/shared/_navbar.html.erb +23 -0
  128. data/app/views/shared/_notice.html.erb +12 -0
  129. data/app/views/web_admin/albums/_form.html.erb +23 -0
  130. data/app/views/web_admin/albums/edit.html.erb +4 -0
  131. data/app/views/web_admin/albums/index.html.erb +39 -0
  132. data/app/views/web_admin/albums/new.html.erb +4 -0
  133. data/app/views/web_admin/albums/show.html.erb +4 -0
  134. data/app/views/web_admin/events/_form.html.erb +37 -0
  135. data/app/views/web_admin/events/edit.html.erb +4 -0
  136. data/app/views/web_admin/events/index.html.erb +39 -0
  137. data/app/views/web_admin/events/new.html.erb +4 -0
  138. data/app/views/web_admin/images/_form.html.erb +23 -0
  139. data/app/views/web_admin/images/_images.html.erb +10 -0
  140. data/app/views/web_admin/images/create.js.erb +2 -0
  141. data/app/views/web_admin/images/update.js.erb +2 -0
  142. data/app/views/web_admin/institutionals/_form.html.erb +22 -0
  143. data/app/views/web_admin/institutionals/edit.html.erb +4 -0
  144. data/app/views/web_admin/institutionals/index.html.erb +35 -0
  145. data/app/views/web_admin/institutionals/new.html.erb +4 -0
  146. data/app/views/web_admin/layouts/application.html.erb +77 -0
  147. data/app/views/web_admin/main/index.html.erb +1 -0
  148. data/app/views/web_admin/posts/_form.html.erb +27 -0
  149. data/app/views/web_admin/posts/edit.html.erb +4 -0
  150. data/app/views/web_admin/posts/index.html.erb +37 -0
  151. data/app/views/web_admin/posts/new.html.erb +4 -0
  152. data/app/views/web_admin/users/_form.html.erb +49 -0
  153. data/app/views/web_admin/users/edit.html.erb +4 -0
  154. data/app/views/web_admin/users/index.html.erb +35 -0
  155. data/app/views/web_admin/users/new.html.erb +4 -0
  156. data/app/views/web_admin/videos/_form.html.erb +22 -0
  157. data/app/views/web_admin/videos/edit.html.erb +4 -0
  158. data/app/views/web_admin/videos/index.html.erb +37 -0
  159. data/app/views/web_admin/videos/new.html.erb +4 -0
  160. data/bin/rails +12 -0
  161. data/config/initializers/ckeditor.rb +39 -0
  162. data/config/initializers/devise.rb +261 -0
  163. data/config/initializers/enumerate_it.rb +1 -0
  164. data/config/initializers/simple_form.rb +145 -0
  165. data/config/initializers/simple_form_bootstrap.rb +46 -0
  166. data/config/locales/buttons.yml +3 -0
  167. data/config/locales/controllers.yml +9 -0
  168. data/config/locales/devise.en.yml +62 -0
  169. data/config/locales/devise.pt.yml +62 -0
  170. data/config/locales/models.yml +54 -0
  171. data/config/locales/rails.yml +219 -0
  172. data/config/locales/responders.yml +10 -0
  173. data/config/locales/simple_form.en.yml +26 -0
  174. data/config/routes.rb +13 -0
  175. data/db/migrate/20141023223026_devise_create_admin_web_users.rb +42 -0
  176. data/db/migrate/20141023223656_create_admin_web_posts.rb +15 -0
  177. data/db/migrate/20141026181117_create_ckeditor_assets.rb +26 -0
  178. data/db/migrate/20141028020102_create_admin_web_institutionals.rb +10 -0
  179. data/db/migrate/20141028135201_create_admin_web_videos.rb +10 -0
  180. data/db/migrate/20141114020551_create_admin_web_albums.rb +12 -0
  181. data/db/migrate/20141117183405_create_admin_web_images.rb +11 -0
  182. data/db/migrate/20141130203155_add_user_type_to_users.rb +5 -0
  183. data/db/migrate/20141224221959_create_admin_web_events.rb +18 -0
  184. data/db/migrate/20150130140502_create_admin_web_permissions.rb +13 -0
  185. data/db/migrate/20150510191213_rename_tables.rb +12 -0
  186. data/lib/application_responder.rb +12 -0
  187. data/lib/tasks/web_admin_tasks.rake +4 -0
  188. data/lib/templates/erb/scaffold/_form.html.erb +13 -0
  189. data/lib/web_admin/engine.rb +15 -0
  190. data/lib/web_admin/version.rb +3 -0
  191. data/lib/web_admin.rb +18 -0
  192. data/spec/factories/admin_web_users.rb +24 -0
  193. data/spec/features/admin_web/albums_spec.rb +74 -0
  194. data/spec/features/admin_web/event_spec.rb +85 -0
  195. data/spec/features/admin_web/institutionals_spec.rb +47 -0
  196. data/spec/features/admin_web/login_spec.rb +18 -0
  197. data/spec/features/admin_web/permissions_spec.rb +40 -0
  198. data/spec/features/admin_web/posts_spec.rb +55 -0
  199. data/spec/features/admin_web/users_spec.rb +73 -0
  200. data/spec/features/admin_web/videos_spec.rb +51 -0
  201. data/spec/fixtures/p3-single.jpg +0 -0
  202. data/spec/models/admin_web/album_spec.rb +20 -0
  203. data/spec/models/admin_web/event_spec.rb +42 -0
  204. data/spec/models/admin_web/image_spec.rb +14 -0
  205. data/spec/models/admin_web/institutional_spec.rb +19 -0
  206. data/spec/models/admin_web/permission_spec.rb +14 -0
  207. data/spec/models/admin_web/post_spec.rb +25 -0
  208. data/spec/models/admin_web/user_spec.rb +18 -0
  209. data/spec/models/admin_web/video_spec.rb +26 -0
  210. data/spec/rails_helper.rb +52 -0
  211. data/spec/spec_helper.rb +85 -0
  212. data/spec/support/capybara.rb +53 -0
  213. data/spec/support/database_cleaner.rb +25 -0
  214. data/spec/support/devise.rb +5 -0
  215. data/spec/support/factory_girl.rb +4 -0
  216. data/spec/support/helpers.rb +82 -0
  217. data/spec/support/shared_connection.rb +10 -0
  218. data/spec/test_app/README.rdoc +28 -0
  219. data/spec/test_app/Rakefile +6 -0
  220. data/spec/test_app/app/assets/images/.keep +0 -0
  221. data/spec/test_app/app/assets/javascripts/application.js +13 -0
  222. data/spec/test_app/app/assets/stylesheets/application.css +15 -0
  223. data/spec/test_app/app/controllers/application_controller.rb +5 -0
  224. data/spec/test_app/app/controllers/concerns/.keep +0 -0
  225. data/spec/test_app/app/helpers/application_helper.rb +2 -0
  226. data/spec/test_app/app/mailers/.keep +0 -0
  227. data/spec/test_app/app/models/.keep +0 -0
  228. data/spec/test_app/app/models/concerns/.keep +0 -0
  229. data/spec/test_app/app/views/layouts/application.html.erb +14 -0
  230. data/spec/test_app/bin/bundle +3 -0
  231. data/spec/test_app/bin/rails +4 -0
  232. data/spec/test_app/bin/rake +4 -0
  233. data/spec/test_app/config/application.rb +29 -0
  234. data/spec/test_app/config/boot.rb +5 -0
  235. data/spec/test_app/config/database.yml +85 -0
  236. data/spec/test_app/config/environment.rb +5 -0
  237. data/spec/test_app/config/environments/development.rb +37 -0
  238. data/spec/test_app/config/environments/production.rb +78 -0
  239. data/spec/test_app/config/environments/test.rb +39 -0
  240. data/spec/test_app/config/initializers/assets.rb +8 -0
  241. data/spec/test_app/config/initializers/backtrace_silencers.rb +7 -0
  242. data/spec/test_app/config/initializers/cookies_serializer.rb +3 -0
  243. data/spec/test_app/config/initializers/filter_parameter_logging.rb +4 -0
  244. data/spec/test_app/config/initializers/inflections.rb +16 -0
  245. data/spec/test_app/config/initializers/mime_types.rb +4 -0
  246. data/spec/test_app/config/initializers/session_store.rb +3 -0
  247. data/spec/test_app/config/initializers/wrap_parameters.rb +14 -0
  248. data/spec/test_app/config/locales/en.yml +23 -0
  249. data/spec/test_app/config/routes.rb +4 -0
  250. data/spec/test_app/config/secrets.yml +22 -0
  251. data/spec/test_app/config.ru +4 -0
  252. data/spec/test_app/db/schema.rb +121 -0
  253. data/spec/test_app/lib/assets/.keep +0 -0
  254. data/spec/test_app/log/.keep +0 -0
  255. data/spec/test_app/public/404.html +67 -0
  256. data/spec/test_app/public/422.html +67 -0
  257. data/spec/test_app/public/500.html +66 -0
  258. data/spec/test_app/public/favicon.ico +0 -0
  259. data/spec/test_app/spec/factories/admin_web_albums.rb +7 -0
  260. data/spec/test_app/spec/factories/admin_web_users.rb +24 -0
  261. data/spec/test_app/spec/factories/permissions.rb +36 -0
  262. data/web_admin.gemspec +38 -0
  263. data/wercker.yml +16 -0
  264. metadata +530 -0
@@ -0,0 +1,652 @@
1
+ /*
2
+ Version: 3.4.0 Timestamp: Tue May 14 08:27:33 PDT 2013
3
+ */
4
+ .select2-container {
5
+ margin: 0;
6
+ position: relative;
7
+ display: inline-block;
8
+ /* inline-block for ie7 */
9
+ zoom: 1;
10
+ *display: inline;
11
+ vertical-align: middle;
12
+ }
13
+
14
+ .select2-container,
15
+ .select2-drop,
16
+ .select2-search,
17
+ .select2-search input{
18
+ /*
19
+ Force border-box so that % widths fit the parent
20
+ container without overlap because of margin/padding.
21
+
22
+ More Info : http://www.quirksmode.org/css/box.html
23
+ */
24
+ -webkit-box-sizing: border-box; /* webkit */
25
+ -khtml-box-sizing: border-box; /* konqueror */
26
+ -moz-box-sizing: border-box; /* firefox */
27
+ -ms-box-sizing: border-box; /* ie */
28
+ box-sizing: border-box; /* css3 */
29
+ }
30
+
31
+ .select2-container .select2-choice {
32
+ display: block;
33
+ height: 26px;
34
+ padding: 0 0 0 8px;
35
+ overflow: hidden;
36
+ position: relative;
37
+
38
+ border: 1px solid #aaa;
39
+ white-space: nowrap;
40
+ line-height: 26px;
41
+ color: #444;
42
+ text-decoration: none;
43
+
44
+ -webkit-border-radius: 4px;
45
+ -moz-border-radius: 4px;
46
+ border-radius: 4px;
47
+
48
+ -webkit-background-clip: padding-box;
49
+ -moz-background-clip: padding;
50
+ background-clip: padding-box;
51
+
52
+ -webkit-touch-callout: none;
53
+ -webkit-user-select: none;
54
+ -khtml-user-select: none;
55
+ -moz-user-select: none;
56
+ -ms-user-select: none;
57
+ user-select: none;
58
+
59
+ background-color: #fff;
60
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.5, white));
61
+ background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 50%);
62
+ background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 50%);
63
+ background-image: -o-linear-gradient(bottom, #eeeeee 0%, #ffffff 50%);
64
+ background-image: -ms-linear-gradient(top, #ffffff 0%, #eeeeee 50%);
65
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#eeeeee', GradientType = 0);
66
+ background-image: linear-gradient(top, #ffffff 0%, #eeeeee 50%);
67
+ }
68
+
69
+ .select2-container.select2-drop-above .select2-choice {
70
+ border-bottom-color: #aaa;
71
+
72
+ -webkit-border-radius:0 0 4px 4px;
73
+ -moz-border-radius:0 0 4px 4px;
74
+ border-radius:0 0 4px 4px;
75
+
76
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eeeeee), color-stop(0.9, white));
77
+ background-image: -webkit-linear-gradient(center bottom, #eeeeee 0%, white 90%);
78
+ background-image: -moz-linear-gradient(center bottom, #eeeeee 0%, white 90%);
79
+ background-image: -o-linear-gradient(bottom, #eeeeee 0%, white 90%);
80
+ background-image: -ms-linear-gradient(top, #eeeeee 0%,#ffffff 90%);
81
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eeeeee',GradientType=0 );
82
+ background-image: linear-gradient(top, #eeeeee 0%,#ffffff 90%);
83
+ }
84
+
85
+ .select2-container.select2-allowclear .select2-choice span {
86
+ margin-right: 42px;
87
+ }
88
+
89
+ .select2-container .select2-choice span {
90
+ margin-right: 26px;
91
+ display: block;
92
+ overflow: hidden;
93
+
94
+ white-space: nowrap;
95
+
96
+ -ms-text-overflow: ellipsis;
97
+ -o-text-overflow: ellipsis;
98
+ text-overflow: ellipsis;
99
+ }
100
+
101
+ .select2-container .select2-choice abbr {
102
+ display: none;
103
+ width: 12px;
104
+ height: 12px;
105
+ position: absolute;
106
+ right: 24px;
107
+ top: 8px;
108
+
109
+ font-size: 1px;
110
+ text-decoration: none;
111
+
112
+ border: 0;
113
+ background: url('select2.png') right top no-repeat;
114
+ cursor: pointer;
115
+ outline: 0;
116
+ }
117
+
118
+ .select2-container.select2-allowclear .select2-choice abbr {
119
+ display: inline-block;
120
+ }
121
+
122
+ .select2-container .select2-choice abbr:hover {
123
+ background-position: right -11px;
124
+ cursor: pointer;
125
+ }
126
+
127
+ .select2-drop-mask {
128
+ position: absolute;
129
+ left: 0;
130
+ top: 0;
131
+ z-index: 9998;
132
+ }
133
+
134
+ .select2-drop {
135
+ width: 100%;
136
+ margin-top:-1px;
137
+ position: absolute;
138
+ z-index: 9999;
139
+ top: 100%;
140
+
141
+ background: #fff;
142
+ color: #000;
143
+ border: 1px solid #aaa;
144
+ border-top: 0;
145
+
146
+ -webkit-border-radius: 0 0 4px 4px;
147
+ -moz-border-radius: 0 0 4px 4px;
148
+ border-radius: 0 0 4px 4px;
149
+
150
+ -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
151
+ -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
152
+ box-shadow: 0 4px 5px rgba(0, 0, 0, .15);
153
+ }
154
+
155
+ .select2-drop-auto-width {
156
+ border-top: 1px solid #aaa;
157
+ width: auto;
158
+ }
159
+
160
+ .select2-drop-auto-width .select2-search {
161
+ padding-top: 4px;
162
+ }
163
+
164
+ .select2-drop.select2-drop-above {
165
+ margin-top: 1px;
166
+ border-top: 1px solid #aaa;
167
+ border-bottom: 0;
168
+
169
+ -webkit-border-radius: 4px 4px 0 0;
170
+ -moz-border-radius: 4px 4px 0 0;
171
+ border-radius: 4px 4px 0 0;
172
+
173
+ -webkit-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
174
+ -moz-box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
175
+ box-shadow: 0 -4px 5px rgba(0, 0, 0, .15);
176
+ }
177
+
178
+ .select2-container .select2-choice div {
179
+ display: inline-block;
180
+ width: 18px;
181
+ height: 100%;
182
+ position: absolute;
183
+ right: 0;
184
+ top: 0;
185
+
186
+ border-left: 1px solid #aaa;
187
+ -webkit-border-radius: 0 4px 4px 0;
188
+ -moz-border-radius: 0 4px 4px 0;
189
+ border-radius: 0 4px 4px 0;
190
+
191
+ -webkit-background-clip: padding-box;
192
+ -moz-background-clip: padding;
193
+ background-clip: padding-box;
194
+
195
+ background: #ccc;
196
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #ccc), color-stop(0.6, #eee));
197
+ background-image: -webkit-linear-gradient(center bottom, #ccc 0%, #eee 60%);
198
+ background-image: -moz-linear-gradient(center bottom, #ccc 0%, #eee 60%);
199
+ background-image: -o-linear-gradient(bottom, #ccc 0%, #eee 60%);
200
+ background-image: -ms-linear-gradient(top, #cccccc 0%, #eeeeee 60%);
201
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#eeeeee', endColorstr = '#cccccc', GradientType = 0);
202
+ background-image: linear-gradient(top, #cccccc 0%, #eeeeee 60%);
203
+ }
204
+
205
+ .select2-container .select2-choice div b {
206
+ display: block;
207
+ width: 100%;
208
+ height: 100%;
209
+ background: url('select2.png') no-repeat 0 1px;
210
+ }
211
+
212
+ .select2-search {
213
+ display: inline-block;
214
+ width: 100%;
215
+ min-height: 26px;
216
+ margin: 0;
217
+ padding-left: 4px;
218
+ padding-right: 4px;
219
+
220
+ position: relative;
221
+ z-index: 10000;
222
+
223
+ white-space: nowrap;
224
+ }
225
+
226
+ .select2-search input {
227
+ width: 100%;
228
+ height: auto !important;
229
+ min-height: 26px;
230
+ padding: 4px 20px 4px 5px;
231
+ margin: 0;
232
+
233
+ outline: 0;
234
+ font-family: sans-serif;
235
+ font-size: 1em;
236
+
237
+ border: 1px solid #aaa;
238
+ -webkit-border-radius: 0;
239
+ -moz-border-radius: 0;
240
+ border-radius: 0;
241
+
242
+ -webkit-box-shadow: none;
243
+ -moz-box-shadow: none;
244
+ box-shadow: none;
245
+
246
+ background: #fff url('select2.png') no-repeat 100% -22px;
247
+ background: url('select2.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
248
+ background: url('select2.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
249
+ background: url('select2.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
250
+ background: url('select2.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
251
+ background: url('select2.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
252
+ background: url('select2.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
253
+ }
254
+
255
+ .select2-drop.select2-drop-above .select2-search input {
256
+ margin-top: 4px;
257
+ }
258
+
259
+ .select2-search input.select2-active {
260
+ background: #fff url('select2-spinner.gif') no-repeat 100%;
261
+ background: url('select2-spinner.gif') no-repeat 100%, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
262
+ background: url('select2-spinner.gif') no-repeat 100%, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
263
+ background: url('select2-spinner.gif') no-repeat 100%, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
264
+ background: url('select2-spinner.gif') no-repeat 100%, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
265
+ background: url('select2-spinner.gif') no-repeat 100%, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
266
+ background: url('select2-spinner.gif') no-repeat 100%, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
267
+ }
268
+
269
+ .select2-container-active .select2-choice,
270
+ .select2-container-active .select2-choices {
271
+ border: 1px solid #5897fb;
272
+ outline: none;
273
+
274
+ -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
275
+ -moz-box-shadow: 0 0 5px rgba(0,0,0,.3);
276
+ box-shadow: 0 0 5px rgba(0,0,0,.3);
277
+ }
278
+
279
+ .select2-dropdown-open .select2-choice {
280
+ border-bottom-color: transparent;
281
+ -webkit-box-shadow: 0 1px 0 #fff inset;
282
+ -moz-box-shadow: 0 1px 0 #fff inset;
283
+ box-shadow: 0 1px 0 #fff inset;
284
+
285
+ -webkit-border-bottom-left-radius: 0;
286
+ -moz-border-radius-bottomleft: 0;
287
+ border-bottom-left-radius: 0;
288
+
289
+ -webkit-border-bottom-right-radius: 0;
290
+ -moz-border-radius-bottomright: 0;
291
+ border-bottom-right-radius: 0;
292
+
293
+ background-color: #eee;
294
+ background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, white), color-stop(0.5, #eeeeee));
295
+ background-image: -webkit-linear-gradient(center bottom, white 0%, #eeeeee 50%);
296
+ background-image: -moz-linear-gradient(center bottom, white 0%, #eeeeee 50%);
297
+ background-image: -o-linear-gradient(bottom, white 0%, #eeeeee 50%);
298
+ background-image: -ms-linear-gradient(top, #ffffff 0%,#eeeeee 50%);
299
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
300
+ background-image: linear-gradient(top, #ffffff 0%,#eeeeee 50%);
301
+ }
302
+
303
+ .select2-dropdown-open.select2-drop-above .select2-choice,
304
+ .select2-dropdown-open.select2-drop-above .select2-choices {
305
+ border: 1px solid #5897fb;
306
+ border-top-color: transparent;
307
+
308
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, white), color-stop(0.5, #eeeeee));
309
+ background-image: -webkit-linear-gradient(center top, white 0%, #eeeeee 50%);
310
+ background-image: -moz-linear-gradient(center top, white 0%, #eeeeee 50%);
311
+ background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
312
+ background-image: -ms-linear-gradient(bottom, #ffffff 0%,#eeeeee 50%);
313
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#ffffff',GradientType=0 );
314
+ background-image: linear-gradient(bottom, #ffffff 0%,#eeeeee 50%);
315
+ }
316
+
317
+ .select2-dropdown-open .select2-choice div {
318
+ background: transparent;
319
+ border-left: none;
320
+ filter: none;
321
+ }
322
+ .select2-dropdown-open .select2-choice div b {
323
+ background-position: -18px 1px;
324
+ }
325
+
326
+ /* results */
327
+ .select2-results {
328
+ max-height: 200px;
329
+ padding: 0 0 0 4px;
330
+ margin: 4px 4px 4px 0;
331
+ position: relative;
332
+ overflow-x: hidden;
333
+ overflow-y: auto;
334
+ -webkit-tap-highlight-color: rgba(0,0,0,0);
335
+ }
336
+
337
+ .select2-results ul.select2-result-sub {
338
+ margin: 0;
339
+ padding-left: 0;
340
+ }
341
+
342
+ .select2-results ul.select2-result-sub > li .select2-result-label { padding-left: 20px }
343
+ .select2-results ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 40px }
344
+ .select2-results ul.select2-result-sub ul.select2-result-sub ul.select2-result-sub > li .select2-result-label { padding-left: 60px }
345
+ .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 }
346
+ .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 }
347
+ .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 }
348
+ .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 }
349
+
350
+ .select2-results li {
351
+ list-style: none;
352
+ display: list-item;
353
+ background-image: none;
354
+ }
355
+
356
+ .select2-results li.select2-result-with-children > .select2-result-label {
357
+ font-weight: bold;
358
+ }
359
+
360
+ .select2-results .select2-result-label {
361
+ padding: 3px 7px 4px;
362
+ margin: 0;
363
+ cursor: pointer;
364
+
365
+ min-height: 1em;
366
+
367
+ -webkit-touch-callout: none;
368
+ -webkit-user-select: none;
369
+ -khtml-user-select: none;
370
+ -moz-user-select: none;
371
+ -ms-user-select: none;
372
+ user-select: none;
373
+ }
374
+
375
+ .select2-results .select2-highlighted {
376
+ background: #3875d7;
377
+ color: #fff;
378
+ }
379
+
380
+ .select2-results li em {
381
+ background: #feffde;
382
+ font-style: normal;
383
+ }
384
+
385
+ .select2-results .select2-highlighted em {
386
+ background: transparent;
387
+ }
388
+
389
+ .select2-results .select2-highlighted ul {
390
+ background: white;
391
+ color: #000;
392
+ }
393
+
394
+
395
+ .select2-results .select2-no-results,
396
+ .select2-results .select2-searching,
397
+ .select2-results .select2-selection-limit {
398
+ background: #f4f4f4;
399
+ display: list-item;
400
+ }
401
+
402
+ /*
403
+ disabled look for disabled choices in the results dropdown
404
+ */
405
+ .select2-results .select2-disabled.select2-highlighted {
406
+ color: #666;
407
+ background: #f4f4f4;
408
+ display: list-item;
409
+ cursor: default;
410
+ }
411
+ .select2-results .select2-disabled {
412
+ background: #f4f4f4;
413
+ display: list-item;
414
+ cursor: default;
415
+ }
416
+
417
+ .select2-results .select2-selected {
418
+ display: none;
419
+ }
420
+
421
+ .select2-more-results.select2-active {
422
+ background: #f4f4f4 url('select2-spinner.gif') no-repeat 100%;
423
+ }
424
+
425
+ .select2-more-results {
426
+ background: #f4f4f4;
427
+ display: list-item;
428
+ }
429
+
430
+ /* disabled styles */
431
+
432
+ .select2-container.select2-container-disabled .select2-choice {
433
+ background-color: #f4f4f4;
434
+ background-image: none;
435
+ border: 1px solid #ddd;
436
+ cursor: default;
437
+ }
438
+
439
+ .select2-container.select2-container-disabled .select2-choice div {
440
+ background-color: #f4f4f4;
441
+ background-image: none;
442
+ border-left: 0;
443
+ }
444
+
445
+ .select2-container.select2-container-disabled .select2-choice abbr {
446
+ display: none;
447
+ }
448
+
449
+
450
+ /* multiselect */
451
+
452
+ .select2-container-multi .select2-choices {
453
+ height: auto !important;
454
+ height: 1%;
455
+ margin: 0;
456
+ padding: 0;
457
+ position: relative;
458
+
459
+ border: 1px solid #aaa;
460
+ cursor: text;
461
+ overflow: hidden;
462
+
463
+ background-color: #fff;
464
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
465
+ background-image: -webkit-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
466
+ background-image: -moz-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
467
+ background-image: -o-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
468
+ background-image: -ms-linear-gradient(top, #eeeeee 1%, #ffffff 15%);
469
+ background-image: linear-gradient(top, #eeeeee 1%, #ffffff 15%);
470
+ }
471
+
472
+ .select2-locked {
473
+ padding: 3px 5px 3px 5px !important;
474
+ }
475
+
476
+ .select2-container-multi .select2-choices {
477
+ min-height: 26px;
478
+ }
479
+
480
+ .select2-container-multi.select2-container-active .select2-choices {
481
+ border: 1px solid #5897fb;
482
+ outline: none;
483
+
484
+ -webkit-box-shadow: 0 0 5px rgba(0,0,0,.3);
485
+ -moz-box-shadow: 0 0 5px rgba(0,0,0,.3);
486
+ box-shadow: 0 0 5px rgba(0,0,0,.3);
487
+ }
488
+ .select2-container-multi .select2-choices li {
489
+ float: left;
490
+ list-style: none;
491
+ }
492
+ .select2-container-multi .select2-choices .select2-search-field {
493
+ margin: 0;
494
+ padding: 0;
495
+ white-space: nowrap;
496
+ }
497
+
498
+ .select2-container-multi .select2-choices .select2-search-field input {
499
+ padding: 5px;
500
+ margin: 1px 0;
501
+
502
+ font-family: sans-serif;
503
+ font-size: 100%;
504
+ color: #666;
505
+ outline: 0;
506
+ border: 0;
507
+ -webkit-box-shadow: none;
508
+ -moz-box-shadow: none;
509
+ box-shadow: none;
510
+ background: transparent !important;
511
+ }
512
+
513
+ .select2-container-multi .select2-choices .select2-search-field input.select2-active {
514
+ background: #fff url('select2-spinner.gif') no-repeat 100% !important;
515
+ }
516
+
517
+ .select2-default {
518
+ color: #999 !important;
519
+ }
520
+
521
+ .select2-container-multi .select2-choices .select2-search-choice {
522
+ padding: 3px 5px 3px 18px;
523
+ margin: 3px 0 3px 5px;
524
+ position: relative;
525
+
526
+ line-height: 13px;
527
+ color: #333;
528
+ cursor: default;
529
+ border: 1px solid #aaaaaa;
530
+
531
+ -webkit-border-radius: 3px;
532
+ -moz-border-radius: 3px;
533
+ border-radius: 3px;
534
+
535
+ -webkit-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
536
+ -moz-box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
537
+ box-shadow: 0 0 2px #ffffff inset, 0 1px 0 rgba(0,0,0,0.05);
538
+
539
+ -webkit-background-clip: padding-box;
540
+ -moz-background-clip: padding;
541
+ background-clip: padding-box;
542
+
543
+ -webkit-touch-callout: none;
544
+ -webkit-user-select: none;
545
+ -khtml-user-select: none;
546
+ -moz-user-select: none;
547
+ -ms-user-select: none;
548
+ user-select: none;
549
+
550
+ background-color: #e4e4e4;
551
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#f4f4f4', GradientType=0 );
552
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
553
+ background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
554
+ background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
555
+ background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
556
+ background-image: -ms-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
557
+ background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
558
+ }
559
+ .select2-container-multi .select2-choices .select2-search-choice span {
560
+ cursor: default;
561
+ }
562
+ .select2-container-multi .select2-choices .select2-search-choice-focus {
563
+ background: #d4d4d4;
564
+ }
565
+
566
+ .select2-search-choice-close {
567
+ display: block;
568
+ width: 12px;
569
+ height: 13px;
570
+ position: absolute;
571
+ right: 3px;
572
+ top: 4px;
573
+
574
+ font-size: 1px;
575
+ outline: none;
576
+ background: url('select2.png') right top no-repeat;
577
+ }
578
+
579
+ .select2-container-multi .select2-search-choice-close {
580
+ left: 3px;
581
+ }
582
+
583
+ .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover {
584
+ background-position: right -11px;
585
+ }
586
+ .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close {
587
+ background-position: right -11px;
588
+ }
589
+
590
+ /* disabled styles */
591
+ .select2-container-multi.select2-container-disabled .select2-choices{
592
+ background-color: #f4f4f4;
593
+ background-image: none;
594
+ border: 1px solid #ddd;
595
+ cursor: default;
596
+ }
597
+
598
+ .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
599
+ padding: 3px 5px 3px 5px;
600
+ border: 1px solid #ddd;
601
+ background-image: none;
602
+ background-color: #f4f4f4;
603
+ }
604
+
605
+ .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close { display: none;
606
+ background:none;
607
+ }
608
+ /* end multiselect */
609
+
610
+
611
+ .select2-result-selectable .select2-match,
612
+ .select2-result-unselectable .select2-match {
613
+ text-decoration: underline;
614
+ }
615
+
616
+ .select2-offscreen, .select2-offscreen:focus {
617
+ clip: rect(0 0 0 0);
618
+ width: 1px;
619
+ height: 1px;
620
+ border: 0;
621
+ margin: 0;
622
+ padding: 0;
623
+ overflow: hidden;
624
+ position: absolute;
625
+ outline: 0;
626
+ left: 0px;
627
+ }
628
+
629
+ .select2-display-none {
630
+ display: none;
631
+ }
632
+
633
+ .select2-measure-scrollbar {
634
+ position: absolute;
635
+ top: -10000px;
636
+ left: -10000px;
637
+ width: 100px;
638
+ height: 100px;
639
+ overflow: scroll;
640
+ }
641
+ /* Retina-ize icons */
642
+
643
+ @media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi) {
644
+ .select2-search input, .select2-search-choice-close, .select2-container .select2-choice abbr, .select2-container .select2-choice div b {
645
+ background-image: url('select2x2.png') !important;
646
+ background-repeat: no-repeat !important;
647
+ background-size: 60px 40px !important;
648
+ }
649
+ .select2-search input {
650
+ background-position: 100% -21px !important;
651
+ }
652
+ }