From 8ad394270d3539a276c1fc5bb360ced3cd387512 Mon Sep 17 00:00:00 2001 From: kalvn Date: Sat, 7 May 2016 12:57:20 +0200 Subject: [PATCH] Adds extender button when editing a link --- material/build/scripts.min.js | 12 +++++------ material/build/styles.min.css | 2 +- material/editlink.html | 9 +++++--- material/images/arrow-compress.png | Bin 0 -> 300 bytes material/images/arrow-expand.png | Bin 0 -> 298 bytes material/scss/components/_card.scss | 1 + material/scss/components/_structure.scss | 26 +++++++++++++++++++++++ material/scss/components/_values.scss | 3 ++- material/src/main.js | 15 +++++++++++++ 9 files changed, 57 insertions(+), 11 deletions(-) create mode 100644 material/images/arrow-compress.png create mode 100644 material/images/arrow-expand.png diff --git a/material/build/scripts.min.js b/material/build/scripts.min.js index 29d5c06..97afb49 100644 --- a/material/build/scripts.min.js +++ b/material/build/scripts.min.js @@ -1,6 +1,6 @@ -!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=he.type(e);return"function"===n||he.isWindow(e)?!1:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function i(e,t,n){if(he.isFunction(t))return he.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return he.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Te.test(t))return he.filter(t,e,n);t=he.filter(t,e)}return he.grep(e,function(e){return he.inArray(e,t)>-1!==n})}function r(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t={};return he.each(e.match(Ne)||[],function(e,n){t[n]=!0}),t}function s(){ie.addEventListener?(ie.removeEventListener("DOMContentLoaded",a),e.removeEventListener("load",a)):(ie.detachEvent("onreadystatechange",a),e.detachEvent("onload",a))}function a(){(ie.addEventListener||"load"===e.event.type||"complete"===ie.readyState)&&(s(),he.ready())}function u(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(Ye,"-$1").toLowerCase();if(n=e.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Oe.test(n)?he.parseJSON(n):n}catch(r){}he.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!he.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,i){if(Le(e)){var r,o,s=he.expando,a=e.nodeType,u=a?he.cache:e,l=a?e[s]:e[s]&&s;if(l&&u[l]&&(i||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=a?e[s]=ne.pop()||he.guid++:s),u[l]||(u[l]=a?{}:{toJSON:he.noop}),("object"==typeof t||"function"==typeof t)&&(i?u[l]=he.extend(u[l],t):u[l].data=he.extend(u[l].data,t)),o=u[l],i||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[he.camelCase(t)]=n),"string"==typeof t?(r=o[t],null==r&&(r=o[he.camelCase(t)])):r=o,r}}function d(e,t,n){if(Le(e)){var i,r,o=e.nodeType,s=o?he.cache:e,a=o?e[he.expando]:he.expando;if(s[a]){if(t&&(i=n?s[a]:s[a].data)){he.isArray(t)?t=t.concat(he.map(t,he.camelCase)):t in i?t=[t]:(t=he.camelCase(t),t=t in i?[t]:t.split(" ")),r=t.length;for(;r--;)delete i[t[r]];if(n?!l(i):!he.isEmptyObject(i))return}(n||(delete s[a].data,l(s[a])))&&(o?he.cleanData([e],!0):de.deleteExpando||s!=s.window?delete s[a]:s[a]=void 0)}}}function f(e,t,n,i){var r,o=1,s=20,a=i?function(){return i.cur()}:function(){return he.css(e,t,"")},u=a(),l=n&&n[3]||(he.cssNumber[t]?"":"px"),c=(he.cssNumber[t]||"px"!==l&&+u)&&je.exec(he.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,he.style(e,t,c+l);while(o!==(o=a()/u)&&1!==o&&--s)}return n&&(c=+c||+u||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=c,i.end=r)),r}function h(e){var t=Be.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function p(e,t){var n,i,r=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||he.nodeName(i,t)?o.push(i):he.merge(o,p(i,t));return void 0===t||t&&he.nodeName(e,t)?he.merge([e],o):o}function m(e,t){for(var n,i=0;null!=(n=e[i]);i++)he._data(n,"globalEval",!t||he._data(t[i],"globalEval"))}function g(e){Pe.test(e.type)&&(e.defaultChecked=e.checked)}function v(e,t,n,i,r){for(var o,s,a,u,l,c,d,f=e.length,v=h(t),y=[],b=0;f>b;b++)if(s=e[b],s||0===s)if("object"===he.type(s))he.merge(y,s.nodeType?[s]:s);else if(ze.test(s)){for(u=u||v.appendChild(t.createElement("div")),l=($e.exec(s)||["",""])[1].toLowerCase(),d=Ue[l]||Ue._default,u.innerHTML=d[1]+he.htmlPrefilter(s)+d[2],o=d[0];o--;)u=u.lastChild;if(!de.leadingWhitespace&&Ie.test(s)&&y.push(t.createTextNode(Ie.exec(s)[0])),!de.tbody)for(s="table"!==l||Ge.test(s)?""!==d[1]||Ge.test(s)?0:u:u.firstChild,o=s&&s.childNodes.length;o--;)he.nodeName(c=s.childNodes[o],"tbody")&&!c.childNodes.length&&s.removeChild(c);for(he.merge(y,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=v.lastChild}else y.push(t.createTextNode(s));for(u&&v.removeChild(u),de.appendChecked||he.grep(p(y,"input"),g),b=0;s=y[b++];)if(i&&he.inArray(s,i)>-1)r&&r.push(s);else if(a=he.contains(s.ownerDocument,s),u=p(v.appendChild(s),"script"),a&&m(u),n)for(o=0;s=u[o++];)qe.test(s.type||"")&&n.push(s);return u=null,v}function y(){return!0}function b(){return!1}function x(){try{return ie.activeElement}catch(e){}}function _(e,t,n,i,r,o){var s,a;if("object"==typeof t){"string"!=typeof n&&(i=i||n,n=void 0);for(a in t)_(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),r===!1)r=b;else if(!r)return e;return 1===o&&(s=r,r=function(e){return he().off(e),s.apply(this,arguments)},r.guid=s.guid||(s.guid=he.guid++)),e.each(function(){he.event.add(this,t,r,i,n)})}function w(e,t){return he.nodeName(e,"table")&&he.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function T(e){return e.type=(null!==he.find.attr(e,"type"))+"/"+e.type,e}function D(e){var t=rt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function S(e,t){if(1===t.nodeType&&he.hasData(e)){var n,i,r,o=he._data(e),s=he._data(t,o),a=o.events;if(a){delete s.handle,s.events={};for(n in a)for(i=0,r=a[n].length;r>i;i++)he.event.add(t,n,a[n][i])}s.data&&(s.data=he.extend({},s.data))}}function C(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!de.noCloneEvent&&t[he.expando]){r=he._data(t);for(i in r.events)he.removeEvent(t,i,r.handle);t.removeAttribute(he.expando)}"script"===n&&t.text!==e.text?(T(t).text=e.text,D(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),de.html5Clone&&e.innerHTML&&!he.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Pe.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function k(e,t,n,i){t=oe.apply([],t);var r,o,s,a,u,l,c=0,d=e.length,f=d-1,h=t[0],m=he.isFunction(h);if(m||d>1&&"string"==typeof h&&!de.checkClone&&it.test(h))return e.each(function(r){var o=e.eq(r);m&&(t[0]=h.call(this,r,o.html())),k(o,t,n,i)});if(d&&(l=v(t,e[0].ownerDocument,!1,e,i),r=l.firstChild,1===l.childNodes.length&&(l=r),r||i)){for(a=he.map(p(l,"script"),T),s=a.length;d>c;c++)o=l,c!==f&&(o=he.clone(o,!0,!0),s&&he.merge(a,p(o,"script"))),n.call(e[c],o,c);if(s)for(u=a[a.length-1].ownerDocument,he.map(a,D),c=0;s>c;c++)o=a[c],qe.test(o.type||"")&&!he._data(o,"globalEval")&&he.contains(u,o)&&(o.src?he._evalUrl&&he._evalUrl(o.src):he.globalEval((o.text||o.textContent||o.innerHTML||"").replace(ot,"")));l=r=null}return e}function E(e,t,n){for(var i,r=t?he.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||he.cleanData(p(i)),i.parentNode&&(n&&he.contains(i.ownerDocument,i)&&m(p(i,"script")),i.parentNode.removeChild(i));return e}function N(e,t){var n=he(t.createElement(e)).appendTo(t.body),i=he.css(n[0],"display");return n.detach(),i}function M(e){var t=ie,n=lt[e];return n||(n=N(e,t),"none"!==n&&n||(ut=(ut||he("