Lightweight CSS Framework for Building Apps and Websites https://crispy-css.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
11 KiB

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);Object(r.a)(".header",".nav","nav--fixed",48)},function(t,e,n){"use strict";e.a=function(t,e,n,r){let u=i()(e),o=i()(t);void 0===r&&(r=0);u.css("top",o.outerHeight()+r+"px"),window.addEventListener("scroll",function(t){t.pageY>o.outerHeight()?u.addClass(n):u.removeClass(n)})};var r=n(2),i=n.n(r)},function(t,e,n){"use strict";var r,i;void 0===(i="function"==typeof(r=function(){var t,e=document,n=window,r=Array.prototype,i=r.slice,u=r.filter,o=r.push,s=function(){},c=function(t){return"function"==typeof t&&t.call},a=function(t){return"string"==typeof t},f=/^#[\w-]*$/,h=/^\.[\w-]*$/,l=/<.+>/,d=/^\w+$/;function p(t,n){return n=n||e,h.test(t)?n.getElementsByClassName(t.slice(1)):d.test(t)?n.getElementsByTagName(t):n.querySelectorAll(t)}function v(n){if(!t){var r=(t=e.implementation.createHTMLDocument(null)).createElement("base");r.href=e.location.href,t.head.appendChild(r)}return t.body.innerHTML=n,t.body.childNodes}function m(t){"loading"!==e.readyState?setTimeout(t):e.addEventListener("DOMContentLoaded",t)}function g(t,r){if(!t)return this;if(t.cash&&t!==n)return t;var i,u=t,o=0;if(a(t))u=f.test(t)?e.getElementById(t.slice(1)):l.test(t)?v(t):p(t,r);else if(c(t))return m(t),this;if(!u)return this;if(u.nodeType||u===n)this[0]=u,this.length=1;else for(i=this.length=u.length;o<i;o++)this[o]=u[o];return this}function y(t,e){return new g(t,e)}var b=y.fn=y.prototype=g.prototype={cash:!0,length:0,push:o,splice:r.splice,map:r.map,init:g};function x(t,e){for(var n=t.length,r=0;r<n&&!1!==e.call(t[r],t[r],r,t);r++);}function C(t,e){var n=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!n&&n.call(t,e)}function L(t){return a(t)?C:t.cash?function(e){return t.is(e)}:function(t,e){return t===e}}function N(t){return y(i.call(t).filter(function(t,e,n){return n.indexOf(t)===e}))}Object.defineProperty(b,"constructor",{value:y}),y.parseHTML=v,y.noop=s,y.isFunction=c,y.isString=a,y.extend=b.extend=function(t){t=t||{};var e=i.call(arguments),n=e.length,r=1;for(1===e.length&&(t=this,r=0);r<n;r++)if(e[r])for(var u in e[r])e[r].hasOwnProperty(u)&&(t[u]=e[r][u]);return t},y.extend({merge:function(t,e){for(var n=+e.length,r=t.length,i=0;i<n;r++,i++)t[r]=e[i];return t.length=r,t},each:x,matches:C,unique:N,isArray:Array.isArray,isNumeric:function(t){return!isNaN(parseFloat(t))&&isFinite(t)}});var E=y.uid="_cash"+Date.now();function w(t){return t[E]=t[E]||{}}function T(t,e,n){return w(t)[e]=n}function A(t,e){var n=w(t);return void 0===n[e]&&(n[e]=t.dataset?t.dataset[e]:y(t).attr("data-"+e)),n[e]}b.extend({data:function(t,e){if(a(t))return void 0===e?A(this[0],t):this.each(function(n){return T(n,t,e)});for(var n in t)this.data(n,t[n]);return this},removeData:function(t){return this.each(function(e){return function(t,e){var n=w(t);n?delete n[e]:t.dataset?delete t.dataset[e]:y(t).removeAttr("data-"+name)}(e,t)})}});var M=/\S+/g;function S(t){return a(t)&&t.match(M)}function O(t,e){return t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className)}function B(t,e){t.classList?t.classList.add(e):O(t,e)||(t.className+=" "+e)}function H(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(e,"")}b.extend({addClass:function(t){var e=S(t);return e?this.each(function(t){x(e,function(e){B(t,e)})}):this},attr:function(t,e){if(t){if(a(t))return void 0===e?this[0]?this[0].getAttribute?this[0].getAttribute(t):this[0][t]:void 0:this.each(function(n){n.setAttribute?n.setAttribute(t,e):n[t]=e});for(var n in t)this.attr(n,t[n]);return this}},hasClass:function(t){var e=!1,n=S(t);return n&&n.length&&this.each(function(t){return!(e=O(t,n[0]))}),e},prop:function(t,e){if(a(t))return void 0===e?this[0][t]:this.each(function(n){n[t]=e});for(var n in t)this.prop(n,t[n]);return this},removeAttr:function(t){return this.each(function(e){e.removeAttribute?e.removeAttribute(t):delete e[t]})},removeClass:function(t){if(!arguments.length)return this.attr("class","");var e=S(t);return e?this.each(function(t){x(e,function(e){H(t,e)})}):this},removeProp:function(t){return this.each(function(e){delete e[t]})},toggleClass:function(t,e){if(void 0!==e)return this[e?"addClass":"removeClass"](t);var n=S(t);return n?this.each(function(t){x(n,function(e){O(t,e)?H(t,e):B(t,e)})}):this}}),b.extend({add:function(t,e){return N(y.merge(this,y(t,e)))},each:function(t){return x(this,t),this},eq:function(t){return y(this.get(t))},filter:function(t){if(!t)return this;var e=c(t)?t:L(t);return y(u.call(this,function(n){return e(n,t)}))},first:function(){return this.eq(0)},get:function(t){return void 0===t?i.call(this):t<0?this[t+this.length]:this[t]},index:function(t){var e=t?y(t)[0]:this[0],n=t?this:y(e).parent().children();return i.call(n).indexOf(e)},last:function(){return this.eq(-1)}});var P,_,j,k,I=(P=/(?:^\w|[A-Z]|\b\w)/g,_=/[\s-_]+/g,function(t){return t.replace(P,function(t,e){return t[0===e?"toLowerCase":"toUpperCase"]()}).replace(_,"")}),R=(j={},k=document.createElement("div").style,function(t){if(t=I(t),j[t])return j[t];var e=t.charAt(0).toUpperCase()+t.slice(1);return x((t+" "+["webkit","moz","ms","o"].join(e+" ")+e).split(" "),function(e){if(e in k)return j[e]=t=j[t]=e,!1}),j[t]});function q(t,e){return parseInt(n.getComputedStyle(t[0],null)[e],10)||0}function D(t,e,n){var r,i=A(t,"_cashEvents"),u=i&&i[e];u&&(n?(t.removeEventListener(e,n),(r=u.indexOf(n))>=0&&u.splice(r,1)):(x(u,function(n){t.removeEventListener(e,n)}),u=[]))}function F(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e).replace(/%20/g,"+")}function U(t){var e=t.type;if(!e)return null;switch(e.toLowerCase()){case"select-one":return function(t){var e=t.selectedIndex;return e>=0?t.options[e].value:null}(t);case"select-multiple":return function(t){var e=[];return x(t.options,function(t){t.selected&&e.push(t.value)}),e.length?e:null}(t);case"radio":case"checkbox":return t.checked?t.value:null;default:return t.value?t.value:null}}function $(t,e,n){var r=a(e);r||!e.length?x(t,r?function(t){return t.insertAdjacentHTML(n?"afterbegin":"beforeend",e)}:function(t,r){return function(t,e,n){if(n){var r=t.childNodes[0];t.insertBefore(e,r)}else t.appendChild(e)}(t,0===r?e:e.cloneNode(!0),n)}):x(e,function(e){return $(t,e,n)})}y.prefixedProp=R,y.camelCase=I,b.extend({css:function(t,e){if(a(t))return t=R(t),arguments.length>1?this.each(function(n){return n.style[t]=e}):n.getComputedStyle(this[0])[t];for(var r in t)this.css(r,t[r]);return this}}),x(["Width","Height"],function(t){var e=t.toLowerCase();b[e]=function(){return this[0].getBoundingClientRect()[e]},b["inner"+t]=function(){return this[0]["client"+t]},b["outer"+t]=function(e){return this[0]["offset"+t]+(e?q(this,"margin"+("Width"===t?"Left":"Top"))+q(this,"margin"+("Width"===t?"Right":"Bottom")):0)}}),b.extend({off:function(t,e){return this.each(function(n){return D(n,t,e)})},on:function(t,e,n,r){var i;if(!a(t)){for(var u in t)this.on(u,e,t[u]);return this}return c(e)&&(n=e,e=null),"ready"===t?(m(n),this):(e&&(i=n,n=function(t){for(var n=t.target;!C(n,e);){if(n===this)return!1;n=n.parentNode}n&&i.call(n,t)}),this.each(function(e){var i=n;r&&(i=function(){n.apply(this,arguments),D(e,t,i)}),function(t,e,n){var r=A(t,"_cashEvents")||T(t,"_cashEvents",{});r[e]=r[e]||[],r[e].push(n),t.addEventListener(e,n)}(e,t,i)}))},one:function(t,e,n){return this.on(t,e,n,!0)},ready:m,trigger:function(t,n){var r=e.createEvent("HTMLEvents");return r.data=n,r.initEvent(t,!0,!1),this.each(function(t){return t.dispatchEvent(r)})}}),b.extend({serialize:function(){var t="";return x(this[0].elements||this,function(e){if(!e.disabled&&"FIELDSET"!==e.tagName){var n=e.name;switch(e.type.toLowerCase()){case"file":case"reset":case"submit":case"button":break;case"select-multiple":var r=U(e);null!==r&&x(r,function(e){t+=F(n,e)});break;default:var i=U(e);null!==i&&(t+=F(n,i))}}}),t.substr(1)},val:function(t){return void 0===t?U(this[0]):this.each(function(e){return e.value=t})}}),b.extend({after:function(t){return y(t).insertAfter(this),this},append:function(t){return $(this,t),this},appendTo:function(t){return $(y(t),this),this},before:function(t){return y(t).insertBefore(this),this},clone:function(){return y(this.map(function(t){return t.cloneNode(!0)}))},empty:function(){return this.html(""),this},html:function(t){if(void 0===t)return this[0].innerHTML;var e=t.nodeType?t[0].outerHTML:t;return this.each(function(t){return t.innerHTML=e})},insertAfter:function(t){var e=this;return y(t).each(function(t,n){var r=t.parentNode,i=t.nextSibling;e.each(function(t){r.insertBefore(0===n?t:t.cloneNode(!0),i)})}),this},insertBefore:function(t){var e=this;return y(t).each(function(t,n){var r=t.parentNode;e.each(function(e){r.insertBefore(0===n?e:e.cloneNode(!0),t)})}),this},prepend:function(t){return $(this,t,!0),this},prependTo:function(t){return $(y(t),this,!0),this},remove:function(){return this.each(function(t){return t.parentNode.removeChild(t)})},text:function(t){return void 0===t?this[0].textContent:this.each(function(e){return e.textContent=t})}});var z=e.documentElement;return b.extend({position:function(){var t=this[0];return{left:t.offsetLeft,top:t.offsetTop}},offset:function(){var t=this[0].getBoundingClientRect();return{top:t.top+n.pageYOffset-z.clientTop,left:t.left+n.pageXOffset-z.clientLeft}},offsetParent:function(){return y(this[0].offsetParent)}}),b.extend({children:function(t){var e=[];return this.each(function(t){o.apply(e,t.children)}),e=N(e),t?e.filter(function(e){return C(e,t)}):e},closest:function(t){return!t||this.length<1?y():this.is(t)?this.filter(t):this.parent().closest(t)},is:function(t){if(!t)return!1;var e=!1,n=L(t);return this.each(function(r){return!(e=n(r,t))}),e},find:function(t){if(!t||t.nodeType)return y(t&&this.has(t).length?t:null);var e=[];return this.each(function(n){o.apply(e,p(t,n))}),N(e)},has:function(t){var e=a(t)?function(e){return 0!==p(t,e).length}:function(e){return e.contains(t)};return this.filter(e)},next:function(){return y(this[0].nextElementSibling)},not:function(t){if(!t)return this;var e=L(t);return this.filter(function(n){return!e(n,t)})},parent:function(){var t=[];return this.each(function(e){e&&e.parentNode&&t.push(e.parentNode)}),N(t)},parents:function(t){var n,r=[];return this.each(function(i){for(n=i;n&&n.parentNode&&n!==e.body.parentNode;)n=n.parentNode,(!t||t&&C(n,t))&&r.push(n)}),N(r)},prev:function(){return y(this[0].previousElementSibling)},siblings:function(){var t=this.parent().children(),e=this[0];return t.filter(function(t){return t!==e})}}),y})?r.call(e,n,e,t):r)||(t.exports=i)}]);