card-mod-format 0.14.1 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/script/decko/clicks_and_hovers.js.coffee +49 -0
- data/assets/script/decko/decko.js.coffee +32 -0
- data/assets/script/decko/decko_jquery.js.coffee +25 -0
- data/assets/script/decko/slot.js.coffee +150 -0
- data/assets/script/decko/slot_ready.js.coffee +11 -0
- data/assets/script/decko/slotter.js.coffee +208 -0
- data/assets/script/jquery/jquery-ui.min.js +13 -0
- data/assets/script/jquery/jquery.autosize.js +274 -0
- data/assets/script/jquery/jquery.ui.autocomplete.html.js +41 -0
- data/assets/script/manifest.yml +38 -0
- data/assets/style/common.scss +73 -0
- data/assets/style/logo_and_credit.scss +24 -0
- data/assets/style/menu.scss +43 -0
- data/assets/style/messaging.scss +59 -0
- data/assets/style/misc.scss +90 -0
- data/assets/style/open_and_closed.scss +68 -0
- data/data/files/credit_image.svg +59 -0
- data/data/files/mod_format_script_asset_output/file.js +66 -0
- data/data/real.yml +67 -0
- data/lib/card/format/html_format.rb +0 -2
- data/lib/card/mod/format.rb +4 -0
- data/lib/card/path.rb +20 -20
- data/set/all/base.rb +1 -11
- data/set/all/content.rb +3 -11
- data/set/all/csv.rb +22 -74
- data/set/all/data.rb +2 -2
- data/set/all/demo.rb +6 -2
- data/set/all/error.rb +1 -1
- data/set/all/html/error.rb +1 -1
- data/set/all/html/head.rb +22 -12
- data/set/all/html/header.rb +10 -40
- data/set/all/html/header_wrap.haml +3 -4
- data/set/all/html/labeled.haml +1 -1
- data/set/all/html/menu.rb +36 -12
- data/set/all/html/views.rb +8 -17
- data/set/all/html/wrap.rb +5 -4
- data/set/all/html.rb +2 -3
- data/set/all/json.rb +1 -5
- data/set/right/head.rb +1 -0
- data/set/type/cardtype.rb +4 -6
- data/set/type/json.rb +1 -1
- data/set/type/number.rb +1 -16
- data/vendor/jquery_file_upload/LICENSE.txt +20 -0
- data/vendor/jquery_file_upload/README.md +224 -0
- data/vendor/jquery_file_upload/SECURITY.md +227 -0
- data/vendor/jquery_file_upload/VULNERABILITIES.md +118 -0
- data/vendor/jquery_file_upload/cors/postmessage.html +85 -0
- data/vendor/jquery_file_upload/cors/result.html +26 -0
- data/vendor/jquery_file_upload/css/jquery.fileupload-noscript.css +22 -0
- data/vendor/jquery_file_upload/css/jquery.fileupload-ui-noscript.css +17 -0
- data/vendor/jquery_file_upload/css/jquery.fileupload-ui.css +68 -0
- data/vendor/jquery_file_upload/css/jquery.fileupload.css +36 -0
- data/vendor/jquery_file_upload/docker-compose.yml +55 -0
- data/vendor/jquery_file_upload/img/loading.gif +0 -0
- data/vendor/jquery_file_upload/img/progressbar.gif +0 -0
- data/vendor/jquery_file_upload/index.html +357 -0
- data/vendor/jquery_file_upload/js/cors/jquery.postmessage-transport.js +126 -0
- data/vendor/jquery_file_upload/js/cors/jquery.xdr-transport.js +97 -0
- data/vendor/jquery_file_upload/js/demo.js +75 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-audio.js +101 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-image.js +347 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-process.js +170 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-ui.js +759 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-validate.js +119 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload-video.js +101 -0
- data/vendor/jquery_file_upload/js/jquery.fileupload.js +1604 -0
- data/vendor/jquery_file_upload/js/jquery.iframe-transport.js +227 -0
- data/vendor/jquery_file_upload/js/vendor/jquery.ui.widget.js +805 -0
- data/vendor/jquery_file_upload/package-lock.json +6853 -0
- data/vendor/jquery_file_upload/package.json +116 -0
- data/vendor/jquery_file_upload/server/gae-python/app.yaml +18 -0
- data/vendor/jquery_file_upload/server/gae-python/main.py +204 -0
- data/vendor/jquery_file_upload/server/gae-python/static/favicon.ico +0 -0
- data/vendor/jquery_file_upload/server/gae-python/static/robots.txt +2 -0
- data/vendor/jquery_file_upload/server/php/Dockerfile +44 -0
- data/vendor/jquery_file_upload/server/php/UploadHandler.php +1480 -0
- data/vendor/jquery_file_upload/server/php/index.php +15 -0
- data/vendor/jquery_file_upload/server/php/php.ini +5 -0
- data/vendor/jquery_file_upload/test/index.html +49 -0
- data/vendor/jquery_file_upload/test/unit.js +989 -0
- data/vendor/jquery_file_upload/test/vendor/chai.js +10854 -0
- data/vendor/jquery_file_upload/test/vendor/mocha.css +325 -0
- data/vendor/jquery_file_upload/test/vendor/mocha.js +18178 -0
- data/vendor/jquery_file_upload/wdio/LICENSE.txt +20 -0
- data/vendor/jquery_file_upload/wdio/assets/black+white-3x2.jpg +0 -0
- data/vendor/jquery_file_upload/wdio/assets/black+white-60x40.gif +0 -0
- data/vendor/jquery_file_upload/wdio/conf/chrome.js +40 -0
- data/vendor/jquery_file_upload/wdio/conf/firefox.js +25 -0
- data/vendor/jquery_file_upload/wdio/hooks/index.js +36 -0
- data/vendor/jquery_file_upload/wdio/test/pages/file-upload.js +79 -0
- data/vendor/jquery_file_upload/wdio/test/specs/01-file-upload.js +25 -0
- data/vendor/jquery_file_upload/wdio/wdio.conf.js +4 -0
- data/vendor/jquery_rails/CHANGELOG.md +359 -0
- data/vendor/jquery_rails/CONTRIBUTING.md +132 -0
- data/vendor/jquery_rails/Gemfile +22 -0
- data/vendor/jquery_rails/MIT-LICENSE +21 -0
- data/vendor/jquery_rails/README.md +75 -0
- data/vendor/jquery_rails/Rakefile +59 -0
- data/vendor/jquery_rails/VERSIONS.md +62 -0
- data/vendor/jquery_rails/jquery-rails.gemspec +26 -0
- data/vendor/jquery_rails/lib/jquery/assert_select.rb +149 -0
- data/vendor/jquery_rails/lib/jquery/rails/engine.rb +6 -0
- data/vendor/jquery_rails/lib/jquery/rails/version.rb +9 -0
- data/vendor/jquery_rails/lib/jquery/rails.rb +8 -0
- data/vendor/jquery_rails/lib/jquery-rails.rb +1 -0
- data/vendor/jquery_rails/test/assert_select_jquery_test.rb +85 -0
- data/vendor/jquery_rails/test/test_helper.rb +6 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery.js +11008 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery.min.js +5 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery.min.map +1 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.js +9814 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.min.js +4 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery2.min.map +1 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.js +10364 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.min.js +2 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery3.min.map +1 -0
- data/vendor/jquery_rails/vendor/assets/javascripts/jquery_ujs.js +555 -0
- metadata +104 -7
@@ -0,0 +1,274 @@
|
|
1
|
+
/*!
|
2
|
+
Autosize 1.18.13
|
3
|
+
license: MIT
|
4
|
+
http://www.jacklmoore.com/autosize
|
5
|
+
*/
|
6
|
+
(function ($) {
|
7
|
+
var
|
8
|
+
defaults = {
|
9
|
+
className: 'autosizejs',
|
10
|
+
id: 'autosizejs',
|
11
|
+
append: '\n',
|
12
|
+
callback: false,
|
13
|
+
resizeDelay: 10,
|
14
|
+
placeholder: true
|
15
|
+
},
|
16
|
+
|
17
|
+
// border:0 is unnecessary, but avoids a bug in Firefox on OSX
|
18
|
+
copy = '<textarea tabindex="-1" style="position:absolute; top:-999px; left:0; right:auto; bottom:auto; border:0; padding: 0; -moz-box-sizing:content-box; -webkit-box-sizing:content-box; box-sizing:content-box; word-wrap:break-word; height:0 !important; min-height:0 !important; overflow:hidden; transition:none; -webkit-transition:none; -moz-transition:none;"/>',
|
19
|
+
|
20
|
+
// line-height is conditionally included because IE7/IE8/old Opera do not return the correct value.
|
21
|
+
typographyStyles = [
|
22
|
+
'fontFamily',
|
23
|
+
'fontSize',
|
24
|
+
'fontWeight',
|
25
|
+
'fontStyle',
|
26
|
+
'letterSpacing',
|
27
|
+
'textTransform',
|
28
|
+
'wordSpacing',
|
29
|
+
'textIndent',
|
30
|
+
'whiteSpace'
|
31
|
+
],
|
32
|
+
|
33
|
+
// to keep track which textarea is being mirrored when adjust() is called.
|
34
|
+
mirrored,
|
35
|
+
|
36
|
+
// the mirror element, which is used to calculate what size the mirrored element should be.
|
37
|
+
mirror = $(copy).data('autosize', true)[0];
|
38
|
+
|
39
|
+
// test that line-height can be accurately copied.
|
40
|
+
mirror.style.lineHeight = '99px';
|
41
|
+
if ($(mirror).css('lineHeight') === '99px') {
|
42
|
+
typographyStyles.push('lineHeight');
|
43
|
+
}
|
44
|
+
mirror.style.lineHeight = '';
|
45
|
+
|
46
|
+
$.fn.autosize = function (options) {
|
47
|
+
if (!this.length) {
|
48
|
+
return this;
|
49
|
+
}
|
50
|
+
|
51
|
+
options = $.extend({}, defaults, options || {});
|
52
|
+
|
53
|
+
if (mirror.parentNode !== document.body) {
|
54
|
+
$(document.body).append(mirror);
|
55
|
+
}
|
56
|
+
|
57
|
+
return this.each(function () {
|
58
|
+
var
|
59
|
+
ta = this,
|
60
|
+
$ta = $(ta),
|
61
|
+
maxHeight,
|
62
|
+
minHeight,
|
63
|
+
boxOffset = 0,
|
64
|
+
callback = $.isFunction(options.callback),
|
65
|
+
originalStyles = {
|
66
|
+
height: ta.style.height,
|
67
|
+
overflow: ta.style.overflow,
|
68
|
+
overflowY: ta.style.overflowY,
|
69
|
+
wordWrap: ta.style.wordWrap,
|
70
|
+
resize: ta.style.resize
|
71
|
+
},
|
72
|
+
timeout,
|
73
|
+
width = $ta.width(),
|
74
|
+
taResize = $ta.css('resize');
|
75
|
+
|
76
|
+
if ($ta.data('autosize')) {
|
77
|
+
// exit if autosize has already been applied, or if the textarea is the mirror element.
|
78
|
+
return;
|
79
|
+
}
|
80
|
+
$ta.data('autosize', true);
|
81
|
+
|
82
|
+
if ($ta.css('box-sizing') === 'border-box' || $ta.css('-moz-box-sizing') === 'border-box' || $ta.css('-webkit-box-sizing') === 'border-box'){
|
83
|
+
boxOffset = $ta.outerHeight() - $ta.height();
|
84
|
+
}
|
85
|
+
|
86
|
+
// IE8 and lower return 'auto', which parses to NaN, if no min-height is set.
|
87
|
+
minHeight = Math.max(parseInt($ta.css('minHeight'), 10) - boxOffset || 0, $ta.height());
|
88
|
+
|
89
|
+
$ta.css({
|
90
|
+
overflow: 'hidden',
|
91
|
+
overflowY: 'hidden',
|
92
|
+
wordWrap: 'break-word' // horizontal overflow is hidden, so break-word is necessary for handling words longer than the textarea width
|
93
|
+
});
|
94
|
+
|
95
|
+
if (taResize === 'vertical') {
|
96
|
+
$ta.css('resize','none');
|
97
|
+
} else if (taResize === 'both') {
|
98
|
+
$ta.css('resize', 'horizontal');
|
99
|
+
}
|
100
|
+
|
101
|
+
// The mirror width must exactly match the textarea width, so using getBoundingClientRect because it doesn't round the sub-pixel value.
|
102
|
+
// window.getComputedStyle, getBoundingClientRect returning a width are unsupported, but also unneeded in IE8 and lower.
|
103
|
+
function setWidth() {
|
104
|
+
var width;
|
105
|
+
var style = window.getComputedStyle ? window.getComputedStyle(ta, null) : false;
|
106
|
+
|
107
|
+
if (style) {
|
108
|
+
|
109
|
+
width = ta.getBoundingClientRect().width;
|
110
|
+
|
111
|
+
if (width === 0 || typeof width !== 'number') {
|
112
|
+
width = parseInt(style.width,10);
|
113
|
+
}
|
114
|
+
|
115
|
+
$.each(['paddingLeft', 'paddingRight', 'borderLeftWidth', 'borderRightWidth'], function(i,val){
|
116
|
+
width -= parseInt(style[val],10);
|
117
|
+
});
|
118
|
+
} else {
|
119
|
+
width = $ta.width();
|
120
|
+
}
|
121
|
+
|
122
|
+
mirror.style.width = Math.max(width,0) + 'px';
|
123
|
+
}
|
124
|
+
|
125
|
+
function initMirror() {
|
126
|
+
var styles = {};
|
127
|
+
|
128
|
+
mirrored = ta;
|
129
|
+
mirror.className = options.className;
|
130
|
+
mirror.id = options.id;
|
131
|
+
maxHeight = parseInt($ta.css('maxHeight'), 10);
|
132
|
+
|
133
|
+
// mirror is a duplicate textarea located off-screen that
|
134
|
+
// is automatically updated to contain the same text as the
|
135
|
+
// original textarea. mirror always has a height of 0.
|
136
|
+
// This gives a cross-browser supported way getting the actual
|
137
|
+
// height of the text, through the scrollTop property.
|
138
|
+
$.each(typographyStyles, function(i,val){
|
139
|
+
styles[val] = $ta.css(val);
|
140
|
+
});
|
141
|
+
|
142
|
+
$(mirror).css(styles).attr('wrap', $ta.attr('wrap'));
|
143
|
+
|
144
|
+
setWidth();
|
145
|
+
|
146
|
+
// Chrome-specific fix:
|
147
|
+
// When the textarea y-overflow is hidden, Chrome doesn't reflow the text to account for the space
|
148
|
+
// made available by removing the scrollbar. This workaround triggers the reflow for Chrome.
|
149
|
+
if (window.chrome) {
|
150
|
+
var width = ta.style.width;
|
151
|
+
ta.style.width = '0px';
|
152
|
+
var ignore = ta.offsetWidth;
|
153
|
+
ta.style.width = width;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
// Using mainly bare JS in this function because it is going
|
158
|
+
// to fire very often while typing, and needs to very efficient.
|
159
|
+
function adjust() {
|
160
|
+
var height, original;
|
161
|
+
|
162
|
+
if (mirrored !== ta) {
|
163
|
+
initMirror();
|
164
|
+
} else {
|
165
|
+
setWidth();
|
166
|
+
}
|
167
|
+
|
168
|
+
if (!ta.value && options.placeholder) {
|
169
|
+
// If the textarea is empty, copy the placeholder text into
|
170
|
+
// the mirror control and use that for sizing so that we
|
171
|
+
// don't end up with placeholder getting trimmed.
|
172
|
+
mirror.value = ($ta.attr("placeholder") || '');
|
173
|
+
} else {
|
174
|
+
mirror.value = ta.value;
|
175
|
+
}
|
176
|
+
|
177
|
+
mirror.value += options.append || '';
|
178
|
+
mirror.style.overflowY = ta.style.overflowY;
|
179
|
+
original = parseInt(ta.style.height,10);
|
180
|
+
|
181
|
+
// Setting scrollTop to zero is needed in IE8 and lower for the next step to be accurately applied
|
182
|
+
mirror.scrollTop = 0;
|
183
|
+
|
184
|
+
mirror.scrollTop = 9e4;
|
185
|
+
|
186
|
+
// Using scrollTop rather than scrollHeight because scrollHeight is non-standard and includes padding.
|
187
|
+
height = mirror.scrollTop;
|
188
|
+
|
189
|
+
if (maxHeight && height > maxHeight) {
|
190
|
+
ta.style.overflowY = 'scroll';
|
191
|
+
height = maxHeight;
|
192
|
+
} else {
|
193
|
+
ta.style.overflowY = 'hidden';
|
194
|
+
if (height < minHeight) {
|
195
|
+
height = minHeight;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
height += boxOffset;
|
200
|
+
|
201
|
+
if (original !== height) {
|
202
|
+
ta.style.height = height + 'px';
|
203
|
+
if (callback) {
|
204
|
+
options.callback.call(ta,ta);
|
205
|
+
}
|
206
|
+
$ta.trigger('autosize.resized');
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
function resize () {
|
211
|
+
clearTimeout(timeout);
|
212
|
+
timeout = setTimeout(function(){
|
213
|
+
var newWidth = $ta.width();
|
214
|
+
|
215
|
+
if (newWidth !== width) {
|
216
|
+
width = newWidth;
|
217
|
+
adjust();
|
218
|
+
}
|
219
|
+
}, parseInt(options.resizeDelay,10));
|
220
|
+
}
|
221
|
+
|
222
|
+
if ('onpropertychange' in ta) {
|
223
|
+
if ('oninput' in ta) {
|
224
|
+
// Detects IE9. IE9 does not fire onpropertychange or oninput for deletions,
|
225
|
+
// so binding to onkeyup to catch most of those occasions. There is no way that I
|
226
|
+
// know of to detect something like 'cut' in IE9.
|
227
|
+
$ta.on('input.autosize keyup.autosize', adjust);
|
228
|
+
} else {
|
229
|
+
// IE7 / IE8
|
230
|
+
$ta.on('propertychange.autosize', function(){
|
231
|
+
if(event.propertyName === 'value'){
|
232
|
+
adjust();
|
233
|
+
}
|
234
|
+
});
|
235
|
+
}
|
236
|
+
} else {
|
237
|
+
// Modern Browsers
|
238
|
+
$ta.on('input.autosize', adjust);
|
239
|
+
}
|
240
|
+
|
241
|
+
// Set options.resizeDelay to false if using fixed-width textarea elements.
|
242
|
+
// Uses a timeout and width check to reduce the amount of times adjust needs to be called after window resize.
|
243
|
+
|
244
|
+
if (options.resizeDelay !== false) {
|
245
|
+
$(window).on('resize.autosize', resize);
|
246
|
+
}
|
247
|
+
|
248
|
+
// Event for manual triggering if needed.
|
249
|
+
// Should only be needed when the value of the textarea is changed through JavaScript rather than user input.
|
250
|
+
$ta.on('autosize.resize', adjust);
|
251
|
+
|
252
|
+
// Event for manual triggering that also forces the styles to update as well.
|
253
|
+
// Should only be needed if one of typography styles of the textarea change, and the textarea is already the target of the adjust method.
|
254
|
+
$ta.on('autosize.resizeIncludeStyle', function() {
|
255
|
+
mirrored = null;
|
256
|
+
adjust();
|
257
|
+
});
|
258
|
+
|
259
|
+
$ta.on('autosize.destroy', function(){
|
260
|
+
mirrored = null;
|
261
|
+
clearTimeout(timeout);
|
262
|
+
$(window).off('resize', resize);
|
263
|
+
$ta
|
264
|
+
.off('autosize')
|
265
|
+
.off('.autosize')
|
266
|
+
.css(originalStyles)
|
267
|
+
.removeData('autosize');
|
268
|
+
});
|
269
|
+
|
270
|
+
// Call adjust in case the textarea already contains text.
|
271
|
+
adjust();
|
272
|
+
});
|
273
|
+
};
|
274
|
+
}(jQuery || $)); // jQuery or jQuery-like library, such as Zepto
|
@@ -0,0 +1,41 @@
|
|
1
|
+
|
2
|
+
/*
|
3
|
+
* jQuery UI Autocomplete HTML Extension
|
4
|
+
*
|
5
|
+
* Copyright 2010, Scott González (http://scottgonzalez.com)
|
6
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
7
|
+
*
|
8
|
+
* http://github.com/scottgonzalez/jquery-ui-extensions
|
9
|
+
*/
|
10
|
+
(function( $ ) {
|
11
|
+
|
12
|
+
var proto = $.ui.autocomplete.prototype,
|
13
|
+
initSource = proto._initSource;
|
14
|
+
|
15
|
+
function filter( array, term ) {
|
16
|
+
var matcher = new RegExp( $.ui.autocomplete.escapeRegex(term), "i" );
|
17
|
+
return $.grep( array, function(value) {
|
18
|
+
return matcher.test( $( "<div>" ).html( value.label || value.value || value ).text() );
|
19
|
+
});
|
20
|
+
}
|
21
|
+
|
22
|
+
$.extend( proto, {
|
23
|
+
_initSource: function() {
|
24
|
+
if ( this.options.html && $.isArray(this.options.source) ) {
|
25
|
+
this.source = function( request, response ) {
|
26
|
+
response( filter( this.options.source, request.term ) );
|
27
|
+
};
|
28
|
+
} else {
|
29
|
+
initSource.call( this );
|
30
|
+
}
|
31
|
+
},
|
32
|
+
|
33
|
+
_renderItem: function( ul, item) {
|
34
|
+
return $( "<li></li>" )
|
35
|
+
.data( "item.autocomplete", item )
|
36
|
+
.append( $( "<a></a>" )[ this.options.html ? "html" : "text" ]( item.label ) )
|
37
|
+
.appendTo( ul );
|
38
|
+
}
|
39
|
+
});
|
40
|
+
|
41
|
+
})( jQuery );
|
@@ -0,0 +1,38 @@
|
|
1
|
+
remote:
|
2
|
+
items:
|
3
|
+
# NOTE: jQuery 3.6.0 made it so we couldn't set the focus in the search box
|
4
|
+
# Please test that use case when upgrading!
|
5
|
+
- src: https://code.jquery.com/jquery-3.5.1.min.js
|
6
|
+
integrity: sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=
|
7
|
+
crossorigin: "anonymous"
|
8
|
+
|
9
|
+
- src: https://cdnjs.cloudflare.com/ajax/libs/jquery-ujs/1.2.3/rails.min.js
|
10
|
+
integrity: sha512-yDJWVxuRSkQa1u9/Zif6Gh93Gk0Urboz98JLEPcERMQ+pTHz/c27d0Xz08G+lgutFyKklB9UILtnhG6bth6B4A==
|
11
|
+
crossorigin: anonymous
|
12
|
+
referrerpolicy: no-referrer
|
13
|
+
|
14
|
+
jquery:
|
15
|
+
items:
|
16
|
+
# jquery-ui includes all interaction components, the dialog and the autocomplete widget
|
17
|
+
# and all dependencies for those
|
18
|
+
# decko depends on autocomplete, sortable, jquery.autosize and jquery.fileupload
|
19
|
+
# the dialog widget is not used in decko but in wikirate
|
20
|
+
# don't know if iframe-transport is needed but it used to be there
|
21
|
+
|
22
|
+
- jquery/jquery-ui.min.js
|
23
|
+
- jquery/jquery.ui.autocomplete.html.js
|
24
|
+
- jquery/jquery.autosize.js
|
25
|
+
|
26
|
+
- ../../vendor/jquery_file_upload/js/jquery.fileupload.js
|
27
|
+
- ../../vendor/jquery_file_upload/js/jquery.iframe-transport.js
|
28
|
+
|
29
|
+
decko:
|
30
|
+
items:
|
31
|
+
- decko/decko.js.coffee
|
32
|
+
- decko/decko_jquery.js.coffee
|
33
|
+
|
34
|
+
- decko/slot.js.coffee
|
35
|
+
- decko/slotter.js.coffee
|
36
|
+
|
37
|
+
- decko/slot_ready.js.coffee
|
38
|
+
- decko/clicks_and_hovers.js.coffee
|
@@ -0,0 +1,73 @@
|
|
1
|
+
form {
|
2
|
+
margin: 0;
|
3
|
+
padding: 0;
|
4
|
+
}
|
5
|
+
|
6
|
+
a, a:visited {
|
7
|
+
text-decoration: none;
|
8
|
+
}
|
9
|
+
a:focus, a:hover {
|
10
|
+
text-decoration: underline;
|
11
|
+
}
|
12
|
+
|
13
|
+
.card-slot {
|
14
|
+
position: relative;
|
15
|
+
}
|
16
|
+
|
17
|
+
// resets
|
18
|
+
.d0-card-frame,
|
19
|
+
.d0-card-body,
|
20
|
+
.ALL {
|
21
|
+
overflow: inherit;
|
22
|
+
white-space: normal;
|
23
|
+
}
|
24
|
+
|
25
|
+
.d0-card-frame {
|
26
|
+
text-align: left;
|
27
|
+
font-weight: normal;
|
28
|
+
font-style: normal;
|
29
|
+
|
30
|
+
.d0-card-frame-title {
|
31
|
+
// display: inline-block;
|
32
|
+
overflow: hidden;
|
33
|
+
span.header-icon {
|
34
|
+
margin: 0 5px;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
.type-info {
|
38
|
+
margin-right: 10px;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
.d0-card-header {
|
44
|
+
display: flex;
|
45
|
+
justify-content: space-between;
|
46
|
+
}
|
47
|
+
|
48
|
+
//.d0-card-content {
|
49
|
+
// .d0-card-header > .d0-card-header-title > .card-title {
|
50
|
+
// font-size: $h2-font-size;
|
51
|
+
// color: $headings-color;
|
52
|
+
// }
|
53
|
+
// .bar-bottom .d0-card-header > .d0-card-header-title > .card-title {
|
54
|
+
// font-size: $h3-font-size;
|
55
|
+
// color: $headings-color;
|
56
|
+
// }
|
57
|
+
//}
|
58
|
+
|
59
|
+
.titled-view > .d0-card-header {
|
60
|
+
min-height: 1.5em;
|
61
|
+
}
|
62
|
+
|
63
|
+
/* links to create missing cards */
|
64
|
+
|
65
|
+
a.unknown-link {
|
66
|
+
color: $text-muted;
|
67
|
+
font-variant: small-caps;
|
68
|
+
&:hover {
|
69
|
+
color: $primary;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
$credit_color: $primary !default;
|
2
|
+
|
3
|
+
.SELF-Xlogo.content_panel-view,
|
4
|
+
.SELF-Xcredit.content_panel-view {
|
5
|
+
text-align: center;
|
6
|
+
background: $white;
|
7
|
+
img {
|
8
|
+
max-width: 100%;
|
9
|
+
}
|
10
|
+
a {
|
11
|
+
color: $credit_color;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
// TODO: make classes clearer (reference logo)
|
16
|
+
|
17
|
+
[id^='svg-card-'] use{ // all cards
|
18
|
+
fill: $primary;
|
19
|
+
}
|
20
|
+
|
21
|
+
[id^='svg-card-']:nth-child(even) use { // even cards
|
22
|
+
fill: $secondary;
|
23
|
+
}
|
24
|
+
|
@@ -0,0 +1,43 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
/*---------- Card menu ------------*/
|
4
|
+
|
5
|
+
.card-menu {
|
6
|
+
position: absolute;
|
7
|
+
right: 8px;
|
8
|
+
top: 5px;
|
9
|
+
}
|
10
|
+
|
11
|
+
.d0-card-content, .titled-view > .d0-card-header {
|
12
|
+
> .card-menu {
|
13
|
+
top: 0;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
|
18
|
+
@include media-breakpoint-up(xs) {
|
19
|
+
// Hover over these, and only the card menus that are immediate children will appear
|
20
|
+
.card-slot > .d0-card-frame > .d0-card-header,
|
21
|
+
.card-slot > .d0-card-header,
|
22
|
+
.card-slot.labeled-view > .labeled-content > .d0-card-body,
|
23
|
+
.card-slot,
|
24
|
+
.card > .card-body,
|
25
|
+
.card > .card-header {
|
26
|
+
> .card-menu._show-on-hover > a {
|
27
|
+
display: none;
|
28
|
+
}
|
29
|
+
&:hover > .card-menu._show-on-hover > a {
|
30
|
+
display: inline-block;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
// Hover over this one, and ANY card-menu inside will appear
|
35
|
+
.card-menu-hoverspace {
|
36
|
+
.card-menu._show-on-hover > a {
|
37
|
+
display: none;
|
38
|
+
}
|
39
|
+
&:hover .card-menu._show-on-hover > a {
|
40
|
+
display: inline-block;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/*-------------------- */
|
2
|
+
/*- ERRORS / NOTICES - */
|
3
|
+
/*-------------------- */
|
4
|
+
|
5
|
+
/* TODO: following should be consolidated / simplified */
|
6
|
+
|
7
|
+
.card-notice,
|
8
|
+
.new-current-revision-id,
|
9
|
+
.confirm_update_all-view,
|
10
|
+
._template,
|
11
|
+
.admin-error-message {
|
12
|
+
display: none
|
13
|
+
}
|
14
|
+
|
15
|
+
.exception p {
|
16
|
+
margin: 15px;
|
17
|
+
}
|
18
|
+
|
19
|
+
.card-notice {
|
20
|
+
background: $white;
|
21
|
+
font-weight: bold;
|
22
|
+
font-style: italic;
|
23
|
+
text-align: center;
|
24
|
+
margin: 0 0 4px 0;
|
25
|
+
|
26
|
+
.card-error-msg {
|
27
|
+
text-align: left;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.conflict-view {
|
32
|
+
text-align: left;
|
33
|
+
border: 1px solid $gray-400;
|
34
|
+
padding: 10px;
|
35
|
+
margin-top: 12px;
|
36
|
+
}
|
37
|
+
|
38
|
+
.name-editor.known-name input {
|
39
|
+
border: 3px solid $danger;
|
40
|
+
}
|
41
|
+
.name-messages {
|
42
|
+
font-style: italic;
|
43
|
+
background: $info;
|
44
|
+
}
|
45
|
+
|
46
|
+
.alert {
|
47
|
+
&.guide {
|
48
|
+
margin-left: 20px;
|
49
|
+
width: 40%;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
.alert-heading.error {
|
53
|
+
margin-bottom: 30px;
|
54
|
+
}
|
55
|
+
|
56
|
+
/*-------- Help Texts --------*/
|
57
|
+
.alert-info p:last-child {
|
58
|
+
margin-bottom: 0;
|
59
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
/*-- misc --*/
|
2
|
+
|
3
|
+
.TYPE-toggle.d0-card-content {
|
4
|
+
font-style: italic;
|
5
|
+
}
|
6
|
+
|
7
|
+
// TODO: use mixin
|
8
|
+
pre,
|
9
|
+
.TYPE-plain_text.d0-card-content,
|
10
|
+
.SELF-Xhead.d0-card-content {
|
11
|
+
white-space: pre-wrap; /* css-3 */
|
12
|
+
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
|
13
|
+
white-space: -pre-wrap; /* Opera 4-6 */
|
14
|
+
white-space: -o-pre-wrap; /* Opera 7 */
|
15
|
+
word-wrap: break-word; /* Internet Explorer 5.5+ */
|
16
|
+
}
|
17
|
+
.unknown-view a {
|
18
|
+
display: inline;
|
19
|
+
}
|
20
|
+
|
21
|
+
.VIEW-type {
|
22
|
+
font-style: italic;
|
23
|
+
font-size: .85em;
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
.one-line {
|
28
|
+
text-overflow: ellipsis;
|
29
|
+
white-space: nowrap;
|
30
|
+
overflow-x: hidden;
|
31
|
+
}
|
32
|
+
|
33
|
+
.labeled-view:hover .card-menu {
|
34
|
+
display: inline-block;
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
.labeled-view {
|
39
|
+
padding: 5px 0;
|
40
|
+
max-width: 100%;
|
41
|
+
.label {
|
42
|
+
font-weight: bold;
|
43
|
+
}
|
44
|
+
.labeled-content {
|
45
|
+
.pointer-list,
|
46
|
+
.pointer-item,
|
47
|
+
.search-result-list,
|
48
|
+
.search-result-item {
|
49
|
+
font-size: 1em;
|
50
|
+
padding: 0;
|
51
|
+
text-indent: 0;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
.btn-reduced-padding {
|
57
|
+
padding: 0.1rem 0.2rem;
|
58
|
+
}
|
59
|
+
|
60
|
+
/*-------- Icon Helpers --------*/
|
61
|
+
|
62
|
+
/* Material icon placement */
|
63
|
+
.material-icons {
|
64
|
+
vertical-align: sub;
|
65
|
+
font-size: medium;
|
66
|
+
}
|
67
|
+
|
68
|
+
.material-icons.md-24 { font-size: 24px; }
|
69
|
+
|
70
|
+
|
71
|
+
//a.external-link {
|
72
|
+
// // color: $warning;
|
73
|
+
// &:after {
|
74
|
+
// content: "\f360";
|
75
|
+
// font-weight: 900;
|
76
|
+
// right: -2px;
|
77
|
+
// position: relative;
|
78
|
+
// bottom: 4px;
|
79
|
+
// font-family: fontAwesome;
|
80
|
+
// font-size: 8px;
|
81
|
+
// text-decoration: none !important;
|
82
|
+
// display: inline;
|
83
|
+
// }
|
84
|
+
//}
|
85
|
+
//
|
86
|
+
//a.external-link,
|
87
|
+
//.closed-content a.external-link {
|
88
|
+
// padding-right: 2px !important;
|
89
|
+
//}
|
90
|
+
|
@@ -0,0 +1,68 @@
|
|
1
|
+
.d0-card-frame .toggler {
|
2
|
+
display: inline-block;
|
3
|
+
position: relative;
|
4
|
+
}
|
5
|
+
|
6
|
+
.closed-view {
|
7
|
+
position: relative;
|
8
|
+
> .d0-card-frame {
|
9
|
+
white-space: nowrap;
|
10
|
+
//padding-right: 30px;
|
11
|
+
overflow: hidden;
|
12
|
+
text-overflow: ellipsis;
|
13
|
+
position: static;
|
14
|
+
width:100%;
|
15
|
+
> .d0-card-header{
|
16
|
+
// float: left;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
.d0-card-frame {
|
21
|
+
display: inline-block;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
.closed-content {
|
25
|
+
margin-top: 2px;
|
26
|
+
white-space: nowrap;
|
27
|
+
text-overflow: ellipsis;
|
28
|
+
padding: 10px;
|
29
|
+
|
30
|
+
table, thead, tbody, tr, th, td, p, h1, h2, h3, h4, h5, h6, ul, li, pre, ol, div, span, a, blockquote, img, label, i {
|
31
|
+
display: inline;
|
32
|
+
white-space: nowrap;
|
33
|
+
float: none;
|
34
|
+
}
|
35
|
+
br, hr, input, textarea, object, :after, :before {
|
36
|
+
display: none;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
.closed-view.panel {
|
42
|
+
margin: 0;
|
43
|
+
width: 100%;
|
44
|
+
}
|
45
|
+
.closed-content {
|
46
|
+
table, tbody, tr, th, td, p, h1, h2, h3, h4, h5, h6, ul, li, pre, ol, div, span, a, blockquote, img {
|
47
|
+
font-size: 1em;
|
48
|
+
margin: 0 6px 0 0;
|
49
|
+
padding: 0;
|
50
|
+
border: 0;
|
51
|
+
}
|
52
|
+
a {
|
53
|
+
margin: 0;
|
54
|
+
}
|
55
|
+
img {
|
56
|
+
max-height: 1em;
|
57
|
+
width: auto;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
.toggler > i.material-icons{
|
62
|
+
color: $black;
|
63
|
+
font-size: 15px;
|
64
|
+
font-weight: bolder!important;
|
65
|
+
border: 2px solid $black;
|
66
|
+
border-radius: 3px;
|
67
|
+
margin-right: 3px;
|
68
|
+
}
|