aerogel-admin 1.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (126) 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 +13 -0
  6. data/Rakefile +1 -0
  7. data/aerogel-admin.gemspec +31 -0
  8. data/app/helpers/admin.rb +54 -0
  9. data/app/helpers/decorators.rb +29 -0
  10. data/app/helpers/icons.rb +11 -0
  11. data/app/helpers/table_builder.rb +8 -0
  12. data/app/helpers/tabs_builder.rb +7 -0
  13. data/app/routes/admin.rb +37 -0
  14. data/app/routes/users.rb +71 -0
  15. data/app/routes/users_access.rb +54 -0
  16. data/app/routes/users_roles.rb +53 -0
  17. data/assets/fonts/aerogel-icons.css +28 -0
  18. data/assets/fonts/aerogel-icons.eot +0 -0
  19. data/assets/fonts/aerogel-icons.svg +11 -0
  20. data/assets/fonts/aerogel-icons.ttf +0 -0
  21. data/assets/fonts/aerogel-icons.woff +0 -0
  22. data/assets/javascripts/.gitkeep +0 -0
  23. data/assets/javascripts/controllers/admin-modal.js.coffee +7 -0
  24. data/assets/javascripts/controllers/admin-modal/admin-modal-form-buttons.js.coffee +56 -0
  25. data/assets/javascripts/controllers/admin.js.coffee +13 -0
  26. data/assets/javascripts/controllers/admin/selectize-inputs.js.coffee +7 -0
  27. data/assets/javascripts/controllers/admin/top-menu-shadow.js.coffee +9 -0
  28. data/assets/javascripts/utils/ajax-spinner.js.coffee +26 -0
  29. data/assets/javascripts/utils/ajax-watcher.js.coffee +18 -0
  30. data/assets/javascripts/utils/bootstrap-modal-reload.js.coffee +8 -0
  31. data/assets/javascripts/utils/form-data-async.js.coffee +27 -0
  32. data/assets/javascripts/utils/i18n.js.coffee +27 -0
  33. data/assets/javascripts/utils/on-future-elements.js.coffee +15 -0
  34. data/assets/stylesheets/admin/bootstrap-settings.css.scss +33 -0
  35. data/assets/stylesheets/admin/global.css.scss +61 -0
  36. data/assets/stylesheets/admin/styles/ajax-indicator.css.scss +26 -0
  37. data/assets/stylesheets/admin/styles/bootstrap-modal.css.scss +24 -0
  38. data/assets/stylesheets/admin/styles/language-selector.css.scss +5 -0
  39. data/assets/stylesheets/admin/styles/page-header.css.scss +7 -0
  40. data/assets/stylesheets/admin/styles/sticky-footer-navbar.css.scss +34 -0
  41. data/assets/stylesheets/admin/styles/table.css.scss +3 -0
  42. data/assets/stylesheets/admin/styles/top-menu.css.scss +3 -0
  43. data/assets/stylesheets/admin/utils/center-absolutely.css.scss +5 -0
  44. data/assets/stylesheets/controllers/admin.css.scss +14 -0
  45. data/assets/vendor/bootstrap-datetimepicker.css.scss +1 -0
  46. data/assets/vendor/bootstrap-datetimepicker.js.coffee +1 -0
  47. data/assets/vendor/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css +5 -0
  48. data/assets/vendor/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js +1 -0
  49. data/assets/vendor/bootstrap-datetimepicker/bootstrap-datetimepicker.ru.js +163 -0
  50. data/assets/vendor/moment.js.coffee +1 -0
  51. data/assets/vendor/momentjs/moment-with-langs.min.js +9 -0
  52. data/assets/vendor/selectize.css.scss +2 -0
  53. data/assets/vendor/selectize.js.coffee +1 -0
  54. data/assets/vendor/selectize/selectize.bootstrap3.css +385 -0
  55. data/assets/vendor/selectize/selectize.css +311 -0
  56. data/assets/vendor/selectize/selectize.default.css +381 -0
  57. data/assets/vendor/selectize/selectize.js +3345 -0
  58. data/assets/vendor/smart-list-table.css.scss +42 -0
  59. data/assets/vendor/smart-list-table.js.coffee +1 -0
  60. data/assets/vendor/smart-list-table/smart-list-table-row.js.coffee +63 -0
  61. data/assets/vendor/smart-list-table/smart-list-table.css.scss +54 -0
  62. data/assets/vendor/smart-list-table/smart-list-table.js.coffee +133 -0
  63. data/assets/vendor/smart-tree-table.css.scss +42 -0
  64. data/assets/vendor/smart-tree-table.js.coffee +1 -0
  65. data/assets/vendor/smart-tree-table/smart-tree-table-drag-n-drop.js.coffee +190 -0
  66. data/assets/vendor/smart-tree-table/smart-tree-table-row.js.coffee +78 -0
  67. data/assets/vendor/smart-tree-table/smart-tree-table.css.scss +54 -0
  68. data/assets/vendor/smart-tree-table/smart-tree-table.js.coffee +267 -0
  69. data/assets/vendor/spin.js +353 -0
  70. data/config/README.md +3 -0
  71. data/config/development/.keep +0 -0
  72. data/config/production/.keep +0 -0
  73. data/db/model/README.md +1 -0
  74. data/db/model/admin/user_new_form.rb +40 -0
  75. data/db/model/user.rb +26 -0
  76. data/db/seed/01_admin_roles.seed +8 -0
  77. data/db/seed/02_admin_access.seed +24 -0
  78. data/db/seed/development/.keep +0 -0
  79. data/db/seed/development/20_users.seed +45 -0
  80. data/db/seed/development/admin_users.seed +38 -0
  81. data/db/seed/production/.keep +0 -0
  82. data/lib/aerogel/admin.rb +25 -0
  83. data/lib/aerogel/admin/core.rb +14 -0
  84. data/lib/aerogel/admin/menu.rb +38 -0
  85. data/lib/aerogel/admin/table_builder.rb +100 -0
  86. data/lib/aerogel/admin/tabs_builder.rb +69 -0
  87. data/lib/aerogel/admin/version.rb +5 -0
  88. data/locales/actions.en.yml +27 -0
  89. data/locales/actions.ru.yml +28 -0
  90. data/locales/admin.en.yml +14 -0
  91. data/locales/admin.ru.yml +14 -0
  92. data/locales/models.en.yml +8 -0
  93. data/locales/models.ru.yml +8 -0
  94. data/locales/views.en.yml +46 -0
  95. data/locales/views.ru.yml +46 -0
  96. data/public/README.md +1 -0
  97. data/rake/README.md +3 -0
  98. data/views/admin/index.html.erb +3 -0
  99. data/views/admin/table_builder/standard/_table_column.html.erb +3 -0
  100. data/views/admin/table_builder/standard/_table_row.html.erb +7 -0
  101. data/views/admin/table_builder/standard/table.html.erb +10 -0
  102. data/views/admin/tabs_builder/standard/_tab.html.erb +3 -0
  103. data/views/admin/tabs_builder/standard/tabs.html.erb +3 -0
  104. data/views/admin/users/_tabs.html.erb +8 -0
  105. data/views/admin/users/access/delete.html.erb +12 -0
  106. data/views/admin/users/access/edit.html.erb +9 -0
  107. data/views/admin/users/access/index.html.erb +23 -0
  108. data/views/admin/users/access/new.html.erb +9 -0
  109. data/views/admin/users/delete.html.erb +12 -0
  110. data/views/admin/users/edit.html.erb +46 -0
  111. data/views/admin/users/index.html.erb +31 -0
  112. data/views/admin/users/new.html.erb +11 -0
  113. data/views/admin/users/roles/delete.html.erb +12 -0
  114. data/views/admin/users/roles/edit.html.erb +9 -0
  115. data/views/admin/users/roles/index.html.erb +21 -0
  116. data/views/admin/users/roles/new.html.erb +7 -0
  117. data/views/form_builder/standard/field_multiselect.erb +14 -0
  118. data/views/form_builder/standard/field_select.erb +17 -0
  119. data/views/layouts/admin.html.erb +63 -0
  120. data/views/layouts/admin/_ajax_indicator.html.erb +4 -0
  121. data/views/layouts/admin/_alerts.html.erb +22 -0
  122. data/views/layouts/admin/_menu.html.erb +50 -0
  123. data/views/layouts/admin/_menu_item.html.erb +5 -0
  124. data/views/layouts/admin/_modals.html.erb +8 -0
  125. data/views/layouts/admin/modal.html.erb +38 -0
  126. metadata +280 -0
@@ -0,0 +1,311 @@
1
+ /**
2
+ * selectize.css (v0.8.5)
3
+ * Copyright (c) 2013 Brian Reavis & contributors
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
+ * file except in compliance with the License. You may obtain a copy of the License at:
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
+ * ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ *
14
+ * @author Brian Reavis <brian@thirdroute.com>
15
+ */
16
+
17
+ .selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
18
+ visibility: visible !important;
19
+ background: #f2f2f2 !important;
20
+ background: rgba(0, 0, 0, 0.06) !important;
21
+ border: 0 none !important;
22
+ -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
23
+ box-shadow: inset 0 0 12px 4px #ffffff;
24
+ }
25
+ .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
26
+ content: '!';
27
+ visibility: hidden;
28
+ }
29
+ .selectize-control.plugin-drag_drop .ui-sortable-helper {
30
+ -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
31
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
32
+ }
33
+ .selectize-dropdown-header {
34
+ position: relative;
35
+ padding: 5px 8px;
36
+ border-bottom: 1px solid #d0d0d0;
37
+ background: #f8f8f8;
38
+ -webkit-border-radius: 3px 3px 0 0;
39
+ -moz-border-radius: 3px 3px 0 0;
40
+ border-radius: 3px 3px 0 0;
41
+ }
42
+ .selectize-dropdown-header-close {
43
+ position: absolute;
44
+ right: 8px;
45
+ top: 50%;
46
+ color: #303030;
47
+ opacity: 0.4;
48
+ margin-top: -12px;
49
+ line-height: 20px;
50
+ font-size: 20px !important;
51
+ }
52
+ .selectize-dropdown-header-close:hover {
53
+ color: #000000;
54
+ }
55
+ .selectize-dropdown.plugin-optgroup_columns .optgroup {
56
+ border-right: 1px solid #f2f2f2;
57
+ border-top: 0 none;
58
+ float: left;
59
+ -webkit-box-sizing: border-box;
60
+ -moz-box-sizing: border-box;
61
+ box-sizing: border-box;
62
+ }
63
+ .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child {
64
+ border-right: 0 none;
65
+ }
66
+ .selectize-dropdown.plugin-optgroup_columns .optgroup:before {
67
+ display: none;
68
+ }
69
+ .selectize-dropdown.plugin-optgroup_columns .optgroup-header {
70
+ border-top: 0 none;
71
+ }
72
+ .selectize-control.plugin-remove_button [data-value] {
73
+ position: relative;
74
+ padding-right: 24px !important;
75
+ }
76
+ .selectize-control.plugin-remove_button [data-value] .remove {
77
+ position: absolute;
78
+ top: 0;
79
+ right: 0;
80
+ bottom: 0;
81
+ width: 17px;
82
+ text-align: center;
83
+ font-weight: bold;
84
+ font-size: 12px;
85
+ color: inherit;
86
+ text-decoration: none;
87
+ vertical-align: middle;
88
+ display: inline-block;
89
+ padding: 2px 0 0 0;
90
+ border-left: 1px solid #d0d0d0;
91
+ -webkit-border-radius: 0 2px 2px 0;
92
+ -moz-border-radius: 0 2px 2px 0;
93
+ border-radius: 0 2px 2px 0;
94
+ -webkit-box-sizing: border-box;
95
+ -moz-box-sizing: border-box;
96
+ box-sizing: border-box;
97
+ }
98
+ .selectize-control.plugin-remove_button [data-value] .remove:hover {
99
+ background: rgba(0, 0, 0, 0.05);
100
+ }
101
+ .selectize-control.plugin-remove_button [data-value].active .remove {
102
+ border-left-color: #cacaca;
103
+ }
104
+ .selectize-control.plugin-remove_button .disabled [data-value] .remove:hover {
105
+ background: none;
106
+ }
107
+ .selectize-control.plugin-remove_button .disabled [data-value] .remove {
108
+ border-left-color: #ffffff;
109
+ }
110
+ .selectize-control {
111
+ position: relative;
112
+ }
113
+ .selectize-dropdown,
114
+ .selectize-input,
115
+ .selectize-input input {
116
+ color: #303030;
117
+ font-family: inherit;
118
+ font-size: 13px;
119
+ line-height: 18px;
120
+ -webkit-font-smoothing: inherit;
121
+ }
122
+ .selectize-input,
123
+ .selectize-control.single .selectize-input.input-active {
124
+ background: #ffffff;
125
+ cursor: text;
126
+ display: inline-block;
127
+ }
128
+ .selectize-input {
129
+ border: 1px solid #d0d0d0;
130
+ padding: 8px 8px;
131
+ display: inline-block;
132
+ width: 100%;
133
+ overflow: hidden;
134
+ position: relative;
135
+ z-index: 1;
136
+ -webkit-box-sizing: border-box;
137
+ -moz-box-sizing: border-box;
138
+ box-sizing: border-box;
139
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
140
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
141
+ -webkit-border-radius: 3px;
142
+ -moz-border-radius: 3px;
143
+ border-radius: 3px;
144
+ }
145
+ .selectize-control.multi .selectize-input.has-items {
146
+ padding: 6px 8px 3px;
147
+ }
148
+ .selectize-input.full {
149
+ background-color: #ffffff;
150
+ }
151
+ .selectize-input.disabled,
152
+ .selectize-input.disabled * {
153
+ cursor: default !important;
154
+ }
155
+ .selectize-input.focus {
156
+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
157
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
158
+ }
159
+ .selectize-input.dropdown-active {
160
+ -webkit-border-radius: 3px 3px 0 0;
161
+ -moz-border-radius: 3px 3px 0 0;
162
+ border-radius: 3px 3px 0 0;
163
+ }
164
+ .selectize-input > * {
165
+ vertical-align: baseline;
166
+ display: -moz-inline-stack;
167
+ display: inline-block;
168
+ zoom: 1;
169
+ *display: inline;
170
+ }
171
+ .selectize-control.multi .selectize-input > div {
172
+ cursor: pointer;
173
+ margin: 0 3px 3px 0;
174
+ padding: 2px 6px;
175
+ background: #f2f2f2;
176
+ color: #303030;
177
+ border: 0 solid #d0d0d0;
178
+ }
179
+ .selectize-control.multi .selectize-input > div.active {
180
+ background: #e8e8e8;
181
+ color: #303030;
182
+ border: 0 solid #cacaca;
183
+ }
184
+ .selectize-control.multi .selectize-input.disabled > div,
185
+ .selectize-control.multi .selectize-input.disabled > div.active {
186
+ color: #7d7d7d;
187
+ background: #ffffff;
188
+ border: 0 solid #ffffff;
189
+ }
190
+ .selectize-input > input {
191
+ padding: 0 !important;
192
+ min-height: 0 !important;
193
+ max-height: none !important;
194
+ max-width: 100% !important;
195
+ margin: 0 2px 0 0 !important;
196
+ text-indent: 0 !important;
197
+ border: 0 none !important;
198
+ background: none !important;
199
+ line-height: inherit !important;
200
+ -webkit-user-select: auto !important;
201
+ -webkit-box-shadow: none !important;
202
+ box-shadow: none !important;
203
+ }
204
+ .selectize-input > input:focus {
205
+ outline: none !important;
206
+ }
207
+ .selectize-input::after {
208
+ content: ' ';
209
+ display: block;
210
+ clear: left;
211
+ }
212
+ .selectize-input.dropdown-active::before {
213
+ content: ' ';
214
+ display: block;
215
+ position: absolute;
216
+ background: #f0f0f0;
217
+ height: 1px;
218
+ bottom: 0;
219
+ left: 0;
220
+ right: 0;
221
+ }
222
+ .selectize-dropdown {
223
+ position: absolute;
224
+ z-index: 10;
225
+ border: 1px solid #d0d0d0;
226
+ background: #ffffff;
227
+ margin: -1px 0 0 0;
228
+ border-top: 0 none;
229
+ -webkit-box-sizing: border-box;
230
+ -moz-box-sizing: border-box;
231
+ box-sizing: border-box;
232
+ -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
233
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
234
+ -webkit-border-radius: 0 0 3px 3px;
235
+ -moz-border-radius: 0 0 3px 3px;
236
+ border-radius: 0 0 3px 3px;
237
+ }
238
+ .selectize-dropdown [data-selectable] {
239
+ cursor: pointer;
240
+ overflow: hidden;
241
+ }
242
+ .selectize-dropdown [data-selectable] .highlight {
243
+ background: rgba(125, 168, 208, 0.2);
244
+ -webkit-border-radius: 1px;
245
+ -moz-border-radius: 1px;
246
+ border-radius: 1px;
247
+ }
248
+ .selectize-dropdown [data-selectable],
249
+ .selectize-dropdown .optgroup-header {
250
+ padding: 5px 8px;
251
+ }
252
+ .selectize-dropdown .optgroup:first-child .optgroup-header {
253
+ border-top: 0 none;
254
+ }
255
+ .selectize-dropdown .optgroup-header {
256
+ color: #303030;
257
+ background: #ffffff;
258
+ cursor: default;
259
+ }
260
+ .selectize-dropdown .active {
261
+ background-color: #f5fafd;
262
+ color: #495c68;
263
+ }
264
+ .selectize-dropdown .active.create {
265
+ color: #495c68;
266
+ }
267
+ .selectize-dropdown .create {
268
+ color: rgba(48, 48, 48, 0.5);
269
+ }
270
+ .selectize-dropdown-content {
271
+ overflow-y: auto;
272
+ overflow-x: hidden;
273
+ max-height: 200px;
274
+ }
275
+ .selectize-control.single .selectize-input,
276
+ .selectize-control.single .selectize-input input {
277
+ cursor: pointer;
278
+ }
279
+ .selectize-control.single .selectize-input.input-active,
280
+ .selectize-control.single .selectize-input.input-active input {
281
+ cursor: text;
282
+ }
283
+ .selectize-control.single .selectize-input:after {
284
+ content: ' ';
285
+ display: block;
286
+ position: absolute;
287
+ top: 50%;
288
+ right: 15px;
289
+ margin-top: -3px;
290
+ width: 0;
291
+ height: 0;
292
+ border-style: solid;
293
+ border-width: 5px 5px 0 5px;
294
+ border-color: #808080 transparent transparent transparent;
295
+ }
296
+ .selectize-control.single .selectize-input.dropdown-active:after {
297
+ margin-top: -4px;
298
+ border-width: 0 5px 5px 5px;
299
+ border-color: transparent transparent #808080 transparent;
300
+ }
301
+ .selectize-control.rtl.single .selectize-input:after {
302
+ left: 15px;
303
+ right: auto;
304
+ }
305
+ .selectize-control.rtl .selectize-input > input {
306
+ margin: 0 4px 0 -2px !important;
307
+ }
308
+ .selectize-control .selectize-input.disabled {
309
+ opacity: 0.5;
310
+ background-color: #fafafa;
311
+ }
@@ -0,0 +1,381 @@
1
+ /**
2
+ * selectize.default.css (v0.8.5) - Default Theme
3
+ * Copyright (c) 2013 Brian Reavis & contributors
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
6
+ * file except in compliance with the License. You may obtain a copy of the License at:
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software distributed under
10
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11
+ * ANY KIND, either express or implied. See the License for the specific language
12
+ * governing permissions and limitations under the License.
13
+ *
14
+ * @author Brian Reavis <brian@thirdroute.com>
15
+ */
16
+ .selectize-control.plugin-drag_drop.multi > .selectize-input > div.ui-sortable-placeholder {
17
+ visibility: visible !important;
18
+ background: #f2f2f2 !important;
19
+ background: rgba(0, 0, 0, 0.06) !important;
20
+ border: 0 none !important;
21
+ -webkit-box-shadow: inset 0 0 12px 4px #ffffff;
22
+ box-shadow: inset 0 0 12px 4px #ffffff;
23
+ }
24
+ .selectize-control.plugin-drag_drop .ui-sortable-placeholder::after {
25
+ content: '!';
26
+ visibility: hidden;
27
+ }
28
+ .selectize-control.plugin-drag_drop .ui-sortable-helper {
29
+ -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
30
+ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
31
+ }
32
+ .selectize-dropdown-header {
33
+ position: relative;
34
+ padding: 5px 8px;
35
+ border-bottom: 1px solid #d0d0d0;
36
+ background: #f8f8f8;
37
+ -webkit-border-radius: 3px 3px 0 0;
38
+ -moz-border-radius: 3px 3px 0 0;
39
+ border-radius: 3px 3px 0 0;
40
+ }
41
+ .selectize-dropdown-header-close {
42
+ position: absolute;
43
+ right: 8px;
44
+ top: 50%;
45
+ color: #303030;
46
+ opacity: 0.4;
47
+ margin-top: -12px;
48
+ line-height: 20px;
49
+ font-size: 20px !important;
50
+ }
51
+ .selectize-dropdown-header-close:hover {
52
+ color: #000000;
53
+ }
54
+ .selectize-dropdown.plugin-optgroup_columns .optgroup {
55
+ border-right: 1px solid #f2f2f2;
56
+ border-top: 0 none;
57
+ float: left;
58
+ -webkit-box-sizing: border-box;
59
+ -moz-box-sizing: border-box;
60
+ box-sizing: border-box;
61
+ }
62
+ .selectize-dropdown.plugin-optgroup_columns .optgroup:last-child {
63
+ border-right: 0 none;
64
+ }
65
+ .selectize-dropdown.plugin-optgroup_columns .optgroup:before {
66
+ display: none;
67
+ }
68
+ .selectize-dropdown.plugin-optgroup_columns .optgroup-header {
69
+ border-top: 0 none;
70
+ }
71
+ .selectize-control.plugin-remove_button [data-value] {
72
+ position: relative;
73
+ padding-right: 24px !important;
74
+ }
75
+ .selectize-control.plugin-remove_button [data-value] .remove {
76
+ position: absolute;
77
+ top: 0;
78
+ right: 0;
79
+ bottom: 0;
80
+ width: 17px;
81
+ text-align: center;
82
+ font-weight: bold;
83
+ font-size: 12px;
84
+ color: inherit;
85
+ text-decoration: none;
86
+ vertical-align: middle;
87
+ display: inline-block;
88
+ padding: 2px 0 0 0;
89
+ border-left: 1px solid #0073bb;
90
+ -webkit-border-radius: 0 2px 2px 0;
91
+ -moz-border-radius: 0 2px 2px 0;
92
+ border-radius: 0 2px 2px 0;
93
+ -webkit-box-sizing: border-box;
94
+ -moz-box-sizing: border-box;
95
+ box-sizing: border-box;
96
+ }
97
+ .selectize-control.plugin-remove_button [data-value] .remove:hover {
98
+ background: rgba(0, 0, 0, 0.05);
99
+ }
100
+ .selectize-control.plugin-remove_button [data-value].active .remove {
101
+ border-left-color: #00578d;
102
+ }
103
+ .selectize-control.plugin-remove_button .disabled [data-value] .remove:hover {
104
+ background: none;
105
+ }
106
+ .selectize-control.plugin-remove_button .disabled [data-value] .remove {
107
+ border-left-color: #aaaaaa;
108
+ }
109
+ .selectize-control {
110
+ position: relative;
111
+ }
112
+ .selectize-dropdown,
113
+ .selectize-input,
114
+ .selectize-input input {
115
+ color: #303030;
116
+ font-family: inherit;
117
+ font-size: 13px;
118
+ line-height: 18px;
119
+ -webkit-font-smoothing: inherit;
120
+ }
121
+ .selectize-input,
122
+ .selectize-control.single .selectize-input.input-active {
123
+ background: #ffffff;
124
+ cursor: text;
125
+ display: inline-block;
126
+ }
127
+ .selectize-input {
128
+ border: 1px solid #d0d0d0;
129
+ padding: 8px 8px;
130
+ display: inline-block;
131
+ width: 100%;
132
+ overflow: hidden;
133
+ position: relative;
134
+ z-index: 1;
135
+ -webkit-box-sizing: border-box;
136
+ -moz-box-sizing: border-box;
137
+ box-sizing: border-box;
138
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
139
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
140
+ -webkit-border-radius: 3px;
141
+ -moz-border-radius: 3px;
142
+ border-radius: 3px;
143
+ }
144
+ .selectize-control.multi .selectize-input.has-items {
145
+ padding: 5px 8px 2px;
146
+ }
147
+ .selectize-input.full {
148
+ background-color: #ffffff;
149
+ }
150
+ .selectize-input.disabled,
151
+ .selectize-input.disabled * {
152
+ cursor: default !important;
153
+ }
154
+ .selectize-input.focus {
155
+ -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
156
+ box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
157
+ }
158
+ .selectize-input.dropdown-active {
159
+ -webkit-border-radius: 3px 3px 0 0;
160
+ -moz-border-radius: 3px 3px 0 0;
161
+ border-radius: 3px 3px 0 0;
162
+ }
163
+ .selectize-input > * {
164
+ vertical-align: baseline;
165
+ display: -moz-inline-stack;
166
+ display: inline-block;
167
+ zoom: 1;
168
+ *display: inline;
169
+ }
170
+ .selectize-control.multi .selectize-input > div {
171
+ cursor: pointer;
172
+ margin: 0 3px 3px 0;
173
+ padding: 2px 6px;
174
+ background: #1da7ee;
175
+ color: #ffffff;
176
+ border: 1px solid #0073bb;
177
+ }
178
+ .selectize-control.multi .selectize-input > div.active {
179
+ background: #92c836;
180
+ color: #ffffff;
181
+ border: 1px solid #00578d;
182
+ }
183
+ .selectize-control.multi .selectize-input.disabled > div,
184
+ .selectize-control.multi .selectize-input.disabled > div.active {
185
+ color: #ffffff;
186
+ background: #d2d2d2;
187
+ border: 1px solid #aaaaaa;
188
+ }
189
+ .selectize-input > input {
190
+ padding: 0 !important;
191
+ min-height: 0 !important;
192
+ max-height: none !important;
193
+ max-width: 100% !important;
194
+ margin: 0 1px !important;
195
+ text-indent: 0 !important;
196
+ border: 0 none !important;
197
+ background: none !important;
198
+ line-height: inherit !important;
199
+ -webkit-user-select: auto !important;
200
+ -webkit-box-shadow: none !important;
201
+ box-shadow: none !important;
202
+ }
203
+ .selectize-input > input:focus {
204
+ outline: none !important;
205
+ }
206
+ .selectize-input::after {
207
+ content: ' ';
208
+ display: block;
209
+ clear: left;
210
+ }
211
+ .selectize-input.dropdown-active::before {
212
+ content: ' ';
213
+ display: block;
214
+ position: absolute;
215
+ background: #f0f0f0;
216
+ height: 1px;
217
+ bottom: 0;
218
+ left: 0;
219
+ right: 0;
220
+ }
221
+ .selectize-dropdown {
222
+ position: absolute;
223
+ z-index: 10;
224
+ border: 1px solid #d0d0d0;
225
+ background: #ffffff;
226
+ margin: -1px 0 0 0;
227
+ border-top: 0 none;
228
+ -webkit-box-sizing: border-box;
229
+ -moz-box-sizing: border-box;
230
+ box-sizing: border-box;
231
+ -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
232
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
233
+ -webkit-border-radius: 0 0 3px 3px;
234
+ -moz-border-radius: 0 0 3px 3px;
235
+ border-radius: 0 0 3px 3px;
236
+ }
237
+ .selectize-dropdown [data-selectable] {
238
+ cursor: pointer;
239
+ overflow: hidden;
240
+ }
241
+ .selectize-dropdown [data-selectable] .highlight {
242
+ background: rgba(125, 168, 208, 0.2);
243
+ -webkit-border-radius: 1px;
244
+ -moz-border-radius: 1px;
245
+ border-radius: 1px;
246
+ }
247
+ .selectize-dropdown [data-selectable],
248
+ .selectize-dropdown .optgroup-header {
249
+ padding: 5px 8px;
250
+ }
251
+ .selectize-dropdown .optgroup:first-child .optgroup-header {
252
+ border-top: 0 none;
253
+ }
254
+ .selectize-dropdown .optgroup-header {
255
+ color: #303030;
256
+ background: #ffffff;
257
+ cursor: default;
258
+ }
259
+ .selectize-dropdown .active {
260
+ background-color: #f5fafd;
261
+ color: #495c68;
262
+ }
263
+ .selectize-dropdown .active.create {
264
+ color: #495c68;
265
+ }
266
+ .selectize-dropdown .create {
267
+ color: rgba(48, 48, 48, 0.5);
268
+ }
269
+ .selectize-dropdown-content {
270
+ overflow-y: auto;
271
+ overflow-x: hidden;
272
+ max-height: 200px;
273
+ }
274
+ .selectize-control.single .selectize-input,
275
+ .selectize-control.single .selectize-input input {
276
+ cursor: pointer;
277
+ }
278
+ .selectize-control.single .selectize-input.input-active,
279
+ .selectize-control.single .selectize-input.input-active input {
280
+ cursor: text;
281
+ }
282
+ .selectize-control.single .selectize-input:after {
283
+ content: ' ';
284
+ display: block;
285
+ position: absolute;
286
+ top: 50%;
287
+ right: 15px;
288
+ margin-top: -3px;
289
+ width: 0;
290
+ height: 0;
291
+ border-style: solid;
292
+ border-width: 5px 5px 0 5px;
293
+ border-color: #808080 transparent transparent transparent;
294
+ }
295
+ .selectize-control.single .selectize-input.dropdown-active:after {
296
+ margin-top: -4px;
297
+ border-width: 0 5px 5px 5px;
298
+ border-color: transparent transparent #808080 transparent;
299
+ }
300
+ .selectize-control.rtl.single .selectize-input:after {
301
+ left: 15px;
302
+ right: auto;
303
+ }
304
+ .selectize-control.rtl .selectize-input > input {
305
+ margin: 0 4px 0 -2px !important;
306
+ }
307
+ .selectize-control .selectize-input.disabled {
308
+ opacity: 0.5;
309
+ background-color: #fafafa;
310
+ }
311
+ .selectize-control.multi .selectize-input.has-items {
312
+ padding-left: 5px;
313
+ padding-right: 5px;
314
+ }
315
+ .selectize-control.multi .selectize-input.disabled [data-value] {
316
+ color: #999;
317
+ text-shadow: none;
318
+ background: none;
319
+ -webkit-box-shadow: none;
320
+ box-shadow: none;
321
+ }
322
+ .selectize-control.multi .selectize-input.disabled [data-value],
323
+ .selectize-control.multi .selectize-input.disabled [data-value] .remove {
324
+ border-color: #e6e6e6;
325
+ }
326
+ .selectize-control.multi .selectize-input.disabled [data-value] .remove {
327
+ background: none;
328
+ }
329
+ .selectize-control.multi .selectize-input [data-value] {
330
+ text-shadow: 0 1px 0 rgba(0, 51, 83, 0.3);
331
+ -webkit-border-radius: 3px;
332
+ -moz-border-radius: 3px;
333
+ border-radius: 3px;
334
+ background-color: #1b9dec;
335
+ background-image: -moz-linear-gradient(top, #1da7ee, #178ee9);
336
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#1da7ee), to(#178ee9));
337
+ background-image: -webkit-linear-gradient(top, #1da7ee, #178ee9);
338
+ background-image: -o-linear-gradient(top, #1da7ee, #178ee9);
339
+ background-image: linear-gradient(to bottom, #1da7ee, #178ee9);
340
+ background-repeat: repeat-x;
341
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff1da7ee', endColorstr='#ff178ee9', GradientType=0);
342
+ -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.2),inset 0 1px rgba(255,255,255,0.03);
343
+ box-shadow: 0 1px 0 rgba(0,0,0,0.2),inset 0 1px rgba(255,255,255,0.03);
344
+ }
345
+ .selectize-control.multi .selectize-input [data-value].active {
346
+ background-color: #0085d4;
347
+ background-image: -moz-linear-gradient(top, #008fd8, #0075cf);
348
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#008fd8), to(#0075cf));
349
+ background-image: -webkit-linear-gradient(top, #008fd8, #0075cf);
350
+ background-image: -o-linear-gradient(top, #008fd8, #0075cf);
351
+ background-image: linear-gradient(to bottom, #008fd8, #0075cf);
352
+ background-repeat: repeat-x;
353
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff008fd8', endColorstr='#ff0075cf', GradientType=0);
354
+ }
355
+ .selectize-control.single .selectize-input {
356
+ -webkit-box-shadow: 0 1px 0 rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8);
357
+ box-shadow: 0 1px 0 rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8);
358
+ background-color: #f9f9f9;
359
+ background-image: -moz-linear-gradient(top, #fefefe, #f2f2f2);
360
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fefefe), to(#f2f2f2));
361
+ background-image: -webkit-linear-gradient(top, #fefefe, #f2f2f2);
362
+ background-image: -o-linear-gradient(top, #fefefe, #f2f2f2);
363
+ background-image: linear-gradient(to bottom, #fefefe, #f2f2f2);
364
+ background-repeat: repeat-x;
365
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffefefe', endColorstr='#fff2f2f2', GradientType=0);
366
+ }
367
+ .selectize-control.single .selectize-input,
368
+ .selectize-dropdown.single {
369
+ border-color: #b8b8b8;
370
+ }
371
+ .selectize-dropdown .optgroup-header {
372
+ padding-top: 7px;
373
+ font-weight: bold;
374
+ font-size: 0.85em;
375
+ }
376
+ .selectize-dropdown .optgroup {
377
+ border-top: 1px solid #f0f0f0;
378
+ }
379
+ .selectize-dropdown .optgroup:first-child {
380
+ border-top: 0 none;
381
+ }