c80_contest 0.1.1

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.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/.rspec +2 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +5 -0
  7. data/CODE_OF_CONDUCT.md +74 -0
  8. data/Gemfile +4 -0
  9. data/LICENSE.txt +21 -0
  10. data/MIT-LICENSE +20 -0
  11. data/README.md +32 -0
  12. data/README.rdoc +3 -0
  13. data/Rakefile +23 -0
  14. data/app/admin/c80_contest/bids.rb +28 -0
  15. data/app/assets/images/c80_contest/.keep +0 -0
  16. data/app/assets/images/loading-sm.gif +0 -0
  17. data/app/assets/images/loading.gif +0 -0
  18. data/app/assets/javascripts/c80_contest/frontend/ajax_bid_form.js +157 -0
  19. data/app/assets/javascripts/c80_contest.js.coffee +2 -0
  20. data/app/assets/javascripts/lib/fileinput/fileinput.js +3833 -0
  21. data/app/assets/javascripts/lib/fileinput/themes/explorer/theme.js +58 -0
  22. data/app/assets/javascripts/lib/fileinput/themes/fa/theme.js +45 -0
  23. data/app/assets/javascripts/lib/fileinput/themes/gly/theme.js +45 -0
  24. data/app/assets/stylesheets/c80_contest/backend/bid_page.scss +22 -0
  25. data/app/assets/stylesheets/c80_contest/frontend/foo.scss +0 -0
  26. data/app/assets/stylesheets/c80_contest.scss +3 -0
  27. data/app/assets/stylesheets/c80_contest_active_admin.scss +2 -0
  28. data/app/assets/stylesheets/lib/fileinput/fileinput.scss +481 -0
  29. data/app/assets/stylesheets/lib/fileinput/themes/explorer/theme.scss +211 -0
  30. data/app/controllers/c80_contest/application_controller.rb +5 -0
  31. data/app/controllers/c80_contest/bid_controller.rb +26 -0
  32. data/app/controllers/c80_contest/site_controller.rb +13 -0
  33. data/app/helpers/c80_contest/application_helper.rb +26 -0
  34. data/app/models/c80_contest/bid.rb +17 -0
  35. data/app/models/c80_contest/setting.rb +53 -0
  36. data/app/uploaders/c80_contest/bid_photo_uploader.rb +32 -0
  37. data/app/views/c80_contest/bid/make_bid.js.erb +4 -0
  38. data/app/views/c80_contest/shared/_bid_form.html.erb +65 -0
  39. data/app/views/c80_contest/shared/_ok_message.html.erb +16 -0
  40. data/app/views/c80_contest/site/give_me_form.js.erb +4 -0
  41. data/app/views/layouts/c80_contest/application.html.erb +14 -0
  42. data/bin/console +14 -0
  43. data/bin/rails +12 -0
  44. data/bin/setup +8 -0
  45. data/c80_contest.gemspec +46 -0
  46. data/config/routes.rb +4 -0
  47. data/create_base.rb +25 -0
  48. data/db/migrate/20170510124400_create_c80_contest_bids.rb +12 -0
  49. data/db/migrate/20170511145501_create_c80_contest_settings.rb +19 -0
  50. data/db/seeds/c80_contest_fill_settings.rb +22 -0
  51. data/lib/c80_contest/engine.rb +20 -0
  52. data/lib/c80_contest/version.rb +3 -0
  53. data/lib/c80_contest.rb +8 -0
  54. data/lib/tasks/c80_contest_tasks.rake +4 -0
  55. metadata +335 -0
@@ -0,0 +1,58 @@
1
+ /*!
2
+ * bootstrap-fileinput v4.4.0
3
+ * http://plugins.krajee.com/file-input
4
+ *
5
+ * Krajee Explorer theme configuration for bootstrap-fileinput. Load this theme file after loading `fileinput.js`.
6
+ *
7
+ * Author: Kartik Visweswaran
8
+ * Copyright: 2014 - 2017, Kartik Visweswaran, Krajee.com
9
+ *
10
+ * Licensed under the BSD 3-Clause
11
+ * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
12
+ */
13
+ (function ($) {
14
+ "use strict";
15
+ var teTagBef = '<tr class="file-preview-frame {frameClass}" id="{previewId}" data-fileindex="{fileindex}"' +
16
+ ' data-template="{template}"', teContent = '<td class="kv-file-content">\n';
17
+ $.fn.fileinputThemes.explorer = {
18
+ layoutTemplates: {
19
+ preview: '<div class="file-preview {class}">\n' +
20
+ ' {close}' +
21
+ ' <div class="{dropClass}">\n' +
22
+ ' <table class="table table-bordered table-hover"><tbody class="file-preview-thumbnails">\n' +
23
+ ' </tbody></table>\n' +
24
+ ' <div class="clearfix"></div>' +
25
+ ' <div class="file-preview-status text-center text-success"></div>\n' +
26
+ ' <div class="kv-fileinput-error"></div>\n' +
27
+ ' </div>\n' +
28
+ '</div>',
29
+ footer: '<td class="file-details-cell"><div class="explorer-caption" title="{caption}">{caption}</div> ' +
30
+ '{size}{progress}</td><td class="file-actions-cell">{indicator} {actions}</td>',
31
+ actions: '{drag}\n' +
32
+ '<div class="file-actions">\n' +
33
+ ' <div class="file-footer-buttons">\n' +
34
+ ' {upload} {delete} {zoom} {other} ' +
35
+ ' </div>\n' +
36
+ '</div>',
37
+ zoomCache: '<tr style="display:none" class="kv-zoom-cache-theme"><td>' +
38
+ '<table class="kv-zoom-cache">{zoomContent}</table></td></tr>'
39
+ },
40
+ previewMarkupTags: {
41
+ tagBefore1: teTagBef + '>' + teContent,
42
+ tagBefore2: teTagBef + ' title="{caption}">' + teContent,
43
+ tagAfter: '</td>\n{footer}</tr>\n'
44
+ },
45
+ previewSettings: {
46
+ image: {height: "60px"},
47
+ html: {width: "100px", height: "60px"},
48
+ text: {width: "100px", height: "60px"},
49
+ video: {width: "auto", height: "60px"},
50
+ audio: {width: "auto", height: "60px"},
51
+ flash: {width: "100%", height: "60px"},
52
+ object: {width: "100%", height: "60px"},
53
+ pdf: {width: "100px", height: "60px"},
54
+ other: {width: "100%", height: "60px"}
55
+ },
56
+ frameClass: 'explorer-frame'
57
+ };
58
+ })(window.jQuery);
@@ -0,0 +1,45 @@
1
+ /*!
2
+ * bootstrap-fileinput v4.4.0
3
+ * http://plugins.krajee.com/file-input
4
+ *
5
+ * Font Awesome icon theme configuration for bootstrap-fileinput. Requires font awesome assets to be loaded.
6
+ *
7
+ * Author: Kartik Visweswaran
8
+ * Copyright: 2014 - 2017, Kartik Visweswaran, Krajee.com
9
+ *
10
+ * Licensed under the BSD 3-Clause
11
+ * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
12
+ */
13
+ (function ($) {
14
+ "use strict";
15
+
16
+ $.fn.fileinputThemes.fa = {
17
+ fileActionSettings: {
18
+ removeIcon: '<i class="fa fa-trash text-danger"></i>',
19
+ uploadIcon: '<i class="fa fa-upload text-info"></i>',
20
+ zoomIcon: '<i class="fa fa-search-plus"></i>',
21
+ dragIcon: '<i class="fa fa-bars"></i>',
22
+ indicatorNew: '<i class="fa fa-hand-o-down text-warning"></i>',
23
+ indicatorSuccess: '<i class="fa fa-check-circle text-success"></i>',
24
+ indicatorError: '<i class="fa fa-exclamation-circle text-danger"></i>',
25
+ indicatorLoading: '<i class="fa fa-hand-o-up text-muted"></i>'
26
+ },
27
+ layoutTemplates: {
28
+ fileIcon: '<i class="fa fa-file kv-caption-icon"></i> '
29
+ },
30
+ previewZoomButtonIcons: {
31
+ prev: '<i class="fa fa-caret-left fa-lg"></i>',
32
+ next: '<i class="fa fa-caret-right fa-lg"></i>',
33
+ toggleheader: '<i class="fa fa-arrows-v"></i>',
34
+ fullscreen: '<i class="fa fa-arrows-alt"></i>',
35
+ borderless: '<i class="fa fa-external-link"></i>',
36
+ close: '<i class="fa fa-remove"></i>'
37
+ },
38
+ previewFileIcon: '<i class="fa fa-file"></i>',
39
+ browseIcon: '<i class="fa fa-folder-open"></i>',
40
+ removeIcon: '<i class="fa fa-trash"></i>',
41
+ cancelIcon: '<i class="fa fa-ban"></i>',
42
+ uploadIcon: '<i class="fa fa-upload"></i>',
43
+ msgValidationErrorIcon: '<i class="fa fa-exclamation-circle"></i> '
44
+ };
45
+ })(window.jQuery);
@@ -0,0 +1,45 @@
1
+ /*!
2
+ * bootstrap-fileinput v4.4.0
3
+ * http://plugins.krajee.com/file-input
4
+ *
5
+ * Glyphicon (default) theme configuration for bootstrap-fileinput.
6
+ *
7
+ * Author: Kartik Visweswaran
8
+ * Copyright: 2014 - 2017, Kartik Visweswaran, Krajee.com
9
+ *
10
+ * Licensed under the BSD 3-Clause
11
+ * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
12
+ */
13
+ (function ($) {
14
+ "use strict";
15
+
16
+ $.fn.fileinputThemes.gly = {
17
+ fileActionSettings: {
18
+ removeIcon: '<i class="glyphicon glyphicon-trash text-danger"></i>',
19
+ uploadIcon: '<i class="glyphicon glyphicon-upload text-info"></i>',
20
+ zoomIcon: '<i class="glyphicon glyphicon-zoom-in"></i>',
21
+ dragIcon: '<i class="glyphicon glyphicon-menu-hamburger"></i>',
22
+ indicatorNew: '<i class="glyphicon glyphicon-hand-down text-warning"></i>',
23
+ indicatorSuccess: '<i class="glyphicon glyphicon-ok-sign text-success"></i>',
24
+ indicatorError: '<i class="glyphicon glyphicon-exclamation-sign text-danger"></i>',
25
+ indicatorLoading: '<i class="glyphicon glyphicon-hand-up text-muted"></i>'
26
+ },
27
+ layoutTemplates: {
28
+ fileIcon: '<i class="glyphicon glyphicon-file kv-caption-icon"></i>'
29
+ },
30
+ previewZoomButtonIcons: {
31
+ prev: '<i class="glyphicon glyphicon-triangle-left"></i>',
32
+ next: '<i class="glyphicon glyphicon-triangle-right"></i>',
33
+ toggleheader: '<i class="glyphicon glyphicon-resize-vertical"></i>',
34
+ fullscreen: '<i class="glyphicon glyphicon-fullscreen"></i>',
35
+ borderless: '<i class="glyphicon glyphicon-resize-full"></i>',
36
+ close: '<i class="glyphicon glyphicon-remove"></i>'
37
+ },
38
+ previewFileIcon: '<i class="glyphicon glyphicon-file"></i>',
39
+ browseIcon: '<i class="glyphicon glyphicon-folder-open"></i>&nbsp;',
40
+ removeIcon: '<i class="glyphicon glyphicon-trash"></i>',
41
+ cancelIcon: '<i class="glyphicon glyphicon-ban-circle"></i>',
42
+ uploadIcon: '<i class="glyphicon glyphicon-upload"></i>',
43
+ msgValidationErrorIcon: '<i class="glyphicon glyphicon-exclamation-sign"></i> '
44
+ };
45
+ })(window.jQuery);
@@ -0,0 +1,22 @@
1
+ body.admin_bids {
2
+
3
+ #titlebar_right .action_items {
4
+ display: none;
5
+ }
6
+
7
+ .table_tools {
8
+ display: none;
9
+ }
10
+
11
+ a.edit_link {
12
+ display: none;
13
+ }
14
+ a.delete_link {
15
+ display: none;
16
+ }
17
+
18
+ .blank_slate_container {
19
+ opacity: 0;
20
+ }
21
+
22
+ }
@@ -0,0 +1,3 @@
1
+ @import 'lib/fileinput/**/*';
2
+ //noinspection CssUnknownTarget
3
+ @import 'c80_contest/frontend/**/*';
@@ -0,0 +1,2 @@
1
+ //noinspection CssUnknownTarget
2
+ @import 'c80_contest/backend/**/*';
@@ -0,0 +1,481 @@
1
+ /*!
2
+ * bootstrap-fileinput v4.4.0
3
+ * http://plugins.krajee.com/file-input
4
+ *
5
+ * Krajee default styling for bootstrap-fileinput.
6
+ *
7
+ * Author: Kartik Visweswaran
8
+ * Copyright: 2014 - 2017, Kartik Visweswaran, Krajee.com
9
+ *
10
+ * Licensed under the BSD 3-Clause
11
+ * https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
12
+ */
13
+
14
+ .file-loading {
15
+ top: 0;
16
+ right: 0;
17
+ width: 25px;
18
+ height: 25px;
19
+ font-size: 999px;
20
+ text-align: right;
21
+ color: #fff;
22
+ background: transparent url(image_path('loading.gif')) top left no-repeat;
23
+ border: none;
24
+ }
25
+
26
+ .file-object {
27
+ margin: 0 0 -5px 0;
28
+ padding: 0;
29
+ }
30
+
31
+ .btn-file {
32
+ position: relative;
33
+ overflow: hidden;
34
+
35
+ input[type=file] {
36
+ position: absolute;
37
+ top: 0;
38
+ right: 0;
39
+ min-width: 100%;
40
+ min-height: 100%;
41
+ text-align: right;
42
+ opacity: 0;
43
+ background: none repeat scroll 0 0 transparent;
44
+ cursor: inherit;
45
+ display: block;
46
+ }
47
+ }
48
+
49
+ .file-caption-name {
50
+ display: inline-block;
51
+ overflow: hidden;
52
+ height: 20px;
53
+ word-break: break-all;
54
+ }
55
+
56
+ .input-group-lg .file-caption-name {
57
+ height: 25px;
58
+ }
59
+
60
+ .file-zoom-dialog {
61
+ text-align: left;
62
+ }
63
+
64
+ .file-error-message {
65
+ color: #a94442;
66
+ background-color: #f2dede;
67
+ margin: 5px;
68
+ border: 1px solid #ebccd1;
69
+ border-radius: 4px;
70
+ padding: 15px;
71
+
72
+ pre, ul {
73
+ margin: 0;
74
+ text-align: left;
75
+ }
76
+
77
+ pre {
78
+ margin: 5px 0;
79
+ }
80
+ }
81
+
82
+ .file-caption-disabled {
83
+ background-color: #EEEEEE;
84
+ cursor: not-allowed;
85
+ opacity: 1;
86
+ }
87
+
88
+ .file-preview {
89
+ border-radius: 5px;
90
+ border: 1px solid #ddd;
91
+ padding: 5px;
92
+ width: 100%;
93
+ margin-bottom: 5px;
94
+ }
95
+
96
+ .krajee-default {
97
+ &.file-preview-frame {
98
+ position: relative;
99
+ display: table;
100
+ margin: 8px;
101
+ border: 1px solid #ddd;
102
+ box-shadow: 1px 1px 5px 0 #a2958a;
103
+ padding: 6px;
104
+ float: left;
105
+ text-align: center;
106
+
107
+ &:not(.file-preview-error):hover {
108
+ box-shadow: 3px 3px 5px 0 #333;
109
+ }
110
+
111
+ .kv-file-content {
112
+ height: 170px;
113
+ }
114
+
115
+ .file-thumbnail-footer {
116
+ height: 70px;
117
+ }
118
+ }
119
+
120
+ .file-preview-image {
121
+ vertical-align: middle;
122
+ image-orientation: from-image;
123
+ }
124
+
125
+ .file-preview-text {
126
+ display: block;
127
+ color: #428bca;
128
+ border: 1px solid #ddd;
129
+ font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
130
+ outline: none;
131
+ padding: 8px;
132
+ resize: none;
133
+ }
134
+
135
+ .file-preview-html {
136
+ border: 1px solid #ddd;
137
+ padding: 8px;
138
+ overflow: auto;
139
+ }
140
+
141
+ &[data-template="audio"] .file-preview-audio {
142
+ display: table-cell;
143
+ vertical-align: middle;
144
+ height: 170px;
145
+ border: 1px solid #ddd;
146
+ border-radius: 5px;
147
+ }
148
+
149
+ .file-preview-audio audio {
150
+ vertical-align: middle;
151
+ }
152
+
153
+ .file-zoom-dialog .file-preview-text {
154
+ font-size: 1.2em;
155
+ }
156
+
157
+ .file-preview-other {
158
+ left: 0;
159
+ top: 0;
160
+ right: 0;
161
+ bottom: 0;
162
+ margin: auto;
163
+ text-align: center;
164
+ vertical-align: middle;
165
+ padding: 10px;
166
+
167
+ &:hover {
168
+ opacity: 0.8;
169
+ }
170
+ }
171
+
172
+ .file-actions, .file-other-error {
173
+ text-align: left;
174
+ }
175
+
176
+ .file-other-icon {
177
+ font-size: 8em;
178
+ }
179
+
180
+ .file-actions {
181
+ margin-top: 15px;
182
+ }
183
+
184
+ .file-footer-buttons {
185
+ float: right;
186
+ }
187
+
188
+ .file-footer-caption {
189
+ display: block;
190
+ white-space: nowrap;
191
+ overflow: hidden;
192
+ text-overflow: ellipsis;
193
+ width: 160px;
194
+ text-align: center;
195
+ padding-top: 4px;
196
+ font-size: 11px;
197
+ color: #777;
198
+ margin: 5px auto;
199
+ }
200
+
201
+ .file-preview-error {
202
+ opacity: 0.65;
203
+ box-shadow: none;
204
+ }
205
+
206
+ .file-preview-frame:not(.file-preview-error) .file-footer-caption:hover {
207
+ color: #000;
208
+ }
209
+
210
+ .file-drag-handle, .file-upload-indicator {
211
+ position: absolute;
212
+ text-align: center;
213
+ bottom: -6px;
214
+ left: -6px;
215
+ padding: 8px 8px 1px 3px;
216
+ border-left: none;
217
+ border-bottom: none;
218
+ border-right: 1px solid #8a6d3b;
219
+ border-top: 1px solid #8a6d3b;
220
+ border-top-right-radius: 24px;
221
+ font-size: 12px;
222
+ }
223
+
224
+ .file-drag-handle {
225
+ background-color: #d9edf7;
226
+ border-color: #bce8f1;
227
+ }
228
+
229
+ .file-upload-indicator {
230
+ font-size: 13px;
231
+ background-color: #fcf8e3;
232
+ border-color: #faebcc;
233
+ padding-bottom: 0;
234
+ }
235
+
236
+ &.file-preview-error .file-upload-indicator {
237
+ background-color: #f2dede;
238
+ border-color: #ebccd1;
239
+ }
240
+
241
+ &.file-preview-success .file-upload-indicator {
242
+ background-color: #dff0d8;
243
+ border-color: #d6e9c6;
244
+ }
245
+
246
+ &.file-preview-loading .file-upload-indicator {
247
+ background-color: #e5e5e5;
248
+ border-color: #777;
249
+ }
250
+
251
+ .file-thumb-progress {
252
+ height: 10px;
253
+
254
+ .progress, .progress-bar {
255
+ height: 10px;
256
+ font-size: 9px;
257
+ line-height: 10px;
258
+ }
259
+ }
260
+
261
+ .file-thumbnail-footer {
262
+ position: relative;
263
+ }
264
+
265
+ .file-thumb-progress {
266
+ position: absolute;
267
+ top: 35px;
268
+ left: 0;
269
+ right: 0;
270
+ }
271
+
272
+ &.kvsortable-ghost {
273
+ background: #e1edf7;
274
+ border: 2px solid #a1abff;
275
+ }
276
+ }
277
+
278
+ /* noinspection CssOverwrittenProperties */
279
+
280
+ .file-zoom-dialog .file-other-icon {
281
+ font-size: 8em;
282
+ font-size: 65vmin;
283
+ }
284
+
285
+ .file-input-new {
286
+ .file-preview, .close, .glyphicon-file, .fileinput-remove-button, .fileinput-upload-button {
287
+ display: none;
288
+ }
289
+ }
290
+
291
+ .file-input-ajax-new {
292
+ .fileinput-remove-button, .fileinput-upload-button {
293
+ display: none;
294
+ }
295
+ }
296
+
297
+ .file-caption-main {
298
+ width: 100%;
299
+ }
300
+
301
+ .file-input-ajax-new .no-browse .input-group-btn, .file-input-new .no-browse .input-group-btn {
302
+ display: none;
303
+ }
304
+
305
+ .file-input-ajax-new .no-browse .form-control, .file-input-new .no-browse .form-control {
306
+ border-top-right-radius: 4px;
307
+ border-bottom-right-radius: 4px;
308
+ }
309
+
310
+ .file-thumb-loading {
311
+ background: transparent url(image_path('loading.gif')) no-repeat scroll center center content-box !important;
312
+ }
313
+
314
+ .file-sortable .file-drag-handle {
315
+ cursor: move;
316
+ cursor: -webkit-grabbing;
317
+ opacity: 1;
318
+
319
+ &:hover {
320
+ opacity: 0.7;
321
+ }
322
+ }
323
+
324
+ .file-drop-zone {
325
+ border: 1px dashed #aaa;
326
+ border-radius: 4px;
327
+ height: 100%;
328
+ text-align: center;
329
+ vertical-align: middle;
330
+ margin: 12px 15px 12px 12px;
331
+ padding: 5px;
332
+ }
333
+
334
+ .file-drop-zone-title {
335
+ color: #aaa;
336
+ font-size: 1.6em;
337
+ padding: 85px 10px;
338
+ cursor: default;
339
+ }
340
+
341
+ .file-preview .clickable, .clickable .file-drop-zone-title {
342
+ cursor: pointer;
343
+ }
344
+
345
+ .file-drop-zone {
346
+ &.clickable {
347
+ &:hover {
348
+ border: 2px dashed #999;
349
+ }
350
+
351
+ &:focus {
352
+ border: 2px solid #5acde2;
353
+ }
354
+ }
355
+
356
+ .file-preview-thumbnails {
357
+ cursor: default;
358
+ }
359
+ }
360
+
361
+ .file-highlighted {
362
+ border: 2px dashed #999 !important;
363
+ background-color: #f0f0f0;
364
+ }
365
+
366
+ .file-uploading {
367
+ background: url(image_path('loading-sm.gif')) no-repeat center bottom 10px;
368
+ opacity: 0.65;
369
+ }
370
+
371
+ .file-zoom-fullscreen {
372
+ &.modal {
373
+ position: fixed;
374
+ top: 0;
375
+ right: 0;
376
+ bottom: 0;
377
+ left: 0;
378
+ }
379
+
380
+ .modal-dialog {
381
+ position: fixed;
382
+ margin: 0;
383
+ width: 100%;
384
+ height: 100%;
385
+ padding: 0;
386
+ }
387
+
388
+ .modal-content {
389
+ border-radius: 0;
390
+ box-shadow: none;
391
+ }
392
+
393
+ .modal-body {
394
+ overflow-y: auto;
395
+ }
396
+ }
397
+
398
+ .file-zoom-dialog {
399
+ .modal-body {
400
+ position: relative !important;
401
+ }
402
+
403
+ .btn-navigate {
404
+ position: absolute;
405
+ padding: 0;
406
+ margin: 0;
407
+ background: transparent;
408
+ text-decoration: none;
409
+ outline: none;
410
+ opacity: 0.7;
411
+ top: 45%;
412
+ font-size: 4em;
413
+ color: #1c94c4;
414
+ }
415
+
416
+ .floating-buttons {
417
+ position: absolute;
418
+ top: 5px;
419
+ right: 10px;
420
+ }
421
+ }
422
+
423
+ .floating-buttons {
424
+ z-index: 3000;
425
+
426
+ .btn {
427
+ z-index: 3000;
428
+ }
429
+ }
430
+
431
+ .file-zoom-dialog .kv-zoom-actions .btn, .floating-buttons .btn {
432
+ margin-left: 3px;
433
+ }
434
+
435
+ .file-zoom-dialog {
436
+ .btn-navigate {
437
+ &:not([disabled]) {
438
+ &:hover, &:focus {
439
+ outline: none;
440
+ box-shadow: none;
441
+ opacity: 0.5;
442
+ }
443
+ }
444
+
445
+ &[disabled] {
446
+ opacity: 0.3;
447
+ }
448
+ }
449
+
450
+ .btn-prev {
451
+ left: 1px;
452
+ }
453
+
454
+ .btn-next {
455
+ right: 1px;
456
+ }
457
+ }
458
+
459
+ .file-zoom-content {
460
+ height: 480px;
461
+ text-align: center;
462
+
463
+ .file-preview-image {
464
+ max-height: 100%;
465
+ }
466
+ }
467
+
468
+ .file-preview- .file-zoom-content .file-preview-video {
469
+ max-height: 100%;
470
+ }
471
+
472
+ .file-preview-initial.sortable-chosen {
473
+ background-color: #d9edf7;
474
+ }
475
+
476
+ /* IE 10 fix */
477
+
478
+ .btn-file ::-ms-browse {
479
+ width: 100%;
480
+ height: 100%;
481
+ }