egov_utils 0.1.28 → 0.1.29

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c7da53755ac88444b01f30d688b739b577d5721b44d29021692d5bcc11e8255
4
- data.tar.gz: ad69ce1bfbedf93b334e0ca4d730a903d1ebfd69ac14e57197c71b1a7d6c120a
3
+ metadata.gz: 76f73cc93c52978946a11ea12a6e622267f81859023445851340dc288ac038cb
4
+ data.tar.gz: 9a0ccc3458d71118d40d8961acc04fab104c3597865ea546626124f544e5834b
5
5
  SHA512:
6
- metadata.gz: 33a24c4a0825f7fd5358aa0a5c8c11787a7749b86cec4c111fb0ef8b4d15a251dc48f65bd855fd9776990cc37de2c57e96c6f5a0dc3b72e13ce3a40e9b401c2e
7
- data.tar.gz: 8450154b5344d49b996a1725752c997a5f6f77782c0ae528773848cd6450552b8be73de8b0e82b8d77af92be1e91add1c60fda3e4702aa49a3d154d5035685a2
6
+ metadata.gz: 62fef04519f766bf2bfb7cdc2a11776ce42839e73fd9911181522f2a0e84eb3809557cb0072ff87a8b75d15ca316ff7b5df29c0bd75904c7beb3a85546ec0ba9
7
+ data.tar.gz: cecbcd4ea7562fd970c67212a13c3c77061f9c04ab153b7a38f8147cfcfcd63d3bd0a09545a4d821b69c17babb544f5fa003ca5b9b28dac72c3e7c806876ca2d
@@ -13,6 +13,6 @@
13
13
  */
14
14
 
15
15
  @import 'select2/select2';
16
- @import 'select2/select2-bootstrap';
16
+ @import 'egov_utils/select2-bootstrap';
17
17
 
18
18
  @import "cookies_eu";
@@ -0,0 +1,607 @@
1
+
2
+ /*! Select2 Bootstrap Theme v0.1.0-beta.7 | MIT License | github.com/select2/select2-bootstrap-theme */
3
+ .select2-container--bootstrap {
4
+ display: block;
5
+ /*------------------------------------*\
6
+ #COMMON STYLES
7
+ \*------------------------------------*/
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
+ /**
16
+ * Adjust Select2's choices hover and selected styles to match
17
+ * Bootstrap 3's default dropdown styles.
18
+ *
19
+ * @see http://getbootstrap.com/components/#dropdowns
20
+ */
21
+ /**
22
+ * Clear the selection.
23
+ */
24
+ /**
25
+ * Address disabled Select2 styles.
26
+ *
27
+ * @see https://select2.github.io/examples.html#disabled
28
+ * @see http://getbootstrap.com/css/#forms-control-disabled
29
+ */
30
+ /*------------------------------------*\
31
+ #DROPDOWN
32
+ \*------------------------------------*/
33
+ /**
34
+ * Dropdown border color and box-shadow.
35
+ */
36
+ /**
37
+ * Limit the dropdown height.
38
+ */
39
+ /*------------------------------------*\
40
+ #SINGLE SELECT2
41
+ \*------------------------------------*/
42
+ /*------------------------------------*\
43
+ #MULTIPLE SELECT2
44
+ \*------------------------------------*/
45
+ /**
46
+ * Address Bootstrap control sizing classes
47
+ *
48
+ * 1. Reset Bootstrap defaults.
49
+ * 2. Adjust the dropdown arrow button icon position.
50
+ *
51
+ * @see http://getbootstrap.com/css/#forms-control-sizes
52
+ */
53
+ /* 1 */
54
+ /*------------------------------------*\
55
+ #RTL SUPPORT
56
+ \*------------------------------------*/
57
+ }
58
+ .select2-container--bootstrap .select2-selection {
59
+ display: block;
60
+ width: 100%;
61
+ line-height: $input-btn-line-height;
62
+ color: $input-color;
63
+ padding: $input-btn-padding-y $input-btn-padding-x;
64
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
65
+ background-color: $input-bg;
66
+ background-color: $input-bg;
67
+ background-clip: padding-box;
68
+ border: $input-btn-border-width solid $input-border-color;
69
+ }
70
+ .select2-container--bootstrap .select2-selection.form-control {
71
+ @include border-radius($input-border-radius);
72
+ @include box-shadow($input-box-shadow);
73
+ @include transition($input-transition);
74
+ }
75
+ .select2-container--bootstrap .select2-search--dropdown .select2-search__field {
76
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
77
+ background-color: $input-bg;
78
+ border: $input-btn-border-width solid $input-border-color;
79
+ @include border-radius($input-border-radius);
80
+ color: $input-color;
81
+ font-size: 90%;
82
+ }
83
+ .select2-container--bootstrap .select2-search__field {
84
+ outline: 0;
85
+ /* Firefox 18- */
86
+ /**
87
+ * Firefox 19+
88
+ *
89
+ * @see http://stackoverflow.com/questions/24236240/color-for-styled-placeholder-text-is-muted-in-firefox
90
+ */
91
+ }
92
+ .select2-container--bootstrap .select2-search__field::-webkit-input-placeholder {
93
+ color: #999;
94
+ }
95
+ .select2-container--bootstrap .select2-search__field:-moz-placeholder {
96
+ color: #999;
97
+ }
98
+ .select2-container--bootstrap .select2-search__field::-moz-placeholder {
99
+ color: #999;
100
+ opacity: 1;
101
+ }
102
+ .select2-container--bootstrap .select2-search__field:-ms-input-placeholder {
103
+ color: #999;
104
+ }
105
+ .select2-container--bootstrap .select2-results__option {
106
+ /**
107
+ * Disabled results.
108
+ *
109
+ * @see https://select2.github.io/examples.html#disabled-results
110
+ */
111
+ /**
112
+ * Hover state.
113
+ */
114
+ /**
115
+ * Selected state.
116
+ */
117
+ }
118
+ .select2-container--bootstrap .select2-results__option[role=group] {
119
+ padding: 0;
120
+ }
121
+ .select2-container--bootstrap .select2-results__option[aria-disabled=true] {
122
+ color: #777777;
123
+ cursor: not-allowed;
124
+ }
125
+ .select2-container--bootstrap .select2-results__option[aria-selected=true] {
126
+ background-color: #f5f5f5;
127
+ color: #262626;
128
+ }
129
+ .select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
130
+ background-color: #337ab7;
131
+ color: #fff;
132
+ }
133
+ .select2-container--bootstrap .select2-results__option .select2-results__option {
134
+ padding: 6px 12px;
135
+ }
136
+ .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__group {
137
+ padding-left: 0;
138
+ }
139
+ .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option {
140
+ margin-left: -12px;
141
+ padding-left: 24px;
142
+ }
143
+ .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
144
+ margin-left: -24px;
145
+ padding-left: 36px;
146
+ }
147
+ .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
148
+ margin-left: -36px;
149
+ padding-left: 48px;
150
+ }
151
+ .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
152
+ margin-left: -48px;
153
+ padding-left: 60px;
154
+ }
155
+ .select2-container--bootstrap .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
156
+ margin-left: -60px;
157
+ padding-left: 72px;
158
+ }
159
+ .select2-container--bootstrap .select2-results__group {
160
+ color: #777777;
161
+ display: block;
162
+ padding: 6px 12px;
163
+ font-size: 12px;
164
+ line-height: 1.428571429;
165
+ white-space: nowrap;
166
+ }
167
+ .select2-container--bootstrap.select2-container--focus .select2-selection, .select2-container--bootstrap.select2-container--open .select2-selection {
168
+ color: $input-focus-color;
169
+ background-color: $input-focus-bg;
170
+ border-color: $input-focus-border-color;
171
+ outline: none;
172
+ // Avoid using mixin so we can pass custom focus shadow properly
173
+ @if $enable-shadows {
174
+ box-shadow: $input-box-shadow, $input-btn-focus-box-shadow;
175
+ } @else {
176
+ box-shadow: $input-btn-focus-box-shadow;
177
+ }
178
+ }
179
+ .select2-container--bootstrap.select2-container--open {
180
+ /**
181
+ * Make the dropdown arrow point up while the dropdown is visible.
182
+ */
183
+ /**
184
+ * Handle border radii of the container when the dropdown is showing.
185
+ */
186
+ }
187
+ .select2-container--bootstrap.select2-container--open .select2-selection .select2-selection__arrow b {
188
+ border-color: transparent transparent #999 transparent;
189
+ border-width: 0 4px 4px 4px;
190
+ }
191
+ .select2-container--bootstrap.select2-container--open.select2-container--below .select2-selection {
192
+ border-bottom-right-radius: 0;
193
+ border-bottom-left-radius: 0;
194
+ border-bottom-color: transparent;
195
+ }
196
+ .select2-container--bootstrap.select2-container--open.select2-container--above .select2-selection {
197
+ border-top-right-radius: 0;
198
+ border-top-left-radius: 0;
199
+ border-top-color: transparent;
200
+ }
201
+ .select2-container--bootstrap .select2-selection__clear {
202
+ color: #999;
203
+ cursor: pointer;
204
+ float: right;
205
+ font-weight: bold;
206
+ margin-right: 10px;
207
+ }
208
+ .select2-container--bootstrap .select2-selection__clear:hover {
209
+ color: #333;
210
+ }
211
+ .select2-container--bootstrap.select2-container--disabled .select2-selection {
212
+ border-color: #ccc;
213
+ box-shadow: none;
214
+ }
215
+ .select2-container--bootstrap.select2-container--disabled .select2-selection,
216
+ .select2-container--bootstrap.select2-container--disabled .select2-search__field {
217
+ cursor: not-allowed;
218
+ }
219
+ .select2-container--bootstrap.select2-container--disabled .select2-selection,
220
+ .select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice {
221
+ background-color: $input-disabled-bg;
222
+ }
223
+ .select2-container--bootstrap.select2-container--disabled .select2-selection__clear,
224
+ .select2-container--bootstrap.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove {
225
+ display: none;
226
+ }
227
+ .select2-container--bootstrap .select2-dropdown {
228
+ box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
229
+ border-color: $input-border-color;
230
+ overflow-x: hidden;
231
+ margin-top: -1px;
232
+ }
233
+ .select2-container--bootstrap .select2-dropdown--above {
234
+ margin-top: 1px;
235
+ }
236
+ .select2-container--bootstrap .select2-results > .select2-results__options {
237
+ max-height: 200px;
238
+ overflow-y: auto;
239
+ }
240
+ .select2-container--bootstrap .select2-selection--single {
241
+ height: 34px;
242
+ line-height: 1.428571429;
243
+ padding: 6px 24px 6px 12px;
244
+ /**
245
+ * Adjust the single Select2's dropdown arrow button appearance.
246
+ */
247
+ }
248
+ .select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
249
+ position: absolute;
250
+ bottom: 0;
251
+ right: 12px;
252
+ top: 0;
253
+ width: 4px;
254
+ }
255
+ .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
256
+ border-color: #999 transparent transparent transparent;
257
+ border-style: solid;
258
+ border-width: 4px 4px 0 4px;
259
+ height: 0;
260
+ left: 0;
261
+ margin-left: -4px;
262
+ margin-top: -2px;
263
+ position: absolute;
264
+ top: 50%;
265
+ width: 0;
266
+ }
267
+ .select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
268
+ color: #555555;
269
+ padding: 0;
270
+ }
271
+ .select2-container--bootstrap .select2-selection--single .select2-selection__placeholder {
272
+ color: #999;
273
+ }
274
+ .select2-container--bootstrap .select2-selection--multiple {
275
+ min-height: 34px;
276
+ padding: 0;
277
+ height: auto;
278
+ /**
279
+ * Make Multi Select2's choices match Bootstrap 3's default button styles.
280
+ */
281
+ /**
282
+ * Minus 2px borders.
283
+ */
284
+ /**
285
+ * Clear the selection.
286
+ */
287
+ }
288
+ .select2-container--bootstrap .select2-selection--multiple .select2-selection__rendered {
289
+ // box-sizing: border-box;
290
+ display: block;
291
+ line-height: 1.428571429;
292
+ list-style: none;
293
+ margin: 0;
294
+ overflow: hidden;
295
+ padding: 0;
296
+ width: 100%;
297
+ text-overflow: ellipsis;
298
+ white-space: nowrap;
299
+ }
300
+ .select2-container--bootstrap .select2-selection--multiple .select2-selection__placeholder {
301
+ color: #999;
302
+ float: left;
303
+ margin-top: 5px;
304
+ }
305
+ .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
306
+ color: #555555;
307
+ background: $input-bg;
308
+ border: $input-btn-border-width solid $input-border-color;
309
+ @include border-radius($badge-border-radius);
310
+ cursor: default;
311
+ float: left;
312
+ margin: 5px 0 0 6px;
313
+ padding: $badge-padding-y $badge-padding-x;
314
+ font-size: $badge-font-size;
315
+ }
316
+ .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
317
+ background: transparent;
318
+ padding: 0 12px;
319
+ height: 32px;
320
+ line-height: 1.428571429;
321
+ margin-top: 0;
322
+ min-width: 5em;
323
+ }
324
+ .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove {
325
+ color: #999;
326
+ cursor: pointer;
327
+ display: inline-block;
328
+ font-weight: bold;
329
+ margin-right: 3px;
330
+ }
331
+ .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice__remove:hover {
332
+ color: #333;
333
+ }
334
+ .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
335
+ margin-top: 6px;
336
+ }
337
+ .select2-container--bootstrap .select2-selection--single.input-sm, .input-group-sm .select2-container--bootstrap .select2-selection--single, .form-group-sm .select2-container--bootstrap .select2-selection--single {
338
+ border-radius: $input-border-radius-sm;
339
+ font-size: 12px;
340
+ height: 30px;
341
+ line-height: 1.5;
342
+ padding: 5px 22px 5px 10px;
343
+ /* 2 */
344
+ }
345
+ .select2-container--bootstrap .select2-selection--single.input-sm .select2-selection__arrow b, .input-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b, .form-group-sm .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
346
+ margin-left: -5px;
347
+ }
348
+ .select2-container--bootstrap .select2-selection--multiple.input-sm, .input-group-sm .select2-container--bootstrap .select2-selection--multiple, .form-group-sm .select2-container--bootstrap .select2-selection--multiple {
349
+ min-height: 30px;
350
+ border-radius: $input-border-radius-sm;
351
+ }
352
+ .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__choice, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice, .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
353
+ font-size: 12px;
354
+ line-height: 1.5;
355
+ margin: 4px 0 0 5px;
356
+ padding: 0 5px;
357
+ }
358
+ .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-search--inline .select2-search__field, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field, .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
359
+ padding: 0 10px;
360
+ font-size: 12px;
361
+ height: 28px;
362
+ line-height: 1.5;
363
+ }
364
+ .select2-container--bootstrap .select2-selection--multiple.input-sm .select2-selection__clear, .input-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear, .form-group-sm .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
365
+ margin-top: 5px;
366
+ }
367
+ .select2-container--bootstrap .select2-selection--single.input-lg, .input-group-lg .select2-container--bootstrap .select2-selection--single, .form-group-lg .select2-container--bootstrap .select2-selection--single {
368
+ border-radius: $input-border-radius-lg;
369
+ font-size: 18px;
370
+ height: 46px;
371
+ line-height: 1.3333333;
372
+ padding: 10px 31px 10px 16px;
373
+ /* 1 */
374
+ }
375
+ .select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow, .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow, .form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
376
+ width: 5px;
377
+ }
378
+ .select2-container--bootstrap .select2-selection--single.input-lg .select2-selection__arrow b, .input-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b, .form-group-lg .select2-container--bootstrap .select2-selection--single .select2-selection__arrow b {
379
+ border-width: 5px 5px 0 5px;
380
+ margin-left: -5px;
381
+ margin-left: -10px;
382
+ margin-top: -2.5px;
383
+ }
384
+ .select2-container--bootstrap .select2-selection--multiple.input-lg, .input-group-lg .select2-container--bootstrap .select2-selection--multiple, .form-group-lg .select2-container--bootstrap .select2-selection--multiple {
385
+ min-height: 46px;
386
+ border-radius: $input-border-radius-lg;
387
+ }
388
+ .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__choice, .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice, .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__choice {
389
+ font-size: 18px;
390
+ line-height: 1.3333333;
391
+ border-radius: 4px;
392
+ margin: 9px 0 0 8px;
393
+ padding: 0 10px;
394
+ }
395
+ .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-search--inline .select2-search__field, .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field, .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-search--inline .select2-search__field {
396
+ padding: 0 16px;
397
+ font-size: 18px;
398
+ height: 44px;
399
+ line-height: 1.3333333;
400
+ }
401
+ .select2-container--bootstrap .select2-selection--multiple.input-lg .select2-selection__clear, .input-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear, .form-group-lg .select2-container--bootstrap .select2-selection--multiple .select2-selection__clear {
402
+ margin-top: 10px;
403
+ }
404
+ .select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single {
405
+ /**
406
+ * Make the dropdown arrow point up while the dropdown is visible.
407
+ */
408
+ }
409
+ .select2-container--bootstrap .select2-selection.input-lg.select2-container--open .select2-selection--single .select2-selection__arrow b {
410
+ border-color: transparent transparent #999 transparent;
411
+ border-width: 0 5px 5px 5px;
412
+ }
413
+ .input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single {
414
+ /**
415
+ * Make the dropdown arrow point up while the dropdown is visible.
416
+ */
417
+ }
418
+ .input-group-lg .select2-container--bootstrap .select2-selection.select2-container--open .select2-selection--single .select2-selection__arrow b {
419
+ border-color: transparent transparent #999 transparent;
420
+ border-width: 0 5px 5px 5px;
421
+ }
422
+ .select2-container--bootstrap[dir="rtl"] {
423
+ /**
424
+ * Single Select2
425
+ *
426
+ * 1. Makes sure that .select2-selection__placeholder is positioned
427
+ * correctly.
428
+ */
429
+ /**
430
+ * Multiple Select2
431
+ */
432
+ }
433
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--single {
434
+ padding-left: 24px;
435
+ padding-right: 12px;
436
+ }
437
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__rendered {
438
+ padding-right: 0;
439
+ padding-left: 0;
440
+ text-align: right;
441
+ /* 1 */
442
+ }
443
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__clear {
444
+ float: left;
445
+ }
446
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__arrow {
447
+ left: 12px;
448
+ right: auto;
449
+ }
450
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--single .select2-selection__arrow b {
451
+ margin-left: 0;
452
+ }
453
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice,
454
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder {
455
+ float: right;
456
+ }
457
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
458
+ margin-left: 0;
459
+ margin-right: 6px;
460
+ }
461
+ .select2-container--bootstrap[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
462
+ margin-left: 2px;
463
+ margin-right: auto;
464
+ }
465
+
466
+ /*------------------------------------*\
467
+ #ADDITIONAL GOODIES
468
+ \*------------------------------------*/
469
+ /**
470
+ * Address Bootstrap's validation states
471
+ *
472
+ * If a Select2 widget parent has one of Bootstrap's validation state modifier
473
+ * classes, adjust Select2's border colors and focus states accordingly.
474
+ * You may apply said classes to the Select2 dropdown (body > .select2-container)
475
+ * via JavaScript match Bootstraps' to make its styles match.
476
+ *
477
+ * @see http://getbootstrap.com/css/#forms-control-validation
478
+ */
479
+ .has-warning .select2-dropdown,
480
+ .has-warning .select2-selection {
481
+ border-color: #8a6d3b;
482
+ }
483
+ .has-warning .select2-container--focus .select2-selection,
484
+ .has-warning .select2-container--open .select2-selection {
485
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #c0a16b;
486
+ border-color: #66512c;
487
+ }
488
+ .has-warning.select2-drop-active {
489
+ border-color: #66512c;
490
+ }
491
+ .has-warning.select2-drop-active.select2-drop.select2-drop-above {
492
+ border-top-color: #66512c;
493
+ }
494
+
495
+ .has-error .select2-dropdown,
496
+ .has-error .select2-selection {
497
+ border-color: #a94442;
498
+ }
499
+ .has-error .select2-container--focus .select2-selection,
500
+ .has-error .select2-container--open .select2-selection {
501
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ce8483;
502
+ border-color: #843534;
503
+ }
504
+ .has-error.select2-drop-active {
505
+ border-color: #843534;
506
+ }
507
+ .has-error.select2-drop-active.select2-drop.select2-drop-above {
508
+ border-top-color: #843534;
509
+ }
510
+
511
+ .has-success .select2-dropdown,
512
+ .has-success .select2-selection {
513
+ border-color: #3c763d;
514
+ }
515
+ .has-success .select2-container--focus .select2-selection,
516
+ .has-success .select2-container--open .select2-selection {
517
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #67b168;
518
+ border-color: #2b542c;
519
+ }
520
+ .has-success.select2-drop-active {
521
+ border-color: #2b542c;
522
+ }
523
+ .has-success.select2-drop-active.select2-drop.select2-drop-above {
524
+ border-top-color: #2b542c;
525
+ }
526
+
527
+ /**
528
+ * Select2 widgets in Bootstrap Input Groups
529
+ *
530
+ * When Select2 widgets are combined with other elements using Bootstraps
531
+ * "Input Group" component, we don't want specific edges of the Select2
532
+ * container to have a border-radius.
533
+ *
534
+ * Use .select2-bootstrap-prepend and .select2-bootstrap-append on
535
+ * a Bootstrap 3 .input-group to let the contained Select2 widget know which
536
+ * edges should not be rounded as they are directly followed by another element.
537
+ *
538
+ * @see http://getbootstrap.com/components/#input-groups
539
+ */
540
+ /**
541
+ * Mimick Bootstraps .input-group .form-control styles.
542
+ *
543
+ * @see https://github.com/twbs/bootstrap/blob/master/less/input-groups.less
544
+ */
545
+ .input-group .select2-container--bootstrap {
546
+ display: table;
547
+ table-layout: fixed;
548
+ position: relative;
549
+ z-index: 2;
550
+ float: left;
551
+ width: 100%;
552
+ margin-bottom: 0;
553
+ /**
554
+ * Adjust z-index like Bootstrap does to show the focus-box-shadow
555
+ * above appended buttons in .input-group and .form-group.
556
+ */
557
+ }
558
+ .input-group .select2-container--bootstrap.select2-container--open, .input-group .select2-container--bootstrap.select2-container--focus {
559
+ z-index: 3;
560
+ }
561
+
562
+ .input-group.select2-bootstrap-prepend .select2-container--bootstrap .select2-selection {
563
+ border-bottom-left-radius: 0;
564
+ border-top-left-radius: 0;
565
+ }
566
+
567
+ .input-group.select2-bootstrap-append .select2-container--bootstrap .select2-selection {
568
+ border-bottom-right-radius: 0;
569
+ border-top-right-radius: 0;
570
+ }
571
+
572
+ /**
573
+ * Adjust alignment of Bootstrap buttons in Bootstrap Input Groups to address
574
+ * Multi Select2's height which - depending on how many elements have been selected -
575
+ * may grow taller than its initial size.
576
+ *
577
+ * @see http://getbootstrap.com/components/#input-groups
578
+ */
579
+ .select2-bootstrap-append .select2-container--bootstrap,
580
+ .select2-bootstrap-append .input-group-btn,
581
+ .select2-bootstrap-append .input-group-btn .btn,
582
+ .select2-bootstrap-prepend .select2-container--bootstrap,
583
+ .select2-bootstrap-prepend .input-group-btn,
584
+ .select2-bootstrap-prepend .input-group-btn .btn {
585
+ vertical-align: top;
586
+ }
587
+
588
+ /**
589
+ * Temporary fix for https://github.com/select2/select2-bootstrap-theme/issues/9
590
+ *
591
+ * Provides `!important` for certain properties of the class applied to the
592
+ * original `<select>` element to hide it.
593
+ *
594
+ * @see https://github.com/select2/select2/pull/3301
595
+ * @see https://github.com/fk/select2/commit/31830c7b32cb3d8e1b12d5b434dee40a6e753ada
596
+ */
597
+ .form-control.select2-hidden-accessible {
598
+ position: absolute !important;
599
+ width: 1px !important;
600
+ }
601
+
602
+ /**
603
+ * Display override for inline forms
604
+ */
605
+ .form-inline .select2-container--bootstrap {
606
+ display: inline-block;
607
+ }
@@ -21,5 +21,20 @@ module EgovUtils
21
21
  res
22
22
  end
23
23
 
24
+ def google_analytics_code
25
+ end
26
+
27
+ def google_analytics_snippet
28
+ javascript_tag(<<-END_JS) if google_analytics_code
29
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
30
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
31
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
32
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
33
+
34
+ ga('create', '#{google_analytics_code}', 'auto');
35
+ ga('send', 'pageview');
36
+ END_JS
37
+ end
38
+
24
39
  end
25
40
  end
@@ -1,3 +1,3 @@
1
1
  module EgovUtils
2
- VERSION = '0.1.28'
2
+ VERSION = '0.1.29'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: egov_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 0.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-18 00:00:00.000000000 Z
11
+ date: 2017-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -354,6 +354,7 @@ files:
354
354
  - app/assets/stylesheets/egov_utils/application.scss
355
355
  - app/assets/stylesheets/egov_utils/groups.css
356
356
  - app/assets/stylesheets/egov_utils/roles.css
357
+ - app/assets/stylesheets/egov_utils/select2-bootstrap.scss
357
358
  - app/assets/stylesheets/egov_utils/users.css
358
359
  - app/attributes/egov_utils/all_role_names.rb
359
360
  - app/attributes/egov_utils/district.rb