decidim-notify 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE-AGPLv3.txt +661 -0
- data/README.md +160 -0
- data/Rakefile +40 -0
- data/app/assets/config/decidim_notify_manifest.css +2 -0
- data/app/assets/config/decidim_notify_manifest.js +3 -0
- data/app/assets/images/decidim/notify/icon.svg +1 -0
- data/app/assets/javascripts/cable.js +13 -0
- data/app/assets/javascripts/channels/decidim/notify/conversations.js +90 -0
- data/app/assets/javascripts/decidim/notify/conversations.js.es6 +70 -0
- data/app/assets/javascripts/decidim/notify/select2.js.es6 +100 -0
- data/app/assets/stylesheets/decidim/notify/_hexagon.scss +126 -0
- data/app/assets/stylesheets/decidim/notify/admin.scss +25 -0
- data/app/assets/stylesheets/decidim/notify/notify.scss +220 -0
- data/app/cells/decidim/notify/chapter/show.erb +35 -0
- data/app/cells/decidim/notify/chapter_cell.rb +43 -0
- data/app/cells/decidim/notify/note/show.erb +20 -0
- data/app/cells/decidim/notify/note_cell.rb +38 -0
- data/app/cells/decidim/notify/participant/show.erb +9 -0
- data/app/cells/decidim/notify/participant_cell.rb +26 -0
- data/app/channels/decidim/notify/chapters_channel.rb +17 -0
- data/app/channels/decidim/notify/connection.rb +17 -0
- data/app/channels/decidim/notify/notes_channel.rb +17 -0
- data/app/channels/decidim/notify/participants_channel.rb +17 -0
- data/app/commands/decidim/notify/admin/create_chapter.rb +51 -0
- data/app/commands/decidim/notify/admin/destroy_chapter.rb +30 -0
- data/app/commands/decidim/notify/admin/update_chapter.rb +52 -0
- data/app/commands/decidim/notify/admin/update_config.rb +71 -0
- data/app/commands/decidim/notify/create_note.rb +52 -0
- data/app/commands/decidim/notify/delete_chapter.rb +28 -0
- data/app/commands/decidim/notify/delete_note.rb +28 -0
- data/app/commands/decidim/notify/update_chapter.rb +35 -0
- data/app/commands/decidim/notify/update_note.rb +51 -0
- data/app/controllers/concerns/decidim/notify/broadcasts.rb +56 -0
- data/app/controllers/concerns/decidim/notify/needs_ajax_rescue.rb +25 -0
- data/app/controllers/decidim/notify/admin/application_controller.rb +18 -0
- data/app/controllers/decidim/notify/admin/chapters_controller.rb +90 -0
- data/app/controllers/decidim/notify/admin/conversations_controller.rb +61 -0
- data/app/controllers/decidim/notify/application_controller.rb +16 -0
- data/app/controllers/decidim/notify/chapters_controller.rb +41 -0
- data/app/controllers/decidim/notify/conversations_controller.rb +105 -0
- data/app/forms/decidim/notify/admin/chapter_form.rb +14 -0
- data/app/forms/decidim/notify/admin/notify_config_form.rb +14 -0
- data/app/forms/decidim/notify/chapter_form.rb +13 -0
- data/app/forms/decidim/notify/note_form.rb +16 -0
- data/app/helpers/decidim/notify/application_helper.rb +10 -0
- data/app/models/concerns/decidim/notify/belongs_to_notify_component.rb +31 -0
- data/app/models/decidim/notify/application_record.rb +10 -0
- data/app/models/decidim/notify/author.rb +29 -0
- data/app/models/decidim/notify/chapter.rb +22 -0
- data/app/models/decidim/notify/note.rb +23 -0
- data/app/permissions/decidim/notify/admin/permissions.rb +23 -0
- data/app/permissions/decidim/notify/permissions.rb +45 -0
- data/app/views/decidim/notify/admin/chapters/_form.html.erb +20 -0
- data/app/views/decidim/notify/admin/chapters/edit.html.erb +7 -0
- data/app/views/decidim/notify/admin/chapters/index.html.erb +52 -0
- data/app/views/decidim/notify/admin/chapters/new.html.erb +7 -0
- data/app/views/decidim/notify/admin/conversations/_form.html.erb +27 -0
- data/app/views/decidim/notify/admin/conversations/index.html.erb +27 -0
- data/app/views/decidim/notify/conversations/_chapter.html.erb +1 -0
- data/app/views/decidim/notify/conversations/_form.html.erb +9 -0
- data/app/views/decidim/notify/conversations/_note.html.erb +1 -0
- data/app/views/decidim/notify/conversations/_participant.html.erb +1 -0
- data/app/views/decidim/notify/conversations/_script.js.erb +7 -0
- data/app/views/decidim/notify/conversations/index.html.erb +48 -0
- data/app/views/decidim/notify/conversations/private.html.erb +11 -0
- data/config/i18n-tasks.yml +35 -0
- data/config/locales/ca.yml +110 -0
- data/config/locales/cs.yml +110 -0
- data/config/locales/en.yml +110 -0
- data/config/locales/es.yml +110 -0
- data/db/migrate/20200504071404_create_notify_notes.rb +11 -0
- data/db/migrate/20200505061547_create_notify_authors.rb +17 -0
- data/db/migrate/20200505061640_add_notify_notes_references.rb +9 -0
- data/db/migrate/20200505195918_add_notify_author_admin.rb +7 -0
- data/db/migrate/20200507103034_change_notify_notes_authors.rb +15 -0
- data/db/migrate/20200514144040_add_notify_note_chapters.rb +15 -0
- data/lib/decidim/notify.rb +57 -0
- data/lib/decidim/notify/admin.rb +10 -0
- data/lib/decidim/notify/admin_engine.rb +25 -0
- data/lib/decidim/notify/component.rb +135 -0
- data/lib/decidim/notify/engine.rb +39 -0
- data/lib/decidim/notify/seeds/avatar1.png +0 -0
- data/lib/decidim/notify/seeds/avatar2.png +0 -0
- data/lib/decidim/notify/seeds/avatar3.png +0 -0
- data/lib/decidim/notify/seeds/avatar4.png +0 -0
- data/lib/decidim/notify/seeds/avatar5.png +0 -0
- data/lib/decidim/notify/test/factories.rb +48 -0
- data/lib/decidim/notify/test/shared_examples/component_examples.rb +23 -0
- data/lib/decidim/notify/version.rb +9 -0
- data/vendor/assets/javascripts/select2.js +6147 -0
- data/vendor/assets/stylesheets/select2-foundation-theme.css +249 -0
- data/vendor/assets/stylesheets/select2.css +515 -0
- metadata +177 -0
@@ -0,0 +1,249 @@
|
|
1
|
+
span.select2-container--foundation {
|
2
|
+
vertical-align: top; }
|
3
|
+
|
4
|
+
span.select2-container--foundation .selection {
|
5
|
+
margin: 0 0 1rem; }
|
6
|
+
|
7
|
+
.select2-container--foundation {
|
8
|
+
/**
|
9
|
+
* Search field in the Select2 dropdown.
|
10
|
+
*/
|
11
|
+
/**
|
12
|
+
* No outline for all search fields - in the dropdown
|
13
|
+
* and inline in multi Select2s.
|
14
|
+
*/
|
15
|
+
/* Clear the selection. */
|
16
|
+
/**
|
17
|
+
* Address disabled Select2 styles.
|
18
|
+
*
|
19
|
+
* @see https://select2.github.io/examples.html#disabled
|
20
|
+
* @see http://getbootstrap.com/css/#forms-control-disabled
|
21
|
+
*/
|
22
|
+
/*------------------------------------*\
|
23
|
+
#DROPDOWN
|
24
|
+
\*------------------------------------*/ }
|
25
|
+
.select2-container--foundation .select2-selection {
|
26
|
+
background-color: #fefefe;
|
27
|
+
border: 1px solid #cacaca;
|
28
|
+
border-radius: 0;
|
29
|
+
color: #0a0a0a;
|
30
|
+
font-family: inherit;
|
31
|
+
font-size: 1rem;
|
32
|
+
background: #fefefe;
|
33
|
+
outline: 0; }
|
34
|
+
.select2-container--foundation .select2-search--dropdown .select2-search__field {
|
35
|
+
background-color: #fefefe;
|
36
|
+
border: 1px solid #cacaca;
|
37
|
+
border-radius: 0;
|
38
|
+
color: #0a0a0a;
|
39
|
+
font-family: inherit;
|
40
|
+
font-size: 1rem;
|
41
|
+
border-radius: 0; }
|
42
|
+
.select2-container--foundation .select2-search__field {
|
43
|
+
outline: 0;
|
44
|
+
/* Firefox 18- */
|
45
|
+
/**
|
46
|
+
* Firefox 19+
|
47
|
+
*
|
48
|
+
* @see http://stackoverflow.com/questions/24236240/color-for-styled-placeholder-text-is-muted-in-firefox
|
49
|
+
*/ }
|
50
|
+
.select2-container--foundation .select2-search__field::-webkit-input-placeholder {
|
51
|
+
color: #8a8a8a; }
|
52
|
+
.select2-container--foundation .select2-search__field:-moz-placeholder {
|
53
|
+
color: #8a8a8a; }
|
54
|
+
.select2-container--foundation .select2-search__field::-moz-placeholder {
|
55
|
+
color: #8a8a8a;
|
56
|
+
opacity: 1; }
|
57
|
+
.select2-container--foundation .select2-search__field:-ms-input-placeholder {
|
58
|
+
color: #8a8a8a; }
|
59
|
+
.select2-container--foundation .select2-results__option {
|
60
|
+
/**
|
61
|
+
* Disabled results.
|
62
|
+
*
|
63
|
+
* @see https://select2.github.io/examples.html#disabled-results
|
64
|
+
*/
|
65
|
+
/**
|
66
|
+
* Hover state.
|
67
|
+
*/
|
68
|
+
/**
|
69
|
+
* Selected state.
|
70
|
+
*/ }
|
71
|
+
.select2-container--foundation .select2-results__option[role=group] {
|
72
|
+
padding: 0; }
|
73
|
+
.select2-container--foundation .select2-results__option[role=group] strong {
|
74
|
+
padding-left: 0.125rem; }
|
75
|
+
.select2-container--foundation .select2-results__option[aria-disabled=true] {
|
76
|
+
color: #8a8a8a;
|
77
|
+
cursor: default; }
|
78
|
+
.select2-container--foundation .select2-results__option--highlighted[aria-selected] {
|
79
|
+
background-color: #2199e8;
|
80
|
+
color: foreground(#2199e8); }
|
81
|
+
.select2-container--foundation.select2-container--focus .select2-selection {
|
82
|
+
border: 1px solid #8a8a8a; }
|
83
|
+
.select2-container--foundation.select2-container--open .select2-selection {
|
84
|
+
border: 1px solid #8a8a8a;
|
85
|
+
border-radius: 0; }
|
86
|
+
.select2-container--foundation.select2-container--open {
|
87
|
+
/**
|
88
|
+
* Make the dropdown arrow point up while the dropdown is visible.
|
89
|
+
*/ }
|
90
|
+
.select2-container--foundation.select2-container--open .select2-selection__arrow b {
|
91
|
+
transform: rotate(180deg); }
|
92
|
+
.select2-container--foundation .select2-choice {
|
93
|
+
box-shadow: none;
|
94
|
+
background-image: none; }
|
95
|
+
.select2-container--foundation .select2-choice div {
|
96
|
+
background-clip: padding-box; }
|
97
|
+
.select2-container--foundation .select2-choice .select2-arrow {
|
98
|
+
border: 0px;
|
99
|
+
border-radius: 0px;
|
100
|
+
background: transparent;
|
101
|
+
background-image: none; }
|
102
|
+
.select2-container--foundation *:focus {
|
103
|
+
outline: 0px; }
|
104
|
+
.select2-container--foundation .select2-selection__clear {
|
105
|
+
color: #8a8a8a;
|
106
|
+
cursor: pointer;
|
107
|
+
float: left;
|
108
|
+
font-weight: bold;
|
109
|
+
margin-right: 0px; }
|
110
|
+
.select2-container--foundation .select2-selection__clear:hover {
|
111
|
+
color: #333; }
|
112
|
+
.select2-container--foundation.select2-container--disabled .select2-selection {
|
113
|
+
border: 1px solid #cacaca; }
|
114
|
+
.select2-container--foundation.select2-container--disabled .select2-selection,
|
115
|
+
.select2-container--foundation.select2-container--disabled .select2-search__field {
|
116
|
+
cursor: default; }
|
117
|
+
.select2-container--foundation.select2-container--disabled .select2-selection,
|
118
|
+
.select2-container--foundation.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
|
119
|
+
background-color: #e6e6e6;
|
120
|
+
color: foreground(#e6e6e6); }
|
121
|
+
.select2-container--foundation.select2-container--disabled .select2-selection__clear,
|
122
|
+
.select2-container--foundation.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove {
|
123
|
+
display: none; }
|
124
|
+
.select2-container--foundation .select2-dropdown {
|
125
|
+
border: 1px solid #8a8a8a;
|
126
|
+
border-top: 1px solid #cacaca;
|
127
|
+
background: #fefefe;
|
128
|
+
border-radius: 0;
|
129
|
+
overflow-x: hidden;
|
130
|
+
margin-top: -0.0625rem; }
|
131
|
+
.select2-container--foundation .select2-dropdown--above {
|
132
|
+
margin-top: 0.0625rem;
|
133
|
+
border-radius: 0;
|
134
|
+
border-top: 1px solid #8a8a8a;
|
135
|
+
border-bottom: 1px solid #cacaca; }
|
136
|
+
.select2-container--foundation .select2-results > .select2-results__options {
|
137
|
+
/* Limit the dropdown height. */
|
138
|
+
max-height: 200px;
|
139
|
+
overflow-y: auto; }
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Temporary fix for https://github.com/select2/select2-bootstrap-theme/issues/9
|
143
|
+
*
|
144
|
+
* Provides `!important` for certain properties of the class applied to the
|
145
|
+
* original `<select>` element to hide it.
|
146
|
+
*
|
147
|
+
* @see https://github.com/select2/select2/pull/3301
|
148
|
+
* @see https://github.com/fk/select2/commit/31830c7b32cb3d8e1b12d5b434dee40a6e753ada
|
149
|
+
*/
|
150
|
+
.form-control.select2-hidden-accessible {
|
151
|
+
position: absolute !important;
|
152
|
+
width: 1px !important; }
|
153
|
+
|
154
|
+
/**
|
155
|
+
* Display override for inline forms
|
156
|
+
*/
|
157
|
+
.input-group span.select2-container--foundation {
|
158
|
+
margin: 0;
|
159
|
+
vertical-align: middle; }
|
160
|
+
.input-group span.select2-container--foundation .selection .select2-selection {
|
161
|
+
vertical-align: middle;
|
162
|
+
border-radius: 0; }
|
163
|
+
|
164
|
+
/****** Single SCSS *******/
|
165
|
+
.select2-container--foundation .select2-selection--single,
|
166
|
+
.select2-container--foundation .selection .select2-selection--single {
|
167
|
+
height: 2.4375rem;
|
168
|
+
line-height: 1.5;
|
169
|
+
padding: 0.5rem; }
|
170
|
+
.select2-container--foundation .select2-selection--single .select2-selection__rendered,
|
171
|
+
.select2-container--foundation .selection .select2-selection--single .select2-selection__rendered {
|
172
|
+
color: #0a0a0a; }
|
173
|
+
.select2-container--foundation .select2-selection--single .select2-selection__arrow,
|
174
|
+
.select2-container--foundation .selection .select2-selection--single .select2-selection__arrow {
|
175
|
+
height: 2.4375rem;
|
176
|
+
position: absolute;
|
177
|
+
top: 0;
|
178
|
+
right: 1px;
|
179
|
+
width: 20px; }
|
180
|
+
.select2-container--foundation .select2-selection--single .select2-selection__arrow b,
|
181
|
+
.select2-container--foundation .selection .select2-selection--single .select2-selection__arrow b {
|
182
|
+
border-color: #333 transparent transparent transparent;
|
183
|
+
top: 50%;
|
184
|
+
border-style: solid;
|
185
|
+
border-width: 6px 4px 0 4px;
|
186
|
+
height: 0;
|
187
|
+
left: 50%;
|
188
|
+
margin-left: -4px;
|
189
|
+
margin-top: -2px;
|
190
|
+
position: absolute;
|
191
|
+
width: 0; }
|
192
|
+
.select2-container--foundation .select2-selection--single .select2-selection__placeholder,
|
193
|
+
.select2-container--foundation .selection .select2-selection--single .select2-selection__placeholder {
|
194
|
+
color: #8a8a8a; }
|
195
|
+
.select2-container--foundation .select2-selection--single .select2-selection__clear,
|
196
|
+
.select2-container--foundation .selection .select2-selection--single .select2-selection__clear {
|
197
|
+
cursor: pointer;
|
198
|
+
float: right;
|
199
|
+
font-weight: bold; }
|
200
|
+
|
201
|
+
/****** Multiple SCSS *******/
|
202
|
+
.select2-container--foundation .select2-selection--multiple {
|
203
|
+
/* Clear the selection. */ }
|
204
|
+
.select2-container--foundation .select2-selection--multiple .select2-selection__choice__remove:hover {
|
205
|
+
cursor: pointer; }
|
206
|
+
.select2-container--foundation .select2-selection--multiple ul.select2-selection__rendered,
|
207
|
+
.select2-container--foundation .select2-selection--multiple .select2-selection__rendered {
|
208
|
+
display: inherit;
|
209
|
+
box-sizing: border-box;
|
210
|
+
list-style: none;
|
211
|
+
margin: 0;
|
212
|
+
padding: 0 5px;
|
213
|
+
width: 100%; }
|
214
|
+
.select2-container--foundation .select2-selection--multiple .select2-selection__choice {
|
215
|
+
border-radius: 0;
|
216
|
+
padding: 0.1875rem 0.3125rem;
|
217
|
+
cursor: default;
|
218
|
+
float: left;
|
219
|
+
margin-right: 0.3125rem;
|
220
|
+
margin-top: 0.125rem;
|
221
|
+
margin-bottom: 0.125rem;
|
222
|
+
border: 1px solid #8a8a8a; }
|
223
|
+
.select2-container--foundation .select2-selection--multiple .select2-selection__choice__remove {
|
224
|
+
margin-right: 6px;
|
225
|
+
margin-left: 6px;
|
226
|
+
float: right; }
|
227
|
+
.select2-container--foundation .select2-selection--multiple .select2-search--inline .select2-search__field {
|
228
|
+
background: transparent;
|
229
|
+
line-height: 1.5;
|
230
|
+
border: 0;
|
231
|
+
margin-top: 0;
|
232
|
+
min-width: 5rem;
|
233
|
+
height: 2.375rem;
|
234
|
+
box-shadow: none;
|
235
|
+
margin: 0;
|
236
|
+
margin-right: -2rem; }
|
237
|
+
.select2-container--foundation .select2-selection--multiple .select2-selection__choice__remove {
|
238
|
+
color: #8a8a8a;
|
239
|
+
cursor: pointer;
|
240
|
+
display: inline-block;
|
241
|
+
font-weight: bold;
|
242
|
+
margin-right: 0.25rem; }
|
243
|
+
.select2-container--foundation .select2-selection--multiple .select2-selection__choice__remove:hover {
|
244
|
+
color: #333; }
|
245
|
+
.select2-container--foundation .select2-selection--multiple .select2-selection__clear {
|
246
|
+
margin-right: 0.1875rem;
|
247
|
+
margin-top: 0.5rem; }
|
248
|
+
|
249
|
+
/*# sourceMappingURL=select2-foundation-theme.css.map */
|
@@ -0,0 +1,515 @@
|
|
1
|
+
.select2-container {
|
2
|
+
box-sizing: border-box;
|
3
|
+
display: inline-block;
|
4
|
+
margin: 0;
|
5
|
+
position: relative;
|
6
|
+
vertical-align: middle; }
|
7
|
+
.select2-container .select2-selection--single {
|
8
|
+
box-sizing: border-box;
|
9
|
+
cursor: pointer;
|
10
|
+
display: block;
|
11
|
+
height: 28px;
|
12
|
+
user-select: none;
|
13
|
+
-webkit-user-select: none; }
|
14
|
+
.select2-container .select2-selection--single .select2-selection__rendered {
|
15
|
+
display: block;
|
16
|
+
padding-left: 8px;
|
17
|
+
padding-right: 20px;
|
18
|
+
overflow: hidden;
|
19
|
+
text-overflow: ellipsis;
|
20
|
+
white-space: nowrap; }
|
21
|
+
.select2-container .select2-selection--single .select2-selection__clear {
|
22
|
+
background-color: transparent;
|
23
|
+
border: none;
|
24
|
+
font-size: 1em; }
|
25
|
+
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
|
26
|
+
padding-right: 8px;
|
27
|
+
padding-left: 20px; }
|
28
|
+
.select2-container .select2-selection--multiple {
|
29
|
+
box-sizing: border-box;
|
30
|
+
cursor: pointer;
|
31
|
+
display: block;
|
32
|
+
min-height: 32px;
|
33
|
+
user-select: none;
|
34
|
+
-webkit-user-select: none; }
|
35
|
+
.select2-container .select2-selection--multiple .select2-selection__rendered {
|
36
|
+
display: inline;
|
37
|
+
list-style: none;
|
38
|
+
padding: 0; }
|
39
|
+
.select2-container .select2-selection--multiple .select2-selection__clear {
|
40
|
+
background-color: transparent;
|
41
|
+
border: none;
|
42
|
+
font-size: 1em; }
|
43
|
+
.select2-container .select2-search--inline .select2-search__field {
|
44
|
+
box-sizing: border-box;
|
45
|
+
border: none;
|
46
|
+
font-size: 100%;
|
47
|
+
margin-top: 5px;
|
48
|
+
margin-left: 5px;
|
49
|
+
padding: 0; }
|
50
|
+
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
|
51
|
+
-webkit-appearance: none; }
|
52
|
+
|
53
|
+
.select2-dropdown {
|
54
|
+
background-color: white;
|
55
|
+
border: 1px solid #aaa;
|
56
|
+
border-radius: 4px;
|
57
|
+
box-sizing: border-box;
|
58
|
+
display: block;
|
59
|
+
position: absolute;
|
60
|
+
left: -100000px;
|
61
|
+
width: 100%;
|
62
|
+
z-index: 1051; }
|
63
|
+
|
64
|
+
.select2-results {
|
65
|
+
display: block; }
|
66
|
+
|
67
|
+
.select2-results__options {
|
68
|
+
list-style: none;
|
69
|
+
margin: 0;
|
70
|
+
padding: 0; }
|
71
|
+
|
72
|
+
.select2-results__option {
|
73
|
+
padding: 6px;
|
74
|
+
user-select: none;
|
75
|
+
-webkit-user-select: none; }
|
76
|
+
|
77
|
+
.select2-results__option--selectable {
|
78
|
+
cursor: pointer; }
|
79
|
+
|
80
|
+
.select2-container--open .select2-dropdown {
|
81
|
+
left: 0; }
|
82
|
+
|
83
|
+
.select2-container--open .select2-dropdown--above {
|
84
|
+
border-bottom: none;
|
85
|
+
border-bottom-left-radius: 0;
|
86
|
+
border-bottom-right-radius: 0; }
|
87
|
+
|
88
|
+
.select2-container--open .select2-dropdown--below {
|
89
|
+
border-top: none;
|
90
|
+
border-top-left-radius: 0;
|
91
|
+
border-top-right-radius: 0; }
|
92
|
+
|
93
|
+
.select2-search--dropdown {
|
94
|
+
display: block;
|
95
|
+
padding: 4px; }
|
96
|
+
.select2-search--dropdown .select2-search__field {
|
97
|
+
padding: 4px;
|
98
|
+
width: 100%;
|
99
|
+
box-sizing: border-box; }
|
100
|
+
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
|
101
|
+
-webkit-appearance: none; }
|
102
|
+
.select2-search--dropdown.select2-search--hide {
|
103
|
+
display: none; }
|
104
|
+
|
105
|
+
.select2-close-mask {
|
106
|
+
border: 0;
|
107
|
+
margin: 0;
|
108
|
+
padding: 0;
|
109
|
+
display: block;
|
110
|
+
position: fixed;
|
111
|
+
left: 0;
|
112
|
+
top: 0;
|
113
|
+
min-height: 100%;
|
114
|
+
min-width: 100%;
|
115
|
+
height: auto;
|
116
|
+
width: auto;
|
117
|
+
opacity: 0;
|
118
|
+
z-index: 99;
|
119
|
+
background-color: #fff;
|
120
|
+
filter: alpha(opacity=0); }
|
121
|
+
|
122
|
+
.select2-hidden-accessible {
|
123
|
+
border: 0 !important;
|
124
|
+
clip: rect(0 0 0 0) !important;
|
125
|
+
-webkit-clip-path: inset(50%) !important;
|
126
|
+
clip-path: inset(50%) !important;
|
127
|
+
height: 1px !important;
|
128
|
+
overflow: hidden !important;
|
129
|
+
padding: 0 !important;
|
130
|
+
position: absolute !important;
|
131
|
+
width: 1px !important;
|
132
|
+
white-space: nowrap !important; }
|
133
|
+
|
134
|
+
.select2-container--default .select2-selection--single {
|
135
|
+
background-color: #fff;
|
136
|
+
border: 1px solid #aaa;
|
137
|
+
border-radius: 4px; }
|
138
|
+
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
139
|
+
color: #444;
|
140
|
+
line-height: 28px; }
|
141
|
+
.select2-container--default .select2-selection--single .select2-selection__clear {
|
142
|
+
cursor: pointer;
|
143
|
+
float: right;
|
144
|
+
font-weight: bold;
|
145
|
+
height: 26px;
|
146
|
+
margin-right: 20px;
|
147
|
+
padding-right: 0px; }
|
148
|
+
.select2-container--default .select2-selection--single .select2-selection__placeholder {
|
149
|
+
color: #999; }
|
150
|
+
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
151
|
+
height: 26px;
|
152
|
+
position: absolute;
|
153
|
+
top: 1px;
|
154
|
+
right: 1px;
|
155
|
+
width: 20px; }
|
156
|
+
.select2-container--default .select2-selection--single .select2-selection__arrow b {
|
157
|
+
border-color: #888 transparent transparent transparent;
|
158
|
+
border-style: solid;
|
159
|
+
border-width: 5px 4px 0 4px;
|
160
|
+
height: 0;
|
161
|
+
left: 50%;
|
162
|
+
margin-left: -4px;
|
163
|
+
margin-top: -2px;
|
164
|
+
position: absolute;
|
165
|
+
top: 50%;
|
166
|
+
width: 0; }
|
167
|
+
|
168
|
+
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
169
|
+
float: left; }
|
170
|
+
|
171
|
+
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
172
|
+
left: 1px;
|
173
|
+
right: auto; }
|
174
|
+
|
175
|
+
.select2-container--default.select2-container--disabled .select2-selection--single {
|
176
|
+
background-color: #eee;
|
177
|
+
cursor: default; }
|
178
|
+
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
|
179
|
+
display: none; }
|
180
|
+
|
181
|
+
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
182
|
+
border-color: transparent transparent #888 transparent;
|
183
|
+
border-width: 0 4px 5px 4px; }
|
184
|
+
|
185
|
+
.select2-container--default .select2-selection--multiple {
|
186
|
+
background-color: white;
|
187
|
+
border: 1px solid #aaa;
|
188
|
+
border-radius: 4px;
|
189
|
+
cursor: text;
|
190
|
+
padding-bottom: 5px;
|
191
|
+
padding-right: 5px; }
|
192
|
+
.select2-container--default .select2-selection--multiple .select2-selection__clear {
|
193
|
+
cursor: pointer;
|
194
|
+
float: right;
|
195
|
+
font-weight: bold;
|
196
|
+
height: 20px;
|
197
|
+
margin-right: 10px;
|
198
|
+
margin-top: 5px;
|
199
|
+
padding: 1px; }
|
200
|
+
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
201
|
+
background-color: #e4e4e4;
|
202
|
+
border: 1px solid #aaa;
|
203
|
+
border-radius: 4px;
|
204
|
+
display: inline-block;
|
205
|
+
margin-left: 5px;
|
206
|
+
margin-top: 5px;
|
207
|
+
padding: 0; }
|
208
|
+
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
|
209
|
+
cursor: default;
|
210
|
+
padding-left: 2px;
|
211
|
+
padding-right: 5px; }
|
212
|
+
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
213
|
+
background-color: transparent;
|
214
|
+
border: none;
|
215
|
+
border-right: 1px solid #aaa;
|
216
|
+
border-top-left-radius: 4px;
|
217
|
+
border-bottom-left-radius: 4px;
|
218
|
+
color: #999;
|
219
|
+
cursor: pointer;
|
220
|
+
font-size: 1em;
|
221
|
+
font-weight: bold;
|
222
|
+
padding: 0 4px; }
|
223
|
+
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover, .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
|
224
|
+
background-color: #f1f1f1;
|
225
|
+
color: #333;
|
226
|
+
outline: none; }
|
227
|
+
|
228
|
+
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
229
|
+
margin-left: 5px;
|
230
|
+
margin-right: auto; }
|
231
|
+
|
232
|
+
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
|
233
|
+
padding-left: 5px;
|
234
|
+
padding-right: 2px; }
|
235
|
+
|
236
|
+
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
237
|
+
border-left: 1px solid #aaa;
|
238
|
+
border-right: none;
|
239
|
+
border-top-left-radius: 0;
|
240
|
+
border-bottom-left-radius: 0;
|
241
|
+
border-top-right-radius: 4px;
|
242
|
+
border-bottom-right-radius: 4px; }
|
243
|
+
|
244
|
+
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__clear {
|
245
|
+
float: left;
|
246
|
+
margin-left: 10px;
|
247
|
+
margin-right: auto; }
|
248
|
+
|
249
|
+
.select2-container--default.select2-container--focus .select2-selection--multiple {
|
250
|
+
border: solid black 1px;
|
251
|
+
outline: 0; }
|
252
|
+
|
253
|
+
.select2-container--default.select2-container--disabled .select2-selection--multiple {
|
254
|
+
background-color: #eee;
|
255
|
+
cursor: default; }
|
256
|
+
|
257
|
+
.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
|
258
|
+
display: none; }
|
259
|
+
|
260
|
+
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
|
261
|
+
border-top-left-radius: 0;
|
262
|
+
border-top-right-radius: 0; }
|
263
|
+
|
264
|
+
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
|
265
|
+
border-bottom-left-radius: 0;
|
266
|
+
border-bottom-right-radius: 0; }
|
267
|
+
|
268
|
+
.select2-container--default .select2-search--dropdown .select2-search__field {
|
269
|
+
border: 1px solid #aaa; }
|
270
|
+
|
271
|
+
.select2-container--default .select2-search--inline .select2-search__field {
|
272
|
+
background: transparent;
|
273
|
+
border: none;
|
274
|
+
outline: 0;
|
275
|
+
box-shadow: none;
|
276
|
+
-webkit-appearance: textfield; }
|
277
|
+
|
278
|
+
.select2-container--default .select2-results > .select2-results__options {
|
279
|
+
max-height: 200px;
|
280
|
+
overflow-y: auto; }
|
281
|
+
|
282
|
+
.select2-container--default .select2-results__option .select2-results__option {
|
283
|
+
padding-left: 1em; }
|
284
|
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
|
285
|
+
padding-left: 0; }
|
286
|
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
|
287
|
+
margin-left: -1em;
|
288
|
+
padding-left: 2em; }
|
289
|
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
290
|
+
margin-left: -2em;
|
291
|
+
padding-left: 3em; }
|
292
|
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
293
|
+
margin-left: -3em;
|
294
|
+
padding-left: 4em; }
|
295
|
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
296
|
+
margin-left: -4em;
|
297
|
+
padding-left: 5em; }
|
298
|
+
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
|
299
|
+
margin-left: -5em;
|
300
|
+
padding-left: 6em; }
|
301
|
+
|
302
|
+
.select2-container--default .select2-results__option--group {
|
303
|
+
padding: 0; }
|
304
|
+
|
305
|
+
.select2-container--default .select2-results__option--disabled {
|
306
|
+
color: #999; }
|
307
|
+
|
308
|
+
.select2-container--default .select2-results__option--selected {
|
309
|
+
background-color: #ddd; }
|
310
|
+
|
311
|
+
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
|
312
|
+
background-color: #5897fb;
|
313
|
+
color: white; }
|
314
|
+
|
315
|
+
.select2-container--default .select2-results__group {
|
316
|
+
cursor: default;
|
317
|
+
display: block;
|
318
|
+
padding: 6px; }
|
319
|
+
|
320
|
+
.select2-container--classic .select2-selection--single {
|
321
|
+
background-color: #f7f7f7;
|
322
|
+
border: 1px solid #aaa;
|
323
|
+
border-radius: 4px;
|
324
|
+
outline: 0;
|
325
|
+
background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
|
326
|
+
background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
|
327
|
+
background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
|
328
|
+
background-repeat: repeat-x;
|
329
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
330
|
+
.select2-container--classic .select2-selection--single:focus {
|
331
|
+
border: 1px solid #5897fb; }
|
332
|
+
.select2-container--classic .select2-selection--single .select2-selection__rendered {
|
333
|
+
color: #444;
|
334
|
+
line-height: 28px; }
|
335
|
+
.select2-container--classic .select2-selection--single .select2-selection__clear {
|
336
|
+
cursor: pointer;
|
337
|
+
float: right;
|
338
|
+
font-weight: bold;
|
339
|
+
height: 26px;
|
340
|
+
margin-right: 20px; }
|
341
|
+
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
|
342
|
+
color: #999; }
|
343
|
+
.select2-container--classic .select2-selection--single .select2-selection__arrow {
|
344
|
+
background-color: #ddd;
|
345
|
+
border: none;
|
346
|
+
border-left: 1px solid #aaa;
|
347
|
+
border-top-right-radius: 4px;
|
348
|
+
border-bottom-right-radius: 4px;
|
349
|
+
height: 26px;
|
350
|
+
position: absolute;
|
351
|
+
top: 1px;
|
352
|
+
right: 1px;
|
353
|
+
width: 20px;
|
354
|
+
background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
355
|
+
background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
|
356
|
+
background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
|
357
|
+
background-repeat: repeat-x;
|
358
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
|
359
|
+
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
|
360
|
+
border-color: #888 transparent transparent transparent;
|
361
|
+
border-style: solid;
|
362
|
+
border-width: 5px 4px 0 4px;
|
363
|
+
height: 0;
|
364
|
+
left: 50%;
|
365
|
+
margin-left: -4px;
|
366
|
+
margin-top: -2px;
|
367
|
+
position: absolute;
|
368
|
+
top: 50%;
|
369
|
+
width: 0; }
|
370
|
+
|
371
|
+
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
|
372
|
+
float: left; }
|
373
|
+
|
374
|
+
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
|
375
|
+
border: none;
|
376
|
+
border-right: 1px solid #aaa;
|
377
|
+
border-radius: 0;
|
378
|
+
border-top-left-radius: 4px;
|
379
|
+
border-bottom-left-radius: 4px;
|
380
|
+
left: 1px;
|
381
|
+
right: auto; }
|
382
|
+
|
383
|
+
.select2-container--classic.select2-container--open .select2-selection--single {
|
384
|
+
border: 1px solid #5897fb; }
|
385
|
+
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
|
386
|
+
background: transparent;
|
387
|
+
border: none; }
|
388
|
+
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
|
389
|
+
border-color: transparent transparent #888 transparent;
|
390
|
+
border-width: 0 4px 5px 4px; }
|
391
|
+
|
392
|
+
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
|
393
|
+
border-top: none;
|
394
|
+
border-top-left-radius: 0;
|
395
|
+
border-top-right-radius: 0;
|
396
|
+
background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
|
397
|
+
background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
|
398
|
+
background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
|
399
|
+
background-repeat: repeat-x;
|
400
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
|
401
|
+
|
402
|
+
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
|
403
|
+
border-bottom: none;
|
404
|
+
border-bottom-left-radius: 0;
|
405
|
+
border-bottom-right-radius: 0;
|
406
|
+
background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
|
407
|
+
background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
|
408
|
+
background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
|
409
|
+
background-repeat: repeat-x;
|
410
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
|
411
|
+
|
412
|
+
.select2-container--classic .select2-selection--multiple {
|
413
|
+
background-color: white;
|
414
|
+
border: 1px solid #aaa;
|
415
|
+
border-radius: 4px;
|
416
|
+
cursor: text;
|
417
|
+
outline: 0;
|
418
|
+
padding-bottom: 5px;
|
419
|
+
padding-right: 5px; }
|
420
|
+
.select2-container--classic .select2-selection--multiple:focus {
|
421
|
+
border: 1px solid #5897fb; }
|
422
|
+
.select2-container--classic .select2-selection--multiple .select2-selection__clear {
|
423
|
+
display: none; }
|
424
|
+
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
|
425
|
+
background-color: #e4e4e4;
|
426
|
+
border: 1px solid #aaa;
|
427
|
+
border-radius: 4px;
|
428
|
+
display: inline-block;
|
429
|
+
margin-left: 5px;
|
430
|
+
margin-top: 5px;
|
431
|
+
padding: 0; }
|
432
|
+
.select2-container--classic .select2-selection--multiple .select2-selection__choice__display {
|
433
|
+
cursor: default;
|
434
|
+
padding-left: 2px;
|
435
|
+
padding-right: 5px; }
|
436
|
+
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
|
437
|
+
background-color: transparent;
|
438
|
+
border: none;
|
439
|
+
border-top-left-radius: 4px;
|
440
|
+
border-bottom-left-radius: 4px;
|
441
|
+
color: #888;
|
442
|
+
cursor: pointer;
|
443
|
+
font-size: 1em;
|
444
|
+
font-weight: bold;
|
445
|
+
padding: 0 4px; }
|
446
|
+
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
|
447
|
+
color: #555;
|
448
|
+
outline: none; }
|
449
|
+
|
450
|
+
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
|
451
|
+
margin-left: 5px;
|
452
|
+
margin-right: auto; }
|
453
|
+
|
454
|
+
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__display {
|
455
|
+
padding-left: 5px;
|
456
|
+
padding-right: 2px; }
|
457
|
+
|
458
|
+
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
|
459
|
+
border-top-left-radius: 0;
|
460
|
+
border-bottom-left-radius: 0;
|
461
|
+
border-top-right-radius: 4px;
|
462
|
+
border-bottom-right-radius: 4px; }
|
463
|
+
|
464
|
+
.select2-container--classic.select2-container--open .select2-selection--multiple {
|
465
|
+
border: 1px solid #5897fb; }
|
466
|
+
|
467
|
+
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
|
468
|
+
border-top: none;
|
469
|
+
border-top-left-radius: 0;
|
470
|
+
border-top-right-radius: 0; }
|
471
|
+
|
472
|
+
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
|
473
|
+
border-bottom: none;
|
474
|
+
border-bottom-left-radius: 0;
|
475
|
+
border-bottom-right-radius: 0; }
|
476
|
+
|
477
|
+
.select2-container--classic .select2-search--dropdown .select2-search__field {
|
478
|
+
border: 1px solid #aaa;
|
479
|
+
outline: 0; }
|
480
|
+
|
481
|
+
.select2-container--classic .select2-search--inline .select2-search__field {
|
482
|
+
outline: 0;
|
483
|
+
box-shadow: none; }
|
484
|
+
|
485
|
+
.select2-container--classic .select2-dropdown {
|
486
|
+
background-color: white;
|
487
|
+
border: 1px solid transparent; }
|
488
|
+
|
489
|
+
.select2-container--classic .select2-dropdown--above {
|
490
|
+
border-bottom: none; }
|
491
|
+
|
492
|
+
.select2-container--classic .select2-dropdown--below {
|
493
|
+
border-top: none; }
|
494
|
+
|
495
|
+
.select2-container--classic .select2-results > .select2-results__options {
|
496
|
+
max-height: 200px;
|
497
|
+
overflow-y: auto; }
|
498
|
+
|
499
|
+
.select2-container--classic .select2-results__option--group {
|
500
|
+
padding: 0; }
|
501
|
+
|
502
|
+
.select2-container--classic .select2-results__option--disabled {
|
503
|
+
color: grey; }
|
504
|
+
|
505
|
+
.select2-container--classic .select2-results__option--highlighted.select2-results__option--selectable {
|
506
|
+
background-color: #3875d7;
|
507
|
+
color: white; }
|
508
|
+
|
509
|
+
.select2-container--classic .select2-results__group {
|
510
|
+
cursor: default;
|
511
|
+
display: block;
|
512
|
+
padding: 6px; }
|
513
|
+
|
514
|
+
.select2-container--classic.select2-container--open .select2-dropdown {
|
515
|
+
border-color: #5897fb; }
|