SCSS version of Foundation5 as an option
did
committed Jun 10, 2014
commit 531aa130f2ea1b1751584e99f066cad14e64c06a
Showing 74
changed files with
17469 additions
and 16422 deletions
generators/foundation5/public/javascripts/foundation.min.js
+10
-3
| @@ | @@ -1,3 +1,10 @@ |
| - | !function(t,e,i,s){"use strict";function n(t){return("string"==typeof t||t instanceof String)&&(t=t.replace(/^[\\/'"]+|(;\s?})+|[\\/'"]+$/g,"")),t}0===t("head").has(".foundation-mq-small").length&&t("head").append('<meta class="foundation-mq-small">'),0===t("head").has(".foundation-mq-medium").length&&t("head").append('<meta class="foundation-mq-medium">'),0===t("head").has(".foundation-mq-large").length&&t("head").append('<meta class="foundation-mq-large">'),0===t("head").has(".foundation-mq-xlarge").length&&t("head").append('<meta class="foundation-mq-xlarge">'),0===t("head").has(".foundation-mq-xxlarge").length&&t("head").append('<meta class="foundation-mq-xxlarge">'),t(function(){"undefined"!=typeof FastClick&&"undefined"!=typeof i.body&&FastClick.attach(i.body)});var a=function(e,s){return"string"==typeof e?s?t(s.querySelectorAll(e)):t(i.querySelectorAll(e)):t(e,s)};e.matchMedia=e.matchMedia||function(t){var e,i=t.documentElement,s=i.firstElementChild||i.firstChild,n=t.createElement("body"),a=t.createElement("div");return a.id="mq-test-1",a.style.cssText="position:absolute;top:-100em",n.style.background="none",n.appendChild(a),function(t){return a.innerHTML='­<style media="'+t+'"> #mq-test-1 { width: 42px; }</style>',i.insertBefore(n,s),e=42===a.offsetWidth,i.removeChild(n),{matches:e,media:t}}}(i),function(){function t(){i&&(a(t),jQuery.fx.tick())}for(var i,s=0,n=["webkit","moz"],a=e.requestAnimationFrame,o=e.cancelAnimationFrame;s<n.length&&!a;s++)a=e[n[s]+"RequestAnimationFrame"],o=o||e[n[s]+"CancelAnimationFrame"]||e[n[s]+"CancelRequestAnimationFrame"];a?(e.requestAnimationFrame=a,e.cancelAnimationFrame=o,jQuery.fx.timer=function(e){e()&&jQuery.timers.push(e)&&!i&&(i=!0,t())},jQuery.fx.stop=function(){i=!1}):(e.requestAnimationFrame=function(t){var i=(new Date).getTime(),n=Math.max(0,16-(i-s)),a=e.setTimeout(function(){t(i+n)},n);return s=i+n,a},e.cancelAnimationFrame=function(t){clearTimeout(t)})}(jQuery),e.Foundation={name:"Foundation",version:"5.0.3",media_queries:{small:a(".foundation-mq-small").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),medium:a(".foundation-mq-medium").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),large:a(".foundation-mq-large").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xlarge:a(".foundation-mq-xlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xxlarge:a(".foundation-mq-xxlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,"")},stylesheet:t("<style></style>").appendTo("head")[0].sheet,init:function(t,e,i,s,n){var o=[t,i,s,n],r=[];if(this.rtl=/rtl/i.test(a("html").attr("dir")),this.scope=t||this.scope,e&&"string"==typeof e&&!/reflow/i.test(e))this.libs.hasOwnProperty(e)&&r.push(this.init_lib(e,o));else for(var l in this.libs)r.push(this.init_lib(l,e));return t},init_lib:function(t,e){return this.libs.hasOwnProperty(t)?(this.patch(this.libs[t]),e&&e.hasOwnProperty(t)?this.libs[t].init.apply(this.libs[t],[this.scope,e[t]]):(e=e instanceof Array?e:Array(e),this.libs[t].init.apply(this.libs[t],e))):function(){}},patch:function(t){t.scope=this.scope,t.data_options=this.lib_methods.data_options,t.bindings=this.lib_methods.bindings,t.S=a,t.rtl=this.rtl},inherit:function(t,e){for(var i=e.split(" "),s=i.length-1;s>=0;s--)this.lib_methods.hasOwnProperty(i[s])&&(this.libs[t.name][i[s]]=this.lib_methods[i[s]])},random_str:function(t){var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");t||(t=Math.floor(Math.random()*e.length));for(var i="",s=0;t>s;s++)i+=e[Math.floor(Math.random()*e.length)];return i},libs:{},lib_methods:{throttle:function(t,e){var i=null;return function(){var s=this,n=arguments;clearTimeout(i),i=setTimeout(function(){t.apply(s,n)},e)}},data_options:function(e){function i(t){return!isNaN(t-0)&&null!==t&&""!==t&&t!==!1&&t!==!0}function s(e){return"string"==typeof e?t.trim(e):e}var n,a,o,r,l={},d=e.data("options");if("object"==typeof d)return d;for(o=(d||":").split(";"),r=o.length,n=r-1;n>=0;n--)a=o[n].split(":"),/true/i.test(a[1])&&(a[1]=!0),/false/i.test(a[1])&&(a[1]=!1),i(a[1])&&(a[1]=parseInt(a[1],10)),2===a.length&&a[0].length>0&&(l[s(a[0])]=s(a[1]));return l},delay:function(t,e){return setTimeout(t,e)},empty:function(t){if(t.length&&t.length>0)return!1;if(t.length&&0===t.length)return!0;for(var e in t)if(hasOwnProperty.call(t,e))return!1;return!0},register_media:function(e,i){Foundation.media_queries[e]===s&&(t("head").append('<meta class="'+i+'">'),Foundation.media_queries[e]=n(t("."+i).css("font-family")))},addCustomRule:function(t,e){if(e===s)Foundation.stylesheet.insertRule(t,Foundation.stylesheet.cssRules.length);else{var i=Foundation.media_queries[e];i!==s&&Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[e]+"{ "+t+" }")}},loaded:function(t,e){function i(){e(t[0])}function s(){if(this.one("load",i),/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var t=this.attr("src"),e=t.match(/\?/)?"&":"?";e+="random="+(new Date).getTime(),this.attr("src",t+e)}}return t.attr("src")?(t[0].complete||4===t[0].readyState?i():s.call(t),void 0):(i(),void 0)},bindings:function(e,i){var s=this,n=!a(this).data(this.name+"-init");return"string"==typeof e?this[e].call(this,i):(a(this.scope).is("[data-"+this.name+"]")?(a(this.scope).data(this.name+"-init",t.extend({},this.settings,i||e,this.data_options(a(this.scope)))),n&&this.events(this.scope)):a("[data-"+this.name+"]",this.scope).each(function(){var n=!a(this).data(s.name+"-init");a(this).data(s.name+"-init",t.extend({},s.settings,i||e,s.data_options(a(this)))),n&&s.events(this)}),void 0)}}},t.fn.foundation=function(){var t=Array.prototype.slice.call(arguments,0);return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(t)),this})}}(jQuery,this,this.document),function(t){"use strict";Foundation.libs.alert={name:"alert",version:"5.0.0",settings:{animation:"fadeOut",speed:300,callback:function(){}},init:function(t,e,i){this.bindings(e,i)},events:function(){t(this.scope).off(".alert").on("click.fndtn.alert","[data-alert] a.close",function(e){var i=t(this).closest("[data-alert]"),s=i.data("alert-init")||Foundation.libs.alert.settings;e.preventDefault(),i[s.animation](s.speed,function(){t(this).trigger("closed").remove(),s.callback()})})},reflow:function(){}}}(jQuery,this,this.document),function(t){"use strict";Foundation.libs.accordion={name:"accordion",version:"5.0.1",settings:{active_class:"active",toggleable:!0},init:function(t,e,i){this.bindings(e,i)},events:function(){t(this.scope).off(".accordion").on("click.fndtn.accordion","[data-accordion] > dd > a",function(e){var i=t(this).parent(),s=t("#"+this.href.split("#")[1]),n=t("> dd > .content",s.closest("[data-accordion]")),a=i.parent().data("accordion-init"),o=t("> dd > .content."+a.active_class,i.parent());return e.preventDefault(),o[0]==s[0]&&a.toggleable?s.toggleClass(a.active_class):(n.removeClass(a.active_class),s.addClass(a.active_class),void 0)})},off:function(){},reflow:function(){}}}(jQuery,this,this.document),function(t,e,i,s){"use strict";Foundation.libs.clearing={name:"clearing",version:"5.0.3",settings:{templates:{viewing:'<a href="#" class="clearing-close">×</a><div class="visible-img" style="display: none"><img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" /><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div>'},close_selectors:".clearing-close",init:!1,locked:!1},init:function(e,i,s){var n=this;Foundation.inherit(this,"throttle loaded"),this.bindings(i,s),t(this.scope).is("[data-clearing]")?this.assemble(t("li",this.scope)):t("[data-clearing]",this.scope).each(function(){n.assemble(t("li",this))})},events:function(i){var s=this;t(this.scope).off(".clearing").on("click.fndtn.clearing","ul[data-clearing] li",function(e,i,n){var i=i||t(this),n=n||i,a=i.next("li"),o=i.closest("[data-clearing]").data("clearing-init"),r=t(e.target);e.preventDefault(),o||(s.init(),o=i.closest("[data-clearing]").data("clearing-init")),n.hasClass("visible")&&i[0]===n[0]&&a.length>0&&s.is_open(i)&&(n=a,r=t("img",n)),s.open(r,i,n),s.update_paddles(n)}).on("click.fndtn.clearing",".clearing-main-next",function(t){s.nav(t,"next")}).on("click.fndtn.clearing",".clearing-main-prev",function(t){s.nav(t,"prev")}).on("click.fndtn.clearing",this.settings.close_selectors,function(t){Foundation.libs.clearing.close(t,this)}).on("keydown.fndtn.clearing",function(t){s.keydown(t)}),t(e).off(".clearing").on("resize.fndtn.clearing",function(){s.resize()}),this.swipe_events(i)},swipe_events:function(){var e=this;t(this.scope).on("touchstart.fndtn.clearing",".visible-img",function(e){e.touches||(e=e.originalEvent);var i={start_page_x:e.touches[0].pageX,start_page_y:e.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:s};t(this).data("swipe-transition",i),e.stopPropagation()}).on("touchmove.fndtn.clearing",".visible-img",function(i){if(i.touches||(i=i.originalEvent),!(i.touches.length>1||i.scale&&1!==i.scale)){var s=t(this).data("swipe-transition");if("undefined"==typeof s&&(s={}),s.delta_x=i.touches[0].pageX-s.start_page_x,"undefined"==typeof s.is_scrolling&&(s.is_scrolling=!!(s.is_scrolling||Math.abs(s.delta_x)<Math.abs(i.touches[0].pageY-s.start_page_y))),!s.is_scrolling&&!s.active){i.preventDefault();var n=s.delta_x<0?"next":"prev";s.active=!0,e.nav(i,n)}}}).on("touchend.fndtn.clearing",".visible-img",function(e){t(this).data("swipe-transition",{}),e.stopPropagation()})},assemble:function(e){var i=e.parent();if(!i.parent().hasClass("carousel")){i.after('<div id="foundationClearingHolder"></div>');var s=t("#foundationClearingHolder"),n=i.data("clearing-init"),a=i.detach(),o={grid:'<div class="carousel">'+a[0].outerHTML+"</div>",viewing:n.templates.viewing},r='<div class="clearing-assembled"><div>'+o.viewing+o.grid+"</div></div>";return s.after(r).remove()}},open:function(e,i,s){var n=s.closest(".clearing-assembled"),a=t("div",n).first(),o=t(".visible-img",a),r=t("img",o).not(e);this.locked()||(r.attr("src",this.load(e)).css("visibility","hidden"),this.loaded(r,function(){r.css("visibility","visible"),n.addClass("clearing-blackout"),a.addClass("clearing-container"),o.show(),this.fix_height(s).caption(t(".clearing-caption",o),e).center(r).shift(i,s,function(){s.siblings().removeClass("visible"),s.addClass("visible")})}.bind(this)))},close:function(e,i){e.preventDefault();var s,n,a=function(t){return/blackout/.test(t.selector)?t:t.closest(".clearing-blackout")}(t(i));return i===e.target&&a&&(s=t("div",a).first(),n=t(".visible-img",s),this.settings.prev_index=0,t("ul[data-clearing]",a).attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),s.removeClass("clearing-container"),n.hide()),!1},is_open:function(t){return t.parent().prop("style").length>0},keydown:function(e){var i=t("ul[data-clearing]",".clearing-blackout");39===e.which&&this.go(i,"next"),37===e.which&&this.go(i,"prev"),27===e.which&&t("a.clearing-close").trigger("click")},nav:function(e,i){var s=t("ul[data-clearing]",".clearing-blackout");e.preventDefault(),this.go(s,i)},resize:function(){var e=t("img",".clearing-blackout .visible-img");e.length&&this.center(e)},fix_height:function(e){var i=e.parent().children();return i.each(function(){var e=t(this),i=e.find("img");e.height()>i.outerHeight()&&e.addClass("fix-height")}).closest("ul").width(100*i.length+"%"),this},update_paddles:function(e){var i=e.closest(".carousel").siblings(".visible-img");e.next().length>0?t(".clearing-main-next",i).removeClass("disabled"):t(".clearing-main-next",i).addClass("disabled"),e.prev().length>0?t(".clearing-main-prev",i).removeClass("disabled"):t(".clearing-main-prev",i).addClass("disabled")},center:function(t){return this.rtl?t.css({marginRight:-(t.outerWidth()/2),marginTop:-(t.outerHeight()/2),left:"auto",right:"50%"}):t.css({marginLeft:-(t.outerWidth()/2),marginTop:-(t.outerHeight()/2)}),this},load:function(t){if("A"===t[0].nodeName)var e=t.attr("href");else var e=t.parent().attr("href");return this.preload(t),e?e:t.attr("src")},preload:function(t){this.img(t.closest("li").next()).img(t.closest("li").prev())},img:function(e){if(e.length){var i=new Image,s=t("a",e);i.src=s.length?s.attr("href"):t("img",e).attr("src")}return this},caption:function(t,e){var i=e.data("caption");return i?t.html(i).show():t.text("").hide(),this},go:function(e,i){var s=t(".visible",e),n=s[i]();n.length&&t("img",n).trigger("click",[s,n])},shift:function(t,e,i){var s,n=e.parent(),a=this.settings.prev_index||e.index(),o=this.direction(n,t,e),r=this.rtl?"right":"left",l=parseInt(n.css("left"),10),d=e.outerWidth(),c={};e.index()===a||/skip/.test(o)?/skip/.test(o)&&(s=e.index()-this.settings.up_count,this.lock(),s>0?(c[r]=-(s*d),n.animate(c,300,this.unlock())):(c[r]=0,n.animate(c,300,this.unlock()))):/left/.test(o)?(this.lock(),c[r]=l+d,n.animate(c,300,this.unlock())):/right/.test(o)&&(this.lock(),c[r]=l-d,n.animate(c,300,this.unlock())),i()},direction:function(e,i,s){var n,a=t("li",e),o=a.outerWidth()+a.outerWidth()/4,r=Math.floor(t(".clearing-container").outerWidth()/o)-1,l=a.index(s);return this.settings.up_count=r,n=this.adjacent(this.settings.prev_index,l)?l>r&&l>this.settings.prev_index?"right":l>r-1&&l<=this.settings.prev_index?"left":!1:"skip",this.settings.prev_index=l,n},adjacent:function(t,e){for(var i=e+1;i>=e-1;i--)if(i===t)return!0;return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},off:function(){t(this.scope).off(".fndtn.clearing"),t(e).off(".fndtn.clearing")},reflow:function(){this.init()}}}(jQuery,this,this.document),function(t,e,i){"use strict";Foundation.libs.abide={name:"abide",version:"5.0.3",settings:{focus_on_invalid:!0,error_labels:!0,timeout:1e3,patterns:{alpha:/[a-zA-Z]+/,alpha_numeric:/[a-zA-Z0-9]+/,integer:/-?\d+/,number:/-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?/,password:/(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,url:/(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/,datetime:/([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))/,time:/(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}/,dateISO:/\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/,month_day_year:/(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](19|20)\d\d/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/}},timer:null,init:function(t,e,i){this.bindings(e,i)},events:function(e){{var i=this,s=t(e).attr("novalidate","novalidate");s.data("abide-init")}s.off(".abide").on("submit.fndtn.abide validate.fndtn.abide",function(e){var s=/ajax/i.test(t(this).attr("data-abide"));return i.validate(t(this).find("input, textarea, select").get(),e,s)}).find("input, textarea, select").off(".abide").on("blur.fndtn.abide change.fndtn.abide",function(t){i.validate([this],t)}).on("keydown.fndtn.abide",function(e){var s=t(this).closest("form").data("abide-init");clearTimeout(i.timer),i.timer=setTimeout(function(){i.validate([this],e)}.bind(this),s.timeout)})},validate:function(e,i,s){for(var n=this.parse_patterns(e),a=n.length,o=t(e[0]).closest("form"),r=/submit/.test(i.type),l=0;a>l;l++)if(!n[l]&&(r||s))return this.settings.focus_on_invalid&&e[l].focus(),o.trigger("invalid"),t(e[l]).closest("form").attr("data-invalid",""),!1;return(r||s)&&o.trigger("valid"),o.removeAttr("data-invalid"),s?!1:!0},parse_patterns:function(t){for(var e=t.length,i=[],s=e-1;s>=0;s--)i.push(this.pattern(t[s]));return this.check_validation_and_apply_styles(i)},pattern:function(t){var e=t.getAttribute("type"),i="string"==typeof t.getAttribute("required"),s=t.getAttribute("pattern")||"";return this.settings.patterns.hasOwnProperty(s)&&s.length>0?[t,this.settings.patterns[s],i]:s.length>0?[t,new RegExp(s),i]:this.settings.patterns.hasOwnProperty(e)?[t,this.settings.patterns[e],i]:(s=/.*/,[t,s,i])},check_validation_and_apply_styles:function(e){for(var i=e.length,s=[],n=i-1;n>=0;n--){var a=e[n][0],o=e[n][2],r=a.value,l=a.getAttribute("data-equalto"),d="radio"===a.type,c="checkbox"===a.type,h=t('label[for="'+a.getAttribute("id")+'"]'),f=o?a.value.length>0:!0;d&&o?s.push(this.valid_radio(a,o)):c&&o?s.push(this.valid_checkbox(a,o)):l&&o?s.push(this.valid_equal(a,o)):e[n][1].test(r)&&f||!o&&a.value.length<1?(t(a).removeAttr("data-invalid").parent().removeClass("error"),h.length>0&&this.settings.error_labels&&h.removeClass("error"),s.push(!0)):(t(a).attr("data-invalid","").parent().addClass("error"),h.length>0&&this.settings.error_labels&&h.addClass("error"),s.push(!1))}return s},valid_checkbox:function(e,i){var e=t(e),s=e.is(":checked")||!i;return s?e.removeAttr("data-invalid").parent().removeClass("error"):e.attr("data-invalid","").parent().addClass("error"),s},valid_radio:function(e){for(var s=e.getAttribute("name"),n=i.getElementsByName(s),a=n.length,o=!1,r=0;a>r;r++)n[r].checked&&(o=!0);for(var r=0;a>r;r++)o?t(n[r]).removeAttr("data-invalid").parent().removeClass("error"):t(n[r]).attr("data-invalid","").parent().addClass("error");return o},valid_equal:function(e){var s=i.getElementById(e.getAttribute("data-equalto")).value,n=e.value,a=s===n;return a?t(e).removeAttr("data-invalid").parent().removeClass("error"):t(e).attr("data-invalid","").parent().addClass("error"),a}}}(jQuery,this,this.document),function(t,e){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"5.0.0",settings:{active_class:"open",is_hover:!1,opened:function(){},closed:function(){}},init:function(t,e,i){Foundation.inherit(this,"throttle"),this.bindings(e,i)},events:function(){var i=this;t(this.scope).off(".dropdown").on("click.fndtn.dropdown","[data-dropdown]",function(e){var s=t(this).data("dropdown-init")||i.settings;e.preventDefault(),i.closeall.call(i),(!s.is_hover||Modernizr.touch)&&i.toggle(t(this))}).on("mouseenter.fndtn.dropdown","[data-dropdown], [data-dropdown-content]",function(e){var s=t(this);if(clearTimeout(i.timeout),s.data("dropdown"))var n=t("#"+s.data("dropdown")),a=s;else{var n=s;a=t("[data-dropdown='"+n.attr("id")+"']")}var o=a.data("dropdown-init")||i.settings;t(e.target).data("dropdown")&&o.is_hover&&i.closeall.call(i),o.is_hover&&i.open.apply(i,[n,a])}).on("mouseleave.fndtn.dropdown","[data-dropdown], [data-dropdown-content]",function(){var e=t(this);i.timeout=setTimeout(function(){if(e.data("dropdown")){var s=e.data("dropdown-init")||i.settings;s.is_hover&&i.close.call(i,t("#"+e.data("dropdown")))}else{var n=t('[data-dropdown="'+t(this).attr("id")+'"]'),s=n.data("dropdown-init")||i.settings;s.is_hover&&i.close.call(i,e)}}.bind(this),150)}).on("click.fndtn.dropdown",function(e){var s=t(e.target).closest("[data-dropdown-content]");if(!t(e.target).data("dropdown")&&!t(e.target).parent().data("dropdown"))return!t(e.target).data("revealId")&&s.length>0&&(t(e.target).is("[data-dropdown-content]")||t.contains(s.first()[0],e.target))?(e.stopPropagation(),void 0):(i.close.call(i,t("[data-dropdown-content]")),void 0)}).on("opened.fndtn.dropdown","[data-dropdown-content]",function(){i.settings.opened.call(this)}).on("closed.fndtn.dropdown","[data-dropdown-content]",function(){i.settings.closed.call(this)}),t(e).off(".dropdown").on("resize.fndtn.dropdown",i.throttle(function(){i.resize.call(i)},50)).trigger("resize")},close:function(e){var i=this;e.each(function(){t(this).hasClass(i.settings.active_class)&&(t(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(i.settings.active_class),t(this).trigger("closed"))})},closeall:function(){var e=this;t.each(t("[data-dropdown-content]"),function(){e.close.call(e,t(this))})},open:function(t,e){this.css(t.addClass(this.settings.active_class),e),t.trigger("opened")},toggle:function(e){var i=t("#"+e.data("dropdown"));0!==i.length&&(this.close.call(this,t("[data-dropdown-content]").not(i)),i.hasClass(this.settings.active_class)?this.close.call(this,i):(this.close.call(this,t("[data-dropdown-content]")),this.open.call(this,i,e)))},resize:function(){var e=t("[data-dropdown-content].open"),i=t("[data-dropdown='"+e.attr("id")+"']");e.length&&i.length&&this.css(e,i)},css:function(i,s){var n=i.offsetParent(),a=s.offset();if(a.top-=n.offset().top,a.left-=n.offset().left,this.small())i.css({position:"absolute",width:"95%","max-width":"none",top:a.top+s.outerHeight()}),i.css(Foundation.rtl?"right":"left","2.5%");else{if(!Foundation.rtl&&t(e).width()>i.outerWidth()+s.offset().left){var o=a.left;i.hasClass("right")&&i.removeClass("right")}else{i.hasClass("right")||i.addClass("right");var o=a.left-(i.outerWidth()-s.outerWidth())}i.attr("style","").css({position:"absolute",top:a.top+s.outerHeight(),left:o})}return i},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},off:function(){t(this.scope).off(".fndtn.dropdown"),t("html, body").off(".fndtn.dropdown"),t(e).off(".fndtn.dropdown"),t("[data-dropdown-content]").off(".fndtn.dropdown"),this.settings.init=!1},reflow:function(){}}}(jQuery,this,this.document),function(t,e){"use strict";Foundation.libs.interchange={name:"interchange",version:"5.0.3",cache:{},images_loaded:!1,nodes_loaded:!1,settings:{load_attr:"interchange",named_queries:{"default":"only screen",small:Foundation.media_queries.small,medium:Foundation.media_queries.medium,large:Foundation.media_queries.large,xlarge:Foundation.media_queries.xlarge,xxlarge:Foundation.media_queries.xxlarge,landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(e,i,s){if(/IMG/.test(e[0].nodeName)){var n=e[0].src;if(new RegExp(i,"i").test(n))return;return e[0].src=i,s(e[0].src)}var a=e.data("interchange-last-path");if(a!=i)return t.get(i,function(t){e.html(t),e.data("interchange-last-path",i),s()})}}},init:function(e,i,s){Foundation.inherit(this,"throttle"),this.data_attr="data-"+this.settings.load_attr,t.extend(!0,this.settings,i,s),this.bindings(i,s),this.load("images"),this.load("nodes")},events:function(){var i=this;return t(e).off(".interchange").on("resize.fndtn.interchange",i.throttle(function(){i.resize.call(i)},50)),this},resize:function(){var e=this.cache;if(!this.images_loaded||!this.nodes_loaded)return setTimeout(t.proxy(this.resize,this),50),void 0;for(var i in e)if(e.hasOwnProperty(i)){var s=this.results(i,e[i]);s&&this.settings.directives[s.scenario[1]](s.el,s.scenario[0],function(){if(arguments[0]instanceof Array)var t=arguments[0];else var t=Array.prototype.slice.call(arguments,0);s.el.trigger(s.scenario[1],t)})}},results:function(t,e){var i=e.length;if(i>0)for(var s=this.S('[data-uuid="'+t+'"]'),n=i-1;n>=0;n--){var a,o=e[n][2];if(a=this.settings.named_queries.hasOwnProperty(o)?matchMedia(this.settings.named_queries[o]):matchMedia(o),a.matches)return{el:s,scenario:e[n]}}return!1},load:function(t,e){return("undefined"==typeof this["cached_"+t]||e)&&this["update_"+t](),this["cached_"+t]},update_images:function(){var t=this.S("img["+this.data_attr+"]"),e=t.length,i=0,s=this.data_attr;this.cache={},this.cached_images=[],this.images_loaded=0===e;for(var n=e-1;n>=0;n--){if(i++,t[n]){var a=t[n].getAttribute(s)||"";a.length>0&&this.cached_images.push(t[n])}i===e&&(this.images_loaded=!0,this.enhance("images"))}return this},update_nodes:function(){var t=this.S("["+this.data_attr+"]:not(img)"),e=t.length,i=0,s=this.data_attr;this.cached_nodes=[],this.nodes_loaded=0===e;for(var n=e-1;n>=0;n--){i++;var a=t[n].getAttribute(s)||"";a.length>0&&this.cached_nodes.push(t[n]),i===e&&(this.nodes_loaded=!0,this.enhance("nodes"))}return this},enhance:function(i){for(var s=this["cached_"+i].length,n=s-1;n>=0;n--)this.object(t(this["cached_"+i][n]));return t(e).trigger("resize")},parse_params:function(t,e,i){return[this.trim(t),this.convert_directive(e),this.trim(i)]},convert_directive:function(t){var e=this.trim(t);return e.length>0?e:"replace"},object:function(t){var e=this.parse_data_attr(t),i=[],s=e.length;if(s>0)for(var n=s-1;n>=0;n--){var a=e[n].split(/\((.*?)(\))$/);if(a.length>1){var o=a[0].split(","),r=this.parse_params(o[0],o[1],a[1]);i.push(r)}}return this.store(t,i)},uuid:function(t){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}var i=t||"-";return e()+e()+i+e()+i+e()+i+e()+i+e()+e()+e()},store:function(t,e){var i=this.uuid(),s=t.data("uuid");return s?this.cache[s]:(t.attr("data-uuid",i),this.cache[i]=e)},trim:function(e){return"string"==typeof e?t.trim(e):e},parse_data_attr:function(t){for(var e=t.data(this.settings.load_attr).split(/\[(.*?)\]/),i=e.length,s=[],n=i-1;n>=0;n--)e[n].replace(/[\W\d]+/,"").length>4&&s.push(e[n]);return s},reflow:function(){this.load("images",!0),this.load("nodes",!0)}}}(jQuery,this,this.document),function(t,e,i,s){"use strict";Foundation.libs.joyride={name:"joyride",version:"5.0.0",defaults:{expose:!1,modal:!0,tip_location:"bottom",nub_position:"auto",scroll_speed:1500,scroll_animation:"linear",timer:0,start_timer_on_click:!0,start_offset:0,next_button:!0,tip_animation:"fade",pause_after:[],exposed:[],tip_animation_fade_speed:300,cookie_monster:!1,cookie_name:"joyride",cookie_domain:!1,cookie_expires:365,tip_container:"body",tip_location_patterns:{top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},post_ride_callback:function(){},post_step_callback:function(){},pre_step_callback:function(){},pre_ride_callback:function(){},post_expose_callback:function(){},template:{link:'<a href="#close" class="joyride-close-tip">×</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',wrapper:'<div class="joyride-content-wrapper"></div>',button:'<a href="#" class="small button joyride-next-tip"></a>',modal:'<div class="joyride-modal-bg"></div>',expose:'<div class="joyride-expose-wrapper"></div>',expose_cover:'<div class="joyride-expose-cover"></div>'},expose_add_class:""},init:function(t,e,i){Foundation.inherit(this,"throttle delay"),this.settings=this.defaults,this.bindings(e,i)},events:function(){var i=this;t(this.scope).off(".joyride").on("click.fndtn.joyride",".joyride-next-tip, .joyride-modal-bg",function(t){t.preventDefault(),this.settings.$li.next().length<1?this.end():this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show())}.bind(this)).on("click.fndtn.joyride",".joyride-close-tip",function(t){t.preventDefault(),this.end()}.bind(this)),t(e).off(".joyride").on("resize.fndtn.joyride",i.throttle(function(){if(t("[data-joyride]").length>0&&i.settings.$next_tip){if(i.settings.exposed.length>0){var e=t(i.settings.exposed);e.each(function(){var e=t(this);i.un_expose(e),i.expose(e)})}i.is_phone()?i.pos_phone():i.pos_default(!1,!0)}},100))},start:function(){var e=this,i=t("[data-joyride]",this.scope),s=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],n=s.length;!i.length>0||(this.settings.init||this.events(),this.settings=i.data("joyride-init"),this.settings.$content_el=i,this.settings.$body=t(this.settings.tip_container),this.settings.body_offset=t(this.settings.tip_container).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,"function"!=typeof t.cookie&&(this.settings.cookie_monster=!1),(!this.settings.cookie_monster||this.settings.cookie_monster&&null===t.cookie(this.settings.cookie_name))&&(this.settings.$tip_content.each(function(i){var a=t(this);this.settings=t.extend({},e.defaults,e.data_options(a));for(var o=n-1;o>=0;o--)e.settings[s[o]]=parseInt(e.settings[s[o]],10);e.create({$li:a,index:i})}),!this.settings.start_timer_on_click&&this.settings.timer>0?(this.show("init"),this.startTimer()):this.show("init")))},resume:function(){this.set_li(),this.show()},tip_template:function(e){var i,s;return e.tip_class=e.tip_class||"",i=t(this.settings.template.tip).addClass(e.tip_class),s=t.trim(t(e.li).html())+this.button_text(e.button_text)+this.settings.template.link+this.timer_instance(e.index),i.append(t(this.settings.template.wrapper)),i.first().attr("data-index",e.index),t(".joyride-content-wrapper",i).append(s),i[0]},timer_instance:function(e){var i;return i=0===e&&this.settings.start_timer_on_click&&this.settings.timer>0||0===this.settings.timer?"":t(this.settings.template.timer)[0].outerHTML},button_text:function(e){return this.settings.next_button?(e=t.trim(e)||"Next",e=t(this.settings.template.button).append(e)[0].outerHTML):e="",e},create:function(e){var i=e.$li.attr("data-button")||e.$li.attr("data-text"),s=e.$li.attr("class"),n=t(this.tip_template({tip_class:s,index:e.index,button_text:i,li:e.$li}));t(this.settings.tip_container).append(n)},show:function(e){var i=null;this.settings.$li===s||-1===t.inArray(this.settings.$li.index(),this.settings.pause_after)?(this.settings.paused?this.settings.paused=!1:this.set_li(e),this.settings.attempts=0,this.settings.$li.length&&this.settings.$target.length>0?(e&&(this.settings.pre_ride_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.pre_step_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tip_settings=t.extend({},this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tip_settings.tip_location_pattern=this.settings.tip_location_patterns[this.settings.tip_settings.tip_location],/body/i.test(this.settings.$target.selector)||this.scroll_to(),this.is_phone()?this.pos_phone(!0):this.pos_default(!0),i=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tip_animation)?(i.width(0),this.settings.timer>0?(this.settings.$next_tip.show(),this.delay(function(){i.animate({width:i.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tip_animation_fade_speed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tip_animation)&&(i.width(0),this.settings.timer>0?(this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed).show(),this.delay(function(){i.animate({width:i.parent().width()},this.settings.timer,"linear") |
| - | }.bind(this),this.settings.tip_animation_fadeSpeed)):this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed)),this.settings.$current_tip=this.settings.$next_tip):this.settings.$li&&this.settings.$target.length<1?this.show():this.end()):this.settings.paused=!0},is_phone:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.modal||t(".joyride-modal-bg").hide(),this.settings.$current_tip.css("visibility","hidden"),setTimeout(t.proxy(function(){this.hide(),this.css("visibility","visible")},this.settings.$current_tip),0),this.settings.post_step_callback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(t){t?(this.settings.$li=this.settings.$tip_content.eq(this.settings.start_offset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(this.settings.$li=this.settings.$li.next(),this.set_next_tip()),this.set_target()},set_next_tip:function(){this.settings.$next_tip=t(".joyride-tip-guide").eq(this.settings.$li.index()),this.settings.$next_tip.data("closed","")},set_target:function(){var e=this.settings.$li.attr("data-class"),s=this.settings.$li.attr("data-id"),n=function(){return s?t(i.getElementById(s)):e?t("."+e).first():t("body")};this.settings.$target=n()},scroll_to:function(){var i,s;i=t(e).height()/2,s=Math.ceil(this.settings.$target.offset().top-i+this.settings.$next_tip.outerHeight()),0!=s&&t("html, body").animate({scrollTop:s},this.settings.scroll_speed,"swing")},paused:function(){return-1===t.inArray(this.settings.$li.index()+1,this.settings.pause_after)},restart:function(){this.hide(),this.settings.$li=s,this.show("init")},pos_default:function(i,s){var n=(Math.ceil(t(e).height()/2),this.settings.$next_tip.offset(),this.settings.$next_tip.find(".joyride-nub")),a=Math.ceil(n.outerWidth()/2),o=Math.ceil(n.outerHeight()/2),r=i||!1;r&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),"undefined"==typeof s&&(s=!1),/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(n):(this.bottom()?(this.rtl?this.settings.$next_tip.css({top:this.settings.$target.offset().top+o+this.settings.$target.outerHeight(),left:this.settings.$target.offset().left+this.settings.$target.outerWidth()-this.settings.$next_tip.outerWidth()}):this.settings.$next_tip.css({top:this.settings.$target.offset().top+o+this.settings.$target.outerHeight(),left:this.settings.$target.offset().left}),this.nub_position(n,this.settings.tip_settings.nub_position,"top")):this.top()?(this.rtl?this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.settings.$next_tip.outerHeight()-o,left:this.settings.$target.offset().left+this.settings.$target.outerWidth()-this.settings.$next_tip.outerWidth()}):this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.settings.$next_tip.outerHeight()-o,left:this.settings.$target.offset().left}),this.nub_position(n,this.settings.tip_settings.nub_position,"bottom")):this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.outerWidth(this.settings.$target)+this.settings.$target.offset().left+a}),this.nub_position(n,this.settings.tip_settings.nub_position,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.settings.$target.offset().left-this.outerWidth(this.settings.$next_tip)-a}),this.nub_position(n,this.settings.tip_settings.nub_position,"right")),!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts<this.settings.tip_settings.tip_location_pattern.length&&(n.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),this.settings.tip_settings.tip_location=this.settings.tip_settings.tip_location_pattern[this.settings.attempts],this.settings.attempts++,this.pos_default())),r&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_phone:function(e){var i=this.settings.$next_tip.outerHeight(),s=(this.settings.$next_tip.offset(),this.settings.$target.outerHeight()),n=t(".joyride-nub",this.settings.$next_tip),a=Math.ceil(n.outerHeight()/2),o=e||!1;n.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),o&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(n):this.top()?(this.settings.$next_tip.offset({top:this.settings.$target.offset().top-i-a}),n.addClass("bottom")):(this.settings.$next_tip.offset({top:this.settings.$target.offset().top+s+a}),n.addClass("top")),o&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_modal:function(t){this.center(),t.hide(),this.show_modal()},show_modal:function(){if(!this.settings.$next_tip.data("closed")){var e=t(".joyride-modal-bg");e.length<1&&t("body").append(this.settings.template.modal).show(),/pop/i.test(this.settings.tip_animation)?e.show():e.fadeIn(this.settings.tip_animation_fade_speed)}},expose:function(){var i,s,n,a,o,r="expose-"+Math.floor(1e4*Math.random());if(arguments.length>0&&arguments[0]instanceof t)n=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;n=this.settings.$target}return n.length<1?(e.console&&console.error("element not valid",n),!1):(i=t(this.settings.template.expose),this.settings.$body.append(i),i.css({top:n.offset().top,left:n.offset().left,width:n.outerWidth(!0),height:n.outerHeight(!0)}),s=t(this.settings.template.expose_cover),a={zIndex:n.css("z-index"),position:n.css("position")},o=null==n.attr("class")?"":n.attr("class"),n.css("z-index",parseInt(i.css("z-index"))+1),"static"==a.position&&n.css("position","relative"),n.data("expose-css",a),n.data("orig-class",o),n.attr("class",o+" "+this.settings.expose_add_class),s.css({top:n.offset().top,left:n.offset().left,width:n.outerWidth(!0),height:n.outerHeight(!0)}),this.settings.modal&&this.show_modal(),this.settings.$body.append(s),i.addClass(r),s.addClass(r),n.data("expose",r),this.settings.post_expose_callback(this.settings.$li.index(),this.settings.$next_tip,n),this.add_exposed(n),void 0)},un_expose:function(){var i,s,n,a,o,r=!1;if(arguments.length>0&&arguments[0]instanceof t)s=arguments[0];else{if(!this.settings.$target||/body/i.test(this.settings.$target.selector))return!1;s=this.settings.$target}return s.length<1?(e.console&&console.error("element not valid",s),!1):(i=s.data("expose"),n=t("."+i),arguments.length>1&&(r=arguments[1]),r===!0?t(".joyride-expose-wrapper,.joyride-expose-cover").remove():n.remove(),a=s.data("expose-css"),"auto"==a.zIndex?s.css("z-index",""):s.css("z-index",a.zIndex),a.position!=s.css("position")&&("static"==a.position?s.css("position",""):s.css("position",a.position)),o=s.data("orig-class"),s.attr("class",o),s.removeData("orig-classes"),s.removeData("expose"),s.removeData("expose-z-index"),this.remove_exposed(s),void 0)},add_exposed:function(e){this.settings.exposed=this.settings.exposed||[],e instanceof t||"object"==typeof e?this.settings.exposed.push(e[0]):"string"==typeof e&&this.settings.exposed.push(e)},remove_exposed:function(e){var i,s;e instanceof t?i=e[0]:"string"==typeof e&&(i=e),this.settings.exposed=this.settings.exposed||[],s=this.settings.exposed.length;for(var n=0;s>n;n++)if(this.settings.exposed[n]==i)return this.settings.exposed.splice(n,1),void 0},center:function(){var i=t(e);return this.settings.$next_tip.css({top:(i.height()-this.settings.$next_tip.outerHeight())/2+i.scrollTop(),left:(i.width()-this.settings.$next_tip.outerWidth())/2+i.scrollLeft()}),!0},bottom:function(){return/bottom/i.test(this.settings.tip_settings.tip_location)},top:function(){return/top/i.test(this.settings.tip_settings.tip_location)},right:function(){return/right/i.test(this.settings.tip_settings.tip_location)},left:function(){return/left/i.test(this.settings.tip_settings.tip_location)},corners:function(i){var s=t(e),n=s.height()/2,a=Math.ceil(this.settings.$target.offset().top-n+this.settings.$next_tip.outerHeight()),o=s.width()+s.scrollLeft(),r=s.height()+a,l=s.height()+s.scrollTop(),d=s.scrollTop();return d>a&&(d=0>a?0:a),r>l&&(l=r),[i.offset().top<d,o<i.offset().left+i.outerWidth(),l<i.offset().top+i.outerHeight(),s.scrollLeft()>i.offset().left]},visible:function(t){for(var e=t.length;e--;)if(t[e])return!1;return!0},nub_position:function(t,e,i){"auto"===e?t.addClass(i):t.addClass(e)},startTimer:function(){this.settings.$li.length?this.settings.automate=setTimeout(function(){this.hide(),this.show(),this.startTimer()}.bind(this),this.settings.timer):clearTimeout(this.settings.automate)},end:function(){this.settings.cookie_monster&&t.cookie(this.settings.cookie_name,"ridden",{expires:this.settings.cookie_expires,domain:this.settings.cookie_domain}),this.settings.timer>0&&clearTimeout(this.settings.automate),this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.$next_tip.data("closed",!0),t(".joyride-modal-bg").hide(),this.settings.$current_tip.hide(),this.settings.post_step_callback(this.settings.$li.index(),this.settings.$current_tip),this.settings.post_ride_callback(this.settings.$li.index(),this.settings.$current_tip),t(".joyride-tip-guide").remove()},off:function(){t(this.scope).off(".joyride"),t(e).off(".joyride"),t(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),t(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(this.settings.automate),this.settings={}},reflow:function(){}}}(jQuery,this,this.document),function(t,e){"use strict";Foundation.libs.magellan={name:"magellan",version:"5.0.0",settings:{active_class:"active",threshold:0},init:function(e,i){this.fixed_magellan=t("[data-magellan-expedition]"),this.magellan_placeholder=t("<div></div>").css({height:this.fixed_magellan.outerHeight(!0)}).hide().insertAfter(this.fixed_magellan),this.set_threshold(),this.set_active_class(i),this.last_destination=t("[data-magellan-destination]").last(),this.events()},events:function(){var i=this;t(this.scope).off(".magellan").on("arrival.fndtn.magellan","[data-magellan-arrival]",function(){var e=t(this),s=e.closest("[data-magellan-expedition]"),n=s.attr("data-magellan-active-class")||i.settings.active_class;e.closest("[data-magellan-expedition]").find("[data-magellan-arrival]").not(e).removeClass(n),e.addClass(n)}),this.fixed_magellan.off(".magellan").on("update-position.fndtn.magellan",function(){t(this)}).trigger("update-position"),t(e).off(".magellan").on("resize.fndtn.magellan",function(){this.fixed_magellan.trigger("update-position")}.bind(this)).on("scroll.fndtn.magellan",function(){var s=t(e).scrollTop();i.fixed_magellan.each(function(){var e=t(this);"undefined"==typeof e.data("magellan-top-offset")&&e.data("magellan-top-offset",e.offset().top),"undefined"==typeof e.data("magellan-fixed-position")&&e.data("magellan-fixed-position",!1);var n=s+i.settings.threshold>e.data("magellan-top-offset"),a=e.attr("data-magellan-top-offset");e.data("magellan-fixed-position")!=n&&(e.data("magellan-fixed-position",n),n?(e.addClass("fixed"),e.css({position:"fixed",top:0}),i.magellan_placeholder.show()):(e.removeClass("fixed"),e.css({position:"",top:""}),i.magellan_placeholder.hide()),n&&"undefined"!=typeof a&&0!=a&&e.css({position:"fixed",top:a+"px"}))})}),this.last_destination.length>0&&t(e).on("scroll.fndtn.magellan",function(){var s=t(e).scrollTop(),n=s+t(e).height(),a=Math.ceil(i.last_destination.offset().top);t("[data-magellan-destination]").each(function(){var e=t(this),o=e.attr("data-magellan-destination"),r=e.offset().top-e.outerHeight(!0)-s;r<=i.settings.threshold&&t("[data-magellan-arrival='"+o+"']").trigger("arrival"),n>=t(i.scope).height()&&a>s&&n>a&&t("[data-magellan-arrival]").last().trigger("arrival")})})},set_threshold:function(){"number"!=typeof this.settings.threshold&&(this.settings.threshold=this.fixed_magellan.length>0?this.fixed_magellan.outerHeight(!0):0)},set_active_class:function(t){t&&t.active_class&&"string"==typeof t.active_class&&(this.settings.active_class=t.active_class)},off:function(){t(this.scope).off(".fndtn.magellan"),t(e).off(".fndtn.magellan")},reflow:function(){}}}(jQuery,this,this.document),function(t){"use strict";Foundation.libs.offcanvas={name:"offcanvas",version:"5.0.0",settings:{},init:function(){this.events()},events:function(){t(this.scope).off(".offcanvas").on("click.fndtn.offcanvas",".left-off-canvas-toggle",function(e){e.preventDefault(),t(this).closest(".off-canvas-wrap").toggleClass("move-right")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(e){e.preventDefault(),t(".off-canvas-wrap").removeClass("move-right")}).on("click.fndtn.offcanvas",".right-off-canvas-toggle",function(e){e.preventDefault(),t(this).closest(".off-canvas-wrap").toggleClass("move-left")}).on("click.fndtn.offcanvas",".exit-off-canvas",function(e){e.preventDefault(),t(".off-canvas-wrap").removeClass("move-left")})},reflow:function(){}}}(jQuery,this,this.document),function(t,e,i,s){"use strict";var n=function(){},a=function(n,a){if(n.hasClass(a.slides_container_class))return this;var d,c,h,f,p,u,g=this,m=n,v=0,_=!1;m.children().first().addClass(a.active_slide_class),g.update_slide_number=function(e){a.slide_number&&(c.find("span:first").text(parseInt(e)+1),c.find("span:last").text(m.children().length)),a.bullets&&(h.children().removeClass(a.bullets_active_class),t(h.children().get(e)).addClass(a.bullets_active_class))},g.update_active_link=function(e){var i=t('a[data-orbit-link="'+m.children().eq(e).attr("data-orbit-slide")+'"]');i.siblings().removeClass(a.bullets_active_class),i.addClass(a.bullets_active_class)},g.build_markup=function(){m.wrap('<div class="'+a.container_class+'"></div>'),d=m.parent(),m.addClass(a.slides_container_class),a.navigation_arrows&&(d.append(t('<a href="#"><span></span></a>').addClass(a.prev_class)),d.append(t('<a href="#"><span></span></a>').addClass(a.next_class))),a.timer&&(f=t("<div>").addClass(a.timer_container_class),f.append("<span>"),f.append(t("<div>").addClass(a.timer_progress_class)),f.addClass(a.timer_paused_class),d.append(f)),a.slide_number&&(c=t("<div>").addClass(a.slide_number_class),c.append("<span></span> "+a.slide_number_text+" <span></span>"),d.append(c)),a.bullets&&(h=t("<ol>").addClass(a.bullets_container_class),d.append(h),h.wrap('<div class="orbit-bullets-container"></div>'),m.children().each(function(e){var i=t("<li>").attr("data-orbit-slide",e);h.append(i)})),a.stack_on_small&&d.addClass(a.stack_on_small_class),g.update_slide_number(0),g.update_active_link(0)},g._goto=function(e,i){if(e===v)return!1;"object"==typeof u&&u.restart();var s=m.children(),n="next";if(_=!0,v>e&&(n="prev"),e>=s.length){if(!a.circular)return!1;e=0}else if(0>e){if(!a.circular)return!1;e=s.length-1}var o=t(s.get(v)),r=t(s.get(e));o.css("zIndex",2),o.removeClass(a.active_slide_class),r.css("zIndex",4).addClass(a.active_slide_class),m.trigger("before-slide-change.fndtn.orbit"),a.before_slide_change(),g.update_active_link(e);var l=function(){var t=function(){v=e,_=!1,i===!0&&(u=g.create_timer(),u.start()),g.update_slide_number(v),m.trigger("after-slide-change.fndtn.orbit",[{slide_number:v,total_slides:s.length}]),a.after_slide_change(v,s.length)};m.height()!=r.height()&&a.variable_height?m.animate({height:r.height()},250,"linear",t):t()};if(1===s.length)return l(),!1;var d=function(){"next"===n&&p.next(o,r,l),"prev"===n&&p.prev(o,r,l)};r.height()>m.height()&&a.variable_height?m.animate({height:r.height()},250,"linear",d):d()},g.next=function(t){t.stopImmediatePropagation(),t.preventDefault(),g._goto(v+1)},g.prev=function(t){t.stopImmediatePropagation(),t.preventDefault(),g._goto(v-1)},g.link_custom=function(e){e.preventDefault();var i=t(this).attr("data-orbit-link");if("string"==typeof i&&""!=(i=t.trim(i))){var s=d.find("[data-orbit-slide="+i+"]");-1!=s.index()&&g._goto(s.index())}},g.link_bullet=function(){var e=t(this).attr("data-orbit-slide");if("string"==typeof e&&""!=(e=t.trim(e)))if(isNaN(parseInt(e))){var i=d.find("[data-orbit-slide="+e+"]");-1!=i.index()&&g._goto(i.index()+1)}else g._goto(parseInt(e))},g.timer_callback=function(){g._goto(v+1,!0)},g.compute_dimensions=function(){var e=t(m.children().get(v)),i=e.height();a.variable_height||m.children().each(function(){t(this).height()>i&&(i=t(this).height())}),m.height(i)},g.create_timer=function(){var t=new o(d.find("."+a.timer_container_class),a,g.timer_callback);return t},g.stop_timer=function(){"object"==typeof u&&u.stop()},g.toggle_timer=function(){var t=d.find("."+a.timer_container_class);t.hasClass(a.timer_paused_class)?("undefined"==typeof u&&(u=g.create_timer()),u.start()):"object"==typeof u&&u.stop()},g.init=function(){g.build_markup(),a.timer&&(u=g.create_timer(),u.start()),p=new l(a,m),"slide"===a.animation&&(p=new r(a,m)),d.on("click","."+a.next_class,g.next),d.on("click","."+a.prev_class,g.prev),d.on("click","[data-orbit-slide]",g.link_bullet),d.on("click",g.toggle_timer),a.swipe&&d.on("touchstart.fndtn.orbit",function(t){t.touches||(t=t.originalEvent);var e={start_page_x:t.touches[0].pageX,start_page_y:t.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:s};d.data("swipe-transition",e),t.stopPropagation()}).on("touchmove.fndtn.orbit",function(t){if(t.touches||(t=t.originalEvent),!(t.touches.length>1||t.scale&&1!==t.scale)){var e=d.data("swipe-transition");if("undefined"==typeof e&&(e={}),e.delta_x=t.touches[0].pageX-e.start_page_x,"undefined"==typeof e.is_scrolling&&(e.is_scrolling=!!(e.is_scrolling||Math.abs(e.delta_x)<Math.abs(t.touches[0].pageY-e.start_page_y))),!e.is_scrolling&&!e.active){t.preventDefault();var i=e.delta_x<0?v+1:v-1;e.active=!0,g._goto(i)}}}).on("touchend.fndtn.orbit",function(t){d.data("swipe-transition",{}),t.stopPropagation()}),d.on("mouseenter.fndtn.orbit",function(){a.timer&&a.pause_on_hover&&g.stop_timer()}).on("mouseleave.fndtn.orbit",function(){a.timer&&a.resume_on_mouseout&&u.start()}),t(i).on("click","[data-orbit-link]",g.link_custom),t(e).on("resize",g.compute_dimensions),t(e).on("load",g.compute_dimensions),t(e).on("load",function(){d.prev(".preloader").css("display","none")}),m.trigger("ready.fndtn.orbit")},g.init()},o=function(t,e,i){var s,n,a=this,o=e.timer_speed,r=t.find("."+e.timer_progress_class),l=-1;this.update_progress=function(t){var e=r.clone();e.attr("style",""),e.css("width",t+"%"),r.replaceWith(e),r=e},this.restart=function(){clearTimeout(n),t.addClass(e.timer_paused_class),l=-1,a.update_progress(0)},this.start=function(){return t.hasClass(e.timer_paused_class)?(l=-1===l?o:l,t.removeClass(e.timer_paused_class),s=(new Date).getTime(),r.animate({width:"100%"},l,"linear"),n=setTimeout(function(){a.restart(),i()},l),t.trigger("timer-started.fndtn.orbit"),void 0):!0},this.stop=function(){if(t.hasClass(e.timer_paused_class))return!0;clearTimeout(n),t.addClass(e.timer_paused_class);var i=(new Date).getTime();l-=i-s;var r=100-l/o*100;a.update_progress(r),t.trigger("timer-stopped.fndtn.orbit")}},r=function(e){var i=e.animation_speed,s=1===t("html[dir=rtl]").length,n=s?"marginRight":"marginLeft",a={};a[n]="0%",this.next=function(t,e,s){t.animate({marginLeft:"-100%"},i),e.animate(a,i,function(){t.css(n,"100%"),s()})},this.prev=function(t,e,s){t.animate({marginLeft:"100%"},i),e.css(n,"-100%"),e.animate(a,i,function(){t.css(n,"100%"),s()})}},l=function(e){{var i=e.animation_speed;1===t("html[dir=rtl]").length}this.next=function(t,e,s){e.css({margin:"0%",opacity:"0.01"}),e.animate({opacity:"1"},i,"linear",function(){t.css("margin","100%"),s()})},this.prev=function(t,e,s){e.css({margin:"0%",opacity:"0.01"}),e.animate({opacity:"1"},i,"linear",function(){t.css("margin","100%"),s()})}};Foundation.libs=Foundation.libs||{},Foundation.libs.orbit={name:"orbit",version:"5.0.3",settings:{animation:"slide",timer_speed:1e4,pause_on_hover:!0,resume_on_mouseout:!1,animation_speed:500,stack_on_small:!1,navigation_arrows:!0,slide_number:!0,slide_number_text:"of",container_class:"orbit-container",stack_on_small_class:"orbit-stack-on-small",next_class:"orbit-next",prev_class:"orbit-prev",timer_container_class:"orbit-timer",timer_paused_class:"paused",timer_progress_class:"orbit-progress",slides_container_class:"orbit-slides-container",bullets_container_class:"orbit-bullets",bullets_active_class:"active",slide_number_class:"orbit-slide-number",caption_class:"orbit-caption",active_slide_class:"active",orbit_transition_class:"orbit-transitioning",bullets:!0,circular:!0,timer:!0,variable_height:!1,swipe:!0,before_slide_change:n,after_slide_change:n},init:function(e,i){var s=this;if("object"==typeof i&&t.extend(!0,s.settings,i),t(e).is("[data-orbit]")){var n=t(e),o=s.data_options(n);new a(n,t.extend({},s.settings,o))}t("[data-orbit]",e).each(function(e,i){var n=t(i),o=s.data_options(n);new a(n,t.extend({},s.settings,o))})}}}(jQuery,this,this.document),function(t,e,i,s){"use strict";Foundation.libs.reveal={name:"reveal",version:"5.0.3",locked:!1,settings:{animation:"fadeAndPop",animation_speed:250,close_on_background_click:!0,close_on_esc:!0,dismiss_modal_class:"close-reveal-modal",bg_class:"reveal-modal-bg",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:t(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(e,i,s){Foundation.inherit(this,"delay"),t.extend(!0,this.settings,i,s),this.bindings(i,s)},events:function(){var e=this;return t("[data-reveal-id]",this.scope).off(".reveal").on("click.fndtn.reveal",function(i){if(i.preventDefault(),!e.locked){var s=t(this),n=s.data("reveal-ajax");if(e.locked=!0,"undefined"==typeof n)e.open.call(e,s);else{var a=n===!0?s.attr("href"):n;e.open.call(e,s,{url:a})}}}),t(this.scope).off(".reveal"),t(i).on("click.fndtn.reveal",this.close_targets(),function(i){if(i.preventDefault(),!e.locked){var s=t("[data-reveal].open").data("reveal-init"),n=t(i.target)[0]===t("."+s.bg_class)[0];if(n&&!s.close_on_background_click)return;e.locked=!0,e.close.call(e,n?t("[data-reveal].open"):t(this).closest("[data-reveal]"))}}),t("[data-reveal]",this.scope).length>0?t(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video):t(this.scope).on("open.fndtn.reveal","[data-reveal]",this.settings.open).on("opened.fndtn.reveal","[data-reveal]",this.settings.opened).on("opened.fndtn.reveal","[data-reveal]",this.open_video).on("close.fndtn.reveal","[data-reveal]",this.settings.close).on("closed.fndtn.reveal","[data-reveal]",this.settings.closed).on("closed.fndtn.reveal","[data-reveal]",this.close_video),t("body").on("keyup.fndtn.reveal",function(e){var i=t("[data-reveal].open"),s=i.data("reveal-init");s&&27===e.which&&s.close_on_esc&&i.foundation("reveal","close")}),!0},open:function(e,i){var s=this;if(e)if("undefined"!=typeof e.selector)var n=t("#"+e.data("reveal-id"));else{var n=t(this.scope);i=e}else var n=t(this.scope);var a=n.data("reveal-init");if(!n.hasClass("open")){var o=t("[data-reveal].open");if("undefined"==typeof n.data("css-top")&&n.data("css-top",parseInt(n.css("top"),10)).data("offset",this.cache_offset(n)),n.trigger("open"),o.length<1&&this.toggle_bg(n),"string"==typeof i&&(i={url:i}),"undefined"!=typeof i&&i.url){var r="undefined"!=typeof i.success?i.success:null;t.extend(i,{success:function(e,i,l){if(t.isFunction(r)&&r(e,i,l),n.html(e),t(n).foundation("section","reflow"),o.length>0){var d=o.data("reveal-init");s.hide(o,d.css.close)}s.show(n,a.css.open)}}),t.ajax(i)}else{if(o.length>0){var l=o.data("reveal-init");this.hide(o,l.css.close)}this.show(n,a.css.open)}}},close:function(e){var e=e&&e.length?e:t(this.scope),i=t("[data-reveal].open"),s=e.data("reveal-init");i.length>0&&(this.locked=!0,e.trigger("close"),this.toggle_bg(e),this.hide(i,s.css.close,s))},close_targets:function(){var t="."+this.settings.dismiss_modal_class;return this.settings.close_on_background_click?t+", ."+this.settings.bg_class:t},toggle_bg:function(e){e.data("reveal-init");0===t("."+this.settings.bg_class).length&&(this.settings.bg=t("<div />",{"class":this.settings.bg_class}).appendTo("body")),this.settings.bg.filter(":visible").length>0?this.hide(this.settings.bg):this.show(this.settings.bg)},show:function(i,s){if(s){var n=i.data("reveal-init");if(0===i.parent("body").length){var a=i.wrap('<div style="display: none;" />').parent(),o=this.settings.rootElement||"body";i.on("closed.fndtn.reveal.wrapped",function(){i.detach().appendTo(a),i.unwrap().unbind("closed.fndtn.reveal.wrapped")}),i.detach().appendTo(o)}if(/pop/i.test(n.animation)){s.top=t(e).scrollTop()-i.data("offset")+"px";var r={top:t(e).scrollTop()+i.data("css-top")+"px",opacity:1};return this.delay(function(){return i.css(s).animate(r,n.animation_speed,"linear",function(){this.locked=!1,i.trigger("opened")}.bind(this)).addClass("open")}.bind(this),n.animation_speed/2)}if(/fade/i.test(n.animation)){var r={opacity:1};return this.delay(function(){return i.css(s).animate(r,n.animation_speed,"linear",function(){this.locked=!1,i.trigger("opened")}.bind(this)).addClass("open")}.bind(this),n.animation_speed/2)}return i.css(s).show().css({opacity:1}).addClass("open").trigger("opened")}var n=this.settings;return/fade/i.test(n.animation)?i.fadeIn(n.animation_speed/2):i.show()},hide:function(i,s){if(s){var n=i.data("reveal-init");if(/pop/i.test(n.animation)){var a={top:-t(e).scrollTop()-i.data("offset")+"px",opacity:0};return this.delay(function(){return i.animate(a,n.animation_speed,"linear",function(){this.locked=!1,i.css(s).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),n.animation_speed/2)}if(/fade/i.test(n.animation)){var a={opacity:0};return this.delay(function(){return i.animate(a,n.animation_speed,"linear",function(){this.locked=!1,i.css(s).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),n.animation_speed/2)}return i.hide().css(s).removeClass("open").trigger("closed")}var n=this.settings;return/fade/i.test(n.animation)?i.fadeOut(n.animation_speed/2):i.hide()},close_video:function(){var e=t(this).find(".flex-video"),i=e.find("iframe");i.length>0&&(i.attr("data-src",i[0].src),i.attr("src","about:blank"),e.hide())},open_video:function(){var e=t(this).find(".flex-video"),i=e.find("iframe");if(i.length>0){var n=i.attr("data-src");if("string"==typeof n)i[0].src=i.attr("data-src");else{var a=i[0].src;i[0].src=s,i[0].src=a}e.show()}},cache_offset:function(t){var e=t.show().height()+parseInt(t.css("top"),10);return t.hide(),e},off:function(){t(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(jQuery,this,this.document),function(t){"use strict";Foundation.libs.tab={name:"tab",version:"5.0.3",settings:{active_class:"active",callback:function(){}},init:function(t,e,i){this.bindings(e,i)},events:function(){t(this.scope).off(".tab").on("click.fndtn.tab","[data-tab] > dd > a",function(e){e.preventDefault();var i=t(this).parent(),s=i.closest("[data-tab]"),n=t("#"+this.href.split("#")[1]),a=i.siblings(),o=s.data("tab-init");t(this).data("tab-content")&&(n=t("#"+t(this).data("tab-content").split("#")[1])),i.addClass(o.active_class).trigger("opened"),a.removeClass(o.active_class),n.siblings().removeClass(o.active_class).end().addClass(o.active_class),o.callback(i),s.trigger("toggled",[i])})},off:function(){},reflow:function(){}}}(jQuery,this,this.document),function(t){"use strict";Foundation.libs.tooltip={name:"tooltip",version:"5.0.0",settings:{additional_inheritable_classes:[],tooltip_class:".tooltip",append_to:"body",touch_close_text:"Tap To Close",disable_for_touch:!1,tip_template:function(t,e){return'<span data-selector="'+t+'" class="'+Foundation.libs.tooltip.settings.tooltip_class.substring(1)+'">'+e+'<span class="nub"></span></span>'}},cache:{},init:function(t,e,i){this.bindings(e,i)},events:function(){var e=this;Modernizr.touch?t(this.scope).off(".tooltip").on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip","[data-tooltip]",function(i){var s=t.extend({},e.settings,e.data_options(t(this)));s.disable_for_touch||(i.preventDefault(),t(s.tooltip_class).hide(),e.showOrCreateTip(t(this)))}).on("click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip",this.settings.tooltip_class,function(e){e.preventDefault(),t(this).fadeOut(150)}):t(this.scope).off(".tooltip").on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip","[data-tooltip]",function(i){var s=t(this);/enter|over/i.test(i.type)?e.showOrCreateTip(s):("mouseout"===i.type||"mouseleave"===i.type)&&e.hide(s)})},showOrCreateTip:function(t){var e=this.getTip(t);return e&&e.length>0?this.show(t):this.create(t)},getTip:function(e){var i=this.selector(e),s=null;return i&&(s=t('span[data-selector="'+i+'"]'+this.settings.tooltip_class)),"object"==typeof s?s:!1},selector:function(t){var e=t.attr("id"),i=t.attr("data-tooltip")||t.attr("data-selector");return(e&&e.length<1||!e)&&"string"!=typeof i&&(i="tooltip"+Math.random().toString(36).substring(7),t.attr("data-selector",i)),e&&e.length>0?e:i},create:function(e){var i=t(this.settings.tip_template(this.selector(e),t("<div></div>").html(e.attr("title")).html())),s=this.inheritable_classes(e);i.addClass(s).appendTo(this.settings.append_to),Modernizr.touch&&i.append('<span class="tap-to-close">'+this.settings.touch_close_text+"</span>"),e.removeAttr("title").attr("title",""),this.show(e)},reposition:function(e,i,s){var n,a,o,r,l;if(i.css("visibility","hidden").show(),n=e.data("width"),a=i.children(".nub"),o=a.outerHeight(),r=a.outerHeight(),i.css({width:n?n:"auto"}),l=function(t,e,i,s,n){return t.css({top:e?e:"auto",bottom:s?s:"auto",left:n?n:"auto",right:i?i:"auto"}).end()},l(i,e.offset().top+e.outerHeight()+10,"auto","auto",e.offset().left),this.small())l(i,e.offset().top+e.outerHeight()+10,"auto","auto",12.5,t(this.scope).width()),i.addClass("tip-override"),l(a,-o,"auto","auto",e.offset().left);else{var d=e.offset().left;Foundation.rtl&&(d=e.offset().left+e.offset().width-i.outerWidth()),l(i,e.offset().top+e.outerHeight()+10,"auto","auto",d),i.removeClass("tip-override"),s&&s.indexOf("tip-top")>-1?l(i,e.offset().top-i.outerHeight(),"auto","auto",d).removeClass("tip-override"):s&&s.indexOf("tip-left")>-1?l(i,e.offset().top+e.outerHeight()/2-i.outerHeight()/2,"auto","auto",e.offset().left-i.outerWidth()-o).removeClass("tip-override"):s&&s.indexOf("tip-right")>-1&&l(i,e.offset().top+e.outerHeight()/2-i.outerHeight()/2,"auto","auto",e.offset().left+e.outerWidth()+o).removeClass("tip-override")}i.css("visibility","visible").hide()},small:function(){return matchMedia(Foundation.media_queries.small).matches},inheritable_classes:function(e){var i=["tip-top","tip-left","tip-bottom","tip-right","noradius"].concat(this.settings.additional_inheritable_classes),s=e.attr("class"),n=s?t.map(s.split(" "),function(e){return-1!==t.inArray(e,i)?e:void 0}).join(" "):"";return t.trim(n)},show:function(t){var e=this.getTip(t);this.reposition(t,e,t.attr("class")),e.fadeIn(150)},hide:function(t){var e=this.getTip(t);e.fadeOut(150)},reload:function(){var e=t(this);return e.data("fndtn-tooltips")?e.foundationTooltips("destroy").foundationTooltips("init"):e.foundationTooltips("init")},off:function(){t(this.scope).off(".fndtn.tooltip"),t(this.settings.tooltip_class).each(function(e){t("[data-tooltip]").get(e).attr("title",t(this).text())}).remove()},reflow:function(){}}}(jQuery,this,this.document),function(t,e,i){"use strict";Foundation.libs.topbar={name:"topbar",version:"5.0.3",settings:{index:0,sticky_class:"sticky",custom_back_text:!0,back_text:"Back",is_hover:!0,mobile_show_parent_link:!1,scrolltop:!0},init:function(e,i,s){Foundation.inherit(this,"addCustomRule register_media throttle");var n=this;n.register_media("topbar","foundation-mq-topbar"),this.bindings(i,s),t("[data-topbar]",this.scope).each(function(){{var e=t(this),i=e.data("topbar-init"); |
| - | t("section",this),t("> ul",this).first()}e.data("index",0);var s=e.parent();s.hasClass("fixed")||s.hasClass(i.sticky_class)?(n.settings.sticky_class=i.sticky_class,n.settings.sticky_topbar=e,e.data("height",s.outerHeight()),e.data("stickyoffset",s.offset().top)):e.data("height",e.outerHeight()),i.assembled||n.assemble(e),i.is_hover?t(".has-dropdown",e).addClass("not-click"):t(".has-dropdown",e).removeClass("not-click"),n.addCustomRule(".f-topbar-fixed { padding-top: "+e.data("height")+"px }"),s.hasClass("fixed")&&t("body").addClass("f-topbar-fixed")})},toggle:function(i){var s=this;if(i)var n=t(i).closest("[data-topbar]");else var n=t("[data-topbar]");var a=n.data("topbar-init"),o=t("section, .section",n);s.breakpoint()&&(s.rtl?(o.css({right:"0%"}),t(">.name",o).css({right:"100%"})):(o.css({left:"0%"}),t(">.name",o).css({left:"100%"})),t("li.moved",o).removeClass("moved"),n.data("index",0),n.toggleClass("expanded").css("height","")),a.scrolltop?n.hasClass("expanded")?n.parent().hasClass("fixed")&&(a.scrolltop?(n.parent().removeClass("fixed"),n.addClass("fixed"),t("body").removeClass("f-topbar-fixed"),e.scrollTo(0,0)):n.parent().removeClass("expanded")):n.hasClass("fixed")&&(n.parent().addClass("fixed"),n.removeClass("fixed"),t("body").addClass("f-topbar-fixed")):(n.parent().hasClass(s.settings.sticky_class)&&n.parent().addClass("fixed"),n.parent().hasClass("fixed")&&(n.hasClass("expanded")?(n.addClass("fixed"),n.parent().addClass("expanded"),t("body").addClass("f-topbar-fixed")):(n.removeClass("fixed"),n.parent().removeClass("expanded"),s.update_sticky_positioning())))},timer:null,events:function(){var i=this;t(this.scope).off(".topbar").on("click.fndtn.topbar","[data-topbar] .toggle-topbar",function(t){t.preventDefault(),i.toggle(this)}).on("click.fndtn.topbar","[data-topbar] li.has-dropdown",function(e){var s=t(this),n=t(e.target),a=s.closest("[data-topbar]"),o=a.data("topbar-init");return n.data("revealId")?(i.toggle(),void 0):(i.breakpoint()||(!o.is_hover||Modernizr.touch)&&(e.stopImmediatePropagation(),s.hasClass("hover")?(s.removeClass("hover").find("li").removeClass("hover"),s.parents("li.hover").removeClass("hover")):(s.addClass("hover"),"A"===n[0].nodeName&&n.parent().hasClass("has-dropdown")&&e.preventDefault())),void 0)}).on("click.fndtn.topbar","[data-topbar] .has-dropdown>a",function(e){if(i.breakpoint()){e.preventDefault();var s=t(this),n=s.closest("[data-topbar]"),a=n.find("section, .section"),o=(s.next(".dropdown").outerHeight(),s.closest("li"));n.data("index",n.data("index")+1),o.addClass("moved"),i.rtl?(a.css({right:-(100*n.data("index"))+"%"}),a.find(">.name").css({right:100*n.data("index")+"%"})):(a.css({left:-(100*n.data("index"))+"%"}),a.find(">.name").css({left:100*n.data("index")+"%"})),n.css("height",s.siblings("ul").outerHeight(!0)+n.data("height"))}}),t(e).off(".topbar").on("resize.fndtn.topbar",i.throttle(function(){i.resize.call(i)},50)).trigger("resize"),t("body").off(".topbar").on("click.fndtn.topbar touchstart.fndtn.topbar",function(e){var i=t(e.target).closest("li").closest("li.hover");i.length>0||t("[data-topbar] li").removeClass("hover")}),t(this.scope).on("click.fndtn.topbar","[data-topbar] .has-dropdown .back",function(e){e.preventDefault();var s=t(this),n=s.closest("[data-topbar]"),a=n.find("section, .section"),o=(n.data("topbar-init"),s.closest("li.moved")),r=o.parent();n.data("index",n.data("index")-1),i.rtl?(a.css({right:-(100*n.data("index"))+"%"}),a.find(">.name").css({right:100*n.data("index")+"%"})):(a.css({left:-(100*n.data("index"))+"%"}),a.find(">.name").css({left:100*n.data("index")+"%"})),0===n.data("index")?n.css("height",""):n.css("height",r.outerHeight(!0)+n.data("height")),setTimeout(function(){o.removeClass("moved")},300)})},resize:function(){var e=this;t("[data-topbar]").each(function(){var s,n=t(this),a=(n.data("topbar-init"),n.parent("."+e.settings.sticky_class));if(!e.breakpoint()){var o=n.hasClass("expanded");n.css("height","").removeClass("expanded").find("li").removeClass("hover"),o&&e.toggle(n)}a.length>0&&(a.hasClass("fixed")?(a.removeClass("fixed"),s=a.offset().top,t(i.body).hasClass("f-topbar-fixed")&&(s-=n.data("height")),n.data("stickyoffset",s),a.addClass("fixed")):(s=a.offset().top,n.data("stickyoffset",s)))})},breakpoint:function(){return!matchMedia(Foundation.media_queries.topbar).matches},assemble:function(e){{var i=e.data("topbar-init"),s=t("section",e);t("> ul",e).first()}s.detach(),t(".has-dropdown>a",s).each(function(){var e=t(this),s=e.siblings(".dropdown"),n=e.attr("href");if(i.mobile_show_parent_link&&n&&n.length>1)var a=t('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li><a class="parent-link js-generated" href="'+n+'">'+e.text()+"</a></li>");else var a=t('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li>');1==i.custom_back_text?t("h5>a",a).html(i.back_text):t("h5>a",a).html("« "+e.html()),s.prepend(a)}),s.appendTo(e),this.sticky(),this.assembled(e)},assembled:function(e){e.data("topbar-init",t.extend({},e.data("topbar-init"),{assembled:!0}))},height:function(e){var i=0;return t("> li",e).each(function(){i+=t(this).outerHeight(!0)}),i},sticky:function(){var i=(t(e),this);t(e).on("scroll",function(){i.update_sticky_positioning()})},update_sticky_positioning:function(){var i="."+this.settings.sticky_class,s=t(e);if(t(i).length>0){var n=this.settings.sticky_topbar.data("stickyoffset");t(i).hasClass("expanded")||(s.scrollTop()>n?t(i).hasClass("fixed")||(t(i).addClass("fixed"),t("body").addClass("f-topbar-fixed")):s.scrollTop()<=n&&t(i).hasClass("fixed")&&(t(i).removeClass("fixed"),t("body").removeClass("f-topbar-fixed")))}},off:function(){t(this.scope).off(".fndtn.topbar"),t(e).off(".fndtn.topbar")},reflow:function(){}}}(jQuery,this,this.document); |
| \ No newline at end of file | |
| + | /* |
| + | * Foundation Responsive Library |
| + | * http://foundation.zurb.com |
| + | * Copyright 2014, ZURB |
| + | * Free to use under the MIT license. |
| + | * http://www.opensource.org/licenses/mit-license.php |
| + | */ |
| + | (function(e,t,n,r){"use strict";function l(e){if(typeof e=="string"||e instanceof String)e=e.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g,"");return e}var i=function(t){var n=t.length,r=e("head");while(n--)r.has("."+t[n]).length===0&&r.append('<meta class="'+t[n]+'" />')};i(["foundation-mq-small","foundation-mq-medium","foundation-mq-large","foundation-mq-xlarge","foundation-mq-xxlarge","foundation-data-attribute-namespace"]),e(function(){typeof FastClick!="undefined"&&typeof n.body!="undefined"&&FastClick.attach(n.body)});var s=function(t,r){if(typeof t=="string"){if(r){var i;if(r.jquery){i=r[0];if(!i)return r}else i=r;return e(i.querySelectorAll(t))}return e(n.querySelectorAll(t))}return e(t,r)},o=function(e){var t=[];return e||t.push("data"),this.namespace.length>0&&t.push(this.namespace),t.push(this.name),t.join("-")},u=function(e){var t=e.split("-"),n=t.length,r=[];while(n--)n!==0?r.push(t[n]):this.namespace.length>0?r.push(this.namespace,t[n]):r.push(t[n]);return r.reverse().join("-")},a=function(t,n){var r=this,i=!s(this).data(this.attr_name(!0));if(typeof t=="string")return this[t].call(this,n);s(this.scope).is("["+this.attr_name()+"]")?(s(this.scope).data(this.attr_name(!0)+"-init",e.extend({},this.settings,n||t,this.data_options(s(this.scope)))),i&&this.events(this.scope)):s("["+this.attr_name()+"]",this.scope).each(function(){var i=!s(this).data(r.attr_name(!0)+"-init");s(this).data(r.attr_name(!0)+"-init",e.extend({},r.settings,n||t,r.data_options(s(this)))),i&&r.events(this)})},f=function(e,t){function n(){t(e[0])}function r(){this.one("load",n);if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){var e=this.attr("src"),t=e.match(/\?/)?"&":"?";t+="random="+(new Date).getTime(),this.attr("src",e+t)}}if(!e.attr("src")){n();return}e[0].complete||e[0].readyState===4?n():r.call(e)};t.matchMedia=t.matchMedia||function(e){var t,n=e.documentElement,r=n.firstElementChild||n.firstChild,i=e.createElement("body"),s=e.createElement("div");return s.id="mq-test-1",s.style.cssText="position:absolute;top:-100em",i.style.background="none",i.appendChild(s),function(e){return s.innerHTML='­<style media="'+e+'"> #mq-test-1 { width: 42px; }</style>',n.insertBefore(i,r),t=s.offsetWidth===42,n.removeChild(i),{matches:t,media:e}}}(n),function(e){function a(){n&&(s(a),u&&jQuery.fx.tick())}var n,r=0,i=["webkit","moz"],s=t.requestAnimationFrame,o=t.cancelAnimationFrame,u="undefined"!=typeof jQuery.fx;for(;r<i.length&&!s;r++)s=t[i[r]+"RequestAnimationFrame"],o=o||t[i[r]+"CancelAnimationFrame"]||t[i[r]+"CancelRequestAnimationFrame"];s?(t.requestAnimationFrame=s,t.cancelAnimationFrame=o,u&&(jQuery.fx.timer=function(e){e()&&jQuery.timers.push(e)&&!n&&(n=!0,a())},jQuery.fx.stop=function(){n=!1})):(t.requestAnimationFrame=function(e){var n=(new Date).getTime(),i=Math.max(0,16-(n-r)),s=t.setTimeout(function(){e(n+i)},i);return r=n+i,s},t.cancelAnimationFrame=function(e){clearTimeout(e)})}(jQuery),t.Foundation={name:"Foundation",version:"5.2.3",media_queries:{small:s(".foundation-mq-small").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),medium:s(".foundation-mq-medium").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),large:s(".foundation-mq-large").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xlarge:s(".foundation-mq-xlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,""),xxlarge:s(".foundation-mq-xxlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g,"")},stylesheet:e("<style></style>").appendTo("head")[0].sheet,global:{namespace:r},init:function(e,t,n,r,i){var o=[e,n,r,i],u=[];this.rtl=/rtl/i.test(s("html").attr("dir")),this.scope=e||this.scope,this.set_namespace();if(t&&typeof t=="string"&&!/reflow/i.test(t))this.libs.hasOwnProperty(t)&&u.push(this.init_lib(t,o));else for(var a in this.libs)u.push(this.init_lib(a,t));return e},init_lib:function(t,n){return this.libs.hasOwnProperty(t)?(this.patch(this.libs[t]),n&&n.hasOwnProperty(t)?(typeof this.libs[t].settings!="undefined"?e.extend(!0,this.libs[t].settings,n[t]):typeof this.libs[t].defaults!="undefined"&&e.extend(!0,this.libs[t].defaults,n[t]),this.libs[t].init.apply(this.libs[t],[this.scope,n[t]])):(n=n instanceof Array?n:new Array(n),this.libs[t].init.apply(this.libs[t],n))):function(){}},patch:function(e){e.scope=this.scope,e.namespace=this.global.namespace,e.rtl=this.rtl,e.data_options=this.utils.data_options,e.attr_name=o,e.add_namespace=u,e.bindings=a,e.S=this.utils.S},inherit:function(e,t){var n=t.split(" "),r=n.length;while(r--)this.utils.hasOwnProperty(n[r])&&(e[n[r]]=this.utils[n[r]])},set_namespace:function(){var t=this.global.namespace===r?e(".foundation-data-attribute-namespace").css("font-family"):this.global.namespace;this.global.namespace=t===r||/false/i.test(t)?"":t},libs:{},utils:{S:s,throttle:function(e,t){var n=null;return function(){var r=this,i=arguments;n==null&&(n=setTimeout(function(){e.apply(r,i),n=null},t))}},debounce:function(e,t,n){var r,i;return function(){var s=this,o=arguments,u=function(){r=null,n||(i=e.apply(s,o))},a=n&&!r;return clearTimeout(r),r=setTimeout(u,t),a&&(i=e.apply(s,o)),i}},data_options:function(t,n){function f(e){return!isNaN(e-0)&&e!==null&&e!==""&&e!==!1&&e!==!0}function l(t){return typeof t=="string"?e.trim(t):t}n=n||"options";var r={},i,s,o,u=function(e){var t=Foundation.global.namespace;return t.length>0?e.data(t+"-"+n):e.data(n)},a=u(t);if(typeof a=="object")return a;o=(a||":").split(";"),i=o.length;while(i--)s=o[i].split(":"),s=[s[0],s.slice(1).join(":")],/true/i.test(s[1])&&(s[1]=!0),/false/i.test(s[1])&&(s[1]=!1),f(s[1])&&(s[1].indexOf(".")===-1?s[1]=parseInt(s[1],10):s[1]=parseFloat(s[1])),s.length===2&&s[0].length>0&&(r[l(s[0])]=l(s[1]));return r},register_media:function(t,n){Foundation.media_queries[t]===r&&(e("head").append('<meta class="'+n+'">'),Foundation.media_queries[t]=l(e("."+n).css("font-family")))},add_custom_rule:function(e,t){if(t===r&&Foundation.stylesheet)Foundation.stylesheet.insertRule(e,Foundation.stylesheet.cssRules.length);else{var n=Foundation.media_queries[t];n!==r&&Foundation.stylesheet.insertRule("@media "+Foundation.media_queries[t]+"{ "+e+" }")}},image_loaded:function(e,t){var n=this,r=e.length;r===0&&t(e),e.each(function(){f(n.S(this),function(){r-=1,r===0&&t(e)})})},random_str:function(){return this.fidx||(this.fidx=0),this.prefix=this.prefix||[this.name||"F",(+(new Date)).toString(36)].join("-"),this.prefix+(this.fidx++).toString(36)}}},e.fn.foundation=function(){var e=Array.prototype.slice.call(arguments,0);return this.each(function(){return Foundation.init.apply(Foundation,[this].concat(e)),this})}})(jQuery,window,window.document),function(e,t,n,r){"use strict";Foundation.libs.slider={name:"slider",version:"5.2.3",settings:{start:0,end:100,step:1,initial:null,display_selector:"",on_change:function(){}},cache:{},init:function(e,t,n){Foundation.inherit(this,"throttle"),this.bindings(t,n),this.reflow()},events:function(){var n=this;e(this.scope).off(".slider").on("mousedown.fndtn.slider touchstart.fndtn.slider pointerdown.fndtn.slider","["+n.attr_name()+"] .range-slider-handle",function(t){n.cache.active||(t.preventDefault(),n.set_active_slider(e(t.target)))}).on("mousemove.fndtn.slider touchmove.fndtn.slider pointermove.fndtn.slider",function(e){!n.cache.active||(e.preventDefault(),n.calculate_position(n.cache.active,e.pageX||e.originalEvent.clientX||e.originalEvent.touches[0].clientX||e.currentPoint.x))}).on("mouseup.fndtn.slider touchend.fndtn.slider pointerup.fndtn.slider",function(e){n.remove_active_slider()}).on("change.fndtn.slider",function(e){n.settings.on_change()}),n.S(t).on("resize.fndtn.slider",n.throttle(function(e){n.reflow()},300))},set_active_slider:function(e){this.cache.active=e},remove_active_slider:function(){this.cache.active=null},calculate_position:function(t,n){var r=this,i=e.extend({},r.settings,r.data_options(t.parent())),s=e.data(t[0],"handle_w"),o=e.data(t[0],"handle_o"),u=e.data(t[0],"bar_w"),a=e.data(t[0],"bar_o");requestAnimationFrame(function(){var e;Foundation.rtl?e=r.limit_to((a+u-n)/u,0,1):e=r.limit_to((n-a)/u,0,1);var s=r.normalized_value(e,i.start,i.end,i.step);r.set_ui(t,s)})},set_ui:function(t,n){var r=e.extend({},this.settings,this.data_options(t.parent())),i=e.data(t[0],"handle_w"),s=e.data(t[0],"bar_w"),o=this.normalized_percentage(n,r.start,r.end),u=o*(s-i)-1,a=o*100;Foundation.rtl&&(u=-u),this.set_translate(t,u),t.siblings(".range-slider-active-segment").css("width",a+"%"),t.parent().attr(this.attr_name(),n),t.parent().trigger("change"),t.parent().children("input[type=hidden]").val(n),r.input_id!=""&&e(r.display_selector).each(function(){this.hasOwnProperty("value")?e(this).val(n):e(this).text(n)})},normalized_percentage:function(e,t,n){return(e-t)/(n-t)},normalized_value:function(e,t,n,r){var i=n-t,s=e*i,o=(s-s%r)/r,u=s%r,a=u>=r*.5?r:0;return o*r+a+t},set_translate:function(t,n,r){r?e(t).css("-webkit-transform","translateY("+n+"px)").css("-moz-transform","translateY("+n+"px)").css("-ms-transform","translateY("+n+"px)").css("-o-transform","translateY("+n+"px)").css("transform","translateY("+n+"px)"):e(t).css("-webkit-transform","translateX("+n+"px)").css("-moz-transform","translateX("+n+"px)").css("-ms-transform","translateX("+n+"px)").css("-o-transform","translateX("+n+"px)").css("transform","translateX("+n+"px)")},limit_to:function(e,t,n){return Math.min(Math.max(e,t),n)},initialize_settings:function(t){e.data(t,"bar",e(t).parent()),e.data(t,"bar_o",e(t).parent().offset().left),e.data(t,"bar_w",e(t).parent().outerWidth()),e.data(t,"handle_o",e(t).offset().left),e.data(t,"handle_w",e(t).outerWidth()),e.data(t,"settings",e.extend({},this.settings,this.data_options(e(t).parent())))},set_initial_position:function(t){var n=e.data(t.children(".range-slider-handle")[0],"settings"),r=n.initial?n.initial:Math.floor((n.end-n.start)*.5/n.step)*n.step+n.start,i=t.children(".range-slider-handle");this.set_ui(i,r)},set_value:function(t){var n=this;e("["+n.attr_name()+"]",this.scope).each(function(){e(this).attr(n.attr_name(),t)}),!e(this.scope).attr(n.attr_name())||e(this.scope).attr(n.attr_name(),t),n.reflow()},reflow:function(){var t=this;t.S("["+this.attr_name()+"]").each(function(){var n=e(this).children(".range-slider-handle")[0],r=e(this).attr(t.attr_name());t.initialize_settings(n),r?t.set_ui(e(n),parseFloat(r)):t.set_initial_position(e(this))})}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";var i=i||!1;Foundation.libs.joyride={name:"joyride",version:"5.2.3",defaults:{expose:!1,modal:!0,tip_location:"bottom",nub_position:"auto",scroll_speed:1500,scroll_animation:"linear",timer:0,start_timer_on_click:!0,start_offset:0,next_button:!0,tip_animation:"fade",pause_after:[],exposed:[],tip_animation_fade_speed:300,cookie_monster:!1,cookie_name:"joyride",cookie_domain:!1,cookie_expires:365,tip_container:"body",abort_on_close:!0,tip_location_patterns:{top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},post_ride_callback:function(){},post_step_callback:function(){},pre_step_callback:function(){},pre_ride_callback:function(){},post_expose_callback:function(){},template:{link:'<a href="#close" class="joyride-close-tip">×</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',wrapper:'<div class="joyride-content-wrapper"></div>',button:'<a href="#" class="small button joyride-next-tip"></a>',modal:'<div class="joyride-modal-bg"></div>',expose:'<div class="joyride-expose-wrapper"></div>',expose_cover:'<div class="joyride-expose-cover"></div>'},expose_add_class:""},init:function(t,n,r){Foundation.inherit(this,"throttle random_str"),this.settings=this.settings||e.extend({},this.defaults,r||n),this.bindings(n,r)},events:function(){var n=this;e(this.scope).off(".joyride").on("click.fndtn.joyride",".joyride-next-tip, .joyride-modal-bg",function(e){e.preventDefault(),this.settings.$li.next().length<1?this.end():this.settings.timer>0?(clearTimeout(this.settings.automate),this.hide(),this.show(),this.startTimer()):(this.hide(),this.show())}.bind(this)).on("click.fndtn.joyride",".joyride-close-tip",function(e){e.preventDefault(),this.end(this.settings.abort_on_close)}.bind(this)),e(t).off(".joyride").on("resize.fndtn.joyride",n.throttle(function(){if(e("["+n.attr_name()+"]").length>0&&n.settings.$next_tip){if(n.settings.exposed.length>0){var t=e(n.settings.exposed);t.each(function(){var t=e(this);n.un_expose(t),n.expose(t)})}n.is_phone()?n.pos_phone():n.pos_default(!1)}},100))},start:function(){var t=this,n=e("["+this.attr_name()+"]",this.scope),r=["timer","scrollSpeed","startOffset","tipAnimationFadeSpeed","cookieExpires"],i=r.length;if(!n.length>0)return;this.settings.init||this.events(),this.settings=n.data(this.attr_name(!0)+"-init"),this.settings.$content_el=n,this.settings.$body=e(this.settings.tip_container),this.settings.body_offset=e(this.settings.tip_container).position(),this.settings.$tip_content=this.settings.$content_el.find("> li"),this.settings.paused=!1,this.settings.attempts=0,typeof e.cookie!="function"&&(this.settings.cookie_monster=!1);if(!this.settings.cookie_monster||this.settings.cookie_monster&&!e.cookie(this.settings.cookie_name))this.settings.$tip_content.each(function(n){var s=e(this);this.settings=e.extend({},t.defaults,t.data_options(s));var o=i;while(o--)t.settings[r[o]]=parseInt(t.settings[r[o]],10);t.create({$li:s,index:n})}),!this.settings.start_timer_on_click&&this.settings.timer>0?(this.show("init"),this.startTimer()):this.show("init")},resume:function(){this.set_li(),this.show()},tip_template:function(t){var n,r;return t.tip_class=t.tip_class||"",n=e(this.settings.template.tip).addClass(t.tip_class),r=e.trim(e(t.li).html())+this.button_text(t.button_text)+this.settings.template.link+this.timer_instance(t.index),n.append(e(this.settings.template.wrapper)),n.first().attr(this.add_namespace("data-index"),t.index),e(".joyride-content-wrapper",n).append(r),n[0]},timer_instance:function(t){var n;return t===0&&this.settings.start_timer_on_click&&this.settings.timer>0||this.settings.timer===0?n="":n=e(this.settings.template.timer)[0].outerHTML,n},button_text:function(t){return this.settings.next_button?(t=e.trim(t)||"Next",t=e(this.settings.template.button).append(t)[0].outerHTML):t="",t},create:function(t){var n=t.$li.attr(this.add_namespace("data-button"))||t.$li.attr(this.add_namespace("data-text")),r=t.$li.attr("class"),i=e(this.tip_template({tip_class:r,index:t.index,button_text:n,li:t.$li}));e(this.settings.tip_container).append(i)},show:function(t){var n=null;this.settings.$li===r||e.inArray(this.settings.$li.index(),this.settings.pause_after)===-1?(this.settings.paused?this.settings.paused=!1:this.set_li(t),this.settings.attempts=0,this.settings.$li.length&&this.settings.$target.length>0?(t&&(this.settings.pre_ride_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.show_modal()),this.settings.pre_step_callback(this.settings.$li.index(),this.settings.$next_tip),this.settings.modal&&this.settings.expose&&this.expose(),this.settings.tip_settings=e.extend({},this.settings,this.data_options(this.settings.$li)),this.settings.timer=parseInt(this.settings.timer,10),this.settings.tip_settings.tip_location_pattern=this.settings.tip_location_patterns[this.settings.tip_settings.tip_location],/body/i.test(this.settings.$target.selector)||this.scroll_to(),this.is_phone()?this.pos_phone(!0):this.pos_default(!0),n=this.settings.$next_tip.find(".joyride-timer-indicator"),/pop/i.test(this.settings.tip_animation)?(n.width(0),this.settings.timer>0?(this.settings.$next_tip.show(),setTimeout(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tip_animation_fade_speed)):this.settings.$next_tip.show()):/fade/i.test(this.settings.tip_animation)&&(n.width(0),this.settings.timer>0?(this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed).show(),setTimeout(function(){n.animate({width:n.parent().width()},this.settings.timer,"linear")}.bind(this),this.settings.tip_animation_fade_speed)):this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed)),this.settings.$current_tip=this.settings.$next_tip):this.settings.$li&&this.settings.$target.length<1?this.show():this.end()):this.settings.paused=!0},is_phone:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},hide:function(){this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.modal||e(".joyride-modal-bg").hide(),this.settings.$current_tip.css("visibility","hidden"),setTimeout(e.proxy(function(){this.hide(),this.css("visibility","visible")},this.settings.$current_tip),0),this.settings.post_step_callback(this.settings.$li.index(),this.settings.$current_tip)},set_li:function(e){e?(this.settings.$li=this.settings.$tip_content.eq(this.settings.start_offset),this.set_next_tip(),this.settings.$current_tip=this.settings.$next_tip):(this.settings.$li=this.settings.$li.next(),this.set_next_tip()),this.set_target()},set_next_tip:function(){this.settings.$next_tip=e(".joyride-tip-guide").eq(this.settings.$li.index()),this.settings.$next_tip.data("closed","")},set_target:function(){var t=this.settings.$li.attr(this.add_namespace("data-class")),r=this.settings.$li.attr(this.add_namespace("data-id")),i=function(){return r?e(n.getElementById(r)):t?e("."+t).first():e("body")};this.settings.$target=i()},scroll_to:function(){var n,r;n=e(t).height()/2,r=Math.ceil(this.settings.$target.offset().top-n+this.settings.$next_tip.outerHeight()),r!=0&&e("html, body").stop().animate({scrollTop:r},this.settings.scroll_speed,"swing")},paused:function(){return e.inArray(this.settings.$li.index()+1,this.settings.pause_after)===-1},restart:function(){this.hide(),this.settings.$li=r,this.show("init")},pos_default:function(e){var t=this.settings.$next_tip.find(".joyride-nub"),n=Math.ceil(t.outerWidth()/2),r=Math.ceil(t.outerHeight()/2),i=e||!1;i&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(t):(this.bottom()?(this.rtl?this.settings.$next_tip.css({top:this.settings.$target.offset().top+r+this.settings.$target.outerHeight(),left:this.settings.$target.offset().left+this.settings.$target.outerWidth()-this.settings.$next_tip.outerWidth()}):this.settings.$next_tip.css({top:this.settings.$target.offset().top+r+this.settings.$target.outerHeight(),left:this.settings.$target.offset().left}),this.nub_position(t,this.settings.tip_settings.nub_position,"top")):this.top()?(this.rtl?this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.settings.$next_tip.outerHeight()-r,left:this.settings.$target.offset().left+this.settings.$target.outerWidth()-this.settings.$next_tip.outerWidth()}):this.settings.$next_tip.css({top:this.settings.$target.offset().top-this.settings.$next_tip.outerHeight()-r,left:this.settings.$target.offset().left}),this.nub_position(t,this.settings.tip_settings.nub_position,"bottom")):this.right()?(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.settings.$target.outerWidth()+this.settings.$target.offset().left+n}),this.nub_position(t,this.settings.tip_settings.nub_position,"left")):this.left()&&(this.settings.$next_tip.css({top:this.settings.$target.offset().top,left:this.settings.$target.offset().left-this.settings.$next_tip.outerWidth()-n}),this.nub_position(t,this.settings.tip_settings.nub_position,"right")),!this.visible(this.corners(this.settings.$next_tip))&&this.settings.attempts<this.settings.tip_settings.tip_location_pattern.length&&(t.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),this.settings.tip_settings.tip_location=this.settings.tip_settings.tip_location_pattern[this.settings.attempts],this.settings.attempts++,this.pos_default())),i&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_phone:function(t){var n=this.settings.$next_tip.outerHeight(),r=this.settings.$next_tip.offset(),i=this.settings.$target.outerHeight(),s=e(".joyride-nub",this.settings.$next_tip),o=Math.ceil(s.outerHeight()/2),u=t||!1;s.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),u&&(this.settings.$next_tip.css("visibility","hidden"),this.settings.$next_tip.show()),/body/i.test(this.settings.$target.selector)?this.settings.$li.length&&this.pos_modal(s):this.top()?(this.settings.$next_tip.offset({top:this.settings.$target.offset().top-n-o}),s.addClass("bottom")):(this.settings.$next_tip.offset({top:this.settings.$target.offset().top+i+o}),s.addClass("top")),u&&(this.settings.$next_tip.hide(),this.settings.$next_tip.css("visibility","visible"))},pos_modal:function(e){this.center(),e.hide(),this.show_modal()},show_modal:function(){if(!this.settings.$next_tip.data("closed")){var t=e(".joyride-modal-bg");t.length<1&&e("body").append(this.settings.template.modal).show(),/pop/i.test(this.settings.tip_animation)?t.show():t.fadeIn(this.settings.tip_animation_fade_speed)}},expose:function(){var n,r,i,s,o,u="expose-"+this.random_str(6);if(arguments.length>0&&arguments[0]instanceof e)i=arguments[0];else{if(!this.settings.$target||!!/body/i.test(this.settings.$target.selector))return!1;i=this.settings.$target}if(i.length<1)return t.console&&console.error("element not valid",i),!1;n=e(this.settings.template.expose),this.settings.$body.append(n),n.css({top:i.offset().top,left:i.offset().left,width:i.outerWidth(!0),height:i.outerHeight(!0)}),r=e(this.settings.template.expose_cover),s={zIndex:i.css("z-index"),position:i.css("position")},o=i.attr("class")==null?"":i.attr("class"),i.css("z-index",parseInt(n.css("z-index"))+1),s.position=="static"&&i.css("position","relative"),i.data("expose-css",s),i.data("orig-class",o),i.attr("class",o+" "+this.settings.expose_add_class),r.css({top:i.offset().top,left:i.offset().left,width:i.outerWidth(!0),height:i.outerHeight(!0)}),this.settings.modal&&this.show_modal(),this.settings.$body.append(r),n.addClass(u),r.addClass(u),i.data("expose",u),this.settings.post_expose_callback(this.settings.$li.index(),this.settings.$next_tip,i),this.add_exposed(i)},un_expose:function(){var n,r,i,s,o,u=!1;if(arguments.length>0&&arguments[0]instanceof e)r=arguments[0];else{if(!this.settings.$target||!!/body/i.test(this.settings.$target.selector))return!1;r=this.settings.$target}if(r.length<1)return t.console&&console.error("element not valid",r),!1;n=r.data("expose"),i=e("."+n),arguments.length>1&&(u=arguments[1]),u===!0?e(".joyride-expose-wrapper,.joyride-expose-cover").remove():i.remove(),s=r.data("expose-css"),s.zIndex=="auto"?r.css("z-index",""):r.css("z-index",s.zIndex),s.position!=r.css("position")&&(s.position=="static"?r.css("position",""):r.css("position",s.position)),o=r.data("orig-class"),r.attr("class",o),r.removeData("orig-classes"),r.removeData("expose"),r.removeData("expose-z-index"),this.remove_exposed(r)},add_exposed:function(t){this.settings.exposed=this.settings.exposed||[],t instanceof e||typeof t=="object"?this.settings.exposed.push(t[0]):typeof t=="string"&&this.settings.exposed.push(t)},remove_exposed:function(t){var n,r;t instanceof e?n=t[0]:typeof t=="string"&&(n=t),this.settings.exposed=this.settings.exposed||[],r=this.settings.exposed.length;while(r--)if(this.settings.exposed[r]==n){this.settings.exposed.splice(r,1);return}},center:function(){var n=e(t);return this.settings.$next_tip.css({top:(n.height()-this.settings.$next_tip.outerHeight())/2+n.scrollTop(),left:(n.width()-this.settings.$next_tip.outerWidth())/2+n.scrollLeft()}),!0},bottom:function(){return/bottom/i.test(this.settings.tip_settings.tip_location)},top:function(){return/top/i.test(this.settings.tip_settings.tip_location)},right:function(){return/right/i.test(this.settings.tip_settings.tip_location)},left:function(){return/left/i.test(this.settings.tip_settings.tip_location)},corners:function(n){var r=e(t),i=r.height()/2,s=Math.ceil(this.settings.$target.offset().top-i+this.settings.$next_tip.outerHeight()),o=r.width()+r.scrollLeft(),u=r.height()+s,a=r.height()+r.scrollTop(),f=r.scrollTop();return s<f&&(s<0?f=0:f=s),u>a&&(a=u),[n.offset().top<f,o<n.offset().left+n.outerWidth(),a<n.offset().top+n.outerHeight(),r.scrollLeft()>n.offset().left]},visible:function(e){var t=e.length;while(t--)if(e[t])return!1;return!0},nub_position:function(e,t,n){t==="auto"?e.addClass(n):e.addClass(t)},startTimer:function(){this.settings.$li.length?this.settings.automate=setTimeout(function(){this.hide(),this.show(),this.startTimer()}.bind(this),this.settings.timer):clearTimeout(this.settings.automate)},end:function(t){this.settings.cookie_monster&&e.cookie(this.settings.cookie_name,"ridden",{expires:this.settings.cookie_expires,domain:this.settings.cookie_domain}),this.settings.timer>0&&clearTimeout(this.settings.automate),this.settings.modal&&this.settings.expose&&this.un_expose(),this.settings.$next_tip.data("closed",!0),e(".joyride-modal-bg").hide(),this.settings.$current_tip.hide();if(typeof t=="undefined"||t===!1)this.settings.post_step_callback(this.settings.$li.index(),this.settings.$current_tip),this.settings.post_ride_callback(this.settings.$li.index(),this.settings.$current_tip);e(".joyride-tip-guide").remove()},off:function(){e(this.scope).off(".joyride"),e(t).off(".joyride"),e(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),e(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(this.settings.automate),this.settings={}},reflow:function(){}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";Foundation.libs.equalizer={name:"equalizer",version:"5.2.3",settings:{use_tallest:!0,before_height_change:e.noop,after_height_change:e.noop,equalize_on_stack:!1},init:function(e,t,n){Foundation.inherit(this,"image_loaded"),this.bindings(t,n),this.reflow()},events:function(){this.S(t).off(".equalizer").on("resize.fndtn.equalizer",function(e){this.reflow()}.bind(this))},equalize:function(t){var n=!1,r=t.find("["+this.attr_name()+"-watch]:visible"),i=t.data(this.attr_name(!0)+"-init");if(r.length===0)return;var s=r.first().offset().top;i.before_height_change(),t.trigger("before-height-change"),r.height("inherit"),r.each(function(){var t=e(this);t.offset().top!==s&&(n=!0)});if(i.equalize_on_stack===!1&&n)return;var o=r.map(function(){return e(this).outerHeight(!1)}).get();if(i.use_tallest){var u=Math.max.apply(null,o);r.css("height",u)}else{var a=Math.min.apply(null,o);r.css("height",a)}i.after_height_change(),t.trigger("after-height-change")},reflow:function(){var t=this;this.S("["+this.attr_name()+"]",this.scope).each(function(){var n=e(this);t.image_loaded(t.S("img",this),function(){t.equalize(n)})})}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";Foundation.libs.dropdown={name:"dropdown",version:"5.2.3",settings:{active_class:"open",align:"bottom",is_hover:!1,opened:function(){},closed:function(){}},init:function(e,t,n){Foundation.inherit(this,"throttle"),this.bindings(t,n)},events:function(n){var r=this,i=r.S;i(this.scope).off(".dropdown").on("click.fndtn.dropdown","["+this.attr_name()+"]",function(t){var n=i(this).data(r.attr_name(!0)+"-init")||r.settings;if(!n.is_hover||Modernizr.touch)t.preventDefault(),r.toggle(e(this))}).on("mouseenter.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",function(e){var t=i(this),n,s;clearTimeout(r.timeout),t.data(r.data_attr())?(n=i("#"+t.data(r.data_attr())),s=t):(n=t,s=i("["+r.attr_name()+"='"+n.attr("id")+"']"));var o=s.data(r.attr_name(!0)+"-init")||r.settings;i(e.target).data(r.data_attr())&&o.is_hover&&r.closeall.call(r),o.is_hover&&r.open.apply(r,[n,s])}).on("mouseleave.fndtn.dropdown","["+this.attr_name()+"], ["+this.attr_name()+"-content]",function(e){var t=i(this);r.timeout=setTimeout(function(){if(t.data(r.data_attr())){var e=t.data(r.data_attr(!0)+"-init")||r.settings;e.is_hover&&r.close.call(r,i("#"+t.data(r.data_attr())))}else{var n=i("["+r.attr_name()+'="'+i(this).attr("id")+'"]'),e=n.data(r.attr_name(!0)+"-init")||r.settings;e.is_hover&&r.close.call(r,t)}}.bind(this),150)}).on("click.fndtn.dropdown",function(t){var n=i(t.target).closest("["+r.attr_name()+"-content]");if(i(t.target).data(r.data_attr())||i(t.target).parent().data(r.data_attr()))return;if(!i(t.target).data("revealId")&&n.length>0&&(i(t.target).is("["+r.attr_name()+"-content]")||e.contains(n.first()[0],t.target))){t.stopPropagation();return}r.close.call(r,i("["+r.attr_name()+"-content]"))}).on("opened.fndtn.dropdown","["+r.attr_name()+"-content]",function(){r.settings.opened.call(this)}).on("closed.fndtn.dropdown","["+r.attr_name()+"-content]",function(){r.settings.closed.call(this)}),i(t).off(".dropdown").on("resize.fndtn.dropdown",r.throttle(function(){r.resize.call(r)},50)),this.resize()},close:function(e){var t=this;e.each(function(){t.S(this).hasClass(t.settings.active_class)&&(t.S(this).css(Foundation.rtl?"right":"left","-99999px").removeClass(t.settings.active_class).prev("["+t.attr_name()+"]").removeClass(t.settings.active_class).removeData("target"),t.S(this).trigger("closed",[e]))})},closeall:function(){var t=this;e.each(t.S("["+this.attr_name()+"-content]"),function(){t.close.call(t,t.S(this))})},open:function(e,t){this.css(e.addClass(this.settings.active_class),t),e.prev("["+this.attr_name()+"]").addClass(this.settings.active_class),e.data("target",t.get(0)).trigger("opened",[e,t])},data_attr:function(){return this.namespace.length>0?this.namespace+"-"+this.name:this.name},toggle:function(e){var t=this.S("#"+e.data(this.data_attr()));if(t.length===0)return;this.close.call(this,this.S("["+this.attr_name()+"-content]").not(t)),t.hasClass(this.settings.active_class)?(this.close.call(this,t),t.data("target")!==e.get(0)&&this.open.call(this,t,e)):this.open.call(this,t,e)},resize:function(){var e=this.S("["+this.attr_name()+"-content].open"),t=this.S("["+this.attr_name()+"='"+e.attr("id")+"']");e.length&&t.length&&this.css(e,t)},css:function(e,t){this.clear_idx();if(this.small()){var n=this.dirs.bottom.call(e,t);e.attr("style","").removeClass("drop-left drop-right drop-top").css({position:"absolute",width:"95%","max-width":"none",top:n.top}),e.css(Foundation.rtl?"right":"left","2.5%")}else{var r=t.data(this.attr_name(!0)+"-init")||this.settings;this.style(e,t,r)}return e},style:function(t,n,r){var i=e.extend({position:"absolute"},this.dirs[r.align].call(t,n,r));t.attr("style","").css(i)},dirs:{_base:function(e){var t=this.offsetParent(),n=t.offset(),r=e.offset();return r.top-=n.top,r.left-=n.left,r},top:function(e,t){var n=Foundation.libs.dropdown,r=n.dirs._base.call(this,e),i=e.outerWidth()/2-8;return this.addClass("drop-top"),(e.outerWidth()<this.outerWidth()||n.small())&&n.adjust_pip(i,r),Foundation.rtl?{left:r.left-this.outerWidth()+e.outerWidth(),top:r.top-this.outerHeight()}:{left:r.left,top:r.top-this.outerHeight()}},bottom:function(e,t){var n=Foundation.libs.dropdown,r=n.dirs._base.call(this,e),i=e.outerWidth()/2-8;return(e.outerWidth()<this.outerWidth()||n.small())&&n.adjust_pip(i,r),n.rtl?{left:r.left-this.outerWidth()+e.outerWidth(),top:r.top+e.outerHeight()}:{left:r.left,top:r.top+e.outerHeight()}},left:function(e,t){var n=Foundation.libs.dropdown.dirs._base.call(this,e);return this.addClass("drop-left"),{left:n.left-this.outerWidth(),top:n.top}},right:function(e,t){var n=Foundation.libs.dropdown.dirs._base.call(this,e);return this.addClass("drop-right"),{left:n.left+e.outerWidth(),top:n.top}}},adjust_pip:function(e,t){var n=Foundation.stylesheet;this.small()&&(e+=t.left-8),this.rule_idx=n.cssRules.length;var r=".f-dropdown.open:before",i=".f-dropdown.open:after",s="left: "+e+"px;",o="left: "+(e-1)+"px;";n.insertRule?(n.insertRule([r,"{",s,"}"].join(" "),this.rule_idx),n.insertRule([i,"{",o,"}"].join(" "),this.rule_idx+1)):(n.addRule(r,s,this.rule_idx),n.addRule(i,o,this.rule_idx+1))},clear_idx:function(){var e=Foundation.stylesheet;this.rule_idx&&(e.deleteRule(this.rule_idx),e.deleteRule(this.rule_idx),delete this.rule_idx)},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},off:function(){this.S(this.scope).off(".fndtn.dropdown"),this.S("html, body").off(".fndtn.dropdown"),this.S(t).off(".fndtn.dropdown"),this.S("[data-dropdown-content]").off(".fndtn.dropdown")},reflow:function(){}}}(jQuery,window,window |
| + | .document),function(e,t,n,r){"use strict";Foundation.libs.clearing={name:"clearing",version:"5.2.3",settings:{templates:{viewing:'<a href="#" class="clearing-close">×</a><div class="visible-img" style="display: none"><div class="clearing-touch-label"></div><img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" /><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div>'},close_selectors:".clearing-close",touch_label:"",init:!1,locked:!1},init:function(e,t,n){var r=this;Foundation.inherit(this,"throttle image_loaded"),this.bindings(t,n),r.S(this.scope).is("["+this.attr_name()+"]")?this.assemble(r.S("li",this.scope)):r.S("["+this.attr_name()+"]",this.scope).each(function(){r.assemble(r.S("li",this))})},events:function(r){var i=this,s=i.S,o=e(".scroll-container");o.length>0&&(this.scope=o),s(this.scope).off(".clearing").on("click.fndtn.clearing","ul["+this.attr_name()+"] li",function(e,t,n){var t=t||s(this),n=n||t,r=t.next("li"),o=t.closest("["+i.attr_name()+"]").data(i.attr_name(!0)+"-init"),u=s(e.target);e.preventDefault(),o||(i.init(),o=t.closest("["+i.attr_name()+"]").data(i.attr_name(!0)+"-init")),n.hasClass("visible")&&t[0]===n[0]&&r.length>0&&i.is_open(t)&&(n=r,u=s("img",n)),i.open(u,t,n),i.update_paddles(n)}).on("click.fndtn.clearing",".clearing-main-next",function(e){i.nav(e,"next")}).on("click.fndtn.clearing",".clearing-main-prev",function(e){i.nav(e,"prev")}).on("click.fndtn.clearing",this.settings.close_selectors,function(e){Foundation.libs.clearing.close(e,this)}),e(n).on("keydown.fndtn.clearing",function(e){i.keydown(e)}),s(t).off(".clearing").on("resize.fndtn.clearing",function(){i.resize()}),this.swipe_events(r)},swipe_events:function(e){var t=this,n=t.S;n(this.scope).on("touchstart.fndtn.clearing",".visible-img",function(e){e.touches||(e=e.originalEvent);var t={start_page_x:e.touches[0].pageX,start_page_y:e.touches[0].pageY,start_time:(new Date).getTime(),delta_x:0,is_scrolling:r};n(this).data("swipe-transition",t),e.stopPropagation()}).on("touchmove.fndtn.clearing",".visible-img",function(e){e.touches||(e=e.originalEvent);if(e.touches.length>1||e.scale&&e.scale!==1)return;var r=n(this).data("swipe-transition");typeof r=="undefined"&&(r={}),r.delta_x=e.touches[0].pageX-r.start_page_x,typeof r.is_scrolling=="undefined"&&(r.is_scrolling=!!(r.is_scrolling||Math.abs(r.delta_x)<Math.abs(e.touches[0].pageY-r.start_page_y)));if(!r.is_scrolling&&!r.active){e.preventDefault();var i=r.delta_x<0?"next":"prev";r.active=!0,t.nav(e,i)}}).on("touchend.fndtn.clearing",".visible-img",function(e){n(this).data("swipe-transition",{}),e.stopPropagation()})},assemble:function(t){var n=t.parent();if(n.parent().hasClass("carousel"))return;n.after('<div id="foundationClearingHolder"></div>');var r=n.detach(),i="";if(r[0]==null)return;i=r[0].outerHTML;var s=this.S("#foundationClearingHolder"),o=n.data(this.attr_name(!0)+"-init"),u={grid:'<div class="carousel">'+i+"</div>",viewing:o.templates.viewing},a='<div class="clearing-assembled"><div>'+u.viewing+u.grid+"</div></div>",f=this.settings.touch_label;Modernizr.touch&&(a=e(a).find(".clearing-touch-label").html(f).end()),s.after(a).remove()},open:function(t,r,i){function p(){setTimeout(function(){this.image_loaded(l,function(){l.outerWidth()===1&&!h?p.call(this):d.call(this,l)}.bind(this))}.bind(this),50)}function d(t){var n=e(t);n.css("visibility","visible"),o.css("overflow","hidden"),u.addClass("clearing-blackout"),a.addClass("clearing-container"),f.show(),this.fix_height(i).caption(s.S(".clearing-caption",f),s.S("img",i)).center_and_label(t,c).shift(r,i,function(){i.siblings().removeClass("visible"),i.addClass("visible")}),f.trigger("opened.fndtn.clearing")}var s=this,o=e(n.body),u=i.closest(".clearing-assembled"),a=s.S("div",u).first(),f=s.S(".visible-img",a),l=s.S("img",f).not(t),c=s.S(".clearing-touch-label",a),h=!1;l.error(function(){h=!0}),this.locked()||(f.trigger("open.fndtn.clearing"),l.attr("src",this.load(t)).css("visibility","hidden"),p.call(this))},close:function(t,r){t.preventDefault();var i=function(e){return/blackout/.test(e.selector)?e:e.closest(".clearing-blackout")}(e(r)),s=e(n.body),o,u;return r===t.target&&i&&(s.css("overflow",""),o=e("div",i).first(),u=e(".visible-img",o),u.trigger("close.fndtn.clearing"),this.settings.prev_index=0,e("ul["+this.attr_name()+"]",i).attr("style","").closest(".clearing-blackout").removeClass("clearing-blackout"),o.removeClass("clearing-container"),u.hide(),u.trigger("closed.fndtn.clearing")),!1},is_open:function(e){return e.parent().prop("style").length>0},keydown:function(t){var n=e(".clearing-blackout ul["+this.attr_name()+"]"),r=this.rtl?37:39,i=this.rtl?39:37,s=27;t.which===r&&this.go(n,"next"),t.which===i&&this.go(n,"prev"),t.which===s&&this.S("a.clearing-close").trigger("click")},nav:function(t,n){var r=e("ul["+this.attr_name()+"]",".clearing-blackout");t.preventDefault(),this.go(r,n)},resize:function(){var t=e("img",".clearing-blackout .visible-img"),n=e(".clearing-touch-label",".clearing-blackout");t.length&&(this.center_and_label(t,n),t.trigger("resized.fndtn.clearing"))},fix_height:function(e){var t=e.parent().children(),n=this;return t.each(function(){var e=n.S(this),t=e.find("img");e.height()>t.outerHeight()&&e.addClass("fix-height")}).closest("ul").width(t.length*100+"%"),this},update_paddles:function(e){var t=e.closest(".carousel").siblings(".visible-img");e.next().length>0?this.S(".clearing-main-next",t).removeClass("disabled"):this.S(".clearing-main-next",t).addClass("disabled"),e.prev().length>0?this.S(".clearing-main-prev",t).removeClass("disabled"):this.S(".clearing-main-prev",t).addClass("disabled")},center_and_label:function(e,t){return this.rtl?(e.css({marginRight:-(e.outerWidth()/2),marginTop:-(e.outerHeight()/2),left:"auto",right:"50%"}),t.length>0&&t.css({marginRight:-(t.outerWidth()/2),marginTop:-(e.outerHeight()/2)-t.outerHeight()-10,left:"auto",right:"50%"})):(e.css({marginLeft:-(e.outerWidth()/2),marginTop:-(e.outerHeight()/2)}),t.length>0&&t.css({marginLeft:-(t.outerWidth()/2),marginTop:-(e.outerHeight()/2)-t.outerHeight()-10})),this},load:function(e){var t;return e[0].nodeName==="A"?t=e.attr("href"):t=e.parent().attr("href"),this.preload(e),t?t:e.attr("src")},preload:function(e){this.img(e.closest("li").next()).img(e.closest("li").prev())},img:function(e){if(e.length){var t=new Image,n=this.S("a",e);n.length?t.src=n.attr("href"):t.src=this.S("img",e).attr("src")}return this},caption:function(e,t){var n=t.attr("data-caption");return n?e.html(n).show():e.text("").hide(),this},go:function(e,t){var n=this.S(".visible",e),r=n[t]();r.length&&this.S("img",r).trigger("click",[n,r]).trigger("change.fndtn.clearing")},shift:function(e,t,n){var r=t.parent(),i=this.settings.prev_index||t.index(),s=this.direction(r,e,t),o=this.rtl?"right":"left",u=parseInt(r.css("left"),10),a=t.outerWidth(),f,l={};t.index()!==i&&!/skip/.test(s)?/left/.test(s)?(this.lock(),l[o]=u+a,r.animate(l,300,this.unlock())):/right/.test(s)&&(this.lock(),l[o]=u-a,r.animate(l,300,this.unlock())):/skip/.test(s)&&(f=t.index()-this.settings.up_count,this.lock(),f>0?(l[o]=-(f*a),r.animate(l,300,this.unlock())):(l[o]=0,r.animate(l,300,this.unlock()))),n()},direction:function(e,t,n){var r=this.S("li",e),i=r.outerWidth()+r.outerWidth()/4,s=Math.floor(this.S(".clearing-container").outerWidth()/i)-1,o=r.index(n),u;return this.settings.up_count=s,this.adjacent(this.settings.prev_index,o)?o>s&&o>this.settings.prev_index?u="right":o>s-1&&o<=this.settings.prev_index?u="left":u=!1:u="skip",this.settings.prev_index=o,u},adjacent:function(e,t){for(var n=t+1;n>=t-1;n--)if(n===e)return!0;return!1},lock:function(){this.settings.locked=!0},unlock:function(){this.settings.locked=!1},locked:function(){return this.settings.locked},off:function(){this.S(this.scope).off(".fndtn.clearing"),this.S(t).off(".fndtn.clearing")},reflow:function(){this.init()}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";var i=function(){},s=function(r,i){if(r.hasClass(i.slides_container_class))return this;var s=this,a,f=r,l,c,h,p=0,d,v=!1,m=f.find("."+i.active_slide_class).length>0;s.cache={},s.slides=function(){return f.children(i.slide_selector)},m||s.slides().first().addClass(i.active_slide_class),s.update_slide_number=function(t){i.slide_number&&(l.find("span:first").text(parseInt(t)+1),l.find("span:last").text(s.slides().length)),i.bullets&&(c.children().removeClass(i.bullets_active_class),e(c.children().get(t)).addClass(i.bullets_active_class))},s.update_active_link=function(t){var n=e('[data-orbit-link="'+s.slides().eq(t).attr("data-orbit-slide")+'"]');n.siblings().removeClass(i.bullets_active_class),n.addClass(i.bullets_active_class)},s.build_markup=function(){f.wrap('<div class="'+i.container_class+'"></div>'),a=f.parent(),f.addClass(i.slides_container_class),f.addClass(i.animation),i.stack_on_small&&a.addClass(i.stack_on_small_class),i.navigation_arrows&&(a.append(e('<a href="#"><span></span></a>').addClass(i.prev_class)),a.append(e('<a href="#"><span></span></a>').addClass(i.next_class))),i.timer&&(h=e("<div>").addClass(i.timer_container_class),h.append("<span>"),i.timer_show_progress_bar&&h.append(e("<div>").addClass(i.timer_progress_class)),h.addClass(i.timer_paused_class),a.append(h)),i.slide_number&&(l=e("<div>").addClass(i.slide_number_class),l.append("<span></span> "+i.slide_number_text+" <span></span>"),a.append(l)),i.bullets&&(c=e("<ol>").addClass(i.bullets_container_class),a.append(c),c.wrap('<div class="orbit-bullets-container"></div>'),s.slides().each(function(t,n){var r=e("<li>").attr("data-orbit-slide",t).on("click",s.link_bullet);c.append(r)}))},s._prepare_direction=function(t,n){var r="next";t<=p&&(r="prev"),i.animation==="slide"&&setTimeout(function(){f.removeClass("swipe-prev swipe-next"),r==="next"?f.addClass("swipe-next"):r==="prev"&&f.addClass("swipe-prev")},0);var o=s.slides();if(t>=o.length){if(!i.circular)return!1;t=0}else if(t<0){if(!i.circular)return!1;t=o.length-1}var u=e(o.get(p)),a=e(o.get(t));return[r,u,a,t]},s._goto=function(e,t){if(e===null)return!1;if(s.cache.animating)return!1;if(e===p)return!1;typeof s.cache.timer=="object"&&s.cache.timer.restart();var n=s.slides();s.cache.animating=!0;var r=s._prepare_direction(e),o=r[0],u=r[1],a=r[2],e=r[3];if(r===!1)return!1;f.trigger("before-slide-change.fndtn.orbit"),i.before_slide_change(),p=e,u.css("transitionDuration",i.animation_speed+"ms"),a.css("transitionDuration",i.animation_speed+"ms");var l=function(){var r=function(){t===!0&&s.cache.timer.restart(),s.update_slide_number(p),a.removeClass("animate-in"),a.addClass(i.active_slide_class),s.update_active_link(e),f.trigger("after-slide-change.fndtn.orbit",[{slide_number:p,total_slides:n.length}]),i.after_slide_change(p,n.length),setTimeout(function(){s.cache.animating=!1},100)};f.height()!=a.height()&&i.variable_height?f.animate({"min-height":a.height()},250,"linear",r):r()};if(n.length===1)return l(),!1;var c=function(){o==="next"&&d.next(u,a,l),o==="prev"&&d.prev(u,a,l)};a.height()>f.height()&&i.variable_height?f.animate({"min-height":a.height()},250,"linear",c):c()},s.next=function(e){e.stopImmediatePropagation(),e.preventDefault(),s._prepare_direction(p+1),setTimeout(function(){s._goto(p+1)},100)},s.prev=function(e){e.stopImmediatePropagation(),e.preventDefault(),s._prepare_direction(p-1),setTimeout(function(){s._goto(p-1)},100)},s.link_custom=function(t){t.preventDefault();var n=e(this).attr("data-orbit-link");if(typeof n=="string"&&(n=e.trim(n))!=""){var r=a.find("[data-orbit-slide="+n+"]");r.index()!=-1&&setTimeout(function(){s._goto(r.index())},100)}},s.link_bullet=function(t){var n=e(this).attr("data-orbit-slide");if(typeof n=="string"&&(n=e.trim(n))!="")if(isNaN(parseInt(n))){var r=a.find("[data-orbit-slide="+n+"]");r.index()!=-1&&(n=r.index()+1,s._prepare_direction(n),setTimeout(function(){s._goto(n)},100))}else n=parseInt(n),s._prepare_direction(n),setTimeout(function(){s._goto(n)},100)},s.timer_callback=function(){s._goto(p+1,!0)},s.compute_dimensions=function(){var t=e(s.slides().get(p)),n=t.height();i.variable_height||s.slides().each(function(){e(this).height()>n&&(n=e(this).height())}),f.css("minHeight",String(n)+"px")},s.create_timer=function(){var e=new o(a.find("."+i.timer_container_class),i,s.timer_callback);return e},s.stop_timer=function(){typeof s.cache.timer=="object"&&s.cache.timer.stop()},s.toggle_timer=function(){var e=a.find("."+i.timer_container_class);e.hasClass(i.timer_paused_class)?(typeof s.cache.timer=="undefined"&&(s.cache.timer=s.create_timer()),s.cache.timer.start()):typeof s.cache.timer=="object"&&s.cache.timer.stop()},s.init=function(){s.build_markup(),i.timer&&(s.cache.timer=s.create_timer(),Foundation.utils.image_loaded(this.slides().find("img"),s.cache.timer.start)),d=new u(i,f);if(m){var r=f.find("."+i.active_slide_class),o=i.animation_speed;i.animation_speed=1,r.removeClass("active"),s._goto(r.index()),i.animation_speed=o}a.on("click","."+i.next_class,s.next),a.on("click","."+i.prev_class,s.prev),i.next_on_click&&a.on("click","."+i.slides_container_class+" [data-orbit-slide]",s.link_bullet),a.on("click",s.toggle_timer),i.swipe&&f.on("touchstart.fndtn.orbit",function(e){if(s.cache.animating)return;e.touches||(e=e.originalEvent),e.preventDefault(),e.stopPropagation(),s.cache.start_page_x=e.touches[0].pageX,s.cache.start_page_y=e.touches[0].pageY,s.cache.start_time=(new Date).getTime(),s.cache.delta_x=0,s.cache.is_scrolling=null,s.cache.direction=null,s.stop_timer()}).on("touchmove.fndtn.orbit",function(e){Math.abs(s.cache.delta_x)>5&&(e.preventDefault(),e.stopPropagation());if(s.cache.animating)return;requestAnimationFrame(function(){e.touches||(e=e.originalEvent);if(e.touches.length>1||e.scale&&e.scale!==1)return;s.cache.delta_x=e.touches[0].pageX-s.cache.start_page_x,s.cache.is_scrolling===null&&(s.cache.is_scrolling=!!(s.cache.is_scrolling||Math.abs(s.cache.delta_x)<Math.abs(e.touches[0].pageY-s.cache.start_page_y)));if(s.cache.is_scrolling)return;var t=s.cache.delta_x<0?p+1:p-1;if(s.cache.direction!==t){var n=s._prepare_direction(t);s.cache.direction=t,s.cache.dir=n[0],s.cache.current=n[1],s.cache.next=n[2]}if(i.animation==="slide"){var r,o;r=s.cache.delta_x/a.width()*100,r>=0?o=-(100-r):o=100+r,s.cache.current.css("transform","translate3d("+r+"%,0,0)"),s.cache.next.css("transform","translate3d("+o+"%,0,0)")}})}).on("touchend.fndtn.orbit",function(e){if(s.cache.animating)return;e.preventDefault(),e.stopPropagation(),setTimeout(function(){s._goto(s.cache.direction)},50)}),a.on("mouseenter.fndtn.orbit",function(e){i.timer&&i.pause_on_hover&&s.stop_timer()}).on("mouseleave.fndtn.orbit",function(e){i.timer&&i.resume_on_mouseout&&s.cache.timer.start()}),e(n).on("click","[data-orbit-link]",s.link_custom),e(t).on("load resize",s.compute_dimensions);var l=this.slides().find("img");Foundation.utils.image_loaded(l,s.compute_dimensions),Foundation.utils.image_loaded(l,function(){a.prev("."+i.preloader_class).css("display","none"),s.update_slide_number(p),s.update_active_link(p),f.trigger("ready.fndtn.orbit")})},s.init()},o=function(e,t,n){var r=this,i=t.timer_speed,s=e.find("."+t.timer_progress_class),o=s&&s.css("display")!="none",u,a,f=-1;this.update_progress=function(e){var t=s.clone();t.attr("style",""),t.css("width",e+"%"),s.replaceWith(t),s=t},this.restart=function(){clearTimeout(a),e.addClass(t.timer_paused_class),f=-1,o&&r.update_progress(0),r.start()},this.start=function(){if(!e.hasClass(t.timer_paused_class))return!0;f=f===-1?i:f,e.removeClass(t.timer_paused_class),o&&(u=(new Date).getTime(),s.animate({width:"100%"},f,"linear")),a=setTimeout(function(){r.restart(),n()},f),e.trigger("timer-started.fndtn.orbit")},this.stop=function(){if(e.hasClass(t.timer_paused_class))return!0;clearTimeout(a),e.addClass(t.timer_paused_class);if(o){var n=(new Date).getTime();f-=n-u;var s=100-f/i*100;r.update_progress(s)}e.trigger("timer-stopped.fndtn.orbit")}},u=function(e,t){var n="webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend";this.next=function(r,i,s){Modernizr.csstransitions?i.on(n,function(e){i.unbind(n),r.removeClass("active animate-out"),t.children().css({transform:"","-ms-transform":"","-webkit-transition-duration":"","-moz-transition-duration":"","-o-transition-duration":"","transition-duration":""}),s()}):setTimeout(function(){r.removeClass("active animate-out"),t.children().css({transform:"","-ms-transform":"","-webkit-transition-duration":"","-moz-transition-duration":"","-o-transition-duration":"","transition-duration":""}),s()},e.animation_speed),t.children().css({transform:"","-ms-transform":"","-webkit-transition-duration":"","-moz-transition-duration":"","-o-transition-duration":"","transition-duration":""}),r.addClass("animate-out"),i.addClass("animate-in")},this.prev=function(r,i,s){Modernizr.csstransitions?i.on(n,function(e){i.unbind(n),r.removeClass("active animate-out"),t.children().css({transform:"","-ms-transform":"","-webkit-transition-duration":"","-moz-transition-duration":"","-o-transition-duration":"","transition-duration":""}),s()}):setTimeout(function(){r.removeClass("active animate-out"),t.children().css({transform:"","-ms-transform":"","-webkit-transition-duration":"","-moz-transition-duration":"","-o-transition-duration":"","transition-duration":""}),s()},e.animation_speed),t.children().css({transform:"","-ms-transform":"","-webkit-transition-duration":"","-moz-transition-duration":"","-o-transition-duration":"","transition-duration":""}),r.addClass("animate-out"),i.addClass("animate-in")}};Foundation.libs=Foundation.libs||{},Foundation.libs.orbit={name:"orbit",version:"5.2.3",settings:{animation:"slide",timer_speed:1e4,pause_on_hover:!0,resume_on_mouseout:!1,next_on_click:!0,animation_speed:500,stack_on_small:!1,navigation_arrows:!0,slide_number:!0,slide_number_text:"of",container_class:"orbit-container",stack_on_small_class:"orbit-stack-on-small",next_class:"orbit-next",prev_class:"orbit-prev",timer_container_class:"orbit-timer",timer_paused_class:"paused",timer_progress_class:"orbit-progress",timer_show_progress_bar:!0,slides_container_class:"orbit-slides-container",preloader_class:"preloader",slide_selector:"*",bullets_container_class:"orbit-bullets",bullets_active_class:"active",slide_number_class:"orbit-slide-number",caption_class:"orbit-caption",active_slide_class:"active",orbit_transition_class:"orbit-transitioning",bullets:!0,circular:!0,timer:!0,variable_height:!1,swipe:!0,before_slide_change:i,after_slide_change:i},init:function(e,t,n){var r=this;this.bindings(t,n)},events:function(e){var t=this,n=new s(this.S(e),this.S(e).data("orbit-init"));this.S(e).data(t.name+"-instance",n)},reflow:function(){var e=this;if(e.S(e.scope).is("[data-orbit]")){var t=e.S(e.scope),n=t.data(e.name+"-instance");n.compute_dimensions()}else e.S("[data-orbit]",e.scope).each(function(t,n){var r=e.S(n),i=e.data_options(r),s=r.data(e.name+"-instance");s.compute_dimensions()})}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";Foundation.libs.offcanvas={name:"offcanvas",version:"5.2.3",settings:{open_method:"move",close_on_click:!0},init:function(e,t,n){this.bindings(t,n)},events:function(){var e=this,t=e.S,n="",r="",i="";this.settings.open_method==="move"?(n="move-",r="right",i="left"):this.settings.open_method==="overlap"&&(n="offcanvas-overlap"),t(this.scope).off(".offcanvas").on("click.fndtn.offcanvas",".left-off-canvas-toggle",function(t){e.click_toggle_class(t,n+r)}).on("click.fndtn.offcanvas",".left-off-canvas-menu a",function(t){var i=e.get_settings(t);i.close_on_click&&e.hide.call(e,n+r,e.get_wrapper(t))}).on("click.fndtn.offcanvas",".right-off-canvas-toggle",function(t){e.click_toggle_class(t,n+i)}).on("click.fndtn.offcanvas",".right-off-canvas-menu a",function(t){var r=e.get_settings(t);r.close_on_click&&e.hide.call(e,n+i,e.get_wrapper(t))}).on("click.fndtn.offcanvas",".exit-off-canvas",function(t){e.click_remove_class(t,n+i),r&&e.click_remove_class(t,n+r)})},toggle:function(e,t){t=t||this.get_wrapper(),t.is("."+e)?this.hide(e,t):this.show(e,t)},show:function(e,t){t=t||this.get_wrapper(),t.trigger("open"),t.addClass(e)},hide:function(e,t){t=t||this.get_wrapper(),t.trigger("close"),t.removeClass(e)},click_toggle_class:function(e,t){e.preventDefault();var n=this.get_wrapper(e);this.toggle(t,n)},click_remove_class:function(e,t){e.preventDefault();var n=this.get_wrapper(e);this.hide(t,n)},get_settings:function(e){var t=this.S(e.target).closest("["+this.attr_name()+"]");return t.data(this.attr_name(!0)+"-init")||this.settings},get_wrapper:function(e){var t=this.S(e?e.target:this.scope).closest(".off-canvas-wrap");return t.length===0&&(t=this.S(".off-canvas-wrap")),t},reflow:function(){}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";Foundation.libs.alert={name:"alert",version:"5.2.3",settings:{callback:function(){}},init:function(e,t,n){this.bindings(t,n)},events:function(){var n=this,r=this.S;e(this.scope).off(".alert").on("click.fndtn.alert","["+this.attr_name()+"] a.close",function(e){var i=r(this).closest("["+n.attr_name()+"]"),s=i.data(n.attr_name(!0)+"-init")||n.settings;e.preventDefault(),"transitionend"in t||"webkitTransitionEnd"in t||"oTransitionEnd"in t?(i.addClass("alert-close"),i.on("transitionend webkitTransitionEnd oTransitionEnd",function(e){r(this).trigger("close").remove(),s.callback()})):i.fadeOut(300,function(){r(this).trigger("close").remove(),s.callback()})})},reflow:function(){}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";function i(e){var t=/fade/i.test(e),n=/pop/i.test(e);return{animate:t||n,pop:n,fade:t}}Foundation.libs.reveal={name:"reveal",version:"5.2.3",locked:!1,settings:{animation:"fadeAndPop",animation_speed:250,close_on_background_click:!0,close_on_esc:!0,dismiss_modal_class:"close-reveal-modal",bg_class:"reveal-modal-bg",open:function(){},opened:function(){},close:function(){},closed:function(){},bg:e(".reveal-modal-bg"),css:{open:{opacity:0,visibility:"visible",display:"block"},close:{opacity:1,visibility:"hidden",display:"none"}}},init:function(t,n,r){e.extend(!0,this.settings,n,r),this.bindings(n,r)},events:function(e){var t=this,r=t.S;return r(this.scope).off(".reveal").on("click.fndtn.reveal","["+this.add_namespace("data-reveal-id")+"]",function(e){e.preventDefault();if(!t.locked){var n=r(this),i=n.data(t.data_attr("reveal-ajax"));t.locked=!0;if(typeof i=="undefined")t.open.call(t,n);else{var s=i===!0?n.attr("href"):i;t.open.call(t,n,{url:s})}}}),r(n).on("touchend.fndtn.reveal click.fndtn.reveal",this.close_targets(),function(e){e.preventDefault();if(!t.locked){var n=r("["+t.attr_name()+"].open").data(t.attr_name(!0)+"-init"),i=r(e.target)[0]===r("."+n.bg_class)[0];if(i){if(!n.close_on_background_click)return;e.stopPropagation()}t.locked=!0,t.close.call(t,i?r("["+t.attr_name()+"].open"):r(this).closest("["+t.attr_name()+"]"))}}),r("["+t.attr_name()+"]",this.scope).length>0?r(this.scope).on("open.fndtn.reveal",this.settings.open).on("opened.fndtn.reveal",this.settings.opened).on("opened.fndtn.reveal",this.open_video).on("close.fndtn.reveal",this.settings.close).on("closed.fndtn.reveal",this.settings.closed).on("closed.fndtn.reveal",this.close_video):r(this.scope).on("open.fndtn.reveal","["+t.attr_name()+"]",this.settings.open).on("opened.fndtn.reveal","["+t.attr_name()+"]",this.settings.opened).on("opened.fndtn.reveal","["+t.attr_name()+"]",this.open_video).on("close.fndtn.reveal","["+t.attr_name()+"]",this.settings.close).on("closed.fndtn.reveal","["+t.attr_name()+"]",this.settings.closed).on("closed.fndtn.reveal","["+t.attr_name()+"]",this.close_video),!0},key_up_on:function(e){var t=this;return t.S("body").off("keyup.fndtn.reveal").on("keyup.fndtn.reveal",function(e){var n=t.S("["+t.attr_name()+"].open"),r=n.data(t.attr_name(!0)+"-init");r&&e.which===27&&r.close_on_esc&&!t.locked&&t.close.call(t,n)}),!0},key_up_off:function(e){return this.S("body").off("keyup.fndtn.reveal"),!0},open:function(t,n){var r=this,i;t?typeof t.selector!="undefined"?i=r.S("#"+t.data(r.data_attr("reveal-id"))).first():(i=r.S(this.scope),n=t):i=r.S(this.scope);var s=i.data(r.attr_name(!0)+"-init");s=s||this.settings;if(!i.hasClass("open")){var o=r.S("["+r.attr_name()+"].open");typeof i.data("css-top")=="undefined"&&i.data("css-top",parseInt(i.css("top"),10)).data("offset",this.cache_offset(i)),this.key_up_on(i),i.trigger("open"),o.length<1&&this.toggle_bg(i,!0),typeof n=="string"&&(n={url:n});if(typeof n=="undefined"||!n.url)o.length>0&&this.hide(o,s.css.close),this.show(i,s.css.open);else{var u=typeof n.success!="undefined"?n.success:null;e.extend(n,{success:function(t,n,a){e.isFunction(u)&&u(t,n,a),i.html(t),r.S(i).foundation("section","reflow"),r.S(i).children().foundation(),o.length>0&&r.hide(o,s.css.close),r.show(i,s.css.open)}}),e.ajax(n)}}},close:function(e){var e=e&&e.length?e:this.S(this.scope),t=this.S("["+this.attr_name()+"].open"),n=e.data(this.attr_name(!0)+"-init")||this.settings;t.length>0&&(this.locked=!0,this.key_up_off(e),e.trigger("close"),this.toggle_bg(e,!1),this.hide(t,n.css.close,n))},close_targets:function(){var e="."+this.settings.dismiss_modal_class;return this.settings.close_on_background_click?e+", ."+this.settings.bg_class:e},toggle_bg:function(t,n){this.S("."+this.settings.bg_class).length===0&&(this.settings.bg=e("<div />",{"class":this.settings.bg_class}).appendTo("body").hide());var i=this.settings.bg.filter(":visible").length>0;n!=i&&((n==r?i:!n)?this.hide(this.settings.bg):this.show(this.settings.bg))},show:function(n,r){if(r){var s=n.data(this.attr_name(!0)+"-init");s=s||this.settings;if(n.parent("body").length===0){var o=n.wrap('<div style="display: none;" />').parent(),u=this.settings.rootElement||"body";n.on("closed.fndtn.reveal.wrapped",function(){n.detach().appendTo(o),n.unwrap().unbind("closed.fndtn.reveal.wrapped")}),n.detach().appendTo(u)}var a=i(s.animation);a.animate||(this.locked=!1);if(a.pop){r.top=e(t).scrollTop()-n.data("offset")+"px";var f={top:e(t).scrollTop()+n.data("css-top")+"px",opacity:1};return setTimeout(function(){return n.css(r).animate(f,s.animation_speed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),s.animation_speed/2)}if(a.fade){r.top=e(t).scrollTop()+n.data("css-top")+"px";var f={opacity:1};return setTimeout(function(){return n.css(r).animate(f,s.animation_speed,"linear",function(){this.locked=!1,n.trigger("opened")}.bind(this)).addClass("open")}.bind(this),s.animation_speed/2)}return n.css(r).show().css({opacity:1}).addClass("open").trigger("opened")}var s=this.settings;return i(s.animation).fade?n.fadeIn(s.animation_speed/2):(this.locked=!1,n.show())},hide:function(n,r){if(r){var s=n.data(this.attr_name(!0)+"-init");s=s||this.settings;var o=i(s.animation);o.animate||(this.locked=!1);if(o.pop){var u={top:-e(t).scrollTop()-n.data("offset")+"px",opacity:0};return setTimeout(function(){return n.animate(u,s.animation_speed,"linear",function(){this.locked=!1,n.css(r).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),s.animation_speed/2)}if(o.fade){var u={opacity:0};return setTimeout(function(){return n.animate(u,s.animation_speed,"linear",function(){this.locked=!1,n.css(r).trigger("closed")}.bind(this)).removeClass("open")}.bind(this),s.animation_speed/2)}return n.hide().css(r).removeClass("open").trigger("closed")}var s=this.settings;return i(s.animation).fade?n.fadeOut(s.animation_speed/2):n.hide()},close_video:function(t){var n=e(".flex-video",t.target),r=e("iframe",n);r.length>0&&(r.attr("data-src",r[0].src),r.attr("src","about:blank"),n.hide())},open_video:function(t){var n=e(".flex-video",t.target),i=n.find("iframe");if(i.length>0){var s=i.attr("data-src");if(typeof s=="string")i[0].src=i.attr("data-src");else{var o=i[0].src;i[0].src=r,i[0].src=o}n.show()}},data_attr:function(e){return this.namespace.length>0?this.namespace+"-"+e:e},cache_offset:function(e){var t=e.show().height()+parseInt(e.css("top"),10);return e.hide(),t},off:function(){e(this.scope).off(".fndtn.reveal")},reflow:function(){}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";Foundation.libs.interchange={name:"interchange",version:"5.2.3",cache:{},images_loaded:!1,nodes_loaded:!1,settings:{load_attr:"interchange",named_queries:{"default":"only screen",small:Foundation.media_queries.small,medium:Foundation.media_queries.medium,large:Foundation.media_queries.large,xlarge:Foundation.media_queries.xlarge,xxlarge:Foundation.media_queries.xxlarge,landscape:"only screen and (orientation: landscape)",portrait:"only screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)"},directives:{replace:function(t,n,r){if(/IMG/.test(t[0].nodeName)){var i=t[0].src;if((new RegExp(n,"i")).test(i))return;return t[0].src=n,r(t[0].src)}var s=t.data(this.data_attr+"-last-path");if(s==n)return;return/\.(gif|jpg|jpeg|tiff|png)([?#].*)?/i.test(n)?(e(t).css("background-image","url("+n+")"),t.data("interchange-last-path",n),r(n)):e.get(n,function(e){t.html(e),t.data(this.data_attr+"-last-path",n),r()})}}},init:function(t,n,r){Foundation.inherit(this,"throttle random_str"),this.data_attr=this.set_data_attr(),e.extend(!0,this.settings,n,r),this.bindings(n,r),this.load("images"),this.load("nodes")},get_media_hash:function(){var e="";for(var t in this.settings.named_queries)e+=matchMedia(this.settings.named_queries[t]).matches.toString();return e},events:function(){var n=this,r;return e(t).off(".interchange").on("resize.fndtn.interchange",n.throttle(function(){var e=n.get_media_hash();e!==r&&n.resize(),r=e},50)),this},resize:function(){var t=this.cache;if(!this.images_loaded||!this.nodes_loaded){setTimeout(e.proxy(this.resize,this),50);return}for(var n in t)if(t.hasOwnProperty(n)){var r=this.results(n,t[n]);r&&this.settings.directives[r.scenario[1]].call(this,r.el,r.scenario[0],function(){if(arguments[0]instanceof Array)var e=arguments[0];else var e=Array.prototype.slice.call(arguments,0);r.el.trigger(r.scenario[1],e)})}},results:function(e,t){var n=t.length;if(n>0){var r=this.S("["+this.add_namespace("data-uuid")+'="'+e+'"]');while(n--){var i,s=t[n][2];this.settings.named_queries.hasOwnProperty(s)?i=matchMedia(this.settings.named_queries[s]):i=matchMedia(s);if(i.matches)return{el:r,scenario:t[n]}}}return!1},load:function(e,t){return(typeof this["cached_"+e]=="undefined"||t)&&this["update_"+e](),this["cached_"+e]},update_images:function(){var e=this.S("img["+this.data_attr+"]"),t=e.length,n=t,r=0,i=this.data_attr;this.cache={},this.cached_images=[],this.images_loaded=t===0;while(n--){r++;if(e[n]){var s=e[n].getAttribute(i)||"";s.length>0&&this.cached_images.push(e[n])}r===t&&(this.images_loaded=!0,this.enhance("images"))}return this},update_nodes:function(){var e=this.S("["+this.data_attr+"]").not("img"),t=e.length,n=t,r=0,i=this.data_attr;this.cached_nodes=[],this.nodes_loaded=t===0;while(n--){r++;var s=e[n].getAttribute(i)||"";s.length>0&&this.cached_nodes.push(e[n]),r===t&&(this.nodes_loaded=!0,this.enhance("nodes"))}return this},enhance:function(n){var r=this["cached_"+n].length;while(r--)this.object(e(this["cached_"+n][r]));return e(t).trigger("resize")},parse_params:function(e,t,n){return[this.trim(e),this.convert_directive(t),this.trim(n)]},convert_directive:function(e){var t=this.trim(e);return t.length>0?t:"replace"},object:function(e){var t=this.parse_data_attr(e),n=[],r=t.length;if(r>0)while(r--){var i=t[r].split(/\((.*?)(\))$/);if(i.length>1){var s=i[0].split(/\, /),o=this.parse_params(s[0],s[1],i[1]);n.push(o)}}return this.store(e,n)},store:function(e,t){var n=this.random_str(),r=e.data(this.add_namespace("uuid",!0));return this.cache[r]?this.cache[r]:(e.attr(this.add_namespace("data-uuid"),n),this.cache[n]=t)},trim:function(t){return typeof t=="string"?e.trim(t):t},set_data_attr:function(e){return e?this.namespace.length>0?this.namespace+"-"+this.settings.load_attr:this.settings.load_attr:this.namespace.length>0?"data-"+this.namespace+"-"+this.settings.load_attr:"data-"+this.settings.load_attr},parse_data_attr:function(e){var t=e.attr(this.attr_name()).split(/\[(.*?)\]/),n=t.length,r=[];while(n--)t[n].replace(/[\W\d]+/,"").length>4&&r.push(t[n]);return r},reflow:function(){this.load("images",!0),this.load("nodes",!0)}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";Foundation.libs["magellan-expedition"]={name:"magellan-expedition",version:"5.2.3",settings:{active_class:"active",threshold:0,destination_threshold:20,throttle_delay |
| + | :30,fixed_top:0},init:function(e,t,n){Foundation.inherit(this,"throttle"),this.bindings(t,n)},events:function(){var n=this,r=n.S,i=n.settings;n.set_expedition_position(),r(n.scope).off(".magellan").on("click.fndtn.magellan","["+n.add_namespace("data-magellan-arrival")+'] a[href^="#"]',function(t){t.preventDefault();var r=e(this).closest("["+n.attr_name()+"]"),i=r.data("magellan-expedition-init"),s=this.hash.split("#").join(""),o=e("a[name='"+s+"']");o.length===0&&(o=e("#"+s));var u=o.offset().top;u-=r.outerHeight(),e("html, body").stop().animate({scrollTop:u},700,"swing",function(){history.pushState?history.pushState(null,null,"#"+s):location.hash="#"+s})}).on("scroll.fndtn.magellan",n.throttle(this.check_for_arrivals.bind(this),i.throttle_delay)),e(t).on("resize.fndtn.magellan",n.throttle(this.set_expedition_position.bind(this),i.throttle_delay))},check_for_arrivals:function(){var e=this;e.update_arrivals(),e.update_expedition_positions()},set_expedition_position:function(){var t=this;e("["+this.attr_name()+"=fixed]",t.scope).each(function(n,r){var i=e(this),s=i.attr("styles"),o;i.attr("style",""),o=i.offset().top+t.settings.threshold,i.data(t.data_attr("magellan-top-offset"),o),i.attr("style",s)})},update_expedition_positions:function(){var n=this,r=e(t).scrollTop();e("["+this.attr_name()+"=fixed]",n.scope).each(function(){var t=e(this),i=t.data("magellan-top-offset");if(r>=i){var s=t.prev("["+n.add_namespace("data-magellan-expedition-clone")+"]");s.length===0&&(s=t.clone(),s.removeAttr(n.attr_name()),s.attr(n.add_namespace("data-magellan-expedition-clone"),""),t.before(s)),t.css({position:"fixed",top:n.settings.fixed_top})}else t.prev("["+n.add_namespace("data-magellan-expedition-clone")+"]").remove(),t.attr("style","").removeClass("fixed")})},update_arrivals:function(){var n=this,r=e(t).scrollTop();e("["+this.attr_name()+"]",n.scope).each(function(){var t=e(this),i=t.data(n.attr_name(!0)+"-init"),s=n.offsets(t,r),o=t.find("["+n.add_namespace("data-magellan-arrival")+"]"),u=!1;s.each(function(e,r){if(r.viewport_offset>=r.top_offset){var s=t.find("["+n.add_namespace("data-magellan-arrival")+"]");return s.not(r.arrival).removeClass(i.active_class),r.arrival.addClass(i.active_class),u=!0,!0}}),u||o.removeClass(i.active_class)})},offsets:function(t,n){var r=this,i=t.data(r.attr_name(!0)+"-init"),s=n;return t.find("["+r.add_namespace("data-magellan-arrival")+"]").map(function(n,o){var u=e(this).data(r.data_attr("magellan-arrival")),a=e("["+r.add_namespace("data-magellan-destination")+"="+u+"]");if(a.length>0){var f=a.offset().top-i.destination_threshold-t.outerHeight();return{destination:a,arrival:e(this),top_offset:f,viewport_offset:s}}}).sort(function(e,t){return e.top_offset<t.top_offset?-1:e.top_offset>t.top_offset?1:0})},data_attr:function(e){return this.namespace.length>0?this.namespace+"-"+e:e},off:function(){this.S(this.scope).off(".magellan"),this.S(t).off(".magellan")},reflow:function(){var t=this;e("["+t.add_namespace("data-magellan-expedition-clone")+"]",t.scope).remove()}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";Foundation.libs.accordion={name:"accordion",version:"5.2.3",settings:{active_class:"active",multi_expand:!1,toggleable:!0,callback:function(){}},init:function(e,t,n){this.bindings(t,n)},events:function(){var t=this,n=this.S;n(this.scope).off(".fndtn.accordion").on("click.fndtn.accordion","["+this.attr_name()+"] > dd > a",function(r){var i=n(this).closest("["+t.attr_name()+"]"),s=n("#"+this.href.split("#")[1]),o=n("dd > .content",i),u=e("dd",i),a=t.attr_name()+"="+i.attr(t.attr_name()),f=i.data(t.attr_name(!0)+"-init"),l=n("dd > .content."+f.active_class,i);r.preventDefault(),i.attr(t.attr_name())&&(o=o.add("["+a+"] dd > .content"),u=u.add("["+a+"] dd"));if(f.toggleable&&s.is(l))return s.parent("dd").toggleClass(f.active_class,!1),s.toggleClass(f.active_class,!1);f.multi_expand||(o.removeClass(f.active_class),u.removeClass(f.active_class)),s.addClass(f.active_class).parent().addClass(f.active_class),f.callback(s)})},off:function(){},reflow:function(){}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";Foundation.libs.topbar={name:"topbar",version:"5.2.3",settings:{index:0,sticky_class:"sticky",custom_back_text:!0,back_text:"Back",is_hover:!0,mobile_show_parent_link:!1,scrolltop:!0,sticky_on:"all"},init:function(t,n,r){Foundation.inherit(this,"add_custom_rule register_media throttle");var i=this;i.register_media("topbar","foundation-mq-topbar"),this.bindings(n,r),i.S("["+this.attr_name()+"]",this.scope).each(function(){var t=e(this),n=t.data(i.attr_name(!0)+"-init"),r=i.S("section",this);t.data("index",0);var s=t.parent();s.hasClass("fixed")||i.is_sticky(t,s,n)?(i.settings.sticky_class=n.sticky_class,i.settings.sticky_topbar=t,t.data("height",s.outerHeight()),t.data("stickyoffset",s.offset().top)):t.data("height",t.outerHeight()),n.assembled||i.assemble(t),n.is_hover?i.S(".has-dropdown",t).addClass("not-click"):i.S(".has-dropdown",t).removeClass("not-click"),i.add_custom_rule(".f-topbar-fixed { padding-top: "+t.data("height")+"px }"),s.hasClass("fixed")&&i.S("body").addClass("f-topbar-fixed")})},is_sticky:function(e,t,n){var r=t.hasClass(n.sticky_class);return r&&n.sticky_on==="all"?!0:r&&this.small()&&n.sticky_on==="small"?!0:r&&this.medium()&&n.sticky_on==="medium"?!0:r&&this.large()&&n.sticky_on==="large"?!0:!1},toggle:function(n){var r=this,i;n?i=r.S(n).closest("["+this.attr_name()+"]"):i=r.S("["+this.attr_name()+"]");var s=i.data(this.attr_name(!0)+"-init"),o=r.S("section, .section",i);r.breakpoint()&&(r.rtl?(o.css({right:"0%"}),e(">.name",o).css({right:"100%"})):(o.css({left:"0%"}),e(">.name",o).css({left:"100%"})),r.S("li.moved",o).removeClass("moved"),i.data("index",0),i.toggleClass("expanded").css("height","")),s.scrolltop?i.hasClass("expanded")?i.parent().hasClass("fixed")&&(s.scrolltop?(i.parent().removeClass("fixed"),i.addClass("fixed"),r.S("body").removeClass("f-topbar-fixed"),t.scrollTo(0,0)):i.parent().removeClass("expanded")):i.hasClass("fixed")&&(i.parent().addClass("fixed"),i.removeClass("fixed"),r.S("body").addClass("f-topbar-fixed")):(r.is_sticky(i,i.parent(),s)&&i.parent().addClass("fixed"),i.parent().hasClass("fixed")&&(i.hasClass("expanded")?(i.addClass("fixed"),i.parent().addClass("expanded"),r.S("body").addClass("f-topbar-fixed")):(i.removeClass("fixed"),i.parent().removeClass("expanded"),r.update_sticky_positioning())))},timer:null,events:function(n){var r=this,i=this.S;i(this.scope).off(".topbar").on("click.fndtn.topbar","["+this.attr_name()+"] .toggle-topbar",function(e){e.preventDefault(),r.toggle(this)}).on("click.fndtn.topbar",'.top-bar .top-bar-section li a[href^="#"],['+this.attr_name()+'] .top-bar-section li a[href^="#"]',function(t){var n=e(this).closest("li");r.breakpoint()&&!n.hasClass("back")&&!n.hasClass("has-dropdown")&&r.toggle()}).on("click.fndtn.topbar","["+this.attr_name()+"] li.has-dropdown",function(t){var n=i(this),s=i(t.target),o=n.closest("["+r.attr_name()+"]"),u=o.data(r.attr_name(!0)+"-init");if(s.data("revealId")){r.toggle();return}if(r.breakpoint())return;if(u.is_hover&&!Modernizr.touch)return;t.stopImmediatePropagation(),n.hasClass("hover")?(n.removeClass("hover").find("li").removeClass("hover"),n.parents("li.hover").removeClass("hover")):(n.addClass("hover"),e(n).siblings().removeClass("hover"),s[0].nodeName==="A"&&s.parent().hasClass("has-dropdown")&&t.preventDefault())}).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown>a",function(e){if(r.breakpoint()){e.preventDefault();var t=i(this),n=t.closest("["+r.attr_name()+"]"),s=n.find("section, .section"),o=t.next(".dropdown").outerHeight(),u=t.closest("li");n.data("index",n.data("index")+1),u.addClass("moved"),r.rtl?(s.css({right:-(100*n.data("index"))+"%"}),s.find(">.name").css({right:100*n.data("index")+"%"})):(s.css({left:-(100*n.data("index"))+"%"}),s.find(">.name").css({left:100*n.data("index")+"%"})),n.css("height",t.siblings("ul").outerHeight(!0)+n.data("height"))}}),i(t).off(".topbar").on("resize.fndtn.topbar",r.throttle(function(){r.resize.call(r)},50)).trigger("resize"),i("body").off(".topbar").on("click.fndtn.topbar touchstart.fndtn.topbar",function(e){var t=i(e.target).closest("li").closest("li.hover");if(t.length>0)return;i("["+r.attr_name()+"] li.hover").removeClass("hover")}),i(this.scope).on("click.fndtn.topbar","["+this.attr_name()+"] .has-dropdown .back",function(e){e.preventDefault();var t=i(this),n=t.closest("["+r.attr_name()+"]"),s=n.find("section, .section"),o=n.data(r.attr_name(!0)+"-init"),u=t.closest("li.moved"),a=u.parent();n.data("index",n.data("index")-1),r.rtl?(s.css({right:-(100*n.data("index"))+"%"}),s.find(">.name").css({right:100*n.data("index")+"%"})):(s.css({left:-(100*n.data("index"))+"%"}),s.find(">.name").css({left:100*n.data("index")+"%"})),n.data("index")===0?n.css("height",""):n.css("height",a.outerHeight(!0)+n.data("height")),setTimeout(function(){u.removeClass("moved")},300)})},resize:function(){var e=this;e.S("["+this.attr_name()+"]").each(function(){var t=e.S(this),r=t.data(e.attr_name(!0)+"-init"),i=t.parent("."+e.settings.sticky_class),s;if(!e.breakpoint()){var o=t.hasClass("expanded");t.css("height","").removeClass("expanded").find("li").removeClass("hover"),o&&e.toggle(t)}e.is_sticky(t,i,r)&&(i.hasClass("fixed")?(i.removeClass("fixed"),s=i.offset().top,e.S(n.body).hasClass("f-topbar-fixed")&&(s-=t.data("height")),t.data("stickyoffset",s),i.addClass("fixed")):(s=i.offset().top,t.data("stickyoffset",s)))})},breakpoint:function(){return!matchMedia(Foundation.media_queries.topbar).matches},small:function(){return matchMedia(Foundation.media_queries.small).matches},medium:function(){return matchMedia(Foundation.media_queries.medium).matches},large:function(){return matchMedia(Foundation.media_queries.large).matches},assemble:function(t){var n=this,r=t.data(this.attr_name(!0)+"-init"),i=n.S("section",t);i.detach(),n.S(".has-dropdown>a",i).each(function(){var t=n.S(this),i=t.siblings(".dropdown"),s=t.attr("href"),o;i.find(".title.back").length||(r.mobile_show_parent_link&&s&&s.length>1?o=e('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li><a class="parent-link js-generated" href="'+s+'">'+t.text()+"</a></li>"):o=e('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li>'),r.custom_back_text==1?e("h5>a",o).html(r.back_text):e("h5>a",o).html("« "+t.html()),i.prepend(o))}),i.appendTo(t),this.sticky(),this.assembled(t)},assembled:function(t){t.data(this.attr_name(!0),e.extend({},t.data(this.attr_name(!0)),{assembled:!0}))},height:function(t){var n=0,r=this;return e("> li",t).each(function(){n+=r.S(this).outerHeight(!0)}),n},sticky:function(){var e=this;this.S(t).on("scroll",function(){e.update_sticky_positioning()})},update_sticky_positioning:function(){var e="."+this.settings.sticky_class,n=this.S(t),r=this;if(r.settings.sticky_topbar&&r.is_sticky(this.settings.sticky_topbar,this.settings.sticky_topbar.parent(),this.settings)){var i=this.settings.sticky_topbar.data("stickyoffset");r.S(e).hasClass("expanded")||(n.scrollTop()>i?r.S(e).hasClass("fixed")||(r.S(e).addClass("fixed"),r.S("body").addClass("f-topbar-fixed")):n.scrollTop()<=i&&r.S(e).hasClass("fixed")&&(r.S(e).removeClass("fixed"),r.S("body").removeClass("f-topbar-fixed")))}},off:function(){this.S(this.scope).off(".fndtn.topbar"),this.S(t).off(".fndtn.topbar")},reflow:function(){}}}(jQuery,this,this.document),function(e,t,n,r){"use strict";Foundation.libs.tab={name:"tab",version:"5.2.3",settings:{active_class:"active",callback:function(){},deep_linking:!1,scroll_to_content:!0,is_hover:!1},default_tab_hashes:[],init:function(e,t,n){var r=this,i=this.S;this.bindings(t,n),this.handle_location_hash_change(),i("["+this.attr_name()+"] > .active > a",this.scope).each(function(){r.default_tab_hashes.push(this.hash)})},events:function(){var e=this,n=this.S;n(this.scope).off(".tab").on("click.fndtn.tab","["+this.attr_name()+"] > * > a",function(t){var r=n(this).closest("["+e.attr_name()+"]").data(e.attr_name(!0)+"-init");if(!r.is_hover||Modernizr.touch)t.preventDefault(),t.stopPropagation(),e.toggle_active_tab(n(this).parent())}).on("mouseenter.fndtn.tab","["+this.attr_name()+"] > * > a",function(t){var r=n(this).closest("["+e.attr_name()+"]").data(e.attr_name(!0)+"-init");r.is_hover&&e.toggle_active_tab(n(this).parent())}),n(t).on("hashchange.fndtn.tab",function(t){t.preventDefault(),e.handle_location_hash_change()})},handle_location_hash_change:function(){var t=this,n=this.S;n("["+this.attr_name()+"]",this.scope).each(function(){var i=n(this).data(t.attr_name(!0)+"-init");if(i.deep_linking){var s=t.scope.location.hash;if(s!=""){var o=n(s);if(o.hasClass("content")&&o.parent().hasClass("tab-content"))t.toggle_active_tab(e("["+t.attr_name()+"] > * > a[href="+s+"]").parent());else{var u=o.closest(".content").attr("id");u!=r&&t.toggle_active_tab(e("["+t.attr_name()+"] > * > a[href=#"+u+"]").parent(),s)}}else for(var a in t.default_tab_hashes)t.toggle_active_tab(e("["+t.attr_name()+"] > * > a[href="+t.default_tab_hashes[a]+"]").parent())}})},toggle_active_tab:function(n,i){var s=this.S,o=n.closest("["+this.attr_name()+"]"),u=n.children("a").first(),a="#"+u.attr("href").split("#")[1],f=s(a),l=n.siblings(),c=o.data(this.attr_name(!0)+"-init");s(this).data(this.data_attr("tab-content"))&&(a="#"+s(this).data(this.data_attr("tab-content")).split("#")[1],f=s(a));if(c.deep_linking){var h=e("body,html").scrollTop();i!=r?t.location.hash=i:t.location.hash=a,c.scroll_to_content?i==r||i==a?n.parent()[0].scrollIntoView():s(a)[0].scrollIntoView():(i==r||i==a)&&e("body,html").scrollTop(h)}n.addClass(c.active_class).triggerHandler("opened"),l.removeClass(c.active_class),f.siblings().removeClass(c.active_class).end().addClass(c.active_class),c.callback(n),f.triggerHandler("toggled",[n]),o.triggerHandler("toggled",[f])},data_attr:function(e){return this.namespace.length>0?this.namespace+"-"+e:e},off:function(){},reflow:function(){}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";Foundation.libs.abide={name:"abide",version:"5.2.3",settings:{live_validate:!0,focus_on_invalid:!0,error_labels:!0,timeout:1e3,patterns:{alpha:/^[a-zA-Z]+$/,alpha_numeric:/^[a-zA-Z0-9]+$/,integer:/^[-+]?\d+$/,number:/^[-+]?\d*(?:\.\d+)?$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,url:/^(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/,datetime:/^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,time:/^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,dateISO:/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,month_day_year:/^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/},validators:{equalTo:function(e,t,r){var i=n.getElementById(e.getAttribute(this.add_namespace("data-equalto"))).value,s=e.value,o=i===s;return o}}},timer:null,init:function(e,t,n){this.bindings(t,n)},events:function(t){var n=this,r=n.S(t).attr("novalidate","novalidate"),i=r.data(this.attr_name(!0)+"-init")||{};this.invalid_attr=this.add_namespace("data-invalid"),r.off(".abide").on("submit.fndtn.abide validate.fndtn.abide",function(e){var t=/ajax/i.test(n.S(this).attr(n.attr_name()));return n.validate(n.S(this).find("input, textarea, select").get(),e,t)}).on("reset",function(){return n.reset(e(this))}).find("input, textarea, select").off(".abide").on("blur.fndtn.abide change.fndtn.abide",function(e){n.validate([this],e)}).on("keydown.fndtn.abide",function(e){i.live_validate===!0&&(clearTimeout(n.timer),n.timer=setTimeout(function(){n.validate([this],e)}.bind(this),i.timeout))})},reset:function(t){t.removeAttr(this.invalid_attr),e(this.invalid_attr,t).removeAttr(this.invalid_attr),e(".error",t).not("small").removeClass("error")},validate:function(e,t,n){var r=this.parse_patterns(e),i=r.length,s=this.S(e[0]).closest("[data-"+this.attr_name(!0)+"]"),o=s.data(this.attr_name(!0)+"-init")||{},u=/submit/.test(t.type);s.trigger("validated");for(var a=0;a<i;a++)if(!r[a]&&(u||n))return o.focus_on_invalid&&e[a].focus(),s.trigger("invalid"),this.S(e[a]).closest("[data-"+this.attr_name(!0)+"]").attr(this.invalid_attr,""),!1;return(u||n)&&s.trigger("valid"),s.removeAttr(this.invalid_attr),n?!1:!0},parse_patterns:function(e){var t=e.length,n=[];while(t--)n.push(this.pattern(e[t]));return this.check_validation_and_apply_styles(n)},pattern:function(e){var t=e.getAttribute("type"),n=typeof e.getAttribute("required")=="string",r=e.getAttribute("pattern")||"";return this.settings.patterns.hasOwnProperty(r)&&r.length>0?[e,this.settings.patterns[r],n]:r.length>0?[e,new RegExp("^"+r+"$"),n]:this.settings.patterns.hasOwnProperty(t)?[e,this.settings.patterns[t],n]:(r=/.*/,[e,r,n])},check_validation_and_apply_styles:function(t){var n=t.length,r=[],i=this.S(t[0][0]).closest("[data-"+this.attr_name(!0)+"]"),s=i.data(this.attr_name(!0)+"-init")||{};while(n--){var o=t[n][0],u=t[n][2],a=o.value.trim(),f=this.S(o).parent(),l=o.getAttribute(this.add_namespace("data-abide-validator")),c=o.type==="radio",h=o.type==="checkbox",p=this.S('label[for="'+o.getAttribute("id")+'"]'),d=u?o.value.length>0:!0,v,m;o.getAttribute(this.add_namespace("data-equalto"))&&(l="equalTo"),f.is("label")?v=f.parent():v=f,c&&u?r.push(this.valid_radio(o,u)):h&&u?r.push(this.valid_checkbox(o,u)):l?(m=this.settings.validators[l].apply(this,[o,u,v]),r.push(m),m?(this.S(o).removeAttr(this.invalid_attr),v.removeClass("error")):(this.S(o).attr(this.invalid_attr,""),v.addClass("error"))):t[n][1].test(a)&&d||!u&&o.value.length<1||e(o).attr("disabled")?(this.S(o).removeAttr(this.invalid_attr),v.removeClass("error"),p.length>0&&s.error_labels&&p.removeClass("error"),r.push(!0),e(o).triggerHandler("valid")):(this.S(o).attr(this.invalid_attr,""),v.addClass("error"),p.length>0&&s.error_labels&&p.addClass("error"),r.push(!1),e(o).triggerHandler("invalid"))}return r},valid_checkbox:function(e,t){var e=this.S(e),n=e.is(":checked")||!t;return n?e.removeAttr(this.invalid_attr).parent().removeClass("error"):e.attr(this.invalid_attr,"").parent().addClass("error"),n},valid_radio:function(e,t){var n=e.getAttribute("name"),r=this.S(e).closest("[data-"+this.attr_name(!0)+"]").find("[name='"+n+"']"),i=r.length,s=!1;for(var o=0;o<i;o++)r[o].checked&&(s=!0);for(var o=0;o<i;o++)s?this.S(r[o]).removeAttr(this.invalid_attr).parent().removeClass("error"):this.S(r[o]).attr(this.invalid_attr,"").parent().addClass("error");return s},valid_equal:function(e,t,r){var i=n.getElementById(e.getAttribute(this.add_namespace("data-equalto"))).value,s=e.value,o=i===s;return o?(this.S(e).removeAttr(this.invalid_attr),r.removeClass("error")):(this.S(e).attr(this.invalid_attr,""),r.addClass("error")),o},valid_oneof:function(e,t,n,r){var e=this.S(e),i=this.S("["+this.add_namespace("data-oneof")+"]"),s=i.filter(":checked").length>0;s?e.removeAttr(this.invalid_attr).parent().removeClass("error"):e.attr(this.invalid_attr,"").parent().addClass("error");if(!r){var o=this;i.each(function(){o.valid_oneof.call(o,this,null,null,!0)})}return s}}}(jQuery,window,window.document),function(e,t,n,r){"use strict";Foundation.libs.tooltip={name:"tooltip",version:"5.2.3",settings:{additional_inheritable_classes:[],tooltip_class:".tooltip",append_to:"body",touch_close_text:"Tap To Close",disable_for_touch:!1,hover_delay:200,show_on:"all",tip_template:function(e,t){return'<span data-selector="'+e+'" class="'+Foundation.libs.tooltip.settings.tooltip_class.substring(1)+'">'+t+'<span class="nub"></span></span>'}},cache:{},init:function(e,t,n){Foundation.inherit(this,"random_str"),this.bindings(t,n)},should_show:function(t,n){var r=e.extend({},this.settings,this.data_options(t));return r.show_on==="all"?!0:this.small()&&r.show_on==="small"?!0:this.medium()&&r.show_on==="medium"?!0:this.large()&&r.show_on==="large"?!0:!1},medium:function(){return matchMedia(Foundation.media_queries.medium).matches},large:function(){return matchMedia(Foundation.media_queries.large).matches},events:function(t){var n=this,r=n.S;n.create(this.S(t)),e(this.scope).off(".tooltip").on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip","["+this.attr_name()+"]",function(t){var i=r(this),s=e.extend({},n.settings,n.data_options(i)),o=!1;if(Modernizr.touch&&/touchstart|MSPointerDown/i.test(t.type)&&r(t.target).is("a"))return!1;if(/mouse/i.test(t.type)&&n.ie_touch(t))return!1;if(i.hasClass("open"))Modernizr.touch&&/touchstart|MSPointerDown/i.test(t.type)&&t.preventDefault(),n.hide(i);else{if(s.disable_for_touch&&Modernizr.touch&&/touchstart|MSPointerDown/i.test(t.type))return;!s.disable_for_touch&&Modernizr.touch&&/touchstart|MSPointerDown/i.test(t.type)&&(t.preventDefault(),r(s.tooltip_class+".open").hide(),o=!0),/enter|over/i.test(t.type)?this.timer=setTimeout(function(){var e=n.showTip(i)}.bind(this),n.settings.hover_delay):t.type==="mouseout"||t.type==="mouseleave"?(clearTimeout(this.timer),n.hide(i)):n.showTip(i)}}).on("mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip","["+this.attr_name()+"].open",function(t){if(/mouse/i.test(t.type)&&n.ie_touch(t))return!1;if(e(this).data("tooltip-open-event-type")=="touch"&&t.type=="mouseleave")return;e(this).data("tooltip-open-event-type")=="mouse"&&/MSPointerDown|touchstart/i.test(t.type)?n.convert_to_touch(e(this)):n.hide(e(this))}).on("DOMNodeRemoved DOMAttrModified","["+this.attr_name()+"]:not(a)",function(e){n.hide(r(this))})},ie_touch:function(e){return!1},showTip:function(e){var t=this.getTip(e);if(this.should_show(e,t))return this.show(e);return},getTip:function(t){var n=this.selector(t),r=e.extend({},this.settings,this.data_options(t)),i=null;return n&&(i=this.S('span[data-selector="'+n+'"]'+r.tooltip_class)),typeof i=="object"?i:!1},selector:function(e){var t=e.attr("id"),n=e.attr(this.attr_name())||e.attr("data-selector");return(t&&t.length<1||!t)&&typeof n!="string"&&(n=this.random_str(6),e.attr("data-selector",n)),t&&t.length>0?t:n},create:function(n){var r=this,i=e.extend({},this.settings,this.data_options(n)),s=this.settings.tip_template;typeof i.tip_template=="string"&&t.hasOwnProperty(i.tip_template)&&(s=t[i.tip_template]);var o=e(s(this.selector(n),e("<div></div>").html(n.attr("title")).html())),u=this.inheritable_classes(n);o.addClass(u).appendTo(i.append_to),Modernizr.touch&&(o.append('<span class="tap-to-close">'+i.touch_close_text+"</span>"),o.on("touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip",function(e){r.hide(n)})),n.removeAttr("title").attr("title","")},reposition:function(t,n,r){var i,s,o,u,a,f;n.css("visibility","hidden").show(),i=t.data("width"),s=n.children(".nub"),o=s.outerHeight(),u=s.outerHeight(),this.small()?n.css({width:"100%"}):n.css({width:i?i:"auto"}),f=function(e,t,n,r,i,s){return e.css({top:t?t:"auto",bottom:r?r:"auto",left:i?i:"auto",right:n?n:"auto"}).end()},f(n,t.offset().top+t.outerHeight()+10,"auto","auto",t.offset().left);if(this.small())f(n,t.offset().top+t.outerHeight()+10,"auto","auto",12.5,e(this.scope).width()),n.addClass("tip-override"),f(s,-o,"auto","auto",t.offset().left);else{var l=t.offset().left;Foundation.rtl&&(s.addClass("rtl"),l=t.offset().left+t.outerWidth()-n.outerWidth()),f(n,t.offset().top+t.outerHeight()+10,"auto","auto",l),n.removeClass("tip-override"),r&&r.indexOf("tip-top")>-1?(Foundation.rtl&&s.addClass("rtl"),f(n,t.offset().top-n.outerHeight(),"auto","auto",l).removeClass("tip-override")):r&&r.indexOf("tip-left")>-1?(f(n,t.offset().top+t.outerHeight()/2-n.outerHeight()/2,"auto","auto",t.offset().left-n.outerWidth()-o).removeClass("tip-override"),s.removeClass("rtl")):r&&r.indexOf("tip-right")>-1&&(f(n,t.offset().top+t.outerHeight()/2-n.outerHeight()/2,"auto","auto",t.offset().left+t.outerWidth()+o).removeClass("tip-override"),s.removeClass("rtl"))}n.css("visibility","visible").hide()},small:function(){return matchMedia(Foundation.media_queries.small).matches&&!matchMedia(Foundation.media_queries.medium).matches},inheritable_classes:function(t){var n=e.extend({},this.settings,this.data_options(t)),r=["tip-top","tip-left","tip-bottom","tip-right","radius","round"].concat(n.additional_inheritable_classes),i=t.attr("class"),s=i?e.map(i.split(" "),function(t,n){if(e.inArray(t,r)!==-1)return t}).join(" "):"";return e.trim(s)},convert_to_touch:function(t){var n=this,r=n.getTip(t),i=e.extend({},n.settings,n.data_options(t));r.find(".tap-to-close").length===0&&(r.append('<span class="tap-to-close">'+i.touch_close_text+"</span>"),r.on("click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tooltip.tapclose",function(e){n.hide(t)})),t.data("tooltip-open-event-type","touch")},show:function(e){var t=this.getTip(e);e.data("tooltip-open-event-type")=="touch"&&this.convert_to_touch(e),this.reposition(e,t,e.attr("class")),e.addClass("open"),t.fadeIn(150)},hide:function(e){var t=this.getTip(e);t.fadeOut(150,function(){t.find(".tap-to-close").remove(),t.off("click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose"),e.removeClass("open")})},off:function(){var t=this;this.S(this.scope).off(".fndtn.tooltip"),this.S(this.settings.tooltip_class).each(function(n){e("["+t.attr_name()+"]").eq(n).attr("title",e(this).text())}).remove()},reflow:function(){}}}(jQuery,window,window.document); |
generators/foundation5/public/javascripts/foundation/foundation.abide.js
+132
-55
| @@ | @@ -4,20 +4,18 @@ |
| Foundation.libs.abide = { | |
| name : 'abide', | |
| - | version : '5.0.3', |
| + | version : '5.2.3', |
| settings : { | |
| + | live_validate : true, |
| focus_on_invalid : true, | |
| error_labels: true, // labels with a for="inputId" will recieve an `error` class | |
| timeout : 1000, | |
| patterns : { | |
| - | alpha: /[a-zA-Z]+/, |
| - | alpha_numeric : /[a-zA-Z0-9]+/, |
| - | integer: /-?\d+/, |
| - | number: /-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?/, |
| - | |
| - | // generic password: upper-case, lower-case, number/special character, and min 8 characters |
| - | password : /(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/, |
| + | alpha: /^[a-zA-Z]+$/, |
| + | alpha_numeric : /^[a-zA-Z0-9]+$/, |
| + | integer: /^[-+]?\d+$/, |
| + | number: /^[-+]?\d*(?:\.\d+)?$/, |
| // amex, visa, diners | |
| card : /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, | |
| @@ | @@ -26,21 +24,30 @@ |
| // http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address | |
| email : /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/, | |
| - | url: /(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?/, |
| + | url: /^(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/, |
| // abc.de | |
| domain: /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$/, | |
| - | datetime: /([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))/, |
| + | datetime: /^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/, |
| // YYYY-MM-DD | |
| - | date: /(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))/, |
| + | date: /(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/, |
| // HH:MM:SS | |
| - | time : /(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}/, |
| - | dateISO: /\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/, |
| + | time : /^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/, |
| + | dateISO: /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/, |
| // MM/DD/YYYY | |
| - | month_day_year : /(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.](19|20)\d\d/, |
| + | month_day_year : /^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/, |
| // #FFF or #FFFFFF | |
| color: /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/ | |
| + | }, |
| + | validators : { |
| + | equalTo: function(el, required, parent) { |
| + | var from = document.getElementById(el.getAttribute(this.add_namespace('data-equalto'))).value, |
| + | to = el.value, |
| + | valid = (from === to); |
| + | |
| + | return valid; |
| + | } |
| } | |
| }, | |
| @@ | @@ -52,14 +59,19 @@ |
| events : function (scope) { | |
| var self = this, | |
| - | form = $(scope).attr('novalidate', 'novalidate'), |
| - | settings = form.data('abide-init'); |
| + | form = self.S(scope).attr('novalidate', 'novalidate'), |
| + | settings = form.data(this.attr_name(true) + '-init') || {}; |
| + | |
| + | this.invalid_attr = this.add_namespace('data-invalid'); |
| form | |
| .off('.abide') | |
| .on('submit.fndtn.abide validate.fndtn.abide', function (e) { | |
| - | var is_ajax = /ajax/i.test($(this).attr('data-abide')); |
| - | return self.validate($(this).find('input, textarea, select').get(), e, is_ajax); |
| + | var is_ajax = /ajax/i.test(self.S(this).attr(self.attr_name())); |
| + | return self.validate(self.S(this).find('input, textarea, select').get(), e, is_ajax); |
| + | }) |
| + | .on('reset', function() { |
| + | return self.reset($(this)); |
| }) | |
| .find('input, textarea, select') | |
| .off('.abide') | |
| @@ | @@ -67,25 +79,35 @@ |
| self.validate([this], e); | |
| }) | |
| .on('keydown.fndtn.abide', function (e) { | |
| - | var settings = $(this).closest('form').data('abide-init'); |
| - | clearTimeout(self.timer); |
| - | self.timer = setTimeout(function () { |
| - | self.validate([this], e); |
| - | }.bind(this), settings.timeout); |
| + | if (settings.live_validate === true) { |
| + | clearTimeout(self.timer); |
| + | self.timer = setTimeout(function () { |
| + | self.validate([this], e); |
| + | }.bind(this), settings.timeout); |
| + | } |
| }); | |
| }, | |
| + | reset : function (form) { |
| + | form.removeAttr(this.invalid_attr); |
| + | $(this.invalid_attr, form).removeAttr(this.invalid_attr); |
| + | $('.error', form).not('small').removeClass('error'); |
| + | }, |
| + | |
| validate : function (els, e, is_ajax) { | |
| var validations = this.parse_patterns(els), | |
| validation_count = validations.length, | |
| - | form = $(els[0]).closest('form'), |
| + | form = this.S(els[0]).closest('[data-' + this.attr_name(true) + ']'), |
| + | settings = form.data(this.attr_name(true) + '-init') || {}, |
| submit_event = /submit/.test(e.type); | |
| + | form.trigger('validated'); |
| + | // Has to count up to make sure the focus gets applied to the top error |
| for (var i=0; i < validation_count; i++) { | |
| if (!validations[i] && (submit_event || is_ajax)) { | |
| - | if (this.settings.focus_on_invalid) els[i].focus(); |
| + | if (settings.focus_on_invalid) els[i].focus(); |
| form.trigger('invalid'); | |
| - | $(els[i]).closest('form').attr('data-invalid', ''); |
| + | this.S(els[i]).closest('[data-' + this.attr_name(true) + ']').attr(this.invalid_attr, ''); |
| return false; | |
| } | |
| } | |
| @@ | @@ -94,7 +116,7 @@ |
| form.trigger('valid'); | |
| } | |
| - | form.removeAttr('data-invalid'); |
| + | form.removeAttr(this.invalid_attr); |
| if (is_ajax) return false; | |
| @@ | @@ -102,10 +124,10 @@ |
| }, | |
| parse_patterns : function (els) { | |
| - | var count = els.length, |
| + | var i = els.length, |
| el_patterns = []; | |
| - | for (var i = count - 1; i >= 0; i--) { |
| + | while (i--) { |
| el_patterns.push(this.pattern(els[i])); | |
| } | |
| @@ | @@ -121,9 +143,9 @@ |
| if (this.settings.patterns.hasOwnProperty(pattern) && pattern.length > 0) { | |
| return [el, this.settings.patterns[pattern], required]; | |
| } else if (pattern.length > 0) { | |
| - | return [el, new RegExp(pattern), required]; |
| + | return [el, new RegExp('^'+pattern+'$'), required]; |
| } | |
| - | |
| + | |
| if (this.settings.patterns.hasOwnProperty(type)) { | |
| return [el, this.settings.patterns[type], required]; | |
| } | |
| @@ | @@ -134,37 +156,66 @@ |
| }, | |
| check_validation_and_apply_styles : function (el_patterns) { | |
| - | var count = el_patterns.length, |
| - | validations = []; |
| + | var i = el_patterns.length, |
| + | validations = [], |
| + | form = this.S(el_patterns[0][0]).closest('[data-' + this.attr_name(true) + ']'), |
| + | settings = form.data(this.attr_name(true) + '-init') || {}; |
| - | for (var i = count - 1; i >= 0; i--) { |
| + | while (i--) { |
| var el = el_patterns[i][0], | |
| required = el_patterns[i][2], | |
| - | value = el.value, |
| - | is_equal = el.getAttribute('data-equalto'), |
| + | value = el.value.trim(), |
| + | direct_parent = this.S(el).parent(), |
| + | validator = el.getAttribute(this.add_namespace('data-abide-validator')), |
| is_radio = el.type === "radio", | |
| is_checkbox = el.type === "checkbox", | |
| - | label = $('label[for="' + el.getAttribute('id') + '"]'), |
| + | label = this.S('label[for="' + el.getAttribute('id') + '"]'), |
| valid_length = (required) ? (el.value.length > 0) : true; | |
| + | var parent, valid; |
| + | |
| + | // support old way to do equalTo validations |
| + | if(el.getAttribute(this.add_namespace('data-equalto'))) { validator = "equalTo" } |
| + | |
| + | if (!direct_parent.is('label')) { |
| + | parent = direct_parent; |
| + | } else { |
| + | parent = direct_parent.parent(); |
| + | } |
| + | |
| if (is_radio && required) { | |
| validations.push(this.valid_radio(el, required)); | |
| } else if (is_checkbox && required) { | |
| validations.push(this.valid_checkbox(el, required)); | |
| - | } else if (is_equal && required) { |
| - | validations.push(this.valid_equal(el, required)); |
| + | } else if (validator) { |
| + | valid = this.settings.validators[validator].apply(this, [el, required, parent]) |
| + | validations.push(valid); |
| + | |
| + | if (valid) { |
| + | this.S(el).removeAttr(this.invalid_attr); |
| + | parent.removeClass('error'); |
| + | } else { |
| + | this.S(el).attr(this.invalid_attr, ''); |
| + | parent.addClass('error'); |
| + | } |
| + | |
| } else { | |
| + | |
| if (el_patterns[i][1].test(value) && valid_length || | |
| - | !required && el.value.length < 1) { |
| - | $(el).removeAttr('data-invalid').parent().removeClass('error'); |
| - | if (label.length > 0 && this.settings.error_labels) label.removeClass('error'); |
| + | !required && el.value.length < 1 || $(el).attr('disabled')) { |
| + | this.S(el).removeAttr(this.invalid_attr); |
| + | parent.removeClass('error'); |
| + | if (label.length > 0 && settings.error_labels) label.removeClass('error'); |
| validations.push(true); | |
| + | $(el).triggerHandler('valid'); |
| } else { | |
| - | $(el).attr('data-invalid', '').parent().addClass('error'); |
| - | if (label.length > 0 && this.settings.error_labels) label.addClass('error'); |
| + | this.S(el).attr(this.invalid_attr, ''); |
| + | parent.addClass('error'); |
| + | if (label.length > 0 && settings.error_labels) label.addClass('error'); |
| validations.push(false); | |
| + | $(el).triggerHandler('invalid'); |
| } | |
| } | |
| } | |
| @@ | @@ -173,12 +224,13 @@ |
| }, | |
| valid_checkbox : function(el, required) { | |
| - | var el = $(el), |
| + | var el = this.S(el), |
| valid = (el.is(':checked') || !required); | |
| + | |
| if (valid) { | |
| - | el.removeAttr('data-invalid').parent().removeClass('error'); |
| + | el.removeAttr(this.invalid_attr).parent().removeClass('error'); |
| } else { | |
| - | el.attr('data-invalid', '').parent().addClass('error'); |
| + | el.attr(this.invalid_attr, '').parent().addClass('error'); |
| } | |
| return valid; | |
| @@ | @@ -186,37 +238,62 @@ |
| valid_radio : function (el, required) { | |
| var name = el.getAttribute('name'), | |
| - | group = document.getElementsByName(name), |
| + | group = this.S(el).closest('[data-' + this.attr_name(true) + ']').find("[name='"+name+"']"), |
| count = group.length, | |
| valid = false; | |
| + | // Has to count up to make sure the focus gets applied to the top error |
| for (var i=0; i < count; i++) { | |
| if (group[i].checked) valid = true; | |
| } | |
| + | // Has to count up to make sure the focus gets applied to the top error |
| for (var i=0; i < count; i++) { | |
| if (valid) { | |
| - | $(group[i]).removeAttr('data-invalid').parent().removeClass('error'); |
| + | this.S(group[i]).removeAttr(this.invalid_attr).parent().removeClass('error'); |
| } else { | |
| - | $(group[i]).attr('data-invalid', '').parent().addClass('error'); |
| + | this.S(group[i]).attr(this.invalid_attr, '').parent().addClass('error'); |
| } | |
| } | |
| return valid; | |
| }, | |
| - | valid_equal: function(el, required) { |
| - | var from = document.getElementById(el.getAttribute('data-equalto')).value, |
| + | valid_equal: function(el, required, parent) { |
| + | var from = document.getElementById(el.getAttribute(this.add_namespace('data-equalto'))).value, |
| to = el.value, | |
| valid = (from === to); | |
| if (valid) { | |
| - | $(el).removeAttr('data-invalid').parent().removeClass('error'); |
| + | this.S(el).removeAttr(this.invalid_attr); |
| + | parent.removeClass('error'); |
| + | } else { |
| + | this.S(el).attr(this.invalid_attr, ''); |
| + | parent.addClass('error'); |
| + | } |
| + | |
| + | return valid; |
| + | }, |
| + | |
| + | valid_oneof: function(el, required, parent, doNotValidateOthers) { |
| + | var el = this.S(el), |
| + | others = this.S('[' + this.add_namespace('data-oneof') + ']'), |
| + | valid = others.filter(':checked').length > 0; |
| + | |
| + | if (valid) { |
| + | el.removeAttr(this.invalid_attr).parent().removeClass('error'); |
| } else { | |
| - | $(el).attr('data-invalid', '').parent().addClass('error'); |
| + | el.attr(this.invalid_attr, '').parent().addClass('error'); |
| + | } |
| + | |
| + | if (!doNotValidateOthers) { |
| + | var _this = this; |
| + | others.each(function() { |
| + | _this.valid_oneof.call(_this, this, null, null, true); |
| + | }); |
| } | |
| return valid; | |
| } | |
| }; | |
| - | }(jQuery, this, this.document)); |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.accordion.js
+32
-14
| @@ | @@ -4,11 +4,13 @@ |
| Foundation.libs.accordion = { | |
| name : 'accordion', | |
| - | version : '5.0.1', |
| + | version : '5.2.3', |
| settings : { | |
| active_class: 'active', | |
| - | toggleable: true |
| + | multi_expand: false, |
| + | toggleable: true, |
| + | callback : function () {} |
| }, | |
| init : function (scope, method, options) { | |
| @@ | @@ -16,21 +18,37 @@ |
| }, | |
| events : function () { | |
| - | $(this.scope).off('.accordion').on('click.fndtn.accordion', '[data-accordion] > dd > a', function (e) { |
| - | var accordion = $(this).parent(), |
| - | target = $('#' + this.href.split('#')[1]), |
| - | siblings = $('> dd > .content', target.closest('[data-accordion]')), |
| - | settings = accordion.parent().data('accordion-init'), |
| - | active = $('> dd > .content.' + settings.active_class, accordion.parent()); |
| - | |
| + | var self = this; |
| + | var S = this.S; |
| + | S(this.scope) |
| + | .off('.fndtn.accordion') |
| + | .on('click.fndtn.accordion', '[' + this.attr_name() + '] > dd > a', function (e) { |
| + | var accordion = S(this).closest('[' + self.attr_name() + ']'), |
| + | target = S('#' + this.href.split('#')[1]), |
| + | siblings = S('dd > .content', accordion), |
| + | aunts = $('dd', accordion), |
| + | groupSelector = self.attr_name() + '=' + accordion.attr(self.attr_name()), |
| + | settings = accordion.data(self.attr_name(true) + '-init'), |
| + | active_content = S('dd > .content.' + settings.active_class, accordion); |
| e.preventDefault(); | |
| - | if (active[0] == target[0] && settings.toggleable) { |
| - | return target.toggleClass(settings.active_class); |
| + | if (accordion.attr(self.attr_name())) { |
| + | siblings = siblings.add('[' + groupSelector + '] dd > .content'); |
| + | aunts = aunts.add('[' + groupSelector + '] dd'); |
| + | } |
| + | |
| + | if (settings.toggleable && target.is(active_content)) { |
| + | target.parent('dd').toggleClass(settings.active_class, false); |
| + | return target.toggleClass(settings.active_class, false); |
| + | } |
| + | |
| + | if (!settings.multi_expand) { |
| + | siblings.removeClass(settings.active_class); |
| + | aunts.removeClass(settings.active_class); |
| } | |
| - | siblings.removeClass(settings.active_class); |
| - | target.addClass(settings.active_class); |
| + | target.addClass(settings.active_class).parent().addClass(settings.active_class); |
| + | settings.callback(target); |
| }); | |
| }, | |
| @@ | @@ -38,4 +56,4 @@ |
| reflow : function () {} | |
| }; | |
| - | }(jQuery, this, this.document)); |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.alert.js
+20
-11
| @@ | @@ -4,11 +4,9 @@ |
| Foundation.libs.alert = { | |
| name : 'alert', | |
| - | version : '5.0.0', |
| + | version : '5.2.3', |
| settings : { | |
| - | animation: 'fadeOut', |
| - | speed: 300, // fade out speed |
| callback: function (){} | |
| }, | |
| @@ | @@ -17,18 +15,29 @@ |
| }, | |
| events : function () { | |
| - | $(this.scope).off('.alert').on('click.fndtn.alert', '[data-alert] a.close', function (e) { |
| - | var alertBox = $(this).closest("[data-alert]"), |
| - | settings = alertBox.data('alert-init') || Foundation.libs.alert.settings; |
| + | var self = this, |
| + | S = this.S; |
| + | |
| + | $(this.scope).off('.alert').on('click.fndtn.alert', '[' + this.attr_name() + '] a.close', function (e) { |
| + | var alertBox = S(this).closest('[' + self.attr_name() + ']'), |
| + | settings = alertBox.data(self.attr_name(true) + '-init') || self.settings; |
| e.preventDefault(); | |
| - | alertBox[settings.animation](settings.speed, function () { |
| - | $(this).trigger('closed').remove(); |
| - | settings.callback(); |
| - | }); |
| + | if ('transitionend' in window || 'webkitTransitionEnd' in window || 'oTransitionEnd' in window) { |
| + | alertBox.addClass("alert-close"); |
| + | alertBox.on('transitionend webkitTransitionEnd oTransitionEnd', function(e) { |
| + | S(this).trigger('close').remove(); |
| + | settings.callback(); |
| + | }); |
| + | } else { |
| + | alertBox.fadeOut(300, function () { |
| + | S(this).trigger('close').remove(); |
| + | settings.callback(); |
| + | }); |
| + | } |
| }); | |
| }, | |
| reflow : function () {} | |
| }; | |
| - | }(jQuery, this, this.document)); |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.clearing.js
+168
-94
| @@ | @@ -4,12 +4,12 @@ |
| Foundation.libs.clearing = { | |
| name : 'clearing', | |
| - | version: '5.0.3', |
| + | version: '5.2.3', |
| settings : { | |
| templates : { | |
| viewing : '<a href="#" class="clearing-close">×</a>' + | |
| - | '<div class="visible-img" style="display: none"><img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" />' + |
| + | '<div class="visible-img" style="display: none"><div class="clearing-touch-label"></div><img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" />' + |
| '<p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a>' + | |
| '<a href="#" class="clearing-main-next"><span></span></a></div>' | |
| }, | |
| @@ | @@ -18,6 +18,8 @@ |
| // add 'div.clearing-blackout, div.visible-img' to close on background click | |
| close_selectors : '.clearing-close', | |
| + | touch_label : '', |
| + | |
| // event initializers and locks | |
| init : false, | |
| locked : false | |
| @@ | @@ -25,46 +27,52 @@ |
| init : function (scope, method, options) { | |
| var self = this; | |
| - | Foundation.inherit(this, 'throttle loaded'); |
| + | Foundation.inherit(this, 'throttle image_loaded'); |
| this.bindings(method, options); | |
| - | if ($(this.scope).is('[data-clearing]')) { |
| - | this.assemble($('li', this.scope)); |
| + | if (self.S(this.scope).is('[' + this.attr_name() + ']')) { |
| + | this.assemble(self.S('li', this.scope)); |
| } else { | |
| - | $('[data-clearing]', this.scope).each(function () { |
| - | self.assemble($('li', this)); |
| + | self.S('[' + this.attr_name() + ']', this.scope).each(function () { |
| + | self.assemble(self.S('li', this)); |
| }); | |
| } | |
| }, | |
| events : function (scope) { | |
| - | var self = this; |
| + | var self = this, |
| + | S = self.S, |
| + | $scroll_container = $('.scroll-container'); |
| + | |
| + | if ($scroll_container.length > 0) { |
| + | this.scope = $scroll_container; |
| + | } |
| - | $(this.scope) |
| + | S(this.scope) |
| .off('.clearing') | |
| - | .on('click.fndtn.clearing', 'ul[data-clearing] li', |
| + | .on('click.fndtn.clearing', 'ul[' + this.attr_name() + '] li', |
| function (e, current, target) { | |
| - | var current = current || $(this), |
| + | var current = current || S(this), |
| target = target || current, | |
| next = current.next('li'), | |
| - | settings = current.closest('[data-clearing]').data('clearing-init'), |
| - | image = $(e.target); |
| + | settings = current.closest('[' + self.attr_name() + ']').data(self.attr_name(true) + '-init'), |
| + | image = S(e.target); |
| e.preventDefault(); | |
| if (!settings) { | |
| self.init(); | |
| - | settings = current.closest('[data-clearing]').data('clearing-init'); |
| + | settings = current.closest('[' + self.attr_name() + ']').data(self.attr_name(true) + '-init'); |
| } | |
| // if clearing is open and the current image is | |
| // clicked, go to the next image in sequence | |
| - | if (target.hasClass('visible') && |
| - | current[0] === target[0] && |
| + | if (target.hasClass('visible') && |
| + | current[0] === target[0] && |
| next.length > 0 && self.is_open(current)) { | |
| target = next; | |
| - | image = $('img', target); |
| + | image = S('img', target); |
| } | |
| // set current and target to the clicked li if not otherwise defined. | |
| @@ | @@ -77,20 +85,22 @@ |
| .on('click.fndtn.clearing', '.clearing-main-prev', | |
| function (e) { self.nav(e, 'prev') }) | |
| .on('click.fndtn.clearing', this.settings.close_selectors, | |
| - | function (e) { Foundation.libs.clearing.close(e, this) }) |
| - | .on('keydown.fndtn.clearing', |
| + | function (e) { Foundation.libs.clearing.close(e, this) }); |
| + | |
| + | $(document).on('keydown.fndtn.clearing', |
| function (e) { self.keydown(e) }); | |
| - | $(window).off('.clearing').on('resize.fndtn.clearing', |
| + | S(window).off('.clearing').on('resize.fndtn.clearing', |
| function () { self.resize() }); | |
| this.swipe_events(scope); | |
| }, | |
| swipe_events : function (scope) { | |
| - | var self = this; |
| + | var self = this, |
| + | S = self.S; |
| - | $(this.scope) |
| + | S(this.scope) |
| .on('touchstart.fndtn.clearing', '.visible-img', function(e) { | |
| if (!e.touches) { e = e.originalEvent; } | |
| var data = { | |
| @@ | @@ -101,7 +111,7 @@ |
| is_scrolling: undefined | |
| }; | |
| - | $(this).data('swipe-transition', data); |
| + | S(this).data('swipe-transition', data); |
| e.stopPropagation(); | |
| }) | |
| .on('touchmove.fndtn.clearing', '.visible-img', function(e) { | |
| @@ | @@ -109,7 +119,7 @@ |
| // Ignore pinch/zoom events | |
| if(e.touches.length > 1 || e.scale && e.scale !== 1) return; | |
| - | var data = $(this).data('swipe-transition'); |
| + | var data = S(this).data('swipe-transition'); |
| if (typeof data === 'undefined') { | |
| data = {}; | |
| @@ | @@ -129,7 +139,7 @@ |
| } | |
| }) | |
| .on('touchend.fndtn.clearing', '.visible-img', function(e) { | |
| - | $(this).data('swipe-transition', {}); |
| + | S(this).data('swipe-transition', {}); |
| e.stopPropagation(); | |
| }); | |
| }, | |
| @@ | @@ -137,48 +147,90 @@ |
| assemble : function ($li) { | |
| var $el = $li.parent(); | |
| - | if ($el.parent().hasClass('carousel')) return; |
| + | if ($el.parent().hasClass('carousel')) { |
| + | return; |
| + | } |
| + | |
| $el.after('<div id="foundationClearingHolder"></div>'); | |
| - | var holder = $('#foundationClearingHolder'), |
| - | settings = $el.data('clearing-init'), |
| - | grid = $el.detach(), |
| + | var grid = $el.detach(), |
| + | grid_outerHTML = ''; |
| + | |
| + | if (grid[0] == null) { |
| + | return; |
| + | } else { |
| + | grid_outerHTML = grid[0].outerHTML; |
| + | } |
| + | |
| + | var holder = this.S('#foundationClearingHolder'), |
| + | settings = $el.data(this.attr_name(true) + '-init'), |
| data = { | |
| - | grid: '<div class="carousel">' + grid[0].outerHTML + '</div>', |
| + | grid: '<div class="carousel">' + grid_outerHTML + '</div>', |
| viewing: settings.templates.viewing | |
| }, | |
| wrapper = '<div class="clearing-assembled"><div>' + data.viewing + | |
| - | data.grid + '</div></div>'; |
| + | data.grid + '</div></div>', |
| + | touch_label = this.settings.touch_label; |
| - | return holder.after(wrapper).remove(); |
| + | if (Modernizr.touch) { |
| + | wrapper = $(wrapper).find('.clearing-touch-label').html(touch_label).end(); |
| + | } |
| + | |
| + | holder.after(wrapper).remove(); |
| }, | |
| open : function ($image, current, target) { | |
| - | var root = target.closest('.clearing-assembled'), |
| - | container = $('div', root).first(), |
| - | visible_image = $('.visible-img', container), |
| - | image = $('img', visible_image).not($image); |
| + | var self = this, |
| + | body = $(document.body), |
| + | root = target.closest('.clearing-assembled'), |
| + | container = self.S('div', root).first(), |
| + | visible_image = self.S('.visible-img', container), |
| + | image = self.S('img', visible_image).not($image), |
| + | label = self.S('.clearing-touch-label', container), |
| + | error = false; |
| + | |
| + | image.error(function () { |
| + | error = true; |
| + | }); |
| + | |
| + | function startLoad() { |
| + | setTimeout(function () { |
| + | this.image_loaded(image, function () { |
| + | if (image.outerWidth() === 1 && !error) { |
| + | startLoad.call(this); |
| + | } else { |
| + | cb.call(this, image); |
| + | } |
| + | }.bind(this)); |
| + | }.bind(this), 50); |
| + | } |
| + | |
| + | function cb (image) { |
| + | var $image = $(image); |
| + | $image.css('visibility', 'visible'); |
| + | // toggle the gallery |
| + | body.css('overflow', 'hidden'); |
| + | root.addClass('clearing-blackout'); |
| + | container.addClass('clearing-container'); |
| + | visible_image.show(); |
| + | this.fix_height(target) |
| + | .caption(self.S('.clearing-caption', visible_image), self.S('img', target)) |
| + | .center_and_label(image, label) |
| + | .shift(current, target, function () { |
| + | target.siblings().removeClass('visible'); |
| + | target.addClass('visible'); |
| + | }); |
| + | visible_image.trigger('opened.fndtn.clearing') |
| + | } |
| if (!this.locked()) { | |
| + | visible_image.trigger('open.fndtn.clearing'); |
| // set the image to the selected thumbnail | |
| image | |
| .attr('src', this.load($image)) | |
| .css('visibility', 'hidden'); | |
| - | this.loaded(image, function () { |
| - | image.css('visibility', 'visible'); |
| - | // toggle the gallery |
| - | root.addClass('clearing-blackout'); |
| - | container.addClass('clearing-container'); |
| - | visible_image.show(); |
| - | this.fix_height(target) |
| - | .caption($('.clearing-caption', visible_image), $image) |
| - | .center(image) |
| - | .shift(current, target, function () { |
| - | target.siblings().removeClass('visible'); |
| - | target.addClass('visible'); |
| - | }); |
| - | }.bind(this)); |
| + | startLoad.call(this); |
| } | |
| }, | |
| @@ | @@ -191,17 +243,21 @@ |
| } else { | |
| return target.closest('.clearing-blackout'); | |
| } | |
| - | }($(el))), container, visible_image; |
| + | }($(el))), |
| + | body = $(document.body), container, visible_image; |
| if (el === e.target && root) { | |
| + | body.css('overflow', ''); |
| container = $('div', root).first(); | |
| visible_image = $('.visible-img', container); | |
| + | visible_image.trigger('close.fndtn.clearing'); |
| this.settings.prev_index = 0; | |
| - | $('ul[data-clearing]', root) |
| + | $('ul[' + this.attr_name() + ']', root) |
| .attr('style', '').closest('.clearing-blackout') | |
| .removeClass('clearing-blackout'); | |
| container.removeClass('clearing-container'); | |
| visible_image.hide(); | |
| + | visible_image.trigger('closed.fndtn.clearing'); |
| } | |
| return false; | |
| @@ | @@ -212,25 +268,30 @@ |
| }, | |
| keydown : function (e) { | |
| - | var clearing = $('ul[data-clearing]', '.clearing-blackout'); |
| - | |
| - | if (e.which === 39) this.go(clearing, 'next'); |
| - | if (e.which === 37) this.go(clearing, 'prev'); |
| - | if (e.which === 27) $('a.clearing-close').trigger('click'); |
| + | var clearing = $('.clearing-blackout ul[' + this.attr_name() + ']'), |
| + | NEXT_KEY = this.rtl ? 37 : 39, |
| + | PREV_KEY = this.rtl ? 39 : 37, |
| + | ESC_KEY = 27; |
| + | |
| + | if (e.which === NEXT_KEY) this.go(clearing, 'next'); |
| + | if (e.which === PREV_KEY) this.go(clearing, 'prev'); |
| + | if (e.which === ESC_KEY) this.S('a.clearing-close').trigger('click'); |
| }, | |
| nav : function (e, direction) { | |
| - | var clearing = $('ul[data-clearing]', '.clearing-blackout'); |
| + | var clearing = $('ul[' + this.attr_name() + ']', '.clearing-blackout'); |
| e.preventDefault(); | |
| this.go(clearing, direction); | |
| }, | |
| resize : function () { | |
| - | var image = $('img', '.clearing-blackout .visible-img'); |
| + | var image = $('img', '.clearing-blackout .visible-img'), |
| + | label = $('.clearing-touch-label', '.clearing-blackout'); |
| if (image.length) { | |
| - | this.center(image); |
| + | this.center_and_label(image, label); |
| + | image.trigger('resized.fndtn.clearing') |
| } | |
| }, | |
| @@ | @@ -240,15 +301,15 @@ |
| self = this; | |
| lis.each(function () { | |
| - | var li = $(this), |
| - | image = li.find('img'); |
| + | var li = self.S(this), |
| + | image = li.find('img'); |
| - | if (li.height() > image.outerHeight()) { |
| - | li.addClass('fix-height'); |
| - | } |
| - | }) |
| - | .closest('ul') |
| - | .width(lis.length * 100 + '%'); |
| + | if (li.height() > image.outerHeight()) { |
| + | li.addClass('fix-height'); |
| + | } |
| + | }) |
| + | .closest('ul') |
| + | .width(lis.length * 100 + '%'); |
| return this; | |
| }, | |
| @@ | @@ -259,28 +320,31 @@ |
| .siblings('.visible-img'); | |
| if (target.next().length > 0) { | |
| - | $('.clearing-main-next', visible_image) |
| - | .removeClass('disabled'); |
| + | this.S('.clearing-main-next', visible_image).removeClass('disabled'); |
| } else { | |
| - | $('.clearing-main-next', visible_image) |
| - | .addClass('disabled'); |
| + | this.S('.clearing-main-next', visible_image).addClass('disabled'); |
| } | |
| if (target.prev().length > 0) { | |
| - | $('.clearing-main-prev', visible_image) |
| - | .removeClass('disabled'); |
| + | this.S('.clearing-main-prev', visible_image).removeClass('disabled'); |
| } else { | |
| - | $('.clearing-main-prev', visible_image) |
| - | .addClass('disabled'); |
| + | this.S('.clearing-main-prev', visible_image).addClass('disabled'); |
| } | |
| }, | |
| - | center : function (target) { |
| + | center_and_label : function (target, label) { |
| if (!this.rtl) { | |
| target.css({ | |
| marginLeft : -(target.outerWidth() / 2), | |
| marginTop : -(target.outerHeight() / 2) | |
| }); | |
| + | |
| + | if (label.length > 0) { |
| + | label.css({ |
| + | marginLeft : -(label.outerWidth() / 2), |
| + | marginTop : -(target.outerHeight() / 2)-label.outerHeight()-10 |
| + | }); |
| + | } |
| } else { | |
| target.css({ | |
| marginRight : -(target.outerWidth() / 2), | |
| @@ | @@ -288,6 +352,15 @@ |
| left: 'auto', | |
| right: '50%' | |
| }); | |
| + | |
| + | if (label.length > 0) { |
| + | label.css({ |
| + | marginRight : -(label.outerWidth() / 2), |
| + | marginTop : -(target.outerHeight() / 2)-label.outerHeight()-10, |
| + | left: 'auto', |
| + | right: '50%' |
| + | }); |
| + | } |
| } | |
| return this; | |
| }, | |
| @@ | @@ -295,10 +368,12 @@ |
| // image loading and preloading | |
| load : function ($image) { | |
| + | var href; |
| + | |
| if ($image[0].nodeName === "A") { | |
| - | var href = $image.attr('href'); |
| + | href = $image.attr('href'); |
| } else { | |
| - | var href = $image.parent().attr('href'); |
| + | href = $image.parent().attr('href'); |
| } | |
| this.preload($image); | |
| @@ | @@ -316,12 +391,12 @@ |
| img : function (img) { | |
| if (img.length) { | |
| var new_img = new Image(), | |
| - | new_a = $('a', img); |
| + | new_a = this.S('a', img); |
| if (new_a.length) { | |
| new_img.src = new_a.attr('href'); | |
| } else { | |
| - | new_img.src = $('img', img).attr('src'); |
| + | new_img.src = this.S('img', img).attr('src'); |
| } | |
| } | |
| return this; | |
| @@ | @@ -330,7 +405,7 @@ |
| // image caption | |
| caption : function (container, $image) { | |
| - | var caption = $image.data('caption'); |
| + | var caption = $image.attr('data-caption'); |
| if (caption) { | |
| container | |
| @@ | @@ -347,12 +422,13 @@ |
| // directional methods | |
| go : function ($ul, direction) { | |
| - | var current = $('.visible', $ul), |
| + | var current = this.S('.visible', $ul), |
| target = current[direction](); | |
| if (target.length) { | |
| - | $('img', target) |
| - | .trigger('click', [current, target]); |
| + | this.S('img', target) |
| + | .trigger('click', [current, target]) |
| + | .trigger('change.fndtn.clearing'); |
| } | |
| }, | |
| @@ | @@ -399,20 +475,18 @@ |
| }, | |
| direction : function ($el, current, target) { | |
| - | var lis = $('li', $el), |
| + | var lis = this.S('li', $el), |
| li_width = lis.outerWidth() + (lis.outerWidth() / 4), | |
| - | up_count = Math.floor($('.clearing-container').outerWidth() / li_width) - 1, |
| + | up_count = Math.floor(this.S('.clearing-container').outerWidth() / li_width) - 1, |
| target_index = lis.index(target), | |
| response; | |
| this.settings.up_count = up_count; | |
| if (this.adjacent(this.settings.prev_index, target_index)) { | |
| - | if ((target_index > up_count) |
| - | && target_index > this.settings.prev_index) { |
| + | if ((target_index > up_count) && target_index > this.settings.prev_index) { |
| response = 'right'; | |
| - | } else if ((target_index > up_count - 1) |
| - | && target_index <= this.settings.prev_index) { |
| + | } else if ((target_index > up_count - 1) && target_index <= this.settings.prev_index) { |
| response = 'left'; | |
| } else { | |
| response = false; | |
| @@ | @@ -448,8 +522,8 @@ |
| }, | |
| off : function () { | |
| - | $(this.scope).off('.fndtn.clearing'); |
| - | $(window).off('.fndtn.clearing'); |
| + | this.S(this.scope).off('.fndtn.clearing'); |
| + | this.S(window).off('.fndtn.clearing'); |
| }, | |
| reflow : function () { | |
| @@ | @@ -457,4 +531,4 @@ |
| } | |
| }; | |
| - | }(jQuery, this, this.document)); |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.dropdown.js
+185
-76
| @@ | @@ -4,10 +4,11 @@ |
| Foundation.libs.dropdown = { | |
| name : 'dropdown', | |
| - | version : '5.0.0', |
| + | version : '5.2.3', |
| settings : { | |
| active_class: 'open', | |
| + | align: 'bottom', |
| is_hover: false, | |
| opened: function(){}, | |
| closed: function(){} | |
| @@ | @@ -20,96 +21,105 @@ |
| }, | |
| events : function (scope) { | |
| - | var self = this; |
| + | var self = this, |
| + | S = self.S; |
| - | $(this.scope) |
| + | S(this.scope) |
| .off('.dropdown') | |
| - | .on('click.fndtn.dropdown', '[data-dropdown]', function (e) { |
| - | var settings = $(this).data('dropdown-init') || self.settings; |
| - | e.preventDefault(); |
| - | |
| - | self.closeall.call(self); |
| - | |
| - | if (!settings.is_hover || Modernizr.touch) self.toggle($(this)); |
| + | .on('click.fndtn.dropdown', '[' + this.attr_name() + ']', function (e) { |
| + | var settings = S(this).data(self.attr_name(true) + '-init') || self.settings; |
| + | if (!settings.is_hover || Modernizr.touch) { |
| + | e.preventDefault(); |
| + | self.toggle($(this)); |
| + | } |
| }) | |
| - | .on('mouseenter.fndtn.dropdown', '[data-dropdown], [data-dropdown-content]', function (e) { |
| - | var $this = $(this); |
| + | .on('mouseenter.fndtn.dropdown', '[' + this.attr_name() + '], [' + this.attr_name() + '-content]', function (e) { |
| + | var $this = S(this), |
| + | dropdown, |
| + | target; |
| + | |
| clearTimeout(self.timeout); | |
| - | if ($this.data('dropdown')) { |
| - | var dropdown = $('#' + $this.data('dropdown')), |
| - | target = $this; |
| + | if ($this.data(self.data_attr())) { |
| + | dropdown = S('#' + $this.data(self.data_attr())); |
| + | target = $this; |
| } else { | |
| - | var dropdown = $this; |
| - | target = $("[data-dropdown='" + dropdown.attr('id') + "']"); |
| + | dropdown = $this; |
| + | target = S("[" + self.attr_name() + "='" + dropdown.attr('id') + "']"); |
| } | |
| - | var settings = target.data('dropdown-init') || self.settings; |
| + | var settings = target.data(self.attr_name(true) + '-init') || self.settings; |
| - | if($(e.target).data('dropdown') && settings.is_hover) { |
| + | if(S(e.target).data(self.data_attr()) && settings.is_hover) { |
| self.closeall.call(self); | |
| } | |
| if (settings.is_hover) self.open.apply(self, [dropdown, target]); | |
| }) | |
| - | .on('mouseleave.fndtn.dropdown', '[data-dropdown], [data-dropdown-content]', function (e) { |
| - | var $this = $(this); |
| + | .on('mouseleave.fndtn.dropdown', '[' + this.attr_name() + '], [' + this.attr_name() + '-content]', function (e) { |
| + | var $this = S(this); |
| self.timeout = setTimeout(function () { | |
| - | if ($this.data('dropdown')) { |
| - | var settings = $this.data('dropdown-init') || self.settings; |
| - | if (settings.is_hover) self.close.call(self, $('#' + $this.data('dropdown'))); |
| + | if ($this.data(self.data_attr())) { |
| + | var settings = $this.data(self.data_attr(true) + '-init') || self.settings; |
| + | if (settings.is_hover) self.close.call(self, S('#' + $this.data(self.data_attr()))); |
| } else { | |
| - | var target = $('[data-dropdown="' + $(this).attr('id') + '"]'), |
| - | settings = target.data('dropdown-init') || self.settings; |
| + | var target = S('[' + self.attr_name() + '="' + S(this).attr('id') + '"]'), |
| + | settings = target.data(self.attr_name(true) + '-init') || self.settings; |
| if (settings.is_hover) self.close.call(self, $this); | |
| } | |
| }.bind(this), 150); | |
| }) | |
| .on('click.fndtn.dropdown', function (e) { | |
| - | var parent = $(e.target).closest('[data-dropdown-content]'); |
| + | var parent = S(e.target).closest('[' + self.attr_name() + '-content]'); |
| - | if ($(e.target).data('dropdown') || $(e.target).parent().data('dropdown')) { |
| + | if (S(e.target).data(self.data_attr()) || S(e.target).parent().data(self.data_attr())) { |
| return; | |
| } | |
| - | if (!($(e.target).data('revealId')) && |
| - | (parent.length > 0 && ($(e.target).is('[data-dropdown-content]') || |
| + | if (!(S(e.target).data('revealId')) && |
| + | (parent.length > 0 && (S(e.target).is('[' + self.attr_name() + '-content]') || |
| $.contains(parent.first()[0], e.target)))) { | |
| e.stopPropagation(); | |
| return; | |
| } | |
| - | self.close.call(self, $('[data-dropdown-content]')); |
| + | self.close.call(self, S('[' + self.attr_name() + '-content]')); |
| }) | |
| - | .on('opened.fndtn.dropdown', '[data-dropdown-content]', function () { |
| + | .on('opened.fndtn.dropdown', '[' + self.attr_name() + '-content]', function () { |
| self.settings.opened.call(this); | |
| }) | |
| - | .on('closed.fndtn.dropdown', '[data-dropdown-content]', function () { |
| + | .on('closed.fndtn.dropdown', '[' + self.attr_name() + '-content]', function () { |
| self.settings.closed.call(this); | |
| }); | |
| - | $(window) |
| + | S(window) |
| .off('.dropdown') | |
| .on('resize.fndtn.dropdown', self.throttle(function () { | |
| self.resize.call(self); | |
| - | }, 50)).trigger('resize'); |
| + | }, 50)); |
| + | |
| + | this.resize(); |
| }, | |
| close: function (dropdown) { | |
| var self = this; | |
| dropdown.each(function () { | |
| - | if ($(this).hasClass(self.settings.active_class)) { |
| - | $(this) |
| + | if (self.S(this).hasClass(self.settings.active_class)) { |
| + | self.S(this) |
| .css(Foundation.rtl ? 'right':'left', '-99999px') | |
| - | .removeClass(self.settings.active_class); |
| - | $(this).trigger('closed'); |
| + | .removeClass(self.settings.active_class) |
| + | .prev('[' + self.attr_name() + ']') |
| + | .removeClass(self.settings.active_class) |
| + | .removeData('target'); |
| + | |
| + | self.S(this).trigger('closed', [dropdown]); |
| } | |
| }); | |
| }, | |
| closeall: function() { | |
| var self = this; | |
| - | $.each($('[data-dropdown-content]'), function() { |
| - | self.close.call(self, $(this)) |
| + | $.each(self.S('[' + this.attr_name() + '-content]'), function() { |
| + | self.close.call(self, self.S(this)) |
| }); | |
| }, | |
| @@ | @@ -117,29 +127,39 @@ |
| this | |
| .css(dropdown | |
| .addClass(this.settings.active_class), target); | |
| - | dropdown.trigger('opened'); |
| + | dropdown.prev('[' + this.attr_name() + ']').addClass(this.settings.active_class); |
| + | dropdown.data('target', target.get(0)).trigger('opened', [dropdown, target]); |
| + | }, |
| + | |
| + | data_attr: function () { |
| + | if (this.namespace.length > 0) { |
| + | return this.namespace + '-' + this.name; |
| + | } |
| + | |
| + | return this.name; |
| }, | |
| toggle : function (target) { | |
| - | var dropdown = $('#' + target.data('dropdown')); |
| + | var dropdown = this.S('#' + target.data(this.data_attr())); |
| if (dropdown.length === 0) { | |
| // No dropdown found, not continuing | |
| return; | |
| } | |
| - | this.close.call(this, $('[data-dropdown-content]').not(dropdown)); |
| + | this.close.call(this, this.S('[' + this.attr_name() + '-content]').not(dropdown)); |
| if (dropdown.hasClass(this.settings.active_class)) { | |
| this.close.call(this, dropdown); | |
| + | if (dropdown.data('target') !== target.get(0)) |
| + | this.open.call(this, dropdown, target); |
| } else { | |
| - | this.close.call(this, $('[data-dropdown-content]')) |
| this.open.call(this, dropdown, target); | |
| } | |
| }, | |
| resize : function () { | |
| - | var dropdown = $('[data-dropdown-content].open'), |
| - | target = $("[data-dropdown='" + dropdown.attr('id') + "']"); |
| + | var dropdown = this.S('[' + this.attr_name() + '-content].open'), |
| + | target = this.S("[" + this.attr_name() + "='" + dropdown.attr('id') + "']"); |
| if (dropdown.length && target.length) { | |
| this.css(dropdown, target); | |
| @@ | @@ -147,56 +167,145 @@ |
| }, | |
| css : function (dropdown, target) { | |
| - | var offset_parent = dropdown.offsetParent(), |
| - | position = target.offset(); |
| - | |
| - | position.top -= offset_parent.offset().top; |
| - | position.left -= offset_parent.offset().left; |
| + | this.clear_idx(); |
| if (this.small()) { | |
| - | dropdown.css({ |
| + | var p = this.dirs.bottom.call(dropdown, target); |
| + | |
| + | dropdown.attr('style', '').removeClass('drop-left drop-right drop-top').css({ |
| position : 'absolute', | |
| width: '95%', | |
| 'max-width': 'none', | |
| - | top: position.top + target.outerHeight() |
| + | top: p.top |
| }); | |
| + | |
| dropdown.css(Foundation.rtl ? 'right':'left', '2.5%'); | |
| } else { | |
| - | if (!Foundation.rtl && $(window).width() > dropdown.outerWidth() + target.offset().left) { |
| - | var left = position.left; |
| - | if (dropdown.hasClass('right')) { |
| - | dropdown.removeClass('right'); |
| - | } |
| - | } else { |
| - | if (!dropdown.hasClass('right')) { |
| - | dropdown.addClass('right'); |
| - | } |
| - | var left = position.left - (dropdown.outerWidth() - target.outerWidth()); |
| - | } |
| + | var settings = target.data(this.attr_name(true) + '-init') || this.settings; |
| - | dropdown.attr('style', '').css({ |
| - | position : 'absolute', |
| - | top: position.top + target.outerHeight(), |
| - | left: left |
| - | }); |
| + | this.style(dropdown, target, settings); |
| } | |
| return dropdown; | |
| }, | |
| + | style : function (dropdown, target, settings) { |
| + | var css = $.extend({position: 'absolute'}, |
| + | this.dirs[settings.align].call(dropdown, target, settings)); |
| + | |
| + | dropdown.attr('style', '').css(css); |
| + | }, |
| + | |
| + | // return CSS property object |
| + | // `this` is the dropdown |
| + | dirs : { |
| + | // Calculate target offset |
| + | _base : function (t) { |
| + | var o_p = this.offsetParent(), |
| + | o = o_p.offset(), |
| + | p = t.offset(); |
| + | |
| + | p.top -= o.top; |
| + | p.left -= o.left; |
| + | |
| + | return p; |
| + | }, |
| + | top: function (t, s) { |
| + | var self = Foundation.libs.dropdown, |
| + | p = self.dirs._base.call(this, t), |
| + | pip_offset_base = (t.outerWidth() / 2) - 8; |
| + | |
| + | this.addClass('drop-top'); |
| + | |
| + | if (t.outerWidth() < this.outerWidth() || self.small()) { |
| + | self.adjust_pip(pip_offset_base, p); |
| + | } |
| + | |
| + | if (Foundation.rtl) { |
| + | return {left: p.left - this.outerWidth() + t.outerWidth(), |
| + | top: p.top - this.outerHeight()}; |
| + | } |
| + | |
| + | return {left: p.left, top: p.top - this.outerHeight()}; |
| + | }, |
| + | bottom: function (t, s) { |
| + | var self = Foundation.libs.dropdown, |
| + | p = self.dirs._base.call(this, t), |
| + | pip_offset_base = (t.outerWidth() / 2) - 8; |
| + | |
| + | if (t.outerWidth() < this.outerWidth() || self.small()) { |
| + | self.adjust_pip(pip_offset_base, p); |
| + | } |
| + | |
| + | if (self.rtl) { |
| + | return {left: p.left - this.outerWidth() + t.outerWidth(), top: p.top + t.outerHeight()}; |
| + | } |
| + | |
| + | return {left: p.left, top: p.top + t.outerHeight()}; |
| + | }, |
| + | left: function (t, s) { |
| + | var p = Foundation.libs.dropdown.dirs._base.call(this, t); |
| + | |
| + | this.addClass('drop-left'); |
| + | |
| + | return {left: p.left - this.outerWidth(), top: p.top}; |
| + | }, |
| + | right: function (t, s) { |
| + | var p = Foundation.libs.dropdown.dirs._base.call(this, t); |
| + | |
| + | this.addClass('drop-right'); |
| + | |
| + | return {left: p.left + t.outerWidth(), top: p.top}; |
| + | } |
| + | }, |
| + | |
| + | // Insert rule to style psuedo elements |
| + | adjust_pip : function (pip_offset_base, p) { |
| + | var sheet = Foundation.stylesheet; |
| + | |
| + | if (this.small()) { |
| + | pip_offset_base += p.left - 8; |
| + | } |
| + | |
| + | this.rule_idx = sheet.cssRules.length; |
| + | |
| + | var sel_before = '.f-dropdown.open:before', |
| + | sel_after = '.f-dropdown.open:after', |
| + | css_before = 'left: ' + pip_offset_base + 'px;', |
| + | css_after = 'left: ' + (pip_offset_base - 1) + 'px;'; |
| + | |
| + | if (sheet.insertRule) { |
| + | sheet.insertRule([sel_before, '{', css_before, '}'].join(' '), this.rule_idx); |
| + | sheet.insertRule([sel_after, '{', css_after, '}'].join(' '), this.rule_idx + 1); |
| + | } else { |
| + | sheet.addRule(sel_before, css_before, this.rule_idx); |
| + | sheet.addRule(sel_after, css_after, this.rule_idx + 1); |
| + | } |
| + | }, |
| + | |
| + | // Remove old dropdown rule index |
| + | clear_idx : function () { |
| + | var sheet = Foundation.stylesheet; |
| + | |
| + | if (this.rule_idx) { |
| + | sheet.deleteRule(this.rule_idx); |
| + | sheet.deleteRule(this.rule_idx); |
| + | delete this.rule_idx; |
| + | } |
| + | }, |
| + | |
| small : function () { | |
| return matchMedia(Foundation.media_queries.small).matches && | |
| !matchMedia(Foundation.media_queries.medium).matches; | |
| }, | |
| off: function () { | |
| - | $(this.scope).off('.fndtn.dropdown'); |
| - | $('html, body').off('.fndtn.dropdown'); |
| - | $(window).off('.fndtn.dropdown'); |
| - | $('[data-dropdown-content]').off('.fndtn.dropdown'); |
| - | this.settings.init = false; |
| + | this.S(this.scope).off('.fndtn.dropdown'); |
| + | this.S('html, body').off('.fndtn.dropdown'); |
| + | this.S(window).off('.fndtn.dropdown'); |
| + | this.S('[data-dropdown-content]').off('.fndtn.dropdown'); |
| }, | |
| reflow : function () {} | |
| }; | |
| - | }(jQuery, this, this.document)); |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.equalizer.js
+74
-0
| @@ | @@ -0,0 +1,74 @@ |
| + | ;(function ($, window, document, undefined) { |
| + | 'use strict'; |
| + | |
| + | Foundation.libs.equalizer = { |
| + | name : 'equalizer', |
| + | |
| + | version : '5.2.3', |
| + | |
| + | settings : { |
| + | use_tallest: true, |
| + | before_height_change: $.noop, |
| + | after_height_change: $.noop, |
| + | equalize_on_stack: false |
| + | }, |
| + | |
| + | init : function (scope, method, options) { |
| + | Foundation.inherit(this, 'image_loaded'); |
| + | this.bindings(method, options); |
| + | this.reflow(); |
| + | }, |
| + | |
| + | events : function () { |
| + | this.S(window).off('.equalizer').on('resize.fndtn.equalizer', function(e){ |
| + | this.reflow(); |
| + | }.bind(this)); |
| + | }, |
| + | |
| + | equalize: function(equalizer) { |
| + | var isStacked = false, |
| + | vals = equalizer.find('[' + this.attr_name() + '-watch]:visible'), |
| + | settings = equalizer.data(this.attr_name(true)+'-init'); |
| + | |
| + | if (vals.length === 0) return; |
| + | var firstTopOffset = vals.first().offset().top; |
| + | settings.before_height_change(); |
| + | equalizer.trigger('before-height-change'); |
| + | vals.height('inherit'); |
| + | vals.each(function(){ |
| + | var el = $(this); |
| + | if (el.offset().top !== firstTopOffset) { |
| + | isStacked = true; |
| + | } |
| + | }); |
| + | |
| + | if (settings.equalize_on_stack === false) { |
| + | if (isStacked) return; |
| + | }; |
| + | |
| + | var heights = vals.map(function(){ return $(this).outerHeight(false) }).get(); |
| + | |
| + | if (settings.use_tallest) { |
| + | var max = Math.max.apply(null, heights); |
| + | vals.css('height', max); |
| + | } else { |
| + | var min = Math.min.apply(null, heights); |
| + | vals.css('height', min); |
| + | } |
| + | settings.after_height_change(); |
| + | equalizer.trigger('after-height-change'); |
| + | }, |
| + | |
| + | reflow : function () { |
| + | var self = this; |
| + | |
| + | this.S('[' + this.attr_name() + ']', this.scope).each(function(){ |
| + | var $eq_target = $(this); |
| + | self.image_loaded(self.S('img', this), function(){ |
| + | self.equalize($eq_target) |
| + | }); |
| + | }); |
| + | } |
| + | }; |
| + | })(jQuery, window, window.document); |
| + | |
generators/foundation5/public/javascripts/foundation/foundation.interchange.js
+75
-49
| @@ | @@ -4,7 +4,7 @@ |
| Foundation.libs.interchange = { | |
| name : 'interchange', | |
| - | version : '5.0.3', |
| + | version : '5.2.3', |
| cache : {}, | |
| @@ | @@ -23,11 +23,11 @@ |
| xxlarge: Foundation.media_queries.xxlarge, | |
| landscape : 'only screen and (orientation: landscape)', | |
| portrait : 'only screen and (orientation: portrait)', | |
| - | retina : 'only screen and (-webkit-min-device-pixel-ratio: 2),' + |
| - | 'only screen and (min--moz-device-pixel-ratio: 2),' + |
| - | 'only screen and (-o-min-device-pixel-ratio: 2/1),' + |
| - | 'only screen and (min-device-pixel-ratio: 2),' + |
| - | 'only screen and (min-resolution: 192dpi),' + |
| + | retina : 'only screen and (-webkit-min-device-pixel-ratio: 2),' + |
| + | 'only screen and (min--moz-device-pixel-ratio: 2),' + |
| + | 'only screen and (-o-min-device-pixel-ratio: 2/1),' + |
| + | 'only screen and (min-device-pixel-ratio: 2),' + |
| + | 'only screen and (min-resolution: 192dpi),' + |
| 'only screen and (min-resolution: 2dppx)' | |
| }, | |
| @@ | @@ -53,13 +53,19 @@ |
| return trigger(el[0].src); | |
| } | |
| - | var last_path = el.data('interchange-last-path'); |
| + | var last_path = el.data(this.data_attr + '-last-path'); |
| if (last_path == path) return; | |
| + | if (/\.(gif|jpg|jpeg|tiff|png)([?#].*)?/i.test(path)) { |
| + | $(el).css('background-image', 'url('+path+')'); |
| + | el.data('interchange-last-path', path); |
| + | return trigger(path); |
| + | } |
| + | |
| return $.get(path, function (response) { | |
| el.html(response); | |
| - | el.data('interchange-last-path', path); |
| + | el.data(this.data_attr + '-last-path', path); |
| trigger(); | |
| }); | |
| @@ | @@ -68,23 +74,34 @@ |
| }, | |
| init : function (scope, method, options) { | |
| - | Foundation.inherit(this, 'throttle'); |
| + | Foundation.inherit(this, 'throttle random_str'); |
| - | this.data_attr = 'data-' + this.settings.load_attr; |
| + | this.data_attr = this.set_data_attr(); |
| $.extend(true, this.settings, method, options); | |
| - | |
| this.bindings(method, options); | |
| this.load('images'); | |
| this.load('nodes'); | |
| }, | |
| + | get_media_hash : function() { |
| + | var mediaHash=''; |
| + | for (var queryName in this.settings.named_queries ) { |
| + | mediaHash += matchMedia(this.settings.named_queries[queryName]).matches.toString(); |
| + | } |
| + | return mediaHash; |
| + | }, |
| + | |
| events : function () { | |
| - | var self = this; |
| + | var self = this, prevMediaHash; |
| $(window) | |
| .off('.interchange') | |
| .on('resize.fndtn.interchange', self.throttle(function () { | |
| - | self.resize.call(self); |
| + | var currMediaHash = self.get_media_hash(); |
| + | if (currMediaHash !== prevMediaHash) { |
| + | self.resize(); |
| + | } |
| + | prevMediaHash = currMediaHash; |
| }, 50)); | |
| return this; | |
| @@ | @@ -104,7 +121,7 @@ |
| if (passed) { | |
| this.settings.directives[passed | |
| - | .scenario[1]](passed.el, passed.scenario[0], function () { |
| + | .scenario[1]].call(this, passed.el, passed.scenario[0], function () { |
| if (arguments[0] instanceof Array) { | |
| var args = arguments[0]; | |
| } else { | |
| @@ | @@ -123,17 +140,17 @@ |
| var count = scenarios.length; | |
| if (count > 0) { | |
| - | var el = this.S('[data-uuid="' + uuid + '"]'); |
| + | var el = this.S('[' + this.add_namespace('data-uuid') + '="' + uuid + '"]'); |
| - | for (var i = count - 1; i >= 0; i--) { |
| - | var mq, rule = scenarios[i][2]; |
| + | while (count--) { |
| + | var mq, rule = scenarios[count][2]; |
| if (this.settings.named_queries.hasOwnProperty(rule)) { | |
| mq = matchMedia(this.settings.named_queries[rule]); | |
| } else { | |
| mq = matchMedia(rule); | |
| } | |
| if (mq.matches) { | |
| - | return {el: el, scenario: scenarios[i]}; |
| + | return {el: el, scenario: scenarios[count]}; |
| } | |
| } | |
| } | |
| @@ | @@ -152,6 +169,7 @@ |
| update_images : function () { | |
| var images = this.S('img[' + this.data_attr + ']'), | |
| count = images.length, | |
| + | i = count, |
| loaded_count = 0, | |
| data_attr = this.data_attr; | |
| @@ | @@ -159,7 +177,7 @@ |
| this.cached_images = []; | |
| this.images_loaded = (count === 0); | |
| - | for (var i = count - 1; i >= 0; i--) { |
| + | while (i--) { |
| loaded_count++; | |
| if (images[i]) { | |
| var str = images[i].getAttribute(data_attr) || ''; | |
| @@ | @@ -169,7 +187,7 @@ |
| } | |
| } | |
| - | if(loaded_count === count) { |
| + | if (loaded_count === count) { |
| this.images_loaded = true; | |
| this.enhance('images'); | |
| } | |
| @@ | @@ -179,18 +197,17 @@ |
| }, | |
| update_nodes : function () { | |
| - | var nodes = this.S('[' + this.data_attr + ']:not(img)'), |
| + | var nodes = this.S('[' + this.data_attr + ']').not('img'), |
| count = nodes.length, | |
| + | i = count, |
| loaded_count = 0, | |
| data_attr = this.data_attr; | |
| this.cached_nodes = []; | |
| - | // Set nodes_loaded to true if there are no nodes |
| - | // this.nodes_loaded = false; |
| this.nodes_loaded = (count === 0); | |
| - | for (var i = count - 1; i >= 0; i--) { |
| + | while (i--) { |
| loaded_count++; | |
| var str = nodes[i].getAttribute(data_attr) || ''; | |
| @@ | @@ -208,9 +225,9 @@ |
| }, | |
| enhance : function (type) { | |
| - | var count = this['cached_' + type].length; |
| + | var i = this['cached_' + type].length; |
| - | for (var i = count - 1; i >= 0; i--) { |
| + | while (i--) { |
| this.object($(this['cached_' + type][i])); | |
| } | |
| @@ | @@ -222,6 +239,7 @@ |
| }, | |
| convert_directive : function (directive) { | |
| + | |
| var trimmed = this.trim(directive); | |
| if (trimmed.length > 0) { | |
| @@ | @@ -233,14 +251,15 @@ |
| object : function(el) { | |
| var raw_arr = this.parse_data_attr(el), | |
| - | scenarios = [], count = raw_arr.length; |
| + | scenarios = [], |
| + | i = raw_arr.length; |
| - | if (count > 0) { |
| - | for (var i = count - 1; i >= 0; i--) { |
| + | if (i > 0) { |
| + | while (i--) { |
| var split = raw_arr[i].split(/\((.*?)(\))$/); | |
| if (split.length > 1) { | |
| - | var cached_split = split[0].split(','), |
| + | var cached_split = split[0].split(/\, /), |
| params = this.parse_params(cached_split[0], | |
| cached_split[1], split[1]); | |
| @@ | @@ -252,29 +271,19 @@ |
| return this.store(el, scenarios); | |
| }, | |
| - | uuid : function (separator) { |
| - | var delim = separator || "-"; |
| - | |
| - | function S4() { |
| - | return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); |
| - | } |
| - | |
| - | return (S4() + S4() + delim + S4() + delim + S4() |
| - | + delim + S4() + delim + S4() + S4() + S4()); |
| - | }, |
| - | |
| store : function (el, scenarios) { | |
| - | var uuid = this.uuid(), |
| - | current_uuid = el.data('uuid'); |
| + | var uuid = this.random_str(), |
| + | current_uuid = el.data(this.add_namespace('uuid', true)); |
| - | if (current_uuid) return this.cache[current_uuid]; |
| + | if (this.cache[current_uuid]) return this.cache[current_uuid]; |
| - | el.attr('data-uuid', uuid); |
| + | el.attr(this.add_namespace('data-uuid'), uuid); |
| return this.cache[uuid] = scenarios; | |
| }, | |
| trim : function(str) { | |
| + | |
| if (typeof str === 'string') { | |
| return $.trim(str); | |
| } | |
| @@ | @@ -282,11 +291,28 @@ |
| return str; | |
| }, | |
| + | set_data_attr: function (init) { |
| + | if (init) { |
| + | if (this.namespace.length > 0) { |
| + | return this.namespace + '-' + this.settings.load_attr; |
| + | } |
| + | |
| + | return this.settings.load_attr; |
| + | } |
| + | |
| + | if (this.namespace.length > 0) { |
| + | return 'data-' + this.namespace + '-' + this.settings.load_attr; |
| + | } |
| + | |
| + | return 'data-' + this.settings.load_attr; |
| + | }, |
| + | |
| parse_data_attr : function (el) { | |
| - | var raw = el.data(this.settings.load_attr).split(/\[(.*?)\]/), |
| - | count = raw.length, output = []; |
| + | var raw = el.attr(this.attr_name()).split(/\[(.*?)\]/), |
| + | i = raw.length, |
| + | output = []; |
| - | for (var i = count - 1; i >= 0; i--) { |
| + | while (i--) { |
| if (raw[i].replace(/[\W\d]+/, '').length > 4) { | |
| output.push(raw[i]); | |
| } | |
| @@ | @@ -302,4 +328,4 @@ |
| }; | |
| - | }(jQuery, this, this.document)); |
| \ No newline at end of file | |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.joyride.js
+58
-57
| @@ | @@ -6,29 +6,30 @@ |
| Foundation.libs.joyride = { | |
| name : 'joyride', | |
| - | version : '5.0.0', |
| + | version : '5.2.3', |
| defaults : { | |
| - | expose : false, // turn on or off the expose feature |
| - | modal : true, // Whether to cover page with modal during the tour |
| - | tip_location : 'bottom', // 'top' or 'bottom' in relation to parent |
| - | nub_position : 'auto', // override on a per tooltip bases |
| - | scroll_speed : 1500, // Page scrolling speed in milliseconds, 0 = no scroll animation |
| - | scroll_animation : 'linear', // supports 'swing' and 'linear', extend with jQuery UI. |
| - | timer : 0, // 0 = no timer , all other numbers = timer in milliseconds |
| - | start_timer_on_click : true, // true or false - true requires clicking the first button start the timer |
| - | start_offset : 0, // the index of the tooltip you want to start on (index of the li) |
| - | next_button : true, // true or false to control whether a next button is used |
| - | tip_animation : 'fade', // 'pop' or 'fade' in each tip |
| - | pause_after : [], // array of indexes where to pause the tour after |
| - | exposed : [], // array of expose elements |
| - | tip_animation_fade_speed: 300, // when tipAnimation = 'fade' this is speed in milliseconds for the transition |
| - | cookie_monster : false, // true or false to control whether cookies are used |
| - | cookie_name : 'joyride', // Name the cookie you'll use |
| - | cookie_domain : false, // Will this cookie be attached to a domain, ie. '.notableapp.com' |
| - | cookie_expires : 365, // set when you would like the cookie to expire. |
| - | tip_container : 'body', // Where will the tip be attached |
| - | tip_location_patterns : { |
| + | expose : false, // turn on or off the expose feature |
| + | modal : true, // Whether to cover page with modal during the tour |
| + | tip_location : 'bottom', // 'top' or 'bottom' in relation to parent |
| + | nub_position : 'auto', // override on a per tooltip bases |
| + | scroll_speed : 1500, // Page scrolling speed in milliseconds, 0 = no scroll animation |
| + | scroll_animation : 'linear', // supports 'swing' and 'linear', extend with jQuery UI. |
| + | timer : 0, // 0 = no timer , all other numbers = timer in milliseconds |
| + | start_timer_on_click : true, // true or false - true requires clicking the first button start the timer |
| + | start_offset : 0, // the index of the tooltip you want to start on (index of the li) |
| + | next_button : true, // true or false to control whether a next button is used |
| + | tip_animation : 'fade', // 'pop' or 'fade' in each tip |
| + | pause_after : [], // array of indexes where to pause the tour after |
| + | exposed : [], // array of expose elements |
| + | tip_animation_fade_speed : 300, // when tipAnimation = 'fade' this is speed in milliseconds for the transition |
| + | cookie_monster : false, // true or false to control whether cookies are used |
| + | cookie_name : 'joyride', // Name the cookie you'll use |
| + | cookie_domain : false, // Will this cookie be attached to a domain, ie. '.notableapp.com' |
| + | cookie_expires : 365, // set when you would like the cookie to expire. |
| + | tip_container : 'body', // Where will the tip be attached |
| + | abort_on_close : true, // When true, the close event will not fire any callback |
| + | tip_location_patterns : { |
| top: ['bottom'], | |
| bottom: [], // bottom should not need to be repositioned | |
| left: ['right', 'top', 'bottom'], | |
| @@ | @@ -53,9 +54,9 @@ |
| }, | |
| init : function (scope, method, options) { | |
| - | Foundation.inherit(this, 'throttle delay'); |
| + | Foundation.inherit(this, 'throttle random_str'); |
| - | this.settings = this.defaults; |
| + | this.settings = this.settings || $.extend({}, this.defaults, (options || method)); |
| this.bindings(method, options) | |
| }, | |
| @@ | @@ -84,13 +85,13 @@ |
| .on('click.fndtn.joyride', '.joyride-close-tip', function (e) { | |
| e.preventDefault(); | |
| - | this.end(); |
| + | this.end(this.settings.abort_on_close); |
| }.bind(this)); | |
| $(window) | |
| .off('.joyride') | |
| .on('resize.fndtn.joyride', self.throttle(function () { | |
| - | if ($('[data-joyride]').length > 0 && self.settings.$next_tip) { |
| + | if ($('[' + self.attr_name() + ']').length > 0 && self.settings.$next_tip) { |
| if (self.settings.exposed.length > 0) { | |
| var $els = $(self.settings.exposed); | |
| @@ | @@ -104,7 +105,7 @@ |
| if (self.is_phone()) { | |
| self.pos_phone(); | |
| } else { | |
| - | self.pos_default(false, true); |
| + | self.pos_default(false); |
| } | |
| } | |
| }, 100)); | |
| @@ | @@ -112,7 +113,7 @@ |
| start : function () { | |
| var self = this, | |
| - | $this = $('[data-joyride]', this.scope), |
| + | $this = $('[' + this.attr_name() + ']', this.scope), |
| integer_settings = ['timer', 'scrollSpeed', 'startOffset', 'tipAnimationFadeSpeed', 'cookieExpires'], | |
| int_settings_count = integer_settings.length; | |
| @@ | @@ -120,7 +121,7 @@ |
| if (!this.settings.init) this.events(); | |
| - | this.settings = $this.data('joyride-init'); |
| + | this.settings = $this.data(this.attr_name(true) + '-init'); |
| // non configureable settings | |
| this.settings.$content_el = $this; | |
| @@ | @@ -136,13 +137,14 @@ |
| } | |
| // generate the tips and insert into dom. | |
| - | if (!this.settings.cookie_monster || this.settings.cookie_monster && $.cookie(this.settings.cookie_name) === null) { |
| + | if (!this.settings.cookie_monster || this.settings.cookie_monster && !$.cookie(this.settings.cookie_name)) { |
| this.settings.$tip_content.each(function (index) { | |
| var $this = $(this); | |
| - | this.settings = $.extend({}, self.defaults, self.data_options($this)) |
| + | this.settings = $.extend({}, self.defaults, self.data_options($this)); |
| // Make sure that settings parsed from data_options are integers where necessary | |
| - | for (var i = int_settings_count - 1; i >= 0; i--) { |
| + | var i = int_settings_count; |
| + | while (i--) { |
| self.settings[integer_settings[i]] = parseInt(self.settings[integer_settings[i]], 10); | |
| } | |
| self.create({$li : $this, index : index}); | |
| @@ | @@ -176,7 +178,7 @@ |
| this.timer_instance(opts.index); | |
| $blank.append($(this.settings.template.wrapper)); | |
| - | $blank.first().attr('data-index', opts.index); |
| + | $blank.first().attr(this.add_namespace('data-index'), opts.index); |
| $('.joyride-content-wrapper', $blank).append(content); | |
| return $blank[0]; | |
| @@ | @@ -204,7 +206,8 @@ |
| }, | |
| create : function (opts) { | |
| - | var buttonText = opts.$li.attr('data-button') || opts.$li.attr('data-text'), |
| + | var buttonText = opts.$li.attr(this.add_namespace('data-button')) |
| + | || opts.$li.attr(this.add_namespace('data-text')), |
| tipClass = opts.$li.attr('class'), | |
| $tip_content = $(this.tip_template({ | |
| tip_class : tipClass, | |
| @@ | @@ -273,7 +276,7 @@ |
| this.settings.$next_tip.show(); | |
| - | this.delay(function () { |
| + | setTimeout(function () { |
| $timer.animate({ | |
| width: $timer.parent().width() | |
| }, this.settings.timer, 'linear'); | |
| @@ | @@ -295,11 +298,11 @@ |
| .fadeIn(this.settings.tip_animation_fade_speed) | |
| .show(); | |
| - | this.delay(function () { |
| + | setTimeout(function () { |
| $timer.animate({ | |
| width: $timer.parent().width() | |
| }, this.settings.timer, 'linear'); | |
| - | }.bind(this), this.settings.tip_animation_fadeSpeed); |
| + | }.bind(this), this.settings.tip_animation_fade_speed); |
| } else { | |
| this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed); | |
| @@ | @@ -369,8 +372,8 @@ |
| }, | |
| set_target : function () { | |
| - | var cl = this.settings.$li.attr('data-class'), |
| - | id = this.settings.$li.attr('data-id'), |
| + | var cl = this.settings.$li.attr(this.add_namespace('data-class')), |
| + | id = this.settings.$li.attr(this.add_namespace('data-id')), |
| $sel = function () { | |
| if (id) { | |
| return $(document.getElementById(id)); | |
| @@ | @@ -391,7 +394,7 @@ |
| tipOffset = Math.ceil(this.settings.$target.offset().top - window_half + this.settings.$next_tip.outerHeight()); | |
| if (tipOffset != 0) { | |
| - | $('html, body').animate({ |
| + | $('html, body').stop().animate({ |
| scrollTop: tipOffset | |
| }, this.settings.scroll_speed, 'swing'); | |
| } | |
| @@ | @@ -407,10 +410,8 @@ |
| this.show('init'); | |
| }, | |
| - | pos_default : function (init, resizing) { |
| - | var half_fold = Math.ceil($(window).height() / 2), |
| - | tip_position = this.settings.$next_tip.offset(), |
| - | $nub = this.settings.$next_tip.find('.joyride-nub'), |
| + | pos_default : function (init) { |
| + | var $nub = this.settings.$next_tip.find('.joyride-nub'), |
| nub_width = Math.ceil($nub.outerWidth() / 2), | |
| nub_height = Math.ceil($nub.outerHeight() / 2), | |
| toggle = init || false; | |
| @@ | @@ -421,10 +422,6 @@ |
| this.settings.$next_tip.show(); | |
| } | |
| - | if (typeof resizing === 'undefined') { |
| - | resizing = false; |
| - | } |
| - | |
| if (!/body/i.test(this.settings.$target.selector)) { | |
| if (this.bottom()) { | |
| if (this.rtl) { | |
| @@ | @@ -456,7 +453,7 @@ |
| this.settings.$next_tip.css({ | |
| top: this.settings.$target.offset().top, | |
| - | left: (this.outerWidth(this.settings.$target) + this.settings.$target.offset().left + nub_width)}); |
| + | left: (this.settings.$target.outerWidth() + this.settings.$target.offset().left + nub_width)}); |
| this.nub_position($nub, this.settings.tip_settings.nub_position, 'left'); | |
| @@ | @@ -464,7 +461,7 @@ |
| this.settings.$next_tip.css({ | |
| top: this.settings.$target.offset().top, | |
| - | left: (this.settings.$target.offset().left - this.outerWidth(this.settings.$next_tip) - nub_width)}); |
| + | left: (this.settings.$target.offset().left - this.settings.$next_tip.outerWidth() - nub_width)}); |
| this.nub_position($nub, this.settings.tip_settings.nub_position, 'right'); | |
| @@ | @@ -568,7 +565,7 @@ |
| el, | |
| origCSS, | |
| origClasses, | |
| - | randId = 'expose-'+Math.floor(Math.random()*10000); |
| + | randId = 'expose-' + this.random_str(6); |
| if (arguments.length > 0 && arguments[0] instanceof $) { | |
| el = arguments[0]; | |
| @@ | @@ -701,7 +698,7 @@ |
| }, | |
| remove_exposed: function(el){ | |
| - | var search, count; |
| + | var search, i; |
| if (el instanceof $) { | |
| search = el[0] | |
| } else if (typeof el == 'string'){ | |
| @@ | @@ -709,9 +706,9 @@ |
| } | |
| this.settings.exposed = this.settings.exposed || []; | |
| - | count = this.settings.exposed.length; |
| + | i = this.settings.exposed.length; |
| - | for (var i=0; i < count; i++) { |
| + | while (i--) { |
| if (this.settings.exposed[i] == search) { | |
| this.settings.exposed.splice(i, 1); | |
| return; | |
| @@ | @@ -806,7 +803,7 @@ |
| } | |
| }, | |
| - | end : function () { |
| + | end : function (abort) { |
| if (this.settings.cookie_monster) { | |
| $.cookie(this.settings.cookie_name, 'ridden', { expires: this.settings.cookie_expires, domain: this.settings.cookie_domain }); | |
| } | |
| @@ | @@ -823,8 +820,12 @@ |
| $('.joyride-modal-bg').hide(); | |
| this.settings.$current_tip.hide(); | |
| - | this.settings.post_step_callback(this.settings.$li.index(), this.settings.$current_tip); |
| - | this.settings.post_ride_callback(this.settings.$li.index(), this.settings.$current_tip); |
| + | |
| + | if (typeof abort === 'undefined' || abort === false) { |
| + | this.settings.post_step_callback(this.settings.$li.index(), this.settings.$current_tip); |
| + | this.settings.post_ride_callback(this.settings.$li.index(), this.settings.$current_tip); |
| + | } |
| + | |
| $('.joyride-tip-guide').remove(); | |
| }, | |
| @@ | @@ -839,4 +840,4 @@ |
| reflow : function () {} | |
| }; | |
| - | }(jQuery, this, this.document)); |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.js
+356
-164
| @@ | @@ -1,7 +1,7 @@ |
| /* | |
| * Foundation Responsive Library | |
| * http://foundation.zurb.com | |
| - | * Copyright 2013, ZURB |
| + | * Copyright 2014, ZURB |
| * Free to use under the MIT license. | |
| * http://www.opensource.org/licenses/mit-license.php | |
| */ | |
| @@ | @@ -9,31 +9,29 @@ |
| (function ($, window, document, undefined) { | |
| 'use strict'; | |
| - | // Used to retrieve Foundation media queries from CSS. |
| - | if($('head').has('.foundation-mq-small').length === 0) { |
| - | $('head').append('<meta class="foundation-mq-small">'); |
| - | } |
| - | |
| - | if($('head').has('.foundation-mq-medium').length === 0) { |
| - | $('head').append('<meta class="foundation-mq-medium">'); |
| - | } |
| + | var header_helpers = function (class_array) { |
| + | var i = class_array.length; |
| + | var head = $('head'); |
| - | if($('head').has('.foundation-mq-large').length === 0) { |
| - | $('head').append('<meta class="foundation-mq-large">'); |
| - | } |
| - | |
| - | if($('head').has('.foundation-mq-xlarge').length === 0) { |
| - | $('head').append('<meta class="foundation-mq-xlarge">'); |
| - | } |
| + | while (i--) { |
| + | if(head.has('.' + class_array[i]).length === 0) { |
| + | head.append('<meta class="' + class_array[i] + '" />'); |
| + | } |
| + | } |
| + | }; |
| - | if($('head').has('.foundation-mq-xxlarge').length === 0) { |
| - | $('head').append('<meta class="foundation-mq-xxlarge">'); |
| - | } |
| + | header_helpers([ |
| + | 'foundation-mq-small', |
| + | 'foundation-mq-medium', |
| + | 'foundation-mq-large', |
| + | 'foundation-mq-xlarge', |
| + | 'foundation-mq-xxlarge', |
| + | 'foundation-data-attribute-namespace']); |
| // Enable FastClick if present | |
| $(function() { | |
| - | if(typeof FastClick !== 'undefined') { |
| + | if (typeof FastClick !== 'undefined') { |
| // Don't attach to body if undefined | |
| if (typeof document.body !== 'undefined') { | |
| FastClick.attach(document.body); | |
| @@ | @@ -47,7 +45,14 @@ |
| var S = function (selector, context) { | |
| if (typeof selector === 'string') { | |
| if (context) { | |
| - | return $(context.querySelectorAll(selector)); |
| + | var cont; |
| + | if (context.jquery) { |
| + | cont = context[0]; |
| + | if (!cont) return context; |
| + | } else { |
| + | cont = context; |
| + | } |
| + | return $(cont.querySelectorAll(selector)); |
| } | |
| return $(document.querySelectorAll(selector)); | |
| @@ | @@ -56,11 +61,100 @@ |
| return $(selector, context); | |
| }; | |
| + | // Namespace functions. |
| + | |
| + | var attr_name = function (init) { |
| + | var arr = []; |
| + | if (!init) arr.push('data'); |
| + | if (this.namespace.length > 0) arr.push(this.namespace); |
| + | arr.push(this.name); |
| + | |
| + | return arr.join('-'); |
| + | }; |
| + | |
| + | var add_namespace = function (str) { |
| + | var parts = str.split('-'), |
| + | i = parts.length, |
| + | arr = []; |
| + | |
| + | while (i--) { |
| + | if (i !== 0) { |
| + | arr.push(parts[i]); |
| + | } else { |
| + | if (this.namespace.length > 0) { |
| + | arr.push(this.namespace, parts[i]); |
| + | } else { |
| + | arr.push(parts[i]); |
| + | } |
| + | } |
| + | } |
| + | |
| + | return arr.reverse().join('-'); |
| + | }; |
| + | |
| + | // Event binding and data-options updating. |
| + | |
| + | var bindings = function (method, options) { |
| + | var self = this, |
| + | should_bind_events = !S(this).data(this.attr_name(true)); |
| + | |
| + | if (typeof method === 'string') { |
| + | return this[method].call(this, options); |
| + | } |
| + | |
| + | if (S(this.scope).is('[' + this.attr_name() +']')) { |
| + | S(this.scope).data(this.attr_name(true) + '-init', $.extend({}, this.settings, (options || method), this.data_options(S(this.scope)))); |
| + | |
| + | if (should_bind_events) { |
| + | this.events(this.scope); |
| + | } |
| + | |
| + | } else { |
| + | S('[' + this.attr_name() +']', this.scope).each(function () { |
| + | var should_bind_events = !S(this).data(self.attr_name(true) + '-init'); |
| + | S(this).data(self.attr_name(true) + '-init', $.extend({}, self.settings, (options || method), self.data_options(S(this)))); |
| + | |
| + | if (should_bind_events) { |
| + | self.events(this); |
| + | } |
| + | }); |
| + | } |
| + | }; |
| + | |
| + | var single_image_loaded = function (image, callback) { |
| + | function loaded () { |
| + | callback(image[0]); |
| + | } |
| + | |
| + | function bindLoad () { |
| + | this.one('load', loaded); |
| + | |
| + | if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { |
| + | var src = this.attr( 'src' ), |
| + | param = src.match( /\?/ ) ? '&' : '?'; |
| + | |
| + | param += 'random=' + (new Date()).getTime(); |
| + | this.attr('src', src + param); |
| + | } |
| + | } |
| + | |
| + | if (!image.attr('src')) { |
| + | loaded(); |
| + | return; |
| + | } |
| + | |
| + | if (image[0].complete || image[0].readyState === 4) { |
| + | loaded(); |
| + | } else { |
| + | bindLoad.call(image); |
| + | } |
| + | }; |
| + | |
| /* | |
| https://github.com/paulirish/matchMedia.js | |
| */ | |
| - | window.matchMedia = window.matchMedia || (function( doc, undefined ) { |
| + | window.matchMedia = window.matchMedia || (function( doc ) { |
| "use strict"; | |
| @@ | @@ -76,7 +170,7 @@ |
| fakeBody.style.background = "none"; | |
| fakeBody.appendChild(div); | |
| - | return function(q){ |
| + | return function (q) { |
| div.innerHTML = "­<style media=\"" + q + "\"> #mq-test-1 { width: 42px; }</style>"; | |
| @@ | @@ -102,64 +196,70 @@ |
| * Licensed under the MIT license. | |
| */ | |
| - | (function( $ ) { |
| + | (function($) { |
| // requestAnimationFrame polyfill adapted from Erik Möller | |
| // fixes from Paul Irish and Tino Zijdel | |
| // http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
| // http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
| - | |
| var animating, | |
| - | lastTime = 0, |
| - | vendors = ['webkit', 'moz'], |
| - | requestAnimationFrame = window.requestAnimationFrame, |
| - | cancelAnimationFrame = window.cancelAnimationFrame; |
| + | lastTime = 0, |
| + | vendors = ['webkit', 'moz'], |
| + | requestAnimationFrame = window.requestAnimationFrame, |
| + | cancelAnimationFrame = window.cancelAnimationFrame, |
| + | jqueryFxAvailable = 'undefined' !== typeof jQuery.fx; |
| - | for(; lastTime < vendors.length && !requestAnimationFrame; lastTime++) { |
| + | for (; lastTime < vendors.length && !requestAnimationFrame; lastTime++) { |
| requestAnimationFrame = window[ vendors[lastTime] + "RequestAnimationFrame" ]; | |
| cancelAnimationFrame = cancelAnimationFrame || | |
| - | window[ vendors[lastTime] + "CancelAnimationFrame" ] || |
| + | window[ vendors[lastTime] + "CancelAnimationFrame" ] || |
| window[ vendors[lastTime] + "CancelRequestAnimationFrame" ]; | |
| } | |
| function raf() { | |
| - | if ( animating ) { |
| - | requestAnimationFrame( raf ); |
| - | jQuery.fx.tick(); |
| + | if (animating) { |
| + | requestAnimationFrame(raf); |
| + | |
| + | if (jqueryFxAvailable) { |
| + | jQuery.fx.tick(); |
| + | } |
| } | |
| } | |
| - | if ( requestAnimationFrame ) { |
| + | if (requestAnimationFrame) { |
| // use rAF | |
| window.requestAnimationFrame = requestAnimationFrame; | |
| window.cancelAnimationFrame = cancelAnimationFrame; | |
| - | jQuery.fx.timer = function( timer ) { |
| - | if ( timer() && jQuery.timers.push( timer ) && !animating ) { |
| - | animating = true; |
| - | raf(); |
| - | } |
| - | }; |
| - | jQuery.fx.stop = function() { |
| - | animating = false; |
| - | }; |
| + | if (jqueryFxAvailable) { |
| + | jQuery.fx.timer = function (timer) { |
| + | if (timer() && jQuery.timers.push(timer) && !animating) { |
| + | animating = true; |
| + | raf(); |
| + | } |
| + | }; |
| + | |
| + | jQuery.fx.stop = function () { |
| + | animating = false; |
| + | }; |
| + | } |
| } else { | |
| // polyfill | |
| - | window.requestAnimationFrame = function( callback, element ) { |
| + | window.requestAnimationFrame = function (callback) { |
| var currTime = new Date().getTime(), | |
| - | timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) ), |
| - | id = window.setTimeout( function() { |
| - | callback( currTime + timeToCall ); |
| - | }, timeToCall ); |
| + | timeToCall = Math.max(0, 16 - (currTime - lastTime)), |
| + | id = window.setTimeout(function () { |
| + | callback(currTime + timeToCall); |
| + | }, timeToCall); |
| lastTime = currTime + timeToCall; | |
| return id; | |
| }; | |
| - | window.cancelAnimationFrame = function(id) { |
| + | window.cancelAnimationFrame = function (id) { |
| clearTimeout(id); | |
| }; | |
| - | |
| + | |
| } | |
| }( jQuery )); | |
| @@ | @@ -167,7 +267,7 @@ |
| function removeQuotes (string) { | |
| if (typeof string === 'string' || string instanceof String) { | |
| - | string = string.replace(/^[\\/'"]+|(;\s?})+|[\\/'"]+$/g, ''); |
| + | string = string.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g, ''); |
| } | |
| return string; | |
| @@ | @@ -176,7 +276,7 @@ |
| window.Foundation = { | |
| name : 'Foundation', | |
| - | version : '5.0.3', |
| + | version : '5.2.3', |
| media_queries : { | |
| small : S('.foundation-mq-small').css('font-family').replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ''), | |
| @@ | @@ -188,9 +288,12 @@ |
| stylesheet : $('<style></style>').appendTo('head')[0].sheet, | |
| + | global: { |
| + | namespace: undefined |
| + | }, |
| + | |
| init : function (scope, libraries, method, options, response) { | |
| - | var library_arr, |
| - | args = [scope, method, options, response], |
| + | var args = [scope, method, options, response], |
| responses = []; | |
| // check RTL | |
| @@ | @@ -199,6 +302,8 @@ |
| // set foundation global scope | |
| this.scope = scope || this.scope; | |
| + | this.set_namespace(); |
| + | |
| if (libraries && typeof libraries === 'string' && !/reflow/i.test(libraries)) { | |
| if (this.libs.hasOwnProperty(libraries)) { | |
| responses.push(this.init_lib(libraries, args)); | |
| @@ | @@ -217,10 +322,16 @@ |
| this.patch(this.libs[lib]); | |
| if (args && args.hasOwnProperty(lib)) { | |
| + | if (typeof this.libs[lib].settings !== 'undefined') { |
| + | $.extend(true, this.libs[lib].settings, args[lib]); |
| + | } |
| + | else if (typeof this.libs[lib].defaults !== 'undefined') { |
| + | $.extend(true, this.libs[lib].defaults, args[lib]); |
| + | } |
| return this.libs[lib].init.apply(this.libs[lib], [this.scope, args[lib]]); | |
| } | |
| - | args = args instanceof Array ? args : Array(args); // PATCH: added this line |
| + | args = args instanceof Array ? args : new Array(args); // PATCH: added this line |
| return this.libs[lib].init.apply(this.libs[lib], args); | |
| } | |
| @@ | @@ -229,81 +340,177 @@ |
| patch : function (lib) { | |
| lib.scope = this.scope; | |
| - | lib['data_options'] = this.lib_methods.data_options; |
| - | lib['bindings'] = this.lib_methods.bindings; |
| - | lib['S'] = S; |
| + | lib.namespace = this.global.namespace; |
| lib.rtl = this.rtl; | |
| + | lib['data_options'] = this.utils.data_options; |
| + | lib['attr_name'] = attr_name; |
| + | lib['add_namespace'] = add_namespace; |
| + | lib['bindings'] = bindings; |
| + | lib['S'] = this.utils.S; |
| }, | |
| inherit : function (scope, methods) { | |
| - | var methods_arr = methods.split(' '); |
| + | var methods_arr = methods.split(' '), |
| + | i = methods_arr.length; |
| - | for (var i = methods_arr.length - 1; i >= 0; i--) { |
| - | if (this.lib_methods.hasOwnProperty(methods_arr[i])) { |
| - | this.libs[scope.name][methods_arr[i]] = this.lib_methods[methods_arr[i]]; |
| + | while (i--) { |
| + | if (this.utils.hasOwnProperty(methods_arr[i])) { |
| + | scope[methods_arr[i]] = this.utils[methods_arr[i]]; |
| } | |
| } | |
| }, | |
| - | random_str : function (length) { |
| - | var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split(''); |
| - | |
| - | if (!length) { |
| - | length = Math.floor(Math.random() * chars.length); |
| - | } |
| - | |
| - | var str = ''; |
| - | for (var i = 0; i < length; i++) { |
| - | str += chars[Math.floor(Math.random() * chars.length)]; |
| - | } |
| - | return str; |
| + | set_namespace: function () { |
| + | |
| + | // Description: |
| + | // Don't bother reading the namespace out of the meta tag |
| + | // if the namespace has been set globally in javascript |
| + | // |
| + | // Example: |
| + | // Foundation.global.namespace = 'my-namespace'; |
| + | // or make it an empty string: |
| + | // Foundation.global.namespace = ''; |
| + | // |
| + | // |
| + | |
| + | // If the namespace has not been set (is undefined), try to read it out of the meta element. |
| + | // Otherwise use the globally defined namespace, even if it's empty ('') |
| + | var namespace = ( this.global.namespace === undefined ) ? $('.foundation-data-attribute-namespace').css('font-family') : this.global.namespace; |
| + | |
| + | // Finally, if the namsepace is either undefined or false, set it to an empty string. |
| + | // Otherwise use the namespace value. |
| + | this.global.namespace = ( namespace === undefined || /false/i.test(namespace) ) ? '' : namespace; |
| }, | |
| libs : {}, | |
| // methods that can be inherited in libraries | |
| - | lib_methods : { |
| - | throttle : function(fun, delay) { |
| + | utils : { |
| + | |
| + | // Description: |
| + | // Fast Selector wrapper returns jQuery object. Only use where getElementById |
| + | // is not available. |
| + | // |
| + | // Arguments: |
| + | // Selector (String): CSS selector describing the element(s) to be |
| + | // returned as a jQuery object. |
| + | // |
| + | // Scope (String): CSS selector describing the area to be searched. Default |
| + | // is document. |
| + | // |
| + | // Returns: |
| + | // Element (jQuery Object): jQuery object containing elements matching the |
| + | // selector within the scope. |
| + | S : S, |
| + | |
| + | // Description: |
| + | // Executes a function a max of once every n milliseconds |
| + | // |
| + | // Arguments: |
| + | // Func (Function): Function to be throttled. |
| + | // |
| + | // Delay (Integer): Function execution threshold in milliseconds. |
| + | // |
| + | // Returns: |
| + | // Lazy_function (Function): Function with throttling applied. |
| + | throttle : function (func, delay) { |
| var timer = null; | |
| return function () { | |
| var context = this, args = arguments; | |
| - | clearTimeout(timer); |
| - | timer = setTimeout(function () { |
| - | fun.apply(context, args); |
| - | }, delay); |
| + | if (timer == null) { |
| + | timer = setTimeout(function () { |
| + | func.apply(context, args); |
| + | timer = null; |
| + | }, delay); |
| + | } |
| }; | |
| }, | |
| - | // parses data-options attribute |
| - | data_options : function (el) { |
| - | var opts = {}, ii, p, opts_arr, opts_len, |
| - | data_options = el.data('options'); |
| + | // Description: |
| + | // Executes a function when it stops being invoked for n seconds |
| + | // Modified version of _.debounce() http://underscorejs.org |
| + | // |
| + | // Arguments: |
| + | // Func (Function): Function to be debounced. |
| + | // |
| + | // Delay (Integer): Function execution threshold in milliseconds. |
| + | // |
| + | // Immediate (Bool): Whether the function should be called at the beginning |
| + | // of the delay instead of the end. Default is false. |
| + | // |
| + | // Returns: |
| + | // Lazy_function (Function): Function with debouncing applied. |
| + | debounce : function (func, delay, immediate) { |
| + | var timeout, result; |
| + | return function () { |
| + | var context = this, args = arguments; |
| + | var later = function () { |
| + | timeout = null; |
| + | if (!immediate) result = func.apply(context, args); |
| + | }; |
| + | var callNow = immediate && !timeout; |
| + | clearTimeout(timeout); |
| + | timeout = setTimeout(later, delay); |
| + | if (callNow) result = func.apply(context, args); |
| + | return result; |
| + | }; |
| + | }, |
| - | if (typeof data_options === 'object') { |
| - | return data_options; |
| + | // Description: |
| + | // Parses data-options attribute |
| + | // |
| + | // Arguments: |
| + | // El (jQuery Object): Element to be parsed. |
| + | // |
| + | // Returns: |
| + | // Options (Javascript Object): Contents of the element's data-options |
| + | // attribute. |
| + | data_options : function (el, data_attr_name) { |
| + | data_attr_name = data_attr_name || 'options'; |
| + | var opts = {}, ii, p, opts_arr, |
| + | data_options = function (el) { |
| + | var namespace = Foundation.global.namespace; |
| + | |
| + | if (namespace.length > 0) { |
| + | return el.data(namespace + '-' + data_attr_name); |
| + | } |
| + | |
| + | return el.data(data_attr_name); |
| + | }; |
| + | |
| + | var cached_options = data_options(el); |
| + | |
| + | if (typeof cached_options === 'object') { |
| + | return cached_options; |
| } | |
| - | opts_arr = (data_options || ':').split(';'), |
| - | opts_len = opts_arr.length; |
| + | opts_arr = (cached_options || ':').split(';'); |
| + | ii = opts_arr.length; |
| function isNumber (o) { | |
| return ! isNaN (o-0) && o !== null && o !== "" && o !== false && o !== true; | |
| } | |
| - | function trim(str) { |
| + | function trim (str) { |
| if (typeof str === 'string') return $.trim(str); | |
| return str; | |
| } | |
| - | // parse options |
| - | for (ii = opts_len - 1; ii >= 0; ii--) { |
| + | while (ii--) { |
| p = opts_arr[ii].split(':'); | |
| + | p = [p[0], p.slice(1).join(':')]; |
| if (/true/i.test(p[1])) p[1] = true; | |
| if (/false/i.test(p[1])) p[1] = false; | |
| - | if (isNumber(p[1])) p[1] = parseInt(p[1], 10); |
| + | if (isNumber(p[1])) { |
| + | if (p[1].indexOf('.') === -1) { |
| + | p[1] = parseInt(p[1], 10); |
| + | } else { |
| + | p[1] = parseFloat(p[1]); |
| + | } |
| + | } |
| if (p.length === 2 && p[0].length > 0) { | |
| opts[trim(p[0])] = trim(p[1]); | |
| @@ | @@ -313,96 +520,81 @@ |
| return opts; | |
| }, | |
| - | delay : function (fun, delay) { |
| - | return setTimeout(fun, delay); |
| - | }, |
| - | |
| - | // test for empty object or array |
| - | empty : function (obj) { |
| - | if (obj.length && obj.length > 0) return false; |
| - | if (obj.length && obj.length === 0) return true; |
| - | |
| - | for (var key in obj) { |
| - | if (hasOwnProperty.call(obj, key)) return false; |
| - | } |
| - | |
| - | return true; |
| - | }, |
| - | |
| - | register_media : function(media, media_class) { |
| + | // Description: |
| + | // Adds JS-recognizable media queries |
| + | // |
| + | // Arguments: |
| + | // Media (String): Key string for the media query to be stored as in |
| + | // Foundation.media_queries |
| + | // |
| + | // Class (String): Class name for the generated <meta> tag |
| + | register_media : function (media, media_class) { |
| if(Foundation.media_queries[media] === undefined) { | |
| $('head').append('<meta class="' + media_class + '">'); | |
| Foundation.media_queries[media] = removeQuotes($('.' + media_class).css('font-family')); | |
| } | |
| }, | |
| - | addCustomRule : function(rule, media) { |
| - | if(media === undefined) { |
| + | // Description: |
| + | // Add custom CSS within a JS-defined media query |
| + | // |
| + | // Arguments: |
| + | // Rule (String): CSS rule to be appended to the document. |
| + | // |
| + | // Media (String): Optional media query string for the CSS rule to be |
| + | // nested under. |
| + | add_custom_rule : function (rule, media) { |
| + | if (media === undefined && Foundation.stylesheet) { |
| Foundation.stylesheet.insertRule(rule, Foundation.stylesheet.cssRules.length); | |
| } else { | |
| var query = Foundation.media_queries[media]; | |
| - | if(query !== undefined) { |
| - | Foundation.stylesheet.insertRule('@media ' + |
| - | Foundation.media_queries[media] + '{ ' + rule + ' }'); |
| - | } |
| - | } |
| - | }, |
| - | loaded : function (image, callback) { |
| - | function loaded () { |
| - | callback(image[0]); |
| - | } |
| - | |
| - | function bindLoad () { |
| - | this.one('load', loaded); |
| - | |
| - | if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { |
| - | var src = this.attr( 'src' ), |
| - | param = src.match( /\?/ ) ? '&' : '?'; |
| - | |
| - | param += 'random=' + (new Date()).getTime(); |
| - | this.attr('src', src + param); |
| + | if (query !== undefined) { |
| + | Foundation.stylesheet.insertRule('@media ' + |
| + | Foundation.media_queries[media] + '{ ' + rule + ' }'); |
| } | |
| } | |
| - | |
| - | if (!image.attr('src')) { |
| - | loaded(); |
| - | return; |
| - | } |
| - | |
| - | if (image[0].complete || image[0].readyState === 4) { |
| - | loaded(); |
| - | } else { |
| - | bindLoad.call(image); |
| - | } |
| }, | |
| - | bindings : function (method, options) { |
| + | // Description: |
| + | // Performs a callback function when an image is fully loaded |
| + | // |
| + | // Arguments: |
| + | // Image (jQuery Object): Image(s) to check if loaded. |
| + | // |
| + | // Callback (Function): Function to execute when image is fully loaded. |
| + | image_loaded : function (images, callback) { |
| var self = this, | |
| - | should_bind_events = !S(this).data(this.name + '-init'); |
| + | unloaded = images.length; |
| - | if (typeof method === 'string') { |
| - | return this[method].call(this, options); |
| + | if (unloaded === 0) { |
| + | callback(images); |
| } | |
| - | if (S(this.scope).is('[data-' + this.name +']')) { |
| - | S(this.scope).data(this.name + '-init', $.extend({}, this.settings, (options || method), this.data_options(S(this.scope)))); |
| - | |
| - | if (should_bind_events) { |
| - | this.events(this.scope); |
| - | } |
| - | |
| - | } else { |
| - | S('[data-' + this.name + ']', this.scope).each(function () { |
| - | var should_bind_events = !S(this).data(self.name + '-init'); |
| - | |
| - | S(this).data(self.name + '-init', $.extend({}, self.settings, (options || method), self.data_options(S(this)))); |
| - | |
| - | if (should_bind_events) { |
| - | self.events(this); |
| + | images.each(function () { |
| + | single_image_loaded(self.S(this), function () { |
| + | unloaded -= 1; |
| + | if (unloaded === 0) { |
| + | callback(images); |
| } | |
| }); | |
| - | } |
| + | }); |
| + | }, |
| + | |
| + | // Description: |
| + | // Returns a random, alphanumeric string |
| + | // |
| + | // Arguments: |
| + | // Length (Integer): Length of string to be generated. Defaults to random |
| + | // integer. |
| + | // |
| + | // Returns: |
| + | // Rand (String): Pseudo-random, alphanumeric string. |
| + | random_str : function () { |
| + | if (!this.fidx) this.fidx = 0; |
| + | this.prefix = this.prefix || [(this.name || 'F'), (+new Date).toString(36)].join('-'); |
| + | |
| + | return this.prefix + (this.fidx++).toString(36); |
| } | |
| } | |
| }; | |
| @@ | @@ -416,4 +608,4 @@ |
| }); | |
| }; | |
| - | }(jQuery, this, this.document)); |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.magellan.js
+145
-97
| @@ | @@ -1,130 +1,178 @@ |
| ;(function ($, window, document, undefined) { | |
| 'use strict'; | |
| - | Foundation.libs.magellan = { |
| - | name : 'magellan', |
| + | Foundation.libs['magellan-expedition'] = { |
| + | name : 'magellan-expedition', |
| - | version : '5.0.0', |
| + | version : '5.2.3', |
| settings : { | |
| active_class: 'active', | |
| - | threshold: 0 |
| - | }, |
| + | threshold: 0, // pixels from the top of the expedition for it to become fixes |
| + | destination_threshold: 20, // pixels from the top of destination for it to be considered active |
| + | throttle_delay: 30, // calculation throttling to increase framerate |
| + | fixed_top: 0 // top distance in pixels assigend to the fixed element on scroll |
| + | }, |
| init : function (scope, method, options) { | |
| - | this.fixed_magellan = $("[data-magellan-expedition]"); |
| - | this.magellan_placeholder = $('<div></div>').css({ |
| - | height: this.fixed_magellan.outerHeight(true) |
| - | }).hide().insertAfter(this.fixed_magellan); |
| - | this.set_threshold(); |
| - | this.set_active_class(method); |
| - | this.last_destination = $('[data-magellan-destination]').last(); |
| - | this.events(); |
| + | Foundation.inherit(this, 'throttle'); |
| + | this.bindings(method, options); |
| }, | |
| events : function () { | |
| - | var self = this; |
| - | |
| - | $(this.scope) |
| - | .off('.magellan') |
| - | .on('arrival.fndtn.magellan', '[data-magellan-arrival]', function (e) { |
| - | var $destination = $(this), |
| - | $expedition = $destination.closest('[data-magellan-expedition]'), |
| - | active_class = $expedition.attr('data-magellan-active-class') |
| - | || self.settings.active_class; |
| - | |
| - | $destination |
| - | .closest('[data-magellan-expedition]') |
| - | .find('[data-magellan-arrival]') |
| - | .not($destination) |
| - | .removeClass(active_class); |
| - | $destination.addClass(active_class); |
| - | }); |
| + | var self = this, |
| + | S = self.S, |
| + | settings = self.settings; |
| - | this.fixed_magellan |
| - | .off('.magellan') |
| - | .on('update-position.fndtn.magellan', function() { |
| - | var $el = $(this); |
| - | }) |
| - | .trigger('update-position'); |
| + | // initialize expedition offset |
| + | self.set_expedition_position(); |
| - | $(window) |
| + | S(self.scope) |
| .off('.magellan') | |
| - | .on('resize.fndtn.magellan', function() { |
| - | this.fixed_magellan.trigger('update-position'); |
| - | }.bind(this)) |
| - | .on('scroll.fndtn.magellan', function() { |
| - | var windowScrollTop = $(window).scrollTop(); |
| - | self.fixed_magellan.each(function() { |
| - | var $expedition = $(this); |
| - | if (typeof $expedition.data('magellan-top-offset') === 'undefined') { |
| - | $expedition.data('magellan-top-offset', $expedition.offset().top); |
| + | .on('click.fndtn.magellan', '[' + self.add_namespace('data-magellan-arrival') + '] a[href^="#"]', function (e) { |
| + | e.preventDefault(); |
| + | var expedition = $(this).closest('[' + self.attr_name() + ']'), |
| + | settings = expedition.data('magellan-expedition-init'), |
| + | hash = this.hash.split('#').join(''), |
| + | target = $("a[name='"+hash+"']"); |
| + | |
| + | if (target.length === 0) { |
| + | target = $('#'+hash); |
| + | } |
| + | |
| + | // Account for expedition height if fixed position |
| + | var scroll_top = target.offset().top; |
| + | scroll_top = scroll_top - expedition.outerHeight(); |
| + | |
| + | $('html, body').stop().animate({ |
| + | 'scrollTop': scroll_top |
| + | }, 700, 'swing', function () { |
| + | if(history.pushState) { |
| + | history.pushState(null, null, '#'+hash); |
| } | |
| - | if (typeof $expedition.data('magellan-fixed-position') === 'undefined') { |
| - | $expedition.data('magellan-fixed-position', false); |
| - | } |
| - | var fixed_position = (windowScrollTop + self.settings.threshold) > $expedition.data("magellan-top-offset"); |
| - | var attr = $expedition.attr('data-magellan-top-offset'); |
| - | |
| - | if ($expedition.data("magellan-fixed-position") != fixed_position) { |
| - | $expedition.data("magellan-fixed-position", fixed_position); |
| - | if (fixed_position) { |
| - | $expedition.addClass('fixed'); |
| - | $expedition.css({position:"fixed", top:0}); |
| - | self.magellan_placeholder.show(); |
| - | } else { |
| - | $expedition.removeClass('fixed'); |
| - | $expedition.css({position:"", top:""}); |
| - | self.magellan_placeholder.hide(); |
| - | } |
| - | if (fixed_position && typeof attr != 'undefined' && attr != false) { |
| - | $expedition.css({position:"fixed", top:attr + "px"}); |
| - | } |
| + | else { |
| + | location.hash = '#'+hash; |
| } | |
| }); | |
| - | }); |
| + | }) |
| + | .on('scroll.fndtn.magellan', self.throttle(this.check_for_arrivals.bind(this), settings.throttle_delay)); |
| + | |
| + | $(window) |
| + | .on('resize.fndtn.magellan', self.throttle(this.set_expedition_position.bind(this), settings.throttle_delay)); |
| + | }, |
| + | check_for_arrivals : function() { |
| + | var self = this; |
| + | self.update_arrivals(); |
| + | self.update_expedition_positions(); |
| + | }, |
| - | if (this.last_destination.length > 0) { |
| - | $(window).on('scroll.fndtn.magellan', function (e) { |
| - | var windowScrollTop = $(window).scrollTop(), |
| - | scrolltopPlusHeight = windowScrollTop + $(window).height(), |
| - | lastDestinationTop = Math.ceil(self.last_destination.offset().top); |
| + | set_expedition_position : function() { |
| + | var self = this; |
| + | $('[' + this.attr_name() + '=fixed]', self.scope).each(function(idx, el) { |
| + | var expedition = $(this), |
| + | styles = expedition.attr('styles'), // save styles |
| + | top_offset; |
| - | $('[data-magellan-destination]').each(function () { |
| - | var $destination = $(this), |
| - | destination_name = $destination.attr('data-magellan-destination'), |
| - | topOffset = $destination.offset().top - $destination.outerHeight(true) - windowScrollTop; |
| - | if (topOffset <= self.settings.threshold) { |
| - | $("[data-magellan-arrival='" + destination_name + "']").trigger('arrival'); |
| - | } |
| - | // In large screens we may hit the bottom of the page and dont reach the top of the last magellan-destination, so lets force it |
| - | if (scrolltopPlusHeight >= $(self.scope).height() && lastDestinationTop > windowScrollTop && lastDestinationTop < scrolltopPlusHeight) { |
| - | $('[data-magellan-arrival]').last().trigger('arrival'); |
| - | } |
| - | }); |
| + | expedition.attr('style', ''); |
| + | top_offset = expedition.offset().top + self.settings.threshold; |
| + | |
| + | expedition.data(self.data_attr('magellan-top-offset'), top_offset); |
| + | expedition.attr('style', styles); |
| + | }); |
| + | }, |
| + | |
| + | update_expedition_positions : function() { |
| + | var self = this, |
| + | window_top_offset = $(window).scrollTop(); |
| + | |
| + | $('[' + this.attr_name() + '=fixed]', self.scope).each(function() { |
| + | var expedition = $(this), |
| + | top_offset = expedition.data('magellan-top-offset'); |
| + | |
| + | if (window_top_offset >= top_offset) { |
| + | // Placeholder allows height calculations to be consistent even when |
| + | // appearing to switch between fixed/non-fixed placement |
| + | var placeholder = expedition.prev('[' + self.add_namespace('data-magellan-expedition-clone') + ']'); |
| + | if (placeholder.length === 0) { |
| + | placeholder = expedition.clone(); |
| + | placeholder.removeAttr(self.attr_name()); |
| + | placeholder.attr(self.add_namespace('data-magellan-expedition-clone'),''); |
| + | expedition.before(placeholder); |
| + | } |
| + | expedition.css({position:'fixed', top: self.settings.fixed_top}); |
| + | } else { |
| + | expedition.prev('[' + self.add_namespace('data-magellan-expedition-clone') + ']').remove(); |
| + | expedition.attr('style','').removeClass('fixed'); |
| + | } |
| + | }); |
| + | }, |
| + | |
| + | update_arrivals : function() { |
| + | var self = this, |
| + | window_top_offset = $(window).scrollTop(); |
| + | |
| + | $('[' + this.attr_name() + ']', self.scope).each(function() { |
| + | var expedition = $(this), |
| + | settings = expedition.data(self.attr_name(true) + '-init'), |
| + | offsets = self.offsets(expedition, window_top_offset), |
| + | arrivals = expedition.find('[' + self.add_namespace('data-magellan-arrival') + ']'), |
| + | active_item = false; |
| + | offsets.each(function(idx, item) { |
| + | if (item.viewport_offset >= item.top_offset) { |
| + | var arrivals = expedition.find('[' + self.add_namespace('data-magellan-arrival') + ']'); |
| + | arrivals.not(item.arrival).removeClass(settings.active_class); |
| + | item.arrival.addClass(settings.active_class); |
| + | active_item = true; |
| + | return true; |
| + | } |
| }); | |
| - | } |
| + | |
| + | if (!active_item) arrivals.removeClass(settings.active_class); |
| + | }); |
| }, | |
| - | set_threshold : function () { |
| - | if (typeof this.settings.threshold !== 'number') { |
| - | this.settings.threshold = (this.fixed_magellan.length > 0) ? |
| - | this.fixed_magellan.outerHeight(true) : 0; |
| - | } |
| + | offsets : function(expedition, window_offset) { |
| + | var self = this, |
| + | settings = expedition.data(self.attr_name(true) + '-init'), |
| + | viewport_offset = window_offset; |
| + | |
| + | return expedition.find('[' + self.add_namespace('data-magellan-arrival') + ']').map(function(idx, el) { |
| + | var name = $(this).data(self.data_attr('magellan-arrival')), |
| + | dest = $('[' + self.add_namespace('data-magellan-destination') + '=' + name + ']'); |
| + | if (dest.length > 0) { |
| + | var top_offset = dest.offset().top - settings.destination_threshold - expedition.outerHeight(); |
| + | return { |
| + | destination : dest, |
| + | arrival : $(this), |
| + | top_offset : top_offset, |
| + | viewport_offset : viewport_offset |
| + | } |
| + | } |
| + | }).sort(function(a, b) { |
| + | if (a.top_offset < b.top_offset) return -1; |
| + | if (a.top_offset > b.top_offset) return 1; |
| + | return 0; |
| + | }); |
| }, | |
| - | set_active_class : function (options) { |
| - | if (options && options.active_class && typeof options.active_class === 'string') { |
| - | this.settings.active_class = options.active_class; |
| + | data_attr: function (str) { |
| + | if (this.namespace.length > 0) { |
| + | return this.namespace + '-' + str; |
| } | |
| + | |
| + | return str; |
| }, | |
| off : function () { | |
| - | $(this.scope).off('.fndtn.magellan'); |
| - | $(window).off('.fndtn.magellan'); |
| + | this.S(this.scope).off('.magellan'); |
| + | this.S(window).off('.magellan'); |
| }, | |
| - | reflow : function () {} |
| + | reflow : function () { |
| + | var self = this; |
| + | // remove placeholder expeditions used for height calculation purposes |
| + | $('[' + self.add_namespace('data-magellan-expedition-clone') + ']', self.scope).remove(); |
| + | } |
| }; | |
| - | }(jQuery, this, this.document)); |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.offcanvas.js
+85
-14
| @@ | @@ -4,34 +4,105 @@ |
| Foundation.libs.offcanvas = { | |
| name : 'offcanvas', | |
| - | version : '5.0.0', |
| + | version : '5.2.3', |
| - | settings : {}, |
| + | settings : { |
| + | open_method: 'move', |
| + | close_on_click: true |
| + | }, |
| init : function (scope, method, options) { | |
| - | this.events(); |
| + | this.bindings(method, options); |
| }, | |
| events : function () { | |
| - | $(this.scope).off('.offcanvas') |
| + | var self = this, |
| + | S = self.S, |
| + | move_class = '', |
| + | right_postfix = '', |
| + | left_postfix = ''; |
| + | |
| + | if (this.settings.open_method === 'move') { |
| + | move_class = 'move-'; |
| + | right_postfix = 'right'; |
| + | left_postfix = 'left'; |
| + | } else if (this.settings.open_method === 'overlap') { |
| + | move_class = 'offcanvas-overlap'; |
| + | } |
| + | |
| + | S(this.scope).off('.offcanvas') |
| .on('click.fndtn.offcanvas', '.left-off-canvas-toggle', function (e) { | |
| - | e.preventDefault(); |
| - | $(this).closest('.off-canvas-wrap').toggleClass('move-right'); |
| + | self.click_toggle_class(e, move_class + right_postfix); |
| }) | |
| - | .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) { |
| - | e.preventDefault(); |
| - | $(".off-canvas-wrap").removeClass("move-right"); |
| + | .on('click.fndtn.offcanvas', '.left-off-canvas-menu a', function (e) { |
| + | var settings = self.get_settings(e); |
| + | if (settings.close_on_click) { |
| + | self.hide.call(self, move_class + right_postfix, self.get_wrapper(e)); |
| + | } |
| }) | |
| .on('click.fndtn.offcanvas', '.right-off-canvas-toggle', function (e) { | |
| - | e.preventDefault(); |
| - | $(this).closest(".off-canvas-wrap").toggleClass("move-left"); |
| + | self.click_toggle_class(e, move_class + left_postfix); |
| + | }) |
| + | .on('click.fndtn.offcanvas', '.right-off-canvas-menu a', function (e) { |
| + | var settings = self.get_settings(e); |
| + | if (settings.close_on_click) { |
| + | self.hide.call(self, move_class + left_postfix, self.get_wrapper(e)); |
| + | } |
| }) | |
| .on('click.fndtn.offcanvas', '.exit-off-canvas', function (e) { | |
| - | e.preventDefault(); |
| - | $(".off-canvas-wrap").removeClass("move-left"); |
| + | self.click_remove_class(e, move_class + left_postfix); |
| + | if (right_postfix) self.click_remove_class(e, move_class + right_postfix); |
| }); | |
| + | |
| + | }, |
| + | |
| + | toggle: function(class_name, $off_canvas) { |
| + | $off_canvas = $off_canvas || this.get_wrapper(); |
| + | if ($off_canvas.is('.' + class_name)) { |
| + | this.hide(class_name, $off_canvas); |
| + | } else { |
| + | this.show(class_name, $off_canvas); |
| + | } |
| + | }, |
| + | |
| + | show: function(class_name, $off_canvas) { |
| + | $off_canvas = $off_canvas || this.get_wrapper(); |
| + | $off_canvas.trigger('open'); |
| + | $off_canvas.addClass(class_name); |
| + | }, |
| + | |
| + | hide: function(class_name, $off_canvas) { |
| + | $off_canvas = $off_canvas || this.get_wrapper(); |
| + | $off_canvas.trigger('close'); |
| + | $off_canvas.removeClass(class_name); |
| + | }, |
| + | |
| + | click_toggle_class: function(e, class_name) { |
| + | e.preventDefault(); |
| + | var $off_canvas = this.get_wrapper(e); |
| + | this.toggle(class_name, $off_canvas); |
| + | }, |
| + | |
| + | click_remove_class: function(e, class_name) { |
| + | e.preventDefault(); |
| + | var $off_canvas = this.get_wrapper(e); |
| + | this.hide(class_name, $off_canvas); |
| + | }, |
| + | |
| + | get_settings: function(e) { |
| + | var offcanvas = this.S(e.target).closest('[' + this.attr_name() + ']'); |
| + | return offcanvas.data(this.attr_name(true) + '-init') || this.settings; |
| + | }, |
| + | |
| + | get_wrapper: function(e) { |
| + | var $off_canvas = this.S(e ? e.target : this.scope).closest('.off-canvas-wrap'); |
| + | |
| + | if ($off_canvas.length === 0) { |
| + | $off_canvas = this.S('.off-canvas-wrap'); |
| + | } |
| + | return $off_canvas; |
| }, | |
| reflow : function () {} | |
| }; | |
| - | }(jQuery, this, this.document)); |
| \ No newline at end of file | |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.orbit.js
+308
-147
| @@ | @@ -17,16 +17,21 @@ |
| timer_container, | |
| idx = 0, | |
| animate, | |
| - | timer, |
| - | locked = false, |
| - | adjust_height_after = false; |
| + | adjust_height_after = false, |
| + | has_init_active = slides_container.find("." + settings.active_slide_class).length > 0; |
| - | slides_container.children().first().addClass(settings.active_slide_class); |
| + | self.cache = {}; |
| + | |
| + | self.slides = function() { |
| + | return slides_container.children(settings.slide_selector); |
| + | }; |
| + | |
| + | if (!has_init_active) {self.slides().first().addClass(settings.active_slide_class)}; |
| self.update_slide_number = function(index) { | |
| if (settings.slide_number) { | |
| number_container.find('span:first').text(parseInt(index)+1); | |
| - | number_container.find('span:last').text(slides_container.children().length); |
| + | number_container.find('span:last').text(self.slides().length); |
| } | |
| if (settings.bullets) { | |
| bullets_container.children().removeClass(settings.bullets_active_class); | |
| @@ | @@ -35,7 +40,7 @@ |
| }; | |
| self.update_active_link = function(index) { | |
| - | var link = $('a[data-orbit-link="'+slides_container.children().eq(index).attr('data-orbit-slide')+'"]'); |
| + | var link = $('[data-orbit-link="'+self.slides().eq(index).attr('data-orbit-slide')+'"]'); |
| link.siblings().removeClass(settings.bullets_active_class); | |
| link.addClass(settings.bullets_active_class); | |
| }; | |
| @@ | @@ -44,7 +49,12 @@ |
| slides_container.wrap('<div class="'+settings.container_class+'"></div>'); | |
| container = slides_container.parent(); | |
| slides_container.addClass(settings.slides_container_class); | |
| + | slides_container.addClass(settings.animation); |
| + | if (settings.stack_on_small) { |
| + | container.addClass(settings.stack_on_small_class); |
| + | } |
| + | |
| if (settings.navigation_arrows) { | |
| container.append($('<a href="#"><span></span></a>').addClass(settings.prev_class)); | |
| container.append($('<a href="#"><span></span></a>').addClass(settings.next_class)); | |
| @@ | @@ -53,7 +63,9 @@ |
| if (settings.timer) { | |
| timer_container = $('<div>').addClass(settings.timer_container_class); | |
| timer_container.append('<span>'); | |
| - | timer_container.append($('<div>').addClass(settings.timer_progress_class)); |
| + | if (settings.timer_show_progress_bar) { |
| + | timer_container.append($('<div>').addClass(settings.timer_progress_class)); |
| + | } |
| timer_container.addClass(settings.timer_paused_class); | |
| container.append(timer_container); | |
| } | |
| @@ | @@ -68,29 +80,28 @@ |
| bullets_container = $('<ol>').addClass(settings.bullets_container_class); | |
| container.append(bullets_container); | |
| bullets_container.wrap('<div class="orbit-bullets-container"></div>'); | |
| - | slides_container.children().each(function(idx, el) { |
| - | var bullet = $('<li>').attr('data-orbit-slide', idx); |
| + | self.slides().each(function(idx, el) { |
| + | var bullet = $('<li>').attr('data-orbit-slide', idx) |
| + | .on('click', self.link_bullet); |
| bullets_container.append(bullet); | |
| }); | |
| } | |
| - | if (settings.stack_on_small) { |
| - | container.addClass(settings.stack_on_small_class); |
| - | } |
| - | |
| - | self.update_slide_number(0); |
| - | self.update_active_link(0); |
| }; | |
| - | self._goto = function(next_idx, start_timer) { |
| - | // if (locked) {return false;} |
| - | if (next_idx === idx) {return false;} |
| - | if (typeof timer === 'object') {timer.restart();} |
| - | var slides = slides_container.children(); |
| - | |
| + | self._prepare_direction = function(next_idx, current_direction) { |
| var dir = 'next'; | |
| - | locked = true; |
| - | if (next_idx < idx) {dir = 'prev';} |
| + | if (next_idx <= idx) { dir = 'prev'; } |
| + | |
| + | if (settings.animation === 'slide') { |
| + | setTimeout(function(){ |
| + | slides_container.removeClass("swipe-prev swipe-next"); |
| + | if (dir === 'next') {slides_container.addClass("swipe-next");} |
| + | else if (dir === 'prev') {slides_container.addClass("swipe-prev");} |
| + | },0); |
| + | } |
| + | |
| + | var slides = self.slides(); |
| if (next_idx >= slides.length) { | |
| if (!settings.circular) return false; | |
| next_idx = 0; | |
| @@ | @@ -98,29 +109,53 @@ |
| if (!settings.circular) return false; | |
| next_idx = slides.length - 1; | |
| } | |
| + | var current = $(slides.get(idx)) |
| + | , next = $(slides.get(next_idx)); |
| + | |
| + | return [dir, current, next, next_idx]; |
| + | }; |
| + | |
| + | self._goto = function(next_idx, start_timer) { |
| + | if (next_idx === null) {return false;} |
| + | if (self.cache.animating) {return false;} |
| + | if (next_idx === idx) {return false;} |
| + | if (typeof self.cache.timer === 'object') {self.cache.timer.restart();} |
| - | var current = $(slides.get(idx)); |
| - | var next = $(slides.get(next_idx)); |
| + | var slides = self.slides(); |
| + | self.cache.animating = true; |
| + | var res = self._prepare_direction(next_idx) |
| + | , dir = res[0] |
| + | , current = res[1] |
| + | , next = res[2] |
| + | , next_idx = res[3]; |
| - | current.css('zIndex', 2); |
| - | current.removeClass(settings.active_slide_class); |
| - | next.css('zIndex', 4).addClass(settings.active_slide_class); |
| + | // This means that circular is disabled and we most likely reached the last slide. |
| + | if (res === false) return false; |
| slides_container.trigger('before-slide-change.fndtn.orbit'); | |
| settings.before_slide_change(); | |
| - | self.update_active_link(next_idx); |
| + | idx = next_idx; |
| + | |
| + | current.css("transitionDuration", settings.animation_speed+"ms"); |
| + | next.css("transitionDuration", settings.animation_speed+"ms"); |
| var callback = function() { | |
| var unlock = function() { | |
| - | idx = next_idx; |
| - | locked = false; |
| - | if (start_timer === true) {timer = self.create_timer(); timer.start();} |
| + | if (start_timer === true) {self.cache.timer.restart();} |
| self.update_slide_number(idx); | |
| + | // Remove "animate-in" class as late as possible to avoid "flickering" (especially with variable_height). |
| + | next.removeClass("animate-in"); |
| + | next.addClass(settings.active_slide_class); |
| + | self.update_active_link(next_idx); |
| slides_container.trigger('after-slide-change.fndtn.orbit',[{slide_number: idx, total_slides: slides.length}]); | |
| settings.after_slide_change(idx, slides.length); | |
| + | setTimeout(function(){ |
| + | self.cache.animating = false; |
| + | }, 100); |
| + | |
| }; | |
| if (slides_container.height() != next.height() && settings.variable_height) { | |
| - | slides_container.animate({'height': next.height()}, 250, 'linear', unlock); |
| + | slides_container.animate({'min-height': next.height()}, 250, 'linear', unlock); |
| } else { | |
| unlock(); | |
| } | |
| @@ | @@ -134,7 +169,7 @@ |
| }; | |
| if (next.height() > slides_container.height() && settings.variable_height) { | |
| - | slides_container.animate({'height': next.height()}, 250, 'linear', start_animation); |
| + | slides_container.animate({'min-height': next.height()}, 250, 'linear', start_animation); |
| } else { | |
| start_animation(); | |
| } | |
| @@ | @@ -143,13 +178,19 @@ |
| self.next = function(e) { | |
| e.stopImmediatePropagation(); | |
| e.preventDefault(); | |
| - | self._goto(idx + 1); |
| + | self._prepare_direction(idx + 1); |
| + | setTimeout(function(){ |
| + | self._goto(idx + 1); |
| + | }, 100); |
| }; | |
| self.prev = function(e) { | |
| e.stopImmediatePropagation(); | |
| e.preventDefault(); | |
| - | self._goto(idx - 1); |
| + | self._prepare_direction(idx - 1); |
| + | setTimeout(function(){ |
| + | self._goto(idx - 1) |
| + | }, 100); |
| }; | |
| self.link_custom = function(e) { | |
| @@ | @@ -157,24 +198,38 @@ |
| var link = $(this).attr('data-orbit-link'); | |
| if ((typeof link === 'string') && (link = $.trim(link)) != "") { | |
| var slide = container.find('[data-orbit-slide='+link+']'); | |
| - | if (slide.index() != -1) {self._goto(slide.index());} |
| + | if (slide.index() != -1) { |
| + | setTimeout(function(){ |
| + | self._goto(slide.index()); |
| + | },100); |
| + | } |
| } | |
| }; | |
| + | // Click handler for slides and bullets. |
| self.link_bullet = function(e) { | |
| var index = $(this).attr('data-orbit-slide'); | |
| if ((typeof index === 'string') && (index = $.trim(index)) != "") { | |
| if(isNaN(parseInt(index))) | |
| { | |
| var slide = container.find('[data-orbit-slide='+index+']'); | |
| - | if (slide.index() != -1) {self._goto(slide.index() + 1);} |
| + | if (slide.index() != -1) { |
| + | index = slide.index() + 1; |
| + | self._prepare_direction(index); |
| + | setTimeout(function(){ |
| + | self._goto(index); |
| + | },100); |
| + | } |
| } | |
| else | |
| { | |
| - | self._goto(parseInt(index)); |
| + | index = parseInt(index); |
| + | self._prepare_direction(index); |
| + | setTimeout(function(){ |
| + | self._goto(index); |
| + | },100); |
| } | |
| } | |
| - | |
| } | |
| self.timer_callback = function() { | |
| @@ | @@ -182,14 +237,14 @@ |
| } | |
| self.compute_dimensions = function() { | |
| - | var current = $(slides_container.children().get(idx)); |
| + | var current = $(self.slides().get(idx)); |
| var h = current.height(); | |
| if (!settings.variable_height) { | |
| - | slides_container.children().each(function(){ |
| + | self.slides().each(function(){ |
| if ($(this).height() > h) { h = $(this).height(); } | |
| }); | |
| } | |
| - | slides_container.height(h); |
| + | slides_container.css('minHeight', String(h)+'px'); |
| }; | |
| self.create_timer = function() { | |
| @@ | @@ -202,68 +257,114 @@ |
| }; | |
| self.stop_timer = function() { | |
| - | if (typeof timer === 'object') timer.stop(); |
| + | if (typeof self.cache.timer === 'object') self.cache.timer.stop(); |
| }; | |
| self.toggle_timer = function() { | |
| var t = container.find('.'+settings.timer_container_class); | |
| if (t.hasClass(settings.timer_paused_class)) { | |
| - | if (typeof timer === 'undefined') {timer = self.create_timer();} |
| - | timer.start(); |
| + | if (typeof self.cache.timer === 'undefined') {self.cache.timer = self.create_timer();} |
| + | self.cache.timer.start(); |
| } | |
| else { | |
| - | if (typeof timer === 'object') {timer.stop();} |
| + | if (typeof self.cache.timer === 'object') {self.cache.timer.stop();} |
| } | |
| }; | |
| self.init = function() { | |
| self.build_markup(); | |
| - | if (settings.timer) {timer = self.create_timer(); timer.start();} |
| - | animate = new FadeAnimation(settings, slides_container); |
| - | if (settings.animation === 'slide') |
| - | animate = new SlideAnimation(settings, slides_container); |
| + | if (settings.timer) { |
| + | self.cache.timer = self.create_timer(); |
| + | Foundation.utils.image_loaded(this.slides().find('img'), self.cache.timer.start); |
| + | } |
| + | |
| + | animate = new CSSAnimation(settings, slides_container); |
| + | |
| + | if (has_init_active) { |
| + | var $init_target = slides_container.find("." + settings.active_slide_class), |
| + | animation_speed = settings.animation_speed; |
| + | settings.animation_speed = 1; |
| + | $init_target.removeClass('active'); |
| + | self._goto($init_target.index()); |
| + | settings.animation_speed = animation_speed; |
| + | } |
| + | |
| container.on('click', '.'+settings.next_class, self.next); | |
| container.on('click', '.'+settings.prev_class, self.prev); | |
| - | container.on('click', '[data-orbit-slide]', self.link_bullet); |
| + | |
| + | if (settings.next_on_click) { |
| + | container.on('click', '.'+settings.slides_container_class+' [data-orbit-slide]', self.link_bullet); |
| + | } |
| + | |
| container.on('click', self.toggle_timer); | |
| if (settings.swipe) { | |
| - | container.on('touchstart.fndtn.orbit', function(e) { |
| + | slides_container.on('touchstart.fndtn.orbit',function(e) { |
| + | if (self.cache.animating) {return;} |
| if (!e.touches) {e = e.originalEvent;} | |
| - | var data = { |
| - | start_page_x: e.touches[0].pageX, |
| - | start_page_y: e.touches[0].pageY, |
| - | start_time: (new Date()).getTime(), |
| - | delta_x: 0, |
| - | is_scrolling: undefined |
| - | }; |
| - | container.data('swipe-transition', data); |
| + | e.preventDefault(); |
| e.stopPropagation(); | |
| - | }) |
| - | .on('touchmove.fndtn.orbit', function(e) { |
| - | if (!e.touches) { e = e.originalEvent; } |
| - | // Ignore pinch/zoom events |
| - | if(e.touches.length > 1 || e.scale && e.scale !== 1) return; |
| - | |
| - | var data = container.data('swipe-transition'); |
| - | if (typeof data === 'undefined') {data = {};} |
| - | |
| - | data.delta_x = e.touches[0].pageX - data.start_page_x; |
| - | if ( typeof data.is_scrolling === 'undefined') { |
| - | data.is_scrolling = !!( data.is_scrolling || Math.abs(data.delta_x) < Math.abs(e.touches[0].pageY - data.start_page_y) ); |
| - | } |
| - | |
| - | if (!data.is_scrolling && !data.active) { |
| + | self.cache.start_page_x = e.touches[0].pageX; |
| + | self.cache.start_page_y = e.touches[0].pageY; |
| + | self.cache.start_time = (new Date()).getTime(); |
| + | self.cache.delta_x = 0; |
| + | self.cache.is_scrolling = null; |
| + | self.cache.direction = null; |
| + | |
| + | self.stop_timer(); // does not appear to prevent callback from occurring |
| + | }) |
| + | .on('touchmove.fndtn.orbit',function(e) { |
| + | if (Math.abs(self.cache.delta_x) > 5) { |
| e.preventDefault(); | |
| - | var direction = (data.delta_x < 0) ? (idx+1) : (idx-1); |
| - | data.active = true; |
| - | self._goto(direction); |
| + | e.stopPropagation(); |
| } | |
| + | |
| + | if (self.cache.animating) {return;} |
| + | requestAnimationFrame(function(){ |
| + | if (!e.touches) { e = e.originalEvent; } |
| + | |
| + | // Ignore pinch/zoom events |
| + | if(e.touches.length > 1 || e.scale && e.scale !== 1) return; |
| + | |
| + | self.cache.delta_x = e.touches[0].pageX - self.cache.start_page_x; |
| + | |
| + | if (self.cache.is_scrolling === null) { |
| + | self.cache.is_scrolling = !!( self.cache.is_scrolling || Math.abs(self.cache.delta_x) < Math.abs(e.touches[0].pageY - self.cache.start_page_y) ); |
| + | } |
| + | |
| + | if (self.cache.is_scrolling) { |
| + | return; |
| + | } |
| + | |
| + | var direction = (self.cache.delta_x < 0) ? (idx+1) : (idx-1); |
| + | if (self.cache.direction !== direction) { |
| + | var res = self._prepare_direction(direction); |
| + | self.cache.direction = direction; |
| + | self.cache.dir = res[0]; |
| + | self.cache.current = res[1]; |
| + | self.cache.next = res[2]; |
| + | } |
| + | |
| + | if (settings.animation === 'slide') { |
| + | var offset, next_offset; |
| + | |
| + | offset = (self.cache.delta_x / container.width()) * 100; |
| + | if (offset >= 0) {next_offset = -(100 - offset);} |
| + | else {next_offset = 100 + offset;} |
| + | |
| + | self.cache.current.css("transform","translate3d("+offset+"%,0,0)"); |
| + | self.cache.next.css("transform","translate3d("+next_offset+"%,0,0)"); |
| + | } |
| + | }); |
| }) | |
| .on('touchend.fndtn.orbit', function(e) { | |
| - | container.data('swipe-transition', {}); |
| + | if (self.cache.animating) {return;} |
| + | e.preventDefault(); |
| e.stopPropagation(); | |
| - | }) |
| + | setTimeout(function(){ |
| + | self._goto(self.cache.direction); |
| + | }, 50); |
| + | }); |
| } | |
| container.on('mouseenter.fndtn.orbit', function(e) { | |
| if (settings.timer && settings.pause_on_hover) { | |
| @@ | @@ -272,17 +373,20 @@ |
| }) | |
| .on('mouseleave.fndtn.orbit', function(e) { | |
| if (settings.timer && settings.resume_on_mouseout) { | |
| - | timer.start(); |
| + | self.cache.timer.start(); |
| } | |
| }); | |
| $(document).on('click', '[data-orbit-link]', self.link_custom); | |
| - | $(window).on('resize', self.compute_dimensions); |
| - | $(window).on('load', self.compute_dimensions); |
| - | $(window).on('load', function(){ |
| - | container.prev('.preloader').css('display', 'none'); |
| + | $(window).on('load resize', self.compute_dimensions); |
| + | var children = this.slides().find('img'); |
| + | Foundation.utils.image_loaded(children, self.compute_dimensions); |
| + | Foundation.utils.image_loaded(children, function() { |
| + | container.prev('.'+settings.preloader_class).css('display', 'none'); |
| + | self.update_slide_number(idx); |
| + | self.update_active_link(idx); |
| + | slides_container.trigger('ready.fndtn.orbit'); |
| }); | |
| - | slides_container.trigger('ready.fndtn.orbit'); |
| }; | |
| self.init(); | |
| @@ | @@ -292,6 +396,7 @@ |
| var self = this, | |
| duration = settings.timer_speed, | |
| progress = el.find('.'+settings.timer_progress_class), | |
| + | do_progress = progress && progress.css('display') != 'none', |
| start, | |
| timeout, | |
| left = -1; | |
| @@ | @@ -308,15 +413,18 @@ |
| clearTimeout(timeout); | |
| el.addClass(settings.timer_paused_class); | |
| left = -1; | |
| - | self.update_progress(0); |
| + | if (do_progress) {self.update_progress(0);} |
| + | self.start(); |
| }; | |
| this.start = function() { | |
| if (!el.hasClass(settings.timer_paused_class)) {return true;} | |
| left = (left === -1) ? duration : left; | |
| el.removeClass(settings.timer_paused_class); | |
| - | start = new Date().getTime(); |
| - | progress.animate({'width': '100%'}, left, 'linear'); |
| + | if (do_progress) { |
| + | start = new Date().getTime(); |
| + | progress.animate({'width': '100%'}, left, 'linear'); |
| + | } |
| timeout = setTimeout(function() { | |
| self.restart(); | |
| callback(); | |
| @@ | @@ -328,58 +436,99 @@ |
| if (el.hasClass(settings.timer_paused_class)) {return true;} | |
| clearTimeout(timeout); | |
| el.addClass(settings.timer_paused_class); | |
| - | var end = new Date().getTime(); |
| - | left = left - (end - start); |
| - | var w = 100 - ((left / duration) * 100); |
| - | self.update_progress(w); |
| + | if (do_progress) { |
| + | var end = new Date().getTime(); |
| + | left = left - (end - start); |
| + | var w = 100 - ((left / duration) * 100); |
| + | self.update_progress(w); |
| + | } |
| el.trigger('timer-stopped.fndtn.orbit'); | |
| }; | |
| }; | |
| - | |
| - | var SlideAnimation = function(settings, container) { |
| - | var duration = settings.animation_speed; |
| - | var is_rtl = ($('html[dir=rtl]').length === 1); |
| - | var margin = is_rtl ? 'marginRight' : 'marginLeft'; |
| - | var animMargin = {}; |
| - | animMargin[margin] = '0%'; |
| - | |
| - | this.next = function(current, next, callback) { |
| - | current.animate({marginLeft:'-100%'}, duration); |
| - | next.animate(animMargin, duration, function() { |
| - | current.css(margin, '100%'); |
| - | callback(); |
| - | }); |
| - | }; |
| - | |
| - | this.prev = function(current, prev, callback) { |
| - | current.animate({marginLeft:'100%'}, duration); |
| - | prev.css(margin, '-100%'); |
| - | prev.animate(animMargin, duration, function() { |
| - | current.css(margin, '100%'); |
| - | callback(); |
| - | }); |
| - | }; |
| - | }; |
| - | var FadeAnimation = function(settings, container) { |
| - | var duration = settings.animation_speed; |
| - | var is_rtl = ($('html[dir=rtl]').length === 1); |
| - | var margin = is_rtl ? 'marginRight' : 'marginLeft'; |
| + | var CSSAnimation = function(settings, container) { |
| + | var animation_end = "webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend"; |
| this.next = function(current, next, callback) { | |
| - | next.css({'margin':'0%', 'opacity':'0.01'}); |
| - | next.animate({'opacity':'1'}, duration, 'linear', function() { |
| - | current.css('margin', '100%'); |
| - | callback(); |
| + | if (Modernizr.csstransitions) { |
| + | next.on(animation_end, function(e){ |
| + | next.unbind(animation_end); |
| + | current.removeClass("active animate-out"); |
| + | container.children().css({ |
| + | "transform":"", |
| + | "-ms-transform":"", |
| + | "-webkit-transition-duration":"", |
| + | "-moz-transition-duration": "", |
| + | "-o-transition-duration": "", |
| + | "transition-duration":"" |
| + | }); |
| + | callback(); |
| + | }); |
| + | } else { |
| + | setTimeout(function(){ |
| + | current.removeClass("active animate-out"); |
| + | container.children().css({ |
| + | "transform":"", |
| + | "-ms-transform":"", |
| + | "-webkit-transition-duration":"", |
| + | "-moz-transition-duration": "", |
| + | "-o-transition-duration": "", |
| + | "transition-duration":"" |
| + | }); |
| + | callback(); |
| + | }, settings.animation_speed); |
| + | } |
| + | container.children().css({ |
| + | "transform":"", |
| + | "-ms-transform":"", |
| + | "-webkit-transition-duration":"", |
| + | "-moz-transition-duration": "", |
| + | "-o-transition-duration": "", |
| + | "transition-duration":"" |
| }); | |
| + | current.addClass("animate-out"); |
| + | next.addClass("animate-in"); |
| }; | |
| this.prev = function(current, prev, callback) { | |
| - | prev.css({'margin':'0%', 'opacity':'0.01'}); |
| - | prev.animate({'opacity':'1'}, duration, 'linear', function() { |
| - | current.css('margin', '100%'); |
| - | callback(); |
| + | if (Modernizr.csstransitions) { |
| + | prev.on(animation_end, function(e){ |
| + | prev.unbind(animation_end); |
| + | current.removeClass("active animate-out"); |
| + | container.children().css({ |
| + | "transform":"", |
| + | "-ms-transform":"", |
| + | "-webkit-transition-duration":"", |
| + | "-moz-transition-duration": "", |
| + | "-o-transition-duration": "", |
| + | "transition-duration":"" |
| + | }); |
| + | callback(); |
| + | }); |
| + | } else { |
| + | setTimeout(function(){ |
| + | current.removeClass("active animate-out"); |
| + | container.children().css({ |
| + | "transform":"", |
| + | "-ms-transform":"", |
| + | "-webkit-transition-duration":"", |
| + | "-moz-transition-duration": "", |
| + | "-o-transition-duration": "", |
| + | "transition-duration":"" |
| + | }); |
| + | callback(); |
| + | }, settings.animation_speed); |
| + | } |
| + | container.children().css({ |
| + | "transform":"", |
| + | "-ms-transform":"", |
| + | "-webkit-transition-duration":"", |
| + | "-moz-transition-duration": "", |
| + | "-o-transition-duration": "", |
| + | "transition-duration":"" |
| }); | |
| + | current.addClass("animate-out"); |
| + | prev.addClass("animate-in"); |
| }; | |
| }; | |
| @@ | @@ -389,13 +538,14 @@ |
| Foundation.libs.orbit = { | |
| name: 'orbit', | |
| - | version: '5.0.3', |
| + | version: '5.2.3', |
| settings: { | |
| animation: 'slide', | |
| timer_speed: 10000, | |
| pause_on_hover: true, | |
| resume_on_mouseout: false, | |
| + | next_on_click: true, |
| animation_speed: 500, | |
| stack_on_small: false, | |
| navigation_arrows: true, | |
| @@ | @@ -408,7 +558,10 @@ |
| timer_container_class: 'orbit-timer', | |
| timer_paused_class: 'paused', | |
| timer_progress_class: 'orbit-progress', | |
| + | timer_show_progress_bar: true, |
| slides_container_class: 'orbit-slides-container', | |
| + | preloader_class: 'preloader', |
| + | slide_selector: '*', |
| bullets_container_class: 'orbit-bullets', | |
| bullets_active_class: 'active', | |
| slide_number_class: 'orbit-slide-number', | |
| @@ | @@ -424,26 +577,34 @@ |
| after_slide_change: noop | |
| }, | |
| - | init: function (scope, method, options) { |
| + | init : function (scope, method, options) { |
| + | var self = this; |
| + | this.bindings(method, options); |
| + | }, |
| + | |
| + | events : function (instance) { |
| var self = this; | |
| + | var orbit_instance = new Orbit(this.S(instance), this.S(instance).data('orbit-init')); |
| + | this.S(instance).data(self.name + '-instance', orbit_instance); |
| + | }, |
| - | if (typeof method === 'object') { |
| - | $.extend(true, self.settings, method); |
| - | } |
| + | reflow : function () { |
| + | var self = this; |
| - | if ($(scope).is('[data-orbit]')) { |
| - | var $el = $(scope); |
| - | var opts = self.data_options($el); |
| - | new Orbit($el, $.extend({},self.settings, opts)); |
| + | if (self.S(self.scope).is('[data-orbit]')) { |
| + | var $el = self.S(self.scope); |
| + | var instance = $el.data(self.name + '-instance'); |
| + | instance.compute_dimensions(); |
| + | } else { |
| + | self.S('[data-orbit]', self.scope).each(function(idx, el) { |
| + | var $el = self.S(el); |
| + | var opts = self.data_options($el); |
| + | var instance = $el.data(self.name + '-instance'); |
| + | instance.compute_dimensions(); |
| + | }); |
| } | |
| - | |
| - | $('[data-orbit]', scope).each(function(idx, el) { |
| - | var $el = $(el); |
| - | var opts = self.data_options($el); |
| - | new Orbit($el, $.extend({},self.settings, opts)); |
| - | }); |
| } | |
| }; | |
| - | }(jQuery, this, this.document)); |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.reveal.js
+138
-74
| @@ | @@ -4,7 +4,7 @@ |
| Foundation.libs.reveal = { | |
| name : 'reveal', | |
| - | version : '5.0.3', |
| + | version : '5.2.3', |
| locked : false, | |
| @@ | @@ -35,22 +35,22 @@ |
| }, | |
| init : function (scope, method, options) { | |
| - | Foundation.inherit(this, 'delay'); |
| $.extend(true, this.settings, method, options); | |
| this.bindings(method, options); | |
| }, | |
| events : function (scope) { | |
| - | var self = this; |
| + | var self = this, |
| + | S = self.S; |
| - | $('[data-reveal-id]', this.scope) |
| + | S(this.scope) |
| .off('.reveal') | |
| - | .on('click.fndtn.reveal', function (e) { |
| + | .on('click.fndtn.reveal', '[' + this.add_namespace('data-reveal-id') + ']', function (e) { |
| e.preventDefault(); | |
| if (!self.locked) { | |
| - | var element = $(this), |
| - | ajax = element.data('reveal-ajax'); |
| + | var element = S(this), |
| + | ajax = element.data(self.data_attr('reveal-ajax')); |
| self.locked = true; | |
| @@ | @@ -64,29 +64,30 @@ |
| } | |
| }); | |
| - | $(this.scope) |
| - | .off('.reveal'); |
| - | |
| - | $(document) |
| - | .on('click.fndtn.reveal', this.close_targets(), function (e) { |
| + | S(document) |
| + | .on('touchend.fndtn.reveal click.fndtn.reveal', this.close_targets(), function (e) { |
| e.preventDefault(); | |
| if (!self.locked) { | |
| - | var settings = $('[data-reveal].open').data('reveal-init'), |
| - | bg_clicked = $(e.target)[0] === $('.' + settings.bg_class)[0]; |
| - | |
| - | if (bg_clicked && !settings.close_on_background_click) { |
| - | return; |
| + | var settings = S('[' + self.attr_name() + '].open').data(self.attr_name(true) + '-init'), |
| + | bg_clicked = S(e.target)[0] === S('.' + settings.bg_class)[0]; |
| + | |
| + | if (bg_clicked) { |
| + | if (settings.close_on_background_click) { |
| + | e.stopPropagation(); |
| + | } else { |
| + | return; |
| + | } |
| } | |
| self.locked = true; | |
| - | self.close.call(self, bg_clicked ? $('[data-reveal].open') : $(this).closest('[data-reveal]')); |
| + | self.close.call(self, bg_clicked ? S('[' + self.attr_name() + '].open') : S(this).closest('[' + self.attr_name() + ']')); |
| } | |
| }); | |
| - | if($('[data-reveal]', this.scope).length > 0) { |
| - | $(this.scope) |
| + | if(S('[' + self.attr_name() + ']', this.scope).length > 0) { |
| + | S(this.scope) |
| // .off('.reveal') | |
| .on('open.fndtn.reveal', this.settings.open) | |
| .on('opened.fndtn.reveal', this.settings.opened) | |
| @@ | @@ -95,55 +96,76 @@ |
| .on('closed.fndtn.reveal', this.settings.closed) | |
| .on('closed.fndtn.reveal', this.close_video); | |
| } else { | |
| - | $(this.scope) |
| + | S(this.scope) |
| // .off('.reveal') | |
| - | .on('open.fndtn.reveal', '[data-reveal]', this.settings.open) |
| - | .on('opened.fndtn.reveal', '[data-reveal]', this.settings.opened) |
| - | .on('opened.fndtn.reveal', '[data-reveal]', this.open_video) |
| - | .on('close.fndtn.reveal', '[data-reveal]', this.settings.close) |
| - | .on('closed.fndtn.reveal', '[data-reveal]', this.settings.closed) |
| - | .on('closed.fndtn.reveal', '[data-reveal]', this.close_video); |
| + | .on('open.fndtn.reveal', '[' + self.attr_name() + ']', this.settings.open) |
| + | .on('opened.fndtn.reveal', '[' + self.attr_name() + ']', this.settings.opened) |
| + | .on('opened.fndtn.reveal', '[' + self.attr_name() + ']', this.open_video) |
| + | .on('close.fndtn.reveal', '[' + self.attr_name() + ']', this.settings.close) |
| + | .on('closed.fndtn.reveal', '[' + self.attr_name() + ']', this.settings.closed) |
| + | .on('closed.fndtn.reveal', '[' + self.attr_name() + ']', this.close_video); |
| } | |
| - | $('body').on('keyup.fndtn.reveal', function ( event ) { |
| - | var open_modal = $('[data-reveal].open'), |
| - | settings = open_modal.data('reveal-init'); |
| - | if ( settings && event.which === 27 && settings.close_on_esc) { // 27 is the keycode for the Escape key |
| - | open_modal.foundation('reveal', 'close'); |
| + | return true; |
| + | }, |
| + | |
| + | // PATCH #3: turning on key up capture only when a reveal window is open |
| + | key_up_on : function (scope) { |
| + | var self = this; |
| + | |
| + | // PATCH #1: fixing multiple keyup event trigger from single key press |
| + | self.S('body').off('keyup.fndtn.reveal').on('keyup.fndtn.reveal', function ( event ) { |
| + | var open_modal = self.S('[' + self.attr_name() + '].open'), |
| + | settings = open_modal.data(self.attr_name(true) + '-init'); |
| + | // PATCH #2: making sure that the close event can be called only while unlocked, |
| + | // so that multiple keyup.fndtn.reveal events don't prevent clean closing of the reveal window. |
| + | if ( settings && event.which === 27 && settings.close_on_esc && !self.locked) { // 27 is the keycode for the Escape key |
| + | self.close.call(self, open_modal); |
| } | |
| }); | |
| return true; | |
| }, | |
| + | // PATCH #3: turning on key up capture only when a reveal window is open |
| + | key_up_off : function (scope) { |
| + | this.S('body').off('keyup.fndtn.reveal'); |
| + | return true; |
| + | }, |
| + | |
| open : function (target, ajax_settings) { | |
| - | var self = this; |
| + | var self = this, |
| + | modal; |
| + | |
| if (target) { | |
| if (typeof target.selector !== 'undefined') { | |
| - | var modal = $('#' + target.data('reveal-id')); |
| + | // Find the named node; only use the first one found, since the rest of the code assumes there's only one node |
| + | modal = self.S('#' + target.data(self.data_attr('reveal-id'))).first(); |
| } else { | |
| - | var modal = $(this.scope); |
| + | modal = self.S(this.scope); |
| ajax_settings = target; | |
| } | |
| } else { | |
| - | var modal = $(this.scope); |
| + | modal = self.S(this.scope); |
| } | |
| - | var settings = modal.data('reveal-init'); |
| + | var settings = modal.data(self.attr_name(true) + '-init'); |
| + | settings = settings || this.settings; |
| if (!modal.hasClass('open')) { | |
| - | var open_modal = $('[data-reveal].open'); |
| + | var open_modal = self.S('[' + self.attr_name() + '].open'); |
| if (typeof modal.data('css-top') === 'undefined') { | |
| modal.data('css-top', parseInt(modal.css('top'), 10)) | |
| .data('offset', this.cache_offset(modal)); | |
| } | |
| + | this.key_up_on(modal); // PATCH #3: turning on key up capture only when a reveal window is open |
| modal.trigger('open'); | |
| if (open_modal.length < 1) { | |
| - | this.toggle_bg(modal); |
| + | this.toggle_bg(modal, true); |
| } | |
| if (typeof ajax_settings === 'string') { | |
| @@ | @@ -154,8 +176,7 @@ |
| if (typeof ajax_settings === 'undefined' || !ajax_settings.url) { | |
| if (open_modal.length > 0) { | |
| - | var open_modal_settings = open_modal.data('reveal-init'); |
| - | this.hide(open_modal, open_modal_settings.css.close); |
| + | this.hide(open_modal, settings.css.close); |
| } | |
| this.show(modal, settings.css.open); | |
| @@ | @@ -169,11 +190,11 @@ |
| } | |
| modal.html(data); | |
| - | $(modal).foundation('section', 'reflow'); |
| + | self.S(modal).foundation('section', 'reflow'); |
| + | self.S(modal).children().foundation(); |
| if (open_modal.length > 0) { | |
| - | var open_modal_settings = open_modal.data('reveal-init'); |
| - | self.hide(open_modal, open_modal_settings.css.close); |
| + | self.hide(open_modal, settings.css.close); |
| } | |
| self.show(modal, settings.css.open); | |
| } | |
| @@ | @@ -185,14 +206,15 @@ |
| }, | |
| close : function (modal) { | |
| - | var modal = modal && modal.length ? modal : $(this.scope), |
| - | open_modals = $('[data-reveal].open'), |
| - | settings = modal.data('reveal-init'); |
| + | var modal = modal && modal.length ? modal : this.S(this.scope), |
| + | open_modals = this.S('[' + this.attr_name() + '].open'), |
| + | settings = modal.data(this.attr_name(true) + '-init') || this.settings; |
| if (open_modals.length > 0) { | |
| this.locked = true; | |
| + | this.key_up_off(modal); // PATCH #3: turning on key up capture only when a reveal window is open |
| modal.trigger('close'); | |
| - | this.toggle_bg(modal); |
| + | this.toggle_bg(modal, false); |
| this.hide(open_modals, settings.css.close, settings); | |
| } | |
| }, | |
| @@ | @@ -207,28 +229,32 @@ |
| return base; | |
| }, | |
| - | toggle_bg : function (modal) { |
| - | var settings = modal.data('reveal-init'); |
| - | |
| - | if ($('.' + this.settings.bg_class).length === 0) { |
| + | toggle_bg : function (modal, state) { |
| + | if (this.S('.' + this.settings.bg_class).length === 0) { |
| this.settings.bg = $('<div />', {'class': this.settings.bg_class}) | |
| - | .appendTo('body'); |
| + | .appendTo('body').hide(); |
| } | |
| - | if (this.settings.bg.filter(':visible').length > 0) { |
| - | this.hide(this.settings.bg); |
| - | } else { |
| - | this.show(this.settings.bg); |
| + | var visible = this.settings.bg.filter(':visible').length > 0; |
| + | if ( state != visible ) { |
| + | if ( state == undefined ? visible : !state ) { |
| + | this.hide(this.settings.bg); |
| + | } else { |
| + | this.show(this.settings.bg); |
| + | } |
| } | |
| }, | |
| show : function (el, css) { | |
| // is modal | |
| if (css) { | |
| - | var settings = el.data('reveal-init'); |
| + | var settings = el.data(this.attr_name(true) + '-init'); |
| + | settings = settings || this.settings; |
| + | |
| if (el.parent('body').length === 0) { | |
| var placeholder = el.wrap('<div style="display: none;" />').parent(), | |
| - | rootElement = this.settings.rootElement || 'body';; |
| + | rootElement = this.settings.rootElement || 'body'; |
| + | |
| el.on('closed.fndtn.reveal.wrapped', function() { | |
| el.detach().appendTo(placeholder); | |
| el.unwrap().unbind('closed.fndtn.reveal.wrapped'); | |
| @@ | @@ -237,14 +263,18 @@ |
| el.detach().appendTo(rootElement); | |
| } | |
| - | if (/pop/i.test(settings.animation)) { |
| + | var animData = getAnimationData(settings.animation); |
| + | if (!animData.animate) { |
| + | this.locked = false; |
| + | } |
| + | if (animData.pop) { |
| css.top = $(window).scrollTop() - el.data('offset') + 'px'; | |
| var end_css = { | |
| top: $(window).scrollTop() + el.data('css-top') + 'px', | |
| opacity: 1 | |
| }; | |
| - | return this.delay(function () { |
| + | return setTimeout(function () { |
| return el | |
| .css(css) | |
| .animate(end_css, settings.animation_speed, 'linear', function () { | |
| @@ | @@ -255,10 +285,11 @@ |
| }.bind(this), settings.animation_speed / 2); | |
| } | |
| - | if (/fade/i.test(settings.animation)) { |
| + | if (animData.fade) { |
| + | css.top = $(window).scrollTop() + el.data('css-top') + 'px'; |
| var end_css = {opacity: 1}; | |
| - | return this.delay(function () { |
| + | return setTimeout(function () { |
| return el | |
| .css(css) | |
| .animate(end_css, settings.animation_speed, 'linear', function () { | |
| @@ | @@ -275,24 +306,32 @@ |
| var settings = this.settings; | |
| // should we animate the background? | |
| - | if (/fade/i.test(settings.animation)) { |
| + | if (getAnimationData(settings.animation).fade) { |
| return el.fadeIn(settings.animation_speed / 2); | |
| } | |
| + | this.locked = false; |
| + | |
| return el.show(); | |
| }, | |
| hide : function (el, css) { | |
| // is modal | |
| if (css) { | |
| - | var settings = el.data('reveal-init'); |
| - | if (/pop/i.test(settings.animation)) { |
| + | var settings = el.data(this.attr_name(true) + '-init'); |
| + | settings = settings || this.settings; |
| + | |
| + | var animData = getAnimationData(settings.animation); |
| + | if (!animData.animate) { |
| + | this.locked = false; |
| + | } |
| + | if (animData.pop) { |
| var end_css = { | |
| top: - $(window).scrollTop() - el.data('offset') + 'px', | |
| opacity: 0 | |
| }; | |
| - | return this.delay(function () { |
| + | return setTimeout(function () { |
| return el | |
| .animate(end_css, settings.animation_speed, 'linear', function () { | |
| this.locked = false; | |
| @@ | @@ -302,10 +341,10 @@ |
| }.bind(this), settings.animation_speed / 2); | |
| } | |
| - | if (/fade/i.test(settings.animation)) { |
| + | if (animData.fade) { |
| var end_css = {opacity: 0}; | |
| - | return this.delay(function () { |
| + | return setTimeout(function () { |
| return el | |
| .animate(end_css, settings.animation_speed, 'linear', function () { | |
| this.locked = false; | |
| @@ | @@ -321,7 +360,7 @@ |
| var settings = this.settings; | |
| // should we animate the background? | |
| - | if (/fade/i.test(settings.animation)) { |
| + | if (getAnimationData(settings.animation).fade) { |
| return el.fadeOut(settings.animation_speed / 2); | |
| } | |
| @@ | @@ -329,8 +368,8 @@ |
| }, | |
| close_video : function (e) { | |
| - | var video = $(this).find('.flex-video'), |
| - | iframe = video.find('iframe'); |
| + | var video = $('.flex-video', e.target), |
| + | iframe = $('iframe', video); |
| if (iframe.length > 0) { | |
| iframe.attr('data-src', iframe[0].src); | |
| @@ | @@ -340,7 +379,7 @@ |
| }, | |
| open_video : function (e) { | |
| - | var video = $(this).find('.flex-video'), |
| + | var video = $('.flex-video', e.target), |
| iframe = video.find('iframe'); | |
| if (iframe.length > 0) { | |
| @@ | @@ -356,6 +395,14 @@ |
| } | |
| }, | |
| + | data_attr: function (str) { |
| + | if (this.namespace.length > 0) { |
| + | return this.namespace + '-' + str; |
| + | } |
| + | |
| + | return str; |
| + | }, |
| + | |
| cache_offset : function (modal) { | |
| var offset = modal.show().height() + parseInt(modal.css('top'), 10); | |
| @@ | @@ -370,4 +417,21 @@ |
| reflow : function () {} | |
| }; | |
| - | }(jQuery, this, this.document)); |
| + | |
| + | /* |
| + | * getAnimationData('popAndFade') // {animate: true, pop: true, fade: true} |
| + | * getAnimationData('fade') // {animate: true, pop: false, fade: true} |
| + | * getAnimationData('pop') // {animate: true, pop: true, fade: false} |
| + | * getAnimationData('foo') // {animate: false, pop: false, fade: false} |
| + | * getAnimationData(null) // {animate: false, pop: false, fade: false} |
| + | */ |
| + | function getAnimationData(str) { |
| + | var fade = /fade/i.test(str); |
| + | var pop = /pop/i.test(str); |
| + | return { |
| + | animate: fade || pop, |
| + | pop: pop, |
| + | fade: fade |
| + | }; |
| + | } |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.slider.js
+199
-0
| @@ | @@ -0,0 +1,199 @@ |
| + | ;(function ($, window, document, undefined) { |
| + | 'use strict'; |
| + | |
| + | Foundation.libs.slider = { |
| + | name : 'slider', |
| + | |
| + | version : '5.2.3', |
| + | |
| + | settings: { |
| + | start: 0, |
| + | end: 100, |
| + | step: 1, |
| + | initial: null, |
| + | display_selector: '', |
| + | on_change: function(){} |
| + | }, |
| + | |
| + | cache : {}, |
| + | |
| + | init : function (scope, method, options) { |
| + | Foundation.inherit(this,'throttle'); |
| + | this.bindings(method, options); |
| + | this.reflow(); |
| + | }, |
| + | |
| + | events : function() { |
| + | var self = this; |
| + | |
| + | $(this.scope) |
| + | .off('.slider') |
| + | .on('mousedown.fndtn.slider touchstart.fndtn.slider pointerdown.fndtn.slider', |
| + | '[' + self.attr_name() + '] .range-slider-handle', function(e) { |
| + | if (!self.cache.active) { |
| + | e.preventDefault(); |
| + | self.set_active_slider($(e.target)); |
| + | } |
| + | }) |
| + | .on('mousemove.fndtn.slider touchmove.fndtn.slider pointermove.fndtn.slider', function(e) { |
| + | if (!!self.cache.active) { |
| + | e.preventDefault(); |
| + | self.calculate_position(self.cache.active, e.pageX || e.originalEvent.clientX || e.originalEvent.touches[0].clientX || e.currentPoint.x); |
| + | } |
| + | }) |
| + | .on('mouseup.fndtn.slider touchend.fndtn.slider pointerup.fndtn.slider', function(e) { |
| + | self.remove_active_slider(); |
| + | }) |
| + | .on('change.fndtn.slider', function(e) { |
| + | self.settings.on_change(); |
| + | }); |
| + | |
| + | self.S(window) |
| + | .on('resize.fndtn.slider', self.throttle(function(e) { |
| + | self.reflow(); |
| + | }, 300)); |
| + | }, |
| + | |
| + | set_active_slider : function($handle) { |
| + | this.cache.active = $handle; |
| + | }, |
| + | |
| + | remove_active_slider : function() { |
| + | this.cache.active = null; |
| + | }, |
| + | |
| + | calculate_position : function($handle, cursor_x) { |
| + | var self = this, |
| + | settings = $.extend({}, self.settings, self.data_options($handle.parent())), |
| + | handle_w = $.data($handle[0], 'handle_w'), |
| + | handle_o = $.data($handle[0], 'handle_o'), |
| + | bar_w = $.data($handle[0], 'bar_w'), |
| + | bar_o = $.data($handle[0], 'bar_o'); |
| + | |
| + | requestAnimationFrame(function(){ |
| + | var pct; |
| + | |
| + | if (Foundation.rtl) { |
| + | pct = self.limit_to(((bar_o+bar_w-cursor_x)/bar_w),0,1); |
| + | } else { |
| + | pct = self.limit_to(((cursor_x-bar_o)/bar_w),0,1); |
| + | } |
| + | |
| + | var norm = self.normalized_value(pct, settings.start, settings.end, settings.step); |
| + | |
| + | self.set_ui($handle, norm); |
| + | }); |
| + | }, |
| + | |
| + | set_ui : function($handle, value) { |
| + | var settings = $.extend({}, this.settings, this.data_options($handle.parent())), |
| + | handle_w = $.data($handle[0], 'handle_w'), |
| + | bar_w = $.data($handle[0], 'bar_w'), |
| + | norm_pct = this.normalized_percentage(value, settings.start, settings.end), |
| + | handle_offset = norm_pct*(bar_w-handle_w)-1, |
| + | progress_bar_width = norm_pct*100; |
| + | |
| + | if (Foundation.rtl) { |
| + | handle_offset = -handle_offset; |
| + | } |
| + | |
| + | this.set_translate($handle, handle_offset); |
| + | $handle.siblings('.range-slider-active-segment').css('width', progress_bar_width+'%'); |
| + | |
| + | $handle.parent().attr(this.attr_name(), value); |
| + | $handle.parent().trigger('change'); |
| + | |
| + | $handle.parent().children('input[type=hidden]').val(value); |
| + | |
| + | if (settings.input_id != '') { |
| + | $(settings.display_selector).each(function(){ |
| + | if (this.hasOwnProperty('value')) { |
| + | $(this).val(value); |
| + | } else { |
| + | $(this).text(value); |
| + | } |
| + | }); |
| + | } |
| + | |
| + | }, |
| + | |
| + | normalized_percentage : function(val, start, end) { |
| + | return (val - start)/(end - start); |
| + | }, |
| + | |
| + | normalized_value : function(val, start, end, step) { |
| + | var range = end - start, |
| + | point = val*range, |
| + | mod = (point-(point%step)) / step, |
| + | rem = point % step, |
| + | round = ( rem >= step*0.5 ? step : 0); |
| + | return (mod*step + round) + start; |
| + | }, |
| + | |
| + | set_translate : function(ele, offset, vertical) { |
| + | if (vertical) { |
| + | $(ele) |
| + | .css('-webkit-transform', 'translateY('+offset+'px)') |
| + | .css('-moz-transform', 'translateY('+offset+'px)') |
| + | .css('-ms-transform', 'translateY('+offset+'px)') |
| + | .css('-o-transform', 'translateY('+offset+'px)') |
| + | .css('transform', 'translateY('+offset+'px)'); |
| + | } else { |
| + | $(ele) |
| + | .css('-webkit-transform', 'translateX('+offset+'px)') |
| + | .css('-moz-transform', 'translateX('+offset+'px)') |
| + | .css('-ms-transform', 'translateX('+offset+'px)') |
| + | .css('-o-transform', 'translateX('+offset+'px)') |
| + | .css('transform', 'translateX('+offset+'px)'); |
| + | } |
| + | }, |
| + | |
| + | limit_to : function(val, min, max) { |
| + | return Math.min(Math.max(val, min), max); |
| + | }, |
| + | |
| + | initialize_settings : function(handle) { |
| + | $.data(handle, 'bar', $(handle).parent()); |
| + | $.data(handle, 'bar_o', $(handle).parent().offset().left); |
| + | $.data(handle, 'bar_w', $(handle).parent().outerWidth()); |
| + | $.data(handle, 'handle_o', $(handle).offset().left); |
| + | $.data(handle, 'handle_w', $(handle).outerWidth()); |
| + | $.data(handle, 'settings', $.extend({}, this.settings, this.data_options($(handle).parent()))); |
| + | }, |
| + | |
| + | set_initial_position : function($ele) { |
| + | var settings = $.data($ele.children('.range-slider-handle')[0], 'settings'), |
| + | initial = (!!settings.initial ? settings.initial : Math.floor((settings.end-settings.start)*0.5/settings.step)*settings.step+settings.start), |
| + | $handle = $ele.children('.range-slider-handle'); |
| + | this.set_ui($handle, initial); |
| + | }, |
| + | |
| + | set_value : function(value) { |
| + | var self = this; |
| + | $('[' + self.attr_name() + ']', this.scope).each(function(){ |
| + | $(this).attr(self.attr_name(), value); |
| + | }); |
| + | if (!!$(this.scope).attr(self.attr_name())) { |
| + | $(this.scope).attr(self.attr_name(), value); |
| + | } |
| + | self.reflow(); |
| + | }, |
| + | |
| + | reflow : function() { |
| + | var self = this; |
| + | self.S('[' + this.attr_name() + ']').each(function() { |
| + | var handle = $(this).children('.range-slider-handle')[0], |
| + | val = $(this).attr(self.attr_name()); |
| + | self.initialize_settings(handle); |
| + | |
| + | if (val) { |
| + | self.set_ui($(handle), parseFloat(val)); |
| + | } else { |
| + | self.set_initial_position($(this)); |
| + | } |
| + | }); |
| + | } |
| + | |
| + | }; |
| + | |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.tab.js
+142
-21
| @@ | @@ -1,46 +1,167 @@ |
| - | /*jslint unparam: true, browser: true, indent: 2 */ |
| ;(function ($, window, document, undefined) { | |
| 'use strict'; | |
| Foundation.libs.tab = { | |
| name : 'tab', | |
| - | version : '5.0.3', |
| + | version : '5.2.3', |
| settings : { | |
| active_class: 'active', | |
| - | callback : function () {} |
| + | callback : function () {}, |
| + | deep_linking: false, |
| + | scroll_to_content: true, |
| + | is_hover: false |
| }, | |
| + | default_tab_hashes: [], |
| + | |
| init : function (scope, method, options) { | |
| + | var self = this, |
| + | S = this.S; |
| + | |
| this.bindings(method, options); | |
| + | this.handle_location_hash_change(); |
| + | |
| + | // Store the default active tabs which will be referenced when the |
| + | // location hash is absent, as in the case of navigating the tabs and |
| + | // returning to the first viewing via the browser Back button. |
| + | S('[' + this.attr_name() + '] > .active > a', this.scope).each(function () { |
| + | self.default_tab_hashes.push(this.hash); |
| + | }); |
| }, | |
| events : function () { | |
| - | $(this.scope).off('.tab').on('click.fndtn.tab', '[data-tab] > dd > a', function (e) { |
| + | var self = this, |
| + | S = this.S; |
| + | |
| + | S(this.scope) |
| + | .off('.tab') |
| + | // Click event: tab title |
| + | .on('click.fndtn.tab', '[' + this.attr_name() + '] > * > a', function (e) { |
| + | var settings = S(this).closest('[' + self.attr_name() +']').data(self.attr_name(true) + '-init'); |
| + | if (!settings.is_hover || Modernizr.touch) { |
| + | e.preventDefault(); |
| + | e.stopPropagation(); |
| + | self.toggle_active_tab(S(this).parent()); |
| + | } |
| + | }) |
| + | // Hover event: tab title |
| + | .on('mouseenter.fndtn.tab', '[' + this.attr_name() + '] > * > a', function (e) { |
| + | var settings = S(this).closest('[' + self.attr_name() +']').data(self.attr_name(true) + '-init'); |
| + | if (settings.is_hover) self.toggle_active_tab(S(this).parent()); |
| + | }); |
| + | |
| + | // Location hash change event |
| + | S(window).on('hashchange.fndtn.tab', function (e) { |
| e.preventDefault(); | |
| + | self.handle_location_hash_change(); |
| + | }); |
| + | }, |
| + | |
| + | handle_location_hash_change : function () { |
| + | var self = this, |
| + | S = this.S; |
| - | var tab = $(this).parent(), |
| - | tabs = tab.closest('[data-tab]'), |
| - | target = $('#' + this.href.split('#')[1]), |
| - | siblings = tab.siblings(), |
| - | settings = tabs.data('tab-init'); |
| - | |
| - | // allow usage of data-tab-content attribute instead of href |
| - | if ($(this).data('tab-content')) { |
| - | target = $('#' + $(this).data('tab-content').split('#')[1]); |
| + | S('[' + this.attr_name() + ']', this.scope).each(function () { |
| + | var settings = S(this).data(self.attr_name(true) + '-init'); |
| + | if (settings.deep_linking) { |
| + | // Match the location hash to a label |
| + | var hash = self.scope.location.hash; |
| + | if (hash != '') { |
| + | // Check whether the location hash references a tab content div or |
| + | // another element on the page (inside or outside the tab content div) |
| + | var hash_element = S(hash); |
| + | if (hash_element.hasClass('content') && hash_element.parent().hasClass('tab-content')) { |
| + | // Tab content div |
| + | self.toggle_active_tab($('[' + self.attr_name() + '] > * > a[href=' + hash + ']').parent()); |
| + | } else { |
| + | // Not the tab content div. If inside the tab content, find the |
| + | // containing tab and toggle it as active. |
| + | var hash_tab_container_id = hash_element.closest('.content').attr('id'); |
| + | if (hash_tab_container_id != undefined) { |
| + | self.toggle_active_tab($('[' + self.attr_name() + '] > * > a[href=#' + hash_tab_container_id + ']').parent(), hash); |
| + | } |
| + | } |
| + | } else { |
| + | // Reference the default tab hashes which were initialized in the init function |
| + | for (var ind in self.default_tab_hashes) { |
| + | self.toggle_active_tab($('[' + self.attr_name() + '] > * > a[href=' + self.default_tab_hashes[ind] + ']').parent()); |
| + | } |
| + | } |
| } | |
| - | |
| - | tab.addClass(settings.active_class).trigger('opened'); |
| - | siblings.removeClass(settings.active_class); |
| - | target.siblings().removeClass(settings.active_class).end().addClass(settings.active_class); |
| - | settings.callback(tab); |
| - | tabs.trigger('toggled', [tab]); |
| - | }); |
| + | }); |
| + | }, |
| + | |
| + | toggle_active_tab: function (tab, location_hash) { |
| + | var S = this.S, |
| + | tabs = tab.closest('[' + this.attr_name() + ']'), |
| + | anchor = tab.children('a').first(), |
| + | target_hash = '#' + anchor.attr('href').split('#')[1], |
| + | target = S(target_hash), |
| + | siblings = tab.siblings(), |
| + | settings = tabs.data(this.attr_name(true) + '-init'); |
| + | |
| + | // allow usage of data-tab-content attribute instead of href |
| + | if (S(this).data(this.data_attr('tab-content'))) { |
| + | target_hash = '#' + S(this).data(this.data_attr('tab-content')).split('#')[1]; |
| + | target = S(target_hash); |
| + | } |
| + | |
| + | if (settings.deep_linking) { |
| + | // Get the scroll Y position prior to moving to the hash ID |
| + | var cur_ypos = $('body,html').scrollTop(); |
| + | |
| + | // Update the location hash to preserve browser history |
| + | // Note that the hash does not need to correspond to the |
| + | // tab content ID anchor; it can be an ID inside or outside of the tab |
| + | // content div. |
| + | if (location_hash != undefined) { |
| + | window.location.hash = location_hash; |
| + | } else { |
| + | window.location.hash = target_hash; |
| + | } |
| + | |
| + | if (settings.scroll_to_content) { |
| + | // If the user is requesting the content of a tab, then scroll to the |
| + | // top of the title area; otherwise, scroll to the element within |
| + | // the content area as defined by the hash value. |
| + | if (location_hash == undefined || location_hash == target_hash) { |
| + | tab.parent()[0].scrollIntoView(); |
| + | } else { |
| + | S(target_hash)[0].scrollIntoView(); |
| + | } |
| + | } else { |
| + | // Adjust the scrollbar to the Y position prior to setting the hash |
| + | // Only do this for the tab content anchor, otherwise there will be |
| + | // conflicts with in-tab anchor links nested in the tab-content div |
| + | if (location_hash == undefined || location_hash == target_hash) { |
| + | $('body,html').scrollTop(cur_ypos); |
| + | } |
| + | } |
| + | } |
| + | |
| + | // WARNING: The activation and deactivation of the tab content must |
| + | // occur after the deep linking in order to properly refresh the browser |
| + | // window (notably in Chrome). |
| + | tab.addClass(settings.active_class).triggerHandler('opened'); |
| + | siblings.removeClass(settings.active_class); |
| + | target.siblings().removeClass(settings.active_class).end().addClass(settings.active_class); |
| + | settings.callback(tab); |
| + | target.triggerHandler('toggled', [tab]); |
| + | tabs.triggerHandler('toggled', [target]); |
| + | }, |
| + | |
| + | data_attr: function (str) { |
| + | if (this.namespace.length > 0) { |
| + | return this.namespace + '-' + str; |
| + | } |
| + | |
| + | return str; |
| }, | |
| off : function () {}, | |
| reflow : function () {} | |
| }; | |
| - | }(jQuery, this, this.document)); |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.tooltip.js
+156
-61
| @@ | @@ -4,7 +4,7 @@ |
| Foundation.libs.tooltip = { | |
| name : 'tooltip', | |
| - | version : '5.0.0', |
| + | version : '5.2.3', |
| settings : { | |
| additional_inheritable_classes : [], | |
| @@ | @@ -12,9 +12,11 @@ |
| append_to: 'body', | |
| touch_close_text: 'Tap To Close', | |
| disable_for_touch: false, | |
| + | hover_delay: 200, |
| + | show_on : 'all', |
| tip_template : function (selector, content) { | |
| - | return '<span data-selector="' + selector + '" class="' |
| - | + Foundation.libs.tooltip.settings.tooltip_class.substring(1) |
| + | return '<span data-selector="' + selector + '" class="' |
| + | + Foundation.libs.tooltip.settings.tooltip_class.substring(1) |
| + '">' + content + '<span class="nub"></span></span>'; | |
| } | |
| }, | |
| @@ | @@ -22,61 +24,114 @@ |
| cache : {}, | |
| init : function (scope, method, options) { | |
| + | Foundation.inherit(this, 'random_str'); |
| this.bindings(method, options); | |
| }, | |
| - | events : function () { |
| - | var self = this; |
| + | should_show: function (target, tip) { |
| + | var settings = $.extend({}, this.settings, this.data_options(target)); |
| + | |
| + | if (settings.show_on === 'all') { |
| + | return true; |
| + | } else if (this.small() && settings.show_on === 'small') { |
| + | return true; |
| + | } else if (this.medium() && settings.show_on === 'medium') { |
| + | return true; |
| + | } else if (this.large() && settings.show_on === 'large') { |
| + | return true; |
| + | } |
| + | return false; |
| + | }, |
| - | if (Modernizr.touch) { |
| - | $(this.scope) |
| - | .off('.tooltip') |
| - | .on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip', |
| - | '[data-tooltip]', function (e) { |
| - | var settings = $.extend({}, self.settings, self.data_options($(this))); |
| - | if (!settings.disable_for_touch) { |
| + | medium : function () { |
| + | return matchMedia(Foundation.media_queries['medium']).matches; |
| + | }, |
| + | |
| + | large : function () { |
| + | return matchMedia(Foundation.media_queries['large']).matches; |
| + | }, |
| + | |
| + | events : function (instance) { |
| + | var self = this, |
| + | S = self.S; |
| + | |
| + | self.create(this.S(instance)); |
| + | |
| + | $(this.scope) |
| + | .off('.tooltip') |
| + | .on('mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip', |
| + | '[' + this.attr_name() + ']', function (e) { |
| + | var $this = S(this), |
| + | settings = $.extend({}, self.settings, self.data_options($this)), |
| + | is_touch = false; |
| + | |
| + | if (Modernizr.touch && /touchstart|MSPointerDown/i.test(e.type) && S(e.target).is('a')) { |
| + | return false; |
| + | } |
| + | |
| + | if (/mouse/i.test(e.type) && self.ie_touch(e)) return false; |
| + | |
| + | if ($this.hasClass('open')) { |
| + | if (Modernizr.touch && /touchstart|MSPointerDown/i.test(e.type)) e.preventDefault(); |
| + | self.hide($this); |
| + | } else { |
| + | if (settings.disable_for_touch && Modernizr.touch && /touchstart|MSPointerDown/i.test(e.type)) { |
| + | return; |
| + | } else if(!settings.disable_for_touch && Modernizr.touch && /touchstart|MSPointerDown/i.test(e.type)) { |
| e.preventDefault(); | |
| - | $(settings.tooltip_class).hide(); |
| - | self.showOrCreateTip($(this)); |
| + | S(settings.tooltip_class + '.open').hide(); |
| + | is_touch = true; |
| } | |
| - | }) |
| - | .on('click.fndtn.tooltip touchstart.fndtn.tooltip touchend.fndtn.tooltip', |
| - | this.settings.tooltip_class, function (e) { |
| - | e.preventDefault(); |
| - | $(this).fadeOut(150); |
| - | }); |
| - | } else { |
| - | $(this.scope) |
| - | .off('.tooltip') |
| - | .on('mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip', |
| - | '[data-tooltip]', function (e) { |
| - | var $this = $(this); |
| if (/enter|over/i.test(e.type)) { | |
| - | self.showOrCreateTip($this); |
| + | this.timer = setTimeout(function () { |
| + | var tip = self.showTip($this); |
| + | }.bind(this), self.settings.hover_delay); |
| } else if (e.type === 'mouseout' || e.type === 'mouseleave') { | |
| + | clearTimeout(this.timer); |
| self.hide($this); | |
| + | } else { |
| + | self.showTip($this); |
| } | |
| - | }); |
| - | } |
| + | } |
| + | }) |
| + | .on('mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip', '[' + this.attr_name() + '].open', function (e) { |
| + | if (/mouse/i.test(e.type) && self.ie_touch(e)) return false; |
| + | |
| + | if($(this).data('tooltip-open-event-type') == 'touch' && e.type == 'mouseleave') { |
| + | return; |
| + | } |
| + | else if($(this).data('tooltip-open-event-type') == 'mouse' && /MSPointerDown|touchstart/i.test(e.type)) { |
| + | self.convert_to_touch($(this)); |
| + | } else { |
| + | self.hide($(this)); |
| + | } |
| + | }) |
| + | .on('DOMNodeRemoved DOMAttrModified', '[' + this.attr_name() + ']:not(a)', function (e) { |
| + | self.hide(S(this)); |
| + | }); |
| }, | |
| - | showOrCreateTip : function ($target) { |
| - | var $tip = this.getTip($target); |
| + | ie_touch : function (e) { |
| + | // How do I distinguish between IE11 and Windows Phone 8????? |
| + | return false; |
| + | }, |
| - | if ($tip && $tip.length > 0) { |
| + | showTip : function ($target) { |
| + | var $tip = this.getTip($target); |
| + | if (this.should_show($target, $tip)){ |
| return this.show($target); | |
| } | |
| - | |
| - | return this.create($target); |
| + | return; |
| }, | |
| getTip : function ($target) { | |
| var selector = this.selector($target), | |
| + | settings = $.extend({}, this.settings, this.data_options($target)), |
| tip = null; | |
| if (selector) { | |
| - | tip = $('span[data-selector="' + selector + '"]' + this.settings.tooltip_class); |
| + | tip = this.S('span[data-selector="' + selector + '"]' + settings.tooltip_class); |
| } | |
| return (typeof tip === 'object') ? tip : false; | |
| @@ | @@ -84,10 +139,10 @@ |
| selector : function ($target) { | |
| var id = $target.attr('id'), | |
| - | dataSelector = $target.attr('data-tooltip') || $target.attr('data-selector'); |
| + | dataSelector = $target.attr(this.attr_name()) || $target.attr('data-selector'); |
| if ((id && id.length < 1 || !id) && typeof dataSelector != 'string') { | |
| - | dataSelector = 'tooltip' + Math.random().toString(36).substring(7); |
| + | dataSelector = this.random_str(6); |
| $target.attr('data-selector', dataSelector); | |
| } | |
| @@ | @@ -95,15 +150,27 @@ |
| }, | |
| create : function ($target) { | |
| - | var $tip = $(this.settings.tip_template(this.selector($target), $('<div></div>').html($target.attr('title')).html())), |
| + | var self = this, |
| + | settings = $.extend({}, this.settings, this.data_options($target)), |
| + | tip_template = this.settings.tip_template; |
| + | |
| + | if (typeof settings.tip_template === 'string' && window.hasOwnProperty(settings.tip_template)) { |
| + | tip_template = window[settings.tip_template]; |
| + | } |
| + | |
| + | var $tip = $(tip_template(this.selector($target), $('<div></div>').html($target.attr('title')).html())), |
| classes = this.inheritable_classes($target); | |
| - | $tip.addClass(classes).appendTo(this.settings.append_to); |
| + | $tip.addClass(classes).appendTo(settings.append_to); |
| + | |
| if (Modernizr.touch) { | |
| - | $tip.append('<span class="tap-to-close">'+this.settings.touch_close_text+'</span>'); |
| + | $tip.append('<span class="tap-to-close">'+settings.touch_close_text+'</span>'); |
| + | $tip.on('touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip', function(e) { |
| + | self.hide($target); |
| + | }); |
| } | |
| + | |
| $target.removeAttr('title').attr('title',''); | |
| - | this.show($target); |
| }, | |
| reposition : function (target, tip, classes) { | |
| @@ | @@ -115,15 +182,19 @@ |
| nub = tip.children('.nub'); | |
| nubHeight = nub.outerHeight(); | |
| nubWidth = nub.outerHeight(); | |
| - | |
| - | tip.css({'width' : (width) ? width : 'auto'}); |
| + | |
| + | if (this.small()) { |
| + | tip.css({'width' : '100%' }); |
| + | } else { |
| + | tip.css({'width' : (width) ? width : 'auto'}); |
| + | } |
| objPos = function (obj, top, right, bottom, left, width) { | |
| return obj.css({ | |
| 'top' : (top) ? top : 'auto', | |
| 'bottom' : (bottom) ? bottom : 'auto', | |
| 'left' : (left) ? left : 'auto', | |
| - | 'right' : (right) ? right : 'auto', |
| + | 'right' : (right) ? right : 'auto' |
| }).end(); | |
| }; | |
| @@ | @@ -136,19 +207,23 @@ |
| } else { | |
| var left = target.offset().left; | |
| if (Foundation.rtl) { | |
| - | left = target.offset().left + target.offset().width - tip.outerWidth(); |
| + | nub.addClass('rtl'); |
| + | left = target.offset().left + target.outerWidth() - tip.outerWidth(); |
| } | |
| objPos(tip, (target.offset().top + target.outerHeight() + 10), 'auto', 'auto', left); | |
| tip.removeClass('tip-override'); | |
| if (classes && classes.indexOf('tip-top') > -1) { | |
| + | if (Foundation.rtl) nub.addClass('rtl'); |
| objPos(tip, (target.offset().top - tip.outerHeight()), 'auto', 'auto', left) | |
| .removeClass('tip-override'); | |
| } else if (classes && classes.indexOf('tip-left') > -1) { | |
| objPos(tip, (target.offset().top + (target.outerHeight() / 2) - (tip.outerHeight() / 2)), 'auto', 'auto', (target.offset().left - tip.outerWidth() - nubHeight)) | |
| .removeClass('tip-override'); | |
| + | nub.removeClass('rtl'); |
| } else if (classes && classes.indexOf('tip-right') > -1) { | |
| objPos(tip, (target.offset().top + (target.outerHeight() / 2) - (tip.outerHeight() / 2)), 'auto', 'auto', (target.offset().left + target.outerWidth() + nubHeight)) | |
| .removeClass('tip-override'); | |
| + | nub.removeClass('rtl'); |
| } | |
| } | |
| @@ | @@ -156,12 +231,14 @@ |
| }, | |
| small : function () { | |
| - | return matchMedia(Foundation.media_queries.small).matches; |
| + | return matchMedia(Foundation.media_queries.small).matches && |
| + | !matchMedia(Foundation.media_queries.medium).matches; |
| }, | |
| - | inheritable_classes : function (target) { |
| - | var inheritables = ['tip-top', 'tip-left', 'tip-bottom', 'tip-right', 'noradius'].concat(this.settings.additional_inheritable_classes), |
| - | classes = target.attr('class'), |
| + | inheritable_classes : function ($target) { |
| + | var settings = $.extend({}, this.settings, this.data_options($target)), |
| + | inheritables = ['tip-top', 'tip-left', 'tip-bottom', 'tip-right', 'radius', 'round'].concat(settings.additional_inheritable_classes), |
| + | classes = $target.attr('class'), |
| filtered = classes ? $.map(classes.split(' '), function (el, i) { | |
| if ($.inArray(el, inheritables) !== -1) { | |
| return el; | |
| @@ | @@ -171,33 +248,51 @@ |
| return $.trim(filtered); | |
| }, | |
| + | convert_to_touch : function($target) { |
| + | var self = this, |
| + | $tip = self.getTip($target), |
| + | settings = $.extend({}, self.settings, self.data_options($target)); |
| + | |
| + | if ($tip.find('.tap-to-close').length === 0) { |
| + | $tip.append('<span class="tap-to-close">'+settings.touch_close_text+'</span>'); |
| + | $tip.on('click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tooltip.tapclose', function(e) { |
| + | self.hide($target); |
| + | }); |
| + | } |
| + | |
| + | $target.data('tooltip-open-event-type', 'touch'); |
| + | }, |
| + | |
| show : function ($target) { | |
| var $tip = this.getTip($target); | |
| + | if ($target.data('tooltip-open-event-type') == 'touch') { |
| + | this.convert_to_touch($target); |
| + | } |
| + | |
| this.reposition($target, $tip, $target.attr('class')); | |
| + | $target.addClass('open'); |
| $tip.fadeIn(150); | |
| }, | |
| hide : function ($target) { | |
| var $tip = this.getTip($target); | |
| - | $tip.fadeOut(150); |
| - | }, |
| - | |
| - | // deprecate reload |
| - | reload : function () { |
| - | var $self = $(this); |
| - | |
| - | return ($self.data('fndtn-tooltips')) ? $self.foundationTooltips('destroy').foundationTooltips('init') : $self.foundationTooltips('init'); |
| + | $tip.fadeOut(150, function() { |
| + | $tip.find('.tap-to-close').remove(); |
| + | $tip.off('click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose'); |
| + | $target.removeClass('open'); |
| + | }); |
| }, | |
| off : function () { | |
| - | $(this.scope).off('.fndtn.tooltip'); |
| - | $(this.settings.tooltip_class).each(function (i) { |
| - | $('[data-tooltip]').get(i).attr('title', $(this).text()); |
| + | var self = this; |
| + | this.S(this.scope).off('.fndtn.tooltip'); |
| + | this.S(this.settings.tooltip_class).each(function (i) { |
| + | $('[' + self.attr_name() + ']').eq(i).attr('title', $(this).text()); |
| }).remove(); | |
| }, | |
| reflow : function () {} | |
| }; | |
| - | }(jQuery, this, this.document)); |
| + | }(jQuery, window, window.document)); |
generators/foundation5/public/javascripts/foundation/foundation.topbar.js
+130
-86
| @@ | @@ -4,7 +4,7 @@ |
| Foundation.libs.topbar = { | |
| name : 'topbar', | |
| - | version: '5.0.3', |
| + | version: '5.2.3', |
| settings : { | |
| index : 0, | |
| @@ | @@ -13,27 +13,25 @@ |
| back_text: 'Back', | |
| is_hover: true, | |
| mobile_show_parent_link: false, | |
| - | scrolltop : true // jump to top when sticky nav menu toggle is clicked |
| + | scrolltop : true, // jump to top when sticky nav menu toggle is clicked |
| + | sticky_on : 'all' |
| }, | |
| init : function (section, method, options) { | |
| - | Foundation.inherit(this, 'addCustomRule register_media throttle'); |
| + | Foundation.inherit(this, 'add_custom_rule register_media throttle'); |
| var self = this; | |
| self.register_media('topbar', 'foundation-mq-topbar'); | |
| this.bindings(method, options); | |
| - | $('[data-topbar]', this.scope).each(function () { |
| + | self.S('[' + this.attr_name() + ']', this.scope).each(function () { |
| var topbar = $(this), | |
| - | settings = topbar.data('topbar-init'), |
| - | section = $('section', this), |
| - | titlebar = $('> ul', this).first(); |
| - | |
| + | settings = topbar.data(self.attr_name(true) + '-init'), |
| + | section = self.S('section', this); |
| topbar.data('index', 0); | |
| - | |
| var topbarContainer = topbar.parent(); | |
| - | if(topbarContainer.hasClass('fixed') || topbarContainer.hasClass(settings.sticky_class)) { |
| + | if (topbarContainer.hasClass('fixed') || self.is_sticky(topbar, topbarContainer, settings) ) { |
| self.settings.sticky_class = settings.sticky_class; | |
| self.settings.sticky_topbar = topbar; | |
| topbar.data('height', topbarContainer.outerHeight()); | |
| @@ | @@ -42,36 +40,55 @@ |
| topbar.data('height', topbar.outerHeight()); | |
| } | |
| - | if (!settings.assembled) self.assemble(topbar); |
| + | if (!settings.assembled) { |
| + | self.assemble(topbar); |
| + | } |
| if (settings.is_hover) { | |
| - | $('.has-dropdown', topbar).addClass('not-click'); |
| + | self.S('.has-dropdown', topbar).addClass('not-click'); |
| } else { | |
| - | $('.has-dropdown', topbar).removeClass('not-click'); |
| + | self.S('.has-dropdown', topbar).removeClass('not-click'); |
| } | |
| // Pad body when sticky (scrolled) or fixed. | |
| - | self.addCustomRule('.f-topbar-fixed { padding-top: ' + topbar.data('height') + 'px }'); |
| + | self.add_custom_rule('.f-topbar-fixed { padding-top: ' + topbar.data('height') + 'px }'); |
| if (topbarContainer.hasClass('fixed')) { | |
| - | $('body').addClass('f-topbar-fixed'); |
| + | self.S('body').addClass('f-topbar-fixed'); |
| } | |
| }); | |
| }, | |
| + | is_sticky: function (topbar, topbarContainer, settings) { |
| + | var sticky = topbarContainer.hasClass(settings.sticky_class); |
| + | |
| + | if (sticky && settings.sticky_on === 'all') { |
| + | return true; |
| + | } else if (sticky && this.small() && settings.sticky_on === 'small') { |
| + | return true; |
| + | } else if (sticky && this.medium() && settings.sticky_on === 'medium') { |
| + | return true; |
| + | } else if (sticky && this.large() && settings.sticky_on === 'large') { |
| + | return true; |
| + | } |
| + | |
| + | return false; |
| + | }, |
| + | |
| toggle: function (toggleEl) { | |
| - | var self = this; |
| + | var self = this, |
| + | topbar; |
| if (toggleEl) { | |
| - | var topbar = $(toggleEl).closest('[data-topbar]'); |
| + | topbar = self.S(toggleEl).closest('[' + this.attr_name() + ']'); |
| } else { | |
| - | var topbar = $('[data-topbar]'); |
| + | topbar = self.S('[' + this.attr_name() + ']'); |
| } | |
| - | var settings = topbar.data('topbar-init'); |
| + | var settings = topbar.data(this.attr_name(true) + '-init'); |
| - | var section = $('section, .section', topbar); |
| + | var section = self.S('section, .section', topbar); |
| if (self.breakpoint()) { | |
| if (!self.rtl) { | |
| @@ | @@ -82,7 +99,7 @@ |
| $('>.name', section).css({right: '100%'}); | |
| } | |
| - | $('li.moved', section).removeClass('moved'); |
| + | self.S('li.moved', section).removeClass('moved'); |
| topbar.data('index', 0); | |
| topbar | |
| @@ | @@ -95,25 +112,25 @@ |
| if (topbar.hasClass('fixed')) { | |
| topbar.parent().addClass('fixed'); | |
| topbar.removeClass('fixed'); | |
| - | $('body').addClass('f-topbar-fixed'); |
| + | self.S('body').addClass('f-topbar-fixed'); |
| } | |
| } else if (topbar.parent().hasClass('fixed')) { | |
| if (settings.scrolltop) { | |
| topbar.parent().removeClass('fixed'); | |
| topbar.addClass('fixed'); | |
| - | $('body').removeClass('f-topbar-fixed'); |
| + | self.S('body').removeClass('f-topbar-fixed'); |
| window.scrollTo(0,0); | |
| } else { | |
| - | topbar.parent().removeClass('expanded'); |
| + | topbar.parent().removeClass('expanded'); |
| } | |
| } | |
| } else { | |
| - | if(topbar.parent().hasClass(self.settings.sticky_class)) { |
| + | if (self.is_sticky(topbar, topbar.parent(), settings)) { |
| topbar.parent().addClass('fixed'); | |
| } | |
| - | if(topbar.parent().hasClass('fixed')) { |
| + | if (topbar.parent().hasClass('fixed')) { |
| if (!topbar.hasClass('expanded')) { | |
| topbar.removeClass('fixed'); | |
| topbar.parent().removeClass('expanded'); | |
| @@ | @@ -121,7 +138,7 @@ |
| } else { | |
| topbar.addClass('fixed'); | |
| topbar.parent().addClass('expanded'); | |
| - | $('body').addClass('f-topbar-fixed'); |
| + | self.S('body').addClass('f-topbar-fixed'); |
| } | |
| } | |
| } | |
| @@ | @@ -130,18 +147,27 @@ |
| timer : null, | |
| events : function (bar) { | |
| - | var self = this; |
| - | $(this.scope) |
| + | var self = this, |
| + | S = this.S; |
| + | |
| + | S(this.scope) |
| .off('.topbar') | |
| - | .on('click.fndtn.topbar', '[data-topbar] .toggle-topbar', function (e) { |
| + | .on('click.fndtn.topbar', '[' + this.attr_name() + '] .toggle-topbar', function (e) { |
| e.preventDefault(); | |
| self.toggle(this); | |
| }) | |
| - | .on('click.fndtn.topbar', '[data-topbar] li.has-dropdown', function (e) { |
| - | var li = $(this), |
| - | target = $(e.target), |
| - | topbar = li.closest('[data-topbar]'), |
| - | settings = topbar.data('topbar-init'); |
| + | .on('click.fndtn.topbar','.top-bar .top-bar-section li a[href^="#"],[' + this.attr_name() + '] .top-bar-section li a[href^="#"]',function (e) { |
| + | var li = $(this).closest('li'); |
| + | if(self.breakpoint() && !li.hasClass('back') && !li.hasClass('has-dropdown')) |
| + | { |
| + | self.toggle(); |
| + | } |
| + | }) |
| + | .on('click.fndtn.topbar', '[' + this.attr_name() + '] li.has-dropdown', function (e) { |
| + | var li = S(this), |
| + | target = S(e.target), |
| + | topbar = li.closest('[' + self.attr_name() + ']'), |
| + | settings = topbar.data(self.attr_name(true) + '-init'); |
| if(target.data('revealId')) { | |
| self.toggle(); | |
| @@ | @@ -164,18 +190,20 @@ |
| } else { | |
| li.addClass('hover'); | |
| + | $(li).siblings().removeClass('hover'); |
| + | |
| if (target[0].nodeName === 'A' && target.parent().hasClass('has-dropdown')) { | |
| e.preventDefault(); | |
| } | |
| } | |
| }) | |
| - | .on('click.fndtn.topbar', '[data-topbar] .has-dropdown>a', function (e) { |
| + | .on('click.fndtn.topbar', '[' + this.attr_name() + '] .has-dropdown>a', function (e) { |
| if (self.breakpoint()) { | |
| e.preventDefault(); | |
| - | var $this = $(this), |
| - | topbar = $this.closest('[data-topbar]'), |
| + | var $this = S(this), |
| + | topbar = $this.closest('[' + self.attr_name() + ']'), |
| section = topbar.find('section, .section'), | |
| dropdownHeight = $this.next('.dropdown').outerHeight(), | |
| $selectedLi = $this.closest('li'); | |
| @@ | @@ -195,28 +223,28 @@ |
| } | |
| }); | |
| - | $(window).off('.topbar').on('resize.fndtn.topbar', self.throttle(function () { |
| + | S(window).off('.topbar').on('resize.fndtn.topbar', self.throttle(function () { |
| self.resize.call(self); | |
| }, 50)).trigger('resize'); | |
| - | $('body').off('.topbar').on('click.fndtn.topbar touchstart.fndtn.topbar', function (e) { |
| - | var parent = $(e.target).closest('li').closest('li.hover'); |
| + | S('body').off('.topbar').on('click.fndtn.topbar touchstart.fndtn.topbar', function (e) { |
| + | var parent = S(e.target).closest('li').closest('li.hover'); |
| if (parent.length > 0) { | |
| return; | |
| } | |
| - | $('[data-topbar] li').removeClass('hover'); |
| + | S('[' + self.attr_name() + '] li.hover').removeClass('hover'); |
| }); | |
| // Go up a level on Click | |
| - | $(this.scope).on('click.fndtn.topbar', '[data-topbar] .has-dropdown .back', function (e) { |
| + | S(this.scope).on('click.fndtn.topbar', '[' + this.attr_name() + '] .has-dropdown .back', function (e) { |
| e.preventDefault(); | |
| - | var $this = $(this), |
| - | topbar = $this.closest('[data-topbar]'), |
| + | var $this = S(this), |
| + | topbar = $this.closest('[' + self.attr_name() + ']'), |
| section = topbar.find('section, .section'), | |
| - | settings = topbar.data('topbar-init'), |
| + | settings = topbar.data(self.attr_name(true) + '-init'), |
| $movedLi = $this.closest('li.moved'), | |
| $previousLevelUl = $movedLi.parent(); | |
| @@ | @@ -244,9 +272,9 @@ |
| resize : function () { | |
| var self = this; | |
| - | $('[data-topbar]').each(function () { |
| - | var topbar = $(this), |
| - | settings = topbar.data('topbar-init'); |
| + | self.S('[' + this.attr_name() + ']').each(function () { |
| + | var topbar = self.S(this), |
| + | settings = topbar.data(self.attr_name(true) + '-init'); |
| var stickyContainer = topbar.parent('.' + self.settings.sticky_class); | |
| var stickyOffset; | |
| @@ | @@ -264,13 +292,13 @@ |
| } | |
| } | |
| - | if(stickyContainer.length > 0) { |
| + | if(self.is_sticky(topbar, stickyContainer, settings)) { |
| if(stickyContainer.hasClass('fixed')) { | |
| // Remove the fixed to allow for correct calculation of the offset. | |
| stickyContainer.removeClass('fixed'); | |
| stickyOffset = stickyContainer.offset().top; | |
| - | if($(document.body).hasClass('f-topbar-fixed')) { |
| + | if(self.S(document.body).hasClass('f-topbar-fixed')) { |
| stickyOffset -= topbar.data('height'); | |
| } | |
| @@ | @@ -289,33 +317,47 @@ |
| return !matchMedia(Foundation.media_queries['topbar']).matches; | |
| }, | |
| + | small : function () { |
| + | return matchMedia(Foundation.media_queries['small']).matches; |
| + | }, |
| + | |
| + | medium : function () { |
| + | return matchMedia(Foundation.media_queries['medium']).matches; |
| + | }, |
| + | |
| + | large : function () { |
| + | return matchMedia(Foundation.media_queries['large']).matches; |
| + | }, |
| + | |
| assemble : function (topbar) { | |
| var self = this, | |
| - | settings = topbar.data('topbar-init'), |
| - | section = $('section', topbar), |
| - | titlebar = $('> ul', topbar).first(); |
| + | settings = topbar.data(this.attr_name(true) + '-init'), |
| + | section = self.S('section', topbar); |
| // Pull element out of the DOM for manipulation | |
| section.detach(); | |
| - | $('.has-dropdown>a', section).each(function () { |
| - | var $link = $(this), |
| + | self.S('.has-dropdown>a', section).each(function () { |
| + | var $link = self.S(this), |
| $dropdown = $link.siblings('.dropdown'), | |
| - | url = $link.attr('href'); |
| - | |
| - | if (settings.mobile_show_parent_link && url && url.length > 1) { |
| - | var $titleLi = $('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li><a class="parent-link js-generated" href="' + url + '">' + $link.text() +'</a></li>'); |
| - | } else { |
| - | var $titleLi = $('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li>'); |
| - | } |
| + | url = $link.attr('href'), |
| + | $titleLi; |
| - | // Copy link to subnav |
| - | if (settings.custom_back_text == true) { |
| - | $('h5>a', $titleLi).html(settings.back_text); |
| - | } else { |
| - | $('h5>a', $titleLi).html('« ' + $link.html()); |
| + | if (!$dropdown.find('.title.back').length) { |
| + | if (settings.mobile_show_parent_link && url && url.length > 1) { |
| + | $titleLi = $('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li><a class="parent-link js-generated" href="' + url + '">' + $link.text() +'</a></li>'); |
| + | } else { |
| + | $titleLi = $('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li>'); |
| + | } |
| + | |
| + | // Copy link to subnav |
| + | if (settings.custom_back_text == true) { |
| + | $('h5>a', $titleLi).html(settings.back_text); |
| + | } else { |
| + | $('h5>a', $titleLi).html('« ' + $link.html()); |
| + | } |
| + | $dropdown.prepend($titleLi); |
| } | |
| - | $dropdown.prepend($titleLi); |
| }); | |
| // Put element back in the DOM | |
| @@ | @@ -328,43 +370,45 @@ |
| }, | |
| assembled : function (topbar) { | |
| - | topbar.data('topbar-init', $.extend({}, topbar.data('topbar-init'), {assembled: true})); |
| + | topbar.data(this.attr_name(true), $.extend({}, topbar.data(this.attr_name(true)), {assembled: true})); |
| }, | |
| height : function (ul) { | |
| var total = 0, | |
| self = this; | |
| - | $('> li', ul).each(function () { total += $(this).outerHeight(true); }); |
| + | $('> li', ul).each(function () { |
| + | total += self.S(this).outerHeight(true); |
| + | }); |
| return total; | |
| }, | |
| sticky : function () { | |
| - | var $window = $(window), |
| - | self = this; |
| + | var self = this; |
| - | $(window).on('scroll', function() { |
| + | this.S(window).on('scroll', function() { |
| self.update_sticky_positioning(); | |
| }); | |
| }, | |
| update_sticky_positioning: function() { | |
| - | var klass = '.' + this.settings.sticky_class; |
| - | var $window = $(window); |
| + | var klass = '.' + this.settings.sticky_class, |
| + | $window = this.S(window), |
| + | self = this; |
| - | if ($(klass).length > 0) { |
| + | if (self.settings.sticky_topbar && self.is_sticky(this.settings.sticky_topbar,this.settings.sticky_topbar.parent(), this.settings)) { |
| var distance = this.settings.sticky_topbar.data('stickyoffset'); | |
| - | if (!$(klass).hasClass('expanded')) { |
| + | if (!self.S(klass).hasClass('expanded')) { |
| if ($window.scrollTop() > (distance)) { | |
| - | if (!$(klass).hasClass('fixed')) { |
| - | $(klass).addClass('fixed'); |
| - | $('body').addClass('f-topbar-fixed'); |
| + | if (!self.S(klass).hasClass('fixed')) { |
| + | self.S(klass).addClass('fixed'); |
| + | self.S('body').addClass('f-topbar-fixed'); |
| } | |
| } else if ($window.scrollTop() <= distance) { | |
| - | if ($(klass).hasClass('fixed')) { |
| - | $(klass).removeClass('fixed'); |
| - | $('body').removeClass('f-topbar-fixed'); |
| + | if (self.S(klass).hasClass('fixed')) { |
| + | self.S(klass).removeClass('fixed'); |
| + | self.S('body').removeClass('f-topbar-fixed'); |
| } | |
| } | |
| } | |
| @@ | @@ -372,8 +416,8 @@ |
| }, | |
| off : function () { | |
| - | $(this.scope).off('.fndtn.topbar'); |
| - | $(window).off('.fndtn.topbar'); |
| + | this.S(this.scope).off('.fndtn.topbar'); |
| + | this.S(window).off('.fndtn.topbar'); |
| }, | |
| reflow : function () {} | |
generators/foundation5/public/javascripts/vendor/fastclick.js
+2
-754
| @@ | @@ -1,761 +1,9 @@ |
| /** | |
| * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs. | |
| * | |
| - | * @version 0.6.9 |
| + | * @version 1.0.2 |
| * @codingstandard ftlabs-jsv2 | |
| * @copyright The Financial Times Limited [All Rights Reserved] | |
| * @license MIT License (see LICENSE.txt) | |
| */ | |
| - | |
| - | /*jslint browser:true, node:true*/ |
| - | /*global define, Event, Node*/ |
| - | |
| - | |
| - | /** |
| - | * Instantiate fast-clicking listeners on the specificed layer. |
| - | * |
| - | * @constructor |
| - | * @param {Element} layer The layer to listen on |
| - | */ |
| - | function FastClick(layer) { |
| - | 'use strict'; |
| - | var oldOnClick, self = this; |
| - | |
| - | |
| - | /** |
| - | * Whether a click is currently being tracked. |
| - | * |
| - | * @type boolean |
| - | */ |
| - | this.trackingClick = false; |
| - | |
| - | |
| - | /** |
| - | * Timestamp for when when click tracking started. |
| - | * |
| - | * @type number |
| - | */ |
| - | this.trackingClickStart = 0; |
| - | |
| - | |
| - | /** |
| - | * The element being tracked for a click. |
| - | * |
| - | * @type EventTarget |
| - | */ |
| - | this.targetElement = null; |
| - | |
| - | |
| - | /** |
| - | * X-coordinate of touch start event. |
| - | * |
| - | * @type number |
| - | */ |
| - | this.touchStartX = 0; |
| - | |
| - | |
| - | /** |
| - | * Y-coordinate of touch start event. |
| - | * |
| - | * @type number |
| - | */ |
| - | this.touchStartY = 0; |
| - | |
| - | |
| - | /** |
| - | * ID of the last touch, retrieved from Touch.identifier. |
| - | * |
| - | * @type number |
| - | */ |
| - | this.lastTouchIdentifier = 0; |
| - | |
| - | |
| - | /** |
| - | * Touchmove boundary, beyond which a click will be cancelled. |
| - | * |
| - | * @type number |
| - | */ |
| - | this.touchBoundary = 10; |
| - | |
| - | |
| - | /** |
| - | * The FastClick layer. |
| - | * |
| - | * @type Element |
| - | */ |
| - | this.layer = layer; |
| - | |
| - | if (!layer || !layer.nodeType) { |
| - | throw new TypeError('Layer must be a document node'); |
| - | } |
| - | |
| - | /** @type function() */ |
| - | this.onClick = function() { return FastClick.prototype.onClick.apply(self, arguments); }; |
| - | |
| - | /** @type function() */ |
| - | this.onMouse = function() { return FastClick.prototype.onMouse.apply(self, arguments); }; |
| - | |
| - | /** @type function() */ |
| - | this.onTouchStart = function() { return FastClick.prototype.onTouchStart.apply(self, arguments); }; |
| - | |
| - | /** @type function() */ |
| - | this.onTouchMove = function() { return FastClick.prototype.onTouchMove.apply(self, arguments); }; |
| - | |
| - | /** @type function() */ |
| - | this.onTouchEnd = function() { return FastClick.prototype.onTouchEnd.apply(self, arguments); }; |
| - | |
| - | /** @type function() */ |
| - | this.onTouchCancel = function() { return FastClick.prototype.onTouchCancel.apply(self, arguments); }; |
| - | |
| - | if (FastClick.notNeeded(layer)) { |
| - | return; |
| - | } |
| - | |
| - | // Set up event handlers as required |
| - | if (this.deviceIsAndroid) { |
| - | layer.addEventListener('mouseover', this.onMouse, true); |
| - | layer.addEventListener('mousedown', this.onMouse, true); |
| - | layer.addEventListener('mouseup', this.onMouse, true); |
| - | } |
| - | |
| - | layer.addEventListener('click', this.onClick, true); |
| - | layer.addEventListener('touchstart', this.onTouchStart, false); |
| - | layer.addEventListener('touchmove', this.onTouchMove, false); |
| - | layer.addEventListener('touchend', this.onTouchEnd, false); |
| - | layer.addEventListener('touchcancel', this.onTouchCancel, false); |
| - | |
| - | // Hack is required for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) |
| - | // which is how FastClick normally stops click events bubbling to callbacks registered on the FastClick |
| - | // layer when they are cancelled. |
| - | if (!Event.prototype.stopImmediatePropagation) { |
| - | layer.removeEventListener = function(type, callback, capture) { |
| - | var rmv = Node.prototype.removeEventListener; |
| - | if (type === 'click') { |
| - | rmv.call(layer, type, callback.hijacked || callback, capture); |
| - | } else { |
| - | rmv.call(layer, type, callback, capture); |
| - | } |
| - | }; |
| - | |
| - | layer.addEventListener = function(type, callback, capture) { |
| - | var adv = Node.prototype.addEventListener; |
| - | if (type === 'click') { |
| - | adv.call(layer, type, callback.hijacked || (callback.hijacked = function(event) { |
| - | if (!event.propagationStopped) { |
| - | callback(event); |
| - | } |
| - | }), capture); |
| - | } else { |
| - | adv.call(layer, type, callback, capture); |
| - | } |
| - | }; |
| - | } |
| - | |
| - | // If a handler is already declared in the element's onclick attribute, it will be fired before |
| - | // FastClick's onClick handler. Fix this by pulling out the user-defined handler function and |
| - | // adding it as listener. |
| - | if (typeof layer.onclick === 'function') { |
| - | |
| - | // Android browser on at least 3.2 requires a new reference to the function in layer.onclick |
| - | // - the old one won't work if passed to addEventListener directly. |
| - | oldOnClick = layer.onclick; |
| - | layer.addEventListener('click', function(event) { |
| - | oldOnClick(event); |
| - | }, false); |
| - | layer.onclick = null; |
| - | } |
| - | } |
| - | |
| - | |
| - | /** |
| - | * Android requires exceptions. |
| - | * |
| - | * @type boolean |
| - | */ |
| - | FastClick.prototype.deviceIsAndroid = navigator.userAgent.indexOf('Android') > 0; |
| - | |
| - | |
| - | /** |
| - | * iOS requires exceptions. |
| - | * |
| - | * @type boolean |
| - | */ |
| - | FastClick.prototype.deviceIsIOS = /iP(ad|hone|od)/.test(navigator.userAgent); |
| - | |
| - | |
| - | /** |
| - | * iOS 4 requires an exception for select elements. |
| - | * |
| - | * @type boolean |
| - | */ |
| - | FastClick.prototype.deviceIsIOS4 = FastClick.prototype.deviceIsIOS && (/OS 4_\d(_\d)?/).test(navigator.userAgent); |
| - | |
| - | |
| - | /** |
| - | * iOS 6.0(+?) requires the target element to be manually derived |
| - | * |
| - | * @type boolean |
| - | */ |
| - | FastClick.prototype.deviceIsIOSWithBadTarget = FastClick.prototype.deviceIsIOS && (/OS ([6-9]|\d{2})_\d/).test(navigator.userAgent); |
| - | |
| - | |
| - | /** |
| - | * Determine whether a given element requires a native click. |
| - | * |
| - | * @param {EventTarget|Element} target Target DOM element |
| - | * @returns {boolean} Returns true if the element needs a native click |
| - | */ |
| - | FastClick.prototype.needsClick = function(target) { |
| - | 'use strict'; |
| - | switch (target.nodeName.toLowerCase()) { |
| - | |
| - | // Don't send a synthetic click to disabled inputs (issue #62) |
| - | case 'button': |
| - | case 'select': |
| - | case 'textarea': |
| - | if (target.disabled) { |
| - | return true; |
| - | } |
| - | |
| - | break; |
| - | case 'input': |
| - | |
| - | // File inputs need real clicks on iOS 6 due to a browser bug (issue #68) |
| - | if ((this.deviceIsIOS && target.type === 'file') || target.disabled) { |
| - | return true; |
| - | } |
| - | |
| - | break; |
| - | case 'label': |
| - | case 'video': |
| - | return true; |
| - | } |
| - | |
| - | return (/\bneedsclick\b/).test(target.className); |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * Determine whether a given element requires a call to focus to simulate click into element. |
| - | * |
| - | * @param {EventTarget|Element} target Target DOM element |
| - | * @returns {boolean} Returns true if the element requires a call to focus to simulate native click. |
| - | */ |
| - | FastClick.prototype.needsFocus = function(target) { |
| - | 'use strict'; |
| - | switch (target.nodeName.toLowerCase()) { |
| - | case 'textarea': |
| - | case 'select': |
| - | return true; |
| - | case 'input': |
| - | switch (target.type) { |
| - | case 'button': |
| - | case 'checkbox': |
| - | case 'file': |
| - | case 'image': |
| - | case 'radio': |
| - | case 'submit': |
| - | return false; |
| - | } |
| - | |
| - | // No point in attempting to focus disabled inputs |
| - | return !target.disabled && !target.readOnly; |
| - | default: |
| - | return (/\bneedsfocus\b/).test(target.className); |
| - | } |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * Send a click event to the specified element. |
| - | * |
| - | * @param {EventTarget|Element} targetElement |
| - | * @param {Event} event |
| - | */ |
| - | FastClick.prototype.sendClick = function(targetElement, event) { |
| - | 'use strict'; |
| - | var clickEvent, touch; |
| - | |
| - | // On some Android devices activeElement needs to be blurred otherwise the synthetic click will have no effect (#24) |
| - | if (document.activeElement && document.activeElement !== targetElement) { |
| - | document.activeElement.blur(); |
| - | } |
| - | |
| - | touch = event.changedTouches[0]; |
| - | |
| - | // Synthesise a click event, with an extra attribute so it can be tracked |
| - | clickEvent = document.createEvent('MouseEvents'); |
| - | clickEvent.initMouseEvent('click', true, true, window, 1, touch.screenX, touch.screenY, touch.clientX, touch.clientY, false, false, false, false, 0, null); |
| - | clickEvent.forwardedTouchEvent = true; |
| - | targetElement.dispatchEvent(clickEvent); |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * @param {EventTarget|Element} targetElement |
| - | */ |
| - | FastClick.prototype.focus = function(targetElement) { |
| - | 'use strict'; |
| - | var length; |
| - | |
| - | if (this.deviceIsIOS && targetElement.setSelectionRange) { |
| - | length = targetElement.value.length; |
| - | targetElement.setSelectionRange(length, length); |
| - | } else { |
| - | targetElement.focus(); |
| - | } |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * Check whether the given target element is a child of a scrollable layer and if so, set a flag on it. |
| - | * |
| - | * @param {EventTarget|Element} targetElement |
| - | */ |
| - | FastClick.prototype.updateScrollParent = function(targetElement) { |
| - | 'use strict'; |
| - | var scrollParent, parentElement; |
| - | |
| - | scrollParent = targetElement.fastClickScrollParent; |
| - | |
| - | // Attempt to discover whether the target element is contained within a scrollable layer. Re-check if the |
| - | // target element was moved to another parent. |
| - | if (!scrollParent || !scrollParent.contains(targetElement)) { |
| - | parentElement = targetElement; |
| - | do { |
| - | if (parentElement.scrollHeight > parentElement.offsetHeight) { |
| - | scrollParent = parentElement; |
| - | targetElement.fastClickScrollParent = parentElement; |
| - | break; |
| - | } |
| - | |
| - | parentElement = parentElement.parentElement; |
| - | } while (parentElement); |
| - | } |
| - | |
| - | // Always update the scroll top tracker if possible. |
| - | if (scrollParent) { |
| - | scrollParent.fastClickLastScrollTop = scrollParent.scrollTop; |
| - | } |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * @param {EventTarget} targetElement |
| - | * @returns {Element|EventTarget} |
| - | */ |
| - | FastClick.prototype.getTargetElementFromEventTarget = function(eventTarget) { |
| - | 'use strict'; |
| - | |
| - | // On some older browsers (notably Safari on iOS 4.1 - see issue #56) the event target may be a text node. |
| - | if (eventTarget.nodeType === Node.TEXT_NODE) { |
| - | return eventTarget.parentNode; |
| - | } |
| - | |
| - | return eventTarget; |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * On touch start, record the position and scroll offset. |
| - | * |
| - | * @param {Event} event |
| - | * @returns {boolean} |
| - | */ |
| - | FastClick.prototype.onTouchStart = function(event) { |
| - | 'use strict'; |
| - | var targetElement, touch, selection; |
| - | |
| - | // Ignore multiple touches, otherwise pinch-to-zoom is prevented if both fingers are on the FastClick element (issue #111). |
| - | if (event.targetTouches.length > 1) { |
| - | return true; |
| - | } |
| - | |
| - | targetElement = this.getTargetElementFromEventTarget(event.target); |
| - | touch = event.targetTouches[0]; |
| - | |
| - | if (this.deviceIsIOS) { |
| - | |
| - | // Only trusted events will deselect text on iOS (issue #49) |
| - | selection = window.getSelection(); |
| - | if (selection.rangeCount && !selection.isCollapsed) { |
| - | return true; |
| - | } |
| - | |
| - | if (!this.deviceIsIOS4) { |
| - | |
| - | // Weird things happen on iOS when an alert or confirm dialog is opened from a click event callback (issue #23): |
| - | // when the user next taps anywhere else on the page, new touchstart and touchend events are dispatched |
| - | // with the same identifier as the touch event that previously triggered the click that triggered the alert. |
| - | // Sadly, there is an issue on iOS 4 that causes some normal touch events to have the same identifier as an |
| - | // immediately preceeding touch event (issue #52), so this fix is unavailable on that platform. |
| - | if (touch.identifier === this.lastTouchIdentifier) { |
| - | event.preventDefault(); |
| - | return false; |
| - | } |
| - | |
| - | this.lastTouchIdentifier = touch.identifier; |
| - | |
| - | // If the target element is a child of a scrollable layer (using -webkit-overflow-scrolling: touch) and: |
| - | // 1) the user does a fling scroll on the scrollable layer |
| - | // 2) the user stops the fling scroll with another tap |
| - | // then the event.target of the last 'touchend' event will be the element that was under the user's finger |
| - | // when the fling scroll was started, causing FastClick to send a click event to that layer - unless a check |
| - | // is made to ensure that a parent layer was not scrolled before sending a synthetic click (issue #42). |
| - | this.updateScrollParent(targetElement); |
| - | } |
| - | } |
| - | |
| - | this.trackingClick = true; |
| - | this.trackingClickStart = event.timeStamp; |
| - | this.targetElement = targetElement; |
| - | |
| - | this.touchStartX = touch.pageX; |
| - | this.touchStartY = touch.pageY; |
| - | |
| - | // Prevent phantom clicks on fast double-tap (issue #36) |
| - | if ((event.timeStamp - this.lastClickTime) < 200) { |
| - | event.preventDefault(); |
| - | } |
| - | |
| - | return true; |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * Based on a touchmove event object, check whether the touch has moved past a boundary since it started. |
| - | * |
| - | * @param {Event} event |
| - | * @returns {boolean} |
| - | */ |
| - | FastClick.prototype.touchHasMoved = function(event) { |
| - | 'use strict'; |
| - | var touch = event.changedTouches[0], boundary = this.touchBoundary; |
| - | |
| - | if (Math.abs(touch.pageX - this.touchStartX) > boundary || Math.abs(touch.pageY - this.touchStartY) > boundary) { |
| - | return true; |
| - | } |
| - | |
| - | return false; |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * Update the last position. |
| - | * |
| - | * @param {Event} event |
| - | * @returns {boolean} |
| - | */ |
| - | FastClick.prototype.onTouchMove = function(event) { |
| - | 'use strict'; |
| - | if (!this.trackingClick) { |
| - | return true; |
| - | } |
| - | |
| - | // If the touch has moved, cancel the click tracking |
| - | if (this.targetElement !== this.getTargetElementFromEventTarget(event.target) || this.touchHasMoved(event)) { |
| - | this.trackingClick = false; |
| - | this.targetElement = null; |
| - | } |
| - | |
| - | return true; |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * Attempt to find the labelled control for the given label element. |
| - | * |
| - | * @param {EventTarget|HTMLLabelElement} labelElement |
| - | * @returns {Element|null} |
| - | */ |
| - | FastClick.prototype.findControl = function(labelElement) { |
| - | 'use strict'; |
| - | |
| - | // Fast path for newer browsers supporting the HTML5 control attribute |
| - | if (labelElement.control !== undefined) { |
| - | return labelElement.control; |
| - | } |
| - | |
| - | // All browsers under test that support touch events also support the HTML5 htmlFor attribute |
| - | if (labelElement.htmlFor) { |
| - | return document.getElementById(labelElement.htmlFor); |
| - | } |
| - | |
| - | // If no for attribute exists, attempt to retrieve the first labellable descendant element |
| - | // the list of which is defined here: http://www.w3.org/TR/html5/forms.html#category-label |
| - | return labelElement.querySelector('button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea'); |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * On touch end, determine whether to send a click event at once. |
| - | * |
| - | * @param {Event} event |
| - | * @returns {boolean} |
| - | */ |
| - | FastClick.prototype.onTouchEnd = function(event) { |
| - | 'use strict'; |
| - | var forElement, trackingClickStart, targetTagName, scrollParent, touch, targetElement = this.targetElement; |
| - | |
| - | if (!this.trackingClick) { |
| - | return true; |
| - | } |
| - | |
| - | // Prevent phantom clicks on fast double-tap (issue #36) |
| - | if ((event.timeStamp - this.lastClickTime) < 200) { |
| - | this.cancelNextClick = true; |
| - | return true; |
| - | } |
| - | |
| - | this.lastClickTime = event.timeStamp; |
| - | |
| - | trackingClickStart = this.trackingClickStart; |
| - | this.trackingClick = false; |
| - | this.trackingClickStart = 0; |
| - | |
| - | // On some iOS devices, the targetElement supplied with the event is invalid if the layer |
| - | // is performing a transition or scroll, and has to be re-detected manually. Note that |
| - | // for this to function correctly, it must be called *after* the event target is checked! |
| - | // See issue #57; also filed as rdar://13048589 . |
| - | if (this.deviceIsIOSWithBadTarget) { |
| - | touch = event.changedTouches[0]; |
| - | |
| - | // In certain cases arguments of elementFromPoint can be negative, so prevent setting targetElement to null |
| - | targetElement = document.elementFromPoint(touch.pageX - window.pageXOffset, touch.pageY - window.pageYOffset) || targetElement; |
| - | targetElement.fastClickScrollParent = this.targetElement.fastClickScrollParent; |
| - | } |
| - | |
| - | targetTagName = targetElement.tagName.toLowerCase(); |
| - | if (targetTagName === 'label') { |
| - | forElement = this.findControl(targetElement); |
| - | if (forElement) { |
| - | this.focus(targetElement); |
| - | if (this.deviceIsAndroid) { |
| - | return false; |
| - | } |
| - | |
| - | targetElement = forElement; |
| - | } |
| - | } else if (this.needsFocus(targetElement)) { |
| - | |
| - | // Case 1: If the touch started a while ago (best guess is 100ms based on tests for issue #36) then focus will be triggered anyway. Return early and unset the target element reference so that the subsequent click will be allowed through. |
| - | // Case 2: Without this exception for input elements tapped when the document is contained in an iframe, then any inputted text won't be visible even though the value attribute is updated as the user types (issue #37). |
| - | if ((event.timeStamp - trackingClickStart) > 100 || (this.deviceIsIOS && window.top !== window && targetTagName === 'input')) { |
| - | this.targetElement = null; |
| - | return false; |
| - | } |
| - | |
| - | this.focus(targetElement); |
| - | |
| - | // Select elements need the event to go through on iOS 4, otherwise the selector menu won't open. |
| - | if (!this.deviceIsIOS4 || targetTagName !== 'select') { |
| - | this.targetElement = null; |
| - | event.preventDefault(); |
| - | } |
| - | |
| - | return false; |
| - | } |
| - | |
| - | if (this.deviceIsIOS && !this.deviceIsIOS4) { |
| - | |
| - | // Don't send a synthetic click event if the target element is contained within a parent layer that was scrolled |
| - | // and this tap is being used to stop the scrolling (usually initiated by a fling - issue #42). |
| - | scrollParent = targetElement.fastClickScrollParent; |
| - | if (scrollParent && scrollParent.fastClickLastScrollTop !== scrollParent.scrollTop) { |
| - | return true; |
| - | } |
| - | } |
| - | |
| - | // Prevent the actual click from going though - unless the target node is marked as requiring |
| - | // real clicks or if it is in the whitelist in which case only non-programmatic clicks are permitted. |
| - | if (!this.needsClick(targetElement)) { |
| - | event.preventDefault(); |
| - | this.sendClick(targetElement, event); |
| - | } |
| - | |
| - | return false; |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * On touch cancel, stop tracking the click. |
| - | * |
| - | * @returns {void} |
| - | */ |
| - | FastClick.prototype.onTouchCancel = function() { |
| - | 'use strict'; |
| - | this.trackingClick = false; |
| - | this.targetElement = null; |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * Determine mouse events which should be permitted. |
| - | * |
| - | * @param {Event} event |
| - | * @returns {boolean} |
| - | */ |
| - | FastClick.prototype.onMouse = function(event) { |
| - | 'use strict'; |
| - | |
| - | // If a target element was never set (because a touch event was never fired) allow the event |
| - | if (!this.targetElement) { |
| - | return true; |
| - | } |
| - | |
| - | if (event.forwardedTouchEvent) { |
| - | return true; |
| - | } |
| - | |
| - | // Programmatically generated events targeting a specific element should be permitted |
| - | if (!event.cancelable) { |
| - | return true; |
| - | } |
| - | |
| - | // Derive and check the target element to see whether the mouse event needs to be permitted; |
| - | // unless explicitly enabled, prevent non-touch click events from triggering actions, |
| - | // to prevent ghost/doubleclicks. |
| - | if (!this.needsClick(this.targetElement) || this.cancelNextClick) { |
| - | |
| - | // Prevent any user-added listeners declared on FastClick element from being fired. |
| - | if (event.stopImmediatePropagation) { |
| - | event.stopImmediatePropagation(); |
| - | } else { |
| - | |
| - | // Part of the hack for browsers that don't support Event#stopImmediatePropagation (e.g. Android 2) |
| - | event.propagationStopped = true; |
| - | } |
| - | |
| - | // Cancel the event |
| - | event.stopPropagation(); |
| - | event.preventDefault(); |
| - | |
| - | return false; |
| - | } |
| - | |
| - | // If the mouse event is permitted, return true for the action to go through. |
| - | return true; |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * On actual clicks, determine whether this is a touch-generated click, a click action occurring |
| - | * naturally after a delay after a touch (which needs to be cancelled to avoid duplication), or |
| - | * an actual click which should be permitted. |
| - | * |
| - | * @param {Event} event |
| - | * @returns {boolean} |
| - | */ |
| - | FastClick.prototype.onClick = function(event) { |
| - | 'use strict'; |
| - | var permitted; |
| - | |
| - | // It's possible for another FastClick-like library delivered with third-party code to fire a click event before FastClick does (issue #44). In that case, set the click-tracking flag back to false and return early. This will cause onTouchEnd to return early. |
| - | if (this.trackingClick) { |
| - | this.targetElement = null; |
| - | this.trackingClick = false; |
| - | return true; |
| - | } |
| - | |
| - | // Very odd behaviour on iOS (issue #18): if a submit element is present inside a form and the user hits enter in the iOS simulator or clicks the Go button on the pop-up OS keyboard the a kind of 'fake' click event will be triggered with the submit-type input element as the target. |
| - | if (event.target.type === 'submit' && event.detail === 0) { |
| - | return true; |
| - | } |
| - | |
| - | permitted = this.onMouse(event); |
| - | |
| - | // Only unset targetElement if the click is not permitted. This will ensure that the check for !targetElement in onMouse fails and the browser's click doesn't go through. |
| - | if (!permitted) { |
| - | this.targetElement = null; |
| - | } |
| - | |
| - | // If clicks are permitted, return true for the action to go through. |
| - | return permitted; |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * Remove all FastClick's event listeners. |
| - | * |
| - | * @returns {void} |
| - | */ |
| - | FastClick.prototype.destroy = function() { |
| - | 'use strict'; |
| - | var layer = this.layer; |
| - | |
| - | if (this.deviceIsAndroid) { |
| - | layer.removeEventListener('mouseover', this.onMouse, true); |
| - | layer.removeEventListener('mousedown', this.onMouse, true); |
| - | layer.removeEventListener('mouseup', this.onMouse, true); |
| - | } |
| - | |
| - | layer.removeEventListener('click', this.onClick, true); |
| - | layer.removeEventListener('touchstart', this.onTouchStart, false); |
| - | layer.removeEventListener('touchmove', this.onTouchMove, false); |
| - | layer.removeEventListener('touchend', this.onTouchEnd, false); |
| - | layer.removeEventListener('touchcancel', this.onTouchCancel, false); |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * Check whether FastClick is needed. |
| - | * |
| - | * @param {Element} layer The layer to listen on |
| - | */ |
| - | FastClick.notNeeded = function(layer) { |
| - | 'use strict'; |
| - | var metaViewport; |
| - | |
| - | // Devices that don't support touch don't need FastClick |
| - | if (typeof window.ontouchstart === 'undefined') { |
| - | return true; |
| - | } |
| - | |
| - | if ((/Chrome\/[0-9]+/).test(navigator.userAgent)) { |
| - | |
| - | // Chrome on Android with user-scalable="no" doesn't need FastClick (issue #89) |
| - | if (FastClick.prototype.deviceIsAndroid) { |
| - | metaViewport = document.querySelector('meta[name=viewport]'); |
| - | if (metaViewport && metaViewport.content.indexOf('user-scalable=no') !== -1) { |
| - | return true; |
| - | } |
| - | |
| - | // Chrome desktop doesn't need FastClick (issue #15) |
| - | } else { |
| - | return true; |
| - | } |
| - | } |
| - | |
| - | // IE10 with -ms-touch-action: none, which disables double-tap-to-zoom (issue #97) |
| - | if (layer.style.msTouchAction === 'none') { |
| - | return true; |
| - | } |
| - | |
| - | return false; |
| - | }; |
| - | |
| - | |
| - | /** |
| - | * Factory method for creating a FastClick object |
| - | * |
| - | * @param {Element} layer The layer to listen on |
| - | */ |
| - | FastClick.attach = function(layer) { |
| - | 'use strict'; |
| - | return new FastClick(layer); |
| - | }; |
| - | |
| - | |
| - | if (typeof define !== 'undefined' && define.amd) { |
| - | |
| - | // AMD. Register as an anonymous module. |
| - | define(function() { |
| - | 'use strict'; |
| - | return FastClick; |
| - | }); |
| - | } else if (typeof module !== 'undefined' && module.exports) { |
| - | module.exports = FastClick.attach; |
| - | module.exports.FastClick = FastClick; |
| - | } else { |
| - | window.FastClick = FastClick; |
| - | } |
| + | function FastClick(a,b){"use strict";function c(a,b){return function(){return a.apply(b,arguments)}}var d;if(b=b||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=b.touchBoundary||10,this.layer=a,this.tapDelay=b.tapDelay||200,!FastClick.notNeeded(a)){for(var e=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],f=this,g=0,h=e.length;h>g;g++)f[e[g]]=c(f[e[g]],f);deviceIsAndroid&&(a.addEventListener("mouseover",this.onMouse,!0),a.addEventListener("mousedown",this.onMouse,!0),a.addEventListener("mouseup",this.onMouse,!0)),a.addEventListener("click",this.onClick,!0),a.addEventListener("touchstart",this.onTouchStart,!1),a.addEventListener("touchmove",this.onTouchMove,!1),a.addEventListener("touchend",this.onTouchEnd,!1),a.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(a.removeEventListener=function(b,c,d){var e=Node.prototype.removeEventListener;"click"===b?e.call(a,b,c.hijacked||c,d):e.call(a,b,c,d)},a.addEventListener=function(b,c,d){var e=Node.prototype.addEventListener;"click"===b?e.call(a,b,c.hijacked||(c.hijacked=function(a){a.propagationStopped||c(a)}),d):e.call(a,b,c,d)}),"function"==typeof a.onclick&&(d=a.onclick,a.addEventListener("click",function(a){d(a)},!1),a.onclick=null)}}var deviceIsAndroid=navigator.userAgent.indexOf("Android")>0,deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent),deviceIsIOS4=deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent),deviceIsIOSWithBadTarget=deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent);FastClick.prototype.needsClick=function(a){"use strict";switch(a.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(a.disabled)return!0;break;case"input":if(deviceIsIOS&&"file"===a.type||a.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(a.className)},FastClick.prototype.needsFocus=function(a){"use strict";switch(a.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!deviceIsAndroid;case"input":switch(a.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!a.disabled&&!a.readOnly;default:return/\bneedsfocus\b/.test(a.className)}},FastClick.prototype.sendClick=function(a,b){"use strict";var c,d;document.activeElement&&document.activeElement!==a&&document.activeElement.blur(),d=b.changedTouches[0],c=document.createEvent("MouseEvents"),c.initMouseEvent(this.determineEventType(a),!0,!0,window,1,d.screenX,d.screenY,d.clientX,d.clientY,!1,!1,!1,!1,0,null),c.forwardedTouchEvent=!0,a.dispatchEvent(c)},FastClick.prototype.determineEventType=function(a){"use strict";return deviceIsAndroid&&"select"===a.tagName.toLowerCase()?"mousedown":"click"},FastClick.prototype.focus=function(a){"use strict";var b;deviceIsIOS&&a.setSelectionRange&&0!==a.type.indexOf("date")&&"time"!==a.type?(b=a.value.length,a.setSelectionRange(b,b)):a.focus()},FastClick.prototype.updateScrollParent=function(a){"use strict";var b,c;if(b=a.fastClickScrollParent,!b||!b.contains(a)){c=a;do{if(c.scrollHeight>c.offsetHeight){b=c,a.fastClickScrollParent=c;break}c=c.parentElement}while(c)}b&&(b.fastClickLastScrollTop=b.scrollTop)},FastClick.prototype.getTargetElementFromEventTarget=function(a){"use strict";return a.nodeType===Node.TEXT_NODE?a.parentNode:a},FastClick.prototype.onTouchStart=function(a){"use strict";var b,c,d;if(a.targetTouches.length>1)return!0;if(b=this.getTargetElementFromEventTarget(a.target),c=a.targetTouches[0],deviceIsIOS){if(d=window.getSelection(),d.rangeCount&&!d.isCollapsed)return!0;if(!deviceIsIOS4){if(c.identifier===this.lastTouchIdentifier)return a.preventDefault(),!1;this.lastTouchIdentifier=c.identifier,this.updateScrollParent(b)}}return this.trackingClick=!0,this.trackingClickStart=a.timeStamp,this.targetElement=b,this.touchStartX=c.pageX,this.touchStartY=c.pageY,a.timeStamp-this.lastClickTime<this.tapDelay&&a.preventDefault(),!0},FastClick.prototype.touchHasMoved=function(a){"use strict";var b=a.changedTouches[0],c=this.touchBoundary;return Math.abs(b.pageX-this.touchStartX)>c||Math.abs(b.pageY-this.touchStartY)>c?!0:!1},FastClick.prototype.onTouchMove=function(a){"use strict";return this.trackingClick?((this.targetElement!==this.getTargetElementFromEventTarget(a.target)||this.touchHasMoved(a))&&(this.trackingClick=!1,this.targetElement=null),!0):!0},FastClick.prototype.findControl=function(a){"use strict";return void 0!==a.control?a.control:a.htmlFor?document.getElementById(a.htmlFor):a.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},FastClick.prototype.onTouchEnd=function(a){"use strict";var b,c,d,e,f,g=this.targetElement;if(!this.trackingClick)return!0;if(a.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(this.cancelNextClick=!1,this.lastClickTime=a.timeStamp,c=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,deviceIsIOSWithBadTarget&&(f=a.changedTouches[0],g=document.elementFromPoint(f.pageX-window.pageXOffset,f.pageY-window.pageYOffset)||g,g.fastClickScrollParent=this.targetElement.fastClickScrollParent),d=g.tagName.toLowerCase(),"label"===d){if(b=this.findControl(g)){if(this.focus(g),deviceIsAndroid)return!1;g=b}}else if(this.needsFocus(g))return a.timeStamp-c>100||deviceIsIOS&&window.top!==window&&"input"===d?(this.targetElement=null,!1):(this.focus(g),this.sendClick(g,a),deviceIsIOS&&"select"===d||(this.targetElement=null,a.preventDefault()),!1);return deviceIsIOS&&!deviceIsIOS4&&(e=g.fastClickScrollParent,e&&e.fastClickLastScrollTop!==e.scrollTop)?!0:(this.needsClick(g)||(a.preventDefault(),this.sendClick(g,a)),!1)},FastClick.prototype.onTouchCancel=function(){"use strict";this.trackingClick=!1,this.targetElement=null},FastClick.prototype.onMouse=function(a){"use strict";return this.targetElement?a.forwardedTouchEvent?!0:a.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)?(a.stopImmediatePropagation?a.stopImmediatePropagation():a.propagationStopped=!0,a.stopPropagation(),a.preventDefault(),!1):!0:!0},FastClick.prototype.onClick=function(a){"use strict";var b;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===a.target.type&&0===a.detail?!0:(b=this.onMouse(a),b||(this.targetElement=null),b)},FastClick.prototype.destroy=function(){"use strict";var a=this.layer;deviceIsAndroid&&(a.removeEventListener("mouseover",this.onMouse,!0),a.removeEventListener("mousedown",this.onMouse,!0),a.removeEventListener("mouseup",this.onMouse,!0)),a.removeEventListener("click",this.onClick,!0),a.removeEventListener("touchstart",this.onTouchStart,!1),a.removeEventListener("touchmove",this.onTouchMove,!1),a.removeEventListener("touchend",this.onTouchEnd,!1),a.removeEventListener("touchcancel",this.onTouchCancel,!1)},FastClick.notNeeded=function(a){"use strict";var b,c;if("undefined"==typeof window.ontouchstart)return!0;if(c=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!deviceIsAndroid)return!0;if(b=document.querySelector("meta[name=viewport]")){if(-1!==b.content.indexOf("user-scalable=no"))return!0;if(c>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}return"none"===a.style.msTouchAction?!0:!1},FastClick.attach=function(a,b){"use strict";return new FastClick(a,b)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){"use strict";return FastClick}):"undefined"!=typeof module&&module.exports?(module.exports=FastClick.attach,module.exports.FastClick=FastClick):window.FastClick=FastClick; |
generators/foundation5/public/javascripts/vendor/jquery.cookie.js
+2
-101
| @@ | @@ -1,107 +1,8 @@ |
| /*! | |
| - | * jQuery Cookie Plugin v1.3.1 |
| + | * jQuery Cookie Plugin v1.4.1 |
| * https://github.com/carhartl/jquery-cookie | |
| * | |
| * Copyright 2013 Klaus Hartl | |
| * Released under the MIT license | |
| */ | |
| - | (function (factory) { |
| - | if (typeof define === 'function' && define.amd) { |
| - | // AMD. Register as anonymous module. |
| - | define(['jquery'], factory); |
| - | } else { |
| - | // Browser globals. |
| - | factory(jQuery); |
| - | } |
| - | }(function ($) { |
| - | |
| - | var pluses = /\+/g; |
| - | |
| - | function decode(s) { |
| - | if (config.raw) { |
| - | return s; |
| - | } |
| - | try { |
| - | // If we can't decode the cookie, ignore it, it's unusable. |
| - | return decodeURIComponent(s.replace(pluses, ' ')); |
| - | } catch(e) {} |
| - | } |
| - | |
| - | function decodeAndParse(s) { |
| - | if (s.indexOf('"') === 0) { |
| - | // This is a quoted cookie as according to RFC2068, unescape... |
| - | s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\'); |
| - | } |
| - | |
| - | s = decode(s); |
| - | |
| - | try { |
| - | // If we can't parse the cookie, ignore it, it's unusable. |
| - | return config.json ? JSON.parse(s) : s; |
| - | } catch(e) {} |
| - | } |
| - | |
| - | var config = $.cookie = function (key, value, options) { |
| - | |
| - | // Write |
| - | if (value !== undefined) { |
| - | options = $.extend({}, config.defaults, options); |
| - | |
| - | if (typeof options.expires === 'number') { |
| - | var days = options.expires, t = options.expires = new Date(); |
| - | t.setDate(t.getDate() + days); |
| - | } |
| - | |
| - | value = config.json ? JSON.stringify(value) : String(value); |
| - | |
| - | return (document.cookie = [ |
| - | config.raw ? key : encodeURIComponent(key), |
| - | '=', |
| - | config.raw ? value : encodeURIComponent(value), |
| - | options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE |
| - | options.path ? '; path=' + options.path : '', |
| - | options.domain ? '; domain=' + options.domain : '', |
| - | options.secure ? '; secure' : '' |
| - | ].join('')); |
| - | } |
| - | |
| - | // Read |
| - | |
| - | var result = key ? undefined : {}; |
| - | |
| - | // To prevent the for loop in the first place assign an empty array |
| - | // in case there are no cookies at all. Also prevents odd result when |
| - | // calling $.cookie(). |
| - | var cookies = document.cookie ? document.cookie.split('; ') : []; |
| - | |
| - | for (var i = 0, l = cookies.length; i < l; i++) { |
| - | var parts = cookies[i].split('='); |
| - | var name = decode(parts.shift()); |
| - | var cookie = parts.join('='); |
| - | |
| - | if (key && key === name) { |
| - | result = decodeAndParse(cookie); |
| - | break; |
| - | } |
| - | |
| - | // Prevent storing a cookie that we couldn't decode. |
| - | if (!key && (cookie = decodeAndParse(cookie)) !== undefined) { |
| - | result[name] = cookie; |
| - | } |
| - | } |
| - | |
| - | return result; |
| - | }; |
| - | |
| - | config.defaults = {}; |
| - | |
| - | $.removeCookie = function (key, options) { |
| - | if ($.cookie(key) !== undefined) { |
| - | // Must not alter options, thus extending a fresh object... |
| - | $.cookie(key, '', $.extend({}, options, { expires: -1 })); |
| - | return true; |
| - | } |
| - | return false; |
| - | }; |
| - | |
| - | })); |
| + | !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}}); |
generators/foundation5/public/javascripts/vendor/jquery.js
+9
-8812
| @@ | @@ -1,8829 +1,26 @@ |
| /*! | |
| - | * jQuery JavaScript Library v2.0.3 |
| + | * jQuery JavaScript Library v2.1.1 |
| * http://jquery.com/ | |
| * | |
| * Includes Sizzle.js | |
| * http://sizzlejs.com/ | |
| * | |
| - | * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors |
| + | * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors |
| * Released under the MIT license | |
| * http://jquery.org/license | |
| * | |
| - | * Date: 2013-07-03T13:30Z |
| + | * Date: 2014-05-01T17:11Z |
| */ | |
| - | (function( window, undefined ) { |
| - | |
| - | // Can't do this because several apps including ASP.NET trace |
| - | // the stack via arguments.caller.callee and Firefox dies if |
| - | // you try to trace through "use strict" call chains. (#13335) |
| - | // Support: Firefox 18+ |
| - | //"use strict"; |
| - | var |
| - | // A central reference to the root jQuery(document) |
| - | rootjQuery, |
| - | |
| - | // The deferred used on DOM ready |
| - | readyList, |
| - | |
| - | // Support: IE9 |
| - | // For `typeof xmlNode.method` instead of `xmlNode.method !== undefined` |
| - | core_strundefined = typeof undefined, |
| - | |
| - | // Use the correct document accordingly with window argument (sandbox) |
| - | location = window.location, |
| - | document = window.document, |
| - | docElem = document.documentElement, |
| - | |
| - | // Map over jQuery in case of overwrite |
| - | _jQuery = window.jQuery, |
| - | |
| - | // Map over the $ in case of overwrite |
| - | _$ = window.$, |
| - | |
| - | // [[Class]] -> type pairs |
| - | class2type = {}, |
| - | |
| - | // List of deleted data cache ids, so we can reuse them |
| - | core_deletedIds = [], |
| - | |
| - | core_version = "2.0.3", |
| - | |
| - | // Save a reference to some core methods |
| - | core_concat = core_deletedIds.concat, |
| - | core_push = core_deletedIds.push, |
| - | core_slice = core_deletedIds.slice, |
| - | core_indexOf = core_deletedIds.indexOf, |
| - | core_toString = class2type.toString, |
| - | core_hasOwn = class2type.hasOwnProperty, |
| - | core_trim = core_version.trim, |
| - | |
| - | // Define a local copy of jQuery |
| - | jQuery = function( selector, context ) { |
| - | // The jQuery object is actually just the init constructor 'enhanced' |
| - | return new jQuery.fn.init( selector, context, rootjQuery ); |
| - | }, |
| - | |
| - | // Used for matching numbers |
| - | core_pnum = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, |
| - | |
| - | // Used for splitting on whitespace |
| - | core_rnotwhite = /\S+/g, |
| - | |
| - | // A simple way to check for HTML strings |
| - | // Prioritize #id over <tag> to avoid XSS via location.hash (#9521) |
| - | // Strict HTML recognition (#11290: must start with <) |
| - | rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, |
| - | |
| - | // Match a standalone tag |
| - | rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, |
| - | |
| - | // Matches dashed string for camelizing |
| - | rmsPrefix = /^-ms-/, |
| - | rdashAlpha = /-([\da-z])/gi, |
| - | |
| - | // Used by jQuery.camelCase as callback to replace() |
| - | fcamelCase = function( all, letter ) { |
| - | return letter.toUpperCase(); |
| - | }, |
| - | |
| - | // The ready event handler and self cleanup method |
| - | completed = function() { |
| - | document.removeEventListener( "DOMContentLoaded", completed, false ); |
| - | window.removeEventListener( "load", completed, false ); |
| - | jQuery.ready(); |
| - | }; |
| - | |
| - | jQuery.fn = jQuery.prototype = { |
| - | // The current version of jQuery being used |
| - | jquery: core_version, |
| - | |
| - | constructor: jQuery, |
| - | init: function( selector, context, rootjQuery ) { |
| - | var match, elem; |
| - | |
| - | // HANDLE: $(""), $(null), $(undefined), $(false) |
| - | if ( !selector ) { |
| - | return this; |
| - | } |
| - | |
| - | // Handle HTML strings |
| - | if ( typeof selector === "string" ) { |
| - | if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) { |
| - | // Assume that strings that start and end with <> are HTML and skip the regex check |
| - | match = [ null, selector, null ]; |
| - | |
| - | } else { |
| - | match = rquickExpr.exec( selector ); |
| - | } |
| - | |
| - | // Match html or make sure no context is specified for #id |
| - | if ( match && (match[1] || !context) ) { |
| - | |
| - | // HANDLE: $(html) -> $(array) |
| - | if ( match[1] ) { |
| - | context = context instanceof jQuery ? context[0] : context; |
| - | |
| - | // scripts is true for back-compat |
| - | jQuery.merge( this, jQuery.parseHTML( |
| - | match[1], |
| - | context && context.nodeType ? context.ownerDocument || context : document, |
| - | true |
| - | ) ); |
| - | |
| - | // HANDLE: $(html, props) |
| - | if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) { |
| - | for ( match in context ) { |
| - | // Properties of context are called as methods if possible |
| - | if ( jQuery.isFunction( this[ match ] ) ) { |
| - | this[ match ]( context[ match ] ); |
| - | |
| - | // ...and otherwise set as attributes |
| - | } else { |
| - | this.attr( match, context[ match ] ); |
| - | } |
| - | } |
| - | } |
| - | |
| - | return this; |
| - | |
| - | // HANDLE: $(#id) |
| - | } else { |
| - | elem = document.getElementById( match[2] ); |
| - | |
| - | // Check parentNode to catch when Blackberry 4.6 returns |
| - | // nodes that are no longer in the document #6963 |
| - | if ( elem && elem.parentNode ) { |
| - | // Inject the element directly into the jQuery object |
| - | this.length = 1; |
| - | this[0] = elem; |
| - | } |
| - | |
| - | this.context = document; |
| - | this.selector = selector; |
| - | return this; |
| - | } |
| - | |
| - | // HANDLE: $(expr, $(...)) |
| - | } else if ( !context || context.jquery ) { |
| - | return ( context || rootjQuery ).find( selector ); |
| - | |
| - | // HANDLE: $(expr, context) |
| - | // (which is just equivalent to: $(context).find(expr) |
| - | } else { |
| - | return this.constructor( context ).find( selector ); |
| - | } |
| - | |
| - | // HANDLE: $(DOMElement) |
| - | } else if ( selector.nodeType ) { |
| - | this.context = this[0] = selector; |
| - | this.length = 1; |
| - | return this; |
| - | |
| - | // HANDLE: $(function) |
| - | // Shortcut for document ready |
| - | } else if ( jQuery.isFunction( selector ) ) { |
| - | return rootjQuery.ready( selector ); |
| - | } |
| - | |
| - | if ( selector.selector !== undefined ) { |
| - | this.selector = selector.selector; |
| - | this.context = selector.context; |
| - | } |
| - | |
| - | return jQuery.makeArray( selector, this ); |
| - | }, |
| - | |
| - | // Start with an empty selector |
| - | selector: "", |
| - | |
| - | // The default length of a jQuery object is 0 |
| - | length: 0, |
| - | |
| - | toArray: function() { |
| - | return core_slice.call( this ); |
| - | }, |
| - | |
| - | // Get the Nth element in the matched element set OR |
| - | // Get the whole matched element set as a clean array |
| - | get: function( num ) { |
| - | return num == null ? |
| - | |
| - | // Return a 'clean' array |
| - | this.toArray() : |
| - | |
| - | // Return just the object |
| - | ( num < 0 ? this[ this.length + num ] : this[ num ] ); |
| - | }, |
| - | |
| - | // Take an array of elements and push it onto the stack |
| - | // (returning the new matched element set) |
| - | pushStack: function( elems ) { |
| - | |
| - | // Build a new jQuery matched element set |
| - | var ret = jQuery.merge( this.constructor(), elems ); |
| - | |
| - | // Add the old object onto the stack (as a reference) |
| - | ret.prevObject = this; |
| - | ret.context = this.context; |
| - | |
| - | // Return the newly-formed element set |
| - | return ret; |
| - | }, |
| - | |
| - | // Execute a callback for every element in the matched set. |
| - | // (You can seed the arguments with an array of args, but this is |
| - | // only used internally.) |
| - | each: function( callback, args ) { |
| - | return jQuery.each( this, callback, args ); |
| - | }, |
| - | |
| - | ready: function( fn ) { |
| - | // Add the callback |
| - | jQuery.ready.promise().done( fn ); |
| - | |
| - | return this; |
| - | }, |
| - | |
| - | slice: function() { |
| - | return this.pushStack( core_slice.apply( this, arguments ) ); |
| - | }, |
| - | |
| - | first: function() { |
| - | return this.eq( 0 ); |
| - | }, |
| - | |
| - | last: function() { |
| - | return this.eq( -1 ); |
| - | }, |
| - | |
| - | eq: function( i ) { |
| - | var len = this.length, |
| - | j = +i + ( i < 0 ? len : 0 ); |
| - | return this.pushStack( j >= 0 && j < len ? [ this[j] ] : [] ); |
| - | }, |
| - | |
| - | map: function( callback ) { |
| - | return this.pushStack( jQuery.map(this, function( elem, i ) { |
| - | return callback.call( elem, i, elem ); |
| - | })); |
| - | }, |
| - | |
| - | end: function() { |
| - | return this.prevObject || this.constructor(null); |
| - | }, |
| - | |
| - | // For internal use only. |
| - | // Behaves like an Array's method, not like a jQuery method. |
| - | push: core_push, |
| - | sort: [].sort, |
| - | splice: [].splice |
| - | }; |
| - | |
| - | // Give the init function the jQuery prototype for later instantiation |
| - | jQuery.fn.init.prototype = jQuery.fn; |
| - | |
| - | jQuery.extend = jQuery.fn.extend = function() { |
| - | var options, name, src, copy, copyIsArray, clone, |
| - | target = arguments[0] || {}, |
| - | i = 1, |
| - | length = arguments.length, |
| - | deep = false; |
| - | |
| - | // Handle a deep copy situation |
| - | if ( typeof target === "boolean" ) { |
| - | deep = target; |
| - | target = arguments[1] || {}; |
| - | // skip the boolean and the target |
| - | i = 2; |
| - | } |
| - | |
| - | // Handle case when target is a string or something (possible in deep copy) |
| - | if ( typeof target !== "object" && !jQuery.isFunction(target) ) { |
| - | target = {}; |
| - | } |
| - | |
| - | // extend jQuery itself if only one argument is passed |
| - | if ( length === i ) { |
| - | target = this; |
| - | --i; |
| - | } |
| - | |
| - | for ( ; i < length; i++ ) { |
| - | // Only deal with non-null/undefined values |
| - | if ( (options = arguments[ i ]) != null ) { |
| - | // Extend the base object |
| - | for ( name in options ) { |
| - | src = target[ name ]; |
| - | copy = options[ name ]; |
| - | |
| - | // Prevent never-ending loop |
| - | if ( target === copy ) { |
| - | continue; |
| - | } |
| - | |
| - | // Recurse if we're merging plain objects or arrays |
| - | if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) { |
| - | if ( copyIsArray ) { |
| - | copyIsArray = false; |
| - | clone = src && jQuery.isArray(src) ? src : []; |
| - | |
| - | } else { |
| - | clone = src && jQuery.isPlainObject(src) ? src : {}; |
| - | } |
| - | |
| - | // Never move original objects, clone them |
| - | target[ name ] = jQuery.extend( deep, clone, copy ); |
| - | |
| - | // Don't bring in undefined values |
| - | } else if ( copy !== undefined ) { |
| - | target[ name ] = copy; |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Return the modified object |
| - | return target; |
| - | }; |
| - | |
| - | jQuery.extend({ |
| - | // Unique for each copy of jQuery on the page |
| - | expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ), |
| - | |
| - | noConflict: function( deep ) { |
| - | if ( window.$ === jQuery ) { |
| - | window.$ = _$; |
| - | } |
| - | |
| - | if ( deep && window.jQuery === jQuery ) { |
| - | window.jQuery = _jQuery; |
| - | } |
| - | |
| - | return jQuery; |
| - | }, |
| - | |
| - | // Is the DOM ready to be used? Set to true once it occurs. |
| - | isReady: false, |
| - | |
| - | // A counter to track how many items to wait for before |
| - | // the ready event fires. See #6781 |
| - | readyWait: 1, |
| - | |
| - | // Hold (or release) the ready event |
| - | holdReady: function( hold ) { |
| - | if ( hold ) { |
| - | jQuery.readyWait++; |
| - | } else { |
| - | jQuery.ready( true ); |
| - | } |
| - | }, |
| - | |
| - | // Handle when the DOM is ready |
| - | ready: function( wait ) { |
| - | |
| - | // Abort if there are pending holds or we're already ready |
| - | if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) { |
| - | return; |
| - | } |
| - | |
| - | // Remember that the DOM is ready |
| - | jQuery.isReady = true; |
| - | |
| - | // If a normal DOM Ready event fired, decrement, and wait if need be |
| - | if ( wait !== true && --jQuery.readyWait > 0 ) { |
| - | return; |
| - | } |
| - | |
| - | // If there are functions bound, to execute |
| - | readyList.resolveWith( document, [ jQuery ] ); |
| - | |
| - | // Trigger any bound ready events |
| - | if ( jQuery.fn.trigger ) { |
| - | jQuery( document ).trigger("ready").off("ready"); |
| - | } |
| - | }, |
| - | |
| - | // See test/unit/core.js for details concerning isFunction. |
| - | // Since version 1.3, DOM methods and functions like alert |
| - | // aren't supported. They return false on IE (#2968). |
| - | isFunction: function( obj ) { |
| - | return jQuery.type(obj) === "function"; |
| - | }, |
| - | |
| - | isArray: Array.isArray, |
| - | |
| - | isWindow: function( obj ) { |
| - | return obj != null && obj === obj.window; |
| - | }, |
| - | |
| - | isNumeric: function( obj ) { |
| - | return !isNaN( parseFloat(obj) ) && isFinite( obj ); |
| - | }, |
| - | |
| - | type: function( obj ) { |
| - | if ( obj == null ) { |
| - | return String( obj ); |
| - | } |
| - | // Support: Safari <= 5.1 (functionish RegExp) |
| - | return typeof obj === "object" || typeof obj === "function" ? |
| - | class2type[ core_toString.call(obj) ] || "object" : |
| - | typeof obj; |
| - | }, |
| - | |
| - | isPlainObject: function( obj ) { |
| - | // Not plain objects: |
| - | // - Any object or value whose internal [[Class]] property is not "[object Object]" |
| - | // - DOM nodes |
| - | // - window |
| - | if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { |
| - | return false; |
| - | } |
| - | |
| - | // Support: Firefox <20 |
| - | // The try/catch suppresses exceptions thrown when attempting to access |
| - | // the "constructor" property of certain host objects, ie. |window.location| |
| - | // https://bugzilla.mozilla.org/show_bug.cgi?id=814622 |
| - | try { |
| - | if ( obj.constructor && |
| - | !core_hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) { |
| - | return false; |
| - | } |
| - | } catch ( e ) { |
| - | return false; |
| - | } |
| - | |
| - | // If the function hasn't returned already, we're confident that |
| - | // |obj| is a plain object, created by {} or constructed with new Object |
| - | return true; |
| - | }, |
| - | |
| - | isEmptyObject: function( obj ) { |
| - | var name; |
| - | for ( name in obj ) { |
| - | return false; |
| - | } |
| - | return true; |
| - | }, |
| - | |
| - | error: function( msg ) { |
| - | throw new Error( msg ); |
| - | }, |
| - | |
| - | // data: string of html |
| - | // context (optional): If specified, the fragment will be created in this context, defaults to document |
| - | // keepScripts (optional): If true, will include scripts passed in the html string |
| - | parseHTML: function( data, context, keepScripts ) { |
| - | if ( !data || typeof data !== "string" ) { |
| - | return null; |
| - | } |
| - | if ( typeof context === "boolean" ) { |
| - | keepScripts = context; |
| - | context = false; |
| - | } |
| - | context = context || document; |
| - | |
| - | var parsed = rsingleTag.exec( data ), |
| - | scripts = !keepScripts && []; |
| - | |
| - | // Single tag |
| - | if ( parsed ) { |
| - | return [ context.createElement( parsed[1] ) ]; |
| - | } |
| - | |
| - | parsed = jQuery.buildFragment( [ data ], context, scripts ); |
| - | |
| - | if ( scripts ) { |
| - | jQuery( scripts ).remove(); |
| - | } |
| - | |
| - | return jQuery.merge( [], parsed.childNodes ); |
| - | }, |
| - | |
| - | parseJSON: JSON.parse, |
| - | |
| - | // Cross-browser xml parsing |
| - | parseXML: function( data ) { |
| - | var xml, tmp; |
| - | if ( !data || typeof data !== "string" ) { |
| - | return null; |
| - | } |
| - | |
| - | // Support: IE9 |
| - | try { |
| - | tmp = new DOMParser(); |
| - | xml = tmp.parseFromString( data , "text/xml" ); |
| - | } catch ( e ) { |
| - | xml = undefined; |
| - | } |
| - | |
| - | if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) { |
| - | jQuery.error( "Invalid XML: " + data ); |
| - | } |
| - | return xml; |
| - | }, |
| - | |
| - | noop: function() {}, |
| - | |
| - | // Evaluates a script in a global context |
| - | globalEval: function( code ) { |
| - | var script, |
| - | indirect = eval; |
| - | |
| - | code = jQuery.trim( code ); |
| - | |
| - | if ( code ) { |
| - | // If the code includes a valid, prologue position |
| - | // strict mode pragma, execute code by injecting a |
| - | // script tag into the document. |
| - | if ( code.indexOf("use strict") === 1 ) { |
| - | script = document.createElement("script"); |
| - | script.text = code; |
| - | document.head.appendChild( script ).parentNode.removeChild( script ); |
| - | } else { |
| - | // Otherwise, avoid the DOM node creation, insertion |
| - | // and removal by using an indirect global eval |
| - | indirect( code ); |
| - | } |
| - | } |
| - | }, |
| - | |
| - | // Convert dashed to camelCase; used by the css and data modules |
| - | // Microsoft forgot to hump their vendor prefix (#9572) |
| - | camelCase: function( string ) { |
| - | return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase ); |
| - | }, |
| - | |
| - | nodeName: function( elem, name ) { |
| - | return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase(); |
| - | }, |
| - | |
| - | // args is for internal usage only |
| - | each: function( obj, callback, args ) { |
| - | var value, |
| - | i = 0, |
| - | length = obj.length, |
| - | isArray = isArraylike( obj ); |
| - | |
| - | if ( args ) { |
| - | if ( isArray ) { |
| - | for ( ; i < length; i++ ) { |
| - | value = callback.apply( obj[ i ], args ); |
| - | |
| - | if ( value === false ) { |
| - | break; |
| - | } |
| - | } |
| - | } else { |
| - | for ( i in obj ) { |
| - | value = callback.apply( obj[ i ], args ); |
| - | |
| - | if ( value === false ) { |
| - | break; |
| - | } |
| - | } |
| - | } |
| - | |
| - | // A special, fast, case for the most common use of each |
| - | } else { |
| - | if ( isArray ) { |
| - | for ( ; i < length; i++ ) { |
| - | value = callback.call( obj[ i ], i, obj[ i ] ); |
| - | |
| - | if ( value === false ) { |
| - | break; |
| - | } |
| - | } |
| - | } else { |
| - | for ( i in obj ) { |
| - | value = callback.call( obj[ i ], i, obj[ i ] ); |
| - | |
| - | if ( value === false ) { |
| - | break; |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | return obj; |
| - | }, |
| - | |
| - | trim: function( text ) { |
| - | return text == null ? "" : core_trim.call( text ); |
| - | }, |
| - | |
| - | // results is for internal usage only |
| - | makeArray: function( arr, results ) { |
| - | var ret = results || []; |
| - | |
| - | if ( arr != null ) { |
| - | if ( isArraylike( Object(arr) ) ) { |
| - | jQuery.merge( ret, |
| - | typeof arr === "string" ? |
| - | [ arr ] : arr |
| - | ); |
| - | } else { |
| - | core_push.call( ret, arr ); |
| - | } |
| - | } |
| - | |
| - | return ret; |
| - | }, |
| - | |
| - | inArray: function( elem, arr, i ) { |
| - | return arr == null ? -1 : core_indexOf.call( arr, elem, i ); |
| - | }, |
| - | |
| - | merge: function( first, second ) { |
| - | var l = second.length, |
| - | i = first.length, |
| - | j = 0; |
| - | |
| - | if ( typeof l === "number" ) { |
| - | for ( ; j < l; j++ ) { |
| - | first[ i++ ] = second[ j ]; |
| - | } |
| - | } else { |
| - | while ( second[j] !== undefined ) { |
| - | first[ i++ ] = second[ j++ ]; |
| - | } |
| - | } |
| - | |
| - | first.length = i; |
| - | |
| - | return first; |
| - | }, |
| - | |
| - | grep: function( elems, callback, inv ) { |
| - | var retVal, |
| - | ret = [], |
| - | i = 0, |
| - | length = elems.length; |
| - | inv = !!inv; |
| - | |
| - | // Go through the array, only saving the items |
| - | // that pass the validator function |
| - | for ( ; i < length; i++ ) { |
| - | retVal = !!callback( elems[ i ], i ); |
| - | if ( inv !== retVal ) { |
| - | ret.push( elems[ i ] ); |
| - | } |
| - | } |
| - | |
| - | return ret; |
| - | }, |
| - | |
| - | // arg is for internal usage only |
| - | map: function( elems, callback, arg ) { |
| - | var value, |
| - | i = 0, |
| - | length = elems.length, |
| - | isArray = isArraylike( elems ), |
| - | ret = []; |
| - | |
| - | // Go through the array, translating each of the items to their |
| - | if ( isArray ) { |
| - | for ( ; i < length; i++ ) { |
| - | value = callback( elems[ i ], i, arg ); |
| - | |
| - | if ( value != null ) { |
| - | ret[ ret.length ] = value; |
| - | } |
| - | } |
| - | |
| - | // Go through every key on the object, |
| - | } else { |
| - | for ( i in elems ) { |
| - | value = callback( elems[ i ], i, arg ); |
| - | |
| - | if ( value != null ) { |
| - | ret[ ret.length ] = value; |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Flatten any nested arrays |
| - | return core_concat.apply( [], ret ); |
| - | }, |
| - | |
| - | // A global GUID counter for objects |
| - | guid: 1, |
| - | |
| - | // Bind a function to a context, optionally partially applying any |
| - | // arguments. |
| - | proxy: function( fn, context ) { |
| - | var tmp, args, proxy; |
| - | |
| - | if ( typeof context === "string" ) { |
| - | tmp = fn[ context ]; |
| - | context = fn; |
| - | fn = tmp; |
| - | } |
| - | |
| - | // Quick check to determine if target is callable, in the spec |
| - | // this throws a TypeError, but we will just return undefined. |
| - | if ( !jQuery.isFunction( fn ) ) { |
| - | return undefined; |
| - | } |
| - | |
| - | // Simulated bind |
| - | args = core_slice.call( arguments, 2 ); |
| - | proxy = function() { |
| - | return fn.apply( context || this, args.concat( core_slice.call( arguments ) ) ); |
| - | }; |
| - | |
| - | // Set the guid of unique handler to the same of original handler, so it can be removed |
| - | proxy.guid = fn.guid = fn.guid || jQuery.guid++; |
| - | |
| - | return proxy; |
| - | }, |
| - | |
| - | // Multifunctional method to get and set values of a collection |
| - | // The value/s can optionally be executed if it's a function |
| - | access: function( elems, fn, key, value, chainable, emptyGet, raw ) { |
| - | var i = 0, |
| - | length = elems.length, |
| - | bulk = key == null; |
| - | |
| - | // Sets many values |
| - | if ( jQuery.type( key ) === "object" ) { |
| - | chainable = true; |
| - | for ( i in key ) { |
| - | jQuery.access( elems, fn, i, key[i], true, emptyGet, raw ); |
| - | } |
| - | |
| - | // Sets one value |
| - | } else if ( value !== undefined ) { |
| - | chainable = true; |
| - | |
| - | if ( !jQuery.isFunction( value ) ) { |
| - | raw = true; |
| - | } |
| - | |
| - | if ( bulk ) { |
| - | // Bulk operations run against the entire set |
| - | if ( raw ) { |
| - | fn.call( elems, value ); |
| - | fn = null; |
| - | |
| - | // ...except when executing function values |
| - | } else { |
| - | bulk = fn; |
| - | fn = function( elem, key, value ) { |
| - | return bulk.call( jQuery( elem ), value ); |
| - | }; |
| - | } |
| - | } |
| - | |
| - | if ( fn ) { |
| - | for ( ; i < length; i++ ) { |
| - | fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) ); |
| - | } |
| - | } |
| - | } |
| - | |
| - | return chainable ? |
| - | elems : |
| - | |
| - | // Gets |
| - | bulk ? |
| - | fn.call( elems ) : |
| - | length ? fn( elems[0], key ) : emptyGet; |
| - | }, |
| - | |
| - | now: Date.now, |
| - | |
| - | // A method for quickly swapping in/out CSS properties to get correct calculations. |
| - | // Note: this method belongs to the css module but it's needed here for the support module. |
| - | // If support gets modularized, this method should be moved back to the css module. |
| - | swap: function( elem, options, callback, args ) { |
| - | var ret, name, |
| - | old = {}; |
| - | |
| - | // Remember the old values, and insert the new ones |
| - | for ( name in options ) { |
| - | old[ name ] = elem.style[ name ]; |
| - | elem.style[ name ] = options[ name ]; |
| - | } |
| - | |
| - | ret = callback.apply( elem, args || [] ); |
| - | |
| - | // Revert the old values |
| - | for ( name in options ) { |
| - | elem.style[ name ] = old[ name ]; |
| - | } |
| - | |
| - | return ret; |
| - | } |
| - | }); |
| - | |
| - | jQuery.ready.promise = function( obj ) { |
| - | if ( !readyList ) { |
| - | |
| - | readyList = jQuery.Deferred(); |
| - | |
| - | // Catch cases where $(document).ready() is called after the browser event has already occurred. |
| - | // we once tried to use readyState "interactive" here, but it caused issues like the one |
| - | // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15 |
| - | if ( document.readyState === "complete" ) { |
| - | // Handle it asynchronously to allow scripts the opportunity to delay ready |
| - | setTimeout( jQuery.ready ); |
| - | |
| - | } else { |
| - | |
| - | // Use the handy event callback |
| - | document.addEventListener( "DOMContentLoaded", completed, false ); |
| - | |
| - | // A fallback to window.onload, that will always work |
| - | window.addEventListener( "load", completed, false ); |
| - | } |
| - | } |
| - | return readyList.promise( obj ); |
| - | }; |
| - | |
| - | // Populate the class2type map |
| - | jQuery.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(i, name) { |
| - | class2type[ "[object " + name + "]" ] = name.toLowerCase(); |
| - | }); |
| - | |
| - | function isArraylike( obj ) { |
| - | var length = obj.length, |
| - | type = jQuery.type( obj ); |
| - | |
| - | if ( jQuery.isWindow( obj ) ) { |
| - | return false; |
| - | } |
| - | |
| - | if ( obj.nodeType === 1 && length ) { |
| - | return true; |
| - | } |
| - | |
| - | return type === "array" || type !== "function" && |
| - | ( length === 0 || |
| - | typeof length === "number" && length > 0 && ( length - 1 ) in obj ); |
| - | } |
| - | |
| - | // All jQuery objects should point back to these |
| - | rootjQuery = jQuery(document); |
| - | /*! |
| - | * Sizzle CSS Selector Engine v1.9.4-pre |
| + | !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=a.length,c=_.type(a);return"function"===c||_.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function d(a,b,c){if(_.isFunction(b))return _.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return _.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(hb.test(b))return _.filter(b,a,c);b=_.filter(b,a)}return _.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=ob[a]={};return _.each(a.match(nb)||[],function(a,c){b[c]=!0}),b}function g(){Z.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),_.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=_.expando+Math.random()}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ub,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:tb.test(c)?_.parseJSON(c):c}catch(e){}sb.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return Z.activeElement}catch(a){}}function m(a,b){return _.nodeName(a,"table")&&_.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Kb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)rb.set(a[c],"globalEval",!b||rb.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(rb.hasData(a)&&(f=rb.access(a),g=rb.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)_.event.add(b,e,j[e][c])}sb.hasData(a)&&(h=sb.access(a),i=_.extend({},h),sb.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&_.nodeName(a,b)?_.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&yb.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function t(b,c){var d,e=_(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:_.css(e[0],"display");return e.detach(),f}function u(a){var b=Z,c=Ob[a];return c||(c=t(a,b),"none"!==c&&c||(Nb=(Nb||_("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=Nb[0].contentDocument,b.write(),b.close(),c=t(a,b),Nb.detach()),Ob[a]=c),c}function v(a,b,c){var d,e,f,g,h=a.style;return c=c||Rb(a),c&&(g=c.getPropertyValue(b)||c[b]),c&&(""!==g||_.contains(a.ownerDocument,a)||(g=_.style(a,b)),Qb.test(g)&&Pb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0!==g?g+"":g}function w(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}function x(a,b){if(b in a)return b;for(var c=b[0].toUpperCase()+b.slice(1),d=b,e=Xb.length;e--;)if(b=Xb[e]+c,b in a)return b;return d}function y(a,b,c){var d=Tb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function z(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=_.css(a,c+wb[f],!0,e)),d?("content"===c&&(g-=_.css(a,"padding"+wb[f],!0,e)),"margin"!==c&&(g-=_.css(a,"border"+wb[f]+"Width",!0,e))):(g+=_.css(a,"padding"+wb[f],!0,e),"padding"!==c&&(g+=_.css(a,"border"+wb[f]+"Width",!0,e)));return g}function A(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Rb(a),g="border-box"===_.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=v(a,b,f),(0>e||null==e)&&(e=a.style[b]),Qb.test(e))return e;d=g&&(Y.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+z(a,b,c||(g?"border":"content"),d,f)+"px"}function B(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=rb.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&xb(d)&&(f[g]=rb.access(d,"olddisplay",u(d.nodeName)))):(e=xb(d),"none"===c&&e||rb.set(d,"olddisplay",e?c:_.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function C(a,b,c,d,e){return new C.prototype.init(a,b,c,d,e)}function D(){return setTimeout(function(){Yb=void 0}),Yb=_.now()}function E(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=wb[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function F(a,b,c){for(var d,e=(cc[b]||[]).concat(cc["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function G(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},n=a.style,o=a.nodeType&&xb(a),p=rb.get(a,"fxshow");c.queue||(h=_._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,_.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[n.overflow,n.overflowX,n.overflowY],j=_.css(a,"display"),k="none"===j?rb.get(a,"olddisplay")||u(a.nodeName):j,"inline"===k&&"none"===_.css(a,"float")&&(n.display="inline-block")),c.overflow&&(n.overflow="hidden",l.always(function(){n.overflow=c.overflow[0],n.overflowX=c.overflow[1],n.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],$b.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(o?"hide":"show")){if("show"!==e||!p||void 0===p[d])continue;o=!0}m[d]=p&&p[d]||_.style(a,d)}else j=void 0;if(_.isEmptyObject(m))"inline"===("none"===j?u(a.nodeName):j)&&(n.display=j);else{p?"hidden"in p&&(o=p.hidden):p=rb.access(a,"fxshow",{}),f&&(p.hidden=!o),o?_(a).show():l.done(function(){_(a).hide()}),l.done(function(){var b;rb.remove(a,"fxshow");for(b in m)_.style(a,b,m[b])});for(d in m)g=F(o?p[d]:0,d,l),d in p||(p[d]=g.start,o&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function H(a,b){var c,d,e,f,g;for(c in a)if(d=_.camelCase(c),e=b[d],f=a[c],_.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=_.cssHooks[d],g&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function I(a,b,c){var d,e,f=0,g=bc.length,h=_.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Yb||D(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:_.extend({},b),opts:_.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:Yb||D(),duration:c.duration,tweens:[],createTween:function(b,c){var d=_.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(H(k,j.opts.specialEasing);g>f;f++)if(d=bc[f].call(j,a,k,j.opts))return d;return _.map(k,F,j),_.isFunction(j.opts.start)&&j.opts.start.call(a,j),_.fx.timer(_.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}function J(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(nb)||[];if(_.isFunction(c))for(;d=f[e++];)"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function K(a,b,c,d){function e(h){var i;return f[h]=!0,_.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||g||f[j]?g?!(i=j):void 0:(b.dataTypes.unshift(j),e(j),!1)}),i}var f={},g=a===vc;return e(b.dataTypes[0])||!f["*"]&&e("*")}function L(a,b){var c,d,e=_.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&_.extend(!0,a,d),a}function M(a,b,c){for(var d,e,f,g,h=a.contents,i=a.dataTypes;"*"===i[0];)i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function N(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];for(f=k.shift();f;)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a["throws"])b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}function O(a,b,c,d){var e;if(_.isArray(b))_.each(b,function(b,e){c||zc.test(a)?d(a,e):O(a+"["+("object"==typeof e?b:"")+"]",e,c,d)});else if(c||"object"!==_.type(b))d(a,b);else for(e in b)O(a+"["+e+"]",b[e],c,d)}function P(a){return _.isWindow(a)?a:9===a.nodeType&&a.defaultView}var Q=[],R=Q.slice,S=Q.concat,T=Q.push,U=Q.indexOf,V={},W=V.toString,X=V.hasOwnProperty,Y={},Z=a.document,$="2.1.1",_=function(a,b){return new _.fn.init(a,b)},ab=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,bb=/^-ms-/,cb=/-([\da-z])/gi,db=function(a,b){return b.toUpperCase()};_.fn=_.prototype={jquery:$,constructor:_,selector:"",length:0,toArray:function(){return R.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:R.call(this)},pushStack:function(a){var b=_.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return _.each(this,a,b)},map:function(a){return this.pushStack(_.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(R.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:T,sort:Q.sort,splice:Q.splice},_.extend=_.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||_.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(_.isPlainObject(d)||(e=_.isArray(d)))?(e?(e=!1,f=c&&_.isArray(c)?c:[]):f=c&&_.isPlainObject(c)?c:{},g[b]=_.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},_.extend({expando:"jQuery"+($+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===_.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){return!_.isArray(a)&&a-parseFloat(a)>=0},isPlainObject:function(a){return"object"!==_.type(a)||a.nodeType||_.isWindow(a)?!1:a.constructor&&!X.call(a.constructor.prototype,"isPrototypeOf")?!1:!0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?V[W.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=_.trim(a),a&&(1===a.indexOf("use strict")?(b=Z.createElement("script"),b.text=a,Z.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(bb,"ms-").replace(cb,db)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,d){var e,f=0,g=a.length,h=c(a);if(d){if(h)for(;g>f&&(e=b.apply(a[f],d),e!==!1);f++);else for(f in a)if(e=b.apply(a[f],d),e===!1)break}else if(h)for(;g>f&&(e=b.call(a[f],f,a[f]),e!==!1);f++);else for(f in a)if(e=b.call(a[f],f,a[f]),e===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(ab,"")},makeArray:function(a,b){var d=b||[];return null!=a&&(c(Object(a))?_.merge(d,"string"==typeof a?[a]:a):T.call(d,a)),d},inArray:function(a,b,c){return null==b?-1:U.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,d){var e,f=0,g=a.length,h=c(a),i=[];if(h)for(;g>f;f++)e=b(a[f],f,d),null!=e&&i.push(e);else for(f in a)e=b(a[f],f,d),null!=e&&i.push(e);return S.apply([],i)},guid:1,proxy:function(a,b){var c,d,e;return"string"==typeof b&&(c=a[b],b=a,a=c),_.isFunction(a)?(d=R.call(arguments,2),e=function(){return a.apply(b||this,d.concat(R.call(arguments)))},e.guid=a.guid=a.guid||_.guid++,e):void 0},now:Date.now,support:Y}),_.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){V["[object "+b+"]"]=b.toLowerCase()});var eb=/*! |
| + | * Sizzle CSS Selector Engine v1.10.19 |
| * http://sizzlejs.com/ | |
| * | |
| * Copyright 2013 jQuery Foundation, Inc. and other contributors | |
| * Released under the MIT license | |
| * http://jquery.org/license | |
| * | |
| - | * Date: 2013-06-03 |
| - | */ |
| - | (function( window, undefined ) { |
| - | |
| - | var i, |
| - | support, |
| - | cachedruns, |
| - | Expr, |
| - | getText, |
| - | isXML, |
| - | compile, |
| - | outermostContext, |
| - | sortInput, |
| - | |
| - | // Local document vars |
| - | setDocument, |
| - | document, |
| - | docElem, |
| - | documentIsHTML, |
| - | rbuggyQSA, |
| - | rbuggyMatches, |
| - | matches, |
| - | contains, |
| - | |
| - | // Instance-specific data |
| - | expando = "sizzle" + -(new Date()), |
| - | preferredDoc = window.document, |
| - | dirruns = 0, |
| - | done = 0, |
| - | classCache = createCache(), |
| - | tokenCache = createCache(), |
| - | compilerCache = createCache(), |
| - | hasDuplicate = false, |
| - | sortOrder = function( a, b ) { |
| - | if ( a === b ) { |
| - | hasDuplicate = true; |
| - | return 0; |
| - | } |
| - | return 0; |
| - | }, |
| - | |
| - | // General-purpose constants |
| - | strundefined = typeof undefined, |
| - | MAX_NEGATIVE = 1 << 31, |
| - | |
| - | // Instance methods |
| - | hasOwn = ({}).hasOwnProperty, |
| - | arr = [], |
| - | pop = arr.pop, |
| - | push_native = arr.push, |
| - | push = arr.push, |
| - | slice = arr.slice, |
| - | // Use a stripped-down indexOf if we can't use a native one |
| - | indexOf = arr.indexOf || function( elem ) { |
| - | var i = 0, |
| - | len = this.length; |
| - | for ( ; i < len; i++ ) { |
| - | if ( this[i] === elem ) { |
| - | return i; |
| - | } |
| - | } |
| - | return -1; |
| - | }, |
| - | |
| - | booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", |
| - | |
| - | // Regular expressions |
| - | |
| - | // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace |
| - | whitespace = "[\\x20\\t\\r\\n\\f]", |
| - | // http://www.w3.org/TR/css3-syntax/#characters |
| - | characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", |
| - | |
| - | // Loosely modeled on CSS identifier characters |
| - | // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors |
| - | // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier |
| - | identifier = characterEncoding.replace( "w", "w#" ), |
| - | |
| - | // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors |
| - | attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + |
| - | "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]", |
| - | |
| - | // Prefer arguments quoted, |
| - | // then not containing pseudos/brackets, |
| - | // then attribute selectors/non-parenthetical expressions, |
| - | // then anything else |
| - | // These preferences are here to reduce the number of selectors |
| - | // needing tokenize in the PSEUDO preFilter |
| - | pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)", |
| - | |
| - | // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter |
| - | rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), |
| - | |
| - | rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ), |
| - | rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), |
| - | |
| - | rsibling = new RegExp( whitespace + "*[+~]" ), |
| - | rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g" ), |
| - | |
| - | rpseudo = new RegExp( pseudos ), |
| - | ridentifier = new RegExp( "^" + identifier + "$" ), |
| - | |
| - | matchExpr = { |
| - | "ID": new RegExp( "^#(" + characterEncoding + ")" ), |
| - | "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ), |
| - | "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ), |
| - | "ATTR": new RegExp( "^" + attributes ), |
| - | "PSEUDO": new RegExp( "^" + pseudos ), |
| - | "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + |
| - | "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + |
| - | "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), |
| - | "bool": new RegExp( "^(?:" + booleans + ")$", "i" ), |
| - | // For use in libraries implementing .is() |
| - | // We use this for POS matching in `select` |
| - | "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + |
| - | whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) |
| - | }, |
| - | |
| - | rnative = /^[^{]+\{\s*\[native \w/, |
| - | |
| - | // Easily-parseable/retrievable ID or TAG or CLASS selectors |
| - | rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, |
| - | |
| - | rinputs = /^(?:input|select|textarea|button)$/i, |
| - | rheader = /^h\d$/i, |
| - | |
| - | rescape = /'|\\/g, |
| - | |
| - | // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters |
| - | runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), |
| - | funescape = function( _, escaped, escapedWhitespace ) { |
| - | var high = "0x" + escaped - 0x10000; |
| - | // NaN means non-codepoint |
| - | // Support: Firefox |
| - | // Workaround erroneous numeric interpretation of +"0x" |
| - | return high !== high || escapedWhitespace ? |
| - | escaped : |
| - | // BMP codepoint |
| - | high < 0 ? |
| - | String.fromCharCode( high + 0x10000 ) : |
| - | // Supplemental Plane codepoint (surrogate pair) |
| - | String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 ); |
| - | }; |
| - | |
| - | // Optimize for push.apply( _, NodeList ) |
| - | try { |
| - | push.apply( |
| - | (arr = slice.call( preferredDoc.childNodes )), |
| - | preferredDoc.childNodes |
| - | ); |
| - | // Support: Android<4.0 |
| - | // Detect silently failing push.apply |
| - | arr[ preferredDoc.childNodes.length ].nodeType; |
| - | } catch ( e ) { |
| - | push = { apply: arr.length ? |
| - | |
| - | // Leverage slice if possible |
| - | function( target, els ) { |
| - | push_native.apply( target, slice.call(els) ); |
| - | } : |
| - | |
| - | // Support: IE<9 |
| - | // Otherwise append directly |
| - | function( target, els ) { |
| - | var j = target.length, |
| - | i = 0; |
| - | // Can't trust NodeList.length |
| - | while ( (target[j++] = els[i++]) ) {} |
| - | target.length = j - 1; |
| - | } |
| - | }; |
| - | } |
| - | |
| - | function Sizzle( selector, context, results, seed ) { |
| - | var match, elem, m, nodeType, |
| - | // QSA vars |
| - | i, groups, old, nid, newContext, newSelector; |
| - | |
| - | if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { |
| - | setDocument( context ); |
| - | } |
| - | |
| - | context = context || document; |
| - | results = results || []; |
| - | |
| - | if ( !selector || typeof selector !== "string" ) { |
| - | return results; |
| - | } |
| - | |
| - | if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) { |
| - | return []; |
| - | } |
| - | |
| - | if ( documentIsHTML && !seed ) { |
| - | |
| - | // Shortcuts |
| - | if ( (match = rquickExpr.exec( selector )) ) { |
| - | // Speed-up: Sizzle("#ID") |
| - | if ( (m = match[1]) ) { |
| - | if ( nodeType === 9 ) { |
| - | elem = context.getElementById( m ); |
| - | // Check parentNode to catch when Blackberry 4.6 returns |
| - | // nodes that are no longer in the document #6963 |
| - | if ( elem && elem.parentNode ) { |
| - | // Handle the case where IE, Opera, and Webkit return items |
| - | // by name instead of ID |
| - | if ( elem.id === m ) { |
| - | results.push( elem ); |
| - | return results; |
| - | } |
| - | } else { |
| - | return results; |
| - | } |
| - | } else { |
| - | // Context is not a document |
| - | if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) && |
| - | contains( context, elem ) && elem.id === m ) { |
| - | results.push( elem ); |
| - | return results; |
| - | } |
| - | } |
| - | |
| - | // Speed-up: Sizzle("TAG") |
| - | } else if ( match[2] ) { |
| - | push.apply( results, context.getElementsByTagName( selector ) ); |
| - | return results; |
| - | |
| - | // Speed-up: Sizzle(".CLASS") |
| - | } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) { |
| - | push.apply( results, context.getElementsByClassName( m ) ); |
| - | return results; |
| - | } |
| - | } |
| - | |
| - | // QSA path |
| - | if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) { |
| - | nid = old = expando; |
| - | newContext = context; |
| - | newSelector = nodeType === 9 && selector; |
| - | |
| - | // qSA works strangely on Element-rooted queries |
| - | // We can work around this by specifying an extra ID on the root |
| - | // and working up from there (Thanks to Andrew Dupont for the technique) |
| - | // IE 8 doesn't work on object elements |
| - | if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) { |
| - | groups = tokenize( selector ); |
| - | |
| - | if ( (old = context.getAttribute("id")) ) { |
| - | nid = old.replace( rescape, "\\$&" ); |
| - | } else { |
| - | context.setAttribute( "id", nid ); |
| - | } |
| - | nid = "[id='" + nid + "'] "; |
| - | |
| - | i = groups.length; |
| - | while ( i-- ) { |
| - | groups[i] = nid + toSelector( groups[i] ); |
| - | } |
| - | newContext = rsibling.test( selector ) && context.parentNode || context; |
| - | newSelector = groups.join(","); |
| - | } |
| - | |
| - | if ( newSelector ) { |
| - | try { |
| - | push.apply( results, |
| - | newContext.querySelectorAll( newSelector ) |
| - | ); |
| - | return results; |
| - | } catch(qsaError) { |
| - | } finally { |
| - | if ( !old ) { |
| - | context.removeAttribute("id"); |
| - | } |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | // All others |
| - | return select( selector.replace( rtrim, "$1" ), context, results, seed ); |
| - | } |
| - | |
| - | /** |
| - | * Create key-value caches of limited size |
| - | * @returns {Function(string, Object)} Returns the Object data after storing it on itself with |
| - | * property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength) |
| - | * deleting the oldest entry |
| - | */ |
| - | function createCache() { |
| - | var keys = []; |
| - | |
| - | function cache( key, value ) { |
| - | // Use (key + " ") to avoid collision with native prototype properties (see Issue #157) |
| - | if ( keys.push( key += " " ) > Expr.cacheLength ) { |
| - | // Only keep the most recent entries |
| - | delete cache[ keys.shift() ]; |
| - | } |
| - | return (cache[ key ] = value); |
| - | } |
| - | return cache; |
| - | } |
| - | |
| - | /** |
| - | * Mark a function for special use by Sizzle |
| - | * @param {Function} fn The function to mark |
| - | */ |
| - | function markFunction( fn ) { |
| - | fn[ expando ] = true; |
| - | return fn; |
| - | } |
| - | |
| - | /** |
| - | * Support testing using an element |
| - | * @param {Function} fn Passed the created div and expects a boolean result |
| - | */ |
| - | function assert( fn ) { |
| - | var div = document.createElement("div"); |
| - | |
| - | try { |
| - | return !!fn( div ); |
| - | } catch (e) { |
| - | return false; |
| - | } finally { |
| - | // Remove from its parent by default |
| - | if ( div.parentNode ) { |
| - | div.parentNode.removeChild( div ); |
| - | } |
| - | // release memory in IE |
| - | div = null; |
| - | } |
| - | } |
| - | |
| - | /** |
| - | * Adds the same handler for all of the specified attrs |
| - | * @param {String} attrs Pipe-separated list of attributes |
| - | * @param {Function} handler The method that will be applied |
| - | */ |
| - | function addHandle( attrs, handler ) { |
| - | var arr = attrs.split("|"), |
| - | i = attrs.length; |
| - | |
| - | while ( i-- ) { |
| - | Expr.attrHandle[ arr[i] ] = handler; |
| - | } |
| - | } |
| - | |
| - | /** |
| - | * Checks document order of two siblings |
| - | * @param {Element} a |
| - | * @param {Element} b |
| - | * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b |
| - | */ |
| - | function siblingCheck( a, b ) { |
| - | var cur = b && a, |
| - | diff = cur && a.nodeType === 1 && b.nodeType === 1 && |
| - | ( ~b.sourceIndex || MAX_NEGATIVE ) - |
| - | ( ~a.sourceIndex || MAX_NEGATIVE ); |
| - | |
| - | // Use IE sourceIndex if available on both nodes |
| - | if ( diff ) { |
| - | return diff; |
| - | } |
| - | |
| - | // Check if b follows a |
| - | if ( cur ) { |
| - | while ( (cur = cur.nextSibling) ) { |
| - | if ( cur === b ) { |
| - | return -1; |
| - | } |
| - | } |
| - | } |
| - | |
| - | return a ? 1 : -1; |
| - | } |
| - | |
| - | /** |
| - | * Returns a function to use in pseudos for input types |
| - | * @param {String} type |
| - | */ |
| - | function createInputPseudo( type ) { |
| - | return function( elem ) { |
| - | var name = elem.nodeName.toLowerCase(); |
| - | return name === "input" && elem.type === type; |
| - | }; |
| - | } |
| - | |
| - | /** |
| - | * Returns a function to use in pseudos for buttons |
| - | * @param {String} type |
| - | */ |
| - | function createButtonPseudo( type ) { |
| - | return function( elem ) { |
| - | var name = elem.nodeName.toLowerCase(); |
| - | return (name === "input" || name === "button") && elem.type === type; |
| - | }; |
| - | } |
| - | |
| - | /** |
| - | * Returns a function to use in pseudos for positionals |
| - | * @param {Function} fn |
| - | */ |
| - | function createPositionalPseudo( fn ) { |
| - | return markFunction(function( argument ) { |
| - | argument = +argument; |
| - | return markFunction(function( seed, matches ) { |
| - | var j, |
| - | matchIndexes = fn( [], seed.length, argument ), |
| - | i = matchIndexes.length; |
| - | |
| - | // Match elements found at the specified indexes |
| - | while ( i-- ) { |
| - | if ( seed[ (j = matchIndexes[i]) ] ) { |
| - | seed[j] = !(matches[j] = seed[j]); |
| - | } |
| - | } |
| - | }); |
| - | }); |
| - | } |
| - | |
| - | /** |
| - | * Detect xml |
| - | * @param {Element|Object} elem An element or a document |
| - | */ |
| - | isXML = Sizzle.isXML = function( elem ) { |
| - | // documentElement is verified for cases where it doesn't yet exist |
| - | // (such as loading iframes in IE - #4833) |
| - | var documentElement = elem && (elem.ownerDocument || elem).documentElement; |
| - | return documentElement ? documentElement.nodeName !== "HTML" : false; |
| - | }; |
| - | |
| - | // Expose support vars for convenience |
| - | support = Sizzle.support = {}; |
| - | |
| - | /** |
| - | * Sets document-related variables once based on the current document |
| - | * @param {Element|Object} [doc] An element or document object to use to set the document |
| - | * @returns {Object} Returns the current document |
| - | */ |
| - | setDocument = Sizzle.setDocument = function( node ) { |
| - | var doc = node ? node.ownerDocument || node : preferredDoc, |
| - | parent = doc.defaultView; |
| - | |
| - | // If no document and documentElement is available, return |
| - | if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { |
| - | return document; |
| - | } |
| - | |
| - | // Set our document |
| - | document = doc; |
| - | docElem = doc.documentElement; |
| - | |
| - | // Support tests |
| - | documentIsHTML = !isXML( doc ); |
| - | |
| - | // Support: IE>8 |
| - | // If iframe document is assigned to "document" variable and if iframe has been reloaded, |
| - | // IE will throw "permission denied" error when accessing "document" variable, see jQuery #13936 |
| - | // IE6-8 do not support the defaultView property so parent will be undefined |
| - | if ( parent && parent.attachEvent && parent !== parent.top ) { |
| - | parent.attachEvent( "onbeforeunload", function() { |
| - | setDocument(); |
| - | }); |
| - | } |
| - | |
| - | /* Attributes |
| - | ---------------------------------------------------------------------- */ |
| - | |
| - | // Support: IE<8 |
| - | // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans) |
| - | support.attributes = assert(function( div ) { |
| - | div.className = "i"; |
| - | return !div.getAttribute("className"); |
| - | }); |
| - | |
| - | /* getElement(s)By* |
| - | ---------------------------------------------------------------------- */ |
| - | |
| - | // Check if getElementsByTagName("*") returns only elements |
| - | support.getElementsByTagName = assert(function( div ) { |
| - | div.appendChild( doc.createComment("") ); |
| - | return !div.getElementsByTagName("*").length; |
| - | }); |
| - | |
| - | // Check if getElementsByClassName can be trusted |
| - | support.getElementsByClassName = assert(function( div ) { |
| - | div.innerHTML = "<div class='a'></div><div class='a i'></div>"; |
| - | |
| - | // Support: Safari<4 |
| - | // Catch class over-caching |
| - | div.firstChild.className = "i"; |
| - | // Support: Opera<10 |
| - | // Catch gEBCN failure to find non-leading classes |
| - | return div.getElementsByClassName("i").length === 2; |
| - | }); |
| - | |
| - | // Support: IE<10 |
| - | // Check if getElementById returns elements by name |
| - | // The broken getElementById methods don't pick up programatically-set names, |
| - | // so use a roundabout getElementsByName test |
| - | support.getById = assert(function( div ) { |
| - | docElem.appendChild( div ).id = expando; |
| - | return !doc.getElementsByName || !doc.getElementsByName( expando ).length; |
| - | }); |
| - | |
| - | // ID find and filter |
| - | if ( support.getById ) { |
| - | Expr.find["ID"] = function( id, context ) { |
| - | if ( typeof context.getElementById !== strundefined && documentIsHTML ) { |
| - | var m = context.getElementById( id ); |
| - | // Check parentNode to catch when Blackberry 4.6 returns |
| - | // nodes that are no longer in the document #6963 |
| - | return m && m.parentNode ? [m] : []; |
| - | } |
| - | }; |
| - | Expr.filter["ID"] = function( id ) { |
| - | var attrId = id.replace( runescape, funescape ); |
| - | return function( elem ) { |
| - | return elem.getAttribute("id") === attrId; |
| - | }; |
| - | }; |
| - | } else { |
| - | // Support: IE6/7 |
| - | // getElementById is not reliable as a find shortcut |
| - | delete Expr.find["ID"]; |
| - | |
| - | Expr.filter["ID"] = function( id ) { |
| - | var attrId = id.replace( runescape, funescape ); |
| - | return function( elem ) { |
| - | var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id"); |
| - | return node && node.value === attrId; |
| - | }; |
| - | }; |
| - | } |
| - | |
| - | // Tag |
| - | Expr.find["TAG"] = support.getElementsByTagName ? |
| - | function( tag, context ) { |
| - | if ( typeof context.getElementsByTagName !== strundefined ) { |
| - | return context.getElementsByTagName( tag ); |
| - | } |
| - | } : |
| - | function( tag, context ) { |
| - | var elem, |
| - | tmp = [], |
| - | i = 0, |
| - | results = context.getElementsByTagName( tag ); |
| - | |
| - | // Filter out possible comments |
| - | if ( tag === "*" ) { |
| - | while ( (elem = results[i++]) ) { |
| - | if ( elem.nodeType === 1 ) { |
| - | tmp.push( elem ); |
| - | } |
| - | } |
| - | |
| - | return tmp; |
| - | } |
| - | return results; |
| - | }; |
| - | |
| - | // Class |
| - | Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { |
| - | if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) { |
| - | return context.getElementsByClassName( className ); |
| - | } |
| - | }; |
| - | |
| - | /* QSA/matchesSelector |
| - | ---------------------------------------------------------------------- */ |
| - | |
| - | // QSA and matchesSelector support |
| - | |
| - | // matchesSelector(:active) reports false when true (IE9/Opera 11.5) |
| - | rbuggyMatches = []; |
| - | |
| - | // qSa(:focus) reports false when true (Chrome 21) |
| - | // We allow this because of a bug in IE8/9 that throws an error |
| - | // whenever `document.activeElement` is accessed on an iframe |
| - | // So, we allow :focus to pass through QSA all the time to avoid the IE error |
| - | // See http://bugs.jquery.com/ticket/13378 |
| - | rbuggyQSA = []; |
| - | |
| - | if ( (support.qsa = rnative.test( doc.querySelectorAll )) ) { |
| - | // Build QSA regex |
| - | // Regex strategy adopted from Diego Perini |
| - | assert(function( div ) { |
| - | // Select is set to empty string on purpose |
| - | // This is to test IE's treatment of not explicitly |
| - | // setting a boolean content attribute, |
| - | // since its presence should be enough |
| - | // http://bugs.jquery.com/ticket/12359 |
| - | div.innerHTML = "<select><option selected=''></option></select>"; |
| - | |
| - | // Support: IE8 |
| - | // Boolean attributes and "value" are not treated correctly |
| - | if ( !div.querySelectorAll("[selected]").length ) { |
| - | rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" ); |
| - | } |
| - | |
| - | // Webkit/Opera - :checked should return selected option elements |
| - | // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked |
| - | // IE8 throws error here and will not see later tests |
| - | if ( !div.querySelectorAll(":checked").length ) { |
| - | rbuggyQSA.push(":checked"); |
| - | } |
| - | }); |
| - | |
| - | assert(function( div ) { |
| - | |
| - | // Support: Opera 10-12/IE8 |
| - | // ^= $= *= and empty values |
| - | // Should not select anything |
| - | // Support: Windows 8 Native Apps |
| - | // The type attribute is restricted during .innerHTML assignment |
| - | var input = doc.createElement("input"); |
| - | input.setAttribute( "type", "hidden" ); |
| - | div.appendChild( input ).setAttribute( "t", "" ); |
| - | |
| - | if ( div.querySelectorAll("[t^='']").length ) { |
| - | rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" ); |
| - | } |
| - | |
| - | // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled) |
| - | // IE8 throws error here and will not see later tests |
| - | if ( !div.querySelectorAll(":enabled").length ) { |
| - | rbuggyQSA.push( ":enabled", ":disabled" ); |
| - | } |
| - | |
| - | // Opera 10-11 does not throw on post-comma invalid pseudos |
| - | div.querySelectorAll("*,:x"); |
| - | rbuggyQSA.push(",.*:"); |
| - | }); |
| - | } |
| - | |
| - | if ( (support.matchesSelector = rnative.test( (matches = docElem.webkitMatchesSelector || |
| - | docElem.mozMatchesSelector || |
| - | docElem.oMatchesSelector || |
| - | docElem.msMatchesSelector) )) ) { |
| - | |
| - | assert(function( div ) { |
| - | // Check to see if it's possible to do matchesSelector |
| - | // on a disconnected node (IE 9) |
| - | support.disconnectedMatch = matches.call( div, "div" ); |
| - | |
| - | // This should fail with an exception |
| - | // Gecko does not error, returns false instead |
| - | matches.call( div, "[s!='']:x" ); |
| - | rbuggyMatches.push( "!=", pseudos ); |
| - | }); |
| - | } |
| - | |
| - | rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); |
| - | rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); |
| - | |
| - | /* Contains |
| - | ---------------------------------------------------------------------- */ |
| - | |
| - | // Element contains another |
| - | // Purposefully does not implement inclusive descendent |
| - | // As in, an element does not contain itself |
| - | contains = rnative.test( docElem.contains ) || docElem.compareDocumentPosition ? |
| - | function( a, b ) { |
| - | var adown = a.nodeType === 9 ? a.documentElement : a, |
| - | bup = b && b.parentNode; |
| - | return a === bup || !!( bup && bup.nodeType === 1 && ( |
| - | adown.contains ? |
| - | adown.contains( bup ) : |
| - | a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16 |
| - | )); |
| - | } : |
| - | function( a, b ) { |
| - | if ( b ) { |
| - | while ( (b = b.parentNode) ) { |
| - | if ( b === a ) { |
| - | return true; |
| - | } |
| - | } |
| - | } |
| - | return false; |
| - | }; |
| - | |
| - | /* Sorting |
| - | ---------------------------------------------------------------------- */ |
| - | |
| - | // Document order sorting |
| - | sortOrder = docElem.compareDocumentPosition ? |
| - | function( a, b ) { |
| - | |
| - | // Flag for duplicate removal |
| - | if ( a === b ) { |
| - | hasDuplicate = true; |
| - | return 0; |
| - | } |
| - | |
| - | var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b ); |
| - | |
| - | if ( compare ) { |
| - | // Disconnected nodes |
| - | if ( compare & 1 || |
| - | (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) { |
| - | |
| - | // Choose the first element that is related to our preferred document |
| - | if ( a === doc || contains(preferredDoc, a) ) { |
| - | return -1; |
| - | } |
| - | if ( b === doc || contains(preferredDoc, b) ) { |
| - | return 1; |
| - | } |
| - | |
| - | // Maintain original order |
| - | return sortInput ? |
| - | ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : |
| - | 0; |
| - | } |
| - | |
| - | return compare & 4 ? -1 : 1; |
| - | } |
| - | |
| - | // Not directly comparable, sort on existence of method |
| - | return a.compareDocumentPosition ? -1 : 1; |
| - | } : |
| - | function( a, b ) { |
| - | var cur, |
| - | i = 0, |
| - | aup = a.parentNode, |
| - | bup = b.parentNode, |
| - | ap = [ a ], |
| - | bp = [ b ]; |
| - | |
| - | // Exit early if the nodes are identical |
| - | if ( a === b ) { |
| - | hasDuplicate = true; |
| - | return 0; |
| - | |
| - | // Parentless nodes are either documents or disconnected |
| - | } else if ( !aup || !bup ) { |
| - | return a === doc ? -1 : |
| - | b === doc ? 1 : |
| - | aup ? -1 : |
| - | bup ? 1 : |
| - | sortInput ? |
| - | ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) : |
| - | 0; |
| - | |
| - | // If the nodes are siblings, we can do a quick check |
| - | } else if ( aup === bup ) { |
| - | return siblingCheck( a, b ); |
| - | } |
| - | |
| - | // Otherwise we need full lists of their ancestors for comparison |
| - | cur = a; |
| - | while ( (cur = cur.parentNode) ) { |
| - | ap.unshift( cur ); |
| - | } |
| - | cur = b; |
| - | while ( (cur = cur.parentNode) ) { |
| - | bp.unshift( cur ); |
| - | } |
| - | |
| - | // Walk down the tree looking for a discrepancy |
| - | while ( ap[i] === bp[i] ) { |
| - | i++; |
| - | } |
| - | |
| - | return i ? |
| - | // Do a sibling check if the nodes have a common ancestor |
| - | siblingCheck( ap[i], bp[i] ) : |
| - | |
| - | // Otherwise nodes in our document sort first |
| - | ap[i] === preferredDoc ? -1 : |
| - | bp[i] === preferredDoc ? 1 : |
| - | 0; |
| - | }; |
| - | |
| - | return doc; |
| - | }; |
| - | |
| - | Sizzle.matches = function( expr, elements ) { |
| - | return Sizzle( expr, null, null, elements ); |
| - | }; |
| - | |
| - | Sizzle.matchesSelector = function( elem, expr ) { |
| - | // Set document vars if needed |
| - | if ( ( elem.ownerDocument || elem ) !== document ) { |
| - | setDocument( elem ); |
| - | } |
| - | |
| - | // Make sure that attribute selectors are quoted |
| - | expr = expr.replace( rattributeQuotes, "='$1']" ); |
| - | |
| - | if ( support.matchesSelector && documentIsHTML && |
| - | ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) && |
| - | ( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) { |
| - | |
| - | try { |
| - | var ret = matches.call( elem, expr ); |
| - | |
| - | // IE 9's matchesSelector returns false on disconnected nodes |
| - | if ( ret || support.disconnectedMatch || |
| - | // As well, disconnected nodes are said to be in a document |
| - | // fragment in IE 9 |
| - | elem.document && elem.document.nodeType !== 11 ) { |
| - | return ret; |
| - | } |
| - | } catch(e) {} |
| - | } |
| - | |
| - | return Sizzle( expr, document, null, [elem] ).length > 0; |
| - | }; |
| - | |
| - | Sizzle.contains = function( context, elem ) { |
| - | // Set document vars if needed |
| - | if ( ( context.ownerDocument || context ) !== document ) { |
| - | setDocument( context ); |
| - | } |
| - | return contains( context, elem ); |
| - | }; |
| - | |
| - | Sizzle.attr = function( elem, name ) { |
| - | // Set document vars if needed |
| - | if ( ( elem.ownerDocument || elem ) !== document ) { |
| - | setDocument( elem ); |
| - | } |
| - | |
| - | var fn = Expr.attrHandle[ name.toLowerCase() ], |
| - | // Don't get fooled by Object.prototype properties (jQuery #13807) |
| - | val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ? |
| - | fn( elem, name, !documentIsHTML ) : |
| - | undefined; |
| - | |
| - | return val === undefined ? |
| - | support.attributes || !documentIsHTML ? |
| - | elem.getAttribute( name ) : |
| - | (val = elem.getAttributeNode(name)) && val.specified ? |
| - | val.value : |
| - | null : |
| - | val; |
| - | }; |
| - | |
| - | Sizzle.error = function( msg ) { |
| - | throw new Error( "Syntax error, unrecognized expression: " + msg ); |
| - | }; |
| - | |
| - | /** |
| - | * Document sorting and removing duplicates |
| - | * @param {ArrayLike} results |
| - | */ |
| - | Sizzle.uniqueSort = function( results ) { |
| - | var elem, |
| - | duplicates = [], |
| - | j = 0, |
| - | i = 0; |
| - | |
| - | // Unless we *know* we can detect duplicates, assume their presence |
| - | hasDuplicate = !support.detectDuplicates; |
| - | sortInput = !support.sortStable && results.slice( 0 ); |
| - | results.sort( sortOrder ); |
| - | |
| - | if ( hasDuplicate ) { |
| - | while ( (elem = results[i++]) ) { |
| - | if ( elem === results[ i ] ) { |
| - | j = duplicates.push( i ); |
| - | } |
| - | } |
| - | while ( j-- ) { |
| - | results.splice( duplicates[ j ], 1 ); |
| - | } |
| - | } |
| - | |
| - | return results; |
| - | }; |
| - | |
| - | /** |
| - | * Utility function for retrieving the text value of an array of DOM nodes |
| - | * @param {Array|Element} elem |
| - | */ |
| - | getText = Sizzle.getText = function( elem ) { |
| - | var node, |
| - | ret = "", |
| - | i = 0, |
| - | nodeType = elem.nodeType; |
| - | |
| - | if ( !nodeType ) { |
| - | // If no nodeType, this is expected to be an array |
| - | for ( ; (node = elem[i]); i++ ) { |
| - | // Do not traverse comment nodes |
| - | ret += getText( node ); |
| - | } |
| - | } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) { |
| - | // Use textContent for elements |
| - | // innerText usage removed for consistency of new lines (see #11153) |
| - | if ( typeof elem.textContent === "string" ) { |
| - | return elem.textContent; |
| - | } else { |
| - | // Traverse its children |
| - | for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { |
| - | ret += getText( elem ); |
| - | } |
| - | } |
| - | } else if ( nodeType === 3 || nodeType === 4 ) { |
| - | return elem.nodeValue; |
| - | } |
| - | // Do not include comment or processing instruction nodes |
| - | |
| - | return ret; |
| - | }; |
| - | |
| - | Expr = Sizzle.selectors = { |
| - | |
| - | // Can be adjusted by the user |
| - | cacheLength: 50, |
| - | |
| - | createPseudo: markFunction, |
| - | |
| - | match: matchExpr, |
| - | |
| - | attrHandle: {}, |
| - | |
| - | find: {}, |
| - | |
| - | relative: { |
| - | ">": { dir: "parentNode", first: true }, |
| - | " ": { dir: "parentNode" }, |
| - | "+": { dir: "previousSibling", first: true }, |
| - | "~": { dir: "previousSibling" } |
| - | }, |
| - | |
| - | preFilter: { |
| - | "ATTR": function( match ) { |
| - | match[1] = match[1].replace( runescape, funescape ); |
| - | |
| - | // Move the given value to match[3] whether quoted or unquoted |
| - | match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape ); |
| - | |
| - | if ( match[2] === "~=" ) { |
| - | match[3] = " " + match[3] + " "; |
| - | } |
| - | |
| - | return match.slice( 0, 4 ); |
| - | }, |
| - | |
| - | "CHILD": function( match ) { |
| - | /* matches from matchExpr["CHILD"] |
| - | 1 type (only|nth|...) |
| - | 2 what (child|of-type) |
| - | 3 argument (even|odd|\d*|\d*n([+-]\d+)?|...) |
| - | 4 xn-component of xn+y argument ([+-]?\d*n|) |
| - | 5 sign of xn-component |
| - | 6 x of xn-component |
| - | 7 sign of y-component |
| - | 8 y of y-component |
| - | */ |
| - | match[1] = match[1].toLowerCase(); |
| - | |
| - | if ( match[1].slice( 0, 3 ) === "nth" ) { |
| - | // nth-* requires argument |
| - | if ( !match[3] ) { |
| - | Sizzle.error( match[0] ); |
| - | } |
| - | |
| - | // numeric x and y parameters for Expr.filter.CHILD |
| - | // remember that false/true cast respectively to 0/1 |
| - | match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) ); |
| - | match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" ); |
| - | |
| - | // other types prohibit arguments |
| - | } else if ( match[3] ) { |
| - | Sizzle.error( match[0] ); |
| - | } |
| - | |
| - | return match; |
| - | }, |
| - | |
| - | "PSEUDO": function( match ) { |
| - | var excess, |
| - | unquoted = !match[5] && match[2]; |
| - | |
| - | if ( matchExpr["CHILD"].test( match[0] ) ) { |
| - | return null; |
| - | } |
| - | |
| - | // Accept quoted arguments as-is |
| - | if ( match[3] && match[4] !== undefined ) { |
| - | match[2] = match[4]; |
| - | |
| - | // Strip excess characters from unquoted arguments |
| - | } else if ( unquoted && rpseudo.test( unquoted ) && |
| - | // Get excess from tokenize (recursively) |
| - | (excess = tokenize( unquoted, true )) && |
| - | // advance to the next closing parenthesis |
| - | (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) { |
| - | |
| - | // excess is a negative index |
| - | match[0] = match[0].slice( 0, excess ); |
| - | match[2] = unquoted.slice( 0, excess ); |
| - | } |
| - | |
| - | // Return only captures needed by the pseudo filter method (type and argument) |
| - | return match.slice( 0, 3 ); |
| - | } |
| - | }, |
| - | |
| - | filter: { |
| - | |
| - | "TAG": function( nodeNameSelector ) { |
| - | var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase(); |
| - | return nodeNameSelector === "*" ? |
| - | function() { return true; } : |
| - | function( elem ) { |
| - | return elem.nodeName && elem.nodeName.toLowerCase() === nodeName; |
| - | }; |
| - | }, |
| - | |
| - | "CLASS": function( className ) { |
| - | var pattern = classCache[ className + " " ]; |
| - | |
| - | return pattern || |
| - | (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) && |
| - | classCache( className, function( elem ) { |
| - | return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" ); |
| - | }); |
| - | }, |
| - | |
| - | "ATTR": function( name, operator, check ) { |
| - | return function( elem ) { |
| - | var result = Sizzle.attr( elem, name ); |
| - | |
| - | if ( result == null ) { |
| - | return operator === "!="; |
| - | } |
| - | if ( !operator ) { |
| - | return true; |
| - | } |
| - | |
| - | result += ""; |
| - | |
| - | return operator === "=" ? result === check : |
| - | operator === "!=" ? result !== check : |
| - | operator === "^=" ? check && result.indexOf( check ) === 0 : |
| - | operator === "*=" ? check && result.indexOf( check ) > -1 : |
| - | operator === "$=" ? check && result.slice( -check.length ) === check : |
| - | operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 : |
| - | operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" : |
| - | false; |
| - | }; |
| - | }, |
| - | |
| - | "CHILD": function( type, what, argument, first, last ) { |
| - | var simple = type.slice( 0, 3 ) !== "nth", |
| - | forward = type.slice( -4 ) !== "last", |
| - | ofType = what === "of-type"; |
| - | |
| - | return first === 1 && last === 0 ? |
| - | |
| - | // Shortcut for :nth-*(n) |
| - | function( elem ) { |
| - | return !!elem.parentNode; |
| - | } : |
| - | |
| - | function( elem, context, xml ) { |
| - | var cache, outerCache, node, diff, nodeIndex, start, |
| - | dir = simple !== forward ? "nextSibling" : "previousSibling", |
| - | parent = elem.parentNode, |
| - | name = ofType && elem.nodeName.toLowerCase(), |
| - | useCache = !xml && !ofType; |
| - | |
| - | if ( parent ) { |
| - | |
| - | // :(first|last|only)-(child|of-type) |
| - | if ( simple ) { |
| - | while ( dir ) { |
| - | node = elem; |
| - | while ( (node = node[ dir ]) ) { |
| - | if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) { |
| - | return false; |
| - | } |
| - | } |
| - | // Reverse direction for :only-* (if we haven't yet done so) |
| - | start = dir = type === "only" && !start && "nextSibling"; |
| - | } |
| - | return true; |
| - | } |
| - | |
| - | start = [ forward ? parent.firstChild : parent.lastChild ]; |
| - | |
| - | // non-xml :nth-child(...) stores cache data on `parent` |
| - | if ( forward && useCache ) { |
| - | // Seek `elem` from a previously-cached index |
| - | outerCache = parent[ expando ] || (parent[ expando ] = {}); |
| - | cache = outerCache[ type ] || []; |
| - | nodeIndex = cache[0] === dirruns && cache[1]; |
| - | diff = cache[0] === dirruns && cache[2]; |
| - | node = nodeIndex && parent.childNodes[ nodeIndex ]; |
| - | |
| - | while ( (node = ++nodeIndex && node && node[ dir ] || |
| - | |
| - | // Fallback to seeking `elem` from the start |
| - | (diff = nodeIndex = 0) || start.pop()) ) { |
| - | |
| - | // When found, cache indexes on `parent` and break |
| - | if ( node.nodeType === 1 && ++diff && node === elem ) { |
| - | outerCache[ type ] = [ dirruns, nodeIndex, diff ]; |
| - | break; |
| - | } |
| - | } |
| - | |
| - | // Use previously-cached element index if available |
| - | } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) { |
| - | diff = cache[1]; |
| - | |
| - | // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...) |
| - | } else { |
| - | // Use the same loop as above to seek `elem` from the start |
| - | while ( (node = ++nodeIndex && node && node[ dir ] || |
| - | (diff = nodeIndex = 0) || start.pop()) ) { |
| - | |
| - | if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) { |
| - | // Cache the index of each encountered element |
| - | if ( useCache ) { |
| - | (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ]; |
| - | } |
| - | |
| - | if ( node === elem ) { |
| - | break; |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Incorporate the offset, then check against cycle size |
| - | diff -= last; |
| - | return diff === first || ( diff % first === 0 && diff / first >= 0 ); |
| - | } |
| - | }; |
| - | }, |
| - | |
| - | "PSEUDO": function( pseudo, argument ) { |
| - | // pseudo-class names are case-insensitive |
| - | // http://www.w3.org/TR/selectors/#pseudo-classes |
| - | // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters |
| - | // Remember that setFilters inherits from pseudos |
| - | var args, |
| - | fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] || |
| - | Sizzle.error( "unsupported pseudo: " + pseudo ); |
| - | |
| - | // The user may use createPseudo to indicate that |
| - | // arguments are needed to create the filter function |
| - | // just as Sizzle does |
| - | if ( fn[ expando ] ) { |
| - | return fn( argument ); |
| - | } |
| - | |
| - | // But maintain support for old signatures |
| - | if ( fn.length > 1 ) { |
| - | args = [ pseudo, pseudo, "", argument ]; |
| - | return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ? |
| - | markFunction(function( seed, matches ) { |
| - | var idx, |
| - | matched = fn( seed, argument ), |
| - | i = matched.length; |
| - | while ( i-- ) { |
| - | idx = indexOf.call( seed, matched[i] ); |
| - | seed[ idx ] = !( matches[ idx ] = matched[i] ); |
| - | } |
| - | }) : |
| - | function( elem ) { |
| - | return fn( elem, 0, args ); |
| - | }; |
| - | } |
| - | |
| - | return fn; |
| - | } |
| - | }, |
| - | |
| - | pseudos: { |
| - | // Potentially complex pseudos |
| - | "not": markFunction(function( selector ) { |
| - | // Trim the selector passed to compile |
| - | // to avoid treating leading and trailing |
| - | // spaces as combinators |
| - | var input = [], |
| - | results = [], |
| - | matcher = compile( selector.replace( rtrim, "$1" ) ); |
| - | |
| - | return matcher[ expando ] ? |
| - | markFunction(function( seed, matches, context, xml ) { |
| - | var elem, |
| - | unmatched = matcher( seed, null, xml, [] ), |
| - | i = seed.length; |
| - | |
| - | // Match elements unmatched by `matcher` |
| - | while ( i-- ) { |
| - | if ( (elem = unmatched[i]) ) { |
| - | seed[i] = !(matches[i] = elem); |
| - | } |
| - | } |
| - | }) : |
| - | function( elem, context, xml ) { |
| - | input[0] = elem; |
| - | matcher( input, null, xml, results ); |
| - | return !results.pop(); |
| - | }; |
| - | }), |
| - | |
| - | "has": markFunction(function( selector ) { |
| - | return function( elem ) { |
| - | return Sizzle( selector, elem ).length > 0; |
| - | }; |
| - | }), |
| - | |
| - | "contains": markFunction(function( text ) { |
| - | return function( elem ) { |
| - | return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1; |
| - | }; |
| - | }), |
| - | |
| - | // "Whether an element is represented by a :lang() selector |
| - | // is based solely on the element's language value |
| - | // being equal to the identifier C, |
| - | // or beginning with the identifier C immediately followed by "-". |
| - | // The matching of C against the element's language value is performed case-insensitively. |
| - | // The identifier C does not have to be a valid language name." |
| - | // http://www.w3.org/TR/selectors/#lang-pseudo |
| - | "lang": markFunction( function( lang ) { |
| - | // lang value must be a valid identifier |
| - | if ( !ridentifier.test(lang || "") ) { |
| - | Sizzle.error( "unsupported lang: " + lang ); |
| - | } |
| - | lang = lang.replace( runescape, funescape ).toLowerCase(); |
| - | return function( elem ) { |
| - | var elemLang; |
| - | do { |
| - | if ( (elemLang = documentIsHTML ? |
| - | elem.lang : |
| - | elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) { |
| - | |
| - | elemLang = elemLang.toLowerCase(); |
| - | return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0; |
| - | } |
| - | } while ( (elem = elem.parentNode) && elem.nodeType === 1 ); |
| - | return false; |
| - | }; |
| - | }), |
| - | |
| - | // Miscellaneous |
| - | "target": function( elem ) { |
| - | var hash = window.location && window.location.hash; |
| - | return hash && hash.slice( 1 ) === elem.id; |
| - | }, |
| - | |
| - | "root": function( elem ) { |
| - | return elem === docElem; |
| - | }, |
| - | |
| - | "focus": function( elem ) { |
| - | return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex); |
| - | }, |
| - | |
| - | // Boolean properties |
| - | "enabled": function( elem ) { |
| - | return elem.disabled === false; |
| - | }, |
| - | |
| - | "disabled": function( elem ) { |
| - | return elem.disabled === true; |
| - | }, |
| - | |
| - | "checked": function( elem ) { |
| - | // In CSS3, :checked should return both checked and selected elements |
| - | // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked |
| - | var nodeName = elem.nodeName.toLowerCase(); |
| - | return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected); |
| - | }, |
| - | |
| - | "selected": function( elem ) { |
| - | // Accessing this property makes selected-by-default |
| - | // options in Safari work properly |
| - | if ( elem.parentNode ) { |
| - | elem.parentNode.selectedIndex; |
| - | } |
| - | |
| - | return elem.selected === true; |
| - | }, |
| - | |
| - | // Contents |
| - | "empty": function( elem ) { |
| - | // http://www.w3.org/TR/selectors/#empty-pseudo |
| - | // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)), |
| - | // not comment, processing instructions, or others |
| - | // Thanks to Diego Perini for the nodeName shortcut |
| - | // Greater than "@" means alpha characters (specifically not starting with "#" or "?") |
| - | for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) { |
| - | if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) { |
| - | return false; |
| - | } |
| - | } |
| - | return true; |
| - | }, |
| - | |
| - | "parent": function( elem ) { |
| - | return !Expr.pseudos["empty"]( elem ); |
| - | }, |
| - | |
| - | // Element/input types |
| - | "header": function( elem ) { |
| - | return rheader.test( elem.nodeName ); |
| - | }, |
| - | |
| - | "input": function( elem ) { |
| - | return rinputs.test( elem.nodeName ); |
| - | }, |
| - | |
| - | "button": function( elem ) { |
| - | var name = elem.nodeName.toLowerCase(); |
| - | return name === "input" && elem.type === "button" || name === "button"; |
| - | }, |
| - | |
| - | "text": function( elem ) { |
| - | var attr; |
| - | // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc) |
| - | // use getAttribute instead to test this case |
| - | return elem.nodeName.toLowerCase() === "input" && |
| - | elem.type === "text" && |
| - | ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type ); |
| - | }, |
| - | |
| - | // Position-in-collection |
| - | "first": createPositionalPseudo(function() { |
| - | return [ 0 ]; |
| - | }), |
| - | |
| - | "last": createPositionalPseudo(function( matchIndexes, length ) { |
| - | return [ length - 1 ]; |
| - | }), |
| - | |
| - | "eq": createPositionalPseudo(function( matchIndexes, length, argument ) { |
| - | return [ argument < 0 ? argument + length : argument ]; |
| - | }), |
| - | |
| - | "even": createPositionalPseudo(function( matchIndexes, length ) { |
| - | var i = 0; |
| - | for ( ; i < length; i += 2 ) { |
| - | matchIndexes.push( i ); |
| - | } |
| - | return matchIndexes; |
| - | }), |
| - | |
| - | "odd": createPositionalPseudo(function( matchIndexes, length ) { |
| - | var i = 1; |
| - | for ( ; i < length; i += 2 ) { |
| - | matchIndexes.push( i ); |
| - | } |
| - | return matchIndexes; |
| - | }), |
| - | |
| - | "lt": createPositionalPseudo(function( matchIndexes, length, argument ) { |
| - | var i = argument < 0 ? argument + length : argument; |
| - | for ( ; --i >= 0; ) { |
| - | matchIndexes.push( i ); |
| - | } |
| - | return matchIndexes; |
| - | }), |
| - | |
| - | "gt": createPositionalPseudo(function( matchIndexes, length, argument ) { |
| - | var i = argument < 0 ? argument + length : argument; |
| - | for ( ; ++i < length; ) { |
| - | matchIndexes.push( i ); |
| - | } |
| - | return matchIndexes; |
| - | }) |
| - | } |
| - | }; |
| - | |
| - | Expr.pseudos["nth"] = Expr.pseudos["eq"]; |
| - | |
| - | // Add button/input type pseudos |
| - | for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) { |
| - | Expr.pseudos[ i ] = createInputPseudo( i ); |
| - | } |
| - | for ( i in { submit: true, reset: true } ) { |
| - | Expr.pseudos[ i ] = createButtonPseudo( i ); |
| - | } |
| - | |
| - | // Easy API for creating new setFilters |
| - | function setFilters() {} |
| - | setFilters.prototype = Expr.filters = Expr.pseudos; |
| - | Expr.setFilters = new setFilters(); |
| - | |
| - | function tokenize( selector, parseOnly ) { |
| - | var matched, match, tokens, type, |
| - | soFar, groups, preFilters, |
| - | cached = tokenCache[ selector + " " ]; |
| - | |
| - | if ( cached ) { |
| - | return parseOnly ? 0 : cached.slice( 0 ); |
| - | } |
| - | |
| - | soFar = selector; |
| - | groups = []; |
| - | preFilters = Expr.preFilter; |
| - | |
| - | while ( soFar ) { |
| - | |
| - | // Comma and first run |
| - | if ( !matched || (match = rcomma.exec( soFar )) ) { |
| - | if ( match ) { |
| - | // Don't consume trailing commas as valid |
| - | soFar = soFar.slice( match[0].length ) || soFar; |
| - | } |
| - | groups.push( tokens = [] ); |
| - | } |
| - | |
| - | matched = false; |
| - | |
| - | // Combinators |
| - | if ( (match = rcombinators.exec( soFar )) ) { |
| - | matched = match.shift(); |
| - | tokens.push({ |
| - | value: matched, |
| - | // Cast descendant combinators to space |
| - | type: match[0].replace( rtrim, " " ) |
| - | }); |
| - | soFar = soFar.slice( matched.length ); |
| - | } |
| - | |
| - | // Filters |
| - | for ( type in Expr.filter ) { |
| - | if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] || |
| - | (match = preFilters[ type ]( match ))) ) { |
| - | matched = match.shift(); |
| - | tokens.push({ |
| - | value: matched, |
| - | type: type, |
| - | matches: match |
| - | }); |
| - | soFar = soFar.slice( matched.length ); |
| - | } |
| - | } |
| - | |
| - | if ( !matched ) { |
| - | break; |
| - | } |
| - | } |
| - | |
| - | // Return the length of the invalid excess |
| - | // if we're just parsing |
| - | // Otherwise, throw an error or return tokens |
| - | return parseOnly ? |
| - | soFar.length : |
| - | soFar ? |
| - | Sizzle.error( selector ) : |
| - | // Cache the tokens |
| - | tokenCache( selector, groups ).slice( 0 ); |
| - | } |
| - | |
| - | function toSelector( tokens ) { |
| - | var i = 0, |
| - | len = tokens.length, |
| - | selector = ""; |
| - | for ( ; i < len; i++ ) { |
| - | selector += tokens[i].value; |
| - | } |
| - | return selector; |
| - | } |
| - | |
| - | function addCombinator( matcher, combinator, base ) { |
| - | var dir = combinator.dir, |
| - | checkNonElements = base && dir === "parentNode", |
| - | doneName = done++; |
| - | |
| - | return combinator.first ? |
| - | // Check against closest ancestor/preceding element |
| - | function( elem, context, xml ) { |
| - | while ( (elem = elem[ dir ]) ) { |
| - | if ( elem.nodeType === 1 || checkNonElements ) { |
| - | return matcher( elem, context, xml ); |
| - | } |
| - | } |
| - | } : |
| - | |
| - | // Check against all ancestor/preceding elements |
| - | function( elem, context, xml ) { |
| - | var data, cache, outerCache, |
| - | dirkey = dirruns + " " + doneName; |
| - | |
| - | // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching |
| - | if ( xml ) { |
| - | while ( (elem = elem[ dir ]) ) { |
| - | if ( elem.nodeType === 1 || checkNonElements ) { |
| - | if ( matcher( elem, context, xml ) ) { |
| - | return true; |
| - | } |
| - | } |
| - | } |
| - | } else { |
| - | while ( (elem = elem[ dir ]) ) { |
| - | if ( elem.nodeType === 1 || checkNonElements ) { |
| - | outerCache = elem[ expando ] || (elem[ expando ] = {}); |
| - | if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) { |
| - | if ( (data = cache[1]) === true || data === cachedruns ) { |
| - | return data === true; |
| - | } |
| - | } else { |
| - | cache = outerCache[ dir ] = [ dirkey ]; |
| - | cache[1] = matcher( elem, context, xml ) || cachedruns; |
| - | if ( cache[1] === true ) { |
| - | return true; |
| - | } |
| - | } |
| - | } |
| - | } |
| - | } |
| - | }; |
| - | } |
| - | |
| - | function elementMatcher( matchers ) { |
| - | return matchers.length > 1 ? |
| - | function( elem, context, xml ) { |
| - | var i = matchers.length; |
| - | while ( i-- ) { |
| - | if ( !matchers[i]( elem, context, xml ) ) { |
| - | return false; |
| - | } |
| - | } |
| - | return true; |
| - | } : |
| - | matchers[0]; |
| - | } |
| - | |
| - | function condense( unmatched, map, filter, context, xml ) { |
| - | var elem, |
| - | newUnmatched = [], |
| - | i = 0, |
| - | len = unmatched.length, |
| - | mapped = map != null; |
| - | |
| - | for ( ; i < len; i++ ) { |
| - | if ( (elem = unmatched[i]) ) { |
| - | if ( !filter || filter( elem, context, xml ) ) { |
| - | newUnmatched.push( elem ); |
| - | if ( mapped ) { |
| - | map.push( i ); |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | return newUnmatched; |
| - | } |
| - | |
| - | function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) { |
| - | if ( postFilter && !postFilter[ expando ] ) { |
| - | postFilter = setMatcher( postFilter ); |
| - | } |
| - | if ( postFinder && !postFinder[ expando ] ) { |
| - | postFinder = setMatcher( postFinder, postSelector ); |
| - | } |
| - | return markFunction(function( seed, results, context, xml ) { |
| - | var temp, i, elem, |
| - | preMap = [], |
| - | postMap = [], |
| - | preexisting = results.length, |
| - | |
| - | // Get initial elements from seed or context |
| - | elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ), |
| - | |
| - | // Prefilter to get matcher input, preserving a map for seed-results synchronization |
| - | matcherIn = preFilter && ( seed || !selector ) ? |
| - | condense( elems, preMap, preFilter, context, xml ) : |
| - | elems, |
| - | |
| - | matcherOut = matcher ? |
| - | // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results, |
| - | postFinder || ( seed ? preFilter : preexisting || postFilter ) ? |
| - | |
| - | // ...intermediate processing is necessary |
| - | [] : |
| - | |
| - | // ...otherwise use results directly |
| - | results : |
| - | matcherIn; |
| - | |
| - | // Find primary matches |
| - | if ( matcher ) { |
| - | matcher( matcherIn, matcherOut, context, xml ); |
| - | } |
| - | |
| - | // Apply postFilter |
| - | if ( postFilter ) { |
| - | temp = condense( matcherOut, postMap ); |
| - | postFilter( temp, [], context, xml ); |
| - | |
| - | // Un-match failing elements by moving them back to matcherIn |
| - | i = temp.length; |
| - | while ( i-- ) { |
| - | if ( (elem = temp[i]) ) { |
| - | matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem); |
| - | } |
| - | } |
| - | } |
| - | |
| - | if ( seed ) { |
| - | if ( postFinder || preFilter ) { |
| - | if ( postFinder ) { |
| - | // Get the final matcherOut by condensing this intermediate into postFinder contexts |
| - | temp = []; |
| - | i = matcherOut.length; |
| - | while ( i-- ) { |
| - | if ( (elem = matcherOut[i]) ) { |
| - | // Restore matcherIn since elem is not yet a final match |
| - | temp.push( (matcherIn[i] = elem) ); |
| - | } |
| - | } |
| - | postFinder( null, (matcherOut = []), temp, xml ); |
| - | } |
| - | |
| - | // Move matched elements from seed to results to keep them synchronized |
| - | i = matcherOut.length; |
| - | while ( i-- ) { |
| - | if ( (elem = matcherOut[i]) && |
| - | (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) { |
| - | |
| - | seed[temp] = !(results[temp] = elem); |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Add elements to results, through postFinder if defined |
| - | } else { |
| - | matcherOut = condense( |
| - | matcherOut === results ? |
| - | matcherOut.splice( preexisting, matcherOut.length ) : |
| - | matcherOut |
| - | ); |
| - | if ( postFinder ) { |
| - | postFinder( null, results, matcherOut, xml ); |
| - | } else { |
| - | push.apply( results, matcherOut ); |
| - | } |
| - | } |
| - | }); |
| - | } |
| - | |
| - | function matcherFromTokens( tokens ) { |
| - | var checkContext, matcher, j, |
| - | len = tokens.length, |
| - | leadingRelative = Expr.relative[ tokens[0].type ], |
| - | implicitRelative = leadingRelative || Expr.relative[" "], |
| - | i = leadingRelative ? 1 : 0, |
| - | |
| - | // The foundational matcher ensures that elements are reachable from top-level context(s) |
| - | matchContext = addCombinator( function( elem ) { |
| - | return elem === checkContext; |
| - | }, implicitRelative, true ), |
| - | matchAnyContext = addCombinator( function( elem ) { |
| - | return indexOf.call( checkContext, elem ) > -1; |
| - | }, implicitRelative, true ), |
| - | matchers = [ function( elem, context, xml ) { |
| - | return ( !leadingRelative && ( xml || context !== outermostContext ) ) || ( |
| - | (checkContext = context).nodeType ? |
| - | matchContext( elem, context, xml ) : |
| - | matchAnyContext( elem, context, xml ) ); |
| - | } ]; |
| - | |
| - | for ( ; i < len; i++ ) { |
| - | if ( (matcher = Expr.relative[ tokens[i].type ]) ) { |
| - | matchers = [ addCombinator(elementMatcher( matchers ), matcher) ]; |
| - | } else { |
| - | matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches ); |
| - | |
| - | // Return special upon seeing a positional matcher |
| - | if ( matcher[ expando ] ) { |
| - | // Find the next relative operator (if any) for proper handling |
| - | j = ++i; |
| - | for ( ; j < len; j++ ) { |
| - | if ( Expr.relative[ tokens[j].type ] ) { |
| - | break; |
| - | } |
| - | } |
| - | return setMatcher( |
| - | i > 1 && elementMatcher( matchers ), |
| - | i > 1 && toSelector( |
| - | // If the preceding token was a descendant combinator, insert an implicit any-element `*` |
| - | tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" }) |
| - | ).replace( rtrim, "$1" ), |
| - | matcher, |
| - | i < j && matcherFromTokens( tokens.slice( i, j ) ), |
| - | j < len && matcherFromTokens( (tokens = tokens.slice( j )) ), |
| - | j < len && toSelector( tokens ) |
| - | ); |
| - | } |
| - | matchers.push( matcher ); |
| - | } |
| - | } |
| - | |
| - | return elementMatcher( matchers ); |
| - | } |
| - | |
| - | function matcherFromGroupMatchers( elementMatchers, setMatchers ) { |
| - | // A counter to specify which element is currently being matched |
| - | var matcherCachedRuns = 0, |
| - | bySet = setMatchers.length > 0, |
| - | byElement = elementMatchers.length > 0, |
| - | superMatcher = function( seed, context, xml, results, expandContext ) { |
| - | var elem, j, matcher, |
| - | setMatched = [], |
| - | matchedCount = 0, |
| - | i = "0", |
| - | unmatched = seed && [], |
| - | outermost = expandContext != null, |
| - | contextBackup = outermostContext, |
| - | // We must always have either seed elements or context |
| - | elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ), |
| - | // Use integer dirruns iff this is the outermost matcher |
| - | dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1); |
| - | |
| - | if ( outermost ) { |
| - | outermostContext = context !== document && context; |
| - | cachedruns = matcherCachedRuns; |
| - | } |
| - | |
| - | // Add elements passing elementMatchers directly to results |
| - | // Keep `i` a string if there are no elements so `matchedCount` will be "00" below |
| - | for ( ; (elem = elems[i]) != null; i++ ) { |
| - | if ( byElement && elem ) { |
| - | j = 0; |
| - | while ( (matcher = elementMatchers[j++]) ) { |
| - | if ( matcher( elem, context, xml ) ) { |
| - | results.push( elem ); |
| - | break; |
| - | } |
| - | } |
| - | if ( outermost ) { |
| - | dirruns = dirrunsUnique; |
| - | cachedruns = ++matcherCachedRuns; |
| - | } |
| - | } |
| - | |
| - | // Track unmatched elements for set filters |
| - | if ( bySet ) { |
| - | // They will have gone through all possible matchers |
| - | if ( (elem = !matcher && elem) ) { |
| - | matchedCount--; |
| - | } |
| - | |
| - | // Lengthen the array for every element, matched or not |
| - | if ( seed ) { |
| - | unmatched.push( elem ); |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Apply set filters to unmatched elements |
| - | matchedCount += i; |
| - | if ( bySet && i !== matchedCount ) { |
| - | j = 0; |
| - | while ( (matcher = setMatchers[j++]) ) { |
| - | matcher( unmatched, setMatched, context, xml ); |
| - | } |
| - | |
| - | if ( seed ) { |
| - | // Reintegrate element matches to eliminate the need for sorting |
| - | if ( matchedCount > 0 ) { |
| - | while ( i-- ) { |
| - | if ( !(unmatched[i] || setMatched[i]) ) { |
| - | setMatched[i] = pop.call( results ); |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Discard index placeholder values to get only actual matches |
| - | setMatched = condense( setMatched ); |
| - | } |
| - | |
| - | // Add matches to results |
| - | push.apply( results, setMatched ); |
| - | |
| - | // Seedless set matches succeeding multiple successful matchers stipulate sorting |
| - | if ( outermost && !seed && setMatched.length > 0 && |
| - | ( matchedCount + setMatchers.length ) > 1 ) { |
| - | |
| - | Sizzle.uniqueSort( results ); |
| - | } |
| - | } |
| - | |
| - | // Override manipulation of globals by nested matchers |
| - | if ( outermost ) { |
| - | dirruns = dirrunsUnique; |
| - | outermostContext = contextBackup; |
| - | } |
| - | |
| - | return unmatched; |
| - | }; |
| - | |
| - | return bySet ? |
| - | markFunction( superMatcher ) : |
| - | superMatcher; |
| - | } |
| - | |
| - | compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) { |
| - | var i, |
| - | setMatchers = [], |
| - | elementMatchers = [], |
| - | cached = compilerCache[ selector + " " ]; |
| - | |
| - | if ( !cached ) { |
| - | // Generate a function of recursive functions that can be used to check each element |
| - | if ( !group ) { |
| - | group = tokenize( selector ); |
| - | } |
| - | i = group.length; |
| - | while ( i-- ) { |
| - | cached = matcherFromTokens( group[i] ); |
| - | if ( cached[ expando ] ) { |
| - | setMatchers.push( cached ); |
| - | } else { |
| - | elementMatchers.push( cached ); |
| - | } |
| - | } |
| - | |
| - | // Cache the compiled function |
| - | cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) ); |
| - | } |
| - | return cached; |
| - | }; |
| - | |
| - | function multipleContexts( selector, contexts, results ) { |
| - | var i = 0, |
| - | len = contexts.length; |
| - | for ( ; i < len; i++ ) { |
| - | Sizzle( selector, contexts[i], results ); |
| - | } |
| - | return results; |
| - | } |
| - | |
| - | function select( selector, context, results, seed ) { |
| - | var i, tokens, token, type, find, |
| - | match = tokenize( selector ); |
| - | |
| - | if ( !seed ) { |
| - | // Try to minimize operations if there is only one group |
| - | if ( match.length === 1 ) { |
| - | |
| - | // Take a shortcut and set the context if the root selector is an ID |
| - | tokens = match[0] = match[0].slice( 0 ); |
| - | if ( tokens.length > 2 && (token = tokens[0]).type === "ID" && |
| - | support.getById && context.nodeType === 9 && documentIsHTML && |
| - | Expr.relative[ tokens[1].type ] ) { |
| - | |
| - | context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0]; |
| - | if ( !context ) { |
| - | return results; |
| - | } |
| - | selector = selector.slice( tokens.shift().value.length ); |
| - | } |
| - | |
| - | // Fetch a seed set for right-to-left matching |
| - | i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length; |
| - | while ( i-- ) { |
| - | token = tokens[i]; |
| - | |
| - | // Abort if we hit a combinator |
| - | if ( Expr.relative[ (type = token.type) ] ) { |
| - | break; |
| - | } |
| - | if ( (find = Expr.find[ type ]) ) { |
| - | // Search, expanding context for leading sibling combinators |
| - | if ( (seed = find( |
| - | token.matches[0].replace( runescape, funescape ), |
| - | rsibling.test( tokens[0].type ) && context.parentNode || context |
| - | )) ) { |
| - | |
| - | // If seed is empty or no tokens remain, we can return early |
| - | tokens.splice( i, 1 ); |
| - | selector = seed.length && toSelector( tokens ); |
| - | if ( !selector ) { |
| - | push.apply( results, seed ); |
| - | return results; |
| - | } |
| - | |
| - | break; |
| - | } |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Compile and execute a filtering function |
| - | // Provide `match` to avoid retokenization if we modified the selector above |
| - | compile( selector, match )( |
| - | seed, |
| - | context, |
| - | !documentIsHTML, |
| - | results, |
| - | rsibling.test( selector ) |
| - | ); |
| - | return results; |
| - | } |
| - | |
| - | // One-time assignments |
| - | |
| - | // Sort stability |
| - | support.sortStable = expando.split("").sort( sortOrder ).join("") === expando; |
| - | |
| - | // Support: Chrome<14 |
| - | // Always assume duplicates if they aren't passed to the comparison function |
| - | support.detectDuplicates = hasDuplicate; |
| - | |
| - | // Initialize against the default document |
| - | setDocument(); |
| - | |
| - | // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27) |
| - | // Detached nodes confoundingly follow *each other* |
| - | support.sortDetached = assert(function( div1 ) { |
| - | // Should return 1, but returns 4 (following) |
| - | return div1.compareDocumentPosition( document.createElement("div") ) & 1; |
| - | }); |
| - | |
| - | // Support: IE<8 |
| - | // Prevent attribute/property "interpolation" |
| - | // http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx |
| - | if ( !assert(function( div ) { |
| - | div.innerHTML = "<a href='#'></a>"; |
| - | return div.firstChild.getAttribute("href") === "#" ; |
| - | }) ) { |
| - | addHandle( "type|href|height|width", function( elem, name, isXML ) { |
| - | if ( !isXML ) { |
| - | return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 ); |
| - | } |
| - | }); |
| - | } |
| - | |
| - | // Support: IE<9 |
| - | // Use defaultValue in place of getAttribute("value") |
| - | if ( !support.attributes || !assert(function( div ) { |
| - | div.innerHTML = "<input/>"; |
| - | div.firstChild.setAttribute( "value", "" ); |
| - | return div.firstChild.getAttribute( "value" ) === ""; |
| - | }) ) { |
| - | addHandle( "value", function( elem, name, isXML ) { |
| - | if ( !isXML && elem.nodeName.toLowerCase() === "input" ) { |
| - | return elem.defaultValue; |
| - | } |
| - | }); |
| - | } |
| - | |
| - | // Support: IE<9 |
| - | // Use getAttributeNode to fetch booleans when getAttribute lies |
| - | if ( !assert(function( div ) { |
| - | return div.getAttribute("disabled") == null; |
| - | }) ) { |
| - | addHandle( booleans, function( elem, name, isXML ) { |
| - | var val; |
| - | if ( !isXML ) { |
| - | return (val = elem.getAttributeNode( name )) && val.specified ? |
| - | val.value : |
| - | elem[ name ] === true ? name.toLowerCase() : null; |
| - | } |
| - | }); |
| - | } |
| - | |
| - | jQuery.find = Sizzle; |
| - | jQuery.expr = Sizzle.selectors; |
| - | jQuery.expr[":"] = jQuery.expr.pseudos; |
| - | jQuery.unique = Sizzle.uniqueSort; |
| - | jQuery.text = Sizzle.getText; |
| - | jQuery.isXMLDoc = Sizzle.isXML; |
| - | jQuery.contains = Sizzle.contains; |
| - | |
| - | |
| - | })( window ); |
| - | // String to Object options format cache |
| - | var optionsCache = {}; |
| - | |
| - | // Convert String-formatted options into Object-formatted ones and store in cache |
| - | function createOptions( options ) { |
| - | var object = optionsCache[ options ] = {}; |
| - | jQuery.each( options.match( core_rnotwhite ) || [], function( _, flag ) { |
| - | object[ flag ] = true; |
| - | }); |
| - | return object; |
| - | } |
| - | |
| - | /* |
| - | * Create a callback list using the following parameters: |
| - | * |
| - | * options: an optional list of space-separated options that will change how |
| - | * the callback list behaves or a more traditional option object |
| - | * |
| - | * By default a callback list will act like an event callback list and can be |
| - | * "fired" multiple times. |
| - | * |
| - | * Possible options: |
| - | * |
| - | * once: will ensure the callback list can only be fired once (like a Deferred) |
| - | * |
| - | * memory: will keep track of previous values and will call any callback added |
| - | * after the list has been fired right away with the latest "memorized" |
| - | * values (like a Deferred) |
| - | * |
| - | * unique: will ensure a callback can only be added once (no duplicate in the list) |
| - | * |
| - | * stopOnFalse: interrupt callings when a callback returns false |
| - | * |
| - | */ |
| - | jQuery.Callbacks = function( options ) { |
| - | |
| - | // Convert options from String-formatted to Object-formatted if needed |
| - | // (we check in cache first) |
| - | options = typeof options === "string" ? |
| - | ( optionsCache[ options ] || createOptions( options ) ) : |
| - | jQuery.extend( {}, options ); |
| - | |
| - | var // Last fire value (for non-forgettable lists) |
| - | memory, |
| - | // Flag to know if list was already fired |
| - | fired, |
| - | // Flag to know if list is currently firing |
| - | firing, |
| - | // First callback to fire (used internally by add and fireWith) |
| - | firingStart, |
| - | // End of the loop when firing |
| - | firingLength, |
| - | // Index of currently firing callback (modified by remove if needed) |
| - | firingIndex, |
| - | // Actual callback list |
| - | list = [], |
| - | // Stack of fire calls for repeatable lists |
| - | stack = !options.once && [], |
| - | // Fire callbacks |
| - | fire = function( data ) { |
| - | memory = options.memory && data; |
| - | fired = true; |
| - | firingIndex = firingStart || 0; |
| - | firingStart = 0; |
| - | firingLength = list.length; |
| - | firing = true; |
| - | for ( ; list && firingIndex < firingLength; firingIndex++ ) { |
| - | if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) { |
| - | memory = false; // To prevent further calls using add |
| - | break; |
| - | } |
| - | } |
| - | firing = false; |
| - | if ( list ) { |
| - | if ( stack ) { |
| - | if ( stack.length ) { |
| - | fire( stack.shift() ); |
| - | } |
| - | } else if ( memory ) { |
| - | list = []; |
| - | } else { |
| - | self.disable(); |
| - | } |
| - | } |
| - | }, |
| - | // Actual Callbacks object |
| - | self = { |
| - | // Add a callback or a collection of callbacks to the list |
| - | add: function() { |
| - | if ( list ) { |
| - | // First, we save the current length |
| - | var start = list.length; |
| - | (function add( args ) { |
| - | jQuery.each( args, function( _, arg ) { |
| - | var type = jQuery.type( arg ); |
| - | if ( type === "function" ) { |
| - | if ( !options.unique || !self.has( arg ) ) { |
| - | list.push( arg ); |
| - | } |
| - | } else if ( arg && arg.length && type !== "string" ) { |
| - | // Inspect recursively |
| - | add( arg ); |
| - | } |
| - | }); |
| - | })( arguments ); |
| - | // Do we need to add the callbacks to the |
| - | // current firing batch? |
| - | if ( firing ) { |
| - | firingLength = list.length; |
| - | // With memory, if we're not firing then |
| - | // we should call right away |
| - | } else if ( memory ) { |
| - | firingStart = start; |
| - | fire( memory ); |
| - | } |
| - | } |
| - | return this; |
| - | }, |
| - | // Remove a callback from the list |
| - | remove: function() { |
| - | if ( list ) { |
| - | jQuery.each( arguments, function( _, arg ) { |
| - | var index; |
| - | while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) { |
| - | list.splice( index, 1 ); |
| - | // Handle firing indexes |
| - | if ( firing ) { |
| - | if ( index <= firingLength ) { |
| - | firingLength--; |
| - | } |
| - | if ( index <= firingIndex ) { |
| - | firingIndex--; |
| - | } |
| - | } |
| - | } |
| - | }); |
| - | } |
| - | return this; |
| - | }, |
| - | // Check if a given callback is in the list. |
| - | // If no argument is given, return whether or not list has callbacks attached. |
| - | has: function( fn ) { |
| - | return fn ? jQuery.inArray( fn, list ) > -1 : !!( list && list.length ); |
| - | }, |
| - | // Remove all callbacks from the list |
| - | empty: function() { |
| - | list = []; |
| - | firingLength = 0; |
| - | return this; |
| - | }, |
| - | // Have the list do nothing anymore |
| - | disable: function() { |
| - | list = stack = memory = undefined; |
| - | return this; |
| - | }, |
| - | // Is it disabled? |
| - | disabled: function() { |
| - | return !list; |
| - | }, |
| - | // Lock the list in its current state |
| - | lock: function() { |
| - | stack = undefined; |
| - | if ( !memory ) { |
| - | self.disable(); |
| - | } |
| - | return this; |
| - | }, |
| - | // Is it locked? |
| - | locked: function() { |
| - | return !stack; |
| - | }, |
| - | // Call all callbacks with the given context and arguments |
| - | fireWith: function( context, args ) { |
| - | if ( list && ( !fired || stack ) ) { |
| - | args = args || []; |
| - | args = [ context, args.slice ? args.slice() : args ]; |
| - | if ( firing ) { |
| - | stack.push( args ); |
| - | } else { |
| - | fire( args ); |
| - | } |
| - | } |
| - | return this; |
| - | }, |
| - | // Call all the callbacks with the given arguments |
| - | fire: function() { |
| - | self.fireWith( this, arguments ); |
| - | return this; |
| - | }, |
| - | // To know if the callbacks have already been called at least once |
| - | fired: function() { |
| - | return !!fired; |
| - | } |
| - | }; |
| - | |
| - | return self; |
| - | }; |
| - | jQuery.extend({ |
| - | |
| - | Deferred: function( func ) { |
| - | var tuples = [ |
| - | // action, add listener, listener list, final state |
| - | [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ], |
| - | [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ], |
| - | [ "notify", "progress", jQuery.Callbacks("memory") ] |
| - | ], |
| - | state = "pending", |
| - | promise = { |
| - | state: function() { |
| - | return state; |
| - | }, |
| - | always: function() { |
| - | deferred.done( arguments ).fail( arguments ); |
| - | return this; |
| - | }, |
| - | then: function( /* fnDone, fnFail, fnProgress */ ) { |
| - | var fns = arguments; |
| - | return jQuery.Deferred(function( newDefer ) { |
| - | jQuery.each( tuples, function( i, tuple ) { |
| - | var action = tuple[ 0 ], |
| - | fn = jQuery.isFunction( fns[ i ] ) && fns[ i ]; |
| - | // deferred[ done | fail | progress ] for forwarding actions to newDefer |
| - | deferred[ tuple[1] ](function() { |
| - | var returned = fn && fn.apply( this, arguments ); |
| - | if ( returned && jQuery.isFunction( returned.promise ) ) { |
| - | returned.promise() |
| - | .done( newDefer.resolve ) |
| - | .fail( newDefer.reject ) |
| - | .progress( newDefer.notify ); |
| - | } else { |
| - | newDefer[ action + "With" ]( this === promise ? newDefer.promise() : this, fn ? [ returned ] : arguments ); |
| - | } |
| - | }); |
| - | }); |
| - | fns = null; |
| - | }).promise(); |
| - | }, |
| - | // Get a promise for this deferred |
| - | // If obj is provided, the promise aspect is added to the object |
| - | promise: function( obj ) { |
| - | return obj != null ? jQuery.extend( obj, promise ) : promise; |
| - | } |
| - | }, |
| - | deferred = {}; |
| - | |
| - | // Keep pipe for back-compat |
| - | promise.pipe = promise.then; |
| - | |
| - | // Add list-specific methods |
| - | jQuery.each( tuples, function( i, tuple ) { |
| - | var list = tuple[ 2 ], |
| - | stateString = tuple[ 3 ]; |
| - | |
| - | // promise[ done | fail | progress ] = list.add |
| - | promise[ tuple[1] ] = list.add; |
| - | |
| - | // Handle state |
| - | if ( stateString ) { |
| - | list.add(function() { |
| - | // state = [ resolved | rejected ] |
| - | state = stateString; |
| - | |
| - | // [ reject_list | resolve_list ].disable; progress_list.lock |
| - | }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock ); |
| - | } |
| - | |
| - | // deferred[ resolve | reject | notify ] |
| - | deferred[ tuple[0] ] = function() { |
| - | deferred[ tuple[0] + "With" ]( this === deferred ? promise : this, arguments ); |
| - | return this; |
| - | }; |
| - | deferred[ tuple[0] + "With" ] = list.fireWith; |
| - | }); |
| - | |
| - | // Make the deferred a promise |
| - | promise.promise( deferred ); |
| - | |
| - | // Call given func if any |
| - | if ( func ) { |
| - | func.call( deferred, deferred ); |
| - | } |
| - | |
| - | // All done! |
| - | return deferred; |
| - | }, |
| - | |
| - | // Deferred helper |
| - | when: function( subordinate /* , ..., subordinateN */ ) { |
| - | var i = 0, |
| - | resolveValues = core_slice.call( arguments ), |
| - | length = resolveValues.length, |
| - | |
| - | // the count of uncompleted subordinates |
| - | remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0, |
| - | |
| - | // the master Deferred. If resolveValues consist of only a single Deferred, just use that. |
| - | deferred = remaining === 1 ? subordinate : jQuery.Deferred(), |
| - | |
| - | // Update function for both resolve and progress values |
| - | updateFunc = function( i, contexts, values ) { |
| - | return function( value ) { |
| - | contexts[ i ] = this; |
| - | values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value; |
| - | if( values === progressValues ) { |
| - | deferred.notifyWith( contexts, values ); |
| - | } else if ( !( --remaining ) ) { |
| - | deferred.resolveWith( contexts, values ); |
| - | } |
| - | }; |
| - | }, |
| - | |
| - | progressValues, progressContexts, resolveContexts; |
| - | |
| - | // add listeners to Deferred subordinates; treat others as resolved |
| - | if ( length > 1 ) { |
| - | progressValues = new Array( length ); |
| - | progressContexts = new Array( length ); |
| - | resolveContexts = new Array( length ); |
| - | for ( ; i < length; i++ ) { |
| - | if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) { |
| - | resolveValues[ i ].promise() |
| - | .done( updateFunc( i, resolveContexts, resolveValues ) ) |
| - | .fail( deferred.reject ) |
| - | .progress( updateFunc( i, progressContexts, progressValues ) ); |
| - | } else { |
| - | --remaining; |
| - | } |
| - | } |
| - | } |
| - | |
| - | // if we're not waiting on anything, resolve the master |
| - | if ( !remaining ) { |
| - | deferred.resolveWith( resolveContexts, resolveValues ); |
| - | } |
| - | |
| - | return deferred.promise(); |
| - | } |
| - | }); |
| - | jQuery.support = (function( support ) { |
| - | var input = document.createElement("input"), |
| - | fragment = document.createDocumentFragment(), |
| - | div = document.createElement("div"), |
| - | select = document.createElement("select"), |
| - | opt = select.appendChild( document.createElement("option") ); |
| - | |
| - | // Finish early in limited environments |
| - | if ( !input.type ) { |
| - | return support; |
| - | } |
| - | |
| - | input.type = "checkbox"; |
| - | |
| - | // Support: Safari 5.1, iOS 5.1, Android 4.x, Android 2.3 |
| - | // Check the default checkbox/radio value ("" on old WebKit; "on" elsewhere) |
| - | support.checkOn = input.value !== ""; |
| - | |
| - | // Must access the parent to make an option select properly |
| - | // Support: IE9, IE10 |
| - | support.optSelected = opt.selected; |
| - | |
| - | // Will be defined later |
| - | support.reliableMarginRight = true; |
| - | support.boxSizingReliable = true; |
| - | support.pixelPosition = false; |
| - | |
| - | // Make sure checked status is properly cloned |
| - | // Support: IE9, IE10 |
| - | input.checked = true; |
| - | support.noCloneChecked = input.cloneNode( true ).checked; |
| - | |
| - | // Make sure that the options inside disabled selects aren't marked as disabled |
| - | // (WebKit marks them as disabled) |
| - | select.disabled = true; |
| - | support.optDisabled = !opt.disabled; |
| - | |
| - | // Check if an input maintains its value after becoming a radio |
| - | // Support: IE9, IE10 |
| - | input = document.createElement("input"); |
| - | input.value = "t"; |
| - | input.type = "radio"; |
| - | support.radioValue = input.value === "t"; |
| - | |
| - | // #11217 - WebKit loses check when the name is after the checked attribute |
| - | input.setAttribute( "checked", "t" ); |
| - | input.setAttribute( "name", "t" ); |
| - | |
| - | fragment.appendChild( input ); |
| - | |
| - | // Support: Safari 5.1, Android 4.x, Android 2.3 |
| - | // old WebKit doesn't clone checked state correctly in fragments |
| - | support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked; |
| - | |
| - | // Support: Firefox, Chrome, Safari |
| - | // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP) |
| - | support.focusinBubbles = "onfocusin" in window; |
| - | |
| - | div.style.backgroundClip = "content-box"; |
| - | div.cloneNode( true ).style.backgroundClip = ""; |
| - | support.clearCloneStyle = div.style.backgroundClip === "content-box"; |
| - | |
| - | // Run tests that need a body at doc ready |
| - | jQuery(function() { |
| - | var container, marginDiv, |
| - | // Support: Firefox, Android 2.3 (Prefixed box-sizing versions). |
| - | divReset = "padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box", |
| - | body = document.getElementsByTagName("body")[ 0 ]; |
| - | |
| - | if ( !body ) { |
| - | // Return for frameset docs that don't have a body |
| - | return; |
| - | } |
| - | |
| - | container = document.createElement("div"); |
| - | container.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px"; |
| - | |
| - | // Check box-sizing and margin behavior. |
| - | body.appendChild( container ).appendChild( div ); |
| - | div.innerHTML = ""; |
| - | // Support: Firefox, Android 2.3 (Prefixed box-sizing versions). |
| - | div.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%"; |
| - | |
| - | // Workaround failing boxSizing test due to offsetWidth returning wrong value |
| - | // with some non-1 values of body zoom, ticket #13543 |
| - | jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() { |
| - | support.boxSizing = div.offsetWidth === 4; |
| - | }); |
| - | |
| - | // Use window.getComputedStyle because jsdom on node.js will break without it. |
| - | if ( window.getComputedStyle ) { |
| - | support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%"; |
| - | support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px"; |
| - | |
| - | // Support: Android 2.3 |
| - | // Check if div with explicit width and no margin-right incorrectly |
| - | // gets computed margin-right based on width of container. (#3333) |
| - | // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right |
| - | marginDiv = div.appendChild( document.createElement("div") ); |
| - | marginDiv.style.cssText = div.style.cssText = divReset; |
| - | marginDiv.style.marginRight = marginDiv.style.width = "0"; |
| - | div.style.width = "1px"; |
| - | |
| - | support.reliableMarginRight = |
| - | !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight ); |
| - | } |
| - | |
| - | body.removeChild( container ); |
| - | }); |
| - | |
| - | return support; |
| - | })( {} ); |
| - | |
| - | /* |
| - | Implementation Summary |
| - | |
| - | 1. Enforce API surface and semantic compatibility with 1.9.x branch |
| - | 2. Improve the module's maintainability by reducing the storage |
| - | paths to a single mechanism. |
| - | 3. Use the same single mechanism to support "private" and "user" data. |
| - | 4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData) |
| - | 5. Avoid exposing implementation details on user objects (eg. expando properties) |
| - | 6. Provide a clear path for implementation upgrade to WeakMap in 2014 |
| - | */ |
| - | var data_user, data_priv, |
| - | rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, |
| - | rmultiDash = /([A-Z])/g; |
| - | |
| - | function Data() { |
| - | // Support: Android < 4, |
| - | // Old WebKit does not have Object.preventExtensions/freeze method, |
| - | // return new empty object instead with no [[set]] accessor |
| - | Object.defineProperty( this.cache = {}, 0, { |
| - | get: function() { |
| - | return {}; |
| - | } |
| - | }); |
| - | |
| - | this.expando = jQuery.expando + Math.random(); |
| - | } |
| - | |
| - | Data.uid = 1; |
| - | |
| - | Data.accepts = function( owner ) { |
| - | // Accepts only: |
| - | // - Node |
| - | // - Node.ELEMENT_NODE |
| - | // - Node.DOCUMENT_NODE |
| - | // - Object |
| - | // - Any |
| - | return owner.nodeType ? |
| - | owner.nodeType === 1 || owner.nodeType === 9 : true; |
| - | }; |
| - | |
| - | Data.prototype = { |
| - | key: function( owner ) { |
| - | // We can accept data for non-element nodes in modern browsers, |
| - | // but we should not, see #8335. |
| - | // Always return the key for a frozen object. |
| - | if ( !Data.accepts( owner ) ) { |
| - | return 0; |
| - | } |
| - | |
| - | var descriptor = {}, |
| - | // Check if the owner object already has a cache key |
| - | unlock = owner[ this.expando ]; |
| - | |
| - | // If not, create one |
| - | if ( !unlock ) { |
| - | unlock = Data.uid++; |
| - | |
| - | // Secure it in a non-enumerable, non-writable property |
| - | try { |
| - | descriptor[ this.expando ] = { value: unlock }; |
| - | Object.defineProperties( owner, descriptor ); |
| - | |
| - | // Support: Android < 4 |
| - | // Fallback to a less secure definition |
| - | } catch ( e ) { |
| - | descriptor[ this.expando ] = unlock; |
| - | jQuery.extend( owner, descriptor ); |
| - | } |
| - | } |
| - | |
| - | // Ensure the cache object |
| - | if ( !this.cache[ unlock ] ) { |
| - | this.cache[ unlock ] = {}; |
| - | } |
| - | |
| - | return unlock; |
| - | }, |
| - | set: function( owner, data, value ) { |
| - | var prop, |
| - | // There may be an unlock assigned to this node, |
| - | // if there is no entry for this "owner", create one inline |
| - | // and set the unlock as though an owner entry had always existed |
| - | unlock = this.key( owner ), |
| - | cache = this.cache[ unlock ]; |
| - | |
| - | // Handle: [ owner, key, value ] args |
| - | if ( typeof data === "string" ) { |
| - | cache[ data ] = value; |
| - | |
| - | // Handle: [ owner, { properties } ] args |
| - | } else { |
| - | // Fresh assignments by object are shallow copied |
| - | if ( jQuery.isEmptyObject( cache ) ) { |
| - | jQuery.extend( this.cache[ unlock ], data ); |
| - | // Otherwise, copy the properties one-by-one to the cache object |
| - | } else { |
| - | for ( prop in data ) { |
| - | cache[ prop ] = data[ prop ]; |
| - | } |
| - | } |
| - | } |
| - | return cache; |
| - | }, |
| - | get: function( owner, key ) { |
| - | // Either a valid cache is found, or will be created. |
| - | // New caches will be created and the unlock returned, |
| - | // allowing direct access to the newly created |
| - | // empty data object. A valid owner object must be provided. |
| - | var cache = this.cache[ this.key( owner ) ]; |
| - | |
| - | return key === undefined ? |
| - | cache : cache[ key ]; |
| - | }, |
| - | access: function( owner, key, value ) { |
| - | var stored; |
| - | // In cases where either: |
| - | // |
| - | // 1. No key was specified |
| - | // 2. A string key was specified, but no value provided |
| - | // |
| - | // Take the "read" path and allow the get method to determine |
| - | // which value to return, respectively either: |
| - | // |
| - | // 1. The entire cache object |
| - | // 2. The data stored at the key |
| - | // |
| - | if ( key === undefined || |
| - | ((key && typeof key === "string") && value === undefined) ) { |
| - | |
| - | stored = this.get( owner, key ); |
| - | |
| - | return stored !== undefined ? |
| - | stored : this.get( owner, jQuery.camelCase(key) ); |
| - | } |
| - | |
| - | // [*]When the key is not a string, or both a key and value |
| - | // are specified, set or extend (existing objects) with either: |
| - | // |
| - | // 1. An object of properties |
| - | // 2. A key and value |
| - | // |
| - | this.set( owner, key, value ); |
| - | |
| - | // Since the "set" path can have two possible entry points |
| - | // return the expected data based on which path was taken[*] |
| - | return value !== undefined ? value : key; |
| - | }, |
| - | remove: function( owner, key ) { |
| - | var i, name, camel, |
| - | unlock = this.key( owner ), |
| - | cache = this.cache[ unlock ]; |
| - | |
| - | if ( key === undefined ) { |
| - | this.cache[ unlock ] = {}; |
| - | |
| - | } else { |
| - | // Support array or space separated string of keys |
| - | if ( jQuery.isArray( key ) ) { |
| - | // If "name" is an array of keys... |
| - | // When data is initially created, via ("key", "val") signature, |
| - | // keys will be converted to camelCase. |
| - | // Since there is no way to tell _how_ a key was added, remove |
| - | // both plain key and camelCase key. #12786 |
| - | // This will only penalize the array argument path. |
| - | name = key.concat( key.map( jQuery.camelCase ) ); |
| - | } else { |
| - | camel = jQuery.camelCase( key ); |
| - | // Try the string as a key before any manipulation |
| - | if ( key in cache ) { |
| - | name = [ key, camel ]; |
| - | } else { |
| - | // If a key with the spaces exists, use it. |
| - | // Otherwise, create an array by matching non-whitespace |
| - | name = camel; |
| - | name = name in cache ? |
| - | [ name ] : ( name.match( core_rnotwhite ) || [] ); |
| - | } |
| - | } |
| - | |
| - | i = name.length; |
| - | while ( i-- ) { |
| - | delete cache[ name[ i ] ]; |
| - | } |
| - | } |
| - | }, |
| - | hasData: function( owner ) { |
| - | return !jQuery.isEmptyObject( |
| - | this.cache[ owner[ this.expando ] ] || {} |
| - | ); |
| - | }, |
| - | discard: function( owner ) { |
| - | if ( owner[ this.expando ] ) { |
| - | delete this.cache[ owner[ this.expando ] ]; |
| - | } |
| - | } |
| - | }; |
| - | |
| - | // These may be used throughout the jQuery core codebase |
| - | data_user = new Data(); |
| - | data_priv = new Data(); |
| - | |
| - | |
| - | jQuery.extend({ |
| - | acceptData: Data.accepts, |
| - | |
| - | hasData: function( elem ) { |
| - | return data_user.hasData( elem ) || data_priv.hasData( elem ); |
| - | }, |
| - | |
| - | data: function( elem, name, data ) { |
| - | return data_user.access( elem, name, data ); |
| - | }, |
| - | |
| - | removeData: function( elem, name ) { |
| - | data_user.remove( elem, name ); |
| - | }, |
| - | |
| - | // TODO: Now that all calls to _data and _removeData have been replaced |
| - | // with direct calls to data_priv methods, these can be deprecated. |
| - | _data: function( elem, name, data ) { |
| - | return data_priv.access( elem, name, data ); |
| - | }, |
| - | |
| - | _removeData: function( elem, name ) { |
| - | data_priv.remove( elem, name ); |
| - | } |
| - | }); |
| - | |
| - | jQuery.fn.extend({ |
| - | data: function( key, value ) { |
| - | var attrs, name, |
| - | elem = this[ 0 ], |
| - | i = 0, |
| - | data = null; |
| - | |
| - | // Gets all values |
| - | if ( key === undefined ) { |
| - | if ( this.length ) { |
| - | data = data_user.get( elem ); |
| - | |
| - | if ( elem.nodeType === 1 && !data_priv.get( elem, "hasDataAttrs" ) ) { |
| - | attrs = elem.attributes; |
| - | for ( ; i < attrs.length; i++ ) { |
| - | name = attrs[ i ].name; |
| - | |
| - | if ( name.indexOf( "data-" ) === 0 ) { |
| - | name = jQuery.camelCase( name.slice(5) ); |
| - | dataAttr( elem, name, data[ name ] ); |
| - | } |
| - | } |
| - | data_priv.set( elem, "hasDataAttrs", true ); |
| - | } |
| - | } |
| - | |
| - | return data; |
| - | } |
| - | |
| - | // Sets multiple values |
| - | if ( typeof key === "object" ) { |
| - | return this.each(function() { |
| - | data_user.set( this, key ); |
| - | }); |
| - | } |
| - | |
| - | return jQuery.access( this, function( value ) { |
| - | var data, |
| - | camelKey = jQuery.camelCase( key ); |
| - | |
| - | // The calling jQuery object (element matches) is not empty |
| - | // (and therefore has an element appears at this[ 0 ]) and the |
| - | // `value` parameter was not undefined. An empty jQuery object |
| - | // will result in `undefined` for elem = this[ 0 ] which will |
| - | // throw an exception if an attempt to read a data cache is made. |
| - | if ( elem && value === undefined ) { |
| - | // Attempt to get data from the cache |
| - | // with the key as-is |
| - | data = data_user.get( elem, key ); |
| - | if ( data !== undefined ) { |
| - | return data; |
| - | } |
| - | |
| - | // Attempt to get data from the cache |
| - | // with the key camelized |
| - | data = data_user.get( elem, camelKey ); |
| - | if ( data !== undefined ) { |
| - | return data; |
| - | } |
| - | |
| - | // Attempt to "discover" the data in |
| - | // HTML5 custom data-* attrs |
| - | data = dataAttr( elem, camelKey, undefined ); |
| - | if ( data !== undefined ) { |
| - | return data; |
| - | } |
| - | |
| - | // We tried really hard, but the data doesn't exist. |
| - | return; |
| - | } |
| - | |
| - | // Set the data... |
| - | this.each(function() { |
| - | // First, attempt to store a copy or reference of any |
| - | // data that might've been store with a camelCased key. |
| - | var data = data_user.get( this, camelKey ); |
| - | |
| - | // For HTML5 data-* attribute interop, we have to |
| - | // store property names with dashes in a camelCase form. |
| - | // This might not apply to all properties...* |
| - | data_user.set( this, camelKey, value ); |
| - | |
| - | // *... In the case of properties that might _actually_ |
| - | // have dashes, we need to also store a copy of that |
| - | // unchanged property. |
| - | if ( key.indexOf("-") !== -1 && data !== undefined ) { |
| - | data_user.set( this, key, value ); |
| - | } |
| - | }); |
| - | }, null, value, arguments.length > 1, null, true ); |
| - | }, |
| - | |
| - | removeData: function( key ) { |
| - | return this.each(function() { |
| - | data_user.remove( this, key ); |
| - | }); |
| - | } |
| - | }); |
| - | |
| - | function dataAttr( elem, key, data ) { |
| - | var name; |
| - | |
| - | // If nothing was found internally, try to fetch any |
| - | // data from the HTML5 data-* attribute |
| - | if ( data === undefined && elem.nodeType === 1 ) { |
| - | name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase(); |
| - | data = elem.getAttribute( name ); |
| - | |
| - | if ( typeof data === "string" ) { |
| - | try { |
| - | data = data === "true" ? true : |
| - | data === "false" ? false : |
| - | data === "null" ? null : |
| - | // Only convert to a number if it doesn't change the string |
| - | +data + "" === data ? +data : |
| - | rbrace.test( data ) ? JSON.parse( data ) : |
| - | data; |
| - | } catch( e ) {} |
| - | |
| - | // Make sure we set the data so it isn't changed later |
| - | data_user.set( elem, key, data ); |
| - | } else { |
| - | data = undefined; |
| - | } |
| - | } |
| - | return data; |
| - | } |
| - | jQuery.extend({ |
| - | queue: function( elem, type, data ) { |
| - | var queue; |
| - | |
| - | if ( elem ) { |
| - | type = ( type || "fx" ) + "queue"; |
| - | queue = data_priv.get( elem, type ); |
| - | |
| - | // Speed up dequeue by getting out quickly if this is just a lookup |
| - | if ( data ) { |
| - | if ( !queue || jQuery.isArray( data ) ) { |
| - | queue = data_priv.access( elem, type, jQuery.makeArray(data) ); |
| - | } else { |
| - | queue.push( data ); |
| - | } |
| - | } |
| - | return queue || []; |
| - | } |
| - | }, |
| - | |
| - | dequeue: function( elem, type ) { |
| - | type = type || "fx"; |
| - | |
| - | var queue = jQuery.queue( elem, type ), |
| - | startLength = queue.length, |
| - | fn = queue.shift(), |
| - | hooks = jQuery._queueHooks( elem, type ), |
| - | next = function() { |
| - | jQuery.dequeue( elem, type ); |
| - | }; |
| - | |
| - | // If the fx queue is dequeued, always remove the progress sentinel |
| - | if ( fn === "inprogress" ) { |
| - | fn = queue.shift(); |
| - | startLength--; |
| - | } |
| - | |
| - | if ( fn ) { |
| - | |
| - | // Add a progress sentinel to prevent the fx queue from being |
| - | // automatically dequeued |
| - | if ( type === "fx" ) { |
| - | queue.unshift( "inprogress" ); |
| - | } |
| - | |
| - | // clear up the last queue stop function |
| - | delete hooks.stop; |
| - | fn.call( elem, next, hooks ); |
| - | } |
| - | |
| - | if ( !startLength && hooks ) { |
| - | hooks.empty.fire(); |
| - | } |
| - | }, |
| - | |
| - | // not intended for public consumption - generates a queueHooks object, or returns the current one |
| - | _queueHooks: function( elem, type ) { |
| - | var key = type + "queueHooks"; |
| - | return data_priv.get( elem, key ) || data_priv.access( elem, key, { |
| - | empty: jQuery.Callbacks("once memory").add(function() { |
| - | data_priv.remove( elem, [ type + "queue", key ] ); |
| - | }) |
| - | }); |
| - | } |
| - | }); |
| - | |
| - | jQuery.fn.extend({ |
| - | queue: function( type, data ) { |
| - | var setter = 2; |
| - | |
| - | if ( typeof type !== "string" ) { |
| - | data = type; |
| - | type = "fx"; |
| - | setter--; |
| - | } |
| - | |
| - | if ( arguments.length < setter ) { |
| - | return jQuery.queue( this[0], type ); |
| - | } |
| - | |
| - | return data === undefined ? |
| - | this : |
| - | this.each(function() { |
| - | var queue = jQuery.queue( this, type, data ); |
| - | |
| - | // ensure a hooks for this queue |
| - | jQuery._queueHooks( this, type ); |
| - | |
| - | if ( type === "fx" && queue[0] !== "inprogress" ) { |
| - | jQuery.dequeue( this, type ); |
| - | } |
| - | }); |
| - | }, |
| - | dequeue: function( type ) { |
| - | return this.each(function() { |
| - | jQuery.dequeue( this, type ); |
| - | }); |
| - | }, |
| - | // Based off of the plugin by Clint Helfers, with permission. |
| - | // http://blindsignals.com/index.php/2009/07/jquery-delay/ |
| - | delay: function( time, type ) { |
| - | time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time; |
| - | type = type || "fx"; |
| - | |
| - | return this.queue( type, function( next, hooks ) { |
| - | var timeout = setTimeout( next, time ); |
| - | hooks.stop = function() { |
| - | clearTimeout( timeout ); |
| - | }; |
| - | }); |
| - | }, |
| - | clearQueue: function( type ) { |
| - | return this.queue( type || "fx", [] ); |
| - | }, |
| - | // Get a promise resolved when queues of a certain type |
| - | // are emptied (fx is the type by default) |
| - | promise: function( type, obj ) { |
| - | var tmp, |
| - | count = 1, |
| - | defer = jQuery.Deferred(), |
| - | elements = this, |
| - | i = this.length, |
| - | resolve = function() { |
| - | if ( !( --count ) ) { |
| - | defer.resolveWith( elements, [ elements ] ); |
| - | } |
| - | }; |
| - | |
| - | if ( typeof type !== "string" ) { |
| - | obj = type; |
| - | type = undefined; |
| - | } |
| - | type = type || "fx"; |
| - | |
| - | while( i-- ) { |
| - | tmp = data_priv.get( elements[ i ], type + "queueHooks" ); |
| - | if ( tmp && tmp.empty ) { |
| - | count++; |
| - | tmp.empty.add( resolve ); |
| - | } |
| - | } |
| - | resolve(); |
| - | return defer.promise( obj ); |
| - | } |
| - | }); |
| - | var nodeHook, boolHook, |
| - | rclass = /[\t\r\n\f]/g, |
| - | rreturn = /\r/g, |
| - | rfocusable = /^(?:input|select|textarea|button)$/i; |
| - | |
| - | jQuery.fn.extend({ |
| - | attr: function( name, value ) { |
| - | return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 ); |
| - | }, |
| - | |
| - | removeAttr: function( name ) { |
| - | return this.each(function() { |
| - | jQuery.removeAttr( this, name ); |
| - | }); |
| - | }, |
| - | |
| - | prop: function( name, value ) { |
| - | return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 ); |
| - | }, |
| - | |
| - | removeProp: function( name ) { |
| - | return this.each(function() { |
| - | delete this[ jQuery.propFix[ name ] || name ]; |
| - | }); |
| - | }, |
| - | |
| - | addClass: function( value ) { |
| - | var classes, elem, cur, clazz, j, |
| - | i = 0, |
| - | len = this.length, |
| - | proceed = typeof value === "string" && value; |
| - | |
| - | if ( jQuery.isFunction( value ) ) { |
| - | return this.each(function( j ) { |
| - | jQuery( this ).addClass( value.call( this, j, this.className ) ); |
| - | }); |
| - | } |
| - | |
| - | if ( proceed ) { |
| - | // The disjunction here is for better compressibility (see removeClass) |
| - | classes = ( value || "" ).match( core_rnotwhite ) || []; |
| - | |
| - | for ( ; i < len; i++ ) { |
| - | elem = this[ i ]; |
| - | cur = elem.nodeType === 1 && ( elem.className ? |
| - | ( " " + elem.className + " " ).replace( rclass, " " ) : |
| - | " " |
| - | ); |
| - | |
| - | if ( cur ) { |
| - | j = 0; |
| - | while ( (clazz = classes[j++]) ) { |
| - | if ( cur.indexOf( " " + clazz + " " ) < 0 ) { |
| - | cur += clazz + " "; |
| - | } |
| - | } |
| - | elem.className = jQuery.trim( cur ); |
| - | |
| - | } |
| - | } |
| - | } |
| - | |
| - | return this; |
| - | }, |
| - | |
| - | removeClass: function( value ) { |
| - | var classes, elem, cur, clazz, j, |
| - | i = 0, |
| - | len = this.length, |
| - | proceed = arguments.length === 0 || typeof value === "string" && value; |
| - | |
| - | if ( jQuery.isFunction( value ) ) { |
| - | return this.each(function( j ) { |
| - | jQuery( this ).removeClass( value.call( this, j, this.className ) ); |
| - | }); |
| - | } |
| - | if ( proceed ) { |
| - | classes = ( value || "" ).match( core_rnotwhite ) || []; |
| - | |
| - | for ( ; i < len; i++ ) { |
| - | elem = this[ i ]; |
| - | // This expression is here for better compressibility (see addClass) |
| - | cur = elem.nodeType === 1 && ( elem.className ? |
| - | ( " " + elem.className + " " ).replace( rclass, " " ) : |
| - | "" |
| - | ); |
| - | |
| - | if ( cur ) { |
| - | j = 0; |
| - | while ( (clazz = classes[j++]) ) { |
| - | // Remove *all* instances |
| - | while ( cur.indexOf( " " + clazz + " " ) >= 0 ) { |
| - | cur = cur.replace( " " + clazz + " ", " " ); |
| - | } |
| - | } |
| - | elem.className = value ? jQuery.trim( cur ) : ""; |
| - | } |
| - | } |
| - | } |
| - | |
| - | return this; |
| - | }, |
| - | |
| - | toggleClass: function( value, stateVal ) { |
| - | var type = typeof value; |
| - | |
| - | if ( typeof stateVal === "boolean" && type === "string" ) { |
| - | return stateVal ? this.addClass( value ) : this.removeClass( value ); |
| - | } |
| - | |
| - | if ( jQuery.isFunction( value ) ) { |
| - | return this.each(function( i ) { |
| - | jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal ); |
| - | }); |
| - | } |
| - | |
| - | return this.each(function() { |
| - | if ( type === "string" ) { |
| - | // toggle individual class names |
| - | var className, |
| - | i = 0, |
| - | self = jQuery( this ), |
| - | classNames = value.match( core_rnotwhite ) || []; |
| - | |
| - | while ( (className = classNames[ i++ ]) ) { |
| - | // check each className given, space separated list |
| - | if ( self.hasClass( className ) ) { |
| - | self.removeClass( className ); |
| - | } else { |
| - | self.addClass( className ); |
| - | } |
| - | } |
| - | |
| - | // Toggle whole class name |
| - | } else if ( type === core_strundefined || type === "boolean" ) { |
| - | if ( this.className ) { |
| - | // store className if set |
| - | data_priv.set( this, "__className__", this.className ); |
| - | } |
| - | |
| - | // If the element has a class name or if we're passed "false", |
| - | // then remove the whole classname (if there was one, the above saved it). |
| - | // Otherwise bring back whatever was previously saved (if anything), |
| - | // falling back to the empty string if nothing was stored. |
| - | this.className = this.className || value === false ? "" : data_priv.get( this, "__className__" ) || ""; |
| - | } |
| - | }); |
| - | }, |
| - | |
| - | hasClass: function( selector ) { |
| - | var className = " " + selector + " ", |
| - | i = 0, |
| - | l = this.length; |
| - | for ( ; i < l; i++ ) { |
| - | if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) { |
| - | return true; |
| - | } |
| - | } |
| - | |
| - | return false; |
| - | }, |
| - | |
| - | val: function( value ) { |
| - | var hooks, ret, isFunction, |
| - | elem = this[0]; |
| - | |
| - | if ( !arguments.length ) { |
| - | if ( elem ) { |
| - | hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ]; |
| - | |
| - | if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) { |
| - | return ret; |
| - | } |
| - | |
| - | ret = elem.value; |
| - | |
| - | return typeof ret === "string" ? |
| - | // handle most common string cases |
| - | ret.replace(rreturn, "") : |
| - | // handle cases where value is null/undef or number |
| - | ret == null ? "" : ret; |
| - | } |
| - | |
| - | return; |
| - | } |
| - | |
| - | isFunction = jQuery.isFunction( value ); |
| - | |
| - | return this.each(function( i ) { |
| - | var val; |
| - | |
| - | if ( this.nodeType !== 1 ) { |
| - | return; |
| - | } |
| - | |
| - | if ( isFunction ) { |
| - | val = value.call( this, i, jQuery( this ).val() ); |
| - | } else { |
| - | val = value; |
| - | } |
| - | |
| - | // Treat null/undefined as ""; convert numbers to string |
| - | if ( val == null ) { |
| - | val = ""; |
| - | } else if ( typeof val === "number" ) { |
| - | val += ""; |
| - | } else if ( jQuery.isArray( val ) ) { |
| - | val = jQuery.map(val, function ( value ) { |
| - | return value == null ? "" : value + ""; |
| - | }); |
| - | } |
| - | |
| - | hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ]; |
| - | |
| - | // If set returns undefined, fall back to normal setting |
| - | if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) { |
| - | this.value = val; |
| - | } |
| - | }); |
| - | } |
| - | }); |
| - | |
| - | jQuery.extend({ |
| - | valHooks: { |
| - | option: { |
| - | get: function( elem ) { |
| - | // attributes.value is undefined in Blackberry 4.7 but |
| - | // uses .value. See #6932 |
| - | var val = elem.attributes.value; |
| - | return !val || val.specified ? elem.value : elem.text; |
| - | } |
| - | }, |
| - | select: { |
| - | get: function( elem ) { |
| - | var value, option, |
| - | options = elem.options, |
| - | index = elem.selectedIndex, |
| - | one = elem.type === "select-one" || index < 0, |
| - | values = one ? null : [], |
| - | max = one ? index + 1 : options.length, |
| - | i = index < 0 ? |
| - | max : |
| - | one ? index : 0; |
| - | |
| - | // Loop through all the selected options |
| - | for ( ; i < max; i++ ) { |
| - | option = options[ i ]; |
| - | |
| - | // IE6-9 doesn't update selected after form reset (#2551) |
| - | if ( ( option.selected || i === index ) && |
| - | // Don't return options that are disabled or in a disabled optgroup |
| - | ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) && |
| - | ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) { |
| - | |
| - | // Get the specific value for the option |
| - | value = jQuery( option ).val(); |
| - | |
| - | // We don't need an array for one selects |
| - | if ( one ) { |
| - | return value; |
| - | } |
| - | |
| - | // Multi-Selects return an array |
| - | values.push( value ); |
| - | } |
| - | } |
| - | |
| - | return values; |
| - | }, |
| - | |
| - | set: function( elem, value ) { |
| - | var optionSet, option, |
| - | options = elem.options, |
| - | values = jQuery.makeArray( value ), |
| - | i = options.length; |
| - | |
| - | while ( i-- ) { |
| - | option = options[ i ]; |
| - | if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) { |
| - | optionSet = true; |
| - | } |
| - | } |
| - | |
| - | // force browsers to behave consistently when non-matching value is set |
| - | if ( !optionSet ) { |
| - | elem.selectedIndex = -1; |
| - | } |
| - | return values; |
| - | } |
| - | } |
| - | }, |
| - | |
| - | attr: function( elem, name, value ) { |
| - | var hooks, ret, |
| - | nType = elem.nodeType; |
| - | |
| - | // don't get/set attributes on text, comment and attribute nodes |
| - | if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { |
| - | return; |
| - | } |
| - | |
| - | // Fallback to prop when attributes are not supported |
| - | if ( typeof elem.getAttribute === core_strundefined ) { |
| - | return jQuery.prop( elem, name, value ); |
| - | } |
| - | |
| - | // All attributes are lowercase |
| - | // Grab necessary hook if one is defined |
| - | if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) { |
| - | name = name.toLowerCase(); |
| - | hooks = jQuery.attrHooks[ name ] || |
| - | ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook ); |
| - | } |
| - | |
| - | if ( value !== undefined ) { |
| - | |
| - | if ( value === null ) { |
| - | jQuery.removeAttr( elem, name ); |
| - | |
| - | } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) { |
| - | return ret; |
| - | |
| - | } else { |
| - | elem.setAttribute( name, value + "" ); |
| - | return value; |
| - | } |
| - | |
| - | } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) { |
| - | return ret; |
| - | |
| - | } else { |
| - | ret = jQuery.find.attr( elem, name ); |
| - | |
| - | // Non-existent attributes return null, we normalize to undefined |
| - | return ret == null ? |
| - | undefined : |
| - | ret; |
| - | } |
| - | }, |
| - | |
| - | removeAttr: function( elem, value ) { |
| - | var name, propName, |
| - | i = 0, |
| - | attrNames = value && value.match( core_rnotwhite ); |
| - | |
| - | if ( attrNames && elem.nodeType === 1 ) { |
| - | while ( (name = attrNames[i++]) ) { |
| - | propName = jQuery.propFix[ name ] || name; |
| - | |
| - | // Boolean attributes get special treatment (#10870) |
| - | if ( jQuery.expr.match.bool.test( name ) ) { |
| - | // Set corresponding property to false |
| - | elem[ propName ] = false; |
| - | } |
| - | |
| - | elem.removeAttribute( name ); |
| - | } |
| - | } |
| - | }, |
| - | |
| - | attrHooks: { |
| - | type: { |
| - | set: function( elem, value ) { |
| - | if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) { |
| - | // Setting the type on a radio button after the value resets the value in IE6-9 |
| - | // Reset value to default in case type is set after value during creation |
| - | var val = elem.value; |
| - | elem.setAttribute( "type", value ); |
| - | if ( val ) { |
| - | elem.value = val; |
| - | } |
| - | return value; |
| - | } |
| - | } |
| - | } |
| - | }, |
| - | |
| - | propFix: { |
| - | "for": "htmlFor", |
| - | "class": "className" |
| - | }, |
| - | |
| - | prop: function( elem, name, value ) { |
| - | var ret, hooks, notxml, |
| - | nType = elem.nodeType; |
| - | |
| - | // don't get/set properties on text, comment and attribute nodes |
| - | if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { |
| - | return; |
| - | } |
| - | |
| - | notxml = nType !== 1 || !jQuery.isXMLDoc( elem ); |
| - | |
| - | if ( notxml ) { |
| - | // Fix name and attach hooks |
| - | name = jQuery.propFix[ name ] || name; |
| - | hooks = jQuery.propHooks[ name ]; |
| - | } |
| - | |
| - | if ( value !== undefined ) { |
| - | return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ? |
| - | ret : |
| - | ( elem[ name ] = value ); |
| - | |
| - | } else { |
| - | return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ? |
| - | ret : |
| - | elem[ name ]; |
| - | } |
| - | }, |
| - | |
| - | propHooks: { |
| - | tabIndex: { |
| - | get: function( elem ) { |
| - | return elem.hasAttribute( "tabindex" ) || rfocusable.test( elem.nodeName ) || elem.href ? |
| - | elem.tabIndex : |
| - | -1; |
| - | } |
| - | } |
| - | } |
| - | }); |
| - | |
| - | // Hooks for boolean attributes |
| - | boolHook = { |
| - | set: function( elem, value, name ) { |
| - | if ( value === false ) { |
| - | // Remove boolean attributes when set to false |
| - | jQuery.removeAttr( elem, name ); |
| - | } else { |
| - | elem.setAttribute( name, name ); |
| - | } |
| - | return name; |
| - | } |
| - | }; |
| - | jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) { |
| - | var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr; |
| - | |
| - | jQuery.expr.attrHandle[ name ] = function( elem, name, isXML ) { |
| - | var fn = jQuery.expr.attrHandle[ name ], |
| - | ret = isXML ? |
| - | undefined : |
| - | /* jshint eqeqeq: false */ |
| - | // Temporarily disable this handler to check existence |
| - | (jQuery.expr.attrHandle[ name ] = undefined) != |
| - | getter( elem, name, isXML ) ? |
| - | |
| - | name.toLowerCase() : |
| - | null; |
| - | |
| - | // Restore handler |
| - | jQuery.expr.attrHandle[ name ] = fn; |
| - | |
| - | return ret; |
| - | }; |
| - | }); |
| - | |
| - | // Support: IE9+ |
| - | // Selectedness for an option in an optgroup can be inaccurate |
| - | if ( !jQuery.support.optSelected ) { |
| - | jQuery.propHooks.selected = { |
| - | get: function( elem ) { |
| - | var parent = elem.parentNode; |
| - | if ( parent && parent.parentNode ) { |
| - | parent.parentNode.selectedIndex; |
| - | } |
| - | return null; |
| - | } |
| - | }; |
| - | } |
| - | |
| - | jQuery.each([ |
| - | "tabIndex", |
| - | "readOnly", |
| - | "maxLength", |
| - | "cellSpacing", |
| - | "cellPadding", |
| - | "rowSpan", |
| - | "colSpan", |
| - | "useMap", |
| - | "frameBorder", |
| - | "contentEditable" |
| - | ], function() { |
| - | jQuery.propFix[ this.toLowerCase() ] = this; |
| - | }); |
| - | |
| - | // Radios and checkboxes getter/setter |
| - | jQuery.each([ "radio", "checkbox" ], function() { |
| - | jQuery.valHooks[ this ] = { |
| - | set: function( elem, value ) { |
| - | if ( jQuery.isArray( value ) ) { |
| - | return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 ); |
| - | } |
| - | } |
| - | }; |
| - | if ( !jQuery.support.checkOn ) { |
| - | jQuery.valHooks[ this ].get = function( elem ) { |
| - | // Support: Webkit |
| - | // "" is returned instead of "on" if a value isn't specified |
| - | return elem.getAttribute("value") === null ? "on" : elem.value; |
| - | }; |
| - | } |
| - | }); |
| - | var rkeyEvent = /^key/, |
| - | rmouseEvent = /^(?:mouse|contextmenu)|click/, |
| - | rfocusMorph = /^(?:focusinfocus|focusoutblur)$/, |
| - | rtypenamespace = /^([^.]*)(?:\.(.+)|)$/; |
| - | |
| - | function returnTrue() { |
| - | return true; |
| - | } |
| - | |
| - | function returnFalse() { |
| - | return false; |
| - | } |
| - | |
| - | function safeActiveElement() { |
| - | try { |
| - | return document.activeElement; |
| - | } catch ( err ) { } |
| - | } |
| - | |
| - | /* |
| - | * Helper functions for managing events -- not part of the public interface. |
| - | * Props to Dean Edwards' addEvent library for many of the ideas. |
| - | */ |
| - | jQuery.event = { |
| - | |
| - | global: {}, |
| - | |
| - | add: function( elem, types, handler, data, selector ) { |
| - | |
| - | var handleObjIn, eventHandle, tmp, |
| - | events, t, handleObj, |
| - | special, handlers, type, namespaces, origType, |
| - | elemData = data_priv.get( elem ); |
| - | |
| - | // Don't attach events to noData or text/comment nodes (but allow plain objects) |
| - | if ( !elemData ) { |
| - | return; |
| - | } |
| - | |
| - | // Caller can pass in an object of custom data in lieu of the handler |
| - | if ( handler.handler ) { |
| - | handleObjIn = handler; |
| - | handler = handleObjIn.handler; |
| - | selector = handleObjIn.selector; |
| - | } |
| - | |
| - | // Make sure that the handler has a unique ID, used to find/remove it later |
| - | if ( !handler.guid ) { |
| - | handler.guid = jQuery.guid++; |
| - | } |
| - | |
| - | // Init the element's event structure and main handler, if this is the first |
| - | if ( !(events = elemData.events) ) { |
| - | events = elemData.events = {}; |
| - | } |
| - | if ( !(eventHandle = elemData.handle) ) { |
| - | eventHandle = elemData.handle = function( e ) { |
| - | // Discard the second event of a jQuery.event.trigger() and |
| - | // when an event is called after a page has unloaded |
| - | return typeof jQuery !== core_strundefined && (!e || jQuery.event.triggered !== e.type) ? |
| - | jQuery.event.dispatch.apply( eventHandle.elem, arguments ) : |
| - | undefined; |
| - | }; |
| - | // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events |
| - | eventHandle.elem = elem; |
| - | } |
| - | |
| - | // Handle multiple events separated by a space |
| - | types = ( types || "" ).match( core_rnotwhite ) || [""]; |
| - | t = types.length; |
| - | while ( t-- ) { |
| - | tmp = rtypenamespace.exec( types[t] ) || []; |
| - | type = origType = tmp[1]; |
| - | namespaces = ( tmp[2] || "" ).split( "." ).sort(); |
| - | |
| - | // There *must* be a type, no attaching namespace-only handlers |
| - | if ( !type ) { |
| - | continue; |
| - | } |
| - | |
| - | // If event changes its type, use the special event handlers for the changed type |
| - | special = jQuery.event.special[ type ] || {}; |
| - | |
| - | // If selector defined, determine special event api type, otherwise given type |
| - | type = ( selector ? special.delegateType : special.bindType ) || type; |
| - | |
| - | // Update special based on newly reset type |
| - | special = jQuery.event.special[ type ] || {}; |
| - | |
| - | // handleObj is passed to all event handlers |
| - | handleObj = jQuery.extend({ |
| - | type: type, |
| - | origType: origType, |
| - | data: data, |
| - | handler: handler, |
| - | guid: handler.guid, |
| - | selector: selector, |
| - | needsContext: selector && jQuery.expr.match.needsContext.test( selector ), |
| - | namespace: namespaces.join(".") |
| - | }, handleObjIn ); |
| - | |
| - | // Init the event handler queue if we're the first |
| - | if ( !(handlers = events[ type ]) ) { |
| - | handlers = events[ type ] = []; |
| - | handlers.delegateCount = 0; |
| - | |
| - | // Only use addEventListener if the special events handler returns false |
| - | if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) { |
| - | if ( elem.addEventListener ) { |
| - | elem.addEventListener( type, eventHandle, false ); |
| - | } |
| - | } |
| - | } |
| - | |
| - | if ( special.add ) { |
| - | special.add.call( elem, handleObj ); |
| - | |
| - | if ( !handleObj.handler.guid ) { |
| - | handleObj.handler.guid = handler.guid; |
| - | } |
| - | } |
| - | |
| - | // Add to the element's handler list, delegates in front |
| - | if ( selector ) { |
| - | handlers.splice( handlers.delegateCount++, 0, handleObj ); |
| - | } else { |
| - | handlers.push( handleObj ); |
| - | } |
| - | |
| - | // Keep track of which events have ever been used, for event optimization |
| - | jQuery.event.global[ type ] = true; |
| - | } |
| - | |
| - | // Nullify elem to prevent memory leaks in IE |
| - | elem = null; |
| - | }, |
| - | |
| - | // Detach an event or set of events from an element |
| - | remove: function( elem, types, handler, selector, mappedTypes ) { |
| - | |
| - | var j, origCount, tmp, |
| - | events, t, handleObj, |
| - | special, handlers, type, namespaces, origType, |
| - | elemData = data_priv.hasData( elem ) && data_priv.get( elem ); |
| - | |
| - | if ( !elemData || !(events = elemData.events) ) { |
| - | return; |
| - | } |
| - | |
| - | // Once for each type.namespace in types; type may be omitted |
| - | types = ( types || "" ).match( core_rnotwhite ) || [""]; |
| - | t = types.length; |
| - | while ( t-- ) { |
| - | tmp = rtypenamespace.exec( types[t] ) || []; |
| - | type = origType = tmp[1]; |
| - | namespaces = ( tmp[2] || "" ).split( "." ).sort(); |
| - | |
| - | // Unbind all events (on this namespace, if provided) for the element |
| - | if ( !type ) { |
| - | for ( type in events ) { |
| - | jQuery.event.remove( elem, type + types[ t ], handler, selector, true ); |
| - | } |
| - | continue; |
| - | } |
| - | |
| - | special = jQuery.event.special[ type ] || {}; |
| - | type = ( selector ? special.delegateType : special.bindType ) || type; |
| - | handlers = events[ type ] || []; |
| - | tmp = tmp[2] && new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ); |
| - | |
| - | // Remove matching events |
| - | origCount = j = handlers.length; |
| - | while ( j-- ) { |
| - | handleObj = handlers[ j ]; |
| - | |
| - | if ( ( mappedTypes || origType === handleObj.origType ) && |
| - | ( !handler || handler.guid === handleObj.guid ) && |
| - | ( !tmp || tmp.test( handleObj.namespace ) ) && |
| - | ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) { |
| - | handlers.splice( j, 1 ); |
| - | |
| - | if ( handleObj.selector ) { |
| - | handlers.delegateCount--; |
| - | } |
| - | if ( special.remove ) { |
| - | special.remove.call( elem, handleObj ); |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Remove generic event handler if we removed something and no more handlers exist |
| - | // (avoids potential for endless recursion during removal of special event handlers) |
| - | if ( origCount && !handlers.length ) { |
| - | if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) { |
| - | jQuery.removeEvent( elem, type, elemData.handle ); |
| - | } |
| - | |
| - | delete events[ type ]; |
| - | } |
| - | } |
| - | |
| - | // Remove the expando if it's no longer used |
| - | if ( jQuery.isEmptyObject( events ) ) { |
| - | delete elemData.handle; |
| - | data_priv.remove( elem, "events" ); |
| - | } |
| - | }, |
| - | |
| - | trigger: function( event, data, elem, onlyHandlers ) { |
| - | |
| - | var i, cur, tmp, bubbleType, ontype, handle, special, |
| - | eventPath = [ elem || document ], |
| - | type = core_hasOwn.call( event, "type" ) ? event.type : event, |
| - | namespaces = core_hasOwn.call( event, "namespace" ) ? event.namespace.split(".") : []; |
| - | |
| - | cur = tmp = elem = elem || document; |
| - | |
| - | // Don't do events on text and comment nodes |
| - | if ( elem.nodeType === 3 || elem.nodeType === 8 ) { |
| - | return; |
| - | } |
| - | |
| - | // focus/blur morphs to focusin/out; ensure we're not firing them right now |
| - | if ( rfocusMorph.test( type + jQuery.event.triggered ) ) { |
| - | return; |
| - | } |
| - | |
| - | if ( type.indexOf(".") >= 0 ) { |
| - | // Namespaced trigger; create a regexp to match event type in handle() |
| - | namespaces = type.split("."); |
| - | type = namespaces.shift(); |
| - | namespaces.sort(); |
| - | } |
| - | ontype = type.indexOf(":") < 0 && "on" + type; |
| - | |
| - | // Caller can pass in a jQuery.Event object, Object, or just an event type string |
| - | event = event[ jQuery.expando ] ? |
| - | event : |
| - | new jQuery.Event( type, typeof event === "object" && event ); |
| - | |
| - | // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true) |
| - | event.isTrigger = onlyHandlers ? 2 : 3; |
| - | event.namespace = namespaces.join("."); |
| - | event.namespace_re = event.namespace ? |
| - | new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) : |
| - | null; |
| - | |
| - | // Clean up the event in case it is being reused |
| - | event.result = undefined; |
| - | if ( !event.target ) { |
| - | event.target = elem; |
| - | } |
| - | |
| - | // Clone any incoming data and prepend the event, creating the handler arg list |
| - | data = data == null ? |
| - | [ event ] : |
| - | jQuery.makeArray( data, [ event ] ); |
| - | |
| - | // Allow special events to draw outside the lines |
| - | special = jQuery.event.special[ type ] || {}; |
| - | if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) { |
| - | return; |
| - | } |
| - | |
| - | // Determine event propagation path in advance, per W3C events spec (#9951) |
| - | // Bubble up to document, then to window; watch for a global ownerDocument var (#9724) |
| - | if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) { |
| - | |
| - | bubbleType = special.delegateType || type; |
| - | if ( !rfocusMorph.test( bubbleType + type ) ) { |
| - | cur = cur.parentNode; |
| - | } |
| - | for ( ; cur; cur = cur.parentNode ) { |
| - | eventPath.push( cur ); |
| - | tmp = cur; |
| - | } |
| - | |
| - | // Only add window if we got to document (e.g., not plain obj or detached DOM) |
| - | if ( tmp === (elem.ownerDocument || document) ) { |
| - | eventPath.push( tmp.defaultView || tmp.parentWindow || window ); |
| - | } |
| - | } |
| - | |
| - | // Fire handlers on the event path |
| - | i = 0; |
| - | while ( (cur = eventPath[i++]) && !event.isPropagationStopped() ) { |
| - | |
| - | event.type = i > 1 ? |
| - | bubbleType : |
| - | special.bindType || type; |
| - | |
| - | // jQuery handler |
| - | handle = ( data_priv.get( cur, "events" ) || {} )[ event.type ] && data_priv.get( cur, "handle" ); |
| - | if ( handle ) { |
| - | handle.apply( cur, data ); |
| - | } |
| - | |
| - | // Native handler |
| - | handle = ontype && cur[ ontype ]; |
| - | if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) { |
| - | event.preventDefault(); |
| - | } |
| - | } |
| - | event.type = type; |
| - | |
| - | // If nobody prevented the default action, do it now |
| - | if ( !onlyHandlers && !event.isDefaultPrevented() ) { |
| - | |
| - | if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) && |
| - | jQuery.acceptData( elem ) ) { |
| - | |
| - | // Call a native DOM method on the target with the same name name as the event. |
| - | // Don't do default actions on window, that's where global variables be (#6170) |
| - | if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) { |
| - | |
| - | // Don't re-trigger an onFOO event when we call its FOO() method |
| - | tmp = elem[ ontype ]; |
| - | |
| - | if ( tmp ) { |
| - | elem[ ontype ] = null; |
| - | } |
| - | |
| - | // Prevent re-triggering of the same event, since we already bubbled it above |
| - | jQuery.event.triggered = type; |
| - | elem[ type ](); |
| - | jQuery.event.triggered = undefined; |
| - | |
| - | if ( tmp ) { |
| - | elem[ ontype ] = tmp; |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | return event.result; |
| - | }, |
| - | |
| - | dispatch: function( event ) { |
| - | |
| - | // Make a writable jQuery.Event from the native event object |
| - | event = jQuery.event.fix( event ); |
| - | |
| - | var i, j, ret, matched, handleObj, |
| - | handlerQueue = [], |
| - | args = core_slice.call( arguments ), |
| - | handlers = ( data_priv.get( this, "events" ) || {} )[ event.type ] || [], |
| - | special = jQuery.event.special[ event.type ] || {}; |
| - | |
| - | // Use the fix-ed jQuery.Event rather than the (read-only) native event |
| - | args[0] = event; |
| - | event.delegateTarget = this; |
| - | |
| - | // Call the preDispatch hook for the mapped type, and let it bail if desired |
| - | if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) { |
| - | return; |
| - | } |
| - | |
| - | // Determine handlers |
| - | handlerQueue = jQuery.event.handlers.call( this, event, handlers ); |
| - | |
| - | // Run delegates first; they may want to stop propagation beneath us |
| - | i = 0; |
| - | while ( (matched = handlerQueue[ i++ ]) && !event.isPropagationStopped() ) { |
| - | event.currentTarget = matched.elem; |
| - | |
| - | j = 0; |
| - | while ( (handleObj = matched.handlers[ j++ ]) && !event.isImmediatePropagationStopped() ) { |
| - | |
| - | // Triggered event must either 1) have no namespace, or |
| - | // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace). |
| - | if ( !event.namespace_re || event.namespace_re.test( handleObj.namespace ) ) { |
| - | |
| - | event.handleObj = handleObj; |
| - | event.data = handleObj.data; |
| - | |
| - | ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler ) |
| - | .apply( matched.elem, args ); |
| - | |
| - | if ( ret !== undefined ) { |
| - | if ( (event.result = ret) === false ) { |
| - | event.preventDefault(); |
| - | event.stopPropagation(); |
| - | } |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Call the postDispatch hook for the mapped type |
| - | if ( special.postDispatch ) { |
| - | special.postDispatch.call( this, event ); |
| - | } |
| - | |
| - | return event.result; |
| - | }, |
| - | |
| - | handlers: function( event, handlers ) { |
| - | var i, matches, sel, handleObj, |
| - | handlerQueue = [], |
| - | delegateCount = handlers.delegateCount, |
| - | cur = event.target; |
| - | |
| - | // Find delegate handlers |
| - | // Black-hole SVG <use> instance trees (#13180) |
| - | // Avoid non-left-click bubbling in Firefox (#3861) |
| - | if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) { |
| - | |
| - | for ( ; cur !== this; cur = cur.parentNode || this ) { |
| - | |
| - | // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764) |
| - | if ( cur.disabled !== true || event.type !== "click" ) { |
| - | matches = []; |
| - | for ( i = 0; i < delegateCount; i++ ) { |
| - | handleObj = handlers[ i ]; |
| - | |
| - | // Don't conflict with Object.prototype properties (#13203) |
| - | sel = handleObj.selector + " "; |
| - | |
| - | if ( matches[ sel ] === undefined ) { |
| - | matches[ sel ] = handleObj.needsContext ? |
| - | jQuery( sel, this ).index( cur ) >= 0 : |
| - | jQuery.find( sel, this, null, [ cur ] ).length; |
| - | } |
| - | if ( matches[ sel ] ) { |
| - | matches.push( handleObj ); |
| - | } |
| - | } |
| - | if ( matches.length ) { |
| - | handlerQueue.push({ elem: cur, handlers: matches }); |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Add the remaining (directly-bound) handlers |
| - | if ( delegateCount < handlers.length ) { |
| - | handlerQueue.push({ elem: this, handlers: handlers.slice( delegateCount ) }); |
| - | } |
| - | |
| - | return handlerQueue; |
| - | }, |
| - | |
| - | // Includes some event props shared by KeyEvent and MouseEvent |
| - | props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), |
| - | |
| - | fixHooks: {}, |
| - | |
| - | keyHooks: { |
| - | props: "char charCode key keyCode".split(" "), |
| - | filter: function( event, original ) { |
| - | |
| - | // Add which for key events |
| - | if ( event.which == null ) { |
| - | event.which = original.charCode != null ? original.charCode : original.keyCode; |
| - | } |
| - | |
| - | return event; |
| - | } |
| - | }, |
| - | |
| - | mouseHooks: { |
| - | props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "), |
| - | filter: function( event, original ) { |
| - | var eventDoc, doc, body, |
| - | button = original.button; |
| - | |
| - | // Calculate pageX/Y if missing and clientX/Y available |
| - | if ( event.pageX == null && original.clientX != null ) { |
| - | eventDoc = event.target.ownerDocument || document; |
| - | doc = eventDoc.documentElement; |
| - | body = eventDoc.body; |
| - | |
| - | event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 ); |
| - | event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 ); |
| - | } |
| - | |
| - | // Add which for click: 1 === left; 2 === middle; 3 === right |
| - | // Note: button is not normalized, so don't use it |
| - | if ( !event.which && button !== undefined ) { |
| - | event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) ); |
| - | } |
| - | |
| - | return event; |
| - | } |
| - | }, |
| - | |
| - | fix: function( event ) { |
| - | if ( event[ jQuery.expando ] ) { |
| - | return event; |
| - | } |
| - | |
| - | // Create a writable copy of the event object and normalize some properties |
| - | var i, prop, copy, |
| - | type = event.type, |
| - | originalEvent = event, |
| - | fixHook = this.fixHooks[ type ]; |
| - | |
| - | if ( !fixHook ) { |
| - | this.fixHooks[ type ] = fixHook = |
| - | rmouseEvent.test( type ) ? this.mouseHooks : |
| - | rkeyEvent.test( type ) ? this.keyHooks : |
| - | {}; |
| - | } |
| - | copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props; |
| - | |
| - | event = new jQuery.Event( originalEvent ); |
| - | |
| - | i = copy.length; |
| - | while ( i-- ) { |
| - | prop = copy[ i ]; |
| - | event[ prop ] = originalEvent[ prop ]; |
| - | } |
| - | |
| - | // Support: Cordova 2.5 (WebKit) (#13255) |
| - | // All events should have a target; Cordova deviceready doesn't |
| - | if ( !event.target ) { |
| - | event.target = document; |
| - | } |
| - | |
| - | // Support: Safari 6.0+, Chrome < 28 |
| - | // Target should not be a text node (#504, #13143) |
| - | if ( event.target.nodeType === 3 ) { |
| - | event.target = event.target.parentNode; |
| - | } |
| - | |
| - | return fixHook.filter? fixHook.filter( event, originalEvent ) : event; |
| - | }, |
| - | |
| - | special: { |
| - | load: { |
| - | // Prevent triggered image.load events from bubbling to window.load |
| - | noBubble: true |
| - | }, |
| - | focus: { |
| - | // Fire native event if possible so blur/focus sequence is correct |
| - | trigger: function() { |
| - | if ( this !== safeActiveElement() && this.focus ) { |
| - | this.focus(); |
| - | return false; |
| - | } |
| - | }, |
| - | delegateType: "focusin" |
| - | }, |
| - | blur: { |
| - | trigger: function() { |
| - | if ( this === safeActiveElement() && this.blur ) { |
| - | this.blur(); |
| - | return false; |
| - | } |
| - | }, |
| - | delegateType: "focusout" |
| - | }, |
| - | click: { |
| - | // For checkbox, fire native event so checked state will be right |
| - | trigger: function() { |
| - | if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) { |
| - | this.click(); |
| - | return false; |
| - | } |
| - | }, |
| - | |
| - | // For cross-browser consistency, don't fire native .click() on links |
| - | _default: function( event ) { |
| - | return jQuery.nodeName( event.target, "a" ); |
| - | } |
| - | }, |
| - | |
| - | beforeunload: { |
| - | postDispatch: function( event ) { |
| - | |
| - | // Support: Firefox 20+ |
| - | // Firefox doesn't alert if the returnValue field is not set. |
| - | if ( event.result !== undefined ) { |
| - | event.originalEvent.returnValue = event.result; |
| - | } |
| - | } |
| - | } |
| - | }, |
| - | |
| - | simulate: function( type, elem, event, bubble ) { |
| - | // Piggyback on a donor event to simulate a different one. |
| - | // Fake originalEvent to avoid donor's stopPropagation, but if the |
| - | // simulated event prevents default then we do the same on the donor. |
| - | var e = jQuery.extend( |
| - | new jQuery.Event(), |
| - | event, |
| - | { |
| - | type: type, |
| - | isSimulated: true, |
| - | originalEvent: {} |
| - | } |
| - | ); |
| - | if ( bubble ) { |
| - | jQuery.event.trigger( e, null, elem ); |
| - | } else { |
| - | jQuery.event.dispatch.call( elem, e ); |
| - | } |
| - | if ( e.isDefaultPrevented() ) { |
| - | event.preventDefault(); |
| - | } |
| - | } |
| - | }; |
| - | |
| - | jQuery.removeEvent = function( elem, type, handle ) { |
| - | if ( elem.removeEventListener ) { |
| - | elem.removeEventListener( type, handle, false ); |
| - | } |
| - | }; |
| - | |
| - | jQuery.Event = function( src, props ) { |
| - | // Allow instantiation without the 'new' keyword |
| - | if ( !(this instanceof jQuery.Event) ) { |
| - | return new jQuery.Event( src, props ); |
| - | } |
| - | |
| - | // Event object |
| - | if ( src && src.type ) { |
| - | this.originalEvent = src; |
| - | this.type = src.type; |
| - | |
| - | // Events bubbling up the document may have been marked as prevented |
| - | // by a handler lower down the tree; reflect the correct value. |
| - | this.isDefaultPrevented = ( src.defaultPrevented || |
| - | src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse; |
| - | |
| - | // Event type |
| - | } else { |
| - | this.type = src; |
| - | } |
| - | |
| - | // Put explicitly provided properties onto the event object |
| - | if ( props ) { |
| - | jQuery.extend( this, props ); |
| - | } |
| - | |
| - | // Create a timestamp if incoming event doesn't have one |
| - | this.timeStamp = src && src.timeStamp || jQuery.now(); |
| - | |
| - | // Mark it as fixed |
| - | this[ jQuery.expando ] = true; |
| - | }; |
| - | |
| - | // jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding |
| - | // http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html |
| - | jQuery.Event.prototype = { |
| - | isDefaultPrevented: returnFalse, |
| - | isPropagationStopped: returnFalse, |
| - | isImmediatePropagationStopped: returnFalse, |
| - | |
| - | preventDefault: function() { |
| - | var e = this.originalEvent; |
| - | |
| - | this.isDefaultPrevented = returnTrue; |
| - | |
| - | if ( e && e.preventDefault ) { |
| - | e.preventDefault(); |
| - | } |
| - | }, |
| - | stopPropagation: function() { |
| - | var e = this.originalEvent; |
| - | |
| - | this.isPropagationStopped = returnTrue; |
| - | |
| - | if ( e && e.stopPropagation ) { |
| - | e.stopPropagation(); |
| - | } |
| - | }, |
| - | stopImmediatePropagation: function() { |
| - | this.isImmediatePropagationStopped = returnTrue; |
| - | this.stopPropagation(); |
| - | } |
| - | }; |
| - | |
| - | // Create mouseenter/leave events using mouseover/out and event-time checks |
| - | // Support: Chrome 15+ |
| - | jQuery.each({ |
| - | mouseenter: "mouseover", |
| - | mouseleave: "mouseout" |
| - | }, function( orig, fix ) { |
| - | jQuery.event.special[ orig ] = { |
| - | delegateType: fix, |
| - | bindType: fix, |
| - | |
| - | handle: function( event ) { |
| - | var ret, |
| - | target = this, |
| - | related = event.relatedTarget, |
| - | handleObj = event.handleObj; |
| - | |
| - | // For mousenter/leave call the handler if related is outside the target. |
| - | // NB: No relatedTarget if the mouse left/entered the browser window |
| - | if ( !related || (related !== target && !jQuery.contains( target, related )) ) { |
| - | event.type = handleObj.origType; |
| - | ret = handleObj.handler.apply( this, arguments ); |
| - | event.type = fix; |
| - | } |
| - | return ret; |
| - | } |
| - | }; |
| - | }); |
| - | |
| - | // Create "bubbling" focus and blur events |
| - | // Support: Firefox, Chrome, Safari |
| - | if ( !jQuery.support.focusinBubbles ) { |
| - | jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) { |
| - | |
| - | // Attach a single capturing handler while someone wants focusin/focusout |
| - | var attaches = 0, |
| - | handler = function( event ) { |
| - | jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true ); |
| - | }; |
| - | |
| - | jQuery.event.special[ fix ] = { |
| - | setup: function() { |
| - | if ( attaches++ === 0 ) { |
| - | document.addEventListener( orig, handler, true ); |
| - | } |
| - | }, |
| - | teardown: function() { |
| - | if ( --attaches === 0 ) { |
| - | document.removeEventListener( orig, handler, true ); |
| - | } |
| - | } |
| - | }; |
| - | }); |
| - | } |
| - | |
| - | jQuery.fn.extend({ |
| - | |
| - | on: function( types, selector, data, fn, /*INTERNAL*/ one ) { |
| - | var origFn, type; |
| - | |
| - | // Types can be a map of types/handlers |
| - | if ( typeof types === "object" ) { |
| - | // ( types-Object, selector, data ) |
| - | if ( typeof selector !== "string" ) { |
| - | // ( types-Object, data ) |
| - | data = data || selector; |
| - | selector = undefined; |
| - | } |
| - | for ( type in types ) { |
| - | this.on( type, selector, data, types[ type ], one ); |
| - | } |
| - | return this; |
| - | } |
| - | |
| - | if ( data == null && fn == null ) { |
| - | // ( types, fn ) |
| - | fn = selector; |
| - | data = selector = undefined; |
| - | } else if ( fn == null ) { |
| - | if ( typeof selector === "string" ) { |
| - | // ( types, selector, fn ) |
| - | fn = data; |
| - | data = undefined; |
| - | } else { |
| - | // ( types, data, fn ) |
| - | fn = data; |
| - | data = selector; |
| - | selector = undefined; |
| - | } |
| - | } |
| - | if ( fn === false ) { |
| - | fn = returnFalse; |
| - | } else if ( !fn ) { |
| - | return this; |
| - | } |
| - | |
| - | if ( one === 1 ) { |
| - | origFn = fn; |
| - | fn = function( event ) { |
| - | // Can use an empty set, since event contains the info |
| - | jQuery().off( event ); |
| - | return origFn.apply( this, arguments ); |
| - | }; |
| - | // Use same guid so caller can remove using origFn |
| - | fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ ); |
| - | } |
| - | return this.each( function() { |
| - | jQuery.event.add( this, types, fn, data, selector ); |
| - | }); |
| - | }, |
| - | one: function( types, selector, data, fn ) { |
| - | return this.on( types, selector, data, fn, 1 ); |
| - | }, |
| - | off: function( types, selector, fn ) { |
| - | var handleObj, type; |
| - | if ( types && types.preventDefault && types.handleObj ) { |
| - | // ( event ) dispatched jQuery.Event |
| - | handleObj = types.handleObj; |
| - | jQuery( types.delegateTarget ).off( |
| - | handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType, |
| - | handleObj.selector, |
| - | handleObj.handler |
| - | ); |
| - | return this; |
| - | } |
| - | if ( typeof types === "object" ) { |
| - | // ( types-object [, selector] ) |
| - | for ( type in types ) { |
| - | this.off( type, selector, types[ type ] ); |
| - | } |
| - | return this; |
| - | } |
| - | if ( selector === false || typeof selector === "function" ) { |
| - | // ( types [, fn] ) |
| - | fn = selector; |
| - | selector = undefined; |
| - | } |
| - | if ( fn === false ) { |
| - | fn = returnFalse; |
| - | } |
| - | return this.each(function() { |
| - | jQuery.event.remove( this, types, fn, selector ); |
| - | }); |
| - | }, |
| - | |
| - | trigger: function( type, data ) { |
| - | return this.each(function() { |
| - | jQuery.event.trigger( type, data, this ); |
| - | }); |
| - | }, |
| - | triggerHandler: function( type, data ) { |
| - | var elem = this[0]; |
| - | if ( elem ) { |
| - | return jQuery.event.trigger( type, data, elem, true ); |
| - | } |
| - | } |
| - | }); |
| - | var isSimple = /^.[^:#\[\.,]*$/, |
| - | rparentsprev = /^(?:parents|prev(?:Until|All))/, |
| - | rneedsContext = jQuery.expr.match.needsContext, |
| - | // methods guaranteed to produce a unique set when starting from a unique set |
| - | guaranteedUnique = { |
| - | children: true, |
| - | contents: true, |
| - | next: true, |
| - | prev: true |
| - | }; |
| - | |
| - | jQuery.fn.extend({ |
| - | find: function( selector ) { |
| - | var i, |
| - | ret = [], |
| - | self = this, |
| - | len = self.length; |
| - | |
| - | if ( typeof selector !== "string" ) { |
| - | return this.pushStack( jQuery( selector ).filter(function() { |
| - | for ( i = 0; i < len; i++ ) { |
| - | if ( jQuery.contains( self[ i ], this ) ) { |
| - | return true; |
| - | } |
| - | } |
| - | }) ); |
| - | } |
| - | |
| - | for ( i = 0; i < len; i++ ) { |
| - | jQuery.find( selector, self[ i ], ret ); |
| - | } |
| - | |
| - | // Needed because $( selector, context ) becomes $( context ).find( selector ) |
| - | ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret ); |
| - | ret.selector = this.selector ? this.selector + " " + selector : selector; |
| - | return ret; |
| - | }, |
| - | |
| - | has: function( target ) { |
| - | var targets = jQuery( target, this ), |
| - | l = targets.length; |
| - | |
| - | return this.filter(function() { |
| - | var i = 0; |
| - | for ( ; i < l; i++ ) { |
| - | if ( jQuery.contains( this, targets[i] ) ) { |
| - | return true; |
| - | } |
| - | } |
| - | }); |
| - | }, |
| - | |
| - | not: function( selector ) { |
| - | return this.pushStack( winnow(this, selector || [], true) ); |
| - | }, |
| - | |
| - | filter: function( selector ) { |
| - | return this.pushStack( winnow(this, selector || [], false) ); |
| - | }, |
| - | |
| - | is: function( selector ) { |
| - | return !!winnow( |
| - | this, |
| - | |
| - | // If this is a positional/relative selector, check membership in the returned set |
| - | // so $("p:first").is("p:last") won't return true for a doc with two "p". |
| - | typeof selector === "string" && rneedsContext.test( selector ) ? |
| - | jQuery( selector ) : |
| - | selector || [], |
| - | false |
| - | ).length; |
| - | }, |
| - | |
| - | closest: function( selectors, context ) { |
| - | var cur, |
| - | i = 0, |
| - | l = this.length, |
| - | matched = [], |
| - | pos = ( rneedsContext.test( selectors ) || typeof selectors !== "string" ) ? |
| - | jQuery( selectors, context || this.context ) : |
| - | 0; |
| - | |
| - | for ( ; i < l; i++ ) { |
| - | for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) { |
| - | // Always skip document fragments |
| - | if ( cur.nodeType < 11 && (pos ? |
| - | pos.index(cur) > -1 : |
| - | |
| - | // Don't pass non-elements to Sizzle |
| - | cur.nodeType === 1 && |
| - | jQuery.find.matchesSelector(cur, selectors)) ) { |
| - | |
| - | cur = matched.push( cur ); |
| - | break; |
| - | } |
| - | } |
| - | } |
| - | |
| - | return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched ); |
| - | }, |
| - | |
| - | // Determine the position of an element within |
| - | // the matched set of elements |
| - | index: function( elem ) { |
| - | |
| - | // No argument, return index in parent |
| - | if ( !elem ) { |
| - | return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1; |
| - | } |
| - | |
| - | // index in selector |
| - | if ( typeof elem === "string" ) { |
| - | return core_indexOf.call( jQuery( elem ), this[ 0 ] ); |
| - | } |
| - | |
| - | // Locate the position of the desired element |
| - | return core_indexOf.call( this, |
| - | |
| - | // If it receives a jQuery object, the first element is used |
| - | elem.jquery ? elem[ 0 ] : elem |
| - | ); |
| - | }, |
| - | |
| - | add: function( selector, context ) { |
| - | var set = typeof selector === "string" ? |
| - | jQuery( selector, context ) : |
| - | jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ), |
| - | all = jQuery.merge( this.get(), set ); |
| - | |
| - | return this.pushStack( jQuery.unique(all) ); |
| - | }, |
| - | |
| - | addBack: function( selector ) { |
| - | return this.add( selector == null ? |
| - | this.prevObject : this.prevObject.filter(selector) |
| - | ); |
| - | } |
| - | }); |
| - | |
| - | function sibling( cur, dir ) { |
| - | while ( (cur = cur[dir]) && cur.nodeType !== 1 ) {} |
| - | |
| - | return cur; |
| - | } |
| - | |
| - | jQuery.each({ |
| - | parent: function( elem ) { |
| - | var parent = elem.parentNode; |
| - | return parent && parent.nodeType !== 11 ? parent : null; |
| - | }, |
| - | parents: function( elem ) { |
| - | return jQuery.dir( elem, "parentNode" ); |
| - | }, |
| - | parentsUntil: function( elem, i, until ) { |
| - | return jQuery.dir( elem, "parentNode", until ); |
| - | }, |
| - | next: function( elem ) { |
| - | return sibling( elem, "nextSibling" ); |
| - | }, |
| - | prev: function( elem ) { |
| - | return sibling( elem, "previousSibling" ); |
| - | }, |
| - | nextAll: function( elem ) { |
| - | return jQuery.dir( elem, "nextSibling" ); |
| - | }, |
| - | prevAll: function( elem ) { |
| - | return jQuery.dir( elem, "previousSibling" ); |
| - | }, |
| - | nextUntil: function( elem, i, until ) { |
| - | return jQuery.dir( elem, "nextSibling", until ); |
| - | }, |
| - | prevUntil: function( elem, i, until ) { |
| - | return jQuery.dir( elem, "previousSibling", until ); |
| - | }, |
| - | siblings: function( elem ) { |
| - | return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem ); |
| - | }, |
| - | children: function( elem ) { |
| - | return jQuery.sibling( elem.firstChild ); |
| - | }, |
| - | contents: function( elem ) { |
| - | return elem.contentDocument || jQuery.merge( [], elem.childNodes ); |
| - | } |
| - | }, function( name, fn ) { |
| - | jQuery.fn[ name ] = function( until, selector ) { |
| - | var matched = jQuery.map( this, fn, until ); |
| - | |
| - | if ( name.slice( -5 ) !== "Until" ) { |
| - | selector = until; |
| - | } |
| - | |
| - | if ( selector && typeof selector === "string" ) { |
| - | matched = jQuery.filter( selector, matched ); |
| - | } |
| - | |
| - | if ( this.length > 1 ) { |
| - | // Remove duplicates |
| - | if ( !guaranteedUnique[ name ] ) { |
| - | jQuery.unique( matched ); |
| - | } |
| - | |
| - | // Reverse order for parents* and prev-derivatives |
| - | if ( rparentsprev.test( name ) ) { |
| - | matched.reverse(); |
| - | } |
| - | } |
| - | |
| - | return this.pushStack( matched ); |
| - | }; |
| - | }); |
| - | |
| - | jQuery.extend({ |
| - | filter: function( expr, elems, not ) { |
| - | var elem = elems[ 0 ]; |
| - | |
| - | if ( not ) { |
| - | expr = ":not(" + expr + ")"; |
| - | } |
| - | |
| - | return elems.length === 1 && elem.nodeType === 1 ? |
| - | jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] : |
| - | jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) { |
| - | return elem.nodeType === 1; |
| - | })); |
| - | }, |
| - | |
| - | dir: function( elem, dir, until ) { |
| - | var matched = [], |
| - | truncate = until !== undefined; |
| - | |
| - | while ( (elem = elem[ dir ]) && elem.nodeType !== 9 ) { |
| - | if ( elem.nodeType === 1 ) { |
| - | if ( truncate && jQuery( elem ).is( until ) ) { |
| - | break; |
| - | } |
| - | matched.push( elem ); |
| - | } |
| - | } |
| - | return matched; |
| - | }, |
| - | |
| - | sibling: function( n, elem ) { |
| - | var matched = []; |
| - | |
| - | for ( ; n; n = n.nextSibling ) { |
| - | if ( n.nodeType === 1 && n !== elem ) { |
| - | matched.push( n ); |
| - | } |
| - | } |
| - | |
| - | return matched; |
| - | } |
| - | }); |
| - | |
| - | // Implement the identical functionality for filter and not |
| - | function winnow( elements, qualifier, not ) { |
| - | if ( jQuery.isFunction( qualifier ) ) { |
| - | return jQuery.grep( elements, function( elem, i ) { |
| - | /* jshint -W018 */ |
| - | return !!qualifier.call( elem, i, elem ) !== not; |
| - | }); |
| - | |
| - | } |
| - | |
| - | if ( qualifier.nodeType ) { |
| - | return jQuery.grep( elements, function( elem ) { |
| - | return ( elem === qualifier ) !== not; |
| - | }); |
| - | |
| - | } |
| - | |
| - | if ( typeof qualifier === "string" ) { |
| - | if ( isSimple.test( qualifier ) ) { |
| - | return jQuery.filter( qualifier, elements, not ); |
| - | } |
| - | |
| - | qualifier = jQuery.filter( qualifier, elements ); |
| - | } |
| - | |
| - | return jQuery.grep( elements, function( elem ) { |
| - | return ( core_indexOf.call( qualifier, elem ) >= 0 ) !== not; |
| - | }); |
| - | } |
| - | var rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, |
| - | rtagName = /<([\w:]+)/, |
| - | rhtml = /<|&#?\w+;/, |
| - | rnoInnerhtml = /<(?:script|style|link)/i, |
| - | manipulation_rcheckableType = /^(?:checkbox|radio)$/i, |
| - | // checked="checked" or checked |
| - | rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i, |
| - | rscriptType = /^$|\/(?:java|ecma)script/i, |
| - | rscriptTypeMasked = /^true\/(.*)/, |
| - | rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, |
| - | |
| - | // We have to close these tags to support XHTML (#13200) |
| - | wrapMap = { |
| - | |
| - | // Support: IE 9 |
| - | option: [ 1, "<select multiple='multiple'>", "</select>" ], |
| - | |
| - | thead: [ 1, "<table>", "</table>" ], |
| - | col: [ 2, "<table><colgroup>", "</colgroup></table>" ], |
| - | tr: [ 2, "<table><tbody>", "</tbody></table>" ], |
| - | td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ], |
| - | |
| - | _default: [ 0, "", "" ] |
| - | }; |
| - | |
| - | // Support: IE 9 |
| - | wrapMap.optgroup = wrapMap.option; |
| - | |
| - | wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead; |
| - | wrapMap.th = wrapMap.td; |
| - | |
| - | jQuery.fn.extend({ |
| - | text: function( value ) { |
| - | return jQuery.access( this, function( value ) { |
| - | return value === undefined ? |
| - | jQuery.text( this ) : |
| - | this.empty().append( ( this[ 0 ] && this[ 0 ].ownerDocument || document ).createTextNode( value ) ); |
| - | }, null, value, arguments.length ); |
| - | }, |
| - | |
| - | append: function() { |
| - | return this.domManip( arguments, function( elem ) { |
| - | if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { |
| - | var target = manipulationTarget( this, elem ); |
| - | target.appendChild( elem ); |
| - | } |
| - | }); |
| - | }, |
| - | |
| - | prepend: function() { |
| - | return this.domManip( arguments, function( elem ) { |
| - | if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) { |
| - | var target = manipulationTarget( this, elem ); |
| - | target.insertBefore( elem, target.firstChild ); |
| - | } |
| - | }); |
| - | }, |
| - | |
| - | before: function() { |
| - | return this.domManip( arguments, function( elem ) { |
| - | if ( this.parentNode ) { |
| - | this.parentNode.insertBefore( elem, this ); |
| - | } |
| - | }); |
| - | }, |
| - | |
| - | after: function() { |
| - | return this.domManip( arguments, function( elem ) { |
| - | if ( this.parentNode ) { |
| - | this.parentNode.insertBefore( elem, this.nextSibling ); |
| - | } |
| - | }); |
| - | }, |
| - | |
| - | // keepData is for internal use only--do not document |
| - | remove: function( selector, keepData ) { |
| - | var elem, |
| - | elems = selector ? jQuery.filter( selector, this ) : this, |
| - | i = 0; |
| - | |
| - | for ( ; (elem = elems[i]) != null; i++ ) { |
| - | if ( !keepData && elem.nodeType === 1 ) { |
| - | jQuery.cleanData( getAll( elem ) ); |
| - | } |
| - | |
| - | if ( elem.parentNode ) { |
| - | if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) { |
| - | setGlobalEval( getAll( elem, "script" ) ); |
| - | } |
| - | elem.parentNode.removeChild( elem ); |
| - | } |
| - | } |
| - | |
| - | return this; |
| - | }, |
| - | |
| - | empty: function() { |
| - | var elem, |
| - | i = 0; |
| - | |
| - | for ( ; (elem = this[i]) != null; i++ ) { |
| - | if ( elem.nodeType === 1 ) { |
| - | |
| - | // Prevent memory leaks |
| - | jQuery.cleanData( getAll( elem, false ) ); |
| - | |
| - | // Remove any remaining nodes |
| - | elem.textContent = ""; |
| - | } |
| - | } |
| - | |
| - | return this; |
| - | }, |
| - | |
| - | clone: function( dataAndEvents, deepDataAndEvents ) { |
| - | dataAndEvents = dataAndEvents == null ? false : dataAndEvents; |
| - | deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents; |
| - | |
| - | return this.map( function () { |
| - | return jQuery.clone( this, dataAndEvents, deepDataAndEvents ); |
| - | }); |
| - | }, |
| - | |
| - | html: function( value ) { |
| - | return jQuery.access( this, function( value ) { |
| - | var elem = this[ 0 ] || {}, |
| - | i = 0, |
| - | l = this.length; |
| - | |
| - | if ( value === undefined && elem.nodeType === 1 ) { |
| - | return elem.innerHTML; |
| - | } |
| - | |
| - | // See if we can take a shortcut and just use innerHTML |
| - | if ( typeof value === "string" && !rnoInnerhtml.test( value ) && |
| - | !wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) { |
| - | |
| - | value = value.replace( rxhtmlTag, "<$1></$2>" ); |
| - | |
| - | try { |
| - | for ( ; i < l; i++ ) { |
| - | elem = this[ i ] || {}; |
| - | |
| - | // Remove element nodes and prevent memory leaks |
| - | if ( elem.nodeType === 1 ) { |
| - | jQuery.cleanData( getAll( elem, false ) ); |
| - | elem.innerHTML = value; |
| - | } |
| - | } |
| - | |
| - | elem = 0; |
| - | |
| - | // If using innerHTML throws an exception, use the fallback method |
| - | } catch( e ) {} |
| - | } |
| - | |
| - | if ( elem ) { |
| - | this.empty().append( value ); |
| - | } |
| - | }, null, value, arguments.length ); |
| - | }, |
| - | |
| - | replaceWith: function() { |
| - | var |
| - | // Snapshot the DOM in case .domManip sweeps something relevant into its fragment |
| - | args = jQuery.map( this, function( elem ) { |
| - | return [ elem.nextSibling, elem.parentNode ]; |
| - | }), |
| - | i = 0; |
| - | |
| - | // Make the changes, replacing each context element with the new content |
| - | this.domManip( arguments, function( elem ) { |
| - | var next = args[ i++ ], |
| - | parent = args[ i++ ]; |
| - | |
| - | if ( parent ) { |
| - | // Don't use the snapshot next if it has moved (#13810) |
| - | if ( next && next.parentNode !== parent ) { |
| - | next = this.nextSibling; |
| - | } |
| - | jQuery( this ).remove(); |
| - | parent.insertBefore( elem, next ); |
| - | } |
| - | // Allow new content to include elements from the context set |
| - | }, true ); |
| - | |
| - | // Force removal if there was no new content (e.g., from empty arguments) |
| - | return i ? this : this.remove(); |
| - | }, |
| - | |
| - | detach: function( selector ) { |
| - | return this.remove( selector, true ); |
| - | }, |
| - | |
| - | domManip: function( args, callback, allowIntersection ) { |
| - | |
| - | // Flatten any nested arrays |
| - | args = core_concat.apply( [], args ); |
| - | |
| - | var fragment, first, scripts, hasScripts, node, doc, |
| - | i = 0, |
| - | l = this.length, |
| - | set = this, |
| - | iNoClone = l - 1, |
| - | value = args[ 0 ], |
| - | isFunction = jQuery.isFunction( value ); |
| - | |
| - | // We can't cloneNode fragments that contain checked, in WebKit |
| - | if ( isFunction || !( l <= 1 || typeof value !== "string" || jQuery.support.checkClone || !rchecked.test( value ) ) ) { |
| - | return this.each(function( index ) { |
| - | var self = set.eq( index ); |
| - | if ( isFunction ) { |
| - | args[ 0 ] = value.call( this, index, self.html() ); |
| - | } |
| - | self.domManip( args, callback, allowIntersection ); |
| - | }); |
| - | } |
| - | |
| - | if ( l ) { |
| - | fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, !allowIntersection && this ); |
| - | first = fragment.firstChild; |
| - | |
| - | if ( fragment.childNodes.length === 1 ) { |
| - | fragment = first; |
| - | } |
| - | |
| - | if ( first ) { |
| - | scripts = jQuery.map( getAll( fragment, "script" ), disableScript ); |
| - | hasScripts = scripts.length; |
| - | |
| - | // Use the original fragment for the last item instead of the first because it can end up |
| - | // being emptied incorrectly in certain situations (#8070). |
| - | for ( ; i < l; i++ ) { |
| - | node = fragment; |
| - | |
| - | if ( i !== iNoClone ) { |
| - | node = jQuery.clone( node, true, true ); |
| - | |
| - | // Keep references to cloned scripts for later restoration |
| - | if ( hasScripts ) { |
| - | // Support: QtWebKit |
| - | // jQuery.merge because core_push.apply(_, arraylike) throws |
| - | jQuery.merge( scripts, getAll( node, "script" ) ); |
| - | } |
| - | } |
| - | |
| - | callback.call( this[ i ], node, i ); |
| - | } |
| - | |
| - | if ( hasScripts ) { |
| - | doc = scripts[ scripts.length - 1 ].ownerDocument; |
| - | |
| - | // Reenable scripts |
| - | jQuery.map( scripts, restoreScript ); |
| - | |
| - | // Evaluate executable scripts on first document insertion |
| - | for ( i = 0; i < hasScripts; i++ ) { |
| - | node = scripts[ i ]; |
| - | if ( rscriptType.test( node.type || "" ) && |
| - | !data_priv.access( node, "globalEval" ) && jQuery.contains( doc, node ) ) { |
| - | |
| - | if ( node.src ) { |
| - | // Hope ajax is available... |
| - | jQuery._evalUrl( node.src ); |
| - | } else { |
| - | jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) ); |
| - | } |
| - | } |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | return this; |
| - | } |
| - | }); |
| - | |
| - | jQuery.each({ |
| - | appendTo: "append", |
| - | prependTo: "prepend", |
| - | insertBefore: "before", |
| - | insertAfter: "after", |
| - | replaceAll: "replaceWith" |
| - | }, function( name, original ) { |
| - | jQuery.fn[ name ] = function( selector ) { |
| - | var elems, |
| - | ret = [], |
| - | insert = jQuery( selector ), |
| - | last = insert.length - 1, |
| - | i = 0; |
| - | |
| - | for ( ; i <= last; i++ ) { |
| - | elems = i === last ? this : this.clone( true ); |
| - | jQuery( insert[ i ] )[ original ]( elems ); |
| - | |
| - | // Support: QtWebKit |
| - | // .get() because core_push.apply(_, arraylike) throws |
| - | core_push.apply( ret, elems.get() ); |
| - | } |
| - | |
| - | return this.pushStack( ret ); |
| - | }; |
| - | }); |
| - | |
| - | jQuery.extend({ |
| - | clone: function( elem, dataAndEvents, deepDataAndEvents ) { |
| - | var i, l, srcElements, destElements, |
| - | clone = elem.cloneNode( true ), |
| - | inPage = jQuery.contains( elem.ownerDocument, elem ); |
| - | |
| - | // Support: IE >= 9 |
| - | // Fix Cloning issues |
| - | if ( !jQuery.support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) && !jQuery.isXMLDoc( elem ) ) { |
| - | |
| - | // We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2 |
| - | destElements = getAll( clone ); |
| - | srcElements = getAll( elem ); |
| - | |
| - | for ( i = 0, l = srcElements.length; i < l; i++ ) { |
| - | fixInput( srcElements[ i ], destElements[ i ] ); |
| - | } |
| - | } |
| - | |
| - | // Copy the events from the original to the clone |
| - | if ( dataAndEvents ) { |
| - | if ( deepDataAndEvents ) { |
| - | srcElements = srcElements || getAll( elem ); |
| - | destElements = destElements || getAll( clone ); |
| - | |
| - | for ( i = 0, l = srcElements.length; i < l; i++ ) { |
| - | cloneCopyEvent( srcElements[ i ], destElements[ i ] ); |
| - | } |
| - | } else { |
| - | cloneCopyEvent( elem, clone ); |
| - | } |
| - | } |
| - | |
| - | // Preserve script evaluation history |
| - | destElements = getAll( clone, "script" ); |
| - | if ( destElements.length > 0 ) { |
| - | setGlobalEval( destElements, !inPage && getAll( elem, "script" ) ); |
| - | } |
| - | |
| - | // Return the cloned set |
| - | return clone; |
| - | }, |
| - | |
| - | buildFragment: function( elems, context, scripts, selection ) { |
| - | var elem, tmp, tag, wrap, contains, j, |
| - | i = 0, |
| - | l = elems.length, |
| - | fragment = context.createDocumentFragment(), |
| - | nodes = []; |
| - | |
| - | for ( ; i < l; i++ ) { |
| - | elem = elems[ i ]; |
| - | |
| - | if ( elem || elem === 0 ) { |
| - | |
| - | // Add nodes directly |
| - | if ( jQuery.type( elem ) === "object" ) { |
| - | // Support: QtWebKit |
| - | // jQuery.merge because core_push.apply(_, arraylike) throws |
| - | jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem ); |
| - | |
| - | // Convert non-html into a text node |
| - | } else if ( !rhtml.test( elem ) ) { |
| - | nodes.push( context.createTextNode( elem ) ); |
| - | |
| - | // Convert html into DOM nodes |
| - | } else { |
| - | tmp = tmp || fragment.appendChild( context.createElement("div") ); |
| - | |
| - | // Deserialize a standard representation |
| - | tag = ( rtagName.exec( elem ) || ["", ""] )[ 1 ].toLowerCase(); |
| - | wrap = wrapMap[ tag ] || wrapMap._default; |
| - | tmp.innerHTML = wrap[ 1 ] + elem.replace( rxhtmlTag, "<$1></$2>" ) + wrap[ 2 ]; |
| - | |
| - | // Descend through wrappers to the right content |
| - | j = wrap[ 0 ]; |
| - | while ( j-- ) { |
| - | tmp = tmp.lastChild; |
| - | } |
| - | |
| - | // Support: QtWebKit |
| - | // jQuery.merge because core_push.apply(_, arraylike) throws |
| - | jQuery.merge( nodes, tmp.childNodes ); |
| - | |
| - | // Remember the top-level container |
| - | tmp = fragment.firstChild; |
| - | |
| - | // Fixes #12346 |
| - | // Support: Webkit, IE |
| - | tmp.textContent = ""; |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Remove wrapper from fragment |
| - | fragment.textContent = ""; |
| - | |
| - | i = 0; |
| - | while ( (elem = nodes[ i++ ]) ) { |
| - | |
| - | // #4087 - If origin and destination elements are the same, and this is |
| - | // that element, do not do anything |
| - | if ( selection && jQuery.inArray( elem, selection ) !== -1 ) { |
| - | continue; |
| - | } |
| - | |
| - | contains = jQuery.contains( elem.ownerDocument, elem ); |
| - | |
| - | // Append to fragment |
| - | tmp = getAll( fragment.appendChild( elem ), "script" ); |
| - | |
| - | // Preserve script evaluation history |
| - | if ( contains ) { |
| - | setGlobalEval( tmp ); |
| - | } |
| - | |
| - | // Capture executables |
| - | if ( scripts ) { |
| - | j = 0; |
| - | while ( (elem = tmp[ j++ ]) ) { |
| - | if ( rscriptType.test( elem.type || "" ) ) { |
| - | scripts.push( elem ); |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | return fragment; |
| - | }, |
| - | |
| - | cleanData: function( elems ) { |
| - | var data, elem, events, type, key, j, |
| - | special = jQuery.event.special, |
| - | i = 0; |
| - | |
| - | for ( ; (elem = elems[ i ]) !== undefined; i++ ) { |
| - | if ( Data.accepts( elem ) ) { |
| - | key = elem[ data_priv.expando ]; |
| - | |
| - | if ( key && (data = data_priv.cache[ key ]) ) { |
| - | events = Object.keys( data.events || {} ); |
| - | if ( events.length ) { |
| - | for ( j = 0; (type = events[j]) !== undefined; j++ ) { |
| - | if ( special[ type ] ) { |
| - | jQuery.event.remove( elem, type ); |
| - | |
| - | // This is a shortcut to avoid jQuery.event.remove's overhead |
| - | } else { |
| - | jQuery.removeEvent( elem, type, data.handle ); |
| - | } |
| - | } |
| - | } |
| - | if ( data_priv.cache[ key ] ) { |
| - | // Discard any remaining `private` data |
| - | delete data_priv.cache[ key ]; |
| - | } |
| - | } |
| - | } |
| - | // Discard any remaining `user` data |
| - | delete data_user.cache[ elem[ data_user.expando ] ]; |
| - | } |
| - | }, |
| - | |
| - | _evalUrl: function( url ) { |
| - | return jQuery.ajax({ |
| - | url: url, |
| - | type: "GET", |
| - | dataType: "script", |
| - | async: false, |
| - | global: false, |
| - | "throws": true |
| - | }); |
| - | } |
| - | }); |
| - | |
| - | // Support: 1.x compatibility |
| - | // Manipulating tables requires a tbody |
| - | function manipulationTarget( elem, content ) { |
| - | return jQuery.nodeName( elem, "table" ) && |
| - | jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ? |
| - | |
| - | elem.getElementsByTagName("tbody")[0] || |
| - | elem.appendChild( elem.ownerDocument.createElement("tbody") ) : |
| - | elem; |
| - | } |
| - | |
| - | // Replace/restore the type attribute of script elements for safe DOM manipulation |
| - | function disableScript( elem ) { |
| - | elem.type = (elem.getAttribute("type") !== null) + "/" + elem.type; |
| - | return elem; |
| - | } |
| - | function restoreScript( elem ) { |
| - | var match = rscriptTypeMasked.exec( elem.type ); |
| - | |
| - | if ( match ) { |
| - | elem.type = match[ 1 ]; |
| - | } else { |
| - | elem.removeAttribute("type"); |
| - | } |
| - | |
| - | return elem; |
| - | } |
| - | |
| - | // Mark scripts as having already been evaluated |
| - | function setGlobalEval( elems, refElements ) { |
| - | var l = elems.length, |
| - | i = 0; |
| - | |
| - | for ( ; i < l; i++ ) { |
| - | data_priv.set( |
| - | elems[ i ], "globalEval", !refElements || data_priv.get( refElements[ i ], "globalEval" ) |
| - | ); |
| - | } |
| - | } |
| - | |
| - | function cloneCopyEvent( src, dest ) { |
| - | var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events; |
| - | |
| - | if ( dest.nodeType !== 1 ) { |
| - | return; |
| - | } |
| - | |
| - | // 1. Copy private data: events, handlers, etc. |
| - | if ( data_priv.hasData( src ) ) { |
| - | pdataOld = data_priv.access( src ); |
| - | pdataCur = data_priv.set( dest, pdataOld ); |
| - | events = pdataOld.events; |
| - | |
| - | if ( events ) { |
| - | delete pdataCur.handle; |
| - | pdataCur.events = {}; |
| - | |
| - | for ( type in events ) { |
| - | for ( i = 0, l = events[ type ].length; i < l; i++ ) { |
| - | jQuery.event.add( dest, type, events[ type ][ i ] ); |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | // 2. Copy user data |
| - | if ( data_user.hasData( src ) ) { |
| - | udataOld = data_user.access( src ); |
| - | udataCur = jQuery.extend( {}, udataOld ); |
| - | |
| - | data_user.set( dest, udataCur ); |
| - | } |
| - | } |
| - | |
| - | |
| - | function getAll( context, tag ) { |
| - | var ret = context.getElementsByTagName ? context.getElementsByTagName( tag || "*" ) : |
| - | context.querySelectorAll ? context.querySelectorAll( tag || "*" ) : |
| - | []; |
| - | |
| - | return tag === undefined || tag && jQuery.nodeName( context, tag ) ? |
| - | jQuery.merge( [ context ], ret ) : |
| - | ret; |
| - | } |
| - | |
| - | // Support: IE >= 9 |
| - | function fixInput( src, dest ) { |
| - | var nodeName = dest.nodeName.toLowerCase(); |
| - | |
| - | // Fails to persist the checked state of a cloned checkbox or radio button. |
| - | if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) { |
| - | dest.checked = src.checked; |
| - | |
| - | // Fails to return the selected option to the default selected state when cloning options |
| - | } else if ( nodeName === "input" || nodeName === "textarea" ) { |
| - | dest.defaultValue = src.defaultValue; |
| - | } |
| - | } |
| - | jQuery.fn.extend({ |
| - | wrapAll: function( html ) { |
| - | var wrap; |
| - | |
| - | if ( jQuery.isFunction( html ) ) { |
| - | return this.each(function( i ) { |
| - | jQuery( this ).wrapAll( html.call(this, i) ); |
| - | }); |
| - | } |
| - | |
| - | if ( this[ 0 ] ) { |
| - | |
| - | // The elements to wrap the target around |
| - | wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true ); |
| - | |
| - | if ( this[ 0 ].parentNode ) { |
| - | wrap.insertBefore( this[ 0 ] ); |
| - | } |
| - | |
| - | wrap.map(function() { |
| - | var elem = this; |
| - | |
| - | while ( elem.firstElementChild ) { |
| - | elem = elem.firstElementChild; |
| - | } |
| - | |
| - | return elem; |
| - | }).append( this ); |
| - | } |
| - | |
| - | return this; |
| - | }, |
| - | |
| - | wrapInner: function( html ) { |
| - | if ( jQuery.isFunction( html ) ) { |
| - | return this.each(function( i ) { |
| - | jQuery( this ).wrapInner( html.call(this, i) ); |
| - | }); |
| - | } |
| - | |
| - | return this.each(function() { |
| - | var self = jQuery( this ), |
| - | contents = self.contents(); |
| - | |
| - | if ( contents.length ) { |
| - | contents.wrapAll( html ); |
| - | |
| - | } else { |
| - | self.append( html ); |
| - | } |
| - | }); |
| - | }, |
| - | |
| - | wrap: function( html ) { |
| - | var isFunction = jQuery.isFunction( html ); |
| - | |
| - | return this.each(function( i ) { |
| - | jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html ); |
| - | }); |
| - | }, |
| - | |
| - | unwrap: function() { |
| - | return this.parent().each(function() { |
| - | if ( !jQuery.nodeName( this, "body" ) ) { |
| - | jQuery( this ).replaceWith( this.childNodes ); |
| - | } |
| - | }).end(); |
| - | } |
| - | }); |
| - | var curCSS, iframe, |
| - | // swappable if display is none or starts with table except "table", "table-cell", or "table-caption" |
| - | // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display |
| - | rdisplayswap = /^(none|table(?!-c[ea]).+)/, |
| - | rmargin = /^margin/, |
| - | rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ), |
| - | rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ), |
| - | rrelNum = new RegExp( "^([+-])=(" + core_pnum + ")", "i" ), |
| - | elemdisplay = { BODY: "block" }, |
| - | |
| - | cssShow = { position: "absolute", visibility: "hidden", display: "block" }, |
| - | cssNormalTransform = { |
| - | letterSpacing: 0, |
| - | fontWeight: 400 |
| - | }, |
| - | |
| - | cssExpand = [ "Top", "Right", "Bottom", "Left" ], |
| - | cssPrefixes = [ "Webkit", "O", "Moz", "ms" ]; |
| - | |
| - | // return a css property mapped to a potentially vendor prefixed property |
| - | function vendorPropName( style, name ) { |
| - | |
| - | // shortcut for names that are not vendor prefixed |
| - | if ( name in style ) { |
| - | return name; |
| - | } |
| - | |
| - | // check for vendor prefixed names |
| - | var capName = name.charAt(0).toUpperCase() + name.slice(1), |
| - | origName = name, |
| - | i = cssPrefixes.length; |
| - | |
| - | while ( i-- ) { |
| - | name = cssPrefixes[ i ] + capName; |
| - | if ( name in style ) { |
| - | return name; |
| - | } |
| - | } |
| - | |
| - | return origName; |
| - | } |
| - | |
| - | function isHidden( elem, el ) { |
| - | // isHidden might be called from jQuery#filter function; |
| - | // in that case, element will be second argument |
| - | elem = el || elem; |
| - | return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); |
| - | } |
| - | |
| - | // NOTE: we've included the "window" in window.getComputedStyle |
| - | // because jsdom on node.js will break without it. |
| - | function getStyles( elem ) { |
| - | return window.getComputedStyle( elem, null ); |
| - | } |
| - | |
| - | function showHide( elements, show ) { |
| - | var display, elem, hidden, |
| - | values = [], |
| - | index = 0, |
| - | length = elements.length; |
| - | |
| - | for ( ; index < length; index++ ) { |
| - | elem = elements[ index ]; |
| - | if ( !elem.style ) { |
| - | continue; |
| - | } |
| - | |
| - | values[ index ] = data_priv.get( elem, "olddisplay" ); |
| - | display = elem.style.display; |
| - | if ( show ) { |
| - | // Reset the inline display of this element to learn if it is |
| - | // being hidden by cascaded rules or not |
| - | if ( !values[ index ] && display === "none" ) { |
| - | elem.style.display = ""; |
| - | } |
| - | |
| - | // Set elements which have been overridden with display: none |
| - | // in a stylesheet to whatever the default browser style is |
| - | // for such an element |
| - | if ( elem.style.display === "" && isHidden( elem ) ) { |
| - | values[ index ] = data_priv.access( elem, "olddisplay", css_defaultDisplay(elem.nodeName) ); |
| - | } |
| - | } else { |
| - | |
| - | if ( !values[ index ] ) { |
| - | hidden = isHidden( elem ); |
| - | |
| - | if ( display && display !== "none" || !hidden ) { |
| - | data_priv.set( elem, "olddisplay", hidden ? display : jQuery.css(elem, "display") ); |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Set the display of most of the elements in a second loop |
| - | // to avoid the constant reflow |
| - | for ( index = 0; index < length; index++ ) { |
| - | elem = elements[ index ]; |
| - | if ( !elem.style ) { |
| - | continue; |
| - | } |
| - | if ( !show || elem.style.display === "none" || elem.style.display === "" ) { |
| - | elem.style.display = show ? values[ index ] || "" : "none"; |
| - | } |
| - | } |
| - | |
| - | return elements; |
| - | } |
| - | |
| - | jQuery.fn.extend({ |
| - | css: function( name, value ) { |
| - | return jQuery.access( this, function( elem, name, value ) { |
| - | var styles, len, |
| - | map = {}, |
| - | i = 0; |
| - | |
| - | if ( jQuery.isArray( name ) ) { |
| - | styles = getStyles( elem ); |
| - | len = name.length; |
| - | |
| - | for ( ; i < len; i++ ) { |
| - | map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles ); |
| - | } |
| - | |
| - | return map; |
| - | } |
| - | |
| - | return value !== undefined ? |
| - | jQuery.style( elem, name, value ) : |
| - | jQuery.css( elem, name ); |
| - | }, name, value, arguments.length > 1 ); |
| - | }, |
| - | show: function() { |
| - | return showHide( this, true ); |
| - | }, |
| - | hide: function() { |
| - | return showHide( this ); |
| - | }, |
| - | toggle: function( state ) { |
| - | if ( typeof state === "boolean" ) { |
| - | return state ? this.show() : this.hide(); |
| - | } |
| - | |
| - | return this.each(function() { |
| - | if ( isHidden( this ) ) { |
| - | jQuery( this ).show(); |
| - | } else { |
| - | jQuery( this ).hide(); |
| - | } |
| - | }); |
| - | } |
| - | }); |
| - | |
| - | jQuery.extend({ |
| - | // Add in style property hooks for overriding the default |
| - | // behavior of getting and setting a style property |
| - | cssHooks: { |
| - | opacity: { |
| - | get: function( elem, computed ) { |
| - | if ( computed ) { |
| - | // We should always get a number back from opacity |
| - | var ret = curCSS( elem, "opacity" ); |
| - | return ret === "" ? "1" : ret; |
| - | } |
| - | } |
| - | } |
| - | }, |
| - | |
| - | // Don't automatically add "px" to these possibly-unitless properties |
| - | cssNumber: { |
| - | "columnCount": true, |
| - | "fillOpacity": true, |
| - | "fontWeight": true, |
| - | "lineHeight": true, |
| - | "opacity": true, |
| - | "order": true, |
| - | "orphans": true, |
| - | "widows": true, |
| - | "zIndex": true, |
| - | "zoom": true |
| - | }, |
| - | |
| - | // Add in properties whose names you wish to fix before |
| - | // setting or getting the value |
| - | cssProps: { |
| - | // normalize float css property |
| - | "float": "cssFloat" |
| - | }, |
| - | |
| - | // Get and set the style property on a DOM Node |
| - | style: function( elem, name, value, extra ) { |
| - | // Don't set styles on text and comment nodes |
| - | if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) { |
| - | return; |
| - | } |
| - | |
| - | // Make sure that we're working with the right name |
| - | var ret, type, hooks, |
| - | origName = jQuery.camelCase( name ), |
| - | style = elem.style; |
| - | |
| - | name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) ); |
| - | |
| - | // gets hook for the prefixed version |
| - | // followed by the unprefixed version |
| - | hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; |
| - | |
| - | // Check if we're setting a value |
| - | if ( value !== undefined ) { |
| - | type = typeof value; |
| - | |
| - | // convert relative number strings (+= or -=) to relative numbers. #7345 |
| - | if ( type === "string" && (ret = rrelNum.exec( value )) ) { |
| - | value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) ); |
| - | // Fixes bug #9237 |
| - | type = "number"; |
| - | } |
| - | |
| - | // Make sure that NaN and null values aren't set. See: #7116 |
| - | if ( value == null || type === "number" && isNaN( value ) ) { |
| - | return; |
| - | } |
| - | |
| - | // If a number was passed in, add 'px' to the (except for certain CSS properties) |
| - | if ( type === "number" && !jQuery.cssNumber[ origName ] ) { |
| - | value += "px"; |
| - | } |
| - | |
| - | // Fixes #8908, it can be done more correctly by specifying setters in cssHooks, |
| - | // but it would mean to define eight (for every problematic property) identical functions |
| - | if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) { |
| - | style[ name ] = "inherit"; |
| - | } |
| - | |
| - | // If a hook was provided, use that value, otherwise just set the specified value |
| - | if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { |
| - | style[ name ] = value; |
| - | } |
| - | |
| - | } else { |
| - | // If a hook was provided get the non-computed value from there |
| - | if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) { |
| - | return ret; |
| - | } |
| - | |
| - | // Otherwise just get the value from the style object |
| - | return style[ name ]; |
| - | } |
| - | }, |
| - | |
| - | css: function( elem, name, extra, styles ) { |
| - | var val, num, hooks, |
| - | origName = jQuery.camelCase( name ); |
| - | |
| - | // Make sure that we're working with the right name |
| - | name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) ); |
| - | |
| - | // gets hook for the prefixed version |
| - | // followed by the unprefixed version |
| - | hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ]; |
| - | |
| - | // If a hook was provided get the computed value from there |
| - | if ( hooks && "get" in hooks ) { |
| - | val = hooks.get( elem, true, extra ); |
| - | } |
| - | |
| - | // Otherwise, if a way to get the computed value exists, use that |
| - | if ( val === undefined ) { |
| - | val = curCSS( elem, name, styles ); |
| - | } |
| - | |
| - | //convert "normal" to computed value |
| - | if ( val === "normal" && name in cssNormalTransform ) { |
| - | val = cssNormalTransform[ name ]; |
| - | } |
| - | |
| - | // Return, converting to number if forced or a qualifier was provided and val looks numeric |
| - | if ( extra === "" || extra ) { |
| - | num = parseFloat( val ); |
| - | return extra === true || jQuery.isNumeric( num ) ? num || 0 : val; |
| - | } |
| - | return val; |
| - | } |
| - | }); |
| - | |
| - | curCSS = function( elem, name, _computed ) { |
| - | var width, minWidth, maxWidth, |
| - | computed = _computed || getStyles( elem ), |
| - | |
| - | // Support: IE9 |
| - | // getPropertyValue is only needed for .css('filter') in IE9, see #12537 |
| - | ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined, |
| - | style = elem.style; |
| - | |
| - | if ( computed ) { |
| - | |
| - | if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { |
| - | ret = jQuery.style( elem, name ); |
| - | } |
| - | |
| - | // Support: Safari 5.1 |
| - | // A tribute to the "awesome hack by Dean Edwards" |
| - | // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels |
| - | // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values |
| - | if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) { |
| - | |
| - | // Remember the original values |
| - | width = style.width; |
| - | minWidth = style.minWidth; |
| - | maxWidth = style.maxWidth; |
| - | |
| - | // Put in the new values to get a computed value out |
| - | style.minWidth = style.maxWidth = style.width = ret; |
| - | ret = computed.width; |
| - | |
| - | // Revert the changed values |
| - | style.width = width; |
| - | style.minWidth = minWidth; |
| - | style.maxWidth = maxWidth; |
| - | } |
| - | } |
| - | |
| - | return ret; |
| - | }; |
| - | |
| - | |
| - | function setPositiveNumber( elem, value, subtract ) { |
| - | var matches = rnumsplit.exec( value ); |
| - | return matches ? |
| - | // Guard against undefined "subtract", e.g., when used as in cssHooks |
| - | Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) : |
| - | value; |
| - | } |
| - | |
| - | function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) { |
| - | var i = extra === ( isBorderBox ? "border" : "content" ) ? |
| - | // If we already have the right measurement, avoid augmentation |
| - | 4 : |
| - | // Otherwise initialize for horizontal or vertical properties |
| - | name === "width" ? 1 : 0, |
| - | |
| - | val = 0; |
| - | |
| - | for ( ; i < 4; i += 2 ) { |
| - | // both box models exclude margin, so add it if we want it |
| - | if ( extra === "margin" ) { |
| - | val += jQuery.css( elem, extra + cssExpand[ i ], true, styles ); |
| - | } |
| - | |
| - | if ( isBorderBox ) { |
| - | // border-box includes padding, so remove it if we want content |
| - | if ( extra === "content" ) { |
| - | val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); |
| - | } |
| - | |
| - | // at this point, extra isn't border nor margin, so remove border |
| - | if ( extra !== "margin" ) { |
| - | val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); |
| - | } |
| - | } else { |
| - | // at this point, extra isn't content, so add padding |
| - | val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles ); |
| - | |
| - | // at this point, extra isn't content nor padding, so add border |
| - | if ( extra !== "padding" ) { |
| - | val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles ); |
| - | } |
| - | } |
| - | } |
| - | |
| - | return val; |
| - | } |
| - | |
| - | function getWidthOrHeight( elem, name, extra ) { |
| - | |
| - | // Start with offset property, which is equivalent to the border-box value |
| - | var valueIsBorderBox = true, |
| - | val = name === "width" ? elem.offsetWidth : elem.offsetHeight, |
| - | styles = getStyles( elem ), |
| - | isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box"; |
| - | |
| - | // some non-html elements return undefined for offsetWidth, so check for null/undefined |
| - | // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285 |
| - | // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668 |
| - | if ( val <= 0 || val == null ) { |
| - | // Fall back to computed then uncomputed css if necessary |
| - | val = curCSS( elem, name, styles ); |
| - | if ( val < 0 || val == null ) { |
| - | val = elem.style[ name ]; |
| - | } |
| - | |
| - | // Computed unit is not pixels. Stop here and return. |
| - | if ( rnumnonpx.test(val) ) { |
| - | return val; |
| - | } |
| - | |
| - | // we need the check for style in case a browser which returns unreliable values |
| - | // for getComputedStyle silently falls back to the reliable elem.style |
| - | valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] ); |
| - | |
| - | // Normalize "", auto, and prepare for extra |
| - | val = parseFloat( val ) || 0; |
| - | } |
| - | |
| - | // use the active box-sizing model to add/subtract irrelevant styles |
| - | return ( val + |
| - | augmentWidthOrHeight( |
| - | elem, |
| - | name, |
| - | extra || ( isBorderBox ? "border" : "content" ), |
| - | valueIsBorderBox, |
| - | styles |
| - | ) |
| - | ) + "px"; |
| - | } |
| - | |
| - | // Try to determine the default display value of an element |
| - | function css_defaultDisplay( nodeName ) { |
| - | var doc = document, |
| - | display = elemdisplay[ nodeName ]; |
| - | |
| - | if ( !display ) { |
| - | display = actualDisplay( nodeName, doc ); |
| - | |
| - | // If the simple way fails, read from inside an iframe |
| - | if ( display === "none" || !display ) { |
| - | // Use the already-created iframe if possible |
| - | iframe = ( iframe || |
| - | jQuery("<iframe frameborder='0' width='0' height='0'/>") |
| - | .css( "cssText", "display:block !important" ) |
| - | ).appendTo( doc.documentElement ); |
| - | |
| - | // Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse |
| - | doc = ( iframe[0].contentWindow || iframe[0].contentDocument ).document; |
| - | doc.write("<!doctype html><html><body>"); |
| - | doc.close(); |
| - | |
| - | display = actualDisplay( nodeName, doc ); |
| - | iframe.detach(); |
| - | } |
| - | |
| - | // Store the correct default display |
| - | elemdisplay[ nodeName ] = display; |
| - | } |
| - | |
| - | return display; |
| - | } |
| - | |
| - | // Called ONLY from within css_defaultDisplay |
| - | function actualDisplay( name, doc ) { |
| - | var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ), |
| - | display = jQuery.css( elem[0], "display" ); |
| - | elem.remove(); |
| - | return display; |
| - | } |
| - | |
| - | jQuery.each([ "height", "width" ], function( i, name ) { |
| - | jQuery.cssHooks[ name ] = { |
| - | get: function( elem, computed, extra ) { |
| - | if ( computed ) { |
| - | // certain elements can have dimension info if we invisibly show them |
| - | // however, it must have a current display style that would benefit from this |
| - | return elem.offsetWidth === 0 && rdisplayswap.test( jQuery.css( elem, "display" ) ) ? |
| - | jQuery.swap( elem, cssShow, function() { |
| - | return getWidthOrHeight( elem, name, extra ); |
| - | }) : |
| - | getWidthOrHeight( elem, name, extra ); |
| - | } |
| - | }, |
| - | |
| - | set: function( elem, value, extra ) { |
| - | var styles = extra && getStyles( elem ); |
| - | return setPositiveNumber( elem, value, extra ? |
| - | augmentWidthOrHeight( |
| - | elem, |
| - | name, |
| - | extra, |
| - | jQuery.support.boxSizing && jQuery.css( elem, "boxSizing", false, styles ) === "border-box", |
| - | styles |
| - | ) : 0 |
| - | ); |
| - | } |
| - | }; |
| - | }); |
| - | |
| - | // These hooks cannot be added until DOM ready because the support test |
| - | // for it is not run until after DOM ready |
| - | jQuery(function() { |
| - | // Support: Android 2.3 |
| - | if ( !jQuery.support.reliableMarginRight ) { |
| - | jQuery.cssHooks.marginRight = { |
| - | get: function( elem, computed ) { |
| - | if ( computed ) { |
| - | // Support: Android 2.3 |
| - | // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right |
| - | // Work around by temporarily setting element display to inline-block |
| - | return jQuery.swap( elem, { "display": "inline-block" }, |
| - | curCSS, [ elem, "marginRight" ] ); |
| - | } |
| - | } |
| - | }; |
| - | } |
| - | |
| - | // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084 |
| - | // getComputedStyle returns percent when specified for top/left/bottom/right |
| - | // rather than make the css module depend on the offset module, we just check for it here |
| - | if ( !jQuery.support.pixelPosition && jQuery.fn.position ) { |
| - | jQuery.each( [ "top", "left" ], function( i, prop ) { |
| - | jQuery.cssHooks[ prop ] = { |
| - | get: function( elem, computed ) { |
| - | if ( computed ) { |
| - | computed = curCSS( elem, prop ); |
| - | // if curCSS returns percentage, fallback to offset |
| - | return rnumnonpx.test( computed ) ? |
| - | jQuery( elem ).position()[ prop ] + "px" : |
| - | computed; |
| - | } |
| - | } |
| - | }; |
| - | }); |
| - | } |
| - | |
| - | }); |
| - | |
| - | if ( jQuery.expr && jQuery.expr.filters ) { |
| - | jQuery.expr.filters.hidden = function( elem ) { |
| - | // Support: Opera <= 12.12 |
| - | // Opera reports offsetWidths and offsetHeights less than zero on some elements |
| - | return elem.offsetWidth <= 0 && elem.offsetHeight <= 0; |
| - | }; |
| - | |
| - | jQuery.expr.filters.visible = function( elem ) { |
| - | return !jQuery.expr.filters.hidden( elem ); |
| - | }; |
| - | } |
| - | |
| - | // These hooks are used by animate to expand properties |
| - | jQuery.each({ |
| - | margin: "", |
| - | padding: "", |
| - | border: "Width" |
| - | }, function( prefix, suffix ) { |
| - | jQuery.cssHooks[ prefix + suffix ] = { |
| - | expand: function( value ) { |
| - | var i = 0, |
| - | expanded = {}, |
| - | |
| - | // assumes a single number if not a string |
| - | parts = typeof value === "string" ? value.split(" ") : [ value ]; |
| - | |
| - | for ( ; i < 4; i++ ) { |
| - | expanded[ prefix + cssExpand[ i ] + suffix ] = |
| - | parts[ i ] || parts[ i - 2 ] || parts[ 0 ]; |
| - | } |
| - | |
| - | return expanded; |
| - | } |
| - | }; |
| - | |
| - | if ( !rmargin.test( prefix ) ) { |
| - | jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber; |
| - | } |
| - | }); |
| - | var r20 = /%20/g, |
| - | rbracket = /\[\]$/, |
| - | rCRLF = /\r?\n/g, |
| - | rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i, |
| - | rsubmittable = /^(?:input|select|textarea|keygen)/i; |
| - | |
| - | jQuery.fn.extend({ |
| - | serialize: function() { |
| - | return jQuery.param( this.serializeArray() ); |
| - | }, |
| - | serializeArray: function() { |
| - | return this.map(function(){ |
| - | // Can add propHook for "elements" to filter or add form elements |
| - | var elements = jQuery.prop( this, "elements" ); |
| - | return elements ? jQuery.makeArray( elements ) : this; |
| - | }) |
| - | .filter(function(){ |
| - | var type = this.type; |
| - | // Use .is(":disabled") so that fieldset[disabled] works |
| - | return this.name && !jQuery( this ).is( ":disabled" ) && |
| - | rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) && |
| - | ( this.checked || !manipulation_rcheckableType.test( type ) ); |
| - | }) |
| - | .map(function( i, elem ){ |
| - | var val = jQuery( this ).val(); |
| - | |
| - | return val == null ? |
| - | null : |
| - | jQuery.isArray( val ) ? |
| - | jQuery.map( val, function( val ){ |
| - | return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; |
| - | }) : |
| - | { name: elem.name, value: val.replace( rCRLF, "\r\n" ) }; |
| - | }).get(); |
| - | } |
| - | }); |
| - | |
| - | //Serialize an array of form elements or a set of |
| - | //key/values into a query string |
| - | jQuery.param = function( a, traditional ) { |
| - | var prefix, |
| - | s = [], |
| - | add = function( key, value ) { |
| - | // If value is a function, invoke it and return its value |
| - | value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value ); |
| - | s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value ); |
| - | }; |
| - | |
| - | // Set traditional to true for jQuery <= 1.3.2 behavior. |
| - | if ( traditional === undefined ) { |
| - | traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional; |
| - | } |
| - | |
| - | // If an array was passed in, assume that it is an array of form elements. |
| - | if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) { |
| - | // Serialize the form elements |
| - | jQuery.each( a, function() { |
| - | add( this.name, this.value ); |
| - | }); |
| - | |
| - | } else { |
| - | // If traditional, encode the "old" way (the way 1.3.2 or older |
| - | // did it), otherwise encode params recursively. |
| - | for ( prefix in a ) { |
| - | buildParams( prefix, a[ prefix ], traditional, add ); |
| - | } |
| - | } |
| - | |
| - | // Return the resulting serialization |
| - | return s.join( "&" ).replace( r20, "+" ); |
| - | }; |
| - | |
| - | function buildParams( prefix, obj, traditional, add ) { |
| - | var name; |
| - | |
| - | if ( jQuery.isArray( obj ) ) { |
| - | // Serialize array item. |
| - | jQuery.each( obj, function( i, v ) { |
| - | if ( traditional || rbracket.test( prefix ) ) { |
| - | // Treat each array item as a scalar. |
| - | add( prefix, v ); |
| - | |
| - | } else { |
| - | // Item is non-scalar (array or object), encode its numeric index. |
| - | buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add ); |
| - | } |
| - | }); |
| - | |
| - | } else if ( !traditional && jQuery.type( obj ) === "object" ) { |
| - | // Serialize object item. |
| - | for ( name in obj ) { |
| - | buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add ); |
| - | } |
| - | |
| - | } else { |
| - | // Serialize scalar item. |
| - | add( prefix, obj ); |
| - | } |
| - | } |
| - | jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " + |
| - | "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " + |
| - | "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) { |
| - | |
| - | // Handle event binding |
| - | jQuery.fn[ name ] = function( data, fn ) { |
| - | return arguments.length > 0 ? |
| - | this.on( name, null, data, fn ) : |
| - | this.trigger( name ); |
| - | }; |
| - | }); |
| - | |
| - | jQuery.fn.extend({ |
| - | hover: function( fnOver, fnOut ) { |
| - | return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver ); |
| - | }, |
| - | |
| - | bind: function( types, data, fn ) { |
| - | return this.on( types, null, data, fn ); |
| - | }, |
| - | unbind: function( types, fn ) { |
| - | return this.off( types, null, fn ); |
| - | }, |
| - | |
| - | delegate: function( selector, types, data, fn ) { |
| - | return this.on( types, selector, data, fn ); |
| - | }, |
| - | undelegate: function( selector, types, fn ) { |
| - | // ( namespace ) or ( selector, types [, fn] ) |
| - | return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn ); |
| - | } |
| - | }); |
| - | var |
| - | // Document location |
| - | ajaxLocParts, |
| - | ajaxLocation, |
| - | |
| - | ajax_nonce = jQuery.now(), |
| - | |
| - | ajax_rquery = /\?/, |
| - | rhash = /#.*$/, |
| - | rts = /([?&])_=[^&]*/, |
| - | rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg, |
| - | // #7653, #8125, #8152: local protocol detection |
| - | rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, |
| - | rnoContent = /^(?:GET|HEAD)$/, |
| - | rprotocol = /^\/\//, |
| - | rurl = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, |
| - | |
| - | // Keep a copy of the old load method |
| - | _load = jQuery.fn.load, |
| - | |
| - | /* Prefilters |
| - | * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example) |
| - | * 2) These are called: |
| - | * - BEFORE asking for a transport |
| - | * - AFTER param serialization (s.data is a string if s.processData is true) |
| - | * 3) key is the dataType |
| - | * 4) the catchall symbol "*" can be used |
| - | * 5) execution will start with transport dataType and THEN continue down to "*" if needed |
| - | */ |
| - | prefilters = {}, |
| - | |
| - | /* Transports bindings |
| - | * 1) key is the dataType |
| - | * 2) the catchall symbol "*" can be used |
| - | * 3) selection will start with transport dataType and THEN go to "*" if needed |
| - | */ |
| - | transports = {}, |
| - | |
| - | // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression |
| - | allTypes = "*/".concat("*"); |
| - | |
| - | // #8138, IE may throw an exception when accessing |
| - | // a field from window.location if document.domain has been set |
| - | try { |
| - | ajaxLocation = location.href; |
| - | } catch( e ) { |
| - | // Use the href attribute of an A element |
| - | // since IE will modify it given document.location |
| - | ajaxLocation = document.createElement( "a" ); |
| - | ajaxLocation.href = ""; |
| - | ajaxLocation = ajaxLocation.href; |
| - | } |
| - | |
| - | // Segment location into parts |
| - | ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || []; |
| - | |
| - | // Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport |
| - | function addToPrefiltersOrTransports( structure ) { |
| - | |
| - | // dataTypeExpression is optional and defaults to "*" |
| - | return function( dataTypeExpression, func ) { |
| - | |
| - | if ( typeof dataTypeExpression !== "string" ) { |
| - | func = dataTypeExpression; |
| - | dataTypeExpression = "*"; |
| - | } |
| - | |
| - | var dataType, |
| - | i = 0, |
| - | dataTypes = dataTypeExpression.toLowerCase().match( core_rnotwhite ) || []; |
| - | |
| - | if ( jQuery.isFunction( func ) ) { |
| - | // For each dataType in the dataTypeExpression |
| - | while ( (dataType = dataTypes[i++]) ) { |
| - | // Prepend if requested |
| - | if ( dataType[0] === "+" ) { |
| - | dataType = dataType.slice( 1 ) || "*"; |
| - | (structure[ dataType ] = structure[ dataType ] || []).unshift( func ); |
| - | |
| - | // Otherwise append |
| - | } else { |
| - | (structure[ dataType ] = structure[ dataType ] || []).push( func ); |
| - | } |
| - | } |
| - | } |
| - | }; |
| - | } |
| - | |
| - | // Base inspection function for prefilters and transports |
| - | function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) { |
| - | |
| - | var inspected = {}, |
| - | seekingTransport = ( structure === transports ); |
| - | |
| - | function inspect( dataType ) { |
| - | var selected; |
| - | inspected[ dataType ] = true; |
| - | jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) { |
| - | var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR ); |
| - | if( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) { |
| - | options.dataTypes.unshift( dataTypeOrTransport ); |
| - | inspect( dataTypeOrTransport ); |
| - | return false; |
| - | } else if ( seekingTransport ) { |
| - | return !( selected = dataTypeOrTransport ); |
| - | } |
| - | }); |
| - | return selected; |
| - | } |
| - | |
| - | return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" ); |
| - | } |
| - | |
| - | // A special extend for ajax options |
| - | // that takes "flat" options (not to be deep extended) |
| - | // Fixes #9887 |
| - | function ajaxExtend( target, src ) { |
| - | var key, deep, |
| - | flatOptions = jQuery.ajaxSettings.flatOptions || {}; |
| - | |
| - | for ( key in src ) { |
| - | if ( src[ key ] !== undefined ) { |
| - | ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ]; |
| - | } |
| - | } |
| - | if ( deep ) { |
| - | jQuery.extend( true, target, deep ); |
| - | } |
| - | |
| - | return target; |
| - | } |
| - | |
| - | jQuery.fn.load = function( url, params, callback ) { |
| - | if ( typeof url !== "string" && _load ) { |
| - | return _load.apply( this, arguments ); |
| - | } |
| - | |
| - | var selector, type, response, |
| - | self = this, |
| - | off = url.indexOf(" "); |
| - | |
| - | if ( off >= 0 ) { |
| - | selector = url.slice( off ); |
| - | url = url.slice( 0, off ); |
| - | } |
| - | |
| - | // If it's a function |
| - | if ( jQuery.isFunction( params ) ) { |
| - | |
| - | // We assume that it's the callback |
| - | callback = params; |
| - | params = undefined; |
| - | |
| - | // Otherwise, build a param string |
| - | } else if ( params && typeof params === "object" ) { |
| - | type = "POST"; |
| - | } |
| - | |
| - | // If we have elements to modify, make the request |
| - | if ( self.length > 0 ) { |
| - | jQuery.ajax({ |
| - | url: url, |
| - | |
| - | // if "type" variable is undefined, then "GET" method will be used |
| - | type: type, |
| - | dataType: "html", |
| - | data: params |
| - | }).done(function( responseText ) { |
| - | |
| - | // Save response for use in complete callback |
| - | response = arguments; |
| - | |
| - | self.html( selector ? |
| - | |
| - | // If a selector was specified, locate the right elements in a dummy div |
| - | // Exclude scripts to avoid IE 'Permission Denied' errors |
| - | jQuery("<div>").append( jQuery.parseHTML( responseText ) ).find( selector ) : |
| - | |
| - | // Otherwise use the full result |
| - | responseText ); |
| - | |
| - | }).complete( callback && function( jqXHR, status ) { |
| - | self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] ); |
| - | }); |
| - | } |
| - | |
| - | return this; |
| - | }; |
| - | |
| - | // Attach a bunch of functions for handling common AJAX events |
| - | jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ){ |
| - | jQuery.fn[ type ] = function( fn ){ |
| - | return this.on( type, fn ); |
| - | }; |
| - | }); |
| - | |
| - | jQuery.extend({ |
| - | |
| - | // Counter for holding the number of active queries |
| - | active: 0, |
| - | |
| - | // Last-Modified header cache for next request |
| - | lastModified: {}, |
| - | etag: {}, |
| - | |
| - | ajaxSettings: { |
| - | url: ajaxLocation, |
| - | type: "GET", |
| - | isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ), |
| - | global: true, |
| - | processData: true, |
| - | async: true, |
| - | contentType: "application/x-www-form-urlencoded; charset=UTF-8", |
| - | /* |
| - | timeout: 0, |
| - | data: null, |
| - | dataType: null, |
| - | username: null, |
| - | password: null, |
| - | cache: null, |
| - | throws: false, |
| - | traditional: false, |
| - | headers: {}, |
| - | */ |
| - | |
| - | accepts: { |
| - | "*": allTypes, |
| - | text: "text/plain", |
| - | html: "text/html", |
| - | xml: "application/xml, text/xml", |
| - | json: "application/json, text/javascript" |
| - | }, |
| - | |
| - | contents: { |
| - | xml: /xml/, |
| - | html: /html/, |
| - | json: /json/ |
| - | }, |
| - | |
| - | responseFields: { |
| - | xml: "responseXML", |
| - | text: "responseText", |
| - | json: "responseJSON" |
| - | }, |
| - | |
| - | // Data converters |
| - | // Keys separate source (or catchall "*") and destination types with a single space |
| - | converters: { |
| - | |
| - | // Convert anything to text |
| - | "* text": String, |
| - | |
| - | // Text to html (true = no transformation) |
| - | "text html": true, |
| - | |
| - | // Evaluate text as a json expression |
| - | "text json": jQuery.parseJSON, |
| - | |
| - | // Parse text as xml |
| - | "text xml": jQuery.parseXML |
| - | }, |
| - | |
| - | // For options that shouldn't be deep extended: |
| - | // you can add your own custom options here if |
| - | // and when you create one that shouldn't be |
| - | // deep extended (see ajaxExtend) |
| - | flatOptions: { |
| - | url: true, |
| - | context: true |
| - | } |
| - | }, |
| - | |
| - | // Creates a full fledged settings object into target |
| - | // with both ajaxSettings and settings fields. |
| - | // If target is omitted, writes into ajaxSettings. |
| - | ajaxSetup: function( target, settings ) { |
| - | return settings ? |
| - | |
| - | // Building a settings object |
| - | ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) : |
| - | |
| - | // Extending ajaxSettings |
| - | ajaxExtend( jQuery.ajaxSettings, target ); |
| - | }, |
| - | |
| - | ajaxPrefilter: addToPrefiltersOrTransports( prefilters ), |
| - | ajaxTransport: addToPrefiltersOrTransports( transports ), |
| - | |
| - | // Main method |
| - | ajax: function( url, options ) { |
| - | |
| - | // If url is an object, simulate pre-1.5 signature |
| - | if ( typeof url === "object" ) { |
| - | options = url; |
| - | url = undefined; |
| - | } |
| - | |
| - | // Force options to be an object |
| - | options = options || {}; |
| - | |
| - | var transport, |
| - | // URL without anti-cache param |
| - | cacheURL, |
| - | // Response headers |
| - | responseHeadersString, |
| - | responseHeaders, |
| - | // timeout handle |
| - | timeoutTimer, |
| - | // Cross-domain detection vars |
| - | parts, |
| - | // To know if global events are to be dispatched |
| - | fireGlobals, |
| - | // Loop variable |
| - | i, |
| - | // Create the final options object |
| - | s = jQuery.ajaxSetup( {}, options ), |
| - | // Callbacks context |
| - | callbackContext = s.context || s, |
| - | // Context for global events is callbackContext if it is a DOM node or jQuery collection |
| - | globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ? |
| - | jQuery( callbackContext ) : |
| - | jQuery.event, |
| - | // Deferreds |
| - | deferred = jQuery.Deferred(), |
| - | completeDeferred = jQuery.Callbacks("once memory"), |
| - | // Status-dependent callbacks |
| - | statusCode = s.statusCode || {}, |
| - | // Headers (they are sent all at once) |
| - | requestHeaders = {}, |
| - | requestHeadersNames = {}, |
| - | // The jqXHR state |
| - | state = 0, |
| - | // Default abort message |
| - | strAbort = "canceled", |
| - | // Fake xhr |
| - | jqXHR = { |
| - | readyState: 0, |
| - | |
| - | // Builds headers hashtable if needed |
| - | getResponseHeader: function( key ) { |
| - | var match; |
| - | if ( state === 2 ) { |
| - | if ( !responseHeaders ) { |
| - | responseHeaders = {}; |
| - | while ( (match = rheaders.exec( responseHeadersString )) ) { |
| - | responseHeaders[ match[1].toLowerCase() ] = match[ 2 ]; |
| - | } |
| - | } |
| - | match = responseHeaders[ key.toLowerCase() ]; |
| - | } |
| - | return match == null ? null : match; |
| - | }, |
| - | |
| - | // Raw string |
| - | getAllResponseHeaders: function() { |
| - | return state === 2 ? responseHeadersString : null; |
| - | }, |
| - | |
| - | // Caches the header |
| - | setRequestHeader: function( name, value ) { |
| - | var lname = name.toLowerCase(); |
| - | if ( !state ) { |
| - | name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name; |
| - | requestHeaders[ name ] = value; |
| - | } |
| - | return this; |
| - | }, |
| - | |
| - | // Overrides response content-type header |
| - | overrideMimeType: function( type ) { |
| - | if ( !state ) { |
| - | s.mimeType = type; |
| - | } |
| - | return this; |
| - | }, |
| - | |
| - | // Status-dependent callbacks |
| - | statusCode: function( map ) { |
| - | var code; |
| - | if ( map ) { |
| - | if ( state < 2 ) { |
| - | for ( code in map ) { |
| - | // Lazy-add the new callback in a way that preserves old ones |
| - | statusCode[ code ] = [ statusCode[ code ], map[ code ] ]; |
| - | } |
| - | } else { |
| - | // Execute the appropriate callbacks |
| - | jqXHR.always( map[ jqXHR.status ] ); |
| - | } |
| - | } |
| - | return this; |
| - | }, |
| - | |
| - | // Cancel the request |
| - | abort: function( statusText ) { |
| - | var finalText = statusText || strAbort; |
| - | if ( transport ) { |
| - | transport.abort( finalText ); |
| - | } |
| - | done( 0, finalText ); |
| - | return this; |
| - | } |
| - | }; |
| - | |
| - | // Attach deferreds |
| - | deferred.promise( jqXHR ).complete = completeDeferred.add; |
| - | jqXHR.success = jqXHR.done; |
| - | jqXHR.error = jqXHR.fail; |
| - | |
| - | // Remove hash character (#7531: and string promotion) |
| - | // Add protocol if not provided (prefilters might expect it) |
| - | // Handle falsy url in the settings object (#10093: consistency with old signature) |
| - | // We also use the url parameter if available |
| - | s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ) |
| - | .replace( rprotocol, ajaxLocParts[ 1 ] + "//" ); |
| - | |
| - | // Alias method option to type as per ticket #12004 |
| - | s.type = options.method || options.type || s.method || s.type; |
| - | |
| - | // Extract dataTypes list |
| - | s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( core_rnotwhite ) || [""]; |
| - | |
| - | // A cross-domain request is in order when we have a protocol:host:port mismatch |
| - | if ( s.crossDomain == null ) { |
| - | parts = rurl.exec( s.url.toLowerCase() ); |
| - | s.crossDomain = !!( parts && |
| - | ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] || |
| - | ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !== |
| - | ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) ) |
| - | ); |
| - | } |
| - | |
| - | // Convert data if not already a string |
| - | if ( s.data && s.processData && typeof s.data !== "string" ) { |
| - | s.data = jQuery.param( s.data, s.traditional ); |
| - | } |
| - | |
| - | // Apply prefilters |
| - | inspectPrefiltersOrTransports( prefilters, s, options, jqXHR ); |
| - | |
| - | // If request was aborted inside a prefilter, stop there |
| - | if ( state === 2 ) { |
| - | return jqXHR; |
| - | } |
| - | |
| - | // We can fire global events as of now if asked to |
| - | fireGlobals = s.global; |
| - | |
| - | // Watch for a new set of requests |
| - | if ( fireGlobals && jQuery.active++ === 0 ) { |
| - | jQuery.event.trigger("ajaxStart"); |
| - | } |
| - | |
| - | // Uppercase the type |
| - | s.type = s.type.toUpperCase(); |
| - | |
| - | // Determine if request has content |
| - | s.hasContent = !rnoContent.test( s.type ); |
| - | |
| - | // Save the URL in case we're toying with the If-Modified-Since |
| - | // and/or If-None-Match header later on |
| - | cacheURL = s.url; |
| - | |
| - | // More options handling for requests with no content |
| - | if ( !s.hasContent ) { |
| - | |
| - | // If data is available, append data to url |
| - | if ( s.data ) { |
| - | cacheURL = ( s.url += ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + s.data ); |
| - | // #9682: remove data so that it's not used in an eventual retry |
| - | delete s.data; |
| - | } |
| - | |
| - | // Add anti-cache in url if needed |
| - | if ( s.cache === false ) { |
| - | s.url = rts.test( cacheURL ) ? |
| - | |
| - | // If there is already a '_' parameter, set its value |
| - | cacheURL.replace( rts, "$1_=" + ajax_nonce++ ) : |
| - | |
| - | // Otherwise add one to the end |
| - | cacheURL + ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ajax_nonce++; |
| - | } |
| - | } |
| - | |
| - | // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. |
| - | if ( s.ifModified ) { |
| - | if ( jQuery.lastModified[ cacheURL ] ) { |
| - | jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] ); |
| - | } |
| - | if ( jQuery.etag[ cacheURL ] ) { |
| - | jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] ); |
| - | } |
| - | } |
| - | |
| - | // Set the correct header, if data is being sent |
| - | if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) { |
| - | jqXHR.setRequestHeader( "Content-Type", s.contentType ); |
| - | } |
| - | |
| - | // Set the Accepts header for the server, depending on the dataType |
| - | jqXHR.setRequestHeader( |
| - | "Accept", |
| - | s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ? |
| - | s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) : |
| - | s.accepts[ "*" ] |
| - | ); |
| - | |
| - | // Check for headers option |
| - | for ( i in s.headers ) { |
| - | jqXHR.setRequestHeader( i, s.headers[ i ] ); |
| - | } |
| - | |
| - | // Allow custom headers/mimetypes and early abort |
| - | if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) { |
| - | // Abort if not done already and return |
| - | return jqXHR.abort(); |
| - | } |
| - | |
| - | // aborting is no longer a cancellation |
| - | strAbort = "abort"; |
| - | |
| - | // Install callbacks on deferreds |
| - | for ( i in { success: 1, error: 1, complete: 1 } ) { |
| - | jqXHR[ i ]( s[ i ] ); |
| - | } |
| - | |
| - | // Get transport |
| - | transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR ); |
| - | |
| - | // If no transport, we auto-abort |
| - | if ( !transport ) { |
| - | done( -1, "No Transport" ); |
| - | } else { |
| - | jqXHR.readyState = 1; |
| - | |
| - | // Send global event |
| - | if ( fireGlobals ) { |
| - | globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] ); |
| - | } |
| - | // Timeout |
| - | if ( s.async && s.timeout > 0 ) { |
| - | timeoutTimer = setTimeout(function() { |
| - | jqXHR.abort("timeout"); |
| - | }, s.timeout ); |
| - | } |
| - | |
| - | try { |
| - | state = 1; |
| - | transport.send( requestHeaders, done ); |
| - | } catch ( e ) { |
| - | // Propagate exception as error if not done |
| - | if ( state < 2 ) { |
| - | done( -1, e ); |
| - | // Simply rethrow otherwise |
| - | } else { |
| - | throw e; |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Callback for when everything is done |
| - | function done( status, nativeStatusText, responses, headers ) { |
| - | var isSuccess, success, error, response, modified, |
| - | statusText = nativeStatusText; |
| - | |
| - | // Called once |
| - | if ( state === 2 ) { |
| - | return; |
| - | } |
| - | |
| - | // State is "done" now |
| - | state = 2; |
| - | |
| - | // Clear timeout if it exists |
| - | if ( timeoutTimer ) { |
| - | clearTimeout( timeoutTimer ); |
| - | } |
| - | |
| - | // Dereference transport for early garbage collection |
| - | // (no matter how long the jqXHR object will be used) |
| - | transport = undefined; |
| - | |
| - | // Cache response headers |
| - | responseHeadersString = headers || ""; |
| - | |
| - | // Set readyState |
| - | jqXHR.readyState = status > 0 ? 4 : 0; |
| - | |
| - | // Determine if successful |
| - | isSuccess = status >= 200 && status < 300 || status === 304; |
| - | |
| - | // Get response data |
| - | if ( responses ) { |
| - | response = ajaxHandleResponses( s, jqXHR, responses ); |
| - | } |
| - | |
| - | // Convert no matter what (that way responseXXX fields are always set) |
| - | response = ajaxConvert( s, response, jqXHR, isSuccess ); |
| - | |
| - | // If successful, handle type chaining |
| - | if ( isSuccess ) { |
| - | |
| - | // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode. |
| - | if ( s.ifModified ) { |
| - | modified = jqXHR.getResponseHeader("Last-Modified"); |
| - | if ( modified ) { |
| - | jQuery.lastModified[ cacheURL ] = modified; |
| - | } |
| - | modified = jqXHR.getResponseHeader("etag"); |
| - | if ( modified ) { |
| - | jQuery.etag[ cacheURL ] = modified; |
| - | } |
| - | } |
| - | |
| - | // if no content |
| - | if ( status === 204 || s.type === "HEAD" ) { |
| - | statusText = "nocontent"; |
| - | |
| - | // if not modified |
| - | } else if ( status === 304 ) { |
| - | statusText = "notmodified"; |
| - | |
| - | // If we have data, let's convert it |
| - | } else { |
| - | statusText = response.state; |
| - | success = response.data; |
| - | error = response.error; |
| - | isSuccess = !error; |
| - | } |
| - | } else { |
| - | // We extract error from statusText |
| - | // then normalize statusText and status for non-aborts |
| - | error = statusText; |
| - | if ( status || !statusText ) { |
| - | statusText = "error"; |
| - | if ( status < 0 ) { |
| - | status = 0; |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Set data for the fake xhr object |
| - | jqXHR.status = status; |
| - | jqXHR.statusText = ( nativeStatusText || statusText ) + ""; |
| - | |
| - | // Success/Error |
| - | if ( isSuccess ) { |
| - | deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] ); |
| - | } else { |
| - | deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] ); |
| - | } |
| - | |
| - | // Status-dependent callbacks |
| - | jqXHR.statusCode( statusCode ); |
| - | statusCode = undefined; |
| - | |
| - | if ( fireGlobals ) { |
| - | globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError", |
| - | [ jqXHR, s, isSuccess ? success : error ] ); |
| - | } |
| - | |
| - | // Complete |
| - | completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] ); |
| - | |
| - | if ( fireGlobals ) { |
| - | globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] ); |
| - | // Handle the global AJAX counter |
| - | if ( !( --jQuery.active ) ) { |
| - | jQuery.event.trigger("ajaxStop"); |
| - | } |
| - | } |
| - | } |
| - | |
| - | return jqXHR; |
| - | }, |
| - | |
| - | getJSON: function( url, data, callback ) { |
| - | return jQuery.get( url, data, callback, "json" ); |
| - | }, |
| - | |
| - | getScript: function( url, callback ) { |
| - | return jQuery.get( url, undefined, callback, "script" ); |
| - | } |
| - | }); |
| - | |
| - | jQuery.each( [ "get", "post" ], function( i, method ) { |
| - | jQuery[ method ] = function( url, data, callback, type ) { |
| - | // shift arguments if data argument was omitted |
| - | if ( jQuery.isFunction( data ) ) { |
| - | type = type || callback; |
| - | callback = data; |
| - | data = undefined; |
| - | } |
| - | |
| - | return jQuery.ajax({ |
| - | url: url, |
| - | type: method, |
| - | dataType: type, |
| - | data: data, |
| - | success: callback |
| - | }); |
| - | }; |
| - | }); |
| - | |
| - | /* Handles responses to an ajax request: |
| - | * - finds the right dataType (mediates between content-type and expected dataType) |
| - | * - returns the corresponding response |
| - | */ |
| - | function ajaxHandleResponses( s, jqXHR, responses ) { |
| - | |
| - | var ct, type, finalDataType, firstDataType, |
| - | contents = s.contents, |
| - | dataTypes = s.dataTypes; |
| - | |
| - | // Remove auto dataType and get content-type in the process |
| - | while( dataTypes[ 0 ] === "*" ) { |
| - | dataTypes.shift(); |
| - | if ( ct === undefined ) { |
| - | ct = s.mimeType || jqXHR.getResponseHeader("Content-Type"); |
| - | } |
| - | } |
| - | |
| - | // Check if we're dealing with a known content-type |
| - | if ( ct ) { |
| - | for ( type in contents ) { |
| - | if ( contents[ type ] && contents[ type ].test( ct ) ) { |
| - | dataTypes.unshift( type ); |
| - | break; |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Check to see if we have a response for the expected dataType |
| - | if ( dataTypes[ 0 ] in responses ) { |
| - | finalDataType = dataTypes[ 0 ]; |
| - | } else { |
| - | // Try convertible dataTypes |
| - | for ( type in responses ) { |
| - | if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) { |
| - | finalDataType = type; |
| - | break; |
| - | } |
| - | if ( !firstDataType ) { |
| - | firstDataType = type; |
| - | } |
| - | } |
| - | // Or just use first one |
| - | finalDataType = finalDataType || firstDataType; |
| - | } |
| - | |
| - | // If we found a dataType |
| - | // We add the dataType to the list if needed |
| - | // and return the corresponding response |
| - | if ( finalDataType ) { |
| - | if ( finalDataType !== dataTypes[ 0 ] ) { |
| - | dataTypes.unshift( finalDataType ); |
| - | } |
| - | return responses[ finalDataType ]; |
| - | } |
| - | } |
| - | |
| - | /* Chain conversions given the request and the original response |
| - | * Also sets the responseXXX fields on the jqXHR instance |
| + | * Date: 2014-04-18 |
| */ | |
| - | function ajaxConvert( s, response, jqXHR, isSuccess ) { |
| - | var conv2, current, conv, tmp, prev, |
| - | converters = {}, |
| - | // Work with a copy of dataTypes in case we need to modify it for conversion |
| - | dataTypes = s.dataTypes.slice(); |
| - | |
| - | // Create converters map with lowercased keys |
| - | if ( dataTypes[ 1 ] ) { |
| - | for ( conv in s.converters ) { |
| - | converters[ conv.toLowerCase() ] = s.converters[ conv ]; |
| - | } |
| - | } |
| - | |
| - | current = dataTypes.shift(); |
| - | |
| - | // Convert to each sequential dataType |
| - | while ( current ) { |
| - | |
| - | if ( s.responseFields[ current ] ) { |
| - | jqXHR[ s.responseFields[ current ] ] = response; |
| - | } |
| - | |
| - | // Apply the dataFilter if provided |
| - | if ( !prev && isSuccess && s.dataFilter ) { |
| - | response = s.dataFilter( response, s.dataType ); |
| - | } |
| - | |
| - | prev = current; |
| - | current = dataTypes.shift(); |
| - | |
| - | if ( current ) { |
| - | |
| - | // There's only work to do if current dataType is non-auto |
| - | if ( current === "*" ) { |
| - | |
| - | current = prev; |
| - | |
| - | // Convert response if prev dataType is non-auto and differs from current |
| - | } else if ( prev !== "*" && prev !== current ) { |
| - | |
| - | // Seek a direct converter |
| - | conv = converters[ prev + " " + current ] || converters[ "* " + current ]; |
| - | |
| - | // If none found, seek a pair |
| - | if ( !conv ) { |
| - | for ( conv2 in converters ) { |
| - | |
| - | // If conv2 outputs current |
| - | tmp = conv2.split( " " ); |
| - | if ( tmp[ 1 ] === current ) { |
| - | |
| - | // If prev can be converted to accepted input |
| - | conv = converters[ prev + " " + tmp[ 0 ] ] || |
| - | converters[ "* " + tmp[ 0 ] ]; |
| - | if ( conv ) { |
| - | // Condense equivalence converters |
| - | if ( conv === true ) { |
| - | conv = converters[ conv2 ]; |
| - | |
| - | // Otherwise, insert the intermediate dataType |
| - | } else if ( converters[ conv2 ] !== true ) { |
| - | current = tmp[ 0 ]; |
| - | dataTypes.unshift( tmp[ 1 ] ); |
| - | } |
| - | break; |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Apply converter (if not an equivalence) |
| - | if ( conv !== true ) { |
| - | |
| - | // Unless errors are allowed to bubble, catch and return them |
| - | if ( conv && s[ "throws" ] ) { |
| - | response = conv( response ); |
| - | } else { |
| - | try { |
| - | response = conv( response ); |
| - | } catch ( e ) { |
| - | return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current }; |
| - | } |
| - | } |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | return { state: "success", data: response }; |
| - | } |
| - | // Install script dataType |
| - | jQuery.ajaxSetup({ |
| - | accepts: { |
| - | script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" |
| - | }, |
| - | contents: { |
| - | script: /(?:java|ecma)script/ |
| - | }, |
| - | converters: { |
| - | "text script": function( text ) { |
| - | jQuery.globalEval( text ); |
| - | return text; |
| - | } |
| - | } |
| - | }); |
| - | |
| - | // Handle cache's special case and crossDomain |
| - | jQuery.ajaxPrefilter( "script", function( s ) { |
| - | if ( s.cache === undefined ) { |
| - | s.cache = false; |
| - | } |
| - | if ( s.crossDomain ) { |
| - | s.type = "GET"; |
| - | } |
| - | }); |
| - | |
| - | // Bind script tag hack transport |
| - | jQuery.ajaxTransport( "script", function( s ) { |
| - | // This transport only deals with cross domain requests |
| - | if ( s.crossDomain ) { |
| - | var script, callback; |
| - | return { |
| - | send: function( _, complete ) { |
| - | script = jQuery("<script>").prop({ |
| - | async: true, |
| - | charset: s.scriptCharset, |
| - | src: s.url |
| - | }).on( |
| - | "load error", |
| - | callback = function( evt ) { |
| - | script.remove(); |
| - | callback = null; |
| - | if ( evt ) { |
| - | complete( evt.type === "error" ? 404 : 200, evt.type ); |
| - | } |
| - | } |
| - | ); |
| - | document.head.appendChild( script[ 0 ] ); |
| - | }, |
| - | abort: function() { |
| - | if ( callback ) { |
| - | callback(); |
| - | } |
| - | } |
| - | }; |
| - | } |
| - | }); |
| - | var oldCallbacks = [], |
| - | rjsonp = /(=)\?(?=&|$)|\?\?/; |
| - | |
| - | // Default jsonp settings |
| - | jQuery.ajaxSetup({ |
| - | jsonp: "callback", |
| - | jsonpCallback: function() { |
| - | var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( ajax_nonce++ ) ); |
| - | this[ callback ] = true; |
| - | return callback; |
| - | } |
| - | }); |
| - | |
| - | // Detect, normalize options and install callbacks for jsonp requests |
| - | jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) { |
| - | |
| - | var callbackName, overwritten, responseContainer, |
| - | jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ? |
| - | "url" : |
| - | typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data" |
| - | ); |
| - | |
| - | // Handle iff the expected data type is "jsonp" or we have a parameter to set |
| - | if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) { |
| - | |
| - | // Get callback name, remembering preexisting value associated with it |
| - | callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ? |
| - | s.jsonpCallback() : |
| - | s.jsonpCallback; |
| - | |
| - | // Insert callback into url or form data |
| - | if ( jsonProp ) { |
| - | s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName ); |
| - | } else if ( s.jsonp !== false ) { |
| - | s.url += ( ajax_rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName; |
| - | } |
| - | |
| - | // Use data converter to retrieve json after script execution |
| - | s.converters["script json"] = function() { |
| - | if ( !responseContainer ) { |
| - | jQuery.error( callbackName + " was not called" ); |
| - | } |
| - | return responseContainer[ 0 ]; |
| - | }; |
| - | |
| - | // force json dataType |
| - | s.dataTypes[ 0 ] = "json"; |
| - | |
| - | // Install callback |
| - | overwritten = window[ callbackName ]; |
| - | window[ callbackName ] = function() { |
| - | responseContainer = arguments; |
| - | }; |
| - | |
| - | // Clean-up function (fires after converters) |
| - | jqXHR.always(function() { |
| - | // Restore preexisting value |
| - | window[ callbackName ] = overwritten; |
| - | |
| - | // Save back as free |
| - | if ( s[ callbackName ] ) { |
| - | // make sure that re-using the options doesn't screw things around |
| - | s.jsonpCallback = originalSettings.jsonpCallback; |
| - | |
| - | // save the callback name for future use |
| - | oldCallbacks.push( callbackName ); |
| - | } |
| - | |
| - | // Call if it was a function and we have a response |
| - | if ( responseContainer && jQuery.isFunction( overwritten ) ) { |
| - | overwritten( responseContainer[ 0 ] ); |
| - | } |
| - | |
| - | responseContainer = overwritten = undefined; |
| - | }); |
| - | |
| - | // Delegate to script |
| - | return "script"; |
| - | } |
| - | }); |
| - | jQuery.ajaxSettings.xhr = function() { |
| - | try { |
| - | return new XMLHttpRequest(); |
| - | } catch( e ) {} |
| - | }; |
| - | |
| - | var xhrSupported = jQuery.ajaxSettings.xhr(), |
| - | xhrSuccessStatus = { |
| - | // file protocol always yields status code 0, assume 200 |
| - | 0: 200, |
| - | // Support: IE9 |
| - | // #1450: sometimes IE returns 1223 when it should be 204 |
| - | 1223: 204 |
| - | }, |
| - | // Support: IE9 |
| - | // We need to keep track of outbound xhr and abort them manually |
| - | // because IE is not smart enough to do it all by itself |
| - | xhrId = 0, |
| - | xhrCallbacks = {}; |
| - | |
| - | if ( window.ActiveXObject ) { |
| - | jQuery( window ).on( "unload", function() { |
| - | for( var key in xhrCallbacks ) { |
| - | xhrCallbacks[ key ](); |
| - | } |
| - | xhrCallbacks = undefined; |
| - | }); |
| - | } |
| - | |
| - | jQuery.support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported ); |
| - | jQuery.support.ajax = xhrSupported = !!xhrSupported; |
| - | |
| - | jQuery.ajaxTransport(function( options ) { |
| - | var callback; |
| - | // Cross domain only allowed if supported through XMLHttpRequest |
| - | if ( jQuery.support.cors || xhrSupported && !options.crossDomain ) { |
| - | return { |
| - | send: function( headers, complete ) { |
| - | var i, id, |
| - | xhr = options.xhr(); |
| - | xhr.open( options.type, options.url, options.async, options.username, options.password ); |
| - | // Apply custom fields if provided |
| - | if ( options.xhrFields ) { |
| - | for ( i in options.xhrFields ) { |
| - | xhr[ i ] = options.xhrFields[ i ]; |
| - | } |
| - | } |
| - | // Override mime type if needed |
| - | if ( options.mimeType && xhr.overrideMimeType ) { |
| - | xhr.overrideMimeType( options.mimeType ); |
| - | } |
| - | // X-Requested-With header |
| - | // For cross-domain requests, seeing as conditions for a preflight are |
| - | // akin to a jigsaw puzzle, we simply never set it to be sure. |
| - | // (it can always be set on a per-request basis or even using ajaxSetup) |
| - | // For same-domain requests, won't change header if already provided. |
| - | if ( !options.crossDomain && !headers["X-Requested-With"] ) { |
| - | headers["X-Requested-With"] = "XMLHttpRequest"; |
| - | } |
| - | // Set headers |
| - | for ( i in headers ) { |
| - | xhr.setRequestHeader( i, headers[ i ] ); |
| - | } |
| - | // Callback |
| - | callback = function( type ) { |
| - | return function() { |
| - | if ( callback ) { |
| - | delete xhrCallbacks[ id ]; |
| - | callback = xhr.onload = xhr.onerror = null; |
| - | if ( type === "abort" ) { |
| - | xhr.abort(); |
| - | } else if ( type === "error" ) { |
| - | complete( |
| - | // file protocol always yields status 0, assume 404 |
| - | xhr.status || 404, |
| - | xhr.statusText |
| - | ); |
| - | } else { |
| - | complete( |
| - | xhrSuccessStatus[ xhr.status ] || xhr.status, |
| - | xhr.statusText, |
| - | // Support: IE9 |
| - | // #11426: When requesting binary data, IE9 will throw an exception |
| - | // on any attempt to access responseText |
| - | typeof xhr.responseText === "string" ? { |
| - | text: xhr.responseText |
| - | } : undefined, |
| - | xhr.getAllResponseHeaders() |
| - | ); |
| - | } |
| - | } |
| - | }; |
| - | }; |
| - | // Listen to events |
| - | xhr.onload = callback(); |
| - | xhr.onerror = callback("error"); |
| - | // Create the abort callback |
| - | callback = xhrCallbacks[( id = xhrId++ )] = callback("abort"); |
| - | // Do send the request |
| - | // This may raise an exception which is actually |
| - | // handled in jQuery.ajax (so no try/catch here) |
| - | xhr.send( options.hasContent && options.data || null ); |
| - | }, |
| - | abort: function() { |
| - | if ( callback ) { |
| - | callback(); |
| - | } |
| - | } |
| - | }; |
| - | } |
| - | }); |
| - | var fxNow, timerId, |
| - | rfxtypes = /^(?:toggle|show|hide)$/, |
| - | rfxnum = new RegExp( "^(?:([+-])=|)(" + core_pnum + ")([a-z%]*)$", "i" ), |
| - | rrun = /queueHooks$/, |
| - | animationPrefilters = [ defaultPrefilter ], |
| - | tweeners = { |
| - | "*": [function( prop, value ) { |
| - | var tween = this.createTween( prop, value ), |
| - | target = tween.cur(), |
| - | parts = rfxnum.exec( value ), |
| - | unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ), |
| - | |
| - | // Starting value computation is required for potential unit mismatches |
| - | start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) && |
| - | rfxnum.exec( jQuery.css( tween.elem, prop ) ), |
| - | scale = 1, |
| - | maxIterations = 20; |
| - | |
| - | if ( start && start[ 3 ] !== unit ) { |
| - | // Trust units reported by jQuery.css |
| - | unit = unit || start[ 3 ]; |
| - | |
| - | // Make sure we update the tween properties later on |
| - | parts = parts || []; |
| - | |
| - | // Iteratively approximate from a nonzero starting point |
| - | start = +target || 1; |
| - | |
| - | do { |
| - | // If previous iteration zeroed out, double until we get *something* |
| - | // Use a string for doubling factor so we don't accidentally see scale as unchanged below |
| - | scale = scale || ".5"; |
| - | |
| - | // Adjust and apply |
| - | start = start / scale; |
| - | jQuery.style( tween.elem, prop, start + unit ); |
| - | |
| - | // Update scale, tolerating zero or NaN from tween.cur() |
| - | // And breaking the loop if scale is unchanged or perfect, or if we've just had enough |
| - | } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations ); |
| - | } |
| - | |
| - | // Update tween properties |
| - | if ( parts ) { |
| - | start = tween.start = +start || +target || 0; |
| - | tween.unit = unit; |
| - | // If a +=/-= token was provided, we're doing a relative animation |
| - | tween.end = parts[ 1 ] ? |
| - | start + ( parts[ 1 ] + 1 ) * parts[ 2 ] : |
| - | +parts[ 2 ]; |
| - | } |
| - | |
| - | return tween; |
| - | }] |
| - | }; |
| - | |
| - | // Animations created synchronously will run synchronously |
| - | function createFxNow() { |
| - | setTimeout(function() { |
| - | fxNow = undefined; |
| - | }); |
| - | return ( fxNow = jQuery.now() ); |
| - | } |
| - | |
| - | function createTween( value, prop, animation ) { |
| - | var tween, |
| - | collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ), |
| - | index = 0, |
| - | length = collection.length; |
| - | for ( ; index < length; index++ ) { |
| - | if ( (tween = collection[ index ].call( animation, prop, value )) ) { |
| - | |
| - | // we're done with this property |
| - | return tween; |
| - | } |
| - | } |
| - | } |
| - | |
| - | function Animation( elem, properties, options ) { |
| - | var result, |
| - | stopped, |
| - | index = 0, |
| - | length = animationPrefilters.length, |
| - | deferred = jQuery.Deferred().always( function() { |
| - | // don't match elem in the :animated selector |
| - | delete tick.elem; |
| - | }), |
| - | tick = function() { |
| - | if ( stopped ) { |
| - | return false; |
| - | } |
| - | var currentTime = fxNow || createFxNow(), |
| - | remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ), |
| - | // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497) |
| - | temp = remaining / animation.duration || 0, |
| - | percent = 1 - temp, |
| - | index = 0, |
| - | length = animation.tweens.length; |
| - | |
| - | for ( ; index < length ; index++ ) { |
| - | animation.tweens[ index ].run( percent ); |
| - | } |
| - | |
| - | deferred.notifyWith( elem, [ animation, percent, remaining ]); |
| - | |
| - | if ( percent < 1 && length ) { |
| - | return remaining; |
| - | } else { |
| - | deferred.resolveWith( elem, [ animation ] ); |
| - | return false; |
| - | } |
| - | }, |
| - | animation = deferred.promise({ |
| - | elem: elem, |
| - | props: jQuery.extend( {}, properties ), |
| - | opts: jQuery.extend( true, { specialEasing: {} }, options ), |
| - | originalProperties: properties, |
| - | originalOptions: options, |
| - | startTime: fxNow || createFxNow(), |
| - | duration: options.duration, |
| - | tweens: [], |
| - | createTween: function( prop, end ) { |
| - | var tween = jQuery.Tween( elem, animation.opts, prop, end, |
| - | animation.opts.specialEasing[ prop ] || animation.opts.easing ); |
| - | animation.tweens.push( tween ); |
| - | return tween; |
| - | }, |
| - | stop: function( gotoEnd ) { |
| - | var index = 0, |
| - | // if we are going to the end, we want to run all the tweens |
| - | // otherwise we skip this part |
| - | length = gotoEnd ? animation.tweens.length : 0; |
| - | if ( stopped ) { |
| - | return this; |
| - | } |
| - | stopped = true; |
| - | for ( ; index < length ; index++ ) { |
| - | animation.tweens[ index ].run( 1 ); |
| - | } |
| - | |
| - | // resolve when we played the last frame |
| - | // otherwise, reject |
| - | if ( gotoEnd ) { |
| - | deferred.resolveWith( elem, [ animation, gotoEnd ] ); |
| - | } else { |
| - | deferred.rejectWith( elem, [ animation, gotoEnd ] ); |
| - | } |
| - | return this; |
| - | } |
| - | }), |
| - | props = animation.props; |
| - | |
| - | propFilter( props, animation.opts.specialEasing ); |
| - | |
| - | for ( ; index < length ; index++ ) { |
| - | result = animationPrefilters[ index ].call( animation, elem, props, animation.opts ); |
| - | if ( result ) { |
| - | return result; |
| - | } |
| - | } |
| - | |
| - | jQuery.map( props, createTween, animation ); |
| - | |
| - | if ( jQuery.isFunction( animation.opts.start ) ) { |
| - | animation.opts.start.call( elem, animation ); |
| - | } |
| - | |
| - | jQuery.fx.timer( |
| - | jQuery.extend( tick, { |
| - | elem: elem, |
| - | anim: animation, |
| - | queue: animation.opts.queue |
| - | }) |
| - | ); |
| - | |
| - | // attach callbacks from options |
| - | return animation.progress( animation.opts.progress ) |
| - | .done( animation.opts.done, animation.opts.complete ) |
| - | .fail( animation.opts.fail ) |
| - | .always( animation.opts.always ); |
| - | } |
| - | |
| - | function propFilter( props, specialEasing ) { |
| - | var index, name, easing, value, hooks; |
| - | |
| - | // camelCase, specialEasing and expand cssHook pass |
| - | for ( index in props ) { |
| - | name = jQuery.camelCase( index ); |
| - | easing = specialEasing[ name ]; |
| - | value = props[ index ]; |
| - | if ( jQuery.isArray( value ) ) { |
| - | easing = value[ 1 ]; |
| - | value = props[ index ] = value[ 0 ]; |
| - | } |
| - | |
| - | if ( index !== name ) { |
| - | props[ name ] = value; |
| - | delete props[ index ]; |
| - | } |
| - | |
| - | hooks = jQuery.cssHooks[ name ]; |
| - | if ( hooks && "expand" in hooks ) { |
| - | value = hooks.expand( value ); |
| - | delete props[ name ]; |
| - | |
| - | // not quite $.extend, this wont overwrite keys already present. |
| - | // also - reusing 'index' from above because we have the correct "name" |
| - | for ( index in value ) { |
| - | if ( !( index in props ) ) { |
| - | props[ index ] = value[ index ]; |
| - | specialEasing[ index ] = easing; |
| - | } |
| - | } |
| - | } else { |
| - | specialEasing[ name ] = easing; |
| - | } |
| - | } |
| - | } |
| - | |
| - | jQuery.Animation = jQuery.extend( Animation, { |
| - | |
| - | tweener: function( props, callback ) { |
| - | if ( jQuery.isFunction( props ) ) { |
| - | callback = props; |
| - | props = [ "*" ]; |
| - | } else { |
| - | props = props.split(" "); |
| - | } |
| - | |
| - | var prop, |
| - | index = 0, |
| - | length = props.length; |
| - | |
| - | for ( ; index < length ; index++ ) { |
| - | prop = props[ index ]; |
| - | tweeners[ prop ] = tweeners[ prop ] || []; |
| - | tweeners[ prop ].unshift( callback ); |
| - | } |
| - | }, |
| - | |
| - | prefilter: function( callback, prepend ) { |
| - | if ( prepend ) { |
| - | animationPrefilters.unshift( callback ); |
| - | } else { |
| - | animationPrefilters.push( callback ); |
| - | } |
| - | } |
| - | }); |
| - | |
| - | function defaultPrefilter( elem, props, opts ) { |
| - | /* jshint validthis: true */ |
| - | var prop, value, toggle, tween, hooks, oldfire, |
| - | anim = this, |
| - | orig = {}, |
| - | style = elem.style, |
| - | hidden = elem.nodeType && isHidden( elem ), |
| - | dataShow = data_priv.get( elem, "fxshow" ); |
| - | |
| - | // handle queue: false promises |
| - | if ( !opts.queue ) { |
| - | hooks = jQuery._queueHooks( elem, "fx" ); |
| - | if ( hooks.unqueued == null ) { |
| - | hooks.unqueued = 0; |
| - | oldfire = hooks.empty.fire; |
| - | hooks.empty.fire = function() { |
| - | if ( !hooks.unqueued ) { |
| - | oldfire(); |
| - | } |
| - | }; |
| - | } |
| - | hooks.unqueued++; |
| - | |
| - | anim.always(function() { |
| - | // doing this makes sure that the complete handler will be called |
| - | // before this completes |
| - | anim.always(function() { |
| - | hooks.unqueued--; |
| - | if ( !jQuery.queue( elem, "fx" ).length ) { |
| - | hooks.empty.fire(); |
| - | } |
| - | }); |
| - | }); |
| - | } |
| - | |
| - | // height/width overflow pass |
| - | if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) { |
| - | // Make sure that nothing sneaks out |
| - | // Record all 3 overflow attributes because IE9-10 do not |
| - | // change the overflow attribute when overflowX and |
| - | // overflowY are set to the same value |
| - | opts.overflow = [ style.overflow, style.overflowX, style.overflowY ]; |
| - | |
| - | // Set display property to inline-block for height/width |
| - | // animations on inline elements that are having width/height animated |
| - | if ( jQuery.css( elem, "display" ) === "inline" && |
| - | jQuery.css( elem, "float" ) === "none" ) { |
| - | |
| - | style.display = "inline-block"; |
| - | } |
| - | } |
| - | |
| - | if ( opts.overflow ) { |
| - | style.overflow = "hidden"; |
| - | anim.always(function() { |
| - | style.overflow = opts.overflow[ 0 ]; |
| - | style.overflowX = opts.overflow[ 1 ]; |
| - | style.overflowY = opts.overflow[ 2 ]; |
| - | }); |
| - | } |
| - | |
| - | |
| - | // show/hide pass |
| - | for ( prop in props ) { |
| - | value = props[ prop ]; |
| - | if ( rfxtypes.exec( value ) ) { |
| - | delete props[ prop ]; |
| - | toggle = toggle || value === "toggle"; |
| - | if ( value === ( hidden ? "hide" : "show" ) ) { |
| - | |
| - | // If there is dataShow left over from a stopped hide or show and we are going to proceed with show, we should pretend to be hidden |
| - | if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) { |
| - | hidden = true; |
| - | } else { |
| - | continue; |
| - | } |
| - | } |
| - | orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop ); |
| - | } |
| - | } |
| - | |
| - | if ( !jQuery.isEmptyObject( orig ) ) { |
| - | if ( dataShow ) { |
| - | if ( "hidden" in dataShow ) { |
| - | hidden = dataShow.hidden; |
| - | } |
| - | } else { |
| - | dataShow = data_priv.access( elem, "fxshow", {} ); |
| - | } |
| - | |
| - | // store state if its toggle - enables .stop().toggle() to "reverse" |
| - | if ( toggle ) { |
| - | dataShow.hidden = !hidden; |
| - | } |
| - | if ( hidden ) { |
| - | jQuery( elem ).show(); |
| - | } else { |
| - | anim.done(function() { |
| - | jQuery( elem ).hide(); |
| - | }); |
| - | } |
| - | anim.done(function() { |
| - | var prop; |
| - | |
| - | data_priv.remove( elem, "fxshow" ); |
| - | for ( prop in orig ) { |
| - | jQuery.style( elem, prop, orig[ prop ] ); |
| - | } |
| - | }); |
| - | for ( prop in orig ) { |
| - | tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim ); |
| - | |
| - | if ( !( prop in dataShow ) ) { |
| - | dataShow[ prop ] = tween.start; |
| - | if ( hidden ) { |
| - | tween.end = tween.start; |
| - | tween.start = prop === "width" || prop === "height" ? 1 : 0; |
| - | } |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | function Tween( elem, options, prop, end, easing ) { |
| - | return new Tween.prototype.init( elem, options, prop, end, easing ); |
| - | } |
| - | jQuery.Tween = Tween; |
| - | |
| - | Tween.prototype = { |
| - | constructor: Tween, |
| - | init: function( elem, options, prop, end, easing, unit ) { |
| - | this.elem = elem; |
| - | this.prop = prop; |
| - | this.easing = easing || "swing"; |
| - | this.options = options; |
| - | this.start = this.now = this.cur(); |
| - | this.end = end; |
| - | this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" ); |
| - | }, |
| - | cur: function() { |
| - | var hooks = Tween.propHooks[ this.prop ]; |
| - | |
| - | return hooks && hooks.get ? |
| - | hooks.get( this ) : |
| - | Tween.propHooks._default.get( this ); |
| - | }, |
| - | run: function( percent ) { |
| - | var eased, |
| - | hooks = Tween.propHooks[ this.prop ]; |
| - | |
| - | if ( this.options.duration ) { |
| - | this.pos = eased = jQuery.easing[ this.easing ]( |
| - | percent, this.options.duration * percent, 0, 1, this.options.duration |
| - | ); |
| - | } else { |
| - | this.pos = eased = percent; |
| - | } |
| - | this.now = ( this.end - this.start ) * eased + this.start; |
| - | |
| - | if ( this.options.step ) { |
| - | this.options.step.call( this.elem, this.now, this ); |
| - | } |
| - | |
| - | if ( hooks && hooks.set ) { |
| - | hooks.set( this ); |
| - | } else { |
| - | Tween.propHooks._default.set( this ); |
| - | } |
| - | return this; |
| - | } |
| - | }; |
| - | |
| - | Tween.prototype.init.prototype = Tween.prototype; |
| - | |
| - | Tween.propHooks = { |
| - | _default: { |
| - | get: function( tween ) { |
| - | var result; |
| - | |
| - | if ( tween.elem[ tween.prop ] != null && |
| - | (!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) { |
| - | return tween.elem[ tween.prop ]; |
| - | } |
| - | |
| - | // passing an empty string as a 3rd parameter to .css will automatically |
| - | // attempt a parseFloat and fallback to a string if the parse fails |
| - | // so, simple values such as "10px" are parsed to Float. |
| - | // complex values such as "rotate(1rad)" are returned as is. |
| - | result = jQuery.css( tween.elem, tween.prop, "" ); |
| - | // Empty strings, null, undefined and "auto" are converted to 0. |
| - | return !result || result === "auto" ? 0 : result; |
| - | }, |
| - | set: function( tween ) { |
| - | // use step hook for back compat - use cssHook if its there - use .style if its |
| - | // available and use plain properties where available |
| - | if ( jQuery.fx.step[ tween.prop ] ) { |
| - | jQuery.fx.step[ tween.prop ]( tween ); |
| - | } else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) { |
| - | jQuery.style( tween.elem, tween.prop, tween.now + tween.unit ); |
| - | } else { |
| - | tween.elem[ tween.prop ] = tween.now; |
| - | } |
| - | } |
| - | } |
| - | }; |
| - | |
| - | // Support: IE9 |
| - | // Panic based approach to setting things on disconnected nodes |
| - | |
| - | Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = { |
| - | set: function( tween ) { |
| - | if ( tween.elem.nodeType && tween.elem.parentNode ) { |
| - | tween.elem[ tween.prop ] = tween.now; |
| - | } |
| - | } |
| - | }; |
| - | |
| - | jQuery.each([ "toggle", "show", "hide" ], function( i, name ) { |
| - | var cssFn = jQuery.fn[ name ]; |
| - | jQuery.fn[ name ] = function( speed, easing, callback ) { |
| - | return speed == null || typeof speed === "boolean" ? |
| - | cssFn.apply( this, arguments ) : |
| - | this.animate( genFx( name, true ), speed, easing, callback ); |
| - | }; |
| - | }); |
| - | |
| - | jQuery.fn.extend({ |
| - | fadeTo: function( speed, to, easing, callback ) { |
| - | |
| - | // show any hidden elements after setting opacity to 0 |
| - | return this.filter( isHidden ).css( "opacity", 0 ).show() |
| - | |
| - | // animate to the value specified |
| - | .end().animate({ opacity: to }, speed, easing, callback ); |
| - | }, |
| - | animate: function( prop, speed, easing, callback ) { |
| - | var empty = jQuery.isEmptyObject( prop ), |
| - | optall = jQuery.speed( speed, easing, callback ), |
| - | doAnimation = function() { |
| - | // Operate on a copy of prop so per-property easing won't be lost |
| - | var anim = Animation( this, jQuery.extend( {}, prop ), optall ); |
| - | |
| - | // Empty animations, or finishing resolves immediately |
| - | if ( empty || data_priv.get( this, "finish" ) ) { |
| - | anim.stop( true ); |
| - | } |
| - | }; |
| - | doAnimation.finish = doAnimation; |
| - | |
| - | return empty || optall.queue === false ? |
| - | this.each( doAnimation ) : |
| - | this.queue( optall.queue, doAnimation ); |
| - | }, |
| - | stop: function( type, clearQueue, gotoEnd ) { |
| - | var stopQueue = function( hooks ) { |
| - | var stop = hooks.stop; |
| - | delete hooks.stop; |
| - | stop( gotoEnd ); |
| - | }; |
| - | |
| - | if ( typeof type !== "string" ) { |
| - | gotoEnd = clearQueue; |
| - | clearQueue = type; |
| - | type = undefined; |
| - | } |
| - | if ( clearQueue && type !== false ) { |
| - | this.queue( type || "fx", [] ); |
| - | } |
| - | |
| - | return this.each(function() { |
| - | var dequeue = true, |
| - | index = type != null && type + "queueHooks", |
| - | timers = jQuery.timers, |
| - | data = data_priv.get( this ); |
| - | |
| - | if ( index ) { |
| - | if ( data[ index ] && data[ index ].stop ) { |
| - | stopQueue( data[ index ] ); |
| - | } |
| - | } else { |
| - | for ( index in data ) { |
| - | if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) { |
| - | stopQueue( data[ index ] ); |
| - | } |
| - | } |
| - | } |
| - | |
| - | for ( index = timers.length; index--; ) { |
| - | if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) { |
| - | timers[ index ].anim.stop( gotoEnd ); |
| - | dequeue = false; |
| - | timers.splice( index, 1 ); |
| - | } |
| - | } |
| - | |
| - | // start the next in the queue if the last step wasn't forced |
| - | // timers currently will call their complete callbacks, which will dequeue |
| - | // but only if they were gotoEnd |
| - | if ( dequeue || !gotoEnd ) { |
| - | jQuery.dequeue( this, type ); |
| - | } |
| - | }); |
| - | }, |
| - | finish: function( type ) { |
| - | if ( type !== false ) { |
| - | type = type || "fx"; |
| - | } |
| - | return this.each(function() { |
| - | var index, |
| - | data = data_priv.get( this ), |
| - | queue = data[ type + "queue" ], |
| - | hooks = data[ type + "queueHooks" ], |
| - | timers = jQuery.timers, |
| - | length = queue ? queue.length : 0; |
| - | |
| - | // enable finishing flag on private data |
| - | data.finish = true; |
| - | |
| - | // empty the queue first |
| - | jQuery.queue( this, type, [] ); |
| - | |
| - | if ( hooks && hooks.stop ) { |
| - | hooks.stop.call( this, true ); |
| - | } |
| - | |
| - | // look for any active animations, and finish them |
| - | for ( index = timers.length; index--; ) { |
| - | if ( timers[ index ].elem === this && timers[ index ].queue === type ) { |
| - | timers[ index ].anim.stop( true ); |
| - | timers.splice( index, 1 ); |
| - | } |
| - | } |
| - | |
| - | // look for any animations in the old queue and finish them |
| - | for ( index = 0; index < length; index++ ) { |
| - | if ( queue[ index ] && queue[ index ].finish ) { |
| - | queue[ index ].finish.call( this ); |
| - | } |
| - | } |
| - | |
| - | // turn off finishing flag |
| - | delete data.finish; |
| - | }); |
| - | } |
| - | }); |
| - | |
| - | // Generate parameters to create a standard animation |
| - | function genFx( type, includeWidth ) { |
| - | var which, |
| - | attrs = { height: type }, |
| - | i = 0; |
| - | |
| - | // if we include width, step value is 1 to do all cssExpand values, |
| - | // if we don't include width, step value is 2 to skip over Left and Right |
| - | includeWidth = includeWidth? 1 : 0; |
| - | for( ; i < 4 ; i += 2 - includeWidth ) { |
| - | which = cssExpand[ i ]; |
| - | attrs[ "margin" + which ] = attrs[ "padding" + which ] = type; |
| - | } |
| - | |
| - | if ( includeWidth ) { |
| - | attrs.opacity = attrs.width = type; |
| - | } |
| - | |
| - | return attrs; |
| - | } |
| - | |
| - | // Generate shortcuts for custom animations |
| - | jQuery.each({ |
| - | slideDown: genFx("show"), |
| - | slideUp: genFx("hide"), |
| - | slideToggle: genFx("toggle"), |
| - | fadeIn: { opacity: "show" }, |
| - | fadeOut: { opacity: "hide" }, |
| - | fadeToggle: { opacity: "toggle" } |
| - | }, function( name, props ) { |
| - | jQuery.fn[ name ] = function( speed, easing, callback ) { |
| - | return this.animate( props, speed, easing, callback ); |
| - | }; |
| - | }); |
| - | |
| - | jQuery.speed = function( speed, easing, fn ) { |
| - | var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : { |
| - | complete: fn || !fn && easing || |
| - | jQuery.isFunction( speed ) && speed, |
| - | duration: speed, |
| - | easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing |
| - | }; |
| - | |
| - | opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration : |
| - | opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default; |
| - | |
| - | // normalize opt.queue - true/undefined/null -> "fx" |
| - | if ( opt.queue == null || opt.queue === true ) { |
| - | opt.queue = "fx"; |
| - | } |
| - | |
| - | // Queueing |
| - | opt.old = opt.complete; |
| - | |
| - | opt.complete = function() { |
| - | if ( jQuery.isFunction( opt.old ) ) { |
| - | opt.old.call( this ); |
| - | } |
| - | |
| - | if ( opt.queue ) { |
| - | jQuery.dequeue( this, opt.queue ); |
| - | } |
| - | }; |
| - | |
| - | return opt; |
| - | }; |
| - | |
| - | jQuery.easing = { |
| - | linear: function( p ) { |
| - | return p; |
| - | }, |
| - | swing: function( p ) { |
| - | return 0.5 - Math.cos( p*Math.PI ) / 2; |
| - | } |
| - | }; |
| - | |
| - | jQuery.timers = []; |
| - | jQuery.fx = Tween.prototype.init; |
| - | jQuery.fx.tick = function() { |
| - | var timer, |
| - | timers = jQuery.timers, |
| - | i = 0; |
| - | |
| - | fxNow = jQuery.now(); |
| - | |
| - | for ( ; i < timers.length; i++ ) { |
| - | timer = timers[ i ]; |
| - | // Checks the timer has not already been removed |
| - | if ( !timer() && timers[ i ] === timer ) { |
| - | timers.splice( i--, 1 ); |
| - | } |
| - | } |
| - | |
| - | if ( !timers.length ) { |
| - | jQuery.fx.stop(); |
| - | } |
| - | fxNow = undefined; |
| - | }; |
| - | |
| - | jQuery.fx.timer = function( timer ) { |
| - | if ( timer() && jQuery.timers.push( timer ) ) { |
| - | jQuery.fx.start(); |
| - | } |
| - | }; |
| - | |
| - | jQuery.fx.interval = 13; |
| - | |
| - | jQuery.fx.start = function() { |
| - | if ( !timerId ) { |
| - | timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval ); |
| - | } |
| - | }; |
| - | |
| - | jQuery.fx.stop = function() { |
| - | clearInterval( timerId ); |
| - | timerId = null; |
| - | }; |
| - | |
| - | jQuery.fx.speeds = { |
| - | slow: 600, |
| - | fast: 200, |
| - | // Default speed |
| - | _default: 400 |
| - | }; |
| - | |
| - | // Back Compat <1.8 extension point |
| - | jQuery.fx.step = {}; |
| - | |
| - | if ( jQuery.expr && jQuery.expr.filters ) { |
| - | jQuery.expr.filters.animated = function( elem ) { |
| - | return jQuery.grep(jQuery.timers, function( fn ) { |
| - | return elem === fn.elem; |
| - | }).length; |
| - | }; |
| - | } |
| - | jQuery.fn.offset = function( options ) { |
| - | if ( arguments.length ) { |
| - | return options === undefined ? |
| - | this : |
| - | this.each(function( i ) { |
| - | jQuery.offset.setOffset( this, options, i ); |
| - | }); |
| - | } |
| - | |
| - | var docElem, win, |
| - | elem = this[ 0 ], |
| - | box = { top: 0, left: 0 }, |
| - | doc = elem && elem.ownerDocument; |
| - | |
| - | if ( !doc ) { |
| - | return; |
| - | } |
| - | |
| - | docElem = doc.documentElement; |
| - | |
| - | // Make sure it's not a disconnected DOM node |
| - | if ( !jQuery.contains( docElem, elem ) ) { |
| - | return box; |
| - | } |
| - | |
| - | // If we don't have gBCR, just use 0,0 rather than error |
| - | // BlackBerry 5, iOS 3 (original iPhone) |
| - | if ( typeof elem.getBoundingClientRect !== core_strundefined ) { |
| - | box = elem.getBoundingClientRect(); |
| - | } |
| - | win = getWindow( doc ); |
| - | return { |
| - | top: box.top + win.pageYOffset - docElem.clientTop, |
| - | left: box.left + win.pageXOffset - docElem.clientLeft |
| - | }; |
| - | }; |
| - | |
| - | jQuery.offset = { |
| - | |
| - | setOffset: function( elem, options, i ) { |
| - | var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition, |
| - | position = jQuery.css( elem, "position" ), |
| - | curElem = jQuery( elem ), |
| - | props = {}; |
| - | |
| - | // Set position first, in-case top/left are set even on static elem |
| - | if ( position === "static" ) { |
| - | elem.style.position = "relative"; |
| - | } |
| - | |
| - | curOffset = curElem.offset(); |
| - | curCSSTop = jQuery.css( elem, "top" ); |
| - | curCSSLeft = jQuery.css( elem, "left" ); |
| - | calculatePosition = ( position === "absolute" || position === "fixed" ) && ( curCSSTop + curCSSLeft ).indexOf("auto") > -1; |
| - | |
| - | // Need to be able to calculate position if either top or left is auto and position is either absolute or fixed |
| - | if ( calculatePosition ) { |
| - | curPosition = curElem.position(); |
| - | curTop = curPosition.top; |
| - | curLeft = curPosition.left; |
| - | |
| - | } else { |
| - | curTop = parseFloat( curCSSTop ) || 0; |
| - | curLeft = parseFloat( curCSSLeft ) || 0; |
| - | } |
| - | |
| - | if ( jQuery.isFunction( options ) ) { |
| - | options = options.call( elem, i, curOffset ); |
| - | } |
| - | |
| - | if ( options.top != null ) { |
| - | props.top = ( options.top - curOffset.top ) + curTop; |
| - | } |
| - | if ( options.left != null ) { |
| - | props.left = ( options.left - curOffset.left ) + curLeft; |
| - | } |
| - | |
| - | if ( "using" in options ) { |
| - | options.using.call( elem, props ); |
| - | |
| - | } else { |
| - | curElem.css( props ); |
| - | } |
| - | } |
| - | }; |
| - | |
| - | |
| - | jQuery.fn.extend({ |
| - | |
| - | position: function() { |
| - | if ( !this[ 0 ] ) { |
| - | return; |
| - | } |
| - | |
| - | var offsetParent, offset, |
| - | elem = this[ 0 ], |
| - | parentOffset = { top: 0, left: 0 }; |
| - | |
| - | // Fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent |
| - | if ( jQuery.css( elem, "position" ) === "fixed" ) { |
| - | // We assume that getBoundingClientRect is available when computed position is fixed |
| - | offset = elem.getBoundingClientRect(); |
| - | |
| - | } else { |
| - | // Get *real* offsetParent |
| - | offsetParent = this.offsetParent(); |
| - | |
| - | // Get correct offsets |
| - | offset = this.offset(); |
| - | if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) { |
| - | parentOffset = offsetParent.offset(); |
| - | } |
| - | |
| - | // Add offsetParent borders |
| - | parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ); |
| - | parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ); |
| - | } |
| - | |
| - | // Subtract parent offsets and element margins |
| - | return { |
| - | top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ), |
| - | left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true ) |
| - | }; |
| - | }, |
| - | |
| - | offsetParent: function() { |
| - | return this.map(function() { |
| - | var offsetParent = this.offsetParent || docElem; |
| - | |
| - | while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position") === "static" ) ) { |
| - | offsetParent = offsetParent.offsetParent; |
| - | } |
| - | |
| - | return offsetParent || docElem; |
| - | }); |
| - | } |
| - | }); |
| - | |
| - | |
| - | // Create scrollLeft and scrollTop methods |
| - | jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( method, prop ) { |
| - | var top = "pageYOffset" === prop; |
| - | |
| - | jQuery.fn[ method ] = function( val ) { |
| - | return jQuery.access( this, function( elem, method, val ) { |
| - | var win = getWindow( elem ); |
| - | |
| - | if ( val === undefined ) { |
| - | return win ? win[ prop ] : elem[ method ]; |
| - | } |
| - | |
| - | if ( win ) { |
| - | win.scrollTo( |
| - | !top ? val : window.pageXOffset, |
| - | top ? val : window.pageYOffset |
| - | ); |
| - | |
| - | } else { |
| - | elem[ method ] = val; |
| - | } |
| - | }, method, val, arguments.length, null ); |
| - | }; |
| - | }); |
| - | |
| - | function getWindow( elem ) { |
| - | return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView; |
| - | } |
| - | // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods |
| - | jQuery.each( { Height: "height", Width: "width" }, function( name, type ) { |
| - | jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) { |
| - | // margin is only for outerHeight, outerWidth |
| - | jQuery.fn[ funcName ] = function( margin, value ) { |
| - | var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ), |
| - | extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" ); |
| - | |
| - | return jQuery.access( this, function( elem, type, value ) { |
| - | var doc; |
| - | |
| - | if ( jQuery.isWindow( elem ) ) { |
| - | // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there |
| - | // isn't a whole lot we can do. See pull request at this URL for discussion: |
| - | // https://github.com/jquery/jquery/pull/764 |
| - | return elem.document.documentElement[ "client" + name ]; |
| - | } |
| - | |
| - | // Get document width or height |
| - | if ( elem.nodeType === 9 ) { |
| - | doc = elem.documentElement; |
| - | |
| - | // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], |
| - | // whichever is greatest |
| - | return Math.max( |
| - | elem.body[ "scroll" + name ], doc[ "scroll" + name ], |
| - | elem.body[ "offset" + name ], doc[ "offset" + name ], |
| - | doc[ "client" + name ] |
| - | ); |
| - | } |
| - | |
| - | return value === undefined ? |
| - | // Get width or height on the element, requesting but not forcing parseFloat |
| - | jQuery.css( elem, type, extra ) : |
| - | |
| - | // Set width or height on the element |
| - | jQuery.style( elem, type, value, extra ); |
| - | }, type, chainable ? margin : undefined, chainable, null ); |
| - | }; |
| - | }); |
| - | }); |
| - | // Limit scope pollution from any deprecated API |
| - | // (function() { |
| - | |
| - | // The number of elements contained in the matched element set |
| - | jQuery.fn.size = function() { |
| - | return this.length; |
| - | }; |
| - | |
| - | jQuery.fn.andSelf = jQuery.fn.addBack; |
| - | |
| - | // })(); |
| - | if ( typeof module === "object" && module && typeof module.exports === "object" ) { |
| - | // Expose jQuery as module.exports in loaders that implement the Node |
| - | // module pattern (including browserify). Do not create the global, since |
| - | // the user will be storing it themselves locally, and globals are frowned |
| - | // upon in the Node module world. |
| - | module.exports = jQuery; |
| - | } else { |
| - | // Register as a named AMD module, since jQuery can be concatenated with other |
| - | // files that may use define, but not via a proper concatenation script that |
| - | // understands anonymous AMD modules. A named AMD is safest and most robust |
| - | // way to register. Lowercase jquery is used because AMD module names are |
| - | // derived from file names, and jQuery is normally delivered in a lowercase |
| - | // file name. Do this after creating the global so that if an AMD module wants |
| - | // to call noConflict to hide this version of jQuery, it will work. |
| - | if ( typeof define === "function" && define.amd ) { |
| - | define( "jquery", [], function () { return jQuery; } ); |
| - | } |
| - | } |
| - | |
| - | // If there is a window object, that at least has a document property, |
| - | // define jQuery and $ identifiers |
| - | if ( typeof window === "object" && typeof window.document === "object" ) { |
| - | window.jQuery = window.$ = jQuery; |
| - | } |
| - | |
| - | })( window ); |
| + | function(a){function b(a,b,c,d){var e,f,g,h,i,j,l,n,o,p;if((b?b.ownerDocument||b:O)!==G&&F(b),b=b||G,c=c||[],!a||"string"!=typeof a)return c;if(1!==(h=b.nodeType)&&9!==h)return[];if(I&&!d){if(e=sb.exec(a))if(g=e[1]){if(9===h){if(f=b.getElementById(g),!f||!f.parentNode)return c;if(f.id===g)return c.push(f),c}else if(b.ownerDocument&&(f=b.ownerDocument.getElementById(g))&&M(b,f)&&f.id===g)return c.push(f),c}else{if(e[2])return _.apply(c,b.getElementsByTagName(a)),c;if((g=e[3])&&v.getElementsByClassName&&b.getElementsByClassName)return _.apply(c,b.getElementsByClassName(g)),c}if(v.qsa&&(!J||!J.test(a))){if(n=l=N,o=b,p=9===h&&a,1===h&&"object"!==b.nodeName.toLowerCase()){for(j=z(a),(l=b.getAttribute("id"))?n=l.replace(ub,"\\$&"):b.setAttribute("id",n),n="[id='"+n+"'] ",i=j.length;i--;)j[i]=n+m(j[i]);o=tb.test(a)&&k(b.parentNode)||b,p=j.join(",")}if(p)try{return _.apply(c,o.querySelectorAll(p)),c}catch(q){}finally{l||b.removeAttribute("id")}}}return B(a.replace(ib,"$1"),b,c,d)}function c(){function a(c,d){return b.push(c+" ")>w.cacheLength&&delete a[b.shift()],a[c+" "]=d}var b=[];return a}function d(a){return a[N]=!0,a}function e(a){var b=G.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function f(a,b){for(var c=a.split("|"),d=a.length;d--;)w.attrHandle[c[d]]=b}function g(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||W)-(~a.sourceIndex||W);if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function h(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function i(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function j(a){return d(function(b){return b=+b,d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function k(a){return a&&typeof a.getElementsByTagName!==V&&a}function l(){}function m(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function n(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=Q++;return b.first?function(b,c,f){for(;b=b[d];)if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[P,f];if(g){for(;b=b[d];)if((1===b.nodeType||e)&&a(b,c,g))return!0}else for(;b=b[d];)if(1===b.nodeType||e){if(i=b[N]||(b[N]={}),(h=i[d])&&h[0]===P&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function o(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function p(a,c,d){for(var e=0,f=c.length;f>e;e++)b(a,c[e],d);return d}function q(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function r(a,b,c,e,f,g){return e&&!e[N]&&(e=r(e)),f&&!f[N]&&(f=r(f,g)),d(function(d,g,h,i){var j,k,l,m=[],n=[],o=g.length,r=d||p(b||"*",h.nodeType?[h]:h,[]),s=!a||!d&&b?r:q(r,m,a,h,i),t=c?f||(d?a:o||e)?[]:g:s;if(c&&c(s,t,h,i),e)for(j=q(t,n),e(j,[],h,i),k=j.length;k--;)(l=j[k])&&(t[n[k]]=!(s[n[k]]=l));if(d){if(f||a){if(f){for(j=[],k=t.length;k--;)(l=t[k])&&j.push(s[k]=l);f(null,t=[],j,i)}for(k=t.length;k--;)(l=t[k])&&(j=f?bb.call(d,l):m[k])>-1&&(d[j]=!(g[j]=l))}}else t=q(t===g?t.splice(o,t.length):t),f?f(null,g,t,i):_.apply(g,t)})}function s(a){for(var b,c,d,e=a.length,f=w.relative[a[0].type],g=f||w.relative[" "],h=f?1:0,i=n(function(a){return a===b},g,!0),j=n(function(a){return bb.call(b,a)>-1},g,!0),k=[function(a,c,d){return!f&&(d||c!==C)||((b=c).nodeType?i(a,c,d):j(a,c,d))}];e>h;h++)if(c=w.relative[a[h].type])k=[n(o(k),c)];else{if(c=w.filter[a[h].type].apply(null,a[h].matches),c[N]){for(d=++h;e>d&&!w.relative[a[d].type];d++);return r(h>1&&o(k),h>1&&m(a.slice(0,h-1).concat({value:" "===a[h-2].type?"*":""})).replace(ib,"$1"),c,d>h&&s(a.slice(h,d)),e>d&&s(a=a.slice(d)),e>d&&m(a))}k.push(c)}return o(k)}function t(a,c){var e=c.length>0,f=a.length>0,g=function(d,g,h,i,j){var k,l,m,n=0,o="0",p=d&&[],r=[],s=C,t=d||f&&w.find.TAG("*",j),u=P+=null==s?1:Math.random()||.1,v=t.length;for(j&&(C=g!==G&&g);o!==v&&null!=(k=t[o]);o++){if(f&&k){for(l=0;m=a[l++];)if(m(k,g,h)){i.push(k);break}j&&(P=u)}e&&((k=!m&&k)&&n--,d&&p.push(k))}if(n+=o,e&&o!==n){for(l=0;m=c[l++];)m(p,r,g,h);if(d){if(n>0)for(;o--;)p[o]||r[o]||(r[o]=Z.call(i));r=q(r)}_.apply(i,r),j&&!d&&r.length>0&&n+c.length>1&&b.uniqueSort(i)}return j&&(P=u,C=s),p};return e?d(g):g}var u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N="sizzle"+-new Date,O=a.document,P=0,Q=0,R=c(),S=c(),T=c(),U=function(a,b){return a===b&&(E=!0),0},V="undefined",W=1<<31,X={}.hasOwnProperty,Y=[],Z=Y.pop,$=Y.push,_=Y.push,ab=Y.slice,bb=Y.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},cb="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",db="[\\x20\\t\\r\\n\\f]",eb="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",fb=eb.replace("w","w#"),gb="\\["+db+"*("+eb+")(?:"+db+"*([*^$|!~]?=)"+db+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+fb+"))|)"+db+"*\\]",hb=":("+eb+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+gb+")*)|.*)\\)|)",ib=new RegExp("^"+db+"+|((?:^|[^\\\\])(?:\\\\.)*)"+db+"+$","g"),jb=new RegExp("^"+db+"*,"+db+"*"),kb=new RegExp("^"+db+"*([>+~]|"+db+")"+db+"*"),lb=new RegExp("="+db+"*([^\\]'\"]*?)"+db+"*\\]","g"),mb=new RegExp(hb),nb=new RegExp("^"+fb+"$"),ob={ID:new RegExp("^#("+eb+")"),CLASS:new RegExp("^\\.("+eb+")"),TAG:new RegExp("^("+eb.replace("w","w*")+")"),ATTR:new RegExp("^"+gb),PSEUDO:new RegExp("^"+hb),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+db+"*(even|odd|(([+-]|)(\\d*)n|)"+db+"*(?:([+-]|)"+db+"*(\\d+)|))"+db+"*\\)|)","i"),bool:new RegExp("^(?:"+cb+")$","i"),needsContext:new RegExp("^"+db+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+db+"*((?:-\\d)?\\d*)"+db+"*\\)|)(?=[^-]|$)","i")},pb=/^(?:input|select|textarea|button)$/i,qb=/^h\d$/i,rb=/^[^{]+\{\s*\[native \w/,sb=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tb=/[+~]/,ub=/'|\\/g,vb=new RegExp("\\\\([\\da-f]{1,6}"+db+"?|("+db+")|.)","ig"),wb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{_.apply(Y=ab.call(O.childNodes),O.childNodes),Y[O.childNodes.length].nodeType}catch(xb){_={apply:Y.length?function(a,b){$.apply(a,ab.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}v=b.support={},y=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},F=b.setDocument=function(a){var b,c=a?a.ownerDocument||a:O,d=c.defaultView;return c!==G&&9===c.nodeType&&c.documentElement?(G=c,H=c.documentElement,I=!y(c),d&&d!==d.top&&(d.addEventListener?d.addEventListener("unload",function(){F()},!1):d.attachEvent&&d.attachEvent("onunload",function(){F()})),v.attributes=e(function(a){return a.className="i",!a.getAttribute("className")}),v.getElementsByTagName=e(function(a){return a.appendChild(c.createComment("")),!a.getElementsByTagName("*").length}),v.getElementsByClassName=rb.test(c.getElementsByClassName)&&e(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),v.getById=e(function(a){return H.appendChild(a).id=N,!c.getElementsByName||!c.getElementsByName(N).length}),v.getById?(w.find.ID=function(a,b){if(typeof b.getElementById!==V&&I){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},w.filter.ID=function(a){var b=a.replace(vb,wb);return function(a){return a.getAttribute("id")===b}}):(delete w.find.ID,w.filter.ID=function(a){var b=a.replace(vb,wb);return function(a){var c=typeof a.getAttributeNode!==V&&a.getAttributeNode("id");return c&&c.value===b}}),w.find.TAG=v.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==V?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},w.find.CLASS=v.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==V&&I?b.getElementsByClassName(a):void 0},K=[],J=[],(v.qsa=rb.test(c.querySelectorAll))&&(e(function(a){a.innerHTML="<select msallowclip=''><option selected=''></option></select>",a.querySelectorAll("[msallowclip^='']").length&&J.push("[*^$]="+db+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||J.push("\\["+db+"*(?:value|"+cb+")"),a.querySelectorAll(":checked").length||J.push(":checked")}),e(function(a){var b=c.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&J.push("name"+db+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||J.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),J.push(",.*:")})),(v.matchesSelector=rb.test(L=H.matches||H.webkitMatchesSelector||H.mozMatchesSelector||H.oMatchesSelector||H.msMatchesSelector))&&e(function(a){v.disconnectedMatch=L.call(a,"div"),L.call(a,"[s!='']:x"),K.push("!=",hb)}),J=J.length&&new RegExp(J.join("|")),K=K.length&&new RegExp(K.join("|")),b=rb.test(H.compareDocumentPosition),M=b||rb.test(H.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1},U=b?function(a,b){if(a===b)return E=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!v.sortDetached&&b.compareDocumentPosition(a)===d?a===c||a.ownerDocument===O&&M(O,a)?-1:b===c||b.ownerDocument===O&&M(O,b)?1:D?bb.call(D,a)-bb.call(D,b):0:4&d?-1:1)}:function(a,b){if(a===b)return E=!0,0;var d,e=0,f=a.parentNode,h=b.parentNode,i=[a],j=[b];if(!f||!h)return a===c?-1:b===c?1:f?-1:h?1:D?bb.call(D,a)-bb.call(D,b):0;if(f===h)return g(a,b);for(d=a;d=d.parentNode;)i.unshift(d);for(d=b;d=d.parentNode;)j.unshift(d);for(;i[e]===j[e];)e++;return e?g(i[e],j[e]):i[e]===O?-1:j[e]===O?1:0},c):G},b.matches=function(a,c){return b(a,null,null,c)},b.matchesSelector=function(a,c){if((a.ownerDocument||a)!==G&&F(a),c=c.replace(lb,"='$1']"),!(!v.matchesSelector||!I||K&&K.test(c)||J&&J.test(c)))try{var d=L.call(a,c);if(d||v.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return b(c,G,null,[a]).length>0},b.contains=function(a,b){return(a.ownerDocument||a)!==G&&F(a),M(a,b)},b.attr=function(a,b){(a.ownerDocument||a)!==G&&F(a);var c=w.attrHandle[b.toLowerCase()],d=c&&X.call(w.attrHandle,b.toLowerCase())?c(a,b,!I):void 0;return void 0!==d?d:v.attributes||!I?a.getAttribute(b):(d=a.getAttributeNode(b))&&d.specified?d.value:null},b.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},b.uniqueSort=function(a){var b,c=[],d=0,e=0;if(E=!v.detectDuplicates,D=!v.sortStable&&a.slice(0),a.sort(U),E){for(;b=a[e++];)b===a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}return D=null,a},x=b.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=x(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=x(b);return c},w=b.selectors={cacheLength:50,createPseudo:d,match:ob,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(vb,wb),a[3]=(a[3]||a[4]||a[5]||"").replace(vb,wb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return ob.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&mb.test(c)&&(b=z(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(vb,wb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=R[a+" "];return b||(b=new RegExp("(^|"+db+")"+a+"("+db+"|$)"))&&R(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==V&&a.getAttribute("class")||"")})},ATTR:function(a,c,d){return function(e){var f=b.attr(e,a);return null==f?"!="===c:c?(f+="","="===c?f===d:"!="===c?f!==d:"^="===c?d&&0===f.indexOf(d):"*="===c?d&&f.indexOf(d)>-1:"$="===c?d&&f.slice(-d.length)===d:"~="===c?(" "+f+" ").indexOf(d)>-1:"|="===c?f===d||f.slice(0,d.length+1)===d+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){for(;p;){for(l=b;l=l[p];)if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){for(k=q[N]||(q[N]={}),j=k[a]||[],n=j[0]===P&&j[1],m=j[0]===P&&j[2],l=n&&q.childNodes[n];l=++n&&l&&l[p]||(m=n=0)||o.pop();)if(1===l.nodeType&&++m&&l===b){k[a]=[P,n,m];break}}else if(s&&(j=(b[N]||(b[N]={}))[a])&&j[0]===P)m=j[1];else for(;(l=++n&&l&&l[p]||(m=n=0)||o.pop())&&((h?l.nodeName.toLowerCase()!==r:1!==l.nodeType)||!++m||(s&&((l[N]||(l[N]={}))[a]=[P,m]),l!==b)););return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,c){var e,f=w.pseudos[a]||w.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[N]?f(c):f.length>1?(e=[a,a,"",c],w.setFilters.hasOwnProperty(a.toLowerCase())?d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=bb.call(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=A(a.replace(ib,"$1"));return e[N]?d(function(a,b,c,d){for(var f,g=e(a,null,d,[]),h=a.length;h--;)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,d,f){return b[0]=a,e(b,null,f,c),!c.pop()}}),has:d(function(a){return function(c){return b(a,c).length>0}}),contains:d(function(a){return function(b){return(b.textContent||b.innerText||x(b)).indexOf(a)>-1}}),lang:d(function(a){return nb.test(a||"")||b.error("unsupported lang: "+a),a=a.replace(vb,wb).toLowerCase(),function(b){var c;do if(c=I?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===H},focus:function(a){return a===G.activeElement&&(!G.hasFocus||G.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!w.pseudos.empty(a)},header:function(a){return qb.test(a.nodeName)},input:function(a){return pb.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:j(function(){return[0]}),last:j(function(a,b){return[b-1]}),eq:j(function(a,b,c){return[0>c?c+b:c]}),even:j(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:j(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:j(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:j(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},w.pseudos.nth=w.pseudos.eq;for(u in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[u]=h(u);for(u in{submit:!0,reset:!0})w.pseudos[u]=i(u);return l.prototype=w.filters=w.pseudos,w.setFilters=new l,z=b.tokenize=function(a,c){var d,e,f,g,h,i,j,k=S[a+" "];if(k)return c?0:k.slice(0);for(h=a,i=[],j=w.preFilter;h;){(!d||(e=jb.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),d=!1,(e=kb.exec(h))&&(d=e.shift(),f.push({value:d,type:e[0].replace(ib," ")}),h=h.slice(d.length));for(g in w.filter)!(e=ob[g].exec(h))||j[g]&&!(e=j[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):S(a,i).slice(0)},A=b.compile=function(a,b){var c,d=[],e=[],f=T[a+" "];if(!f){for(b||(b=z(a)),c=b.length;c--;)f=s(b[c]),f[N]?d.push(f):e.push(f);f=T(a,t(e,d)),f.selector=a}return f},B=b.select=function(a,b,c,d){var e,f,g,h,i,j="function"==typeof a&&a,l=!d&&z(a=j.selector||a);if(c=c||[],1===l.length){if(f=l[0]=l[0].slice(0),f.length>2&&"ID"===(g=f[0]).type&&v.getById&&9===b.nodeType&&I&&w.relative[f[1].type]){if(b=(w.find.ID(g.matches[0].replace(vb,wb),b)||[])[0],!b)return c;j&&(b=b.parentNode),a=a.slice(f.shift().value.length)}for(e=ob.needsContext.test(a)?0:f.length;e--&&(g=f[e],!w.relative[h=g.type]);)if((i=w.find[h])&&(d=i(g.matches[0].replace(vb,wb),tb.test(f[0].type)&&k(b.parentNode)||b))){if(f.splice(e,1),a=d.length&&m(f),!a)return _.apply(c,d),c;break}}return(j||A(a,l))(d,b,!I,c,tb.test(a)&&k(b.parentNode)||b),c},v.sortStable=N.split("").sort(U).join("")===N,v.detectDuplicates=!!E,F(),v.sortDetached=e(function(a){return 1&a.compareDocumentPosition(G.createElement("div"))}),e(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||f("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),v.attributes&&e(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||f("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),e(function(a){return null==a.getAttribute("disabled")})||f(cb,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),b}(a);_.find=eb,_.expr=eb.selectors,_.expr[":"]=_.expr.pseudos,_.unique=eb.uniqueSort,_.text=eb.getText,_.isXMLDoc=eb.isXML,_.contains=eb.contains;var fb=_.expr.match.needsContext,gb=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,hb=/^.[^:#\[\.,]*$/;_.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?_.find.matchesSelector(d,a)?[d]:[]:_.find.matches(a,_.grep(b,function(a){return 1===a.nodeType}))},_.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(_(a).filter(function(){for(b=0;c>b;b++)if(_.contains(e[b],this))return!0}));for(b=0;c>b;b++)_.find(a,e[b],d);return d=this.pushStack(c>1?_.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(d(this,a||[],!1))},not:function(a){return this.pushStack(d(this,a||[],!0))},is:function(a){return!!d(this,"string"==typeof a&&fb.test(a)?_(a):a||[],!1).length}});var ib,jb=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,kb=_.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:jb.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||ib).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof _?b[0]:b,_.merge(this,_.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:Z,!0)),gb.test(c[1])&&_.isPlainObject(b))for(c in b)_.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}return d=Z.getElementById(c[2]),d&&d.parentNode&&(this.length=1,this[0]=d),this.context=Z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):_.isFunction(a)?"undefined"!=typeof ib.ready?ib.ready(a):a(_):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),_.makeArray(a,this))};kb.prototype=_.fn,ib=_(Z);var lb=/^(?:parents|prev(?:Until|All))/,mb={children:!0,contents:!0,next:!0,prev:!0};_.extend({dir:function(a,b,c){for(var d=[],e=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(e&&_(a).is(c))break;d.push(a)}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),_.fn.extend({has:function(a){var b=_(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(_.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=fb.test(a)||"string"!=typeof a?_(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&_.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?_.unique(f):f)},index:function(a){return a?"string"==typeof a?U.call(_(a),this[0]):U.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(_.unique(_.merge(this.get(),_(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}}),_.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return _.dir(a,"parentNode")},parentsUntil:function(a,b,c){return _.dir(a,"parentNode",c)},next:function(a){return e(a,"nextSibling")},prev:function(a){return e(a,"previousSibling")},nextAll:function(a){return _.dir(a,"nextSibling")},prevAll:function(a){return _.dir(a,"previousSibling")},nextUntil:function(a,b,c){return _.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return _.dir(a,"previousSibling",c)},siblings:function(a){return _.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return _.sibling(a.firstChild)},contents:function(a){return a.contentDocument||_.merge([],a.childNodes)}},function(a,b){_.fn[a]=function(c,d){var e=_.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=_.filter(d,e)),this.length>1&&(mb[a]||_.unique(e),lb.test(a)&&e.reverse()),this.pushStack(e)}});var nb=/\S+/g,ob={};_.Callbacks=function(a){a="string"==typeof a?ob[a]||f(a):_.extend({},a);var b,c,d,e,g,h,i=[],j=!a.once&&[],k=function(f){for(b=a.memory&&f,c=!0,h=e||0,e=0,g=i.length,d=!0;i&&g>h;h++)if(i[h].apply(f[0],f[1])===!1&&a.stopOnFalse){b=!1;break}d=!1,i&&(j?j.length&&k(j.shift()):b?i=[]:l.disable())},l={add:function(){if(i){var c=i.length;!function f(b){_.each(b,function(b,c){var d=_.type(c);"function"===d?a.unique&&l.has(c)||i.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),d?g=i.length:b&&(e=c,k(b))}return this},remove:function(){return i&&_.each(arguments,function(a,b){for(var c;(c=_.inArray(b,i,c))>-1;)i.splice(c,1),d&&(g>=c&&g--,h>=c&&h--)}),this},has:function(a){return a?_.inArray(a,i)>-1:!(!i||!i.length)},empty:function(){return i=[],g=0,this},disable:function(){return i=j=b=void 0,this},disabled:function(){return!i},lock:function(){return j=void 0,b||l.disable(),this},locked:function(){return!j},fireWith:function(a,b){return!i||c&&!j||(b=b||[],b=[a,b.slice?b.slice():b],d?j.push(b):k(b)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!c}};return l},_.extend({Deferred:function(a){var b=[["resolve","done",_.Callbacks("once memory"),"resolved"],["reject","fail",_.Callbacks("once memory"),"rejected"],["notify","progress",_.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return _.Deferred(function(c){_.each(b,function(b,f){var g=_.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&_.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?_.extend(a,d):d}},e={};return d.pipe=d.then,_.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b,c,d,e=0,f=R.call(arguments),g=f.length,h=1!==g||a&&_.isFunction(a.promise)?g:0,i=1===h?a:_.Deferred(),j=function(a,c,d){return function(e){c[a]=this,d[a]=arguments.length>1?R.call(arguments):e,d===b?i.notifyWith(c,d):--h||i.resolveWith(c,d)}};if(g>1)for(b=new Array(g),c=new Array(g),d=new Array(g);g>e;e++)f[e]&&_.isFunction(f[e].promise)?f[e].promise().done(j(e,d,f)).fail(i.reject).progress(j(e,c,b)):--h;return h||i.resolveWith(d,f),i.promise()}});var pb;_.fn.ready=function(a){return _.ready.promise().done(a),this},_.extend({isReady:!1,readyWait:1,holdReady:function(a){a?_.readyWait++:_.ready(!0)},ready:function(a){(a===!0?--_.readyWait:_.isReady)||(_.isReady=!0,a!==!0&&--_.readyWait>0||(pb.resolveWith(Z,[_]),_.fn.triggerHandler&&(_(Z).triggerHandler("ready"),_(Z).off("ready"))))}}),_.ready.promise=function(b){return pb||(pb=_.Deferred(),"complete"===Z.readyState?setTimeout(_.ready):(Z.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1))),pb.promise(b)},_.ready.promise();var qb=_.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===_.type(c)){e=!0;for(h in c)_.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,_.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(_(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f};_.acceptData=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType},h.uid=1,h.accepts=_.acceptData,h.prototype={key:function(a){if(!h.accepts(a))return 0;var b={},c=a[this.expando];if(!c){c=h.uid++;try{b[this.expando]={value:c},Object.defineProperties(a,b)}catch(d){b[this.expando]=c,_.extend(a,b)}}return this.cache[c]||(this.cache[c]={}),c},set:function(a,b,c){var d,e=this.key(a),f=this.cache[e];if("string"==typeof b)f[b]=c;else if(_.isEmptyObject(f))_.extend(this.cache[e],b);else for(d in b)f[d]=b[d];return f},get:function(a,b){var c=this.cache[this.key(a)];return void 0===b?c:c[b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,_.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=this.key(a),g=this.cache[f];if(void 0===b)this.cache[f]={};else{_.isArray(b)?d=b.concat(b.map(_.camelCase)):(e=_.camelCase(b),b in g?d=[b,e]:(d=e,d=d in g?[d]:d.match(nb)||[])),c=d.length;for(;c--;)delete g[d[c]]}},hasData:function(a){return!_.isEmptyObject(this.cache[a[this.expando]]||{})},discard:function(a){a[this.expando]&&delete this.cache[a[this.expando]]}};var rb=new h,sb=new h,tb=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ub=/([A-Z])/g;_.extend({hasData:function(a){return sb.hasData(a)||rb.hasData(a)},data:function(a,b,c){return sb.access(a,b,c)},removeData:function(a,b){sb.remove(a,b)},_data:function(a,b,c){return rb.access(a,b,c)},_removeData:function(a,b){rb.remove(a,b)}}),_.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=sb.get(f),1===f.nodeType&&!rb.get(f,"hasDataAttrs"))){for(c=g.length;c--;)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=_.camelCase(d.slice(5)),i(f,d,e[d])));rb.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){sb.set(this,a)}):qb(this,function(b){var c,d=_.camelCase(a);if(f&&void 0===b){if(c=sb.get(f,a),void 0!==c)return c;if(c=sb.get(f,d),void 0!==c)return c;if(c=i(f,d,void 0),void 0!==c)return c}else this.each(function(){var c=sb.get(this,d);sb.set(this,d,b),-1!==a.indexOf("-")&&void 0!==c&&sb.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){sb.remove(this,a)})}}),_.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=rb.get(a,b),c&&(!d||_.isArray(c)?d=rb.access(a,b,_.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=_.queue(a,b),d=c.length,e=c.shift(),f=_._queueHooks(a,b),g=function(){_.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return rb.get(a,c)||rb.access(a,c,{empty:_.Callbacks("once memory").add(function(){rb.remove(a,[b+"queue",c])})})}}),_.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?_.queue(this[0],a):void 0===b?this:this.each(function(){var c=_.queue(this,a,b);_._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&_.dequeue(this,a)})},dequeue:function(a){return this.each(function(){_.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=_.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};for("string"!=typeof a&&(b=a,a=void 0),a=a||"fx";g--;)c=rb.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var vb=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,wb=["Top","Right","Bottom","Left"],xb=function(a,b){return a=b||a,"none"===_.css(a,"display")||!_.contains(a.ownerDocument,a)},yb=/^(?:checkbox|radio)$/i;!function(){var a=Z.createDocumentFragment(),b=a.appendChild(Z.createElement("div")),c=Z.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),Y.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",Y.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var zb="undefined";Y.focusinBubbles="onfocusin"in a;var Ab=/^key/,Bb=/^(?:mouse|pointer|contextmenu)|click/,Cb=/^(?:focusinfocus|focusoutblur)$/,Db=/^([^.]*)(?:\.(.+)|)$/;_.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=rb.get(a);if(q)for(c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=_.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return typeof _!==zb&&_.event.triggered!==b.type?_.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(nb)||[""],j=b.length;j--;)h=Db.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=_.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=_.event.special[n]||{},k=_.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&_.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g,!1)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),_.event.global[n]=!0)},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=rb.hasData(a)&&rb.get(a);if(q&&(i=q.events)){for(b=(b||"").match(nb)||[""],j=b.length;j--;)if(h=Db.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){for(l=_.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;f--;)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||_.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)_.event.remove(a,n+b[j],c,d,!0);_.isEmptyObject(i)&&(delete q.handle,rb.remove(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,j,k,l,m=[d||Z],n=X.call(b,"type")?b.type:b,o=X.call(b,"namespace")?b.namespace.split("."):[];if(g=h=d=d||Z,3!==d.nodeType&&8!==d.nodeType&&!Cb.test(n+_.event.triggered)&&(n.indexOf(".")>=0&&(o=n.split("."),n=o.shift(),o.sort()),j=n.indexOf(":")<0&&"on"+n,b=b[_.expando]?b:new _.Event(n,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=o.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:_.makeArray(c,[b]),l=_.event.special[n]||{},e||!l.trigger||l.trigger.apply(d,c)!==!1)){if(!e&&!l.noBubble&&!_.isWindow(d)){for(i=l.delegateType||n,Cb.test(i+n)||(g=g.parentNode);g;g=g.parentNode)m.push(g),h=g; |
| + | h===(d.ownerDocument||Z)&&m.push(h.defaultView||h.parentWindow||a)}for(f=0;(g=m[f++])&&!b.isPropagationStopped();)b.type=f>1?i:l.bindType||n,k=(rb.get(g,"events")||{})[b.type]&&rb.get(g,"handle"),k&&k.apply(g,c),k=j&&g[j],k&&k.apply&&_.acceptData(g)&&(b.result=k.apply(g,c),b.result===!1&&b.preventDefault());return b.type=n,e||b.isDefaultPrevented()||l._default&&l._default.apply(m.pop(),c)!==!1||!_.acceptData(d)||j&&_.isFunction(d[n])&&!_.isWindow(d)&&(h=d[j],h&&(d[j]=null),_.event.triggered=n,d[n](),_.event.triggered=void 0,h&&(d[j]=h)),b.result}},dispatch:function(a){a=_.event.fix(a);var b,c,d,e,f,g=[],h=R.call(arguments),i=(rb.get(this,"events")||{})[a.type]||[],j=_.event.special[a.type]||{};if(h[0]=a,a.delegateTarget=this,!j.preDispatch||j.preDispatch.call(this,a)!==!1){for(g=_.event.handlers.call(this,a,i),b=0;(e=g[b++])&&!a.isPropagationStopped();)for(a.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!a.isImmediatePropagationStopped();)(!a.namespace_re||a.namespace_re.test(f.namespace))&&(a.handleObj=f,a.data=f.data,d=((_.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()));return j.postDispatch&&j.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!==this;i=i.parentNode||this)if(i.disabled!==!0||"click"!==a.type){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?_(e,this).index(i)>=0:_.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||Z,d=c.documentElement,e=c.body,a.pageX=b.clientX+(d&&d.scrollLeft||e&&e.scrollLeft||0)-(d&&d.clientLeft||e&&e.clientLeft||0),a.pageY=b.clientY+(d&&d.scrollTop||e&&e.scrollTop||0)-(d&&d.clientTop||e&&e.clientTop||0)),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},fix:function(a){if(a[_.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];for(g||(this.fixHooks[e]=g=Bb.test(e)?this.mouseHooks:Ab.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new _.Event(f),b=d.length;b--;)c=d[b],a[c]=f[c];return a.target||(a.target=Z),3===a.target.nodeType&&(a.target=a.target.parentNode),g.filter?g.filter(a,f):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==l()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===l()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&_.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return _.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=_.extend(new _.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?_.event.trigger(e,null,b):_.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},_.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)},_.Event=function(a,b){return this instanceof _.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?j:k):this.type=a,b&&_.extend(this,b),this.timeStamp=a&&a.timeStamp||_.now(),void(this[_.expando]=!0)):new _.Event(a,b)},_.Event.prototype={isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=j,a&&a.preventDefault&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=j,a&&a.stopPropagation&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=j,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}},_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){_.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!_.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),Y.focusinBubbles||_.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){_.event.simulate(b,a.target,_.event.fix(a),!0)};_.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=rb.access(d,b);e||d.addEventListener(a,c,!0),rb.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=rb.access(d,b)-1;e?rb.access(d,b,e):(d.removeEventListener(a,c,!0),rb.remove(d,b))}}}),_.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(g in a)this.on(g,b,c,a[g],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=k;else if(!d)return this;return 1===e&&(f=d,d=function(a){return _().off(a),f.apply(this,arguments)},d.guid=f.guid||(f.guid=_.guid++)),this.each(function(){_.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,_(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=k),this.each(function(){_.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){_.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?_.event.trigger(a,b,c,!0):void 0}});var Eb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Fb=/<([\w:]+)/,Gb=/<|&#?\w+;/,Hb=/<(?:script|style|link)/i,Ib=/checked\s*(?:[^=]|=\s*.checked.)/i,Jb=/^$|\/(?:java|ecma)script/i,Kb=/^true\/(.*)/,Lb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Mb={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};Mb.optgroup=Mb.option,Mb.tbody=Mb.tfoot=Mb.colgroup=Mb.caption=Mb.thead,Mb.th=Mb.td,_.extend({clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=_.contains(a.ownerDocument,a);if(!(Y.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||_.isXMLDoc(a)))for(g=r(h),f=r(a),d=0,e=f.length;e>d;d++)s(f[d],g[d]);if(b)if(c)for(f=f||r(a),g=g||r(h),d=0,e=f.length;e>d;d++)q(f[d],g[d]);else q(a,h);return g=r(h,"script"),g.length>0&&p(g,!i&&r(a,"script")),h},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k=b.createDocumentFragment(),l=[],m=0,n=a.length;n>m;m++)if(e=a[m],e||0===e)if("object"===_.type(e))_.merge(l,e.nodeType?[e]:e);else if(Gb.test(e)){for(f=f||k.appendChild(b.createElement("div")),g=(Fb.exec(e)||["",""])[1].toLowerCase(),h=Mb[g]||Mb._default,f.innerHTML=h[1]+e.replace(Eb,"<$1></$2>")+h[2],j=h[0];j--;)f=f.lastChild;_.merge(l,f.childNodes),f=k.firstChild,f.textContent=""}else l.push(b.createTextNode(e));for(k.textContent="",m=0;e=l[m++];)if((!d||-1===_.inArray(e,d))&&(i=_.contains(e.ownerDocument,e),f=r(k.appendChild(e),"script"),i&&p(f),c))for(j=0;e=f[j++];)Jb.test(e.type||"")&&c.push(e);return k},cleanData:function(a){for(var b,c,d,e,f=_.event.special,g=0;void 0!==(c=a[g]);g++){if(_.acceptData(c)&&(e=c[rb.expando],e&&(b=rb.cache[e]))){if(b.events)for(d in b.events)f[d]?_.event.remove(c,d):_.removeEvent(c,d,b.handle);rb.cache[e]&&delete rb.cache[e]}delete sb.cache[c[sb.expando]]}}}),_.fn.extend({text:function(a){return qb(this,function(a){return void 0===a?_.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=a)})},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=m(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=m(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?_.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||_.cleanData(r(c)),c.parentNode&&(b&&_.contains(c.ownerDocument,c)&&p(r(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(_.cleanData(r(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return _.clone(this,a,b)})},html:function(a){return qb(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!Hb.test(a)&&!Mb[(Fb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Eb,"<$1></$2>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(_.cleanData(r(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,_.cleanData(r(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=S.apply([],a);var c,d,e,f,g,h,i=0,j=this.length,k=this,l=j-1,m=a[0],p=_.isFunction(m);if(p||j>1&&"string"==typeof m&&!Y.checkClone&&Ib.test(m))return this.each(function(c){var d=k.eq(c);p&&(a[0]=m.call(this,c,d.html())),d.domManip(a,b)});if(j&&(c=_.buildFragment(a,this[0].ownerDocument,!1,this),d=c.firstChild,1===c.childNodes.length&&(c=d),d)){for(e=_.map(r(c,"script"),n),f=e.length;j>i;i++)g=c,i!==l&&(g=_.clone(g,!0,!0),f&&_.merge(e,r(g,"script"))),b.call(this[i],g,i);if(f)for(h=e[e.length-1].ownerDocument,_.map(e,o),i=0;f>i;i++)g=e[i],Jb.test(g.type||"")&&!rb.access(g,"globalEval")&&_.contains(h,g)&&(g.src?_._evalUrl&&_._evalUrl(g.src):_.globalEval(g.textContent.replace(Lb,"")))}return this}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){_.fn[a]=function(a){for(var c,d=[],e=_(a),f=e.length-1,g=0;f>=g;g++)c=g===f?this:this.clone(!0),_(e[g])[b](c),T.apply(d,c.get());return this.pushStack(d)}});var Nb,Ob={},Pb=/^margin/,Qb=new RegExp("^("+vb+")(?!px)[a-z%]+$","i"),Rb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)};!function(){function b(){g.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",g.innerHTML="",e.appendChild(f);var b=a.getComputedStyle(g,null);c="1%"!==b.top,d="4px"===b.width,e.removeChild(f)}var c,d,e=Z.documentElement,f=Z.createElement("div"),g=Z.createElement("div");g.style&&(g.style.backgroundClip="content-box",g.cloneNode(!0).style.backgroundClip="",Y.clearCloneStyle="content-box"===g.style.backgroundClip,f.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",f.appendChild(g),a.getComputedStyle&&_.extend(Y,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return null==d&&b(),d},reliableMarginRight:function(){var b,c=g.appendChild(Z.createElement("div"));return c.style.cssText=g.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",g.style.width="1px",e.appendChild(f),b=!parseFloat(a.getComputedStyle(c,null).marginRight),e.removeChild(f),b}}))}(),_.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Sb=/^(none|table(?!-c[ea]).+)/,Tb=new RegExp("^("+vb+")(.*)$","i"),Ub=new RegExp("^([+-])=("+vb+")","i"),Vb={position:"absolute",visibility:"hidden",display:"block"},Wb={letterSpacing:"0",fontWeight:"400"},Xb=["Webkit","O","Moz","ms"];_.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=v(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=_.camelCase(b),i=a.style;return b=_.cssProps[h]||(_.cssProps[h]=x(i,h)),g=_.cssHooks[b]||_.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=Ub.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(_.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||_.cssNumber[h]||(c+="px"),Y.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=_.camelCase(b);return b=_.cssProps[h]||(_.cssProps[h]=x(a.style,h)),g=_.cssHooks[b]||_.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=v(a,b,d)),"normal"===e&&b in Wb&&(e=Wb[b]),""===c||c?(f=parseFloat(e),c===!0||_.isNumeric(f)?f||0:e):e}}),_.each(["height","width"],function(a,b){_.cssHooks[b]={get:function(a,c,d){return c?Sb.test(_.css(a,"display"))&&0===a.offsetWidth?_.swap(a,Vb,function(){return A(a,b,d)}):A(a,b,d):void 0},set:function(a,c,d){var e=d&&Rb(a);return y(a,c,d?z(a,b,d,"border-box"===_.css(a,"boxSizing",!1,e),e):0)}}}),_.cssHooks.marginRight=w(Y.reliableMarginRight,function(a,b){return b?_.swap(a,{display:"inline-block"},v,[a,"marginRight"]):void 0}),_.each({margin:"",padding:"",border:"Width"},function(a,b){_.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+wb[d]+b]=f[d]||f[d-2]||f[0];return e}},Pb.test(a)||(_.cssHooks[a+b].set=y)}),_.fn.extend({css:function(a,b){return qb(this,function(a,b,c){var d,e,f={},g=0;if(_.isArray(b)){for(d=Rb(a),e=b.length;e>g;g++)f[b[g]]=_.css(a,b[g],!1,d);return f}return void 0!==c?_.style(a,b,c):_.css(a,b)},a,b,arguments.length>1)},show:function(){return B(this,!0)},hide:function(){return B(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){xb(this)?_(this).show():_(this).hide()})}}),_.Tween=C,C.prototype={constructor:C,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(_.cssNumber[c]?"":"px")},cur:function(){var a=C.propHooks[this.prop];return a&&a.get?a.get(this):C.propHooks._default.get(this)},run:function(a){var b,c=C.propHooks[this.prop];return this.pos=b=this.options.duration?_.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):C.propHooks._default.set(this),this}},C.prototype.init.prototype=C.prototype,C.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=_.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){_.fx.step[a.prop]?_.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[_.cssProps[a.prop]]||_.cssHooks[a.prop])?_.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},C.propHooks.scrollTop=C.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},_.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},_.fx=C.prototype.init,_.fx.step={};var Yb,Zb,$b=/^(?:toggle|show|hide)$/,_b=new RegExp("^(?:([+-])=|)("+vb+")([a-z%]*)$","i"),ac=/queueHooks$/,bc=[G],cc={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=_b.exec(b),f=e&&e[3]||(_.cssNumber[a]?"":"px"),g=(_.cssNumber[a]||"px"!==f&&+d)&&_b.exec(_.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||".5",g/=h,_.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};_.Animation=_.extend(I,{tweener:function(a,b){_.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++)c=a[d],cc[c]=cc[c]||[],cc[c].unshift(b)},prefilter:function(a,b){b?bc.unshift(a):bc.push(a)}}),_.speed=function(a,b,c){var d=a&&"object"==typeof a?_.extend({},a):{complete:c||!c&&b||_.isFunction(a)&&a,duration:a,easing:c&&b||b&&!_.isFunction(b)&&b};return d.duration=_.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in _.fx.speeds?_.fx.speeds[d.duration]:_.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){_.isFunction(d.old)&&d.old.call(this),d.queue&&_.dequeue(this,d.queue)},d},_.fn.extend({fadeTo:function(a,b,c,d){return this.filter(xb).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=_.isEmptyObject(a),f=_.speed(b,c,d),g=function(){var b=I(this,_.extend({},a),f);(e||rb.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=_.timers,g=rb.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&ac.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&_.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=rb.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=_.timers,g=d?d.length:0;for(c.finish=!0,_.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),_.each(["toggle","show","hide"],function(a,b){var c=_.fn[b];_.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(E(b,!0),a,d,e)}}),_.each({slideDown:E("show"),slideUp:E("hide"),slideToggle:E("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){_.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),_.timers=[],_.fx.tick=function(){var a,b=0,c=_.timers;for(Yb=_.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||_.fx.stop(),Yb=void 0},_.fx.timer=function(a){_.timers.push(a),a()?_.fx.start():_.timers.pop()},_.fx.interval=13,_.fx.start=function(){Zb||(Zb=setInterval(_.fx.tick,_.fx.interval))},_.fx.stop=function(){clearInterval(Zb),Zb=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(a,b){return a=_.fx?_.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a=Z.createElement("input"),b=Z.createElement("select"),c=b.appendChild(Z.createElement("option"));a.type="checkbox",Y.checkOn=""!==a.value,Y.optSelected=c.selected,b.disabled=!0,Y.optDisabled=!c.disabled,a=Z.createElement("input"),a.value="t",a.type="radio",Y.radioValue="t"===a.value}();var dc,ec,fc=_.expr.attrHandle;_.fn.extend({attr:function(a,b){return qb(this,_.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){_.removeAttr(this,a)})}}),_.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===zb?_.prop(a,b,c):(1===f&&_.isXMLDoc(a)||(b=b.toLowerCase(),d=_.attrHooks[b]||(_.expr.match.bool.test(b)?ec:dc)),void 0===c?d&&"get"in d&&null!==(e=d.get(a,b))?e:(e=_.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void _.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(nb);if(f&&1===a.nodeType)for(;c=f[e++];)d=_.propFix[c]||c,_.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)},attrHooks:{type:{set:function(a,b){if(!Y.radioValue&&"radio"===b&&_.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),ec={set:function(a,b,c){return b===!1?_.removeAttr(a,c):a.setAttribute(c,c),c}},_.each(_.expr.match.bool.source.match(/\w+/g),function(a,b){var c=fc[b]||_.find.attr;fc[b]=function(a,b,d){var e,f;return d||(f=fc[b],fc[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,fc[b]=f),e}});var gc=/^(?:input|select|textarea|button)$/i;_.fn.extend({prop:function(a,b){return qb(this,_.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[_.propFix[a]||a]})}}),_.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!_.isXMLDoc(a),f&&(b=_.propFix[b]||b,e=_.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){return a.hasAttribute("tabindex")||gc.test(a.nodeName)||a.href?a.tabIndex:-1}}}}),Y.optSelected||(_.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_.propFix[this.toLowerCase()]=this});var hc=/[\t\r\n\f]/g;_.fn.extend({addClass:function(a){var b,c,d,e,f,g,h="string"==typeof a&&a,i=0,j=this.length;if(_.isFunction(a))return this.each(function(b){_(this).addClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(nb)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(hc," "):" ")){for(f=0;e=b[f++];)d.indexOf(" "+e+" ")<0&&(d+=e+" ");g=_.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0===arguments.length||"string"==typeof a&&a,i=0,j=this.length;if(_.isFunction(a))return this.each(function(b){_(this).removeClass(a.call(this,b,this.className))});if(h)for(b=(a||"").match(nb)||[];j>i;i++)if(c=this[i],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(hc," "):"")){for(f=0;e=b[f++];)for(;d.indexOf(" "+e+" ")>=0;)d=d.replace(" "+e+" "," ");g=a?_.trim(d):"",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(_.isFunction(a)?function(c){_(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c)for(var b,d=0,e=_(this),f=a.match(nb)||[];b=f[d++];)e.hasClass(b)?e.removeClass(b):e.addClass(b);else(c===zb||"boolean"===c)&&(this.className&&rb.set(this,"__className__",this.className),this.className=this.className||a===!1?"":rb.get(this,"__className__")||"")})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(hc," ").indexOf(b)>=0)return!0;return!1}});var ic=/\r/g;_.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=_.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,_(this).val()):a,null==e?e="":"number"==typeof e?e+="":_.isArray(e)&&(e=_.map(e,function(a){return null==a?"":a+""})),b=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=_.valHooks[e.type]||_.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(ic,""):null==c?"":c)}}}),_.extend({valHooks:{option:{get:function(a){var b=_.find.attr(a,"value");return null!=b?b:_.trim(_.text(a))}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(Y.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&_.nodeName(c.parentNode,"optgroup"))){if(b=_(c).val(),f)return b;g.push(b)}return g},set:function(a,b){for(var c,d,e=a.options,f=_.makeArray(b),g=e.length;g--;)d=e[g],(d.selected=_.inArray(d.value,f)>=0)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),_.each(["radio","checkbox"],function(){_.valHooks[this]={set:function(a,b){return _.isArray(b)?a.checked=_.inArray(_(a).val(),b)>=0:void 0}},Y.checkOn||(_.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})}),_.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){_.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),_.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var jc=_.now(),kc=/\?/;_.parseJSON=function(a){return JSON.parse(a+"")},_.parseXML=function(a){var b,c;if(!a||"string"!=typeof a)return null;try{c=new DOMParser,b=c.parseFromString(a,"text/xml")}catch(d){b=void 0}return(!b||b.getElementsByTagName("parsererror").length)&&_.error("Invalid XML: "+a),b};var lc,mc,nc=/#.*$/,oc=/([?&])_=[^&]*/,pc=/^(.*?):[ \t]*([^\r\n]*)$/gm,qc=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rc=/^(?:GET|HEAD)$/,sc=/^\/\//,tc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,uc={},vc={},wc="*/".concat("*");try{mc=location.href}catch(xc){mc=Z.createElement("a"),mc.href="",mc=mc.href}lc=tc.exec(mc.toLowerCase())||[],_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:mc,type:"GET",isLocal:qc.test(lc[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":wc,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":_.parseJSON,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?L(L(a,_.ajaxSettings),b):L(_.ajaxSettings,a)},ajaxPrefilter:J(uc),ajaxTransport:J(vc),ajax:function(a,b){function c(a,b,c,g){var i,k,r,s,u,w=b;2!==t&&(t=2,h&&clearTimeout(h),d=void 0,f=g||"",v.readyState=a>0?4:0,i=a>=200&&300>a||304===a,c&&(s=M(l,v,c)),s=N(l,s,v,i),i?(l.ifModified&&(u=v.getResponseHeader("Last-Modified"),u&&(_.lastModified[e]=u),u=v.getResponseHeader("etag"),u&&(_.etag[e]=u)),204===a||"HEAD"===l.type?w="nocontent":304===a?w="notmodified":(w=s.state,k=s.data,r=s.error,i=!r)):(r=w,(a||!w)&&(w="error",0>a&&(a=0))),v.status=a,v.statusText=(b||w)+"",i?o.resolveWith(m,[k,w,v]):o.rejectWith(m,[v,w,r]),v.statusCode(q),q=void 0,j&&n.trigger(i?"ajaxSuccess":"ajaxError",[v,l,i?k:r]),p.fireWith(m,[v,w]),j&&(n.trigger("ajaxComplete",[v,l]),--_.active||_.event.trigger("ajaxStop")))}"object"==typeof a&&(b=a,a=void 0),b=b||{};var d,e,f,g,h,i,j,k,l=_.ajaxSetup({},b),m=l.context||l,n=l.context&&(m.nodeType||m.jquery)?_(m):_.event,o=_.Deferred(),p=_.Callbacks("once memory"),q=l.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!g)for(g={};b=pc.exec(f);)g[b[1].toLowerCase()]=b[2];b=g[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return d&&d.abort(b),c(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,l.url=((a||l.url||mc)+"").replace(nc,"").replace(sc,lc[1]+"//"),l.type=b.method||b.type||l.method||l.type,l.dataTypes=_.trim(l.dataType||"*").toLowerCase().match(nb)||[""],null==l.crossDomain&&(i=tc.exec(l.url.toLowerCase()),l.crossDomain=!(!i||i[1]===lc[1]&&i[2]===lc[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(lc[3]||("http:"===lc[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=_.param(l.data,l.traditional)),K(uc,l,b,v),2===t)return v;j=l.global,j&&0===_.active++&&_.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!rc.test(l.type),e=l.url,l.hasContent||(l.data&&(e=l.url+=(kc.test(e)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=oc.test(e)?e.replace(oc,"$1_="+jc++):e+(kc.test(e)?"&":"?")+"_="+jc++)),l.ifModified&&(_.lastModified[e]&&v.setRequestHeader("If-Modified-Since",_.lastModified[e]),_.etag[e]&&v.setRequestHeader("If-None-Match",_.etag[e])),(l.data&&l.hasContent&&l.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",l.contentType),v.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+wc+"; q=0.01":""):l.accepts["*"]);for(k in l.headers)v.setRequestHeader(k,l.headers[k]);if(l.beforeSend&&(l.beforeSend.call(m,v,l)===!1||2===t))return v.abort();u="abort";for(k in{success:1,error:1,complete:1})v[k](l[k]);if(d=K(vc,l,b,v)){v.readyState=1,j&&n.trigger("ajaxSend",[v,l]),l.async&&l.timeout>0&&(h=setTimeout(function(){v.abort("timeout")},l.timeout));try{t=1,d.send(r,c)}catch(w){if(!(2>t))throw w;c(-1,w)}}else c(-1,"No Transport");return v},getJSON:function(a,b,c){return _.get(a,b,c,"json")},getScript:function(a,b){return _.get(a,void 0,b,"script")}}),_.each(["get","post"],function(a,b){_[b]=function(a,c,d,e){return _.isFunction(c)&&(e=e||d,d=c,c=void 0),_.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){_.fn[b]=function(a){return this.on(b,a)}}),_._evalUrl=function(a){return _.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},_.fn.extend({wrapAll:function(a){var b;return _.isFunction(a)?this.each(function(b){_(this).wrapAll(a.call(this,b))}):(this[0]&&(b=_(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return this.each(_.isFunction(a)?function(b){_(this).wrapInner(a.call(this,b))}:function(){var b=_(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=_.isFunction(a);return this.each(function(c){_(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){_.nodeName(this,"body")||_(this).replaceWith(this.childNodes)}).end()}}),_.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0},_.expr.filters.visible=function(a){return!_.expr.filters.hidden(a)};var yc=/%20/g,zc=/\[\]$/,Ac=/\r?\n/g,Bc=/^(?:submit|button|image|reset|file)$/i,Cc=/^(?:input|select|textarea|keygen)/i;_.param=function(a,b){var c,d=[],e=function(a,b){b=_.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=_.ajaxSettings&&_.ajaxSettings.traditional),_.isArray(a)||a.jquery&&!_.isPlainObject(a))_.each(a,function(){e(this.name,this.value) |
| + | });else for(c in a)O(c,a[c],b,e);return d.join("&").replace(yc,"+")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=_.prop(this,"elements");return a?_.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!_(this).is(":disabled")&&Cc.test(this.nodeName)&&!Bc.test(a)&&(this.checked||!yb.test(a))}).map(function(a,b){var c=_(this).val();return null==c?null:_.isArray(c)?_.map(c,function(a){return{name:b.name,value:a.replace(Ac,"\r\n")}}):{name:b.name,value:c.replace(Ac,"\r\n")}}).get()}}),_.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(a){}};var Dc=0,Ec={},Fc={0:200,1223:204},Gc=_.ajaxSettings.xhr();a.ActiveXObject&&_(a).on("unload",function(){for(var a in Ec)Ec[a]()}),Y.cors=!!Gc&&"withCredentials"in Gc,Y.ajax=Gc=!!Gc,_.ajaxTransport(function(a){var b;return Y.cors||Gc&&!a.crossDomain?{send:function(c,d){var e,f=a.xhr(),g=++Dc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c)f.setRequestHeader(e,c[e]);b=function(a){return function(){b&&(delete Ec[g],b=f.onload=f.onerror=null,"abort"===a?f.abort():"error"===a?d(f.status,f.statusText):d(Fc[f.status]||f.status,f.statusText,"string"==typeof f.responseText?{text:f.responseText}:void 0,f.getAllResponseHeaders()))}},f.onload=b(),f.onerror=b("error"),b=Ec[g]=b("abort");try{f.send(a.hasContent&&a.data||null)}catch(h){if(b)throw h}},abort:function(){b&&b()}}:void 0}),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return _.globalEval(a),a}}}),_.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),_.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(d,e){b=_("<script>").prop({async:!0,charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&e("error"===a.type?404:200,a.type)}),Z.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Hc=[],Ic=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Hc.pop()||_.expando+"_"+jc++;return this[a]=!0,a}}),_.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Ic.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ic.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=_.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Ic,"$1"+e):b.jsonp!==!1&&(b.url+=(kc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||_.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Hc.push(e)),g&&_.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),_.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||Z;var d=gb.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=_.buildFragment([a],b,e),e&&e.length&&_(e).remove(),_.merge([],d.childNodes))};var Jc=_.fn.load;_.fn.load=function(a,b,c){if("string"!=typeof a&&Jc)return Jc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=_.trim(a.slice(h)),a=a.slice(0,h)),_.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&_.ajax({url:a,type:e,dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?_("<div>").append(_.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,f||[a.responseText,b,a])}),this},_.expr.filters.animated=function(a){return _.grep(_.timers,function(b){return a===b.elem}).length};var Kc=a.document.documentElement;_.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=_.css(a,"position"),l=_(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=_.css(a,"top"),i=_.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),_.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},_.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){_.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,_.contains(b,d)?(typeof d.getBoundingClientRect!==zb&&(e=d.getBoundingClientRect()),c=P(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===_.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),_.nodeName(a[0],"html")||(d=a.offset()),d.top+=_.css(a[0],"borderTopWidth",!0),d.left+=_.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-_.css(c,"marginTop",!0),left:b.left-d.left-_.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||Kc;a&&!_.nodeName(a,"html")&&"static"===_.css(a,"position");)a=a.offsetParent;return a||Kc})}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(b,c){var d="pageYOffset"===c;_.fn[b]=function(e){return qb(this,function(b,e,f){var g=P(b);return void 0===f?g?g[c]:b[e]:void(g?g.scrollTo(d?a.pageXOffset:f,d?f:a.pageYOffset):b[e]=f)},b,e,arguments.length,null)}}),_.each(["top","left"],function(a,b){_.cssHooks[b]=w(Y.pixelPosition,function(a,c){return c?(c=v(a,b),Qb.test(c)?_(a).position()[b]+"px":c):void 0})}),_.each({Height:"height",Width:"width"},function(a,b){_.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){_.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return qb(this,function(b,c,d){var e;return _.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?_.css(b,c,g):_.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),_.fn.size=function(){return this.length},_.fn.andSelf=_.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return _});var Lc=a.jQuery,Mc=a.$;return _.noConflict=function(b){return a.$===_&&(a.$=Mc),b&&a.jQuery===_&&(a.jQuery=Lc),_},typeof b===zb&&(a.jQuery=a.$=_),_}); |
generators/foundation5/public/javascripts/vendor/modernizr.js
+7
-3
| @@ | @@ -1,4 +1,8 @@ |
| - | /* Modernizr 2.6.2 (Custom Build) | MIT & BSD |
| - | * Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-mq-cssclasses-teststyles-prefixes-ie8compat-load |
| + | /*! |
| + | * Modernizr v2.8.2 |
| + | * www.modernizr.com |
| + | * |
| + | * Copyright (c) Faruk Ates, Paul Irish, Alex Sexton |
| + | * Available under the BSD and MIT licenses: www.modernizr.com/license/ |
| */ | |
| - | ;window.Modernizr=function(a,b,c){function y(a){j.cssText=a}function z(a,b){return y(m.join(a+";")+(b||""))}function A(a,b){return typeof a===b}function B(a,b){return!!~(""+a).indexOf(b)}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:A(f,"function")?f.bind(d||b):f}return!1}var d="2.6.2",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k,l={}.toString,m=" -webkit- -moz- -o- -ms- ".split(" "),n={svg:"http://www.w3.org/2000/svg"},o={},p={},q={},r=[],s=r.slice,t,u=function(a,c,d,e){var f,i,j,k,l=b.createElement("div"),m=b.body,n=m||b.createElement("body");if(parseInt(d,10))while(d--)j=b.createElement("div"),j.id=e?e[d]:h+(d+1),l.appendChild(j);return f=["­",'<style id="s',h,'">',a,"</style>"].join(""),l.id=h,(m?l:n).innerHTML+=f,n.appendChild(l),m||(n.style.background="",n.style.overflow="hidden",k=g.style.overflow,g.style.overflow="hidden",g.appendChild(n)),i=c(l,a),m?l.parentNode.removeChild(l):(n.parentNode.removeChild(n),g.style.overflow=k),!!i},v=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return u("@media "+b+" { #"+h+" { position: absolute; } }",function(b){d=(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle)["position"]=="absolute"}),d},w={}.hasOwnProperty,x;!A(w,"undefined")&&!A(w.call,"undefined")?x=function(a,b){return w.call(a,b)}:x=function(a,b){return b in a&&A(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=s.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(s.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(s.call(arguments)))};return e}),o.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:u(["@media (",m.join("touch-enabled),("),h,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=a.offsetTop===9}),c},o.svg=function(){return!!b.createElementNS&&!!b.createElementNS(n.svg,"svg").createSVGRect},o.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==n.svg},o.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(l.call(b.createElementNS(n.svg,"clipPath")))};for(var D in o)x(o,D)&&(t=D.toLowerCase(),e[t]=o[D](),r.push((e[t]?"":"no-")+t));return e.addTest=function(a,b){if(typeof a=="object")for(var d in a)x(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},y(""),i=k=null,function(a,b){function k(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function l(){var a=r.elements;return typeof a=="string"?a.split(" "):a}function m(a){var b=i[a[g]];return b||(b={},h++,a[g]=h,i[h]=b),b}function n(a,c,f){c||(c=b);if(j)return c.createElement(a);f||(f=m(c));var g;return f.cache[a]?g=f.cache[a].cloneNode():e.test(a)?g=(f.cache[a]=f.createElem(a)).cloneNode():g=f.createElem(a),g.canHaveChildren&&!d.test(a)?f.frag.appendChild(g):g}function o(a,c){a||(a=b);if(j)return a.createDocumentFragment();c=c||m(a);var d=c.frag.cloneNode(),e=0,f=l(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function p(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?n(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function q(a){a||(a=b);var c=m(a);return r.shivCSS&&!f&&!c.hasCSS&&(c.hasCSS=!!k(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),j||p(a,c),a}var c=a.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,e=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f,g="_html5shiv",h=0,i={},j;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",f="hidden"in a,j=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){f=!0,j=!0}})();var r={elements:c.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:c.shivCSS!==!1,supportsUnknownElements:j,shivMethods:c.shivMethods!==!1,type:"default",shivDocument:q,createElement:n,createDocumentFragment:o};a.html5=r,q(b)}(this,b),e._version=d,e._prefixes=m,e.mq=v,e.testStyles=u,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+r.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},Modernizr.addTest("ie8compat",function(){return!window.addEventListener&&document.documentMode&&document.documentMode===7}); |
| + | window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){return d(x.join(a+";")+(b||""))}function f(a,b){return typeof a===b}function g(a,b){return!!~(""+a).indexOf(b)}function h(a,b){for(var d in a){var e=a[d];if(!g(e,"-")&&t[e]!==c)return"pfx"==b?e:!0}return!1}function i(a,b,d){for(var e in a){var g=b[a[e]];if(g!==c)return d===!1?a[e]:f(g,"function")?g.bind(d||b):g}return!1}function j(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+z.join(d+" ")+d).split(" ");return f(b,"string")||f(b,"undefined")?h(e,b):(e=(a+" "+A.join(d+" ")+d).split(" "),i(e,b,c))}function k(){o.input=function(c){for(var d=0,e=c.length;e>d;d++)E[c[d]]=!!(c[d]in u);return E.list&&(E.list=!(!b.createElement("datalist")||!a.HTMLDataListElement)),E}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),o.inputtypes=function(a){for(var d,e,f,g=0,h=a.length;h>g;g++)u.setAttribute("type",e=a[g]),d="text"!==u.type,d&&(u.value=v,u.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&u.style.WebkitAppearance!==c?(q.appendChild(u),f=b.defaultView,d=f.getComputedStyle&&"textfield"!==f.getComputedStyle(u,null).WebkitAppearance&&0!==u.offsetHeight,q.removeChild(u)):/^(search|tel)$/.test(e)||(d=/^(url|email)$/.test(e)?u.checkValidity&&u.checkValidity()===!1:u.value!=v)),D[a[g]]=!!d;return D}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var l,m,n="2.8.2",o={},p=!0,q=b.documentElement,r="modernizr",s=b.createElement(r),t=s.style,u=b.createElement("input"),v=":)",w={}.toString,x=" -webkit- -moz- -o- -ms- ".split(" "),y="Webkit Moz O ms",z=y.split(" "),A=y.toLowerCase().split(" "),B={svg:"http://www.w3.org/2000/svg"},C={},D={},E={},F=[],G=F.slice,H=function(a,c,d,e){var f,g,h,i,j=b.createElement("div"),k=b.body,l=k||b.createElement("body");if(parseInt(d,10))for(;d--;)h=b.createElement("div"),h.id=e?e[d]:r+(d+1),j.appendChild(h);return f=["­",'<style id="s',r,'">',a,"</style>"].join(""),j.id=r,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background="",l.style.overflow="hidden",i=q.style.overflow,q.style.overflow="hidden",q.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),q.style.overflow=i),!!g},I=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b)&&c(b).matches||!1;var d;return H("@media "+b+" { #"+r+" { position: absolute; } }",function(b){d="absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position}),d},J=function(){function a(a,e){e=e||b.createElement(d[a]||"div"),a="on"+a;var g=a in e;return g||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(a,""),g=f(e[a],"function"),f(e[a],"undefined")||(e[a]=c),e.removeAttribute(a))),e=null,g}var d={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return a}(),K={}.hasOwnProperty;m=f(K,"undefined")||f(K.call,"undefined")?function(a,b){return b in a&&f(a.constructor.prototype[b],"undefined")}:function(a,b){return K.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=G.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(G.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(G.call(arguments)))};return d}),C.flexbox=function(){return j("flexWrap")},C.flexboxlegacy=function(){return j("boxDirection")},C.canvas=function(){var a=b.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))},C.canvastext=function(){return!(!o.canvas||!f(b.createElement("canvas").getContext("2d").fillText,"function"))},C.webgl=function(){return!!a.WebGLRenderingContext},C.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:H(["@media (",x.join("touch-enabled),("),r,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=9===a.offsetTop}),c},C.geolocation=function(){return"geolocation"in navigator},C.postmessage=function(){return!!a.postMessage},C.websqldatabase=function(){return!!a.openDatabase},C.indexedDB=function(){return!!j("indexedDB",a)},C.hashchange=function(){return J("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},C.history=function(){return!(!a.history||!history.pushState)},C.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},C.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},C.rgba=function(){return d("background-color:rgba(150,255,150,.5)"),g(t.backgroundColor,"rgba")},C.hsla=function(){return d("background-color:hsla(120,40%,100%,.5)"),g(t.backgroundColor,"rgba")||g(t.backgroundColor,"hsla")},C.multiplebgs=function(){return d("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(t.background)},C.backgroundsize=function(){return j("backgroundSize")},C.borderimage=function(){return j("borderImage")},C.borderradius=function(){return j("borderRadius")},C.boxshadow=function(){return j("boxShadow")},C.textshadow=function(){return""===b.createElement("div").style.textShadow},C.opacity=function(){return e("opacity:.55"),/^0.55$/.test(t.opacity)},C.cssanimations=function(){return j("animationName")},C.csscolumns=function(){return j("columnCount")},C.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return d((a+"-webkit- ".split(" ").join(b+a)+x.join(c+a)).slice(0,-a.length)),g(t.backgroundImage,"gradient")},C.cssreflections=function(){return j("boxReflect")},C.csstransforms=function(){return!!j("transform")},C.csstransforms3d=function(){var a=!!j("perspective");return a&&"webkitPerspective"in q.style&&H("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b){a=9===b.offsetLeft&&3===b.offsetHeight}),a},C.csstransitions=function(){return j("transition")},C.fontface=function(){var a;return H('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&0===g.indexOf(d.split(" ")[0])}),a},C.generatedcontent=function(){var a;return H(["#",r,"{font:0/0 a}#",r,':after{content:"',v,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},C.video=function(){var a=b.createElement("video"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(d){}return c},C.audio=function(){var a=b.createElement("audio"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(d){}return c},C.localstorage=function(){try{return localStorage.setItem(r,r),localStorage.removeItem(r),!0}catch(a){return!1}},C.sessionstorage=function(){try{return sessionStorage.setItem(r,r),sessionStorage.removeItem(r),!0}catch(a){return!1}},C.webworkers=function(){return!!a.Worker},C.applicationcache=function(){return!!a.applicationCache},C.svg=function(){return!!b.createElementNS&&!!b.createElementNS(B.svg,"svg").createSVGRect},C.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="<svg/>",(a.firstChild&&a.firstChild.namespaceURI)==B.svg},C.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(w.call(b.createElementNS(B.svg,"animate")))},C.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(w.call(b.createElementNS(B.svg,"clipPath")))};for(var L in C)m(C,L)&&(l=L.toLowerCase(),o[l]=C[L](),F.push((o[l]?"":"no-")+l));return o.input||k(),o.addTest=function(a,b){if("object"==typeof a)for(var d in a)m(a,d)&&o.addTest(d,a[d]);else{if(a=a.toLowerCase(),o[a]!==c)return o;b="function"==typeof b?b():b,"undefined"!=typeof p&&p&&(q.className+=" "+(b?"":"no-")+a),o[a]=b}return o},d(""),s=u=null,function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=s.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=r[a[p]];return b||(b={},q++,a[p]=q,r[q]=b),b}function f(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():o.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),!f.canHaveChildren||n.test(a)||f.tagUrn?f:d.frag.appendChild(f)}function g(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function i(a){a||(a=b);var d=e(a);return!s.shivCSS||j||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),k||h(a,d),a}var j,k,l="3.7.0",m=a.html5||{},n=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,o=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,p="_html5shiv",q=0,r={};!function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",j="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){j=!0,k=!0}}();var s={elements:m.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:l,shivCSS:m.shivCSS!==!1,supportsUnknownElements:k,shivMethods:m.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=s,i(b)}(this,b),o._version=n,o._prefixes=x,o._domPrefixes=A,o._cssomPrefixes=z,o.mq=I,o.hasEvent=J,o.testProp=function(a){return h([a])},o.testAllProps=j,o.testStyles=H,o.prefixed=function(a,b,c){return b?j(a,b,c):j(a,"pfx")},q.className=q.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(p?" js "+F.join(" "):""),o}(this,this.document); |
generators/foundation5/public/javascripts/vendor/placeholder.js
+2
-426
| @@ | @@ -1,426 +1,2 @@ |
| - | /* |
| - | * The MIT License |
| - | * |
| - | * Copyright (c) 2012 James Allardice |
| - | * |
| - | * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), |
| - | * to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, |
| - | * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
| - | * |
| - | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
| - | * |
| - | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| - | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| - | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| - | * THE SOFTWARE. |
| - | */ |
| - | |
| - | // Defines the global Placeholders object along with various utility methods |
| - | (function (global) { |
| - | |
| - | "use strict"; |
| - | |
| - | // Cross-browser DOM event binding |
| - | function addEventListener(elem, event, fn) { |
| - | if (elem.addEventListener) { |
| - | return elem.addEventListener(event, fn, false); |
| - | } |
| - | if (elem.attachEvent) { |
| - | return elem.attachEvent("on" + event, fn); |
| - | } |
| - | } |
| - | |
| - | // Check whether an item is in an array (we don't use Array.prototype.indexOf so we don't clobber any existing polyfills - this is a really simple alternative) |
| - | function inArray(arr, item) { |
| - | var i, len; |
| - | for (i = 0, len = arr.length; i < len; i++) { |
| - | if (arr[i] === item) { |
| - | return true; |
| - | } |
| - | } |
| - | return false; |
| - | } |
| - | |
| - | // Move the caret to the index position specified. Assumes that the element has focus |
| - | function moveCaret(elem, index) { |
| - | var range; |
| - | if (elem.createTextRange) { |
| - | range = elem.createTextRange(); |
| - | range.move("character", index); |
| - | range.select(); |
| - | } else if (elem.selectionStart) { |
| - | elem.focus(); |
| - | elem.setSelectionRange(index, index); |
| - | } |
| - | } |
| - | |
| - | // Attempt to change the type property of an input element |
| - | function changeType(elem, type) { |
| - | try { |
| - | elem.type = type; |
| - | return true; |
| - | } catch (e) { |
| - | // You can't change input type in IE8 and below |
| - | return false; |
| - | } |
| - | } |
| - | |
| - | // Expose public methods |
| - | global.Placeholders = { |
| - | Utils: { |
| - | addEventListener: addEventListener, |
| - | inArray: inArray, |
| - | moveCaret: moveCaret, |
| - | changeType: changeType |
| - | } |
| - | }; |
| - | |
| - | }(this)); |
| - | |
| - | (function (global) { |
| - | |
| - | "use strict"; |
| - | |
| - | var validTypes = [ |
| - | "text", |
| - | "search", |
| - | "url", |
| - | "tel", |
| - | "email", |
| - | "password", |
| - | "number", |
| - | "textarea" |
| - | ], |
| - | |
| - | // The list of keycodes that are not allowed when the polyfill is configured to hide-on-input |
| - | badKeys = [ |
| - | |
| - | // The following keys all cause the caret to jump to the end of the input value |
| - | 27, // Escape |
| - | 33, // Page up |
| - | 34, // Page down |
| - | 35, // End |
| - | 36, // Home |
| - | |
| - | // Arrow keys allow you to move the caret manually, which should be prevented when the placeholder is visible |
| - | 37, // Left |
| - | 38, // Up |
| - | 39, // Right |
| - | 40, // Down |
| - | |
| - | // The following keys allow you to modify the placeholder text by removing characters, which should be prevented when the placeholder is visible |
| - | 8, // Backspace |
| - | 46 // Delete |
| - | ], |
| - | |
| - | // Styling variables |
| - | placeholderStyleColor = "#ccc", |
| - | placeholderClassName = "placeholdersjs", |
| - | classNameRegExp = new RegExp("(?:^|\\s)" + placeholderClassName + "(?!\\S)"), |
| - | |
| - | // These will hold references to all elements that can be affected. NodeList objects are live, so we only need to get those references once |
| - | inputs, textareas, |
| - | |
| - | // The various data-* attributes used by the polyfill |
| - | ATTR_CURRENT_VAL = "data-placeholder-value", |
| - | ATTR_ACTIVE = "data-placeholder-active", |
| - | ATTR_INPUT_TYPE = "data-placeholder-type", |
| - | ATTR_FORM_HANDLED = "data-placeholder-submit", |
| - | ATTR_EVENTS_BOUND = "data-placeholder-bound", |
| - | ATTR_OPTION_FOCUS = "data-placeholder-focus", |
| - | ATTR_OPTION_LIVE = "data-placeholder-live", |
| - | |
| - | // Various other variables used throughout the rest of the script |
| - | test = document.createElement("input"), |
| - | head = document.getElementsByTagName("head")[0], |
| - | root = document.documentElement, |
| - | Placeholders = global.Placeholders, |
| - | Utils = Placeholders.Utils, |
| - | hideOnInput, liveUpdates, keydownVal, styleElem, styleRules, placeholder, timer, form, elem, len, i; |
| - | |
| - | // No-op (used in place of public methods when native support is detected) |
| - | function noop() {} |
| - | |
| - | // Hide the placeholder value on a single element. Returns true if the placeholder was hidden and false if it was not (because it wasn't visible in the first place) |
| - | function hidePlaceholder(elem) { |
| - | var type; |
| - | if (elem.value === elem.getAttribute(ATTR_CURRENT_VAL) && elem.getAttribute(ATTR_ACTIVE) === "true") { |
| - | elem.setAttribute(ATTR_ACTIVE, "false"); |
| - | elem.value = ""; |
| - | elem.className = elem.className.replace(classNameRegExp, ""); |
| - | |
| - | // If the polyfill has changed the type of the element we need to change it back |
| - | type = elem.getAttribute(ATTR_INPUT_TYPE); |
| - | if (type) { |
| - | elem.type = type; |
| - | } |
| - | return true; |
| - | } |
| - | return false; |
| - | } |
| - | |
| - | // Show the placeholder value on a single element. Returns true if the placeholder was shown and false if it was not (because it was already visible) |
| - | function showPlaceholder(elem) { |
| - | var type, |
| - | val = elem.getAttribute(ATTR_CURRENT_VAL); |
| - | if (elem.value === "" && val) { |
| - | elem.setAttribute(ATTR_ACTIVE, "true"); |
| - | elem.value = val; |
| - | elem.className += " " + placeholderClassName; |
| - | |
| - | // If the type of element needs to change, change it (e.g. password inputs) |
| - | type = elem.getAttribute(ATTR_INPUT_TYPE); |
| - | if (type) { |
| - | elem.type = "text"; |
| - | } else if (elem.type === "password") { |
| - | if (Utils.changeType(elem, "text")) { |
| - | elem.setAttribute(ATTR_INPUT_TYPE, "password"); |
| - | } |
| - | } |
| - | return true; |
| - | } |
| - | return false; |
| - | } |
| - | |
| - | function handleElem(node, callback) { |
| - | |
| - | var handleInputs, handleTextareas, elem, len, i; |
| - | |
| - | // Check if the passed in node is an input/textarea (in which case it can't have any affected descendants) |
| - | if (node && node.getAttribute(ATTR_CURRENT_VAL)) { |
| - | callback(node); |
| - | } else { |
| - | |
| - | // If an element was passed in, get all affected descendants. Otherwise, get all affected elements in document |
| - | handleInputs = node ? node.getElementsByTagName("input") : inputs; |
| - | handleTextareas = node ? node.getElementsByTagName("textarea") : textareas; |
| - | |
| - | // Run the callback for each element |
| - | for (i = 0, len = handleInputs.length + handleTextareas.length; i < len; i++) { |
| - | elem = i < handleInputs.length ? handleInputs[i] : handleTextareas[i - handleInputs.length]; |
| - | callback(elem); |
| - | } |
| - | } |
| - | } |
| - | |
| - | // Return all affected elements to their normal state (remove placeholder value if present) |
| - | function disablePlaceholders(node) { |
| - | handleElem(node, hidePlaceholder); |
| - | } |
| - | |
| - | // Show the placeholder value on all appropriate elements |
| - | function enablePlaceholders(node) { |
| - | handleElem(node, showPlaceholder); |
| - | } |
| - | |
| - | // Returns a function that is used as a focus event handler |
| - | function makeFocusHandler(elem) { |
| - | return function () { |
| - | |
| - | // Only hide the placeholder value if the (default) hide-on-focus behaviour is enabled |
| - | if (hideOnInput && elem.value === elem.getAttribute(ATTR_CURRENT_VAL) && elem.getAttribute(ATTR_ACTIVE) === "true") { |
| - | |
| - | // Move the caret to the start of the input (this mimics the behaviour of all browsers that do not hide the placeholder on focus) |
| - | Utils.moveCaret(elem, 0); |
| - | |
| - | } else { |
| - | |
| - | // Remove the placeholder |
| - | hidePlaceholder(elem); |
| - | } |
| - | }; |
| - | } |
| - | |
| - | // Returns a function that is used as a blur event handler |
| - | function makeBlurHandler(elem) { |
| - | return function () { |
| - | showPlaceholder(elem); |
| - | }; |
| - | } |
| - | |
| - | // Functions that are used as a event handlers when the hide-on-input behaviour has been activated - very basic implementation of the "input" event |
| - | function makeKeydownHandler(elem) { |
| - | return function (e) { |
| - | keydownVal = elem.value; |
| - | |
| - | //Prevent the use of the arrow keys (try to keep the cursor before the placeholder) |
| - | if (elem.getAttribute(ATTR_ACTIVE) === "true") { |
| - | if (keydownVal === elem.getAttribute(ATTR_CURRENT_VAL) && Utils.inArray(badKeys, e.keyCode)) { |
| - | if (e.preventDefault) { |
| - | e.preventDefault(); |
| - | } |
| - | return false; |
| - | } |
| - | } |
| - | }; |
| - | } |
| - | function makeKeyupHandler(elem) { |
| - | return function () { |
| - | var type; |
| - | |
| - | if (elem.getAttribute(ATTR_ACTIVE) === "true" && elem.value !== keydownVal) { |
| - | |
| - | // Remove the placeholder |
| - | elem.className = elem.className.replace(classNameRegExp, ""); |
| - | elem.value = elem.value.replace(elem.getAttribute(ATTR_CURRENT_VAL), ""); |
| - | elem.setAttribute(ATTR_ACTIVE, false); |
| - | |
| - | // If the type of element needs to change, change it (e.g. password inputs) |
| - | type = elem.getAttribute(ATTR_INPUT_TYPE); |
| - | if (type) { |
| - | elem.type = type; |
| - | } |
| - | } |
| - | |
| - | // If the element is now empty we need to show the placeholder |
| - | if (elem.value === "") { |
| - | elem.blur(); |
| - | Utils.moveCaret(elem, 0); |
| - | } |
| - | }; |
| - | } |
| - | function makeClickHandler(elem) { |
| - | return function () { |
| - | if (elem === document.activeElement && elem.value === elem.getAttribute(ATTR_CURRENT_VAL) && elem.getAttribute(ATTR_ACTIVE) === "true") { |
| - | Utils.moveCaret(elem, 0); |
| - | } |
| - | }; |
| - | } |
| - | |
| - | // Returns a function that is used as a submit event handler on form elements that have children affected by this polyfill |
| - | function makeSubmitHandler(form) { |
| - | return function () { |
| - | |
| - | // Turn off placeholders on all appropriate descendant elements |
| - | disablePlaceholders(form); |
| - | }; |
| - | } |
| - | |
| - | // Bind event handlers to an element that we need to affect with the polyfill |
| - | function newElement(elem) { |
| - | |
| - | // If the element is part of a form, make sure the placeholder string is not submitted as a value |
| - | if (elem.form) { |
| - | form = elem.form; |
| - | |
| - | // Set a flag on the form so we know it's been handled (forms can contain multiple inputs) |
| - | if (!form.getAttribute(ATTR_FORM_HANDLED)) { |
| - | Utils.addEventListener(form, "submit", makeSubmitHandler(form)); |
| - | form.setAttribute(ATTR_FORM_HANDLED, "true"); |
| - | } |
| - | } |
| - | |
| - | // Bind event handlers to the element so we can hide/show the placeholder as appropriate |
| - | Utils.addEventListener(elem, "focus", makeFocusHandler(elem)); |
| - | Utils.addEventListener(elem, "blur", makeBlurHandler(elem)); |
| - | |
| - | // If the placeholder should hide on input rather than on focus we need additional event handlers |
| - | if (hideOnInput) { |
| - | Utils.addEventListener(elem, "keydown", makeKeydownHandler(elem)); |
| - | Utils.addEventListener(elem, "keyup", makeKeyupHandler(elem)); |
| - | Utils.addEventListener(elem, "click", makeClickHandler(elem)); |
| - | } |
| - | |
| - | // Remember that we've bound event handlers to this element |
| - | elem.setAttribute(ATTR_EVENTS_BOUND, "true"); |
| - | elem.setAttribute(ATTR_CURRENT_VAL, placeholder); |
| - | |
| - | // If the element doesn't have a value, set it to the placeholder string |
| - | showPlaceholder(elem); |
| - | } |
| - | |
| - | Placeholders.nativeSupport = test.placeholder !== void 0; |
| - | |
| - | if (!Placeholders.nativeSupport) { |
| - | |
| - | // Get references to all the input and textarea elements currently in the DOM (live NodeList objects to we only need to do this once) |
| - | inputs = document.getElementsByTagName("input"); |
| - | textareas = document.getElementsByTagName("textarea"); |
| - | |
| - | // Get any settings declared as data-* attributes on the root element (currently the only options are whether to hide the placeholder on focus or input and whether to auto-update) |
| - | hideOnInput = root.getAttribute(ATTR_OPTION_FOCUS) === "false"; |
| - | liveUpdates = root.getAttribute(ATTR_OPTION_LIVE) !== "false"; |
| - | |
| - | // Create style element for placeholder styles (instead of directly setting style properties on elements - allows for better flexibility alongside user-defined styles) |
| - | styleElem = document.createElement("style"); |
| - | styleElem.type = "text/css"; |
| - | |
| - | // Create style rules as text node |
| - | styleRules = document.createTextNode("." + placeholderClassName + " { color:" + placeholderStyleColor + "; }"); |
| - | |
| - | // Append style rules to newly created stylesheet |
| - | if (styleElem.styleSheet) { |
| - | styleElem.styleSheet.cssText = styleRules.nodeValue; |
| - | } else { |
| - | styleElem.appendChild(styleRules); |
| - | } |
| - | |
| - | // Prepend new style element to the head (before any existing stylesheets, so user-defined rules take precedence) |
| - | head.insertBefore(styleElem, head.firstChild); |
| - | |
| - | // Set up the placeholders |
| - | for (i = 0, len = inputs.length + textareas.length; i < len; i++) { |
| - | elem = i < inputs.length ? inputs[i] : textareas[i - inputs.length]; |
| - | |
| - | // Get the value of the placeholder attribute, if any. IE10 emulating IE7 fails with getAttribute, hence the use of the attributes node |
| - | placeholder = elem.attributes.placeholder; |
| - | if (placeholder) { |
| - | |
| - | // IE returns an empty object instead of undefined if the attribute is not present |
| - | placeholder = placeholder.nodeValue; |
| - | |
| - | // Only apply the polyfill if this element is of a type that supports placeholders, and has a placeholder attribute with a non-empty value |
| - | if (placeholder && Utils.inArray(validTypes, elem.type)) { |
| - | newElement(elem); |
| - | } |
| - | } |
| - | } |
| - | |
| - | // If enabled, the polyfill will repeatedly check for changed/added elements and apply to those as well |
| - | timer = setInterval(function () { |
| - | for (i = 0, len = inputs.length + textareas.length; i < len; i++) { |
| - | elem = i < inputs.length ? inputs[i] : textareas[i - inputs.length]; |
| - | |
| - | // Only apply the polyfill if this element is of a type that supports placeholders, and has a placeholder attribute with a non-empty value |
| - | placeholder = elem.attributes.placeholder; |
| - | if (placeholder) { |
| - | placeholder = placeholder.nodeValue; |
| - | if (placeholder && Utils.inArray(validTypes, elem.type)) { |
| - | |
| - | // If the element hasn't had event handlers bound to it then add them |
| - | if (!elem.getAttribute(ATTR_EVENTS_BOUND)) { |
| - | newElement(elem); |
| - | } |
| - | |
| - | // If the placeholder value has changed or not been initialised yet we need to update the display |
| - | if (placeholder !== elem.getAttribute(ATTR_CURRENT_VAL) || (elem.type === "password" && !elem.getAttribute(ATTR_INPUT_TYPE))) { |
| - | |
| - | // Attempt to change the type of password inputs (fails in IE < 9) |
| - | if (elem.type === "password" && !elem.getAttribute(ATTR_INPUT_TYPE) && Utils.changeType(elem, "text")) { |
| - | elem.setAttribute(ATTR_INPUT_TYPE, "password"); |
| - | } |
| - | |
| - | // If the placeholder value has changed and the placeholder is currently on display we need to change it |
| - | if (elem.value === elem.getAttribute(ATTR_CURRENT_VAL)) { |
| - | elem.value = placeholder; |
| - | } |
| - | |
| - | // Keep a reference to the current placeholder value in case it changes via another script |
| - | elem.setAttribute(ATTR_CURRENT_VAL, placeholder); |
| - | } |
| - | } |
| - | } |
| - | } |
| - | |
| - | // If live updates are not enabled cancel the timer |
| - | if (!liveUpdates) { |
| - | clearInterval(timer); |
| - | } |
| - | }, 100); |
| - | } |
| - | |
| - | // Expose public methods |
| - | Placeholders.disable = Placeholders.nativeSupport ? noop : disablePlaceholders; |
| - | Placeholders.enable = Placeholders.nativeSupport ? noop : enablePlaceholders; |
| - | |
| - | }(this)); |
| + | /*! http://mths.be/placeholder v2.0.8 by @mathias */ |
| + | !function(a,b,c){function d(a){var b={},d=/^jQuery\d+$/;return c.each(a.attributes,function(a,c){c.specified&&!d.test(c.name)&&(b[c.name]=c.value)}),b}function e(a,b){var d=this,e=c(d);if(d.value==e.attr("placeholder")&&e.hasClass("placeholder"))if(e.data("placeholder-password")){if(e=e.hide().next().show().attr("id",e.removeAttr("id").data("placeholder-id")),a===!0)return e[0].value=b;e.focus()}else d.value="",e.removeClass("placeholder"),d==g()&&d.select()}function f(){var a,b=this,f=c(b),g=this.id;if(""==b.value){if("password"==b.type){if(!f.data("placeholder-textinput")){try{a=f.clone().attr({type:"text"})}catch(h){a=c("<input>").attr(c.extend(d(this),{type:"text"}))}a.removeAttr("name").data({"placeholder-password":f,"placeholder-id":g}).bind("focus.placeholder",e),f.data({"placeholder-textinput":a,"placeholder-id":g}).before(a)}f=f.removeAttr("id").hide().prev().attr("id",g).show()}f.addClass("placeholder"),f[0].value=f.attr("placeholder")}else f.removeClass("placeholder")}function g(){try{return b.activeElement}catch(a){}}var h,i,j="[object OperaMini]"==Object.prototype.toString.call(a.operamini),k="placeholder"in b.createElement("input")&&!j,l="placeholder"in b.createElement("textarea")&&!j,m=c.fn,n=c.valHooks,o=c.propHooks;k&&l?(i=m.placeholder=function(){return this},i.input=i.textarea=!0):(i=m.placeholder=function(){var a=this;return a.filter((k?"textarea":":input")+"[placeholder]").not(".placeholder").bind({"focus.placeholder":e,"blur.placeholder":f}).data("placeholder-enabled",!0).trigger("blur.placeholder"),a},i.input=k,i.textarea=l,h={get:function(a){var b=c(a),d=b.data("placeholder-password");return d?d[0].value:b.data("placeholder-enabled")&&b.hasClass("placeholder")?"":a.value},set:function(a,b){var d=c(a),h=d.data("placeholder-password");return h?h[0].value=b:d.data("placeholder-enabled")?(""==b?(a.value=b,a!=g()&&f.call(a)):d.hasClass("placeholder")?e.call(a,!0,b)||(a.value=b):a.value=b,d):a.value=b}},k||(n.input=h,o.value=h),l||(n.textarea=h,o.value=h),c(function(){c(b).delegate("form","submit.placeholder",function(){var a=c(".placeholder",this).each(e);setTimeout(function(){a.each(f)},10)})}),c(a).bind("beforeunload.placeholder",function(){c(".placeholder").each(function(){this.value=""})}))}(this,document,jQuery); |
generators/foundation5/public/stylesheets/app.css
+0
-5128
| @@ | @@ -1,5128 +0,0 @@ |
| - | @charset "UTF-8"; |
| - | meta.foundation-mq-small { |
| - | font-family: "/only screen and (max-width: 40em)/"; |
| - | width: 0em; } |
| - | |
| - | meta.foundation-mq-medium { |
| - | font-family: "/only screen and (min-width:40.063em)/"; |
| - | width: 40.063em; } |
| - | |
| - | meta.foundation-mq-large { |
| - | font-family: "/only screen and (min-width:64.063em)/"; |
| - | width: 64.063em; } |
| - | |
| - | meta.foundation-mq-xlarge { |
| - | font-family: "/only screen and (min-width:90.063em)/"; |
| - | width: 90.063em; } |
| - | |
| - | meta.foundation-mq-xxlarge { |
| - | font-family: "/only screen and (min-width:120.063em)/"; |
| - | width: 120.063em; } |
| - | |
| - | *, |
| - | *:before, |
| - | *:after { |
| - | -moz-box-sizing: border-box; |
| - | -webkit-box-sizing: border-box; |
| - | box-sizing: border-box; } |
| - | |
| - | html, |
| - | body { |
| - | font-size: 100%; } |
| - | |
| - | body { |
| - | background: white; |
| - | color: #222222; |
| - | padding: 0; |
| - | margin: 0; |
| - | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| - | font-weight: normal; |
| - | font-style: normal; |
| - | line-height: 1; |
| - | position: relative; |
| - | cursor: default; } |
| - | |
| - | a:hover { |
| - | cursor: pointer; } |
| - | |
| - | img, |
| - | object, |
| - | embed { |
| - | max-width: 100%; |
| - | height: auto; } |
| - | |
| - | object, |
| - | embed { |
| - | height: 100%; } |
| - | |
| - | img { |
| - | -ms-interpolation-mode: bicubic; } |
| - | |
| - | #map_canvas img, |
| - | #map_canvas embed, |
| - | #map_canvas object, |
| - | .map_canvas img, |
| - | .map_canvas embed, |
| - | .map_canvas object { |
| - | max-width: none !important; } |
| - | |
| - | .left { |
| - | float: left !important; } |
| - | |
| - | .right { |
| - | float: right !important; } |
| - | |
| - | .clearfix { |
| - | *zoom: 1; } |
| - | .clearfix:before, .clearfix:after { |
| - | content: " "; |
| - | display: table; } |
| - | .clearfix:after { |
| - | clear: both; } |
| - | |
| - | .text-left { |
| - | text-align: left !important; } |
| - | |
| - | .text-right { |
| - | text-align: right !important; } |
| - | |
| - | .text-center { |
| - | text-align: center !important; } |
| - | |
| - | .text-justify { |
| - | text-align: justify !important; } |
| - | |
| - | .hide { |
| - | display: none; } |
| - | |
| - | .start { |
| - | float: left !important; } |
| - | |
| - | .end { |
| - | float: right !important; } |
| - | |
| - | .text-start { |
| - | text-align: left !important; } |
| - | |
| - | .text-end { |
| - | text-align: right !important; } |
| - | |
| - | .antialiased { |
| - | -webkit-font-smoothing: antialiased; |
| - | -moz-osx-font-smoothing: grayscale; } |
| - | |
| - | img { |
| - | display: inline-block; |
| - | vertical-align: middle; } |
| - | |
| - | textarea { |
| - | height: auto; |
| - | min-height: 50px; } |
| - | |
| - | select { |
| - | width: 100%; } |
| - | |
| - | .row { |
| - | width: 100%; |
| - | margin-left: auto; |
| - | margin-right: auto; |
| - | margin-top: 0; |
| - | margin-bottom: 0; |
| - | max-width: 62.5rem; |
| - | *zoom: 1; } |
| - | .row:before, .row:after { |
| - | content: " "; |
| - | display: table; } |
| - | .row:after { |
| - | clear: both; } |
| - | .row.collapse > .column, |
| - | .row.collapse > .columns { |
| - | position: relative; |
| - | padding-left: 0; |
| - | padding-right: 0; |
| - | float: left; } |
| - | .row.collapse .row { |
| - | margin-left: 0; |
| - | margin-right: 0; } |
| - | .row .row { |
| - | width: auto; |
| - | margin-left: -0.9375rem; |
| - | margin-right: -0.9375rem; |
| - | margin-top: 0; |
| - | margin-bottom: 0; |
| - | max-width: none; |
| - | *zoom: 1; } |
| - | .row .row:before, .row .row:after { |
| - | content: " "; |
| - | display: table; } |
| - | .row .row:after { |
| - | clear: both; } |
| - | .row .row.collapse { |
| - | width: auto; |
| - | margin: 0; |
| - | max-width: none; |
| - | *zoom: 1; } |
| - | .row .row.collapse:before, .row .row.collapse:after { |
| - | content: " "; |
| - | display: table; } |
| - | .row .row.collapse:after { |
| - | clear: both; } |
| - | |
| - | .column, |
| - | .columns { |
| - | position: relative; |
| - | padding-left: 0.9375rem; |
| - | padding-right: 0.9375rem; |
| - | width: 100%; |
| - | float: left; } |
| - | |
| - | @media only screen { |
| - | .column.small-centered, |
| - | .columns.small-centered { |
| - | position: relative; |
| - | margin-left: auto; |
| - | margin-right: auto; |
| - | float: none; } |
| - | |
| - | .column.small-uncentered, |
| - | .columns.small-uncentered { |
| - | margin-left: 0; |
| - | margin-right: 0; |
| - | float: left; } |
| - | |
| - | .column.small-uncentered.opposite, |
| - | .columns.small-uncentered.opposite { |
| - | float: right; } |
| - | |
| - | .small-push-1 { |
| - | position: relative; |
| - | left: 8.33333%; |
| - | right: auto; } |
| - | |
| - | .small-pull-1 { |
| - | position: relative; |
| - | right: 8.33333%; |
| - | left: auto; } |
| - | |
| - | .small-push-2 { |
| - | position: relative; |
| - | left: 16.66667%; |
| - | right: auto; } |
| - | |
| - | .small-pull-2 { |
| - | position: relative; |
| - | right: 16.66667%; |
| - | left: auto; } |
| - | |
| - | .small-push-3 { |
| - | position: relative; |
| - | left: 25%; |
| - | right: auto; } |
| - | |
| - | .small-pull-3 { |
| - | position: relative; |
| - | right: 25%; |
| - | left: auto; } |
| - | |
| - | .small-push-4 { |
| - | position: relative; |
| - | left: 33.33333%; |
| - | right: auto; } |
| - | |
| - | .small-pull-4 { |
| - | position: relative; |
| - | right: 33.33333%; |
| - | left: auto; } |
| - | |
| - | .small-push-5 { |
| - | position: relative; |
| - | left: 41.66667%; |
| - | right: auto; } |
| - | |
| - | .small-pull-5 { |
| - | position: relative; |
| - | right: 41.66667%; |
| - | left: auto; } |
| - | |
| - | .small-push-6 { |
| - | position: relative; |
| - | left: 50%; |
| - | right: auto; } |
| - | |
| - | .small-pull-6 { |
| - | position: relative; |
| - | right: 50%; |
| - | left: auto; } |
| - | |
| - | .small-push-7 { |
| - | position: relative; |
| - | left: 58.33333%; |
| - | right: auto; } |
| - | |
| - | .small-pull-7 { |
| - | position: relative; |
| - | right: 58.33333%; |
| - | left: auto; } |
| - | |
| - | .small-push-8 { |
| - | position: relative; |
| - | left: 66.66667%; |
| - | right: auto; } |
| - | |
| - | .small-pull-8 { |
| - | position: relative; |
| - | right: 66.66667%; |
| - | left: auto; } |
| - | |
| - | .small-push-9 { |
| - | position: relative; |
| - | left: 75%; |
| - | right: auto; } |
| - | |
| - | .small-pull-9 { |
| - | position: relative; |
| - | right: 75%; |
| - | left: auto; } |
| - | |
| - | .small-push-10 { |
| - | position: relative; |
| - | left: 83.33333%; |
| - | right: auto; } |
| - | |
| - | .small-pull-10 { |
| - | position: relative; |
| - | right: 83.33333%; |
| - | left: auto; } |
| - | |
| - | .small-push-11 { |
| - | position: relative; |
| - | left: 91.66667%; |
| - | right: auto; } |
| - | |
| - | .small-pull-11 { |
| - | position: relative; |
| - | right: 91.66667%; |
| - | left: auto; } |
| - | |
| - | .column, |
| - | .columns { |
| - | position: relative; |
| - | padding-left: 0.9375rem; |
| - | padding-right: 0.9375rem; |
| - | float: left; } |
| - | |
| - | .small-1 { |
| - | position: relative; |
| - | width: 8.33333%; } |
| - | |
| - | .small-2 { |
| - | position: relative; |
| - | width: 16.66667%; } |
| - | |
| - | .small-3 { |
| - | position: relative; |
| - | width: 25%; } |
| - | |
| - | .small-4 { |
| - | position: relative; |
| - | width: 33.33333%; } |
| - | |
| - | .small-5 { |
| - | position: relative; |
| - | width: 41.66667%; } |
| - | |
| - | .small-6 { |
| - | position: relative; |
| - | width: 50%; } |
| - | |
| - | .small-7 { |
| - | position: relative; |
| - | width: 58.33333%; } |
| - | |
| - | .small-8 { |
| - | position: relative; |
| - | width: 66.66667%; } |
| - | |
| - | .small-9 { |
| - | position: relative; |
| - | width: 75%; } |
| - | |
| - | .small-10 { |
| - | position: relative; |
| - | width: 83.33333%; } |
| - | |
| - | .small-11 { |
| - | position: relative; |
| - | width: 91.66667%; } |
| - | |
| - | .small-12 { |
| - | position: relative; |
| - | width: 100%; } |
| - | |
| - | [class*="column"] + [class*="column"]:last-child { |
| - | float: right; } |
| - | |
| - | [class*="column"] + [class*="column"].end { |
| - | float: left; } |
| - | |
| - | .small-offset-0 { |
| - | position: relative; |
| - | margin-left: 0% !important; } |
| - | |
| - | .small-offset-1 { |
| - | position: relative; |
| - | margin-left: 8.33333% !important; } |
| - | |
| - | .small-offset-2 { |
| - | position: relative; |
| - | margin-left: 16.66667% !important; } |
| - | |
| - | .small-offset-3 { |
| - | position: relative; |
| - | margin-left: 25% !important; } |
| - | |
| - | .small-offset-4 { |
| - | position: relative; |
| - | margin-left: 33.33333% !important; } |
| - | |
| - | .small-offset-5 { |
| - | position: relative; |
| - | margin-left: 41.66667% !important; } |
| - | |
| - | .small-offset-6 { |
| - | position: relative; |
| - | margin-left: 50% !important; } |
| - | |
| - | .small-offset-7 { |
| - | position: relative; |
| - | margin-left: 58.33333% !important; } |
| - | |
| - | .small-offset-8 { |
| - | position: relative; |
| - | margin-left: 66.66667% !important; } |
| - | |
| - | .small-offset-9 { |
| - | position: relative; |
| - | margin-left: 75% !important; } |
| - | |
| - | .small-offset-10 { |
| - | position: relative; |
| - | margin-left: 83.33333% !important; } |
| - | |
| - | .column.small-reset-order, |
| - | .columns.small-reset-order { |
| - | margin-left: 0; |
| - | margin-right: 0; |
| - | left: auto; |
| - | right: auto; |
| - | float: left; } } |
| - | @media only screen and (min-width: 40.063em) { |
| - | .column.medium-centered, |
| - | .columns.medium-centered { |
| - | position: relative; |
| - | margin-left: auto; |
| - | margin-right: auto; |
| - | float: none; } |
| - | |
| - | .column.medium-uncentered, |
| - | .columns.medium-uncentered { |
| - | margin-left: 0; |
| - | margin-right: 0; |
| - | float: left; } |
| - | |
| - | .column.medium-uncentered.opposite, |
| - | .columns.medium-uncentered.opposite { |
| - | float: right; } |
| - | |
| - | .medium-push-1 { |
| - | position: relative; |
| - | left: 8.33333%; |
| - | right: auto; } |
| - | |
| - | .medium-pull-1 { |
| - | position: relative; |
| - | right: 8.33333%; |
| - | left: auto; } |
| - | |
| - | .medium-push-2 { |
| - | position: relative; |
| - | left: 16.66667%; |
| - | right: auto; } |
| - | |
| - | .medium-pull-2 { |
| - | position: relative; |
| - | right: 16.66667%; |
| - | left: auto; } |
| - | |
| - | .medium-push-3 { |
| - | position: relative; |
| - | left: 25%; |
| - | right: auto; } |
| - | |
| - | .medium-pull-3 { |
| - | position: relative; |
| - | right: 25%; |
| - | left: auto; } |
| - | |
| - | .medium-push-4 { |
| - | position: relative; |
| - | left: 33.33333%; |
| - | right: auto; } |
| - | |
| - | .medium-pull-4 { |
| - | position: relative; |
| - | right: 33.33333%; |
| - | left: auto; } |
| - | |
| - | .medium-push-5 { |
| - | position: relative; |
| - | left: 41.66667%; |
| - | right: auto; } |
| - | |
| - | .medium-pull-5 { |
| - | position: relative; |
| - | right: 41.66667%; |
| - | left: auto; } |
| - | |
| - | .medium-push-6 { |
| - | position: relative; |
| - | left: 50%; |
| - | right: auto; } |
| - | |
| - | .medium-pull-6 { |
| - | position: relative; |
| - | right: 50%; |
| - | left: auto; } |
| - | |
| - | .medium-push-7 { |
| - | position: relative; |
| - | left: 58.33333%; |
| - | right: auto; } |
| - | |
| - | .medium-pull-7 { |
| - | position: relative; |
| - | right: 58.33333%; |
| - | left: auto; } |
| - | |
| - | .medium-push-8 { |
| - | position: relative; |
| - | left: 66.66667%; |
| - | right: auto; } |
| - | |
| - | .medium-pull-8 { |
| - | position: relative; |
| - | right: 66.66667%; |
| - | left: auto; } |
| - | |
| - | .medium-push-9 { |
| - | position: relative; |
| - | left: 75%; |
| - | right: auto; } |
| - | |
| - | .medium-pull-9 { |
| - | position: relative; |
| - | right: 75%; |
| - | left: auto; } |
| - | |
| - | .medium-push-10 { |
| - | position: relative; |
| - | left: 83.33333%; |
| - | right: auto; } |
| - | |
| - | .medium-pull-10 { |
| - | position: relative; |
| - | right: 83.33333%; |
| - | left: auto; } |
| - | |
| - | .medium-push-11 { |
| - | position: relative; |
| - | left: 91.66667%; |
| - | right: auto; } |
| - | |
| - | .medium-pull-11 { |
| - | position: relative; |
| - | right: 91.66667%; |
| - | left: auto; } |
| - | |
| - | .column, |
| - | .columns { |
| - | position: relative; |
| - | padding-left: 0.9375rem; |
| - | padding-right: 0.9375rem; |
| - | float: left; } |
| - | |
| - | .medium-1 { |
| - | position: relative; |
| - | width: 8.33333%; } |
| - | |
| - | .medium-2 { |
| - | position: relative; |
| - | width: 16.66667%; } |
| - | |
| - | .medium-3 { |
| - | position: relative; |
| - | width: 25%; } |
| - | |
| - | .medium-4 { |
| - | position: relative; |
| - | width: 33.33333%; } |
| - | |
| - | .medium-5 { |
| - | position: relative; |
| - | width: 41.66667%; } |
| - | |
| - | .medium-6 { |
| - | position: relative; |
| - | width: 50%; } |
| - | |
| - | .medium-7 { |
| - | position: relative; |
| - | width: 58.33333%; } |
| - | |
| - | .medium-8 { |
| - | position: relative; |
| - | width: 66.66667%; } |
| - | |
| - | .medium-9 { |
| - | position: relative; |
| - | width: 75%; } |
| - | |
| - | .medium-10 { |
| - | position: relative; |
| - | width: 83.33333%; } |
| - | |
| - | .medium-11 { |
| - | position: relative; |
| - | width: 91.66667%; } |
| - | |
| - | .medium-12 { |
| - | position: relative; |
| - | width: 100%; } |
| - | |
| - | [class*="column"] + [class*="column"]:last-child { |
| - | float: right; } |
| - | |
| - | [class*="column"] + [class*="column"].end { |
| - | float: left; } |
| - | |
| - | .medium-offset-0 { |
| - | position: relative; |
| - | margin-left: 0% !important; } |
| - | |
| - | .medium-offset-1 { |
| - | position: relative; |
| - | margin-left: 8.33333% !important; } |
| - | |
| - | .medium-offset-2 { |
| - | position: relative; |
| - | margin-left: 16.66667% !important; } |
| - | |
| - | .medium-offset-3 { |
| - | position: relative; |
| - | margin-left: 25% !important; } |
| - | |
| - | .medium-offset-4 { |
| - | position: relative; |
| - | margin-left: 33.33333% !important; } |
| - | |
| - | .medium-offset-5 { |
| - | position: relative; |
| - | margin-left: 41.66667% !important; } |
| - | |
| - | .medium-offset-6 { |
| - | position: relative; |
| - | margin-left: 50% !important; } |
| - | |
| - | .medium-offset-7 { |
| - | position: relative; |
| - | margin-left: 58.33333% !important; } |
| - | |
| - | .medium-offset-8 { |
| - | position: relative; |
| - | margin-left: 66.66667% !important; } |
| - | |
| - | .medium-offset-9 { |
| - | position: relative; |
| - | margin-left: 75% !important; } |
| - | |
| - | .medium-offset-10 { |
| - | position: relative; |
| - | margin-left: 83.33333% !important; } |
| - | |
| - | .column.medium-reset-order, |
| - | .columns.medium-reset-order { |
| - | margin-left: 0; |
| - | margin-right: 0; |
| - | left: auto; |
| - | right: auto; |
| - | float: left; } |
| - | |
| - | .push-1 { |
| - | position: relative; |
| - | left: 8.33333%; |
| - | right: auto; } |
| - | |
| - | .pull-1 { |
| - | position: relative; |
| - | right: 8.33333%; |
| - | left: auto; } |
| - | |
| - | .push-2 { |
| - | position: relative; |
| - | left: 16.66667%; |
| - | right: auto; } |
| - | |
| - | .pull-2 { |
| - | position: relative; |
| - | right: 16.66667%; |
| - | left: auto; } |
| - | |
| - | .push-3 { |
| - | position: relative; |
| - | left: 25%; |
| - | right: auto; } |
| - | |
| - | .pull-3 { |
| - | position: relative; |
| - | right: 25%; |
| - | left: auto; } |
| - | |
| - | .push-4 { |
| - | position: relative; |
| - | left: 33.33333%; |
| - | right: auto; } |
| - | |
| - | .pull-4 { |
| - | position: relative; |
| - | right: 33.33333%; |
| - | left: auto; } |
| - | |
| - | .push-5 { |
| - | position: relative; |
| - | left: 41.66667%; |
| - | right: auto; } |
| - | |
| - | .pull-5 { |
| - | position: relative; |
| - | right: 41.66667%; |
| - | left: auto; } |
| - | |
| - | .push-6 { |
| - | position: relative; |
| - | left: 50%; |
| - | right: auto; } |
| - | |
| - | .pull-6 { |
| - | position: relative; |
| - | right: 50%; |
| - | left: auto; } |
| - | |
| - | .push-7 { |
| - | position: relative; |
| - | left: 58.33333%; |
| - | right: auto; } |
| - | |
| - | .pull-7 { |
| - | position: relative; |
| - | right: 58.33333%; |
| - | left: auto; } |
| - | |
| - | .push-8 { |
| - | position: relative; |
| - | left: 66.66667%; |
| - | right: auto; } |
| - | |
| - | .pull-8 { |
| - | position: relative; |
| - | right: 66.66667%; |
| - | left: auto; } |
| - | |
| - | .push-9 { |
| - | position: relative; |
| - | left: 75%; |
| - | right: auto; } |
| - | |
| - | .pull-9 { |
| - | position: relative; |
| - | right: 75%; |
| - | left: auto; } |
| - | |
| - | .push-10 { |
| - | position: relative; |
| - | left: 83.33333%; |
| - | right: auto; } |
| - | |
| - | .pull-10 { |
| - | position: relative; |
| - | right: 83.33333%; |
| - | left: auto; } |
| - | |
| - | .push-11 { |
| - | position: relative; |
| - | left: 91.66667%; |
| - | right: auto; } |
| - | |
| - | .pull-11 { |
| - | position: relative; |
| - | right: 91.66667%; |
| - | left: auto; } } |
| - | @media only screen and (min-width: 64.063em) { |
| - | .column.large-centered, |
| - | .columns.large-centered { |
| - | position: relative; |
| - | margin-left: auto; |
| - | margin-right: auto; |
| - | float: none; } |
| - | |
| - | .column.large-uncentered, |
| - | .columns.large-uncentered { |
| - | margin-left: 0; |
| - | margin-right: 0; |
| - | float: left; } |
| - | |
| - | .column.large-uncentered.opposite, |
| - | .columns.large-uncentered.opposite { |
| - | float: right; } |
| - | |
| - | .large-push-1 { |
| - | position: relative; |
| - | left: 8.33333%; |
| - | right: auto; } |
| - | |
| - | .large-pull-1 { |
| - | position: relative; |
| - | right: 8.33333%; |
| - | left: auto; } |
| - | |
| - | .large-push-2 { |
| - | position: relative; |
| - | left: 16.66667%; |
| - | right: auto; } |
| - | |
| - | .large-pull-2 { |
| - | position: relative; |
| - | right: 16.66667%; |
| - | left: auto; } |
| - | |
| - | .large-push-3 { |
| - | position: relative; |
| - | left: 25%; |
| - | right: auto; } |
| - | |
| - | .large-pull-3 { |
| - | position: relative; |
| - | right: 25%; |
| - | left: auto; } |
| - | |
| - | .large-push-4 { |
| - | position: relative; |
| - | left: 33.33333%; |
| - | right: auto; } |
| - | |
| - | .large-pull-4 { |
| - | position: relative; |
| - | right: 33.33333%; |
| - | left: auto; } |
| - | |
| - | .large-push-5 { |
| - | position: relative; |
| - | left: 41.66667%; |
| - | right: auto; } |
| - | |
| - | .large-pull-5 { |
| - | position: relative; |
| - | right: 41.66667%; |
| - | left: auto; } |
| - | |
| - | .large-push-6 { |
| - | position: relative; |
| - | left: 50%; |
| - | right: auto; } |
| - | |
| - | .large-pull-6 { |
| - | position: relative; |
| - | right: 50%; |
| - | left: auto; } |
| - | |
| - | .large-push-7 { |
| - | position: relative; |
| - | left: 58.33333%; |
| - | right: auto; } |
| - | |
| - | .large-pull-7 { |
| - | position: relative; |
| - | right: 58.33333%; |
| - | left: auto; } |
| - | |
| - | .large-push-8 { |
| - | position: relative; |
| - | left: 66.66667%; |
| - | right: auto; } |
| - | |
| - | .large-pull-8 { |
| - | position: relative; |
| - | right: 66.66667%; |
| - | left: auto; } |
| - | |
| - | .large-push-9 { |
| - | position: relative; |
| - | left: 75%; |
| - | right: auto; } |
| - | |
| - | .large-pull-9 { |
| - | position: relative; |
| - | right: 75%; |
| - | left: auto; } |
| - | |
| - | .large-push-10 { |
| - | position: relative; |
| - | left: 83.33333%; |
| - | right: auto; } |
| - | |
| - | .large-pull-10 { |
| - | position: relative; |
| - | right: 83.33333%; |
| - | left: auto; } |
| - | |
| - | .large-push-11 { |
| - | position: relative; |
| - | left: 91.66667%; |
| - | right: auto; } |
| - | |
| - | .large-pull-11 { |
| - | position: relative; |
| - | right: 91.66667%; |
| - | left: auto; } |
| - | |
| - | .column, |
| - | .columns { |
| - | position: relative; |
| - | padding-left: 0.9375rem; |
| - | padding-right: 0.9375rem; |
| - | float: left; } |
| - | |
| - | .large-1 { |
| - | position: relative; |
| - | width: 8.33333%; } |
| - | |
| - | .large-2 { |
| - | position: relative; |
| - | width: 16.66667%; } |
| - | |
| - | .large-3 { |
| - | position: relative; |
| - | width: 25%; } |
| - | |
| - | .large-4 { |
| - | position: relative; |
| - | width: 33.33333%; } |
| - | |
| - | .large-5 { |
| - | position: relative; |
| - | width: 41.66667%; } |
| - | |
| - | .large-6 { |
| - | position: relative; |
| - | width: 50%; } |
| - | |
| - | .large-7 { |
| - | position: relative; |
| - | width: 58.33333%; } |
| - | |
| - | .large-8 { |
| - | position: relative; |
| - | width: 66.66667%; } |
| - | |
| - | .large-9 { |
| - | position: relative; |
| - | width: 75%; } |
| - | |
| - | .large-10 { |
| - | position: relative; |
| - | width: 83.33333%; } |
| - | |
| - | .large-11 { |
| - | position: relative; |
| - | width: 91.66667%; } |
| - | |
| - | .large-12 { |
| - | position: relative; |
| - | width: 100%; } |
| - | |
| - | [class*="column"] + [class*="column"]:last-child { |
| - | float: right; } |
| - | |
| - | [class*="column"] + [class*="column"].end { |
| - | float: left; } |
| - | |
| - | .large-offset-0 { |
| - | position: relative; |
| - | margin-left: 0% !important; } |
| - | |
| - | .large-offset-1 { |
| - | position: relative; |
| - | margin-left: 8.33333% !important; } |
| - | |
| - | .large-offset-2 { |
| - | position: relative; |
| - | margin-left: 16.66667% !important; } |
| - | |
| - | .large-offset-3 { |
| - | position: relative; |
| - | margin-left: 25% !important; } |
| - | |
| - | .large-offset-4 { |
| - | position: relative; |
| - | margin-left: 33.33333% !important; } |
| - | |
| - | .large-offset-5 { |
| - | position: relative; |
| - | margin-left: 41.66667% !important; } |
| - | |
| - | .large-offset-6 { |
| - | position: relative; |
| - | margin-left: 50% !important; } |
| - | |
| - | .large-offset-7 { |
| - | position: relative; |
| - | margin-left: 58.33333% !important; } |
| - | |
| - | .large-offset-8 { |
| - | position: relative; |
| - | margin-left: 66.66667% !important; } |
| - | |
| - | .large-offset-9 { |
| - | position: relative; |
| - | margin-left: 75% !important; } |
| - | |
| - | .large-offset-10 { |
| - | position: relative; |
| - | margin-left: 83.33333% !important; } |
| - | |
| - | .column.large-reset-order, |
| - | .columns.large-reset-order { |
| - | margin-left: 0; |
| - | margin-right: 0; |
| - | left: auto; |
| - | right: auto; |
| - | float: left; } |
| - | |
| - | .push-1 { |
| - | position: relative; |
| - | left: 8.33333%; |
| - | right: auto; } |
| - | |
| - | .pull-1 { |
| - | position: relative; |
| - | right: 8.33333%; |
| - | left: auto; } |
| - | |
| - | .push-2 { |
| - | position: relative; |
| - | left: 16.66667%; |
| - | right: auto; } |
| - | |
| - | .pull-2 { |
| - | position: relative; |
| - | right: 16.66667%; |
| - | left: auto; } |
| - | |
| - | .push-3 { |
| - | position: relative; |
| - | left: 25%; |
| - | right: auto; } |
| - | |
| - | .pull-3 { |
| - | position: relative; |
| - | right: 25%; |
| - | left: auto; } |
| - | |
| - | .push-4 { |
| - | position: relative; |
| - | left: 33.33333%; |
| - | right: auto; } |
| - | |
| - | .pull-4 { |
| - | position: relative; |
| - | right: 33.33333%; |
| - | left: auto; } |
| - | |
| - | .push-5 { |
| - | position: relative; |
| - | left: 41.66667%; |
| - | right: auto; } |
| - | |
| - | .pull-5 { |
| - | position: relative; |
| - | right: 41.66667%; |
| - | left: auto; } |
| - | |
| - | .push-6 { |
| - | position: relative; |
| - | left: 50%; |
| - | right: auto; } |
| - | |
| - | .pull-6 { |
| - | position: relative; |
| - | right: 50%; |
| - | left: auto; } |
| - | |
| - | .push-7 { |
| - | position: relative; |
| - | left: 58.33333%; |
| - | right: auto; } |
| - | |
| - | .pull-7 { |
| - | position: relative; |
| - | right: 58.33333%; |
| - | left: auto; } |
| - | |
| - | .push-8 { |
| - | position: relative; |
| - | left: 66.66667%; |
| - | right: auto; } |
| - | |
| - | .pull-8 { |
| - | position: relative; |
| - | right: 66.66667%; |
| - | left: auto; } |
| - | |
| - | .push-9 { |
| - | position: relative; |
| - | left: 75%; |
| - | right: auto; } |
| - | |
| - | .pull-9 { |
| - | position: relative; |
| - | right: 75%; |
| - | left: auto; } |
| - | |
| - | .push-10 { |
| - | position: relative; |
| - | left: 83.33333%; |
| - | right: auto; } |
| - | |
| - | .pull-10 { |
| - | position: relative; |
| - | right: 83.33333%; |
| - | left: auto; } |
| - | |
| - | .push-11 { |
| - | position: relative; |
| - | left: 91.66667%; |
| - | right: auto; } |
| - | |
| - | .pull-11 { |
| - | position: relative; |
| - | right: 91.66667%; |
| - | left: auto; } } |
| - | .accordion { |
| - | *zoom: 1; |
| - | margin-bottom: 0; } |
| - | .accordion:before, .accordion:after { |
| - | content: " "; |
| - | display: table; } |
| - | .accordion:after { |
| - | clear: both; } |
| - | .accordion dd { |
| - | display: block; |
| - | margin-bottom: 0 !important; } |
| - | .accordion dd.active a { |
| - | background: #e8e8e8; } |
| - | .accordion dd > a { |
| - | background: #efefef; |
| - | color: #222222; |
| - | padding: 1rem; |
| - | display: block; |
| - | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| - | font-size: 1rem; } |
| - | .accordion dd > a:hover { |
| - | background: #e3e3e3; } |
| - | .accordion .content { |
| - | display: none; |
| - | padding: 0.9375rem; } |
| - | .accordion .content.active { |
| - | display: block; |
| - | background: white; } |
| - | |
| - | .alert-box { |
| - | border-style: solid; |
| - | border-width: 1px; |
| - | display: block; |
| - | font-weight: normal; |
| - | margin-bottom: 1.25rem; |
| - | position: relative; |
| - | padding: 0.875rem 1.5rem 0.875rem 0.875rem; |
| - | font-size: 0.8125rem; |
| - | background-color: #008cba; |
| - | border-color: #0078a0; |
| - | color: white; } |
| - | .alert-box .close { |
| - | font-size: 1.375rem; |
| - | padding: 9px 6px 4px; |
| - | line-height: 0; |
| - | position: absolute; |
| - | top: 50%; |
| - | margin-top: -0.6875rem; |
| - | right: 0.25rem; |
| - | color: #333333; |
| - | opacity: 0.3; } |
| - | .alert-box .close:hover, .alert-box .close:focus { |
| - | opacity: 0.5; } |
| - | .alert-box.radius { |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; } |
| - | .alert-box.round { |
| - | -webkit-border-radius: 1000px; |
| - | border-radius: 1000px; } |
| - | .alert-box.success { |
| - | background-color: #43ac6a; |
| - | border-color: #3a945b; |
| - | color: white; } |
| - | .alert-box.alert { |
| - | background-color: #f04124; |
| - | border-color: #de2d0f; |
| - | color: white; } |
| - | .alert-box.secondary { |
| - | background-color: #e7e7e7; |
| - | border-color: #c7c7c7; |
| - | color: #4f4f4f; } |
| - | .alert-box.warning { |
| - | background-color: #f08a24; |
| - | border-color: #de770f; |
| - | color: white; } |
| - | .alert-box.info { |
| - | background-color: #a0d3e8; |
| - | border-color: #74bfdd; |
| - | color: #4f4f4f; } |
| - | |
| - | [class*="block-grid-"] { |
| - | display: block; |
| - | padding: 0; |
| - | margin: 0 0 0 -0.625rem; |
| - | *zoom: 1; } |
| - | [class*="block-grid-"]:before, [class*="block-grid-"]:after { |
| - | content: " "; |
| - | display: table; } |
| - | [class*="block-grid-"]:after { |
| - | clear: both; } |
| - | [class*="block-grid-"] > li { |
| - | display: inline; |
| - | height: auto; |
| - | float: left; |
| - | padding: 0 0.625rem 1.25rem; } |
| - | |
| - | @media only screen { |
| - | .small-block-grid-1 > li { |
| - | width: 100%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .small-block-grid-1 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .small-block-grid-1 > li:nth-of-type(1n+1) { |
| - | clear: both; } |
| - | |
| - | .small-block-grid-2 > li { |
| - | width: 50%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .small-block-grid-2 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .small-block-grid-2 > li:nth-of-type(2n+1) { |
| - | clear: both; } |
| - | |
| - | .small-block-grid-3 > li { |
| - | width: 33.33333%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .small-block-grid-3 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .small-block-grid-3 > li:nth-of-type(3n+1) { |
| - | clear: both; } |
| - | |
| - | .small-block-grid-4 > li { |
| - | width: 25%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .small-block-grid-4 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .small-block-grid-4 > li:nth-of-type(4n+1) { |
| - | clear: both; } |
| - | |
| - | .small-block-grid-5 > li { |
| - | width: 20%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .small-block-grid-5 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .small-block-grid-5 > li:nth-of-type(5n+1) { |
| - | clear: both; } |
| - | |
| - | .small-block-grid-6 > li { |
| - | width: 16.66667%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .small-block-grid-6 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .small-block-grid-6 > li:nth-of-type(6n+1) { |
| - | clear: both; } |
| - | |
| - | .small-block-grid-7 > li { |
| - | width: 14.28571%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .small-block-grid-7 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .small-block-grid-7 > li:nth-of-type(7n+1) { |
| - | clear: both; } |
| - | |
| - | .small-block-grid-8 > li { |
| - | width: 12.5%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .small-block-grid-8 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .small-block-grid-8 > li:nth-of-type(8n+1) { |
| - | clear: both; } |
| - | |
| - | .small-block-grid-9 > li { |
| - | width: 11.11111%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .small-block-grid-9 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .small-block-grid-9 > li:nth-of-type(9n+1) { |
| - | clear: both; } |
| - | |
| - | .small-block-grid-10 > li { |
| - | width: 10%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .small-block-grid-10 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .small-block-grid-10 > li:nth-of-type(10n+1) { |
| - | clear: both; } |
| - | |
| - | .small-block-grid-11 > li { |
| - | width: 9.09091%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .small-block-grid-11 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .small-block-grid-11 > li:nth-of-type(11n+1) { |
| - | clear: both; } |
| - | |
| - | .small-block-grid-12 > li { |
| - | width: 8.33333%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .small-block-grid-12 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .small-block-grid-12 > li:nth-of-type(12n+1) { |
| - | clear: both; } } |
| - | @media only screen and (min-width: 40.063em) { |
| - | .medium-block-grid-1 > li { |
| - | width: 100%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .medium-block-grid-1 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .medium-block-grid-1 > li:nth-of-type(1n+1) { |
| - | clear: both; } |
| - | |
| - | .medium-block-grid-2 > li { |
| - | width: 50%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .medium-block-grid-2 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .medium-block-grid-2 > li:nth-of-type(2n+1) { |
| - | clear: both; } |
| - | |
| - | .medium-block-grid-3 > li { |
| - | width: 33.33333%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .medium-block-grid-3 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .medium-block-grid-3 > li:nth-of-type(3n+1) { |
| - | clear: both; } |
| - | |
| - | .medium-block-grid-4 > li { |
| - | width: 25%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .medium-block-grid-4 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .medium-block-grid-4 > li:nth-of-type(4n+1) { |
| - | clear: both; } |
| - | |
| - | .medium-block-grid-5 > li { |
| - | width: 20%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .medium-block-grid-5 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .medium-block-grid-5 > li:nth-of-type(5n+1) { |
| - | clear: both; } |
| - | |
| - | .medium-block-grid-6 > li { |
| - | width: 16.66667%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .medium-block-grid-6 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .medium-block-grid-6 > li:nth-of-type(6n+1) { |
| - | clear: both; } |
| - | |
| - | .medium-block-grid-7 > li { |
| - | width: 14.28571%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .medium-block-grid-7 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .medium-block-grid-7 > li:nth-of-type(7n+1) { |
| - | clear: both; } |
| - | |
| - | .medium-block-grid-8 > li { |
| - | width: 12.5%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .medium-block-grid-8 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .medium-block-grid-8 > li:nth-of-type(8n+1) { |
| - | clear: both; } |
| - | |
| - | .medium-block-grid-9 > li { |
| - | width: 11.11111%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .medium-block-grid-9 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .medium-block-grid-9 > li:nth-of-type(9n+1) { |
| - | clear: both; } |
| - | |
| - | .medium-block-grid-10 > li { |
| - | width: 10%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .medium-block-grid-10 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .medium-block-grid-10 > li:nth-of-type(10n+1) { |
| - | clear: both; } |
| - | |
| - | .medium-block-grid-11 > li { |
| - | width: 9.09091%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .medium-block-grid-11 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .medium-block-grid-11 > li:nth-of-type(11n+1) { |
| - | clear: both; } |
| - | |
| - | .medium-block-grid-12 > li { |
| - | width: 8.33333%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .medium-block-grid-12 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .medium-block-grid-12 > li:nth-of-type(12n+1) { |
| - | clear: both; } } |
| - | @media only screen and (min-width: 64.063em) { |
| - | .large-block-grid-1 > li { |
| - | width: 100%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .large-block-grid-1 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .large-block-grid-1 > li:nth-of-type(1n+1) { |
| - | clear: both; } |
| - | |
| - | .large-block-grid-2 > li { |
| - | width: 50%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .large-block-grid-2 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .large-block-grid-2 > li:nth-of-type(2n+1) { |
| - | clear: both; } |
| - | |
| - | .large-block-grid-3 > li { |
| - | width: 33.33333%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .large-block-grid-3 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .large-block-grid-3 > li:nth-of-type(3n+1) { |
| - | clear: both; } |
| - | |
| - | .large-block-grid-4 > li { |
| - | width: 25%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .large-block-grid-4 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .large-block-grid-4 > li:nth-of-type(4n+1) { |
| - | clear: both; } |
| - | |
| - | .large-block-grid-5 > li { |
| - | width: 20%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .large-block-grid-5 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .large-block-grid-5 > li:nth-of-type(5n+1) { |
| - | clear: both; } |
| - | |
| - | .large-block-grid-6 > li { |
| - | width: 16.66667%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .large-block-grid-6 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .large-block-grid-6 > li:nth-of-type(6n+1) { |
| - | clear: both; } |
| - | |
| - | .large-block-grid-7 > li { |
| - | width: 14.28571%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .large-block-grid-7 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .large-block-grid-7 > li:nth-of-type(7n+1) { |
| - | clear: both; } |
| - | |
| - | .large-block-grid-8 > li { |
| - | width: 12.5%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .large-block-grid-8 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .large-block-grid-8 > li:nth-of-type(8n+1) { |
| - | clear: both; } |
| - | |
| - | .large-block-grid-9 > li { |
| - | width: 11.11111%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .large-block-grid-9 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .large-block-grid-9 > li:nth-of-type(9n+1) { |
| - | clear: both; } |
| - | |
| - | .large-block-grid-10 > li { |
| - | width: 10%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .large-block-grid-10 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .large-block-grid-10 > li:nth-of-type(10n+1) { |
| - | clear: both; } |
| - | |
| - | .large-block-grid-11 > li { |
| - | width: 9.09091%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .large-block-grid-11 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .large-block-grid-11 > li:nth-of-type(11n+1) { |
| - | clear: both; } |
| - | |
| - | .large-block-grid-12 > li { |
| - | width: 8.33333%; |
| - | padding: 0 0.625rem 1.25rem; |
| - | list-style: none; } |
| - | .large-block-grid-12 > li:nth-of-type(n) { |
| - | clear: none; } |
| - | .large-block-grid-12 > li:nth-of-type(12n+1) { |
| - | clear: both; } } |
| - | .breadcrumbs { |
| - | display: block; |
| - | padding: 0.5625rem 0.875rem 0.5625rem; |
| - | overflow: hidden; |
| - | margin-left: 0; |
| - | list-style: none; |
| - | border-style: solid; |
| - | border-width: 1px; |
| - | background-color: #f4f4f4; |
| - | border-color: gainsboro; |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; } |
| - | .breadcrumbs > * { |
| - | margin: 0; |
| - | float: left; |
| - | font-size: 0.6875rem; |
| - | text-transform: uppercase; } |
| - | .breadcrumbs > *:hover a, .breadcrumbs > *:focus a { |
| - | text-decoration: underline; } |
| - | .breadcrumbs > * a, |
| - | .breadcrumbs > * span { |
| - | text-transform: uppercase; |
| - | color: #008cba; } |
| - | .breadcrumbs > *.current { |
| - | cursor: default; |
| - | color: #333333; } |
| - | .breadcrumbs > *.current a { |
| - | cursor: default; |
| - | color: #333333; } |
| - | .breadcrumbs > *.current:hover, .breadcrumbs > *.current:hover a, .breadcrumbs > *.current:focus, .breadcrumbs > *.current:focus a { |
| - | text-decoration: none; } |
| - | .breadcrumbs > *.unavailable { |
| - | color: #999999; } |
| - | .breadcrumbs > *.unavailable a { |
| - | color: #999999; } |
| - | .breadcrumbs > *.unavailable:hover, .breadcrumbs > *.unavailable:hover a, .breadcrumbs > *.unavailable:focus, |
| - | .breadcrumbs > *.unavailable a:focus { |
| - | text-decoration: none; |
| - | color: #999999; |
| - | cursor: default; } |
| - | .breadcrumbs > *:before { |
| - | content: "/"; |
| - | color: #aaaaaa; |
| - | margin: 0 0.75rem; |
| - | position: relative; |
| - | top: 1px; } |
| - | .breadcrumbs > *:first-child:before { |
| - | content: " "; |
| - | margin: 0; } |
| - | |
| - | button, .button { |
| - | border-style: solid; |
| - | border-width: 0px; |
| - | cursor: pointer; |
| - | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| - | font-weight: normal; |
| - | line-height: normal; |
| - | margin: 0 0 1.25rem; |
| - | position: relative; |
| - | text-decoration: none; |
| - | text-align: center; |
| - | display: inline-block; |
| - | padding-top: 1rem; |
| - | padding-right: 2rem; |
| - | padding-bottom: 1.0625rem; |
| - | padding-left: 2rem; |
| - | font-size: 1rem; |
| - | /* @else { font-size: $padding - rem-calc(2); } */ |
| - | background-color: #008cba; |
| - | border-color: #007095; |
| - | color: white; |
| - | -webkit-transition: background-color 300ms ease-out; |
| - | -moz-transition: background-color 300ms ease-out; |
| - | transition: background-color 300ms ease-out; |
| - | padding-top: 1.0625rem; |
| - | padding-bottom: 1rem; |
| - | -webkit-appearance: none; |
| - | border: none; |
| - | font-weight: normal !important; } |
| - | button:hover, button:focus, .button:hover, .button:focus { |
| - | background-color: #007095; } |
| - | button:hover, button:focus, .button:hover, .button:focus { |
| - | color: white; } |
| - | button.secondary, .button.secondary { |
| - | background-color: #e7e7e7; |
| - | border-color: #b9b9b9; |
| - | color: #333333; } |
| - | button.secondary:hover, button.secondary:focus, .button.secondary:hover, .button.secondary:focus { |
| - | background-color: #b9b9b9; } |
| - | button.secondary:hover, button.secondary:focus, .button.secondary:hover, .button.secondary:focus { |
| - | color: #333333; } |
| - | button.success, .button.success { |
| - | background-color: #43ac6a; |
| - | border-color: #368a55; |
| - | color: white; } |
| - | button.success:hover, button.success:focus, .button.success:hover, .button.success:focus { |
| - | background-color: #368a55; } |
| - | button.success:hover, button.success:focus, .button.success:hover, .button.success:focus { |
| - | color: white; } |
| - | button.alert, .button.alert { |
| - | background-color: #f04124; |
| - | border-color: #cf2a0e; |
| - | color: white; } |
| - | button.alert:hover, button.alert:focus, .button.alert:hover, .button.alert:focus { |
| - | background-color: #cf2a0e; } |
| - | button.alert:hover, button.alert:focus, .button.alert:hover, .button.alert:focus { |
| - | color: white; } |
| - | button.large, .button.large { |
| - | padding-top: 1.125rem; |
| - | padding-right: 2.25rem; |
| - | padding-bottom: 1.1875rem; |
| - | padding-left: 2.25rem; |
| - | font-size: 1.25rem; |
| - | /* @else { font-size: $padding - rem-calc(2); } */ } |
| - | button.small, .button.small { |
| - | padding-top: 0.875rem; |
| - | padding-right: 1.75rem; |
| - | padding-bottom: 0.9375rem; |
| - | padding-left: 1.75rem; |
| - | font-size: 0.8125rem; |
| - | /* @else { font-size: $padding - rem-calc(2); } */ } |
| - | button.tiny, .button.tiny { |
| - | padding-top: 0.625rem; |
| - | padding-right: 1.25rem; |
| - | padding-bottom: 0.6875rem; |
| - | padding-left: 1.25rem; |
| - | font-size: 0.6875rem; |
| - | /* @else { font-size: $padding - rem-calc(2); } */ } |
| - | button.expand, .button.expand { |
| - | padding-right: 0; |
| - | padding-left: 0; |
| - | width: 100%; } |
| - | button.left-align, .button.left-align { |
| - | text-align: left; |
| - | text-indent: 0.75rem; } |
| - | button.right-align, .button.right-align { |
| - | text-align: right; |
| - | padding-right: 0.75rem; } |
| - | button.radius, .button.radius { |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; } |
| - | button.round, .button.round { |
| - | -webkit-border-radius: 1000px; |
| - | border-radius: 1000px; } |
| - | button.disabled, button[disabled], .button.disabled, .button[disabled] { |
| - | background-color: #008cba; |
| - | border-color: #007095; |
| - | color: white; |
| - | cursor: default; |
| - | opacity: 0.7; |
| - | -webkit-box-shadow: none; |
| - | box-shadow: none; } |
| - | button.disabled:hover, button.disabled:focus, button[disabled]:hover, button[disabled]:focus, .button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus { |
| - | background-color: #007095; } |
| - | button.disabled:hover, button.disabled:focus, button[disabled]:hover, button[disabled]:focus, .button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus { |
| - | color: white; } |
| - | button.disabled:hover, button.disabled:focus, button[disabled]:hover, button[disabled]:focus, .button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus { |
| - | background-color: #008cba; } |
| - | button.disabled.secondary, button[disabled].secondary, .button.disabled.secondary, .button[disabled].secondary { |
| - | background-color: #e7e7e7; |
| - | border-color: #b9b9b9; |
| - | color: #333333; |
| - | cursor: default; |
| - | opacity: 0.7; |
| - | -webkit-box-shadow: none; |
| - | box-shadow: none; } |
| - | button.disabled.secondary:hover, button.disabled.secondary:focus, button[disabled].secondary:hover, button[disabled].secondary:focus, .button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus { |
| - | background-color: #b9b9b9; } |
| - | button.disabled.secondary:hover, button.disabled.secondary:focus, button[disabled].secondary:hover, button[disabled].secondary:focus, .button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus { |
| - | color: #333333; } |
| - | button.disabled.secondary:hover, button.disabled.secondary:focus, button[disabled].secondary:hover, button[disabled].secondary:focus, .button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus { |
| - | background-color: #e7e7e7; } |
| - | button.disabled.success, button[disabled].success, .button.disabled.success, .button[disabled].success { |
| - | background-color: #43ac6a; |
| - | border-color: #368a55; |
| - | color: white; |
| - | cursor: default; |
| - | opacity: 0.7; |
| - | -webkit-box-shadow: none; |
| - | box-shadow: none; } |
| - | button.disabled.success:hover, button.disabled.success:focus, button[disabled].success:hover, button[disabled].success:focus, .button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus { |
| - | background-color: #368a55; } |
| - | button.disabled.success:hover, button.disabled.success:focus, button[disabled].success:hover, button[disabled].success:focus, .button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus { |
| - | color: white; } |
| - | button.disabled.success:hover, button.disabled.success:focus, button[disabled].success:hover, button[disabled].success:focus, .button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus { |
| - | background-color: #43ac6a; } |
| - | button.disabled.alert, button[disabled].alert, .button.disabled.alert, .button[disabled].alert { |
| - | background-color: #f04124; |
| - | border-color: #cf2a0e; |
| - | color: white; |
| - | cursor: default; |
| - | opacity: 0.7; |
| - | -webkit-box-shadow: none; |
| - | box-shadow: none; } |
| - | button.disabled.alert:hover, button.disabled.alert:focus, button[disabled].alert:hover, button[disabled].alert:focus, .button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus { |
| - | background-color: #cf2a0e; } |
| - | button.disabled.alert:hover, button.disabled.alert:focus, button[disabled].alert:hover, button[disabled].alert:focus, .button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus { |
| - | color: white; } |
| - | button.disabled.alert:hover, button.disabled.alert:focus, button[disabled].alert:hover, button[disabled].alert:focus, .button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus { |
| - | background-color: #f04124; } |
| - | |
| - | @media only screen and (min-width: 40.063em) { |
| - | button, .button { |
| - | display: inline-block; } } |
| - | .button-group { |
| - | list-style: none; |
| - | margin: 0; |
| - | *zoom: 1; } |
| - | .button-group:before, .button-group:after { |
| - | content: " "; |
| - | display: table; } |
| - | .button-group:after { |
| - | clear: both; } |
| - | .button-group > * { |
| - | margin: 0; |
| - | float: left; } |
| - | .button-group > * > button, .button-group > * .button { |
| - | border-right: 1px solid; |
| - | border-color: rgba(255, 255, 255, 0.5); } |
| - | .button-group > *:last-child button, .button-group > *:last-child .button { |
| - | border-right: 0; } |
| - | .button-group > *:first-child { |
| - | margin-left: 0; } |
| - | .button-group.radius > * > button, .button-group.radius > * .button { |
| - | border-right: 1px solid; |
| - | border-color: rgba(255, 255, 255, 0.5); } |
| - | .button-group.radius > *:last-child button, .button-group.radius > *:last-child .button { |
| - | border-right: 0; } |
| - | .button-group.radius > *:first-child, .button-group.radius > *:first-child > a, .button-group.radius > *:first-child > button, .button-group.radius > *:first-child > .button { |
| - | -moz-border-radius-bottomleft: 3px; |
| - | -moz-border-radius-topleft: 3px; |
| - | -webkit-border-bottom-left-radius: 3px; |
| - | -webkit-border-top-left-radius: 3px; |
| - | border-bottom-left-radius: 3px; |
| - | border-top-left-radius: 3px; } |
| - | .button-group.radius > *:last-child, .button-group.radius > *:last-child > a, .button-group.radius > *:last-child > button, .button-group.radius > *:last-child > .button { |
| - | -moz-border-radius-topright: 3px; |
| - | -moz-border-radius-bottomright: 3px; |
| - | -webkit-border-top-right-radius: 3px; |
| - | -webkit-border-bottom-right-radius: 3px; |
| - | border-top-right-radius: 3px; |
| - | border-bottom-right-radius: 3px; } |
| - | .button-group.round > * > button, .button-group.round > * .button { |
| - | border-right: 1px solid; |
| - | border-color: rgba(255, 255, 255, 0.5); } |
| - | .button-group.round > *:last-child button, .button-group.round > *:last-child .button { |
| - | border-right: 0; } |
| - | .button-group.round > *:first-child, .button-group.round > *:first-child > a, .button-group.round > *:first-child > button, .button-group.round > *:first-child > .button { |
| - | -moz-border-radius-bottomleft: 1000px; |
| - | -moz-border-radius-topleft: 1000px; |
| - | -webkit-border-bottom-left-radius: 1000px; |
| - | -webkit-border-top-left-radius: 1000px; |
| - | border-bottom-left-radius: 1000px; |
| - | border-top-left-radius: 1000px; } |
| - | .button-group.round > *:last-child, .button-group.round > *:last-child > a, .button-group.round > *:last-child > button, .button-group.round > *:last-child > .button { |
| - | -moz-border-radius-topright: 1000px; |
| - | -moz-border-radius-bottomright: 1000px; |
| - | -webkit-border-top-right-radius: 1000px; |
| - | -webkit-border-bottom-right-radius: 1000px; |
| - | border-top-right-radius: 1000px; |
| - | border-bottom-right-radius: 1000px; } |
| - | .button-group.even-2 li { |
| - | width: 50%; } |
| - | .button-group.even-2 li > button, .button-group.even-2 li .button { |
| - | border-right: 1px solid; |
| - | border-color: rgba(255, 255, 255, 0.5); } |
| - | .button-group.even-2 li:last-child button, .button-group.even-2 li:last-child .button { |
| - | border-right: 0; } |
| - | .button-group.even-2 li button, .button-group.even-2 li .button { |
| - | width: 100%; } |
| - | .button-group.even-3 li { |
| - | width: 33.33333%; } |
| - | .button-group.even-3 li > button, .button-group.even-3 li .button { |
| - | border-right: 1px solid; |
| - | border-color: rgba(255, 255, 255, 0.5); } |
| - | .button-group.even-3 li:last-child button, .button-group.even-3 li:last-child .button { |
| - | border-right: 0; } |
| - | .button-group.even-3 li button, .button-group.even-3 li .button { |
| - | width: 100%; } |
| - | .button-group.even-4 li { |
| - | width: 25%; } |
| - | .button-group.even-4 li > button, .button-group.even-4 li .button { |
| - | border-right: 1px solid; |
| - | border-color: rgba(255, 255, 255, 0.5); } |
| - | .button-group.even-4 li:last-child button, .button-group.even-4 li:last-child .button { |
| - | border-right: 0; } |
| - | .button-group.even-4 li button, .button-group.even-4 li .button { |
| - | width: 100%; } |
| - | .button-group.even-5 li { |
| - | width: 20%; } |
| - | .button-group.even-5 li > button, .button-group.even-5 li .button { |
| - | border-right: 1px solid; |
| - | border-color: rgba(255, 255, 255, 0.5); } |
| - | .button-group.even-5 li:last-child button, .button-group.even-5 li:last-child .button { |
| - | border-right: 0; } |
| - | .button-group.even-5 li button, .button-group.even-5 li .button { |
| - | width: 100%; } |
| - | .button-group.even-6 li { |
| - | width: 16.66667%; } |
| - | .button-group.even-6 li > button, .button-group.even-6 li .button { |
| - | border-right: 1px solid; |
| - | border-color: rgba(255, 255, 255, 0.5); } |
| - | .button-group.even-6 li:last-child button, .button-group.even-6 li:last-child .button { |
| - | border-right: 0; } |
| - | .button-group.even-6 li button, .button-group.even-6 li .button { |
| - | width: 100%; } |
| - | .button-group.even-7 li { |
| - | width: 14.28571%; } |
| - | .button-group.even-7 li > button, .button-group.even-7 li .button { |
| - | border-right: 1px solid; |
| - | border-color: rgba(255, 255, 255, 0.5); } |
| - | .button-group.even-7 li:last-child button, .button-group.even-7 li:last-child .button { |
| - | border-right: 0; } |
| - | .button-group.even-7 li button, .button-group.even-7 li .button { |
| - | width: 100%; } |
| - | .button-group.even-8 li { |
| - | width: 12.5%; } |
| - | .button-group.even-8 li > button, .button-group.even-8 li .button { |
| - | border-right: 1px solid; |
| - | border-color: rgba(255, 255, 255, 0.5); } |
| - | .button-group.even-8 li:last-child button, .button-group.even-8 li:last-child .button { |
| - | border-right: 0; } |
| - | .button-group.even-8 li button, .button-group.even-8 li .button { |
| - | width: 100%; } |
| - | |
| - | .button-bar { |
| - | *zoom: 1; } |
| - | .button-bar:before, .button-bar:after { |
| - | content: " "; |
| - | display: table; } |
| - | .button-bar:after { |
| - | clear: both; } |
| - | .button-bar .button-group { |
| - | float: left; |
| - | margin-right: 0.625rem; } |
| - | .button-bar .button-group div { |
| - | overflow: hidden; } |
| - | |
| - | /* Clearing Styles */ |
| - | [data-clearing] { |
| - | *zoom: 1; |
| - | margin-bottom: 0; |
| - | margin-left: 0; |
| - | list-style: none; } |
| - | [data-clearing]:before, [data-clearing]:after { |
| - | content: " "; |
| - | display: table; } |
| - | [data-clearing]:after { |
| - | clear: both; } |
| - | [data-clearing] li { |
| - | float: left; |
| - | margin-right: 10px; } |
| - | |
| - | .clearing-blackout { |
| - | background: #333333; |
| - | position: fixed; |
| - | width: 100%; |
| - | height: 100%; |
| - | top: 0; |
| - | left: 0; |
| - | z-index: 998; } |
| - | .clearing-blackout .clearing-close { |
| - | display: block; } |
| - | |
| - | .clearing-container { |
| - | position: relative; |
| - | z-index: 998; |
| - | height: 100%; |
| - | overflow: hidden; |
| - | margin: 0; } |
| - | |
| - | .visible-img { |
| - | height: 95%; |
| - | position: relative; } |
| - | .visible-img img { |
| - | position: absolute; |
| - | left: 50%; |
| - | top: 50%; |
| - | margin-left: -50%; |
| - | max-height: 100%; |
| - | max-width: 100%; } |
| - | |
| - | .clearing-caption { |
| - | color: #cccccc; |
| - | font-size: 0.875em; |
| - | line-height: 1.3; |
| - | margin-bottom: 0; |
| - | text-align: center; |
| - | bottom: 0; |
| - | background: #333333; |
| - | width: 100%; |
| - | padding: 10px 30px 20px; |
| - | position: absolute; |
| - | left: 0; } |
| - | |
| - | .clearing-close { |
| - | z-index: 999; |
| - | padding-left: 20px; |
| - | padding-top: 10px; |
| - | font-size: 30px; |
| - | line-height: 1; |
| - | color: #cccccc; |
| - | display: none; } |
| - | .clearing-close:hover, .clearing-close:focus { |
| - | color: #ccc; } |
| - | |
| - | .clearing-assembled .clearing-container { |
| - | height: 100%; } |
| - | .clearing-assembled .clearing-container .carousel > ul { |
| - | display: none; } |
| - | |
| - | .clearing-feature li { |
| - | display: none; } |
| - | .clearing-feature li.clearing-featured-img { |
| - | display: block; } |
| - | |
| - | @media only screen and (min-width: 40.063em) { |
| - | .clearing-main-prev, |
| - | .clearing-main-next { |
| - | position: absolute; |
| - | height: 100%; |
| - | width: 40px; |
| - | top: 0; } |
| - | .clearing-main-prev > span, |
| - | .clearing-main-next > span { |
| - | position: absolute; |
| - | top: 50%; |
| - | display: block; |
| - | width: 0; |
| - | height: 0; |
| - | border: solid 12px; } |
| - | .clearing-main-prev > span:hover, |
| - | .clearing-main-next > span:hover { |
| - | opacity: 0.8; } |
| - | |
| - | .clearing-main-prev { |
| - | left: 0; } |
| - | .clearing-main-prev > span { |
| - | left: 5px; |
| - | border-color: transparent; |
| - | border-right-color: #cccccc; } |
| - | |
| - | .clearing-main-next { |
| - | right: 0; } |
| - | .clearing-main-next > span { |
| - | border-color: transparent; |
| - | border-left-color: #cccccc; } |
| - | |
| - | .clearing-main-prev.disabled, |
| - | .clearing-main-next.disabled { |
| - | opacity: 0.3; } |
| - | |
| - | .clearing-assembled .clearing-container .carousel { |
| - | background: rgba(51, 51, 51, 0.8); |
| - | height: 120px; |
| - | margin-top: 10px; |
| - | text-align: center; } |
| - | .clearing-assembled .clearing-container .carousel > ul { |
| - | display: inline-block; |
| - | z-index: 999; |
| - | height: 100%; |
| - | position: relative; |
| - | float: none; } |
| - | .clearing-assembled .clearing-container .carousel > ul li { |
| - | display: block; |
| - | width: 120px; |
| - | min-height: inherit; |
| - | float: left; |
| - | overflow: hidden; |
| - | margin-right: 0; |
| - | padding: 0; |
| - | position: relative; |
| - | cursor: pointer; |
| - | opacity: 0.4; } |
| - | .clearing-assembled .clearing-container .carousel > ul li.fix-height img { |
| - | height: 100%; |
| - | max-width: none; } |
| - | .clearing-assembled .clearing-container .carousel > ul li a.th { |
| - | border: none; |
| - | -webkit-box-shadow: none; |
| - | box-shadow: none; |
| - | display: block; } |
| - | .clearing-assembled .clearing-container .carousel > ul li img { |
| - | cursor: pointer !important; |
| - | width: 100% !important; } |
| - | .clearing-assembled .clearing-container .carousel > ul li.visible { |
| - | opacity: 1; } |
| - | .clearing-assembled .clearing-container .carousel > ul li:hover { |
| - | opacity: 0.8; } |
| - | .clearing-assembled .clearing-container .visible-img { |
| - | background: #333333; |
| - | overflow: hidden; |
| - | height: 85%; } |
| - | |
| - | .clearing-close { |
| - | position: absolute; |
| - | top: 10px; |
| - | right: 20px; |
| - | padding-left: 0; |
| - | padding-top: 0; } } |
| - | @media only screen and (max-width: 40em) { |
| - | .f-dropdown { |
| - | max-width: 100%; |
| - | left: 0; } } |
| - | /* Foundation Dropdowns */ |
| - | .f-dropdown { |
| - | position: absolute; |
| - | left: -9999px; |
| - | list-style: none; |
| - | margin-left: 0; |
| - | width: 100%; |
| - | max-height: none; |
| - | height: auto; |
| - | background: white; |
| - | border: solid 1px #cccccc; |
| - | font-size: 16px; |
| - | z-index: 99; |
| - | margin-top: 2px; |
| - | max-width: 200px; } |
| - | .f-dropdown > *:first-child { |
| - | margin-top: 0; } |
| - | .f-dropdown > *:last-child { |
| - | margin-bottom: 0; } |
| - | .f-dropdown:before { |
| - | content: ""; |
| - | display: block; |
| - | width: 0; |
| - | height: 0; |
| - | border: inset 6px; |
| - | border-color: transparent transparent white transparent; |
| - | border-bottom-style: solid; |
| - | position: absolute; |
| - | top: -12px; |
| - | left: 10px; |
| - | z-index: 99; } |
| - | .f-dropdown:after { |
| - | content: ""; |
| - | display: block; |
| - | width: 0; |
| - | height: 0; |
| - | border: inset 7px; |
| - | border-color: transparent transparent #cccccc transparent; |
| - | border-bottom-style: solid; |
| - | position: absolute; |
| - | top: -14px; |
| - | left: 9px; |
| - | z-index: 98; } |
| - | .f-dropdown.right:before { |
| - | left: auto; |
| - | right: 10px; } |
| - | .f-dropdown.right:after { |
| - | left: auto; |
| - | right: 9px; } |
| - | .f-dropdown li { |
| - | font-size: 0.875rem; |
| - | cursor: pointer; |
| - | line-height: 1.125rem; |
| - | margin: 0; } |
| - | .f-dropdown li:hover, .f-dropdown li:focus { |
| - | background: #eeeeee; } |
| - | .f-dropdown li a { |
| - | display: block; |
| - | padding: 0.5rem; |
| - | color: #555555; } |
| - | .f-dropdown.content { |
| - | position: absolute; |
| - | left: -9999px; |
| - | list-style: none; |
| - | margin-left: 0; |
| - | padding: 1.25rem; |
| - | width: 100%; |
| - | height: auto; |
| - | max-height: none; |
| - | background: white; |
| - | border: solid 1px #cccccc; |
| - | font-size: 16px; |
| - | z-index: 99; |
| - | max-width: 200px; } |
| - | .f-dropdown.content > *:first-child { |
| - | margin-top: 0; } |
| - | .f-dropdown.content > *:last-child { |
| - | margin-bottom: 0; } |
| - | .f-dropdown.tiny { |
| - | max-width: 200px; } |
| - | .f-dropdown.small { |
| - | max-width: 300px; } |
| - | .f-dropdown.medium { |
| - | max-width: 500px; } |
| - | .f-dropdown.large { |
| - | max-width: 800px; } |
| - | |
| - | .dropdown.button { |
| - | position: relative; |
| - | padding-right: 3.5625rem; } |
| - | .dropdown.button:before { |
| - | position: absolute; |
| - | content: ""; |
| - | width: 0; |
| - | height: 0; |
| - | display: block; |
| - | border-style: solid; |
| - | border-color: white transparent transparent transparent; |
| - | top: 50%; } |
| - | .dropdown.button:before { |
| - | border-width: 0.375rem; |
| - | right: 1.40625rem; |
| - | margin-top: -0.15625rem; } |
| - | .dropdown.button:before { |
| - | border-color: white transparent transparent transparent; } |
| - | .dropdown.button.tiny { |
| - | padding-right: 2.625rem; } |
| - | .dropdown.button.tiny:before { |
| - | border-width: 0.375rem; |
| - | right: 1.125rem; |
| - | margin-top: -0.125rem; } |
| - | .dropdown.button.tiny:before { |
| - | border-color: white transparent transparent transparent; } |
| - | .dropdown.button.small { |
| - | padding-right: 3.0625rem; } |
| - | .dropdown.button.small:before { |
| - | border-width: 0.4375rem; |
| - | right: 1.3125rem; |
| - | margin-top: -0.15625rem; } |
| - | .dropdown.button.small:before { |
| - | border-color: white transparent transparent transparent; } |
| - | .dropdown.button.large { |
| - | padding-right: 3.625rem; } |
| - | .dropdown.button.large:before { |
| - | border-width: 0.3125rem; |
| - | right: 1.71875rem; |
| - | margin-top: -0.15625rem; } |
| - | .dropdown.button.large:before { |
| - | border-color: white transparent transparent transparent; } |
| - | .dropdown.button.secondary:before { |
| - | border-color: #333333 transparent transparent transparent; } |
| - | |
| - | .flex-video { |
| - | position: relative; |
| - | padding-top: 1.5625rem; |
| - | padding-bottom: 67.5%; |
| - | height: 0; |
| - | margin-bottom: 1rem; |
| - | overflow: hidden; } |
| - | .flex-video.widescreen { |
| - | padding-bottom: 57.25%; } |
| - | .flex-video.vimeo { |
| - | padding-top: 0; } |
| - | .flex-video iframe, |
| - | .flex-video object, |
| - | .flex-video embed, |
| - | .flex-video video { |
| - | position: absolute; |
| - | top: 0; |
| - | left: 0; |
| - | width: 100%; |
| - | height: 100%; } |
| - | |
| - | /* Standard Forms */ |
| - | form { |
| - | margin: 0 0 1rem; } |
| - | |
| - | /* Using forms within rows, we need to set some defaults */ |
| - | form .row .row { |
| - | margin: 0 -0.5rem; } |
| - | form .row .row .column, |
| - | form .row .row .columns { |
| - | padding: 0 0.5rem; } |
| - | form .row .row.collapse { |
| - | margin: 0; } |
| - | form .row .row.collapse .column, |
| - | form .row .row.collapse .columns { |
| - | padding: 0; } |
| - | form .row .row.collapse input { |
| - | -moz-border-radius-bottomright: 0; |
| - | -moz-border-radius-topright: 0; |
| - | -webkit-border-bottom-right-radius: 0; |
| - | -webkit-border-top-right-radius: 0; } |
| - | form .row input.column, |
| - | form .row input.columns, |
| - | form .row textarea.column, |
| - | form .row textarea.columns { |
| - | padding-left: 0.5rem; } |
| - | |
| - | /* Label Styles */ |
| - | label { |
| - | font-size: 0.875rem; |
| - | color: #4d4d4d; |
| - | cursor: pointer; |
| - | display: block; |
| - | font-weight: normal; |
| - | margin-bottom: 0.5rem; |
| - | /* Styles for required inputs */ } |
| - | label.right { |
| - | float: none; |
| - | text-align: right; } |
| - | label.inline { |
| - | margin: 0 0 1rem 0; |
| - | padding: 0.625rem 0; } |
| - | label small { |
| - | text-transform: capitalize; |
| - | color: #676767; } |
| - | |
| - | select { |
| - | -webkit-appearance: none !important; |
| - | background: #fafafa url("data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==") no-repeat; |
| - | background-position-x: 97%; |
| - | background-position-y: center; |
| - | border: 1px solid #cccccc; |
| - | padding: 0.5rem; |
| - | font-size: 0.875rem; |
| - | -webkit-border-radius: 0; |
| - | border-radius: 0; } |
| - | select.radius { |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; } |
| - | select:hover { |
| - | background: #f3f3f3 url("data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==") no-repeat; |
| - | background-position-x: 97%; |
| - | background-position-y: center; |
| - | border-color: #999999; } |
| - | |
| - | select::-ms-expand { |
| - | display: none; } |
| - | |
| - | @-moz-document url-prefix() { |
| - | select { |
| - | background: #fafafa; } |
| - | |
| - | select:hover { |
| - | background: #f3f3f3; } } |
| - | |
| - | /* Attach elements to the beginning or end of an input */ |
| - | .prefix, |
| - | .postfix { |
| - | display: block; |
| - | position: relative; |
| - | z-index: 2; |
| - | text-align: center; |
| - | width: 100%; |
| - | padding-top: 0; |
| - | padding-bottom: 0; |
| - | border-style: solid; |
| - | border-width: 1px; |
| - | overflow: hidden; |
| - | font-size: 0.875rem; |
| - | height: 2.3125rem; |
| - | line-height: 2.3125rem; } |
| - | |
| - | /* Adjust padding, alignment and radius if pre/post element is a button */ |
| - | .postfix.button { |
| - | padding-left: 0; |
| - | padding-right: 0; |
| - | padding-top: 0; |
| - | padding-bottom: 0; |
| - | text-align: center; |
| - | line-height: 2.125rem; |
| - | border: none; } |
| - | |
| - | .prefix.button { |
| - | padding-left: 0; |
| - | padding-right: 0; |
| - | padding-top: 0; |
| - | padding-bottom: 0; |
| - | text-align: center; |
| - | line-height: 2.125rem; |
| - | border: none; } |
| - | |
| - | .prefix.button.radius { |
| - | -webkit-border-radius: 0; |
| - | border-radius: 0; |
| - | -moz-border-radius-bottomleft: 3px; |
| - | -moz-border-radius-topleft: 3px; |
| - | -webkit-border-bottom-left-radius: 3px; |
| - | -webkit-border-top-left-radius: 3px; |
| - | border-bottom-left-radius: 3px; |
| - | border-top-left-radius: 3px; } |
| - | |
| - | .postfix.button.radius { |
| - | -webkit-border-radius: 0; |
| - | border-radius: 0; |
| - | -moz-border-radius-topright: 3px; |
| - | -moz-border-radius-bottomright: 3px; |
| - | -webkit-border-top-right-radius: 3px; |
| - | -webkit-border-bottom-right-radius: 3px; |
| - | border-top-right-radius: 3px; |
| - | border-bottom-right-radius: 3px; } |
| - | |
| - | .prefix.button.round { |
| - | -webkit-border-radius: 0; |
| - | border-radius: 0; |
| - | -moz-border-radius-bottomleft: 1000px; |
| - | -moz-border-radius-topleft: 1000px; |
| - | -webkit-border-bottom-left-radius: 1000px; |
| - | -webkit-border-top-left-radius: 1000px; |
| - | border-bottom-left-radius: 1000px; |
| - | border-top-left-radius: 1000px; } |
| - | |
| - | .postfix.button.round { |
| - | -webkit-border-radius: 0; |
| - | border-radius: 0; |
| - | -moz-border-radius-topright: 1000px; |
| - | -moz-border-radius-bottomright: 1000px; |
| - | -webkit-border-top-right-radius: 1000px; |
| - | -webkit-border-bottom-right-radius: 1000px; |
| - | border-top-right-radius: 1000px; |
| - | border-bottom-right-radius: 1000px; } |
| - | |
| - | /* Separate prefix and postfix styles when on span or label so buttons keep their own */ |
| - | span.prefix, label.prefix { |
| - | background: #f2f2f2; |
| - | border-color: #d8d8d8; |
| - | border-right: none; |
| - | color: #333333; } |
| - | span.prefix.radius, label.prefix.radius { |
| - | -webkit-border-radius: 0; |
| - | border-radius: 0; |
| - | -moz-border-radius-bottomleft: 3px; |
| - | -moz-border-radius-topleft: 3px; |
| - | -webkit-border-bottom-left-radius: 3px; |
| - | -webkit-border-top-left-radius: 3px; |
| - | border-bottom-left-radius: 3px; |
| - | border-top-left-radius: 3px; } |
| - | |
| - | span.postfix, label.postfix { |
| - | background: #f2f2f2; |
| - | border-color: #cbcbcb; |
| - | border-left: none; |
| - | color: #333333; } |
| - | span.postfix.radius, label.postfix.radius { |
| - | -webkit-border-radius: 0; |
| - | border-radius: 0; |
| - | -moz-border-radius-topright: 3px; |
| - | -moz-border-radius-bottomright: 3px; |
| - | -webkit-border-top-right-radius: 3px; |
| - | -webkit-border-bottom-right-radius: 3px; |
| - | border-top-right-radius: 3px; |
| - | border-bottom-right-radius: 3px; } |
| - | |
| - | /* Input groups will automatically style first and last elements of the group */ |
| - | .input-group.radius > *:first-child, .input-group.radius > *:first-child * { |
| - | -moz-border-radius-bottomleft: 3px; |
| - | -moz-border-radius-topleft: 3px; |
| - | -webkit-border-bottom-left-radius: 3px; |
| - | -webkit-border-top-left-radius: 3px; |
| - | border-bottom-left-radius: 3px; |
| - | border-top-left-radius: 3px; } |
| - | .input-group.radius > *:last-child, .input-group.radius > *:last-child * { |
| - | -moz-border-radius-topright: 3px; |
| - | -moz-border-radius-bottomright: 3px; |
| - | -webkit-border-top-right-radius: 3px; |
| - | -webkit-border-bottom-right-radius: 3px; |
| - | border-top-right-radius: 3px; |
| - | border-bottom-right-radius: 3px; } |
| - | .input-group.round > *:first-child, .input-group.round > *:first-child * { |
| - | -moz-border-radius-bottomleft: 1000px; |
| - | -moz-border-radius-topleft: 1000px; |
| - | -webkit-border-bottom-left-radius: 1000px; |
| - | -webkit-border-top-left-radius: 1000px; |
| - | border-bottom-left-radius: 1000px; |
| - | border-top-left-radius: 1000px; } |
| - | .input-group.round > *:last-child, .input-group.round > *:last-child * { |
| - | -moz-border-radius-topright: 1000px; |
| - | -moz-border-radius-bottomright: 1000px; |
| - | -webkit-border-top-right-radius: 1000px; |
| - | -webkit-border-bottom-right-radius: 1000px; |
| - | border-top-right-radius: 1000px; |
| - | border-bottom-right-radius: 1000px; } |
| - | |
| - | /* We use this to get basic styling on all basic form elements */ |
| - | input[type="text"], |
| - | input[type="password"], |
| - | input[type="date"], |
| - | input[type="datetime"], |
| - | input[type="datetime-local"], |
| - | input[type="month"], |
| - | input[type="week"], |
| - | input[type="email"], |
| - | input[type="number"], |
| - | input[type="search"], |
| - | input[type="tel"], |
| - | input[type="time"], |
| - | input[type="url"], |
| - | textarea { |
| - | -webkit-appearance: none; |
| - | -webkit-border-radius: 0; |
| - | border-radius: 0; |
| - | background-color: white; |
| - | font-family: inherit; |
| - | border: 1px solid #cccccc; |
| - | -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); |
| - | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); |
| - | color: rgba(0, 0, 0, 0.75); |
| - | display: block; |
| - | font-size: 0.875rem; |
| - | margin: 0 0 1rem 0; |
| - | padding: 0.5rem; |
| - | height: 2.3125rem; |
| - | width: 100%; |
| - | -moz-box-sizing: border-box; |
| - | -webkit-box-sizing: border-box; |
| - | box-sizing: border-box; |
| - | -webkit-transition: -webkit-box-shadow 0.45s, border-color 0.45s ease-in-out; |
| - | -moz-transition: -moz-box-shadow 0.45s, border-color 0.45s ease-in-out; |
| - | transition: box-shadow 0.45s, border-color 0.45s ease-in-out; } |
| - | input[type="text"]:focus, |
| - | input[type="password"]:focus, |
| - | input[type="date"]:focus, |
| - | input[type="datetime"]:focus, |
| - | input[type="datetime-local"]:focus, |
| - | input[type="month"]:focus, |
| - | input[type="week"]:focus, |
| - | input[type="email"]:focus, |
| - | input[type="number"]:focus, |
| - | input[type="search"]:focus, |
| - | input[type="tel"]:focus, |
| - | input[type="time"]:focus, |
| - | input[type="url"]:focus, |
| - | textarea:focus { |
| - | -webkit-box-shadow: 0 0 5px #999999; |
| - | -moz-box-shadow: 0 0 5px #999999; |
| - | box-shadow: 0 0 5px #999999; |
| - | border-color: #999999; } |
| - | input[type="text"]:focus, |
| - | input[type="password"]:focus, |
| - | input[type="date"]:focus, |
| - | input[type="datetime"]:focus, |
| - | input[type="datetime-local"]:focus, |
| - | input[type="month"]:focus, |
| - | input[type="week"]:focus, |
| - | input[type="email"]:focus, |
| - | input[type="number"]:focus, |
| - | input[type="search"]:focus, |
| - | input[type="tel"]:focus, |
| - | input[type="time"]:focus, |
| - | input[type="url"]:focus, |
| - | textarea:focus { |
| - | background: #fafafa; |
| - | border-color: #999999; |
| - | outline: none; } |
| - | input[type="text"][disabled], |
| - | input[type="password"][disabled], |
| - | input[type="date"][disabled], |
| - | input[type="datetime"][disabled], |
| - | input[type="datetime-local"][disabled], |
| - | input[type="month"][disabled], |
| - | input[type="week"][disabled], |
| - | input[type="email"][disabled], |
| - | input[type="number"][disabled], |
| - | input[type="search"][disabled], |
| - | input[type="tel"][disabled], |
| - | input[type="time"][disabled], |
| - | input[type="url"][disabled], |
| - | textarea[disabled] { |
| - | background-color: #dddddd; } |
| - | |
| - | /* Add height value for select elements to match text input height */ |
| - | select { |
| - | height: 2.3125rem; } |
| - | |
| - | /* Adjust margin for form elements below */ |
| - | input[type="file"], |
| - | input[type="checkbox"], |
| - | input[type="radio"], |
| - | select { |
| - | margin: 0 0 1rem 0; } |
| - | |
| - | input[type="checkbox"] + label, |
| - | input[type="radio"] + label { |
| - | display: inline-block; |
| - | margin-left: 0.5rem; |
| - | margin-right: 1rem; |
| - | margin-bottom: 0; |
| - | vertical-align: baseline; } |
| - | |
| - | /* Normalize file input width */ |
| - | input[type="file"] { |
| - | width: 100%; } |
| - | |
| - | /* We add basic fieldset styling */ |
| - | fieldset { |
| - | border: solid 1px #dddddd; |
| - | padding: 1.25rem; |
| - | margin: 1.125rem 0; } |
| - | fieldset legend { |
| - | font-weight: bold; |
| - | background: white; |
| - | padding: 0 0.1875rem; |
| - | margin: 0; |
| - | margin-left: -0.1875rem; } |
| - | |
| - | /* Error Handling */ |
| - | [data-abide] .error small.error, [data-abide] span.error, [data-abide] small.error { |
| - | display: block; |
| - | padding: 0.375rem 0.5625rem 0.5625rem; |
| - | margin-top: -1px; |
| - | margin-bottom: 1rem; |
| - | font-size: 0.75rem; |
| - | font-weight: normal; |
| - | font-style: italic; |
| - | background: #f04124; |
| - | color: white; } |
| - | [data-abide] span.error, [data-abide] small.error { |
| - | display: none; } |
| - | |
| - | span.error, small.error { |
| - | display: block; |
| - | padding: 0.375rem 0.5625rem 0.5625rem; |
| - | margin-top: -1px; |
| - | margin-bottom: 1rem; |
| - | font-size: 0.75rem; |
| - | font-weight: normal; |
| - | font-style: italic; |
| - | background: #f04124; |
| - | color: white; } |
| - | |
| - | .error input, |
| - | .error textarea, |
| - | .error select { |
| - | margin-bottom: 0; } |
| - | .error label, |
| - | .error label.error { |
| - | color: #f04124; } |
| - | .error > small, |
| - | .error small.error { |
| - | display: block; |
| - | padding: 0.375rem 0.5625rem 0.5625rem; |
| - | margin-top: -1px; |
| - | margin-bottom: 1rem; |
| - | font-size: 0.75rem; |
| - | font-weight: normal; |
| - | font-style: italic; |
| - | background: #f04124; |
| - | color: white; } |
| - | .error > label > small { |
| - | color: #676767; |
| - | background: transparent; |
| - | padding: 0; |
| - | text-transform: capitalize; |
| - | font-style: normal; |
| - | font-size: 60%; |
| - | margin: 0; |
| - | display: inline; } |
| - | .error span.error-message { |
| - | display: block; } |
| - | |
| - | input.error, |
| - | textarea.error { |
| - | margin-bottom: 0; } |
| - | |
| - | label.error { |
| - | color: #f04124; } |
| - | |
| - | .inline-list { |
| - | margin: 0 auto 1.0625rem auto; |
| - | margin-left: -1.375rem; |
| - | margin-right: 0; |
| - | padding: 0; |
| - | list-style: none; |
| - | overflow: hidden; } |
| - | .inline-list > li { |
| - | list-style: none; |
| - | float: left; |
| - | margin-left: 1.375rem; |
| - | display: block; } |
| - | .inline-list > li > * { |
| - | display: block; } |
| - | |
| - | /* Foundation Joyride */ |
| - | .joyride-list { |
| - | display: none; } |
| - | |
| - | /* Default styles for the container */ |
| - | .joyride-tip-guide { |
| - | display: none; |
| - | position: absolute; |
| - | background: #333333; |
| - | color: white; |
| - | z-index: 101; |
| - | top: 0; |
| - | left: 2.5%; |
| - | font-family: inherit; |
| - | font-weight: normal; |
| - | width: 95%; } |
| - | |
| - | .lt-ie9 .joyride-tip-guide { |
| - | max-width: 800px; |
| - | left: 50%; |
| - | margin-left: -400px; } |
| - | |
| - | .joyride-content-wrapper { |
| - | width: 100%; |
| - | padding: 1.125rem 1.25rem 1.5rem; } |
| - | .joyride-content-wrapper .button { |
| - | margin-bottom: 0 !important; } |
| - | |
| - | /* Add a little css triangle pip, older browser just miss out on the fanciness of it */ |
| - | .joyride-tip-guide .joyride-nub { |
| - | display: block; |
| - | position: absolute; |
| - | left: 22px; |
| - | width: 0; |
| - | height: 0; |
| - | border: 10px solid #333333; } |
| - | .joyride-tip-guide .joyride-nub.top { |
| - | border-top-style: solid; |
| - | border-color: #333333; |
| - | border-top-color: transparent !important; |
| - | border-left-color: transparent !important; |
| - | border-right-color: transparent !important; |
| - | top: -20px; } |
| - | .joyride-tip-guide .joyride-nub.bottom { |
| - | border-bottom-style: solid; |
| - | border-color: #333333 !important; |
| - | border-bottom-color: transparent !important; |
| - | border-left-color: transparent !important; |
| - | border-right-color: transparent !important; |
| - | bottom: -20px; } |
| - | .joyride-tip-guide .joyride-nub.right { |
| - | right: -20px; } |
| - | .joyride-tip-guide .joyride-nub.left { |
| - | left: -20px; } |
| - | |
| - | /* Typography */ |
| - | .joyride-tip-guide h1, |
| - | .joyride-tip-guide h2, |
| - | .joyride-tip-guide h3, |
| - | .joyride-tip-guide h4, |
| - | .joyride-tip-guide h5, |
| - | .joyride-tip-guide h6 { |
| - | line-height: 1.25; |
| - | margin: 0; |
| - | font-weight: bold; |
| - | color: white; } |
| - | |
| - | .joyride-tip-guide p { |
| - | margin: 0 0 1.125rem 0; |
| - | font-size: 0.875rem; |
| - | line-height: 1.3; } |
| - | |
| - | .joyride-timer-indicator-wrap { |
| - | width: 50px; |
| - | height: 3px; |
| - | border: solid 1px #555555; |
| - | position: absolute; |
| - | right: 1.0625rem; |
| - | bottom: 1rem; } |
| - | |
| - | .joyride-timer-indicator { |
| - | display: block; |
| - | width: 0; |
| - | height: inherit; |
| - | background: #666666; } |
| - | |
| - | .joyride-close-tip { |
| - | position: absolute; |
| - | right: 12px; |
| - | top: 10px; |
| - | color: #777777 !important; |
| - | text-decoration: none; |
| - | font-size: 24px; |
| - | font-weight: normal; |
| - | line-height: .5 !important; } |
| - | .joyride-close-tip:hover, .joyride-close-tip:focus { |
| - | color: #eee !important; } |
| - | |
| - | .joyride-modal-bg { |
| - | position: fixed; |
| - | height: 100%; |
| - | width: 100%; |
| - | background: transparent; |
| - | background: rgba(0, 0, 0, 0.5); |
| - | z-index: 100; |
| - | display: none; |
| - | top: 0; |
| - | left: 0; |
| - | cursor: pointer; } |
| - | |
| - | .joyride-expose-wrapper { |
| - | background-color: #ffffff; |
| - | position: absolute; |
| - | border-radius: 3px; |
| - | z-index: 102; |
| - | -moz-box-shadow: 0 0 30px #ffffff; |
| - | -webkit-box-shadow: 0 0 15px #ffffff; |
| - | box-shadow: 0 0 15px #ffffff; } |
| - | |
| - | .joyride-expose-cover { |
| - | background: transparent; |
| - | border-radius: 3px; |
| - | position: absolute; |
| - | z-index: 9999; |
| - | top: 0; |
| - | left: 0; } |
| - | |
| - | /* Styles for screens that are atleast 768px; */ |
| - | @media only screen and (min-width: 40.063em) { |
| - | .joyride-tip-guide { |
| - | width: 300px; |
| - | left: inherit; } |
| - | .joyride-tip-guide .joyride-nub.bottom { |
| - | border-color: #333333 !important; |
| - | border-bottom-color: transparent !important; |
| - | border-left-color: transparent !important; |
| - | border-right-color: transparent !important; |
| - | bottom: -20px; } |
| - | .joyride-tip-guide .joyride-nub.right { |
| - | border-color: #333333 !important; |
| - | border-top-color: transparent !important; |
| - | border-right-color: transparent !important; |
| - | border-bottom-color: transparent !important; |
| - | top: 22px; |
| - | left: auto; |
| - | right: -20px; } |
| - | .joyride-tip-guide .joyride-nub.left { |
| - | border-color: #333333 !important; |
| - | border-top-color: transparent !important; |
| - | border-left-color: transparent !important; |
| - | border-bottom-color: transparent !important; |
| - | top: 22px; |
| - | left: -20px; |
| - | right: auto; } } |
| - | .keystroke, |
| - | kbd { |
| - | background-color: #ededed; |
| - | border-color: #dddddd; |
| - | color: #222222; |
| - | border-style: solid; |
| - | border-width: 1px; |
| - | margin: 0; |
| - | font-family: "Consolas", "Menlo", "Courier", monospace; |
| - | font-size: 0.875rem; |
| - | padding: 0.125rem 0.25rem 0; |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; } |
| - | |
| - | .label { |
| - | font-weight: normal; |
| - | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| - | text-align: center; |
| - | text-decoration: none; |
| - | line-height: 1; |
| - | white-space: nowrap; |
| - | display: inline-block; |
| - | position: relative; |
| - | margin-bottom: inherit; |
| - | padding: 0.25rem 0.5rem 0.375rem; |
| - | font-size: 0.6875rem; |
| - | background-color: #008cba; |
| - | color: white; } |
| - | .label.radius { |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; } |
| - | .label.round { |
| - | -webkit-border-radius: 1000px; |
| - | border-radius: 1000px; } |
| - | .label.alert { |
| - | background-color: #f04124; |
| - | color: white; } |
| - | .label.success { |
| - | background-color: #43ac6a; |
| - | color: white; } |
| - | .label.secondary { |
| - | background-color: #e7e7e7; |
| - | color: #333333; } |
| - | |
| - | [data-magellan-expedition] { |
| - | background: white; |
| - | z-index: 50; |
| - | min-width: 100%; |
| - | padding: 10px; } |
| - | [data-magellan-expedition] .sub-nav { |
| - | margin-bottom: 0; } |
| - | [data-magellan-expedition] .sub-nav dd { |
| - | margin-bottom: 0; } |
| - | [data-magellan-expedition] .sub-nav .active { |
| - | line-height: 1.8em; } |
| - | |
| - | @-webkit-keyframes rotate { |
| - | from { |
| - | -webkit-transform: rotate(0deg); } |
| - | |
| - | to { |
| - | -webkit-transform: rotate(360deg); } } |
| - | |
| - | @-moz-keyframes rotate { |
| - | from { |
| - | -moz-transform: rotate(0deg); } |
| - | |
| - | to { |
| - | -moz-transform: rotate(360deg); } } |
| - | |
| - | @-o-keyframes rotate { |
| - | from { |
| - | -o-transform: rotate(0deg); } |
| - | |
| - | to { |
| - | -o-transform: rotate(360deg); } } |
| - | |
| - | @keyframes rotate { |
| - | from { |
| - | transform: rotate(0deg); } |
| - | |
| - | to { |
| - | transform: rotate(360deg); } } |
| - | |
| - | /* Orbit Graceful Loading */ |
| - | .slideshow-wrapper { |
| - | position: relative; } |
| - | .slideshow-wrapper ul { |
| - | list-style-type: none; |
| - | margin: 0; } |
| - | .slideshow-wrapper ul li, |
| - | .slideshow-wrapper ul li .orbit-caption { |
| - | display: none; } |
| - | .slideshow-wrapper ul li:first-child { |
| - | display: block; } |
| - | .slideshow-wrapper .orbit-container { |
| - | background-color: transparent; } |
| - | .slideshow-wrapper .orbit-container li { |
| - | display: block; } |
| - | .slideshow-wrapper .orbit-container li .orbit-caption { |
| - | display: block; } |
| - | |
| - | .preloader { |
| - | display: block; |
| - | width: 40px; |
| - | height: 40px; |
| - | position: absolute; |
| - | top: 50%; |
| - | left: 50%; |
| - | margin-top: -20px; |
| - | margin-left: -20px; |
| - | border: solid 3px; |
| - | border-color: #555 #fff; |
| - | -webkit-border-radius: 1000px; |
| - | border-radius: 1000px; |
| - | -webkit-animation-name: rotate; |
| - | -webkit-animation-duration: 1.5s; |
| - | -webkit-animation-iteration-count: infinite; |
| - | -webkit-animation-timing-function: linear; |
| - | -moz-animation-name: rotate; |
| - | -moz-animation-duration: 1.5s; |
| - | -moz-animation-iteration-count: infinite; |
| - | -moz-animation-timing-function: linear; |
| - | -o-animation-name: rotate; |
| - | -o-animation-duration: 1.5s; |
| - | -o-animation-iteration-count: infinite; |
| - | -o-animation-timing-function: linear; |
| - | animation-name: rotate; |
| - | animation-duration: 1.5s; |
| - | animation-iteration-count: infinite; |
| - | animation-timing-function: linear; } |
| - | |
| - | .orbit-container { |
| - | overflow: hidden; |
| - | width: 100%; |
| - | position: relative; |
| - | background: none; } |
| - | .orbit-container .orbit-slides-container { |
| - | list-style: none; |
| - | margin: 0; |
| - | padding: 0; |
| - | position: relative; } |
| - | .orbit-container .orbit-slides-container img { |
| - | display: block; |
| - | max-width: 100%; } |
| - | .orbit-container .orbit-slides-container > * { |
| - | position: absolute; |
| - | top: 0; |
| - | width: 100%; |
| - | margin-left: 100%; } |
| - | .orbit-container .orbit-slides-container > *:first-child { |
| - | margin-left: 0%; } |
| - | .orbit-container .orbit-slides-container > * .orbit-caption { |
| - | position: absolute; |
| - | bottom: 0; |
| - | background-color: rgba(51, 51, 51, 0.8); |
| - | color: white; |
| - | width: 100%; |
| - | padding: 0.625rem 0.875rem; |
| - | font-size: 0.875rem; } |
| - | .orbit-container .orbit-slide-number { |
| - | position: absolute; |
| - | top: 10px; |
| - | left: 10px; |
| - | font-size: 12px; |
| - | color: white; |
| - | background: rgba(0, 0, 0, 0); |
| - | z-index: 10; } |
| - | .orbit-container .orbit-slide-number span { |
| - | font-weight: 700; |
| - | padding: 0.3125rem; } |
| - | .orbit-container .orbit-timer { |
| - | position: absolute; |
| - | top: 12px; |
| - | right: 10px; |
| - | height: 6px; |
| - | width: 100px; |
| - | z-index: 10; } |
| - | .orbit-container .orbit-timer .orbit-progress { |
| - | height: 3px; |
| - | background-color: rgba(255, 255, 255, 0.3); |
| - | display: block; |
| - | width: 0%; |
| - | position: relative; |
| - | right: 20px; |
| - | top: 5px; } |
| - | .orbit-container .orbit-timer > span { |
| - | display: none; |
| - | position: absolute; |
| - | top: 0px; |
| - | right: 0; |
| - | width: 11px; |
| - | height: 14px; |
| - | border: solid 4px #fff; |
| - | border-top: none; |
| - | border-bottom: none; } |
| - | .orbit-container .orbit-timer.paused > span { |
| - | right: -4px; |
| - | top: 0px; |
| - | width: 11px; |
| - | height: 14px; |
| - | border: inset 8px; |
| - | border-right-style: solid; |
| - | border-color: transparent transparent transparent #fff; } |
| - | .orbit-container .orbit-timer.paused > span.dark { |
| - | border-color: transparent transparent transparent #333; } |
| - | .orbit-container:hover .orbit-timer > span { |
| - | display: block; } |
| - | .orbit-container .orbit-prev, |
| - | .orbit-container .orbit-next { |
| - | position: absolute; |
| - | top: 45%; |
| - | margin-top: -25px; |
| - | width: 36px; |
| - | height: 60px; |
| - | line-height: 50px; |
| - | color: white; |
| - | background-color: none; |
| - | text-indent: -9999px !important; |
| - | z-index: 10; } |
| - | .orbit-container .orbit-prev:hover, |
| - | .orbit-container .orbit-next:hover { |
| - | background-color: rgba(0, 0, 0, 0.3); } |
| - | .orbit-container .orbit-prev > span, |
| - | .orbit-container .orbit-next > span { |
| - | position: absolute; |
| - | top: 50%; |
| - | margin-top: -10px; |
| - | display: block; |
| - | width: 0; |
| - | height: 0; |
| - | border: inset 10px; } |
| - | .orbit-container .orbit-prev { |
| - | left: 0; } |
| - | .orbit-container .orbit-prev > span { |
| - | border-right-style: solid; |
| - | border-color: transparent; |
| - | border-right-color: white; } |
| - | .orbit-container .orbit-prev:hover > span { |
| - | border-right-color: white; } |
| - | .orbit-container .orbit-next { |
| - | right: 0; } |
| - | .orbit-container .orbit-next > span { |
| - | border-color: transparent; |
| - | border-left-style: solid; |
| - | border-left-color: white; |
| - | left: 50%; |
| - | margin-left: -4px; } |
| - | .orbit-container .orbit-next:hover > span { |
| - | border-left-color: white; } |
| - | |
| - | .orbit-bullets-container { |
| - | text-align: center; } |
| - | |
| - | .orbit-bullets { |
| - | margin: 0 auto 30px auto; |
| - | overflow: hidden; |
| - | position: relative; |
| - | top: 10px; |
| - | float: none; |
| - | text-align: center; |
| - | display: block; } |
| - | .orbit-bullets li { |
| - | display: inline-block; |
| - | width: 0.5625rem; |
| - | height: 0.5625rem; |
| - | background: #cccccc; |
| - | float: none; |
| - | margin-right: 6px; |
| - | -webkit-border-radius: 1000px; |
| - | border-radius: 1000px; } |
| - | .orbit-bullets li.active { |
| - | background: #999999; } |
| - | .orbit-bullets li:last-child { |
| - | margin-right: 0; } |
| - | |
| - | .touch .orbit-container .orbit-prev, |
| - | .touch .orbit-container .orbit-next { |
| - | display: none; } |
| - | .touch .orbit-bullets { |
| - | display: none; } |
| - | |
| - | @media only screen and (min-width: 40.063em) { |
| - | .touch .orbit-container .orbit-prev, |
| - | .touch .orbit-container .orbit-next { |
| - | display: inherit; } |
| - | .touch .orbit-bullets { |
| - | display: block; } } |
| - | @media only screen and (max-width: 40em) { |
| - | .orbit-stack-on-small .orbit-slides-container { |
| - | height: auto !important; } |
| - | .orbit-stack-on-small .orbit-slides-container > * { |
| - | position: relative; |
| - | margin-left: 0% !important; } |
| - | .orbit-stack-on-small .orbit-timer, |
| - | .orbit-stack-on-small .orbit-next, |
| - | .orbit-stack-on-small .orbit-prev, |
| - | .orbit-stack-on-small .orbit-bullets { |
| - | display: none; } } |
| - | ul.pagination { |
| - | display: block; |
| - | height: 1.5rem; |
| - | margin-left: -0.3125rem; } |
| - | ul.pagination li { |
| - | height: 1.5rem; |
| - | color: #222222; |
| - | font-size: 0.875rem; |
| - | margin-left: 0.3125rem; } |
| - | ul.pagination li a { |
| - | display: block; |
| - | padding: 0.0625rem 0.625rem 0.0625rem; |
| - | color: #999999; |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; } |
| - | ul.pagination li:hover a, |
| - | ul.pagination li a:focus { |
| - | background: #e6e6e6; } |
| - | ul.pagination li.unavailable a { |
| - | cursor: default; |
| - | color: #999999; } |
| - | ul.pagination li.unavailable:hover a, ul.pagination li.unavailable a:focus { |
| - | background: transparent; } |
| - | ul.pagination li.current a { |
| - | background: #008cba; |
| - | color: white; |
| - | font-weight: bold; |
| - | cursor: default; } |
| - | ul.pagination li.current a:hover, ul.pagination li.current a:focus { |
| - | background: #008cba; } |
| - | ul.pagination li { |
| - | float: left; |
| - | display: block; } |
| - | |
| - | /* Pagination centred wrapper */ |
| - | .pagination-centered { |
| - | text-align: center; } |
| - | .pagination-centered ul.pagination li { |
| - | float: none; |
| - | display: inline-block; } |
| - | |
| - | /* Panels */ |
| - | .panel { |
| - | border-style: solid; |
| - | border-width: 1px; |
| - | border-color: #d8d8d8; |
| - | margin-bottom: 1.25rem; |
| - | padding: 1.25rem; |
| - | background: #f2f2f2; } |
| - | .panel > :first-child { |
| - | margin-top: 0; } |
| - | .panel > :last-child { |
| - | margin-bottom: 0; } |
| - | .panel h1, .panel h2, .panel h3, .panel h4, .panel h5, .panel h6, .panel p { |
| - | color: #333333; } |
| - | .panel h1, .panel h2, .panel h3, .panel h4, .panel h5, .panel h6 { |
| - | line-height: 1; |
| - | margin-bottom: 0.625rem; } |
| - | .panel h1.subheader, .panel h2.subheader, .panel h3.subheader, .panel h4.subheader, .panel h5.subheader, .panel h6.subheader { |
| - | line-height: 1.4; } |
| - | .panel.callout { |
| - | border-style: solid; |
| - | border-width: 1px; |
| - | border-color: #b6edff; |
| - | margin-bottom: 1.25rem; |
| - | padding: 1.25rem; |
| - | background: #ecfaff; } |
| - | .panel.callout > :first-child { |
| - | margin-top: 0; } |
| - | .panel.callout > :last-child { |
| - | margin-bottom: 0; } |
| - | .panel.callout h1, .panel.callout h2, .panel.callout h3, .panel.callout h4, .panel.callout h5, .panel.callout h6, .panel.callout p { |
| - | color: #333333; } |
| - | .panel.callout h1, .panel.callout h2, .panel.callout h3, .panel.callout h4, .panel.callout h5, .panel.callout h6 { |
| - | line-height: 1; |
| - | margin-bottom: 0.625rem; } |
| - | .panel.callout h1.subheader, .panel.callout h2.subheader, .panel.callout h3.subheader, .panel.callout h4.subheader, .panel.callout h5.subheader, .panel.callout h6.subheader { |
| - | line-height: 1.4; } |
| - | .panel.callout a { |
| - | color: #008cba; } |
| - | .panel.radius { |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; } |
| - | |
| - | /* Pricing Tables */ |
| - | .pricing-table { |
| - | border: solid 1px #dddddd; |
| - | margin-left: 0; |
| - | margin-bottom: 1.25rem; } |
| - | .pricing-table * { |
| - | list-style: none; |
| - | line-height: 1; } |
| - | .pricing-table .title { |
| - | background-color: #333333; |
| - | padding: 0.9375rem 1.25rem; |
| - | text-align: center; |
| - | color: #eeeeee; |
| - | font-weight: normal; |
| - | font-size: 1rem; |
| - | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; } |
| - | .pricing-table .price { |
| - | background-color: #f6f6f6; |
| - | padding: 0.9375rem 1.25rem; |
| - | text-align: center; |
| - | color: #333333; |
| - | font-weight: normal; |
| - | font-size: 2rem; |
| - | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; } |
| - | .pricing-table .description { |
| - | background-color: white; |
| - | padding: 0.9375rem; |
| - | text-align: center; |
| - | color: #777777; |
| - | font-size: 0.75rem; |
| - | font-weight: normal; |
| - | line-height: 1.4; |
| - | border-bottom: dotted 1px #dddddd; } |
| - | .pricing-table .bullet-item { |
| - | background-color: white; |
| - | padding: 0.9375rem; |
| - | text-align: center; |
| - | color: #333333; |
| - | font-size: 0.875rem; |
| - | font-weight: normal; |
| - | border-bottom: dotted 1px #dddddd; } |
| - | .pricing-table .cta-button { |
| - | background-color: white; |
| - | text-align: center; |
| - | padding: 1.25rem 1.25rem 0; } |
| - | |
| - | /* Progress Bar */ |
| - | .progress { |
| - | background-color: #f6f6f6; |
| - | height: 1.5625rem; |
| - | border: 1px solid white; |
| - | padding: 0.125rem; |
| - | margin-bottom: 0.625rem; } |
| - | .progress .meter { |
| - | background: #008cba; |
| - | height: 100%; |
| - | display: block; } |
| - | .progress.secondary .meter { |
| - | background: #e7e7e7; |
| - | height: 100%; |
| - | display: block; } |
| - | .progress.success .meter { |
| - | background: #43ac6a; |
| - | height: 100%; |
| - | display: block; } |
| - | .progress.alert .meter { |
| - | background: #f04124; |
| - | height: 100%; |
| - | display: block; } |
| - | .progress.radius { |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; } |
| - | .progress.radius .meter { |
| - | -webkit-border-radius: 2px; |
| - | border-radius: 2px; } |
| - | .progress.round { |
| - | -webkit-border-radius: 1000px; |
| - | border-radius: 1000px; } |
| - | .progress.round .meter { |
| - | -webkit-border-radius: 999px; |
| - | border-radius: 999px; } |
| - | |
| - | .reveal-modal-bg { |
| - | position: fixed; |
| - | height: 100%; |
| - | width: 100%; |
| - | background: black; |
| - | background: rgba(0, 0, 0, 0.45); |
| - | z-index: 98; |
| - | display: none; |
| - | top: 0; |
| - | left: 0; } |
| - | |
| - | .reveal-modal { |
| - | visibility: hidden; |
| - | display: none; |
| - | position: absolute; |
| - | left: 50%; |
| - | z-index: 99; |
| - | height: auto; |
| - | margin-left: -40%; |
| - | width: 80%; |
| - | background-color: white; |
| - | padding: 1.25rem; |
| - | border: solid 1px #666666; |
| - | -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); |
| - | box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); |
| - | top: 6.25rem; } |
| - | .reveal-modal .column, |
| - | .reveal-modal .columns { |
| - | min-width: 0; } |
| - | .reveal-modal > :first-child { |
| - | margin-top: 0; } |
| - | .reveal-modal > :last-child { |
| - | margin-bottom: 0; } |
| - | .reveal-modal .close-reveal-modal { |
| - | font-size: 1.375rem; |
| - | line-height: 1; |
| - | position: absolute; |
| - | top: 0.5rem; |
| - | right: 0.6875rem; |
| - | color: #aaaaaa; |
| - | font-weight: bold; |
| - | cursor: pointer; } |
| - | |
| - | @media only screen and (min-width: 40.063em) { |
| - | .reveal-modal { |
| - | padding: 1.875rem; |
| - | top: 6.25rem; } |
| - | .reveal-modal.tiny { |
| - | margin-left: -15%; |
| - | width: 30%; } |
| - | .reveal-modal.small { |
| - | margin-left: -20%; |
| - | width: 40%; } |
| - | .reveal-modal.medium { |
| - | margin-left: -30%; |
| - | width: 60%; } |
| - | .reveal-modal.large { |
| - | margin-left: -35%; |
| - | width: 70%; } |
| - | .reveal-modal.xlarge { |
| - | margin-left: -47.5%; |
| - | width: 95%; } } |
| - | @media print { |
| - | .reveal-modal { |
| - | background: #fff !important; } } |
| - | .side-nav { |
| - | display: block; |
| - | margin: 0; |
| - | padding: 0.875rem 0; |
| - | list-style-type: none; |
| - | list-style-position: inside; |
| - | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; } |
| - | .side-nav li { |
| - | margin: 0 0 0.4375rem 0; |
| - | font-size: 0.875rem; } |
| - | .side-nav li a { |
| - | display: block; |
| - | color: #008cba; } |
| - | .side-nav li.active > a:first-child { |
| - | color: #4d4d4d; |
| - | font-weight: normal; |
| - | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; } |
| - | .side-nav li.divider { |
| - | border-top: 1px solid; |
| - | height: 0; |
| - | padding: 0; |
| - | list-style: none; |
| - | border-top-color: white; } |
| - | |
| - | .split.button { |
| - | position: relative; |
| - | padding-right: 5.0625rem; } |
| - | .split.button span { |
| - | display: block; |
| - | height: 100%; |
| - | position: absolute; |
| - | right: 0; |
| - | top: 0; |
| - | border-left: solid 1px; } |
| - | .split.button span:before { |
| - | position: absolute; |
| - | content: ""; |
| - | width: 0; |
| - | height: 0; |
| - | display: block; |
| - | border-style: inset; |
| - | top: 50%; |
| - | left: 50%; } |
| - | .split.button span:active { |
| - | background-color: rgba(0, 0, 0, 0.1); } |
| - | .split.button span { |
| - | border-left-color: rgba(255, 255, 255, 0.5); } |
| - | .split.button span { |
| - | width: 3.09375rem; } |
| - | .split.button span:before { |
| - | border-top-style: solid; |
| - | border-width: 0.375rem; |
| - | top: 48%; |
| - | margin-left: -0.375rem; } |
| - | .split.button span:before { |
| - | border-color: white transparent transparent transparent; } |
| - | .split.button.secondary span { |
| - | border-left-color: rgba(255, 255, 255, 0.5); } |
| - | .split.button.secondary span:before { |
| - | border-color: white transparent transparent transparent; } |
| - | .split.button.alert span { |
| - | border-left-color: rgba(255, 255, 255, 0.5); } |
| - | .split.button.success span { |
| - | border-left-color: rgba(255, 255, 255, 0.5); } |
| - | .split.button.tiny { |
| - | padding-right: 3.75rem; } |
| - | .split.button.tiny span { |
| - | width: 2.25rem; } |
| - | .split.button.tiny span:before { |
| - | border-top-style: solid; |
| - | border-width: 0.375rem; |
| - | top: 48%; |
| - | margin-left: -0.375rem; } |
| - | .split.button.small { |
| - | padding-right: 4.375rem; } |
| - | .split.button.small span { |
| - | width: 2.625rem; } |
| - | .split.button.small span:before { |
| - | border-top-style: solid; |
| - | border-width: 0.4375rem; |
| - | top: 48%; |
| - | margin-left: -0.375rem; } |
| - | .split.button.large { |
| - | padding-right: 5.5rem; } |
| - | .split.button.large span { |
| - | width: 3.4375rem; } |
| - | .split.button.large span:before { |
| - | border-top-style: solid; |
| - | border-width: 0.3125rem; |
| - | top: 48%; |
| - | margin-left: -0.375rem; } |
| - | .split.button.expand { |
| - | padding-left: 2rem; } |
| - | .split.button.secondary span:before { |
| - | border-color: #333333 transparent transparent transparent; } |
| - | .split.button.radius span { |
| - | -moz-border-radius-topright: 3px; |
| - | -moz-border-radius-bottomright: 3px; |
| - | -webkit-border-top-right-radius: 3px; |
| - | -webkit-border-bottom-right-radius: 3px; |
| - | border-top-right-radius: 3px; |
| - | border-bottom-right-radius: 3px; } |
| - | .split.button.round span { |
| - | -moz-border-radius-topright: 1000px; |
| - | -moz-border-radius-bottomright: 1000px; |
| - | -webkit-border-top-right-radius: 1000px; |
| - | -webkit-border-bottom-right-radius: 1000px; |
| - | border-top-right-radius: 1000px; |
| - | border-bottom-right-radius: 1000px; } |
| - | |
| - | .sub-nav { |
| - | display: block; |
| - | width: auto; |
| - | overflow: hidden; |
| - | margin: -0.25rem 0 1.125rem; |
| - | padding-top: 0.25rem; |
| - | margin-right: 0; |
| - | margin-left: -0.75rem; } |
| - | .sub-nav dt { |
| - | text-transform: uppercase; } |
| - | .sub-nav dt, |
| - | .sub-nav dd, |
| - | .sub-nav li { |
| - | float: left; |
| - | display: inline; |
| - | margin-left: 1rem; |
| - | margin-bottom: 0.625rem; |
| - | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| - | font-weight: normal; |
| - | font-size: 0.875rem; |
| - | color: #999999; } |
| - | .sub-nav dt a, |
| - | .sub-nav dd a, |
| - | .sub-nav li a { |
| - | text-decoration: none; |
| - | color: #999999; } |
| - | .sub-nav dt a:hover, |
| - | .sub-nav dd a:hover, |
| - | .sub-nav li a:hover { |
| - | color: #0085b1; } |
| - | .sub-nav dt.active a, |
| - | .sub-nav dd.active a, |
| - | .sub-nav li.active a { |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; |
| - | font-weight: normal; |
| - | background: #008cba; |
| - | padding: 0.1875rem 1rem; |
| - | cursor: default; |
| - | color: white; } |
| - | .sub-nav dt.active a:hover, |
| - | .sub-nav dd.active a:hover, |
| - | .sub-nav li.active a:hover { |
| - | background: #0085b1; } |
| - | |
| - | div.switch { |
| - | position: relative; |
| - | padding: 0; |
| - | display: block; |
| - | overflow: hidden; |
| - | border-style: solid; |
| - | border-width: 1px; |
| - | margin-bottom: 1.25rem; |
| - | height: 2.25rem; |
| - | background: white; |
| - | border-color: #cccccc; } |
| - | div.switch label { |
| - | position: relative; |
| - | left: 0; |
| - | z-index: 2; |
| - | float: left; |
| - | width: 50%; |
| - | height: 100%; |
| - | margin: 0; |
| - | font-weight: bold; |
| - | text-align: left; |
| - | -webkit-transition: all 0.1s ease-out; |
| - | -moz-transition: all 0.1s ease-out; |
| - | transition: all 0.1s ease-out; } |
| - | div.switch input { |
| - | position: absolute; |
| - | z-index: 3; |
| - | opacity: 0; |
| - | width: 100%; |
| - | height: 100%; |
| - | -moz-appearance: none; } |
| - | div.switch input:hover, div.switch input:focus { |
| - | cursor: pointer; } |
| - | div.switch span:last-child { |
| - | position: absolute; |
| - | top: -1px; |
| - | left: -1px; |
| - | z-index: 1; |
| - | display: block; |
| - | padding: 0; |
| - | border-width: 1px; |
| - | border-style: solid; |
| - | -webkit-transition: all 0.1s ease-out; |
| - | -moz-transition: all 0.1s ease-out; |
| - | transition: all 0.1s ease-out; } |
| - | div.switch input:not(:checked) + label { |
| - | opacity: 0; } |
| - | div.switch input:checked { |
| - | display: none !important; } |
| - | div.switch input { |
| - | left: 0; |
| - | display: block !important; } |
| - | div.switch input:first-of-type + label, |
| - | div.switch input:first-of-type + span + label { |
| - | left: -50%; } |
| - | div.switch input:first-of-type:checked + label, |
| - | div.switch input:first-of-type:checked + span + label { |
| - | left: 0%; } |
| - | div.switch input:last-of-type + label, |
| - | div.switch input:last-of-type + span + label { |
| - | right: -50%; |
| - | left: auto; |
| - | text-align: right; } |
| - | div.switch input:last-of-type:checked + label, |
| - | div.switch input:last-of-type:checked + span + label { |
| - | right: 0%; |
| - | left: auto; } |
| - | div.switch span.custom { |
| - | display: none !important; } |
| - | form.custom div.switch .hidden-field { |
| - | margin-left: auto; |
| - | position: absolute; |
| - | visibility: visible; } |
| - | div.switch label { |
| - | padding: 0; |
| - | line-height: 2.3rem; |
| - | font-size: 0.875rem; } |
| - | div.switch input:first-of-type:checked ~ span:last-child { |
| - | left: 100%; |
| - | margin-left: -2.1875rem; } |
| - | div.switch span:last-child { |
| - | width: 2.25rem; |
| - | height: 2.25rem; } |
| - | div.switch span:last-child { |
| - | border-color: #b3b3b3; |
| - | background: white; |
| - | background: -moz-linear-gradient(top, white 0%, #f2f2f2 100%); |
| - | background: -webkit-linear-gradient(top, white 0%, #f2f2f2 100%); |
| - | background: linear-gradient(to bottom, white 0%, #f2f2f2 100%); |
| - | -webkit-box-shadow: 2px 0 10px 0 rgba(0, 0, 0, 0.07), 1000px 0 0 1000px #f3faf6, -2px 0 10px 0 rgba(0, 0, 0, 0.07), -1000px 0 0 1000px whitesmoke; |
| - | box-shadow: 2px 0 10px 0 rgba(0, 0, 0, 0.07), 1000px 0 0 980px #f3faf6, -2px 0 10px 0 rgba(0, 0, 0, 0.07), -1000px 0 0 1000px whitesmoke; } |
| - | div.switch:hover span:last-child, div.switch:focus span:last-child { |
| - | background: white; |
| - | background: -moz-linear-gradient(top, white 0%, #e6e6e6 100%); |
| - | background: -webkit-linear-gradient(top, white 0%, #e6e6e6 100%); |
| - | background: linear-gradient(to bottom, white 0%, #e6e6e6 100%); } |
| - | div.switch:active { |
| - | background: transparent; } |
| - | div.switch.large { |
| - | height: 2.75rem; } |
| - | div.switch.large label { |
| - | padding: 0; |
| - | line-height: 2.3rem; |
| - | font-size: 1.0625rem; } |
| - | div.switch.large input:first-of-type:checked ~ span:last-child { |
| - | left: 100%; |
| - | margin-left: -2.6875rem; } |
| - | div.switch.large span:last-child { |
| - | width: 2.75rem; |
| - | height: 2.75rem; } |
| - | div.switch.small { |
| - | height: 1.75rem; } |
| - | div.switch.small label { |
| - | padding: 0; |
| - | line-height: 2.1rem; |
| - | font-size: 0.75rem; } |
| - | div.switch.small input:first-of-type:checked ~ span:last-child { |
| - | left: 100%; |
| - | margin-left: -1.6875rem; } |
| - | div.switch.small span:last-child { |
| - | width: 1.75rem; |
| - | height: 1.75rem; } |
| - | div.switch.tiny { |
| - | height: 1.375rem; } |
| - | div.switch.tiny label { |
| - | padding: 0; |
| - | line-height: 1.9rem; |
| - | font-size: 0.6875rem; } |
| - | div.switch.tiny input:first-of-type:checked ~ span:last-child { |
| - | left: 100%; |
| - | margin-left: -1.3125rem; } |
| - | div.switch.tiny span:last-child { |
| - | width: 1.375rem; |
| - | height: 1.375rem; } |
| - | div.switch.radius { |
| - | -webkit-border-radius: 4px; |
| - | border-radius: 4px; } |
| - | div.switch.radius span:last-child { |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; } |
| - | div.switch.round { |
| - | -webkit-border-radius: 1000px; |
| - | border-radius: 1000px; } |
| - | div.switch.round span:last-child { |
| - | -webkit-border-radius: 999px; |
| - | border-radius: 999px; } |
| - | div.switch.round label { |
| - | padding: 0 0.5625rem; } |
| - | |
| - | @-webkit-keyframes webkitSiblingBugfix { |
| - | from { |
| - | position: relative; } |
| - | |
| - | to { |
| - | position: relative; } } |
| - | |
| - | table { |
| - | background: white; |
| - | margin-bottom: 1.25rem; |
| - | border: solid 1px #dddddd; } |
| - | table thead, |
| - | table tfoot { |
| - | background: whitesmoke; } |
| - | table thead tr th, |
| - | table thead tr td, |
| - | table tfoot tr th, |
| - | table tfoot tr td { |
| - | padding: 0.5rem 0.625rem 0.625rem; |
| - | font-size: 0.875rem; |
| - | font-weight: bold; |
| - | color: #222222; |
| - | text-align: left; } |
| - | table tr th, |
| - | table tr td { |
| - | padding: 0.5625rem 0.625rem; |
| - | font-size: 0.875rem; |
| - | color: #222222; } |
| - | table tr.even, table tr.alt, table tr:nth-of-type(even) { |
| - | background: #f9f9f9; } |
| - | table thead tr th, |
| - | table tfoot tr th, |
| - | table tbody tr td, |
| - | table tr td, |
| - | table tfoot tr td { |
| - | display: table-cell; |
| - | line-height: 1.125rem; } |
| - | |
| - | .tabs { |
| - | *zoom: 1; |
| - | margin-bottom: 0 !important; } |
| - | .tabs:before, .tabs:after { |
| - | content: " "; |
| - | display: table; } |
| - | .tabs:after { |
| - | clear: both; } |
| - | .tabs dd { |
| - | position: relative; |
| - | margin-bottom: 0 !important; |
| - | top: 1px; |
| - | float: left; } |
| - | .tabs dd > a { |
| - | display: block; |
| - | background: #efefef; |
| - | color: #222222; |
| - | padding-top: 1rem; |
| - | padding-right: 2rem; |
| - | padding-bottom: 1.0625rem; |
| - | padding-left: 2rem; |
| - | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| - | font-size: 1rem; } |
| - | .tabs dd > a:hover { |
| - | background: #e1e1e1; } |
| - | .tabs dd.active a { |
| - | background: white; } |
| - | .tabs.radius dd:first-child a { |
| - | -moz-border-radius-bottomleft: 3px; |
| - | -moz-border-radius-topleft: 3px; |
| - | -webkit-border-bottom-left-radius: 3px; |
| - | -webkit-border-top-left-radius: 3px; |
| - | border-bottom-left-radius: 3px; |
| - | border-top-left-radius: 3px; } |
| - | .tabs.radius dd:last-child a { |
| - | -moz-border-radius-topright: 3px; |
| - | -moz-border-radius-bottomright: 3px; |
| - | -webkit-border-top-right-radius: 3px; |
| - | -webkit-border-bottom-right-radius: 3px; |
| - | border-top-right-radius: 3px; |
| - | border-bottom-right-radius: 3px; } |
| - | .tabs.vertical dd { |
| - | position: inherit; |
| - | float: none; |
| - | display: block; |
| - | top: auto; } |
| - | |
| - | .tabs-content { |
| - | *zoom: 1; |
| - | margin-bottom: 1.5rem; } |
| - | .tabs-content:before, .tabs-content:after { |
| - | content: " "; |
| - | display: table; } |
| - | .tabs-content:after { |
| - | clear: both; } |
| - | .tabs-content > .content { |
| - | display: none; |
| - | float: left; |
| - | padding: 0.9375rem 0; } |
| - | .tabs-content > .content.active { |
| - | display: block; } |
| - | .tabs-content > .content.contained { |
| - | padding: 0.9375rem; } |
| - | .tabs-content.vertical { |
| - | display: block; } |
| - | .tabs-content.vertical > .content { |
| - | padding: 0 0.9375rem; } |
| - | |
| - | @media only screen and (min-width: 40.063em) { |
| - | .tabs.vertical { |
| - | width: 20%; |
| - | float: left; |
| - | margin-bottom: 1.25rem; } |
| - | |
| - | .tabs-content.vertical { |
| - | width: 80%; |
| - | float: left; |
| - | margin-left: -1px; } } |
| - | /* Image Thumbnails */ |
| - | .th { |
| - | line-height: 0; |
| - | display: inline-block; |
| - | border: solid 4px white; |
| - | max-width: 100%; |
| - | -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); |
| - | box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); |
| - | -webkit-transition: all 200ms ease-out; |
| - | -moz-transition: all 200ms ease-out; |
| - | transition: all 200ms ease-out; } |
| - | .th:hover, .th:focus { |
| - | -webkit-box-shadow: 0 0 6px 1px rgba(0, 140, 186, 0.5); |
| - | box-shadow: 0 0 6px 1px rgba(0, 140, 186, 0.5); } |
| - | .th.radius { |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; } |
| - | |
| - | /* Tooltips */ |
| - | .has-tip { |
| - | border-bottom: dotted 1px #cccccc; |
| - | cursor: help; |
| - | font-weight: bold; |
| - | color: #333333; } |
| - | .has-tip:hover, .has-tip:focus { |
| - | border-bottom: dotted 1px #003f54; |
| - | color: #008cba; } |
| - | .has-tip.tip-left, .has-tip.tip-right { |
| - | float: none !important; } |
| - | |
| - | .tooltip { |
| - | display: none; |
| - | position: absolute; |
| - | z-index: 999; |
| - | font-weight: normal; |
| - | font-size: 0.875rem; |
| - | line-height: 1.3; |
| - | padding: 0.75rem; |
| - | max-width: 85%; |
| - | left: 50%; |
| - | width: 100%; |
| - | color: white; |
| - | background: #333333; |
| - | -webkit-border-radius: 3px; |
| - | border-radius: 3px; } |
| - | .tooltip > .nub { |
| - | display: block; |
| - | left: 5px; |
| - | position: absolute; |
| - | width: 0; |
| - | height: 0; |
| - | border: solid 5px; |
| - | border-color: transparent transparent #333333 transparent; |
| - | top: -10px; } |
| - | .tooltip.opened { |
| - | color: #008cba !important; |
| - | border-bottom: dotted 1px #003f54 !important; } |
| - | |
| - | .tap-to-close { |
| - | display: block; |
| - | font-size: 0.625rem; |
| - | color: #777777; |
| - | font-weight: normal; } |
| - | |
| - | @media only screen and (min-width: 40.063em) { |
| - | .tooltip > .nub { |
| - | border-color: transparent transparent #333333 transparent; |
| - | top: -10px; } |
| - | .tooltip.tip-top > .nub { |
| - | border-color: #333333 transparent transparent transparent; |
| - | top: auto; |
| - | bottom: -10px; } |
| - | .tooltip.tip-left, .tooltip.tip-right { |
| - | float: none !important; } |
| - | .tooltip.tip-left > .nub { |
| - | border-color: transparent transparent transparent #333333; |
| - | right: -10px; |
| - | left: auto; |
| - | top: 50%; |
| - | margin-top: -5px; } |
| - | .tooltip.tip-right > .nub { |
| - | border-color: transparent #333333 transparent transparent; |
| - | right: auto; |
| - | left: -10px; |
| - | top: 50%; |
| - | margin-top: -5px; } } |
| - | /* Typography resets */ |
| - | div, |
| - | dl, |
| - | dt, |
| - | dd, |
| - | ul, |
| - | ol, |
| - | li, |
| - | h1, |
| - | h2, |
| - | h3, |
| - | h4, |
| - | h5, |
| - | h6, |
| - | pre, |
| - | form, |
| - | p, |
| - | blockquote, |
| - | th, |
| - | td { |
| - | margin: 0; |
| - | padding: 0; } |
| - | |
| - | /* Default Link Styles */ |
| - | a { |
| - | color: #008cba; |
| - | text-decoration: none; |
| - | line-height: inherit; } |
| - | a:hover, a:focus { |
| - | color: #0078a0; } |
| - | a img { |
| - | border: none; } |
| - | |
| - | /* Default paragraph styles */ |
| - | p { |
| - | font-family: inherit; |
| - | font-weight: normal; |
| - | font-size: 1rem; |
| - | line-height: 1.6; |
| - | margin-bottom: 1.25rem; |
| - | text-rendering: optimizeLegibility; } |
| - | p.lead { |
| - | font-size: 1.21875rem; |
| - | line-height: 1.6; } |
| - | p aside { |
| - | font-size: 0.875rem; |
| - | line-height: 1.35; |
| - | font-style: italic; } |
| - | |
| - | /* Default header styles */ |
| - | h1, h2, h3, h4, h5, h6 { |
| - | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| - | font-weight: 300; |
| - | font-style: normal; |
| - | color: #222222; |
| - | text-rendering: optimizeLegibility; |
| - | margin-top: 0.2rem; |
| - | margin-bottom: 0.5rem; |
| - | line-height: 1.4; } |
| - | h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { |
| - | font-size: 60%; |
| - | color: #6f6f6f; |
| - | line-height: 0; } |
| - | |
| - | h1 { |
| - | font-size: 2.125rem; } |
| - | |
| - | h2 { |
| - | font-size: 1.6875rem; } |
| - | |
| - | h3 { |
| - | font-size: 1.375rem; } |
| - | |
| - | h4 { |
| - | font-size: 1.125rem; } |
| - | |
| - | h5 { |
| - | font-size: 1.125rem; } |
| - | |
| - | h6 { |
| - | font-size: 1rem; } |
| - | |
| - | .subheader { |
| - | line-height: 1.4; |
| - | color: #6f6f6f; |
| - | font-weight: 300; |
| - | margin-top: 0.2rem; |
| - | margin-bottom: 0.5rem; } |
| - | |
| - | hr { |
| - | border: solid #dddddd; |
| - | border-width: 1px 0 0; |
| - | clear: both; |
| - | margin: 1.25rem 0 1.1875rem; |
| - | height: 0; } |
| - | |
| - | /* Helpful Typography Defaults */ |
| - | em, |
| - | i { |
| - | font-style: italic; |
| - | line-height: inherit; } |
| - | |
| - | strong, |
| - | b { |
| - | font-weight: bold; |
| - | line-height: inherit; } |
| - | |
| - | small { |
| - | font-size: 60%; |
| - | line-height: inherit; } |
| - | |
| - | code { |
| - | font-family: Consolas, "Liberation Mono", Courier, monospace; |
| - | font-weight: bold; |
| - | color: #bd260d; } |
| - | |
| - | /* Lists */ |
| - | ul, |
| - | ol, |
| - | dl { |
| - | font-size: 1rem; |
| - | line-height: 1.6; |
| - | margin-bottom: 1.25rem; |
| - | list-style-position: outside; |
| - | font-family: inherit; } |
| - | |
| - | ul { |
| - | margin-left: 1.1rem; } |
| - | ul.no-bullet { |
| - | margin-left: 0; } |
| - | ul.no-bullet li ul, |
| - | ul.no-bullet li ol { |
| - | margin-left: 1.25rem; |
| - | margin-bottom: 0; |
| - | list-style: none; } |
| - | |
| - | /* Unordered Lists */ |
| - | ul li ul, |
| - | ul li ol { |
| - | margin-left: 1.25rem; |
| - | margin-bottom: 0; |
| - | font-size: 1rem; |
| - | /* Override nested font-size change */ } |
| - | ul.square li ul, ul.circle li ul, ul.disc li ul { |
| - | list-style: inherit; } |
| - | ul.square { |
| - | list-style-type: square; |
| - | margin-left: 1.1rem; } |
| - | ul.circle { |
| - | list-style-type: circle; |
| - | margin-left: 1.1rem; } |
| - | ul.disc { |
| - | list-style-type: disc; |
| - | margin-left: 1.1rem; } |
| - | ul.no-bullet { |
| - | list-style: none; } |
| - | |
| - | /* Ordered Lists */ |
| - | ol { |
| - | margin-left: 1.4rem; } |
| - | ol li ul, |
| - | ol li ol { |
| - | margin-left: 1.25rem; |
| - | margin-bottom: 0; } |
| - | |
| - | /* Definition Lists */ |
| - | dl dt { |
| - | margin-bottom: 0.3rem; |
| - | font-weight: bold; } |
| - | dl dd { |
| - | margin-bottom: 0.75rem; } |
| - | |
| - | /* Abbreviations */ |
| - | abbr, |
| - | acronym { |
| - | text-transform: uppercase; |
| - | font-size: 90%; |
| - | color: #222222; |
| - | border-bottom: 1px dotted #dddddd; |
| - | cursor: help; } |
| - | |
| - | abbr { |
| - | text-transform: none; } |
| - | |
| - | /* Blockquotes */ |
| - | blockquote { |
| - | margin: 0 0 1.25rem; |
| - | padding: 0.5625rem 1.25rem 0 1.1875rem; |
| - | border-left: 1px solid #dddddd; } |
| - | blockquote cite { |
| - | display: block; |
| - | font-size: 0.8125rem; |
| - | color: #555555; } |
| - | blockquote cite:before { |
| - | content: "\2014 \0020"; } |
| - | blockquote cite a, |
| - | blockquote cite a:visited { |
| - | color: #555555; } |
| - | |
| - | blockquote, |
| - | blockquote p { |
| - | line-height: 1.6; |
| - | color: #6f6f6f; } |
| - | |
| - | /* Microformats */ |
| - | .vcard { |
| - | display: inline-block; |
| - | margin: 0 0 1.25rem 0; |
| - | border: 1px solid #dddddd; |
| - | padding: 0.625rem 0.75rem; } |
| - | .vcard li { |
| - | margin: 0; |
| - | display: block; } |
| - | .vcard .fn { |
| - | font-weight: bold; |
| - | font-size: 0.9375rem; } |
| - | |
| - | .vevent .summary { |
| - | font-weight: bold; } |
| - | .vevent abbr { |
| - | cursor: default; |
| - | text-decoration: none; |
| - | font-weight: bold; |
| - | border: none; |
| - | padding: 0 0.0625rem; } |
| - | |
| - | @media only screen and (min-width: 40.063em) { |
| - | h1, h2, h3, h4, h5, h6 { |
| - | line-height: 1.4; } |
| - | |
| - | h1 { |
| - | font-size: 2.75rem; } |
| - | |
| - | h2 { |
| - | font-size: 2.3125rem; } |
| - | |
| - | h3 { |
| - | font-size: 1.6875rem; } |
| - | |
| - | h4 { |
| - | font-size: 1.4375rem; } } |
| - | /* |
| - | * Print styles. |
| - | * |
| - | * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/ |
| - | * Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com) |
| - | */ |
| - | .print-only { |
| - | display: none !important; } |
| - | |
| - | @media print { |
| - | * { |
| - | background: transparent !important; |
| - | color: #000 !important; |
| - | /* Black prints faster: h5bp.com/s */ |
| - | box-shadow: none !important; |
| - | text-shadow: none !important; } |
| - | |
| - | a, |
| - | a:visited { |
| - | text-decoration: underline; } |
| - | |
| - | a[href]:after { |
| - | content: " (" attr(href) ")"; } |
| - | |
| - | abbr[title]:after { |
| - | content: " (" attr(title) ")"; } |
| - | |
| - | .ir a:after, |
| - | a[href^="javascript:"]:after, |
| - | a[href^="#"]:after { |
| - | content: ""; } |
| - | |
| - | pre, |
| - | blockquote { |
| - | border: 1px solid #999; |
| - | page-break-inside: avoid; } |
| - | |
| - | thead { |
| - | display: table-header-group; |
| - | /* h5bp.com/t */ } |
| - | |
| - | tr, |
| - | img { |
| - | page-break-inside: avoid; } |
| - | |
| - | img { |
| - | max-width: 100% !important; } |
| - | |
| - | @page { |
| - | margin: 0.5cm; } |
| - | |
| - | p, |
| - | h2, |
| - | h3 { |
| - | orphans: 3; |
| - | widows: 3; } |
| - | |
| - | h2, |
| - | h3 { |
| - | page-break-after: avoid; } |
| - | |
| - | .hide-on-print { |
| - | display: none !important; } |
| - | |
| - | .print-only { |
| - | display: block !important; } |
| - | |
| - | .hide-for-print { |
| - | display: none !important; } |
| - | |
| - | .show-for-print { |
| - | display: inherit !important; } } |
| - | meta.foundation-mq-topbar { |
| - | font-family: "/only screen and (min-width:40.063em)/"; |
| - | width: 40.063em; } |
| - | |
| - | /* Wrapped around .top-bar to contain to grid width */ |
| - | .contain-to-grid { |
| - | width: 100%; |
| - | background: #333333; } |
| - | .contain-to-grid .top-bar { |
| - | margin-bottom: 0; } |
| - | |
| - | .fixed { |
| - | width: 100%; |
| - | left: 0; |
| - | position: fixed; |
| - | top: 0; |
| - | z-index: 99; } |
| - | .fixed.expanded:not(.top-bar) { |
| - | overflow-y: auto; |
| - | height: auto; |
| - | width: 100%; |
| - | max-height: 100%; } |
| - | .fixed.expanded:not(.top-bar) .title-area { |
| - | position: fixed; |
| - | width: 100%; |
| - | z-index: 99; } |
| - | .fixed.expanded:not(.top-bar) .top-bar-section { |
| - | z-index: 98; |
| - | margin-top: 45px; } |
| - | |
| - | .top-bar { |
| - | overflow: hidden; |
| - | height: 45px; |
| - | line-height: 45px; |
| - | position: relative; |
| - | background: #333333; |
| - | margin-bottom: 0; } |
| - | .top-bar ul { |
| - | margin-bottom: 0; |
| - | list-style: none; } |
| - | .top-bar .row { |
| - | max-width: none; } |
| - | .top-bar form, |
| - | .top-bar input { |
| - | margin-bottom: 0; } |
| - | .top-bar input { |
| - | height: auto; |
| - | padding-top: .35rem; |
| - | padding-bottom: .35rem; |
| - | font-size: 0.75rem; } |
| - | .top-bar .button { |
| - | padding-top: .45rem; |
| - | padding-bottom: .35rem; |
| - | margin-bottom: 0; |
| - | font-size: 0.75rem; } |
| - | .top-bar .title-area { |
| - | position: relative; |
| - | margin: 0; } |
| - | .top-bar .name { |
| - | height: 45px; |
| - | margin: 0; |
| - | font-size: 16px; } |
| - | .top-bar .name h1 { |
| - | line-height: 45px; |
| - | font-size: 1.0625rem; |
| - | margin: 0; } |
| - | .top-bar .name h1 a { |
| - | font-weight: normal; |
| - | color: white; |
| - | width: 50%; |
| - | display: block; |
| - | padding: 0 15px; } |
| - | .top-bar .toggle-topbar { |
| - | position: absolute; |
| - | right: 0; |
| - | top: 0; } |
| - | .top-bar .toggle-topbar a { |
| - | color: white; |
| - | text-transform: uppercase; |
| - | font-size: 0.8125rem; |
| - | font-weight: bold; |
| - | position: relative; |
| - | display: block; |
| - | padding: 0 15px; |
| - | height: 45px; |
| - | line-height: 45px; } |
| - | .top-bar .toggle-topbar.menu-icon { |
| - | right: 15px; |
| - | top: 50%; |
| - | margin-top: -16px; |
| - | padding-left: 40px; } |
| - | .top-bar .toggle-topbar.menu-icon a { |
| - | height: 34px; |
| - | line-height: 33px; |
| - | padding: 0; |
| - | padding-right: 25px; |
| - | color: white; |
| - | position: relative; } |
| - | .top-bar .toggle-topbar.menu-icon a::after { |
| - | content: ""; |
| - | position: absolute; |
| - | right: 0; |
| - | display: block; |
| - | width: 16px; |
| - | top: 0; |
| - | height: 0; |
| - | -webkit-box-shadow: 0 10px 0 1px white, 0 16px 0 1px white, 0 22px 0 1px white; |
| - | box-shadow: 0 10px 0 1px white, 0 16px 0 1px white, 0 22px 0 1px white; } |
| - | .top-bar.expanded { |
| - | height: auto; |
| - | background: transparent; } |
| - | .top-bar.expanded .title-area { |
| - | background: #333333; } |
| - | .top-bar.expanded .toggle-topbar a { |
| - | color: #888888; } |
| - | .top-bar.expanded .toggle-topbar a span { |
| - | -webkit-box-shadow: 0 10px 0 1px #888888, 0 16px 0 1px #888888, 0 22px 0 1px #888888; |
| - | box-shadow: 0 10px 0 1px #888888, 0 16px 0 1px #888888, 0 22px 0 1px #888888; } |
| - | |
| - | .top-bar-section { |
| - | left: 0; |
| - | position: relative; |
| - | width: auto; |
| - | -webkit-transition: left 300ms ease-out; |
| - | -moz-transition: left 300ms ease-out; |
| - | transition: left 300ms ease-out; } |
| - | .top-bar-section ul { |
| - | width: 100%; |
| - | height: auto; |
| - | display: block; |
| - | background: #333333; |
| - | font-size: 16px; |
| - | margin: 0; } |
| - | .top-bar-section .divider, |
| - | .top-bar-section [role="separator"] { |
| - | border-top: solid 1px #1a1a1a; |
| - | clear: both; |
| - | height: 1px; |
| - | width: 100%; } |
| - | .top-bar-section ul li > a { |
| - | display: block; |
| - | width: 100%; |
| - | color: white; |
| - | padding: 12px 0 12px 0; |
| - | padding-left: 15px; |
| - | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| - | font-size: 0.8125rem; |
| - | font-weight: normal; |
| - | background: #333333; } |
| - | .top-bar-section ul li > a.button { |
| - | background: #008cba; |
| - | font-size: 0.8125rem; |
| - | padding-right: 15px; |
| - | padding-left: 15px; } |
| - | .top-bar-section ul li > a.button:hover { |
| - | background: #006688; } |
| - | .top-bar-section ul li > a.button.secondary { |
| - | background: #e7e7e7; } |
| - | .top-bar-section ul li > a.button.secondary:hover { |
| - | background: #cecece; } |
| - | .top-bar-section ul li > a.button.success { |
| - | background: #43ac6a; } |
| - | .top-bar-section ul li > a.button.success:hover { |
| - | background: #358854; } |
| - | .top-bar-section ul li > a.button.alert { |
| - | background: #f04124; } |
| - | .top-bar-section ul li > a.button.alert:hover { |
| - | background: #d42b0f; } |
| - | .top-bar-section ul li:hover > a { |
| - | background: #272727; |
| - | color: white; } |
| - | .top-bar-section ul li.active > a { |
| - | background: #008cba; |
| - | color: white; } |
| - | .top-bar-section ul li.active > a:hover { |
| - | background: #0078a0; } |
| - | .top-bar-section .has-form { |
| - | padding: 15px; } |
| - | .top-bar-section .has-dropdown { |
| - | position: relative; } |
| - | .top-bar-section .has-dropdown > a:after { |
| - | content: ""; |
| - | display: block; |
| - | width: 0; |
| - | height: 0; |
| - | border: inset 5px; |
| - | border-color: transparent transparent transparent rgba(255, 255, 255, 0.4); |
| - | border-left-style: solid; |
| - | margin-right: 15px; |
| - | margin-top: -4.5px; |
| - | position: absolute; |
| - | top: 50%; |
| - | right: 0; } |
| - | .top-bar-section .has-dropdown.moved { |
| - | position: static; } |
| - | .top-bar-section .has-dropdown.moved > .dropdown { |
| - | display: block; } |
| - | .top-bar-section .dropdown { |
| - | position: absolute; |
| - | left: 100%; |
| - | top: 0; |
| - | display: none; |
| - | z-index: 99; } |
| - | .top-bar-section .dropdown li { |
| - | width: 100%; |
| - | height: auto; } |
| - | .top-bar-section .dropdown li a { |
| - | font-weight: normal; |
| - | padding: 8px 15px; } |
| - | .top-bar-section .dropdown li a.parent-link { |
| - | font-weight: normal; } |
| - | .top-bar-section .dropdown li.title h5 { |
| - | margin-bottom: 0; } |
| - | .top-bar-section .dropdown li.title h5 a { |
| - | color: white; |
| - | line-height: 22.5px; |
| - | display: block; } |
| - | .top-bar-section .dropdown li.has-form { |
| - | padding: 8px 15px; } |
| - | .top-bar-section .dropdown li .button { |
| - | top: auto; } |
| - | .top-bar-section .dropdown label { |
| - | padding: 8px 15px 2px; |
| - | margin-bottom: 0; |
| - | text-transform: uppercase; |
| - | color: #777777; |
| - | font-weight: bold; |
| - | font-size: 0.625rem; } |
| - | |
| - | .js-generated { |
| - | display: block; } |
| - | |
| - | @media only screen and (min-width: 40.063em) { |
| - | .top-bar { |
| - | background: #333333; |
| - | *zoom: 1; |
| - | overflow: visible; } |
| - | .top-bar:before, .top-bar:after { |
| - | content: " "; |
| - | display: table; } |
| - | .top-bar:after { |
| - | clear: both; } |
| - | .top-bar .toggle-topbar { |
| - | display: none; } |
| - | .top-bar .title-area { |
| - | float: left; } |
| - | .top-bar .name h1 a { |
| - | width: auto; } |
| - | .top-bar input, |
| - | .top-bar .button { |
| - | font-size: 0.875rem; |
| - | position: relative; |
| - | top: 7px; } |
| - | .top-bar.expanded { |
| - | background: #333333; } |
| - | |
| - | .contain-to-grid .top-bar { |
| - | max-width: 62.5rem; |
| - | margin: 0 auto; |
| - | margin-bottom: 0; } |
| - | |
| - | .top-bar-section { |
| - | -webkit-transition: none 0 0; |
| - | -moz-transition: none 0 0; |
| - | transition: none 0 0; |
| - | left: 0 !important; } |
| - | .top-bar-section ul { |
| - | width: auto; |
| - | height: auto !important; |
| - | display: inline; } |
| - | .top-bar-section ul li { |
| - | float: left; } |
| - | .top-bar-section ul li .js-generated { |
| - | display: none; } |
| - | .top-bar-section li.hover > a:not(.button) { |
| - | background: #272727; |
| - | color: white; } |
| - | .top-bar-section li:not(.has-form) a:not(.button) { |
| - | padding: 0 15px; |
| - | line-height: 45px; |
| - | background: #333333; } |
| - | .top-bar-section li:not(.has-form) a:not(.button):hover { |
| - | background: #272727; } |
| - | .top-bar-section .has-dropdown > a { |
| - | padding-right: 35px !important; } |
| - | .top-bar-section .has-dropdown > a:after { |
| - | content: ""; |
| - | display: block; |
| - | width: 0; |
| - | height: 0; |
| - | border: inset 5px; |
| - | border-color: rgba(255, 255, 255, 0.4) transparent transparent transparent; |
| - | border-top-style: solid; |
| - | margin-top: -2.5px; |
| - | top: 22.5px; } |
| - | .top-bar-section .has-dropdown.moved { |
| - | position: relative; } |
| - | .top-bar-section .has-dropdown.moved > .dropdown { |
| - | display: none; } |
| - | .top-bar-section .has-dropdown.hover > .dropdown, .top-bar-section .has-dropdown.not-click:hover > .dropdown { |
| - | display: block; } |
| - | .top-bar-section .has-dropdown .dropdown li.has-dropdown > a:after { |
| - | border: none; |
| - | content: "\00bb"; |
| - | top: 1rem; |
| - | margin-top: -2px; |
| - | right: 5px; |
| - | line-height: 1.2; } |
| - | .top-bar-section .dropdown { |
| - | left: 0; |
| - | top: auto; |
| - | background: transparent; |
| - | min-width: 100%; } |
| - | .top-bar-section .dropdown li a { |
| - | color: white; |
| - | line-height: 1; |
| - | white-space: nowrap; |
| - | padding: 12px 15px; |
| - | background: #333333; } |
| - | .top-bar-section .dropdown li label { |
| - | white-space: nowrap; |
| - | background: #333333; } |
| - | .top-bar-section .dropdown li .dropdown { |
| - | left: 100%; |
| - | top: 0; } |
| - | .top-bar-section > ul > .divider, .top-bar-section > ul > [role="separator"] { |
| - | border-bottom: none; |
| - | border-top: none; |
| - | border-right: solid 1px #4e4e4e; |
| - | clear: none; |
| - | height: 45px; |
| - | width: 0; } |
| - | .top-bar-section .has-form { |
| - | background: #333333; |
| - | padding: 0 15px; |
| - | height: 45px; } |
| - | .top-bar-section .right li .dropdown { |
| - | left: auto; |
| - | right: 0; } |
| - | .top-bar-section .right li .dropdown li .dropdown { |
| - | right: 100%; } |
| - | .top-bar-section .left li .dropdown { |
| - | right: auto; |
| - | left: 0; } |
| - | .top-bar-section .left li .dropdown li .dropdown { |
| - | left: 100%; } |
| - | |
| - | .no-js .top-bar-section ul li:hover > a { |
| - | background: #272727; |
| - | color: white; } |
| - | .no-js .top-bar-section ul li:active > a { |
| - | background: #008cba; |
| - | color: white; } |
| - | .no-js .top-bar-section .has-dropdown:hover > .dropdown { |
| - | display: block; } } |
| - | .off-canvas-wrap { |
| - | -webkit-backface-visibility: hidden; |
| - | position: relative; |
| - | width: 100%; |
| - | overflow: hidden; } |
| - | |
| - | .inner-wrap { |
| - | -webkit-backface-visibility: hidden; |
| - | position: relative; |
| - | width: 100%; |
| - | *zoom: 1; |
| - | -webkit-transition: -webkit-transform 500ms ease; |
| - | -moz-transition: -moz-transform 500ms ease; |
| - | -ms-transition: -ms-transform 500ms ease; |
| - | -o-transition: -o-transform 500ms ease; |
| - | transition: transform 500ms ease; } |
| - | .inner-wrap:before, .inner-wrap:after { |
| - | content: " "; |
| - | display: table; } |
| - | .inner-wrap:after { |
| - | clear: both; } |
| - | |
| - | nav.tab-bar { |
| - | -webkit-backface-visibility: hidden; |
| - | background: #333333; |
| - | color: white; |
| - | height: 2.8125rem; |
| - | line-height: 2.8125rem; |
| - | position: relative; } |
| - | nav.tab-bar h1, nav.tab-bar h2, nav.tab-bar h3, nav.tab-bar h4, nav.tab-bar h5, nav.tab-bar h6 { |
| - | color: white; |
| - | font-weight: bold; |
| - | line-height: 2.8125rem; |
| - | margin: 0; } |
| - | nav.tab-bar h1, nav.tab-bar h2, nav.tab-bar h3, nav.tab-bar h4 { |
| - | font-size: 1.125rem; } |
| - | |
| - | section.left-small { |
| - | width: 2.8125rem; |
| - | height: 2.8125rem; |
| - | position: absolute; |
| - | top: 0; |
| - | border-right: solid 1px #1a1a1a; |
| - | box-shadow: 1px 0 0 #4e4e4e; |
| - | left: 0; } |
| - | |
| - | section.right-small { |
| - | width: 2.8125rem; |
| - | height: 2.8125rem; |
| - | position: absolute; |
| - | top: 0; |
| - | border-left: solid 1px #4e4e4e; |
| - | box-shadow: -1px 0 0 #1a1a1a; |
| - | right: 0; } |
| - | |
| - | section.tab-bar-section { |
| - | padding: 0 0.625rem; |
| - | position: absolute; |
| - | text-align: center; |
| - | height: 2.8125rem; |
| - | top: 0; } |
| - | @media only screen and (min-width: 40.063em) { |
| - | section.tab-bar-section { |
| - | text-align: left; } } |
| - | section.tab-bar-section.left { |
| - | left: 0; |
| - | right: 2.8125rem; } |
| - | section.tab-bar-section.right { |
| - | left: 2.8125rem; |
| - | right: 0; } |
| - | section.tab-bar-section.middle { |
| - | left: 2.8125rem; |
| - | right: 2.8125rem; } |
| - | |
| - | a.menu-icon { |
| - | text-indent: 2.1875rem; |
| - | width: 2.8125rem; |
| - | height: 2.8125rem; |
| - | display: block; |
| - | line-height: 2.0625rem; |
| - | padding: 0; |
| - | color: white; |
| - | position: relative; } |
| - | a.menu-icon span { |
| - | position: absolute; |
| - | display: block; |
| - | width: 1rem; |
| - | height: 0; |
| - | left: 0.8125rem; |
| - | top: 0.3125rem; |
| - | -webkit-box-shadow: 1px 10px 1px 1px white, 1px 16px 1px 1px white, 1px 22px 1px 1px white; |
| - | box-shadow: 0 10px 0 1px white, 0 16px 0 1px white, 0 22px 0 1px white; } |
| - | a.menu-icon:hover span { |
| - | -webkit-box-shadow: 1px 10px 1px 1px #b3b3b3, 1px 16px 1px 1px #b3b3b3, 1px 22px 1px 1px #b3b3b3; |
| - | box-shadow: 0 10px 0 1px #b3b3b3, 0 16px 0 1px #b3b3b3, 0 22px 0 1px #b3b3b3; } |
| - | |
| - | .left-off-canvas-menu { |
| - | -webkit-backface-visibility: hidden; |
| - | width: 250px; |
| - | top: 0; |
| - | bottom: 0; |
| - | height: 100%; |
| - | position: absolute; |
| - | overflow-y: auto; |
| - | background: #333333; |
| - | z-index: 1001; |
| - | box-sizing: content-box; |
| - | -webkit-transform: translate3d(-100%, 0, 0); |
| - | -moz-transform: translate3d(-100%, 0, 0); |
| - | -ms-transform: translate3d(-100%, 0, 0); |
| - | -o-transform: translate3d(-100%, 0, 0); |
| - | transform: translate3d(-100%, 0, 0); } |
| - | .left-off-canvas-menu * { |
| - | -webkit-backface-visibility: hidden; } |
| - | |
| - | .right-off-canvas-menu { |
| - | -webkit-backface-visibility: hidden; |
| - | width: 250px; |
| - | top: 0; |
| - | bottom: 0; |
| - | height: 100%; |
| - | position: absolute; |
| - | overflow-y: auto; |
| - | background: #333333; |
| - | z-index: 1001; |
| - | box-sizing: content-box; |
| - | -webkit-transform: translate3d(100%, 0, 0); |
| - | -moz-transform: translate3d(100%, 0, 0); |
| - | -ms-transform: translate3d(100%, 0, 0); |
| - | -o-transform: translate3d(100%, 0, 0); |
| - | transform: translate3d(100%, 0, 0); |
| - | right: 0; } |
| - | |
| - | ul.off-canvas-list { |
| - | list-style-type: none; |
| - | padding: 0; |
| - | margin: 0; } |
| - | ul.off-canvas-list li label { |
| - | padding: 0.3rem 0.9375rem; |
| - | color: #999999; |
| - | text-transform: uppercase; |
| - | font-weight: bold; |
| - | background: #444444; |
| - | border-top: 1px solid #5e5e5e; |
| - | border-bottom: none; |
| - | margin: 0; } |
| - | ul.off-canvas-list li a { |
| - | display: block; |
| - | padding: 0.66667rem; |
| - | color: rgba(255, 255, 255, 0.7); |
| - | border-bottom: 1px solid #262626; } |
| - | |
| - | .move-right > .inner-wrap { |
| - | -webkit-transform: translate3d(250px, 0, 0); |
| - | -moz-transform: translate3d(250px, 0, 0); |
| - | -ms-transform: translate3d(250px, 0, 0); |
| - | -o-transform: translate3d(250px, 0, 0); |
| - | transform: translate3d(250px, 0, 0); } |
| - | .move-right a.exit-off-canvas { |
| - | -webkit-backface-visibility: hidden; |
| - | transition: background 300ms ease; |
| - | cursor: pointer; |
| - | box-shadow: -4px 0 4px rgba(0, 0, 0, 0.5), 4px 0 4px rgba(0, 0, 0, 0.5); |
| - | display: block; |
| - | position: absolute; |
| - | background: rgba(255, 255, 255, 0.2); |
| - | top: 0; |
| - | bottom: 0; |
| - | left: 0; |
| - | right: 0; |
| - | z-index: 1002; |
| - | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } |
| - | @media only screen and (min-width: 40.063em) { |
| - | .move-right a.exit-off-canvas:hover { |
| - | background: rgba(255, 255, 255, 0.05); } } |
| - | |
| - | .move-left > .inner-wrap { |
| - | -webkit-transform: translate3d(-250px, 0, 0); |
| - | -moz-transform: translate3d(-250px, 0, 0); |
| - | -ms-transform: translate3d(-250px, 0, 0); |
| - | -o-transform: translate3d(-250px, 0, 0); |
| - | transform: translate3d(-250px, 0, 0); } |
| - | .move-left a.exit-off-canvas { |
| - | -webkit-backface-visibility: hidden; |
| - | transition: background 300ms ease; |
| - | cursor: pointer; |
| - | box-shadow: -4px 0 4px rgba(0, 0, 0, 0.5), 4px 0 4px rgba(0, 0, 0, 0.5); |
| - | display: block; |
| - | position: absolute; |
| - | background: rgba(255, 255, 255, 0.2); |
| - | top: 0; |
| - | bottom: 0; |
| - | left: 0; |
| - | right: 0; |
| - | z-index: 1002; |
| - | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } |
| - | @media only screen and (min-width: 40.063em) { |
| - | .move-left a.exit-off-canvas:hover { |
| - | background: rgba(255, 255, 255, 0.05); } } |
| - | |
| - | .csstransforms.no-csstransforms3d .left-off-canvas-menu { |
| - | -webkit-transform: translate(-100%, 0); |
| - | -moz-transform: translate(-100%, 0); |
| - | -ms-transform: translate(-100%, 0); |
| - | -o-transform: translate(-100%, 0); |
| - | transform: translate(-100%, 0); } |
| - | .csstransforms.no-csstransforms3d .right-off-canvas-menu { |
| - | -webkit-transform: translate(100%, 0); |
| - | -moz-transform: translate(100%, 0); |
| - | -ms-transform: translate(100%, 0); |
| - | -o-transform: translate(100%, 0); |
| - | transform: translate(100%, 0); } |
| - | .csstransforms.no-csstransforms3d .move-left > .inner-wrap { |
| - | -webkit-transform: translate(-250px, 0); |
| - | -moz-transform: translate(-250px, 0); |
| - | -ms-transform: translate(-250px, 0); |
| - | -o-transform: translate(-250px, 0); |
| - | transform: translate(-250px, 0); } |
| - | .csstransforms.no-csstransforms3d .move-right > .inner-wrap { |
| - | -webkit-transform: translate(250px, 0); |
| - | -moz-transform: translate(250px, 0); |
| - | -ms-transform: translate(250px, 0); |
| - | -o-transform: translate(250px, 0); |
| - | transform: translate(250px, 0); } |
| - | |
| - | .no-csstransforms .left-off-canvas-menu { |
| - | left: -250px; } |
| - | .no-csstransforms .right-off-canvas-menu { |
| - | right: -250px; } |
| - | .no-csstransforms .move-left > .inner-wrap { |
| - | right: 250px; } |
| - | .no-csstransforms .move-right > .inner-wrap { |
| - | left: 250px; } |
| - | |
| - | /* Foundation Visibility HTML Classes */ |
| - | .show-for-small, |
| - | .show-for-small-only, |
| - | .show-for-medium-down, |
| - | .show-for-large-down, |
| - | .hide-for-medium, |
| - | .hide-for-medium-up, |
| - | .hide-for-medium-only, |
| - | .hide-for-large, |
| - | .hide-for-large-up, |
| - | .hide-for-large-only, |
| - | .hide-for-xlarge, |
| - | .hide-for-xlarge-up, |
| - | .hide-for-xlarge-only, |
| - | .hide-for-xxlarge-up, |
| - | .hide-for-xxlarge-only { |
| - | display: inherit !important; } |
| - | |
| - | .hide-for-small, |
| - | .hide-for-small-only, |
| - | .hide-for-medium-down, |
| - | .show-for-medium, |
| - | .show-for-medium-up, |
| - | .show-for-medium-only, |
| - | .hide-for-large-down, |
| - | .show-for-large, |
| - | .show-for-large-up, |
| - | .show-for-large-only, |
| - | .show-for-xlarge, |
| - | .show-for-xlarge-up, |
| - | .show-for-xlarge-only, |
| - | .show-for-xxlarge-up, |
| - | .show-for-xxlarge-only { |
| - | display: none !important; } |
| - | |
| - | /* Specific visibility for tables */ |
| - | table.show-for-small, table.show-for-small-only, table.show-for-medium-down, table.show-for-large-down, table.hide-for-medium, table.hide-for-medium-up, table.hide-for-medium-only, table.hide-for-large, table.hide-for-large-up, table.hide-for-large-only, table.hide-for-xlarge, table.hide-for-xlarge-up, table.hide-for-xlarge-only, table.hide-for-xxlarge-up, table.hide-for-xxlarge-only { |
| - | display: table; } |
| - | |
| - | thead.show-for-small, thead.show-for-small-only, thead.show-for-medium-down, thead.show-for-large-down, thead.hide-for-medium, thead.hide-for-medium-up, thead.hide-for-medium-only, thead.hide-for-large, thead.hide-for-large-up, thead.hide-for-large-only, thead.hide-for-xlarge, thead.hide-for-xlarge-up, thead.hide-for-xlarge-only, thead.hide-for-xxlarge-up, thead.hide-for-xxlarge-only { |
| - | display: table-header-group !important; } |
| - | |
| - | tbody.show-for-small, tbody.show-for-small-only, tbody.show-for-medium-down, tbody.show-for-large-down, tbody.hide-for-medium, tbody.hide-for-medium-up, tbody.hide-for-medium-only, tbody.hide-for-large, tbody.hide-for-large-up, tbody.hide-for-large-only, tbody.hide-for-xlarge, tbody.hide-for-xlarge-up, tbody.hide-for-xlarge-only, tbody.hide-for-xxlarge-up, tbody.hide-for-xxlarge-only { |
| - | display: table-row-group !important; } |
| - | |
| - | tr.show-for-small, tr.show-for-small-only, tr.show-for-medium-down, tr.show-for-large-down, tr.hide-for-medium, tr.hide-for-medium-up, tr.hide-for-medium-only, tr.hide-for-large, tr.hide-for-large-up, tr.hide-for-large-only, tr.hide-for-xlarge, tr.hide-for-xlarge-up, tr.hide-for-xlarge-only, tr.hide-for-xxlarge-up, tr.hide-for-xxlarge-only { |
| - | display: table-row !important; } |
| - | |
| - | td.show-for-small, td.show-for-small-only, td.show-for-medium-down |
| - | td.show-for-large-down, td.hide-for-medium, td.hide-for-medium-up, td.hide-for-large, td.hide-for-large-up, td.hide-for-xlarge |
| - | td.hide-for-xlarge-up, td.hide-for-xxlarge-up, |
| - | th.show-for-small, |
| - | th.show-for-small-only, |
| - | th.show-for-medium-down |
| - | th.show-for-large-down, |
| - | th.hide-for-medium, |
| - | th.hide-for-medium-up, |
| - | th.hide-for-large, |
| - | th.hide-for-large-up, |
| - | th.hide-for-xlarge |
| - | th.hide-for-xlarge-up, |
| - | th.hide-for-xxlarge-up { |
| - | display: table-cell !important; } |
| - | |
| - | /* Medium Displays: 641px and up */ |
| - | @media only screen and (min-width: 40.063em) { |
| - | .hide-for-small, |
| - | .hide-for-small-only, |
| - | .show-for-medium, |
| - | .show-for-medium-down, |
| - | .show-for-medium-up, |
| - | .show-for-medium-only, |
| - | .hide-for-large, |
| - | .hide-for-large-up, |
| - | .hide-for-large-only, |
| - | .hide-for-xlarge, |
| - | .hide-for-xlarge-up, |
| - | .hide-for-xlarge-only, |
| - | .hide-for-xxlarge-up, |
| - | .hide-for-xxlarge-only { |
| - | display: inherit !important; } |
| - | |
| - | .show-for-small, |
| - | .show-for-small-only, |
| - | .hide-for-medium, |
| - | .hide-for-medium-down, |
| - | .hide-for-medium-up, |
| - | .hide-for-medium-only, |
| - | .hide-for-large-down, |
| - | .show-for-large, |
| - | .show-for-large-up, |
| - | .show-for-large-only, |
| - | .show-for-xlarge, |
| - | .show-for-xlarge-up, |
| - | .show-for-xlarge-only, |
| - | .show-for-xxlarge-up, |
| - | .show-for-xxlarge-only { |
| - | display: none !important; } |
| - | |
| - | /* Specific visibility for tables */ |
| - | table.hide-for-small, table.hide-for-small-only, table.show-for-medium, table.show-for-medium-down, table.show-for-medium-up, table.show-for-medium-only, table.hide-for-large, table.hide-for-large-up, table.hide-for-large-only, table.hide-for-xlarge, table.hide-for-xlarge-up, table.hide-for-xlarge-only, table.hide-for-xxlarge-up, table.hide-for-xxlarge-only { |
| - | display: table; } |
| - | |
| - | thead.hide-for-small, thead.hide-for-small-only, thead.show-for-medium, thead.show-for-medium-down, thead.show-for-medium-up, thead.show-for-medium-only, thead.hide-for-large, thead.hide-for-large-up, thead.hide-for-large-only, thead.hide-for-xlarge, thead.hide-for-xlarge-up, thead.hide-for-xlarge-only, thead.hide-for-xxlarge-up, thead.hide-for-xxlarge-only { |
| - | display: table-header-group !important; } |
| - | |
| - | tbody.hide-for-small, tbody.hide-for-small-only, tbody.show-for-medium, tbody.show-for-medium-down, tbody.show-for-medium-up, tbody.show-for-medium-only, tbody.hide-for-large, tbody.hide-for-large-up, tbody.hide-for-large-only, tbody.hide-for-xlarge, tbody.hide-for-xlarge-up, tbody.hide-for-xlarge-only, tbody.hide-for-xxlarge-up, tbody.hide-for-xxlarge-only { |
| - | display: table-row-group !important; } |
| - | |
| - | tr.hide-for-small, tr.hide-for-small-only, tr.show-for-medium, tr.show-for-medium-down, tr.show-for-medium-up, tr.show-for-medium-only, tr.hide-for-large, tr.hide-for-large-up, tr.hide-for-large-only, tr.hide-for-xlarge, tr.hide-for-xlarge-up, tr.hide-for-xlarge-only, tr.hide-for-xxlarge-up, tr.hide-for-xxlarge-only { |
| - | display: table-row !important; } |
| - | |
| - | td.hide-for-small, td.hide-for-small-only, td.show-for-medium, td.show-for-medium-down, td.show-for-medium-up, td.show-for-medium-only, td.hide-for-large, td.hide-for-large-up, td.hide-for-large-only, td.hide-for-xlarge, td.hide-for-xlarge-up, td.hide-for-xlarge-only, td.hide-for-xxlarge-up, td.hide-for-xxlarge-only, |
| - | th.hide-for-small, |
| - | th.hide-for-small-only, |
| - | th.show-for-medium, |
| - | th.show-for-medium-down, |
| - | th.show-for-medium-up, |
| - | th.show-for-medium-only, |
| - | th.hide-for-large, |
| - | th.hide-for-large-up, |
| - | th.hide-for-large-only, |
| - | th.hide-for-xlarge, |
| - | th.hide-for-xlarge-up, |
| - | th.hide-for-xlarge-only, |
| - | th.hide-for-xxlarge-up, |
| - | th.hide-for-xxlarge-only { |
| - | display: table-cell !important; } } |
| - | /* Large Displays: 1024px and up */ |
| - | @media only screen and (min-width: 64.063em) { |
| - | .hide-for-small, |
| - | .hide-for-small-only, |
| - | .hide-for-medium, |
| - | .hide-for-medium-down, |
| - | .hide-for-medium-only, |
| - | .show-for-medium-up, |
| - | .show-for-large, |
| - | .show-for-large-up, |
| - | .show-for-large-only, |
| - | .hide-for-xlarge, |
| - | .hide-for-xlarge-up, |
| - | .hide-for-xlarge-only, |
| - | .hide-for-xxlarge-up, |
| - | .hide-for-xxlarge-only { |
| - | display: inherit !important; } |
| - | |
| - | .show-for-small-only, |
| - | .show-for-medium, |
| - | .show-for-medium-down, |
| - | .show-for-medium-only, |
| - | .hide-for-large, |
| - | .hide-for-large-up, |
| - | .hide-for-large-only, |
| - | .show-for-xlarge, |
| - | .show-for-xlarge-up, |
| - | .show-for-xlarge-only, |
| - | .show-for-xxlarge-up, |
| - | .show-for-xxlarge-only { |
| - | display: none !important; } |
| - | |
| - | /* Specific visibility for tables */ |
| - | table.hide-for-small, table.hide-for-small-only, table.hide-for-medium, table.hide-for-medium-down, table.hide-for-medium-only, table.show-for-medium-up, table.show-for-large, table.show-for-large-up, table.show-for-large-only, table.hide-for-xlarge, table.hide-for-xlarge-up, table.hide-for-xlarge-only, table.hide-for-xxlarge-up, table.hide-for-xxlarge-only { |
| - | display: table; } |
| - | |
| - | thead.hide-for-small, thead.hide-for-small-only, thead.hide-for-medium, thead.hide-for-medium-down, thead.hide-for-medium-only, thead.show-for-medium-up, thead.show-for-large, thead.show-for-large-up, thead.show-for-large-only, thead.hide-for-xlarge, thead.hide-for-xlarge-up, thead.hide-for-xlarge-only, thead.hide-for-xxlarge-up, thead.hide-for-xxlarge-only { |
| - | display: table-header-group !important; } |
| - | |
| - | tbody.hide-for-small, tbody.hide-for-small-only, tbody.hide-for-medium, tbody.hide-for-medium-down, tbody.hide-for-medium-only, tbody.show-for-medium-up, tbody.show-for-large, tbody.show-for-large-up, tbody.show-for-large-only, tbody.hide-for-xlarge, tbody.hide-for-xlarge-up, tbody.hide-for-xlarge-only, tbody.hide-for-xxlarge-up, tbody.hide-for-xxlarge-only { |
| - | display: table-row-group !important; } |
| - | |
| - | tr.hide-for-small, tr.hide-for-small-only, tr.hide-for-medium, tr.hide-for-medium-down, tr.hide-for-medium-only, tr.show-for-medium-up, tr.show-for-large, tr.show-for-large-up, tr.show-for-large-only, tr.hide-for-xlarge, tr.hide-for-xlarge-up, tr.hide-for-xlarge-only, tr.hide-for-xxlarge-up, tr.hide-for-xxlarge-only { |
| - | display: table-row !important; } |
| - | |
| - | td.hide-for-small, td.hide-for-small-only, td.hide-for-medium, td.hide-for-medium-down, td.hide-for-medium-only, td.show-for-medium-up, td.show-for-large, td.show-for-large-up, td.show-for-large-only, td.hide-for-xlarge, td.hide-for-xlarge-up, td.hide-for-xlarge-only, td.hide-for-xxlarge-up, td.hide-for-xxlarge-only, |
| - | th.hide-for-small, |
| - | th.hide-for-small-only, |
| - | th.hide-for-medium, |
| - | th.hide-for-medium-down, |
| - | th.hide-for-medium-only, |
| - | th.show-for-medium-up, |
| - | th.show-for-large, |
| - | th.show-for-large-up, |
| - | th.show-for-large-only, |
| - | th.hide-for-xlarge, |
| - | th.hide-for-xlarge-up, |
| - | th.hide-for-xlarge-only, |
| - | th.hide-for-xxlarge-up, |
| - | th.hide-for-xxlarge-only { |
| - | display: table-cell !important; } } |
| - | /* X-Large Displays: 1441 and up */ |
| - | @media only screen and (min-width: 90.063em) { |
| - | .hide-for-small, |
| - | .hide-for-small-only, |
| - | .hide-for-medium, |
| - | .hide-for-medium-down, |
| - | .hide-for-medium-only, |
| - | .show-for-medium-up, |
| - | .show-for-large-up, |
| - | .hide-for-large-only, |
| - | .show-for-xlarge, |
| - | .show-for-xlarge-up, |
| - | .show-for-xlarge-only, |
| - | .hide-for-xxlarge-up, |
| - | .hide-for-xxlarge-only { |
| - | display: inherit !important; } |
| - | |
| - | .show-for-small-only, |
| - | .show-for-medium, |
| - | .show-for-medium-down, |
| - | .show-for-medium-only, |
| - | .show-for-large, |
| - | .show-for-large-only, |
| - | .show-for-large-down, |
| - | .hide-for-xlarge, |
| - | .hide-for-xlarge-up, |
| - | .hide-for-xlarge-only, |
| - | .show-for-xxlarge-up, |
| - | .show-for-xxlarge-only { |
| - | display: none !important; } |
| - | |
| - | /* Specific visibility for tables */ |
| - | table.hide-for-small, table.hide-for-small-only, table.hide-for-medium, table.hide-for-medium-down, table.hide-for-medium-only, table.show-for-medium-up, table.show-for-large-up, table.hide-for-large-only, table.show-for-xlarge, table.show-for-xlarge-up, table.show-for-xlarge-only, table.hide-for-xxlarge-up, table.hide-for-xxlarge-only { |
| - | display: table; } |
| - | |
| - | thead.hide-for-small, thead.hide-for-small-only, thead.hide-for-medium, thead.hide-for-medium-down, thead.hide-for-medium-only, thead.show-for-medium-up, thead.show-for-large-up, thead.hide-for-large-only, thead.show-for-xlarge, thead.show-for-xlarge-up, thead.show-for-xlarge-only, thead.hide-for-xxlarge-up, thead.hide-for-xxlarge-only { |
| - | display: table-header-group !important; } |
| - | |
| - | tbody.hide-for-small, tbody.hide-for-small-only, tbody.hide-for-medium, tbody.hide-for-medium-down, tbody.hide-for-medium-only, tbody.show-for-medium-up, tbody.show-for-large-up, tbody.hide-for-large-only, tbody.show-for-xlarge, tbody.show-for-xlarge-up, tbody.show-for-xlarge-only, tbody.hide-for-xxlarge-up, tbody.hide-for-xxlarge-only { |
| - | display: table-row-group !important; } |
| - | |
| - | tr.hide-for-small, tr.hide-for-small-only, tr.hide-for-medium, tr.hide-for-medium-down, tr.hide-for-medium-only, tr.show-for-medium-up, tr.show-for-large-up, tr.hide-for-large-only, tr.show-for-xlarge, tr.show-for-xlarge-up, tr.show-for-xlarge-only, tr.hide-for-xxlarge-up, tr.hide-for-xxlarge-only { |
| - | display: table-row !important; } |
| - | |
| - | td.hide-for-small, td.hide-for-small-only, td.hide-for-medium, td.hide-for-medium-down, td.hide-for-medium-only, td.show-for-medium-up, td.show-for-large-up, td.hide-for-large-only, td.show-for-xlarge, td.show-for-xlarge-up, td.show-for-xlarge-only, td.hide-for-xxlarge-up, td.hide-for-xxlarge-only, |
| - | th.hide-for-small, |
| - | th.hide-for-small-only, |
| - | th.hide-for-medium, |
| - | th.hide-for-medium-down, |
| - | th.hide-for-medium-only, |
| - | th.show-for-medium-up, |
| - | th.show-for-large-up, |
| - | th.hide-for-large-only, |
| - | th.show-for-xlarge, |
| - | th.show-for-xlarge-up, |
| - | th.show-for-xlarge-only, |
| - | th.hide-for-xxlarge-up, |
| - | th.hide-for-xxlarge-only { |
| - | display: table-cell !important; } } |
| - | /* XX-Large Displays: 1920 and up */ |
| - | @media only screen and (min-width: 120.063em) { |
| - | .hide-for-small, |
| - | .hide-for-small-only, |
| - | .hide-for-medium, |
| - | .hide-for-medium-down, |
| - | .hide-for-medium-only, |
| - | .show-for-medium-up, |
| - | .show-for-large-up, |
| - | .hide-for-large-only, |
| - | .hide-for-xlarge-only, |
| - | .show-for-xlarge-up, |
| - | .show-for-xxlarge-up, |
| - | .show-for-xxlarge-only { |
| - | display: inherit !important; } |
| - | |
| - | .show-for-small-only, |
| - | .show-for-medium, |
| - | .show-for-medium-down, |
| - | .show-for-medium-only, |
| - | .show-for-large, |
| - | .show-for-large-only, |
| - | .show-for-large-down, |
| - | .hide-for-xlarge, |
| - | .show-for-xlarge-only, |
| - | .hide-for-xxlarge-up, |
| - | .hide-for-xxlarge-only { |
| - | display: none !important; } |
| - | |
| - | /* Specific visibility for tables */ |
| - | table.hide-for-small, table.hide-for-small-only, table.hide-for-medium, table.hide-for-medium-down, table.hide-for-medium-only, table.show-for-medium-up, table.show-for-large-up, table.hide-for-xlarge-only, table.show-for-xlarge-up, table.show-for-xxlarge-up, table.show-for-xxlarge-only { |
| - | display: table; } |
| - | |
| - | thead.hide-for-small, thead.hide-for-small-only, thead.hide-for-medium, thead.hide-for-medium-down, thead.hide-for-medium-only, thead.show-for-medium-up, thead.show-for-large-up, thead.hide-for-xlarge-only, thead.show-for-xlarge-up, thead.show-for-xxlarge-up, thead.show-for-xxlarge-only { |
| - | display: table-header-group !important; } |
| - | |
| - | tbody.hide-for-small, tbody.hide-for-small-only, tbody.hide-for-medium, tbody.hide-for-medium-down, tbody.hide-for-medium-only, tbody.show-for-medium-up, tbody.show-for-large-up, tbody.hide-for-xlarge-only, tbody.show-for-xlarge-up, tbody.show-for-xxlarge-up, tbody.show-for-xxlarge-only { |
| - | display: table-row-group !important; } |
| - | |
| - | tr.hide-for-small, tr.hide-for-small-only, tr.hide-for-medium, tr.hide-for-medium-down, tr.hide-for-medium-only, tr.show-for-medium-up, tr.show-for-large-up, tr.hide-for-xlarge-only, tr.show-for-xlarge-up, tr.show-for-xxlarge-up, tr.show-for-xxlarge-only { |
| - | display: table-row !important; } |
| - | |
| - | td.hide-for-small, td.hide-for-small-only, td.hide-for-medium, td.hide-for-medium-down, td.hide-for-medium-only, td.show-for-medium-up, td.show-for-large-up, td.hide-for-xlarge-only, td.show-for-xlarge-up, td.show-for-xxlarge-up, td.show-for-xxlarge-only, |
| - | th.hide-for-small, |
| - | th.hide-for-small-only, |
| - | th.hide-for-medium, |
| - | th.hide-for-medium-down, |
| - | th.hide-for-medium-only, |
| - | th.show-for-medium-up, |
| - | th.show-for-large-up, |
| - | th.hide-for-xlarge-only, |
| - | th.show-for-xlarge-up, |
| - | th.show-for-xxlarge-up, |
| - | th.show-for-xxlarge-only { |
| - | display: table-cell !important; } } |
| - | /* Orientation targeting */ |
| - | .show-for-landscape, |
| - | .hide-for-portrait { |
| - | display: inherit !important; } |
| - | |
| - | .hide-for-landscape, |
| - | .show-for-portrait { |
| - | display: none !important; } |
| - | |
| - | /* Specific visibility for tables */ |
| - | table.hide-for-landscape, table.show-for-portrait { |
| - | display: table; } |
| - | |
| - | thead.hide-for-landscape, thead.show-for-portrait { |
| - | display: table-header-group !important; } |
| - | |
| - | tbody.hide-for-landscape, tbody.show-for-portrait { |
| - | display: table-row-group !important; } |
| - | |
| - | tr.hide-for-landscape, tr.show-for-portrait { |
| - | display: table-row !important; } |
| - | |
| - | td.hide-for-landscape, td.show-for-portrait, |
| - | th.hide-for-landscape, |
| - | th.show-for-portrait { |
| - | display: table-cell !important; } |
| - | |
| - | @media only screen and (orientation: landscape) { |
| - | .show-for-landscape, |
| - | .hide-for-portrait { |
| - | display: inherit !important; } |
| - | |
| - | .hide-for-landscape, |
| - | .show-for-portrait { |
| - | display: none !important; } |
| - | |
| - | /* Specific visibility for tables */ |
| - | table.show-for-landscape, table.hide-for-portrait { |
| - | display: table; } |
| - | |
| - | thead.show-for-landscape, thead.hide-for-portrait { |
| - | display: table-header-group !important; } |
| - | |
| - | tbody.show-for-landscape, tbody.hide-for-portrait { |
| - | display: table-row-group !important; } |
| - | |
| - | tr.show-for-landscape, tr.hide-for-portrait { |
| - | display: table-row !important; } |
| - | |
| - | td.show-for-landscape, td.hide-for-portrait, |
| - | th.show-for-landscape, |
| - | th.hide-for-portrait { |
| - | display: table-cell !important; } } |
| - | @media only screen and (orientation: portrait) { |
| - | .show-for-portrait, |
| - | .hide-for-landscape { |
| - | display: inherit !important; } |
| - | |
| - | .hide-for-portrait, |
| - | .show-for-landscape { |
| - | display: none !important; } |
| - | |
| - | /* Specific visibility for tables */ |
| - | table.show-for-portrait, table.hide-for-landscape { |
| - | display: table; } |
| - | |
| - | thead.show-for-portrait, thead.hide-for-landscape { |
| - | display: table-header-group !important; } |
| - | |
| - | tbody.show-for-portrait, tbody.hide-for-landscape { |
| - | display: table-row-group !important; } |
| - | |
| - | tr.show-for-portrait, tr.hide-for-landscape { |
| - | display: table-row !important; } |
| - | |
| - | td.show-for-portrait, td.hide-for-landscape, |
| - | th.show-for-portrait, |
| - | th.hide-for-landscape { |
| - | display: table-cell !important; } } |
| - | /* Touch-enabled device targeting */ |
| - | .show-for-touch { |
| - | display: none !important; } |
| - | |
| - | .hide-for-touch { |
| - | display: inherit !important; } |
| - | |
| - | .touch .show-for-touch { |
| - | display: inherit !important; } |
| - | |
| - | .touch .hide-for-touch { |
| - | display: none !important; } |
| - | |
| - | /* Specific visibility for tables */ |
| - | table.hide-for-touch { |
| - | display: table; } |
| - | |
| - | .touch table.show-for-touch { |
| - | display: table; } |
| - | |
| - | thead.hide-for-touch { |
| - | display: table-header-group !important; } |
| - | |
| - | .touch thead.show-for-touch { |
| - | display: table-header-group !important; } |
| - | |
| - | tbody.hide-for-touch { |
| - | display: table-row-group !important; } |
| - | |
| - | .touch tbody.show-for-touch { |
| - | display: table-row-group !important; } |
| - | |
| - | tr.hide-for-touch { |
| - | display: table-row !important; } |
| - | |
| - | .touch tr.show-for-touch { |
| - | display: table-row !important; } |
| - | |
| - | td.hide-for-touch { |
| - | display: table-cell !important; } |
| - | |
| - | .touch td.show-for-touch { |
| - | display: table-cell !important; } |
| - | |
| - | th.hide-for-touch { |
| - | display: table-cell !important; } |
| - | |
| - | .touch th.show-for-touch { |
| - | display: table-cell !important; } |
generators/foundation5/public/stylesheets/app.min.css
+0
-1
| @@ | @@ -1 +0,0 @@ |
| - | @charset "UTF-8";meta.foundation-mq-small{font-family:"/only screen and (max-width: 40em)/";width:0}meta.foundation-mq-medium{font-family:"/only screen and (min-width:40.063em)/";width:40.063em}meta.foundation-mq-large{font-family:"/only screen and (min-width:64.063em)/";width:64.063em}meta.foundation-mq-xlarge{font-family:"/only screen and (min-width:90.063em)/";width:90.063em}meta.foundation-mq-xxlarge{font-family:"/only screen and (min-width:120.063em)/";width:120.063em}*,:after,:before{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}body,html{font-size:100%}body{background:#fff;color:#222;padding:0;margin:0;font-family:"Helvetica Neue",Helvetica,Helvetica,Arial,sans-serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:default}a:hover{cursor:pointer}embed,img,object{max-width:100%;height:auto}embed,object{height:100%}img{-ms-interpolation-mode:bicubic}#map_canvas embed,#map_canvas img,#map_canvas object,.map_canvas embed,.map_canvas img,.map_canvas object{max-width:none!important}.left{float:left!important}.right{float:right!important}.clearfix{*zoom:1}.clearfix:after,.clearfix:before{content:" ";display:table}.clearfix:after{clear:both}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}.text-justify{text-align:justify!important}.hide{display:none}.start{float:left!important}.end{float:right!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img{display:inline-block;vertical-align:middle}textarea{min-height:50px}select{width:100%}.row{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5rem;*zoom:1}.row:after,.row:before{content:" ";display:table}.row:after{clear:both}.row.collapse>.column,.row.collapse>.columns{position:relative;padding-left:0;padding-right:0;float:left}.row.collapse .row{margin-left:0;margin-right:0}.row .row{width:auto;margin-left:-.9375rem;margin-right:-.9375rem;margin-top:0;margin-bottom:0;max-width:none;*zoom:1}.row .row:after,.row .row:before{content:" ";display:table}.row .row:after{clear:both}.row .row.collapse{width:auto;margin:0;max-width:none;*zoom:1}.row .row.collapse:after,.row .row.collapse:before{content:" ";display:table}.row .row.collapse:after{clear:both}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;width:100%;float:left}@media only screen{.column.small-centered,.columns.small-centered{position:relative;margin-left:auto;margin-right:auto;float:none}.column.small-uncentered,.columns.small-uncentered{margin-left:0;margin-right:0;float:left}.column.small-uncentered.opposite,.columns.small-uncentered.opposite{float:right}.small-push-1{position:relative;left:8.33333%;right:auto}.small-pull-1{position:relative;right:8.33333%;left:auto}.small-push-2{position:relative;left:16.66667%;right:auto}.small-pull-2{position:relative;right:16.66667%;left:auto}.small-push-3{position:relative;left:25%;right:auto}.small-pull-3{position:relative;right:25%;left:auto}.small-push-4{position:relative;left:33.33333%;right:auto}.small-pull-4{position:relative;right:33.33333%;left:auto}.small-push-5{position:relative;left:41.66667%;right:auto}.small-pull-5{position:relative;right:41.66667%;left:auto}.small-push-6{position:relative;left:50%;right:auto}.small-pull-6{position:relative;right:50%;left:auto}.small-push-7{position:relative;left:58.33333%;right:auto}.small-pull-7{position:relative;right:58.33333%;left:auto}.small-push-8{position:relative;left:66.66667%;right:auto}.small-pull-8{position:relative;right:66.66667%;left:auto}.small-push-9{position:relative;left:75%;right:auto}.small-pull-9{position:relative;right:75%;left:auto}.small-push-10{position:relative;left:83.33333%;right:auto}.small-pull-10{position:relative;right:83.33333%;left:auto}.small-push-11{position:relative;left:91.66667%;right:auto}.small-pull-11{position:relative;right:91.66667%;left:auto}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;float:left}.small-1{position:relative;width:8.33333%}.small-2{position:relative;width:16.66667%}.small-3{position:relative;width:25%}.small-4{position:relative;width:33.33333%}.small-5{position:relative;width:41.66667%}.small-6{position:relative;width:50%}.small-7{position:relative;width:58.33333%}.small-8{position:relative;width:66.66667%}.small-9{position:relative;width:75%}.small-10{position:relative;width:83.33333%}.small-11{position:relative;width:91.66667%}.small-12{position:relative;width:100%}[class*=column]+[class*=column]:last-child{float:right}[class*=column]+[class*=column].end{float:left}.small-offset-0{position:relative;margin-left:0!important}.small-offset-1{position:relative;margin-left:8.33333%!important}.small-offset-2{position:relative;margin-left:16.66667%!important}.small-offset-3{position:relative;margin-left:25%!important}.small-offset-4{position:relative;margin-left:33.33333%!important}.small-offset-5{position:relative;margin-left:41.66667%!important}.small-offset-6{position:relative;margin-left:50%!important}.small-offset-7{position:relative;margin-left:58.33333%!important}.small-offset-8{position:relative;margin-left:66.66667%!important}.small-offset-9{position:relative;margin-left:75%!important}.small-offset-10{position:relative;margin-left:83.33333%!important}.column.small-reset-order,.columns.small-reset-order{margin-left:0;margin-right:0;left:auto;right:auto;float:left}}@media only screen and (min-width:40.063em){.column.medium-centered,.columns.medium-centered{position:relative;margin-left:auto;margin-right:auto;float:none}.column.medium-uncentered,.columns.medium-uncentered{margin-left:0;margin-right:0;float:left}.column.medium-uncentered.opposite,.columns.medium-uncentered.opposite{float:right}.medium-push-1{position:relative;left:8.33333%;right:auto}.medium-pull-1{position:relative;right:8.33333%;left:auto}.medium-push-2{position:relative;left:16.66667%;right:auto}.medium-pull-2{position:relative;right:16.66667%;left:auto}.medium-push-3{position:relative;left:25%;right:auto}.medium-pull-3{position:relative;right:25%;left:auto}.medium-push-4{position:relative;left:33.33333%;right:auto}.medium-pull-4{position:relative;right:33.33333%;left:auto}.medium-push-5{position:relative;left:41.66667%;right:auto}.medium-pull-5{position:relative;right:41.66667%;left:auto}.medium-push-6{position:relative;left:50%;right:auto}.medium-pull-6{position:relative;right:50%;left:auto}.medium-push-7{position:relative;left:58.33333%;right:auto}.medium-pull-7{position:relative;right:58.33333%;left:auto}.medium-push-8{position:relative;left:66.66667%;right:auto}.medium-pull-8{position:relative;right:66.66667%;left:auto}.medium-push-9{position:relative;left:75%;right:auto}.medium-pull-9{position:relative;right:75%;left:auto}.medium-push-10{position:relative;left:83.33333%;right:auto}.medium-pull-10{position:relative;right:83.33333%;left:auto}.medium-push-11{position:relative;left:91.66667%;right:auto}.medium-pull-11{position:relative;right:91.66667%;left:auto}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;float:left}.medium-1{position:relative;width:8.33333%}.medium-2{position:relative;width:16.66667%}.medium-3{position:relative;width:25%}.medium-4{position:relative;width:33.33333%}.medium-5{position:relative;width:41.66667%}.medium-6{position:relative;width:50%}.medium-7{position:relative;width:58.33333%}.medium-8{position:relative;width:66.66667%}.medium-9{position:relative;width:75%}.medium-10{position:relative;width:83.33333%}.medium-11{position:relative;width:91.66667%}.medium-12{position:relative;width:100%}[class*=column]+[class*=column]:last-child{float:right}[class*=column]+[class*=column].end{float:left}.medium-offset-0{position:relative;margin-left:0!important}.medium-offset-1{position:relative;margin-left:8.33333%!important}.medium-offset-2{position:relative;margin-left:16.66667%!important}.medium-offset-3{position:relative;margin-left:25%!important}.medium-offset-4{position:relative;margin-left:33.33333%!important}.medium-offset-5{position:relative;margin-left:41.66667%!important}.medium-offset-6{position:relative;margin-left:50%!important}.medium-offset-7{position:relative;margin-left:58.33333%!important}.medium-offset-8{position:relative;margin-left:66.66667%!important}.medium-offset-9{position:relative;margin-left:75%!important}.medium-offset-10{position:relative;margin-left:83.33333%!important}.column.medium-reset-order,.columns.medium-reset-order{margin-left:0;margin-right:0;left:auto;right:auto;float:left}.push-1{position:relative;left:8.33333%;right:auto}.pull-1{position:relative;right:8.33333%;left:auto}.push-2{position:relative;left:16.66667%;right:auto}.pull-2{position:relative;right:16.66667%;left:auto}.push-3{position:relative;left:25%;right:auto}.pull-3{position:relative;right:25%;left:auto}.push-4{position:relative;left:33.33333%;right:auto}.pull-4{position:relative;right:33.33333%;left:auto}.push-5{position:relative;left:41.66667%;right:auto}.pull-5{position:relative;right:41.66667%;left:auto}.push-6{position:relative;left:50%;right:auto}.pull-6{position:relative;right:50%;left:auto}.push-7{position:relative;left:58.33333%;right:auto}.pull-7{position:relative;right:58.33333%;left:auto}.push-8{position:relative;left:66.66667%;right:auto}.pull-8{position:relative;right:66.66667%;left:auto}.push-9{position:relative;left:75%;right:auto}.pull-9{position:relative;right:75%;left:auto}.push-10{position:relative;left:83.33333%;right:auto}.pull-10{position:relative;right:83.33333%;left:auto}.push-11{position:relative;left:91.66667%;right:auto}.pull-11{position:relative;right:91.66667%;left:auto}}@media only screen and (min-width:64.063em){.column.large-centered,.columns.large-centered{position:relative;margin-left:auto;margin-right:auto;float:none}.column.large-uncentered,.columns.large-uncentered{margin-left:0;margin-right:0;float:left}.column.large-uncentered.opposite,.columns.large-uncentered.opposite{float:right}.large-push-1{position:relative;left:8.33333%;right:auto}.large-pull-1{position:relative;right:8.33333%;left:auto}.large-push-2{position:relative;left:16.66667%;right:auto}.large-pull-2{position:relative;right:16.66667%;left:auto}.large-push-3{position:relative;left:25%;right:auto}.large-pull-3{position:relative;right:25%;left:auto}.large-push-4{position:relative;left:33.33333%;right:auto}.large-pull-4{position:relative;right:33.33333%;left:auto}.large-push-5{position:relative;left:41.66667%;right:auto}.large-pull-5{position:relative;right:41.66667%;left:auto}.large-push-6{position:relative;left:50%;right:auto}.large-pull-6{position:relative;right:50%;left:auto}.large-push-7{position:relative;left:58.33333%;right:auto}.large-pull-7{position:relative;right:58.33333%;left:auto}.large-push-8{position:relative;left:66.66667%;right:auto}.large-pull-8{position:relative;right:66.66667%;left:auto}.large-push-9{position:relative;left:75%;right:auto}.large-pull-9{position:relative;right:75%;left:auto}.large-push-10{position:relative;left:83.33333%;right:auto}.large-pull-10{position:relative;right:83.33333%;left:auto}.large-push-11{position:relative;left:91.66667%;right:auto}.large-pull-11{position:relative;right:91.66667%;left:auto}.column,.columns{position:relative;padding-left:.9375rem;padding-right:.9375rem;float:left}.large-1{position:relative;width:8.33333%}.large-2{position:relative;width:16.66667%}.large-3{position:relative;width:25%}.large-4{position:relative;width:33.33333%}.large-5{position:relative;width:41.66667%}.large-6{position:relative;width:50%}.large-7{position:relative;width:58.33333%}.large-8{position:relative;width:66.66667%}.large-9{position:relative;width:75%}.large-10{position:relative;width:83.33333%}.large-11{position:relative;width:91.66667%}.large-12{position:relative;width:100%}[class*=column]+[class*=column]:last-child{float:right}[class*=column]+[class*=column].end{float:left}.large-offset-0{position:relative;margin-left:0!important}.large-offset-1{position:relative;margin-left:8.33333%!important}.large-offset-2{position:relative;margin-left:16.66667%!important}.large-offset-3{position:relative;margin-left:25%!important}.large-offset-4{position:relative;margin-left:33.33333%!important}.large-offset-5{position:relative;margin-left:41.66667%!important}.large-offset-6{position:relative;margin-left:50%!important}.large-offset-7{position:relative;margin-left:58.33333%!important}.large-offset-8{position:relative;margin-left:66.66667%!important}.large-offset-9{position:relative;margin-left:75%!important}.large-offset-10{position:relative;margin-left:83.33333%!important}.column.large-reset-order,.columns.large-reset-order{margin-left:0;margin-right:0;left:auto;right:auto;float:left}.push-1{position:relative;left:8.33333%;right:auto}.pull-1{position:relative;right:8.33333%;left:auto}.push-2{position:relative;left:16.66667%;right:auto}.pull-2{position:relative;right:16.66667%;left:auto}.push-3{position:relative;left:25%;right:auto}.pull-3{position:relative;right:25%;left:auto}.push-4{position:relative;left:33.33333%;right:auto}.pull-4{position:relative;right:33.33333%;left:auto}.push-5{position:relative;left:41.66667%;right:auto}.pull-5{position:relative;right:41.66667%;left:auto}.push-6{position:relative;left:50%;right:auto}.pull-6{position:relative;right:50%;left:auto}.push-7{position:relative;left:58.33333%;right:auto}.pull-7{position:relative;right:58.33333%;left:auto}.push-8{position:relative;left:66.66667%;right:auto}.pull-8{position:relative;right:66.66667%;left:auto}.push-9{position:relative;left:75%;right:auto}.pull-9{position:relative;right:75%;left:auto}.push-10{position:relative;left:83.33333%;right:auto}.pull-10{position:relative;right:83.33333%;left:auto}.push-11{position:relative;left:91.66667%;right:auto}.pull-11{position:relative;right:91.66667%;left:auto}}.accordion{*zoom:1;margin-bottom:0}.accordion:after,.accordion:before{content:" ";display:table}.accordion:after{clear:both}.accordion dd{display:block;margin-bottom:0!important}.accordion dd.active a{background:#e8e8e8}.accordion dd>a{background:#efefef;color:#222;padding:1rem;display:block;font-family:"Helvetica Neue",Helvetica,Helvetica,Arial,sans-serif;font-size:1rem}.accordion dd>a:hover{background:#e3e3e3}.accordion .content{display:none;padding:.9375rem}.accordion .content.active{display:block;background:#fff}.alert-box{border-style:solid;border-width:1px;display:block;font-weight:400;margin-bottom:1.25rem;position:relative;padding:.875rem 1.5rem .875rem .875rem;font-size:.8125rem;background-color:#008cba;border-color:#0078a0;color:#fff}.alert-box .close{font-size:1.375rem;padding:9px 6px 4px;line-height:0;position:absolute;top:50%;margin-top:-.6875rem;right:.25rem;color:#333;opacity:.3}.alert-box .close:focus,.alert-box .close:hover{opacity:.5}.alert-box.radius{-webkit-border-radius:3px;border-radius:3px}.alert-box.round{-webkit-border-radius:1000px;border-radius:1000px}.alert-box.success{background-color:#43ac6a;border-color:#3a945b;color:#fff}.alert-box.alert{background-color:#f04124;border-color:#de2d0f;color:#fff}.alert-box.secondary{background-color:#e7e7e7;border-color:#c7c7c7;color:#4f4f4f}.alert-box.warning{background-color:#f08a24;border-color:#de770f;color:#fff}.alert-box.info{background-color:#a0d3e8;border-color:#74bfdd;color:#4f4f4f}[class*=block-grid-]{display:block;padding:0;margin:0 0 0 -.625rem;*zoom:1}[class*=block-grid-]:after,[class*=block-grid-]:before{content:" ";display:table}[class*=block-grid-]:after{clear:both}[class*=block-grid-]>li{display:inline;height:auto;float:left;padding:0 .625rem 1.25rem}@media only screen{.small-block-grid-1>li{width:100%;padding:0 .625rem 1.25rem;list-style:none}.small-block-grid-1>li:nth-of-type(n){clear:none}.small-block-grid-1>li:nth-of-type(1n+1){clear:both}.small-block-grid-2>li{width:50%;padding:0 .625rem 1.25rem;list-style:none}.small-block-grid-2>li:nth-of-type(n){clear:none}.small-block-grid-2>li:nth-of-type(2n+1){clear:both}.small-block-grid-3>li{width:33.33333%;padding:0 .625rem 1.25rem;list-style:none}.small-block-grid-3>li:nth-of-type(n){clear:none}.small-block-grid-3>li:nth-of-type(3n+1){clear:both}.small-block-grid-4>li{width:25%;padding:0 .625rem 1.25rem;list-style:none}.small-block-grid-4>li:nth-of-type(n){clear:none}.small-block-grid-4>li:nth-of-type(4n+1){clear:both}.small-block-grid-5>li{width:20%;padding:0 .625rem 1.25rem;list-style:none}.small-block-grid-5>li:nth-of-type(n){clear:none}.small-block-grid-5>li:nth-of-type(5n+1){clear:both}.small-block-grid-6>li{width:16.66667%;padding:0 .625rem 1.25rem;list-style:none}.small-block-grid-6>li:nth-of-type(n){clear:none}.small-block-grid-6>li:nth-of-type(6n+1){clear:both}.small-block-grid-7>li{width:14.28571%;padding:0 .625rem 1.25rem;list-style:none}.small-block-grid-7>li:nth-of-type(n){clear:none}.small-block-grid-7>li:nth-of-type(7n+1){clear:both}.small-block-grid-8>li{width:12.5%;padding:0 .625rem 1.25rem;list-style:none}.small-block-grid-8>li:nth-of-type(n){clear:none}.small-block-grid-8>li:nth-of-type(8n+1){clear:both}.small-block-grid-9>li{width:11.11111%;padding:0 .625rem 1.25rem;list-style:none}.small-block-grid-9>li:nth-of-type(n){clear:none}.small-block-grid-9>li:nth-of-type(9n+1){clear:both}.small-block-grid-10>li{width:10%;padding:0 .625rem 1.25rem;list-style:none}.small-block-grid-10>li:nth-of-type(n){clear:none}.small-block-grid-10>li:nth-of-type(10n+1){clear:both}.small-block-grid-11>li{width:9.09091%;padding:0 .625rem 1.25rem;list-style:none}.small-block-grid-11>li:nth-of-type(n){clear:none}.small-block-grid-11>li:nth-of-type(11n+1){clear:both}.small-block-grid-12>li{width:8.33333%;padding:0 .625rem 1.25rem;list-style:none}.small-block-grid-12>li:nth-of-type(n){clear:none}.small-block-grid-12>li:nth-of-type(12n+1){clear:both}}@media only screen and (min-width:40.063em){.medium-block-grid-1>li{width:100%;padding:0 .625rem 1.25rem;list-style:none}.medium-block-grid-1>li:nth-of-type(n){clear:none}.medium-block-grid-1>li:nth-of-type(1n+1){clear:both}.medium-block-grid-2>li{width:50%;padding:0 .625rem 1.25rem;list-style:none}.medium-block-grid-2>li:nth-of-type(n){clear:none}.medium-block-grid-2>li:nth-of-type(2n+1){clear:both}.medium-block-grid-3>li{width:33.33333%;padding:0 .625rem 1.25rem;list-style:none}.medium-block-grid-3>li:nth-of-type(n){clear:none}.medium-block-grid-3>li:nth-of-type(3n+1){clear:both}.medium-block-grid-4>li{width:25%;padding:0 .625rem 1.25rem;list-style:none}.medium-block-grid-4>li:nth-of-type(n){clear:none}.medium-block-grid-4>li:nth-of-type(4n+1){clear:both}.medium-block-grid-5>li{width:20%;padding:0 .625rem 1.25rem;list-style:none}.medium-block-grid-5>li:nth-of-type(n){clear:none}.medium-block-grid-5>li:nth-of-type(5n+1){clear:both}.medium-block-grid-6>li{width:16.66667%;padding:0 .625rem 1.25rem;list-style:none}.medium-block-grid-6>li:nth-of-type(n){clear:none}.medium-block-grid-6>li:nth-of-type(6n+1){clear:both}.medium-block-grid-7>li{width:14.28571%;padding:0 .625rem 1.25rem;list-style:none}.medium-block-grid-7>li:nth-of-type(n){clear:none}.medium-block-grid-7>li:nth-of-type(7n+1){clear:both}.medium-block-grid-8>li{width:12.5%;padding:0 .625rem 1.25rem;list-style:none}.medium-block-grid-8>li:nth-of-type(n){clear:none}.medium-block-grid-8>li:nth-of-type(8n+1){clear:both}.medium-block-grid-9>li{width:11.11111%;padding:0 .625rem 1.25rem;list-style:none}.medium-block-grid-9>li:nth-of-type(n){clear:none}.medium-block-grid-9>li:nth-of-type(9n+1){clear:both}.medium-block-grid-10>li{width:10%;padding:0 .625rem 1.25rem;list-style:none}.medium-block-grid-10>li:nth-of-type(n){clear:none}.medium-block-grid-10>li:nth-of-type(10n+1){clear:both}.medium-block-grid-11>li{width:9.09091%;padding:0 .625rem 1.25rem;list-style:none}.medium-block-grid-11>li:nth-of-type(n){clear:none}.medium-block-grid-11>li:nth-of-type(11n+1){clear:both}.medium-block-grid-12>li{width:8.33333%;padding:0 .625rem 1.25rem;list-style:none}.medium-block-grid-12>li:nth-of-type(n){clear:none}.medium-block-grid-12>li:nth-of-type(12n+1){clear:both}}@media only screen and (min-width:64.063em){.large-block-grid-1>li{width:100%;padding:0 .625rem 1.25rem;list-style:none}.large-block-grid-1>li:nth-of-type(n){clear:none}.large-block-grid-1>li:nth-of-type(1n+1){clear:both}.large-block-grid-2>li{width:50%;padding:0 .625rem 1.25rem;list-style:none}.large-block-grid-2>li:nth-of-type(n){clear:none}.large-block-grid-2>li:nth-of-type(2n+1){clear:both}.large-block-grid-3>li{width:33.33333%;padding:0 .625rem 1.25rem;list-style:none}.large-block-grid-3>li:nth-of-type(n){clear:none}.large-block-grid-3>li:nth-of-type(3n+1){clear:both}.large-block-grid-4>li{width:25%;padding:0 .625rem 1.25rem;list-style:none}.large-block-grid-4>li:nth-of-type(n){clear:none}.large-block-grid-4>li:nth-of-type(4n+1){clear:both}.large-block-grid-5>li{width:20%;padding:0 .625rem 1.25rem;list-style:none}.large-block-grid-5>li:nth-of-type(n){clear:none}.large-block-grid-5>li:nth-of-type(5n+1){clear:both}.large-block-grid-6>li{width:16.66667%;padding:0 .625rem 1.25rem;list-style:none}.large-block-grid-6>li:nth-of-type(n){clear:none}.large-block-grid-6>li:nth-of-type(6n+1){clear:both}.large-block-grid-7>li{width:14.28571%;padding:0 .625rem 1.25rem;list-style:none}.large-block-grid-7>li:nth-of-type(n){clear:none}.large-block-grid-7>li:nth-of-type(7n+1){clear:both}.large-block-grid-8>li{width:12.5%;padding:0 .625rem 1.25rem;list-style:none}.large-block-grid-8>li:nth-of-type(n){clear:none}.large-block-grid-8>li:nth-of-type(8n+1){clear:both}.large-block-grid-9>li{width:11.11111%;padding:0 .625rem 1.25rem;list-style:none}.large-block-grid-9>li:nth-of-type(n){clear:none}.large-block-grid-9>li:nth-of-type(9n+1){clear:both}.large-block-grid-10>li{width:10%;padding:0 .625rem 1.25rem;list-style:none}.large-block-grid-10>li:nth-of-type(n){clear:none}.large-block-grid-10>li:nth-of-type(10n+1){clear:both}.large-block-grid-11>li{width:9.09091%;padding:0 .625rem 1.25rem;list-style:none}.large-block-grid-11>li:nth-of-type(n){clear:none}.large-block-grid-11>li:nth-of-type(11n+1){clear:both}.large-block-grid-12>li{width:8.33333%;padding:0 .625rem 1.25rem;list-style:none}.large-block-grid-12>li:nth-of-type(n){clear:none}.large-block-grid-12>li:nth-of-type(12n+1){clear:both}}.breadcrumbs{display:block;padding:.5625rem .875rem;overflow:hidden;margin-left:0;list-style:none;border-style:solid;border-width:1px;background-color:#f4f4f4;border-color:#dcdcdc;-webkit-border-radius:3px;border-radius:3px}.breadcrumbs>*{margin:0;float:left;font-size:.6875rem;text-transform:uppercase}.breadcrumbs>:focus a,.breadcrumbs>:hover a{text-decoration:underline}.breadcrumbs>* a,.breadcrumbs>* span{text-transform:uppercase;color:#008cba}.breadcrumbs>.current,.breadcrumbs>.current a{cursor:default;color:#333}.breadcrumbs>.current:focus,.breadcrumbs>.current:focus a,.breadcrumbs>.current:hover,.breadcrumbs>.current:hover a{text-decoration:none}.breadcrumbs>.unavailable,.breadcrumbs>.unavailable a{color:#999}.breadcrumbs>.unavailable a:focus,.breadcrumbs>.unavailable:focus,.breadcrumbs>.unavailable:hover,.breadcrumbs>.unavailable:hover a{text-decoration:none;color:#999;cursor:default}.breadcrumbs>:before{content:"/";color:#aaa;margin:0 .75rem;position:relative;top:1px}.breadcrumbs>:first-child:before{content:" ";margin:0}.button,button{cursor:pointer;font-family:"Helvetica Neue",Helvetica,Helvetica,Arial,sans-serif;line-height:normal;margin:0 0 1.25rem;position:relative;text-decoration:none;text-align:center;display:inline-block;padding-right:2rem;padding-left:2rem;font-size:1rem;background-color:#008cba;color:#fff;-webkit-transition:background-color 300ms ease-out;-moz-transition:background-color 300ms ease-out;transition:background-color 300ms ease-out;padding-top:1.0625rem;padding-bottom:1rem;-webkit-appearance:none;border:0;font-weight:400!important}.button:focus,.button:hover,button:focus,button:hover{background-color:#007095;color:#fff}.button.secondary,button.secondary{background-color:#e7e7e7;border-color:#b9b9b9;color:#333}.button.secondary:focus,.button.secondary:hover,button.secondary:focus,button.secondary:hover{background-color:#b9b9b9;color:#333}.button.success,button.success{background-color:#43ac6a;border-color:#368a55;color:#fff}.button.success:focus,.button.success:hover,button.success:focus,button.success:hover{background-color:#368a55;color:#fff}.button.alert,button.alert{background-color:#f04124;border-color:#cf2a0e;color:#fff}.button.alert:focus,.button.alert:hover,button.alert:focus,button.alert:hover{background-color:#cf2a0e;color:#fff}.button.large,button.large{padding-top:1.125rem;padding-right:2.25rem;padding-bottom:1.1875rem;padding-left:2.25rem;font-size:1.25rem}.button.small,button.small{padding-top:.875rem;padding-right:1.75rem;padding-bottom:.9375rem;padding-left:1.75rem;font-size:.8125rem}.button.tiny,button.tiny{padding-top:.625rem;padding-right:1.25rem;padding-bottom:.6875rem;padding-left:1.25rem;font-size:.6875rem}.button.expand,button.expand{padding-right:0;padding-left:0;width:100%}.button.left-align,button.left-align{text-align:left;text-indent:.75rem}.button.right-align,button.right-align{text-align:right;padding-right:.75rem}.button.radius,button.radius{-webkit-border-radius:3px;border-radius:3px}.button.round,button.round{-webkit-border-radius:1000px;border-radius:1000px}.button.disabled,.button[disabled],button.disabled,button[disabled]{background-color:#008cba;border-color:#007095;color:#fff;cursor:default;opacity:.7;-webkit-box-shadow:none;box-shadow:none}.button.disabled:focus,.button.disabled:hover,.button[disabled]:focus,.button[disabled]:hover,button.disabled:focus,button.disabled:hover,button[disabled]:focus,button[disabled]:hover{color:#fff;background-color:#008cba}.button.disabled.secondary,.button[disabled].secondary,button.disabled.secondary,button[disabled].secondary{background-color:#e7e7e7;border-color:#b9b9b9;color:#333;cursor:default;opacity:.7;-webkit-box-shadow:none;box-shadow:none}.button.disabled.secondary:focus,.button.disabled.secondary:hover,.button[disabled].secondary:focus,.button[disabled].secondary:hover,button.disabled.secondary:focus,button.disabled.secondary:hover,button[disabled].secondary:focus,button[disabled].secondary:hover{color:#333;background-color:#e7e7e7}.button.disabled.success,.button[disabled].success,button.disabled.success,button[disabled].success{background-color:#43ac6a;border-color:#368a55;color:#fff;cursor:default;opacity:.7;-webkit-box-shadow:none;box-shadow:none}.button.disabled.success:focus,.button.disabled.success:hover,.button[disabled].success:focus,.button[disabled].success:hover,button.disabled.success:focus,button.disabled.success:hover,button[disabled].success:focus,button[disabled].success:hover{color:#fff;background-color:#43ac6a}.button.disabled.alert,.button[disabled].alert,button.disabled.alert,button[disabled].alert{background-color:#f04124;border-color:#cf2a0e;color:#fff;cursor:default;opacity:.7;-webkit-box-shadow:none;box-shadow:none}.button.disabled.alert:focus,.button.disabled.alert:hover,.button[disabled].alert:focus,.button[disabled].alert:hover,button.disabled.alert:focus,button.disabled.alert:hover,button[disabled].alert:focus,button[disabled].alert:hover{color:#fff;background-color:#f04124}@media only screen and (min-width:40.063em){.button,button{display:inline-block}}.button-group{list-style:none;margin:0;*zoom:1}.button-group:after,.button-group:before{content:" ";display:table}.button-group:after{clear:both}.button-group>*{margin:0;float:left}.button-group>* .button,.button-group>*>button{border-right:1px solid;border-color:rgba(255,255,255,.5)}.button-group>:last-child .button,.button-group>:last-child button{border-right:0}.button-group>:first-child{margin-left:0}.button-group.radius>* .button,.button-group.radius>*>button{border-right:1px solid;border-color:rgba(255,255,255,.5)}.button-group.radius>:last-child .button,.button-group.radius>:last-child button{border-right:0}.button-group.radius>:first-child,.button-group.radius>:first-child>.button,.button-group.radius>:first-child>a,.button-group.radius>:first-child>button{-moz-border-radius-bottomleft:3px;-moz-border-radius-topleft:3px;-webkit-border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-left-radius:3px}.button-group.radius>:last-child,.button-group.radius>:last-child>.button,.button-group.radius>:last-child>a,.button-group.radius>:last-child>button{-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.button-group.round>* .button,.button-group.round>*>button{border-right:1px solid;border-color:rgba(255,255,255,.5)}.button-group.round>:last-child .button,.button-group.round>:last-child button{border-right:0}.button-group.round>:first-child,.button-group.round>:first-child>.button,.button-group.round>:first-child>a,.button-group.round>:first-child>button{-moz-border-radius-bottomleft:1000px;-moz-border-radius-topleft:1000px;-webkit-border-bottom-left-radius:1000px;-webkit-border-top-left-radius:1000px;border-bottom-left-radius:1000px;border-top-left-radius:1000px}.button-group.round>:last-child,.button-group.round>:last-child>.button,.button-group.round>:last-child>a,.button-group.round>:last-child>button{-moz-border-radius-topright:1000px;-moz-border-radius-bottomright:1000px;-webkit-border-top-right-radius:1000px;-webkit-border-bottom-right-radius:1000px;border-top-right-radius:1000px;border-bottom-right-radius:1000px}.button-group.even-2 li{width:50%}.button-group.even-2 li .button,.button-group.even-2 li>button{border-right:1px solid;border-color:rgba(255,255,255,.5)}.button-group.even-2 li:last-child .button,.button-group.even-2 li:last-child button{border-right:0}.button-group.even-2 li .button,.button-group.even-2 li button{width:100%}.button-group.even-3 li{width:33.33333%}.button-group.even-3 li .button,.button-group.even-3 li>button{border-right:1px solid;border-color:rgba(255,255,255,.5)}.button-group.even-3 li:last-child .button,.button-group.even-3 li:last-child button{border-right:0}.button-group.even-3 li .button,.button-group.even-3 li button{width:100%}.button-group.even-4 li{width:25%}.button-group.even-4 li .button,.button-group.even-4 li>button{border-right:1px solid;border-color:rgba(255,255,255,.5)}.button-group.even-4 li:last-child .button,.button-group.even-4 li:last-child button{border-right:0}.button-group.even-4 li .button,.button-group.even-4 li button{width:100%}.button-group.even-5 li{width:20%}.button-group.even-5 li .button,.button-group.even-5 li>button{border-right:1px solid;border-color:rgba(255,255,255,.5)}.button-group.even-5 li:last-child .button,.button-group.even-5 li:last-child button{border-right:0}.button-group.even-5 li .button,.button-group.even-5 li button{width:100%}.button-group.even-6 li{width:16.66667%}.button-group.even-6 li .button,.button-group.even-6 li>button{border-right:1px solid;border-color:rgba(255,255,255,.5)}.button-group.even-6 li:last-child .button,.button-group.even-6 li:last-child button{border-right:0}.button-group.even-6 li .button,.button-group.even-6 li button{width:100%}.button-group.even-7 li{width:14.28571%}.button-group.even-7 li .button,.button-group.even-7 li>button{border-right:1px solid;border-color:rgba(255,255,255,.5)}.button-group.even-7 li:last-child .button,.button-group.even-7 li:last-child button{border-right:0}.button-group.even-7 li .button,.button-group.even-7 li button{width:100%}.button-group.even-8 li{width:12.5%}.button-group.even-8 li .button,.button-group.even-8 li>button{border-right:1px solid;border-color:rgba(255,255,255,.5)}.button-group.even-8 li:last-child .button,.button-group.even-8 li:last-child button{border-right:0}.button-group.even-8 li .button,.button-group.even-8 li button{width:100%}.button-bar{*zoom:1}.button-bar:after,.button-bar:before{content:" ";display:table}.button-bar:after{clear:both}.button-bar .button-group{float:left;margin-right:.625rem}.button-bar .button-group div{overflow:hidden}[data-clearing]{*zoom:1;margin-bottom:0;margin-left:0;list-style:none}[data-clearing]:after,[data-clearing]:before{content:" ";display:table}[data-clearing]:after{clear:both}[data-clearing] li{float:left;margin-right:10px}.clearing-blackout{background:#333;position:fixed;width:100%;height:100%;top:0;left:0;z-index:998}.clearing-blackout .clearing-close{display:block}.clearing-container{position:relative;z-index:998;height:100%;overflow:hidden;margin:0}.visible-img{height:95%;position:relative}.visible-img img{position:absolute;left:50%;top:50%;margin-left:-50%;max-height:100%;max-width:100%}.clearing-caption{color:#ccc;font-size:.875em;line-height:1.3;margin-bottom:0;text-align:center;bottom:0;background:#333;width:100%;padding:10px 30px 20px;position:absolute;left:0}.clearing-close{z-index:999;padding-left:20px;padding-top:10px;font-size:30px;line-height:1;color:#ccc;display:none}.clearing-close:focus,.clearing-close:hover{color:#ccc}.clearing-assembled .clearing-container{height:100%}.clearing-assembled .clearing-container .carousel>ul,.clearing-feature li{display:none}.clearing-feature li.clearing-featured-img{display:block}@media only screen and (min-width:40.063em){.clearing-main-next,.clearing-main-prev{position:absolute;height:100%;width:40px;top:0}.clearing-main-next>span,.clearing-main-prev>span{position:absolute;top:50%;display:block;width:0;height:0;border:solid 12px}.clearing-main-next>span:hover,.clearing-main-prev>span:hover{opacity:.8}.clearing-main-prev{left:0}.clearing-main-prev>span{left:5px;border-color:transparent;border-right-color:#ccc}.clearing-main-next{right:0}.clearing-main-next>span{border-color:transparent;border-left-color:#ccc}.clearing-main-next.disabled,.clearing-main-prev.disabled{opacity:.3}.clearing-assembled .clearing-container .carousel{background:rgba(51,51,51,.8);height:120px;margin-top:10px;text-align:center}.clearing-assembled .clearing-container .carousel>ul{display:inline-block;z-index:999;height:100%;position:relative;float:none}.clearing-assembled .clearing-container .carousel>ul li{display:block;width:120px;min-height:inherit;float:left;overflow:hidden;margin-right:0;padding:0;position:relative;cursor:pointer;opacity:.4}.clearing-assembled .clearing-container .carousel>ul li.fix-height img{height:100%;max-width:none}.clearing-assembled .clearing-container .carousel>ul li a.th{border:0;-webkit-box-shadow:none;box-shadow:none;display:block}.clearing-assembled .clearing-container .carousel>ul li img{cursor:pointer!important;width:100%!important}.clearing-assembled .clearing-container .carousel>ul li.visible{opacity:1}.clearing-assembled .clearing-container .carousel>ul li:hover{opacity:.8}.clearing-assembled .clearing-container .visible-img{background:#333;overflow:hidden;height:85%}.clearing-close{position:absolute;top:10px;right:20px;padding-left:0;padding-top:0}}@media only screen and (max-width:40em){.f-dropdown{max-width:100%;left:0}}.f-dropdown{position:absolute;left:-9999px;list-style:none;margin-left:0;width:100%;max-height:none;height:auto;background:#fff;border:solid 1px #ccc;font-size:16px;z-index:99;margin-top:2px;max-width:200px}.f-dropdown>:first-child{margin-top:0}.f-dropdown>:last-child{margin-bottom:0}.f-dropdown:before{content:"";display:block;width:0;height:0;border:inset 6px;border-color:transparent transparent #fff;border-bottom-style:solid;position:absolute;top:-12px;left:10px;z-index:99}.f-dropdown:after{content:"";display:block;width:0;height:0;border:inset 7px;border-color:transparent transparent #ccc;border-bottom-style:solid;position:absolute;top:-14px;left:9px;z-index:98}.f-dropdown.right:before{left:auto;right:10px}.f-dropdown.right:after{left:auto;right:9px}.f-dropdown li{font-size:.875rem;cursor:pointer;line-height:1.125rem;margin:0}.f-dropdown li:focus,.f-dropdown li:hover{background:#eee}.f-dropdown li a{display:block;padding:.5rem;color:#555}.f-dropdown.content{position:absolute;left:-9999px;list-style:none;margin-left:0;padding:1.25rem;width:100%;height:auto;max-height:none;background:#fff;border:solid 1px #ccc;font-size:16px;z-index:99;max-width:200px}.f-dropdown.content>:first-child{margin-top:0}.f-dropdown.content>:last-child{margin-bottom:0}.f-dropdown.tiny{max-width:200px}.f-dropdown.small{max-width:300px}.f-dropdown.medium{max-width:500px}.f-dropdown.large{max-width:800px}.dropdown.button{position:relative;padding-right:3.5625rem}.dropdown.button:before{position:absolute;content:"";width:0;height:0;display:block;border-style:solid;top:50%;border-width:.375rem;right:1.40625rem;margin-top:-.15625rem;border-color:#fff transparent transparent}.dropdown.button.tiny{padding-right:2.625rem}.dropdown.button.tiny:before{border-width:.375rem;right:1.125rem;margin-top:-.125rem;border-color:#fff transparent transparent}.dropdown.button.small{padding-right:3.0625rem}.dropdown.button.small:before{border-width:.4375rem;right:1.3125rem;margin-top:-.15625rem;border-color:#fff transparent transparent}.dropdown.button.large{padding-right:3.625rem}.dropdown.button.large:before{border-width:.3125rem;right:1.71875rem;margin-top:-.15625rem;border-color:#fff transparent transparent}.dropdown.button.secondary:before{border-color:#333 transparent transparent}.flex-video{position:relative;padding-top:1.5625rem;padding-bottom:67.5%;height:0;margin-bottom:1rem;overflow:hidden}.flex-video.widescreen{padding-bottom:57.25%}.flex-video.vimeo{padding-top:0}.flex-video embed,.flex-video iframe,.flex-video object,.flex-video video{position:absolute;top:0;left:0;width:100%;height:100%}form .row .row{margin:0 -.5rem}form .row .row .column,form .row .row .columns{padding:0 .5rem}form .row .row.collapse{margin:0}form .row .row.collapse .column,form .row .row.collapse .columns{padding:0}form .row .row.collapse input{-moz-border-radius-bottomright:0;-moz-border-radius-topright:0;-webkit-border-bottom-right-radius:0;-webkit-border-top-right-radius:0}form .row input.column,form .row input.columns,form .row textarea.column,form .row textarea.columns{padding-left:.5rem}label{font-size:.875rem;color:#4d4d4d;cursor:pointer;display:block;font-weight:400;margin-bottom:.5rem}label.right{float:none;text-align:right}label.inline{margin:0 0 1rem;padding:.625rem 0}label small{text-transform:capitalize;color:#676767}select{-webkit-appearance:none!important;background:#fafafa url("data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==") no-repeat;background-position-x:97%;background-position-y:center;border:1px solid #ccc;padding:.5rem;font-size:.875rem;-webkit-border-radius:0;border-radius:0}select.radius{-webkit-border-radius:3px;border-radius:3px}select:hover{background:#f3f3f3 url("data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==") no-repeat;background-position-x:97%;background-position-y:center;border-color:#999}select::-ms-expand{display:none}@-moz-document url-prefix(){select{background:#fafafa}select:hover{background:#f3f3f3}}.postfix,.prefix{display:block;position:relative;z-index:2;text-align:center;width:100%;padding-top:0;padding-bottom:0;border-style:solid;border-width:1px;overflow:hidden;font-size:.875rem;height:2.3125rem;line-height:2.3125rem}.postfix.button,.prefix.button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;text-align:center;line-height:2.125rem;border:0}.prefix.button.radius{-webkit-border-radius:0;border-radius:0;-moz-border-radius-bottomleft:3px;-moz-border-radius-topleft:3px;-webkit-border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-left-radius:3px}.postfix.button.radius{-webkit-border-radius:0;border-radius:0;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.prefix.button.round{-webkit-border-radius:0;border-radius:0;-moz-border-radius-bottomleft:1000px;-moz-border-radius-topleft:1000px;-webkit-border-bottom-left-radius:1000px;-webkit-border-top-left-radius:1000px;border-bottom-left-radius:1000px;border-top-left-radius:1000px}.postfix.button.round{-webkit-border-radius:0;border-radius:0;-moz-border-radius-topright:1000px;-moz-border-radius-bottomright:1000px;-webkit-border-top-right-radius:1000px;-webkit-border-bottom-right-radius:1000px;border-top-right-radius:1000px;border-bottom-right-radius:1000px}label.prefix,span.prefix{background:#f2f2f2;border-color:#d8d8d8;border-right:0;color:#333}label.prefix.radius,span.prefix.radius{-webkit-border-radius:0;border-radius:0;-moz-border-radius-bottomleft:3px;-moz-border-radius-topleft:3px;-webkit-border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-left-radius:3px}label.postfix,span.postfix{background:#f2f2f2;border-color:#cbcbcb;border-left:0;color:#333}label.postfix.radius,span.postfix.radius{-webkit-border-radius:0;border-radius:0;-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.input-group.radius>:first-child,.input-group.radius>:first-child *{-moz-border-radius-bottomleft:3px;-moz-border-radius-topleft:3px;-webkit-border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-left-radius:3px}.input-group.radius>:last-child,.input-group.radius>:last-child *{-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.input-group.round>:first-child,.input-group.round>:first-child *{-moz-border-radius-bottomleft:1000px;-moz-border-radius-topleft:1000px;-webkit-border-bottom-left-radius:1000px;-webkit-border-top-left-radius:1000px;border-bottom-left-radius:1000px;border-top-left-radius:1000px}.input-group.round>:last-child,.input-group.round>:last-child *{-moz-border-radius-topright:1000px;-moz-border-radius-bottomright:1000px;-webkit-border-top-right-radius:1000px;-webkit-border-bottom-right-radius:1000px;border-top-right-radius:1000px;border-bottom-right-radius:1000px}input[type=date],input[type=datetime-local],input[type=datetime],input[type=email],input[type=month],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=time],input[type=url],input[type=week],textarea{-webkit-appearance:none;-webkit-border-radius:0;border-radius:0;background-color:#fff;font-family:inherit;border:1px solid #ccc;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);color:rgba(0,0,0,.75);display:block;font-size:.875rem;margin:0 0 1rem;padding:.5rem;height:2.3125rem;width:100%;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:-webkit-box-shadow .45s,border-color .45s ease-in-out;-moz-transition:-moz-box-shadow .45s,border-color .45s ease-in-out;transition:box-shadow .45s,border-color .45s ease-in-out}input[type=date]:focus,input[type=datetime-local]:focus,input[type=datetime]:focus,input[type=email]:focus,input[type=month]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=time]:focus,input[type=url]:focus,input[type=week]:focus,textarea:focus{-webkit-box-shadow:0 0 5px #999;-moz-box-shadow:0 0 5px #999;box-shadow:0 0 5px #999;background:#fafafa;border-color:#999;outline:0}input[type=date][disabled],input[type=datetime-local][disabled],input[type=datetime][disabled],input[type=email][disabled],input[type=month][disabled],input[type=number][disabled],input[type=password][disabled],input[type=search][disabled],input[type=tel][disabled],input[type=text][disabled],input[type=time][disabled],input[type=url][disabled],input[type=week][disabled],textarea[disabled]{background-color:#ddd}select{height:2.3125rem}input[type=checkbox],input[type=file],input[type=radio],select{margin:0 0 1rem}input[type=checkbox]+label,input[type=radio]+label{display:inline-block;margin-left:.5rem;margin-right:1rem;margin-bottom:0;vertical-align:baseline}input[type=file]{width:100%}fieldset{border:solid 1px #ddd;padding:1.25rem;margin:1.125rem 0}fieldset legend{font-weight:700;background:#fff;padding:0 .1875rem;margin:0;margin-left:-.1875rem}[data-abide] .error small.error,[data-abide] small.error,[data-abide] span.error{display:block;padding:.375rem .5625rem .5625rem;margin-top:-1px;margin-bottom:1rem;font-size:.75rem;font-weight:400;font-style:italic;background:#f04124;color:#fff}[data-abide] small.error,[data-abide] span.error{display:none}small.error,span.error{display:block;padding:.375rem .5625rem .5625rem;margin-top:-1px;margin-bottom:1rem;font-size:.75rem;font-weight:400;font-style:italic;background:#f04124;color:#fff}.error input,.error select,.error textarea{margin-bottom:0}.error label,.error label.error{color:#f04124}.error small.error,.error>small{display:block;padding:.375rem .5625rem .5625rem;margin-top:-1px;margin-bottom:1rem;font-size:.75rem;font-weight:400;font-style:italic;background:#f04124;color:#fff}.error>label>small{color:#676767;background:0 0;padding:0;text-transform:capitalize;font-style:normal;font-size:60%;margin:0;display:inline}.error span.error-message{display:block}input.error,textarea.error{margin-bottom:0}label.error{color:#f04124}.inline-list{margin:0 auto 1.0625rem;margin-left:-1.375rem;margin-right:0;padding:0;list-style:none;overflow:hidden}.inline-list>li{list-style:none;float:left;margin-left:1.375rem;display:block}.inline-list>li>*{display:block}.joyride-list{display:none}.joyride-tip-guide{display:none;position:absolute;background:#333;color:#fff;z-index:101;top:0;left:2.5%;font-family:inherit;font-weight:400;width:95%}.lt-ie9 .joyride-tip-guide{max-width:800px;left:50%;margin-left:-400px}.joyride-content-wrapper{width:100%;padding:1.125rem 1.25rem 1.5rem}.joyride-content-wrapper .button{margin-bottom:0!important}.joyride-tip-guide .joyride-nub{display:block;position:absolute;left:22px;width:0;height:0;border:10px solid #333}.joyride-tip-guide .joyride-nub.top{border-top-style:solid;border-color:#333;border-top-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;top:-20px}.joyride-tip-guide .joyride-nub.bottom{border-bottom-style:solid;border-color:#333!important;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;bottom:-20px}.joyride-tip-guide .joyride-nub.right{right:-20px}.joyride-tip-guide .joyride-nub.left{left:-20px}.joyride-tip-guide h1,.joyride-tip-guide h2,.joyride-tip-guide h3,.joyride-tip-guide h4,.joyride-tip-guide h5,.joyride-tip-guide h6{line-height:1.25;margin:0;font-weight:700;color:#fff}.joyride-tip-guide p{margin:0 0 1.125rem;font-size:.875rem;line-height:1.3}.joyride-timer-indicator-wrap{width:50px;height:3px;border:solid 1px #555;position:absolute;right:1.0625rem;bottom:1rem}.joyride-timer-indicator{display:block;width:0;height:inherit;background:#666}.joyride-close-tip{position:absolute;right:12px;top:10px;color:#777!important;text-decoration:none;font-size:24px;font-weight:400;line-height:.5!important}.joyride-close-tip:focus,.joyride-close-tip:hover{color:#eee!important}.joyride-modal-bg{position:fixed;height:100%;width:100%;background:0 0;background:rgba(0,0,0,.5);z-index:100;display:none;top:0;left:0;cursor:pointer}.joyride-expose-wrapper{background-color:#fff;position:absolute;border-radius:3px;z-index:102;-moz-box-shadow:0 0 30px #fff;-webkit-box-shadow:0 0 15px #fff;box-shadow:0 0 15px #fff}.joyride-expose-cover{background:0 0;border-radius:3px;position:absolute;z-index:9999;top:0;left:0}@media only screen and (min-width:40.063em){.joyride-tip-guide{width:300px;left:inherit}.joyride-tip-guide .joyride-nub.bottom{border-color:#333!important;border-bottom-color:transparent!important;border-left-color:transparent!important;border-right-color:transparent!important;bottom:-20px}.joyride-tip-guide .joyride-nub.right{border-color:#333!important;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important;top:22px;left:auto;right:-20px}.joyride-tip-guide .joyride-nub.left{border-color:#333!important;border-top-color:transparent!important;border-left-color:transparent!important;border-bottom-color:transparent!important;top:22px;left:-20px;right:auto}}.keystroke,kbd{background-color:#ededed;border-color:#ddd;color:#222;border-style:solid;border-width:1px;margin:0;font-family:Consolas,Menlo,Courier,monospace;font-size:.875rem;padding:.125rem .25rem 0;-webkit-border-radius:3px;border-radius:3px}.label{font-weight:400;font-family:"Helvetica Neue",Helvetica,Helvetica,Arial,sans-serif;text-align:center;text-decoration:none;line-height:1;white-space:nowrap;display:inline-block;position:relative;margin-bottom:inherit;padding:.25rem .5rem .375rem;font-size:.6875rem;background-color:#008cba;color:#fff}.label.radius{-webkit-border-radius:3px;border-radius:3px}.label.round{-webkit-border-radius:1000px;border-radius:1000px}.label.alert{background-color:#f04124;color:#fff}.label.success{background-color:#43ac6a;color:#fff}.label.secondary{background-color:#e7e7e7;color:#333}[data-magellan-expedition]{background:#fff;z-index:50;min-width:100%;padding:10px}[data-magellan-expedition] .sub-nav,[data-magellan-expedition] .sub-nav dd{margin-bottom:0}[data-magellan-expedition] .sub-nav .active{line-height:1.8em}@-webkit-keyframes rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@-moz-keyframes rotate{from{-moz-transform:rotate(0deg)}to{-moz-transform:rotate(360deg)}}@-o-keyframes rotate{from{-o-transform:rotate(0deg)}to{-o-transform:rotate(360deg)}}@keyframes rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.slideshow-wrapper{position:relative}.slideshow-wrapper ul{list-style-type:none;margin:0}.slideshow-wrapper ul li,.slideshow-wrapper ul li .orbit-caption{display:none}.slideshow-wrapper ul li:first-child{display:block}.slideshow-wrapper .orbit-container{background-color:transparent}.slideshow-wrapper .orbit-container li,.slideshow-wrapper .orbit-container li .orbit-caption{display:block}.preloader{display:block;width:40px;height:40px;position:absolute;top:50%;left:50%;margin-top:-20px;margin-left:-20px;border:solid 3px;border-color:#555 #fff;-webkit-border-radius:1000px;border-radius:1000px;-webkit-animation-name:rotate;-webkit-animation-duration:1.5s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;-moz-animation-name:rotate;-moz-animation-duration:1.5s;-moz-animation-iteration-count:infinite;-moz-animation-timing-function:linear;-o-animation-name:rotate;-o-animation-duration:1.5s;-o-animation-iteration-count:infinite;-o-animation-timing-function:linear;animation-name:rotate;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}.orbit-container{overflow:hidden;width:100%;position:relative;background:0 0}.orbit-container .orbit-slides-container{list-style:none;margin:0;padding:0;position:relative}.orbit-container .orbit-slides-container img{display:block;max-width:100%}.orbit-container .orbit-slides-container>*{position:absolute;top:0;width:100%;margin-left:100%}.orbit-container .orbit-slides-container>:first-child{margin-left:0}.orbit-container .orbit-slides-container>* .orbit-caption{position:absolute;bottom:0;background-color:rgba(51,51,51,.8);color:#fff;width:100%;padding:.625rem .875rem;font-size:.875rem}.orbit-container .orbit-slide-number{position:absolute;top:10px;left:10px;font-size:12px;color:#fff;background:rgba(0,0,0,0);z-index:10}.orbit-container .orbit-slide-number span{font-weight:700;padding:.3125rem}.orbit-container .orbit-timer{position:absolute;top:12px;right:10px;height:6px;width:100px;z-index:10}.orbit-container .orbit-timer .orbit-progress{height:3px;background-color:rgba(255,255,255,.3);display:block;width:0;position:relative;right:20px;top:5px}.orbit-container .orbit-timer>span{display:none;position:absolute;top:0;right:0;width:11px;height:14px;border:solid 4px #fff;border-top:0;border-bottom:0}.orbit-container .orbit-timer.paused>span{right:-4px;top:0;width:11px;height:14px;border:inset 8px;border-right-style:solid;border-color:transparent transparent transparent #fff}.orbit-container .orbit-timer.paused>span.dark{border-color:transparent transparent transparent #333}.orbit-container:hover .orbit-timer>span{display:block}.orbit-container .orbit-next,.orbit-container .orbit-prev{position:absolute;top:45%;margin-top:-25px;width:36px;height:60px;line-height:50px;color:#fff;background-color:none;text-indent:-9999px!important;z-index:10}.orbit-container .orbit-next:hover,.orbit-container .orbit-prev:hover{background-color:rgba(0,0,0,.3)}.orbit-container .orbit-next>span,.orbit-container .orbit-prev>span{position:absolute;top:50%;margin-top:-10px;display:block;width:0;height:0;border:inset 10px}.orbit-container .orbit-prev{left:0}.orbit-container .orbit-prev>span{border-right-style:solid;border-color:transparent;border-right-color:#fff}.orbit-container .orbit-prev:hover>span{border-right-color:#fff}.orbit-container .orbit-next{right:0}.orbit-container .orbit-next>span{border-color:transparent;border-left-style:solid;border-left-color:#fff;left:50%;margin-left:-4px}.orbit-container .orbit-next:hover>span{border-left-color:#fff}.orbit-bullets-container{text-align:center}.orbit-bullets{margin:0 auto 30px;overflow:hidden;position:relative;top:10px;float:none;text-align:center;display:block}.orbit-bullets li{display:inline-block;width:.5625rem;height:.5625rem;background:#ccc;float:none;margin-right:6px;-webkit-border-radius:1000px;border-radius:1000px}.orbit-bullets li.active{background:#999}.orbit-bullets li:last-child{margin-right:0}.touch .orbit-bullets,.touch .orbit-container .orbit-next,.touch .orbit-container .orbit-prev{display:none}@media only screen and (min-width:40.063em){.touch .orbit-container .orbit-next,.touch .orbit-container .orbit-prev{display:inherit}.touch .orbit-bullets{display:block}}@media only screen and (max-width:40em){.orbit-stack-on-small .orbit-slides-container{height:auto!important}.orbit-stack-on-small .orbit-slides-container>*{position:relative;margin-left:0!important}.orbit-stack-on-small .orbit-bullets,.orbit-stack-on-small .orbit-next,.orbit-stack-on-small .orbit-prev,.orbit-stack-on-small .orbit-timer{display:none}}ul.pagination{display:block;height:1.5rem;margin-left:-.3125rem}ul.pagination li{height:1.5rem;color:#222;font-size:.875rem;margin-left:.3125rem}ul.pagination li a{display:block;padding:.0625rem .625rem;color:#999;-webkit-border-radius:3px;border-radius:3px}ul.pagination li a:focus,ul.pagination li:hover a{background:#e6e6e6}ul.pagination li.unavailable a{cursor:default;color:#999}ul.pagination li.unavailable a:focus,ul.pagination li.unavailable:hover a{background:0 0}ul.pagination li.current a{background:#008cba;color:#fff;font-weight:700;cursor:default}ul.pagination li.current a:focus,ul.pagination li.current a:hover{background:#008cba}ul.pagination li{float:left;display:block}.pagination-centered{text-align:center}.pagination-centered ul.pagination li{float:none;display:inline-block}.panel{border-style:solid;border-width:1px;border-color:#d8d8d8;margin-bottom:1.25rem;padding:1.25rem;background:#f2f2f2}.panel>:first-child{margin-top:0}.panel>:last-child{margin-bottom:0}.panel h1,.panel h2,.panel h3,.panel h4,.panel h5,.panel h6,.panel p{color:#333}.panel h1,.panel h2,.panel h3,.panel h4,.panel h5,.panel h6{line-height:1;margin-bottom:.625rem}.panel h1.subheader,.panel h2.subheader,.panel h3.subheader,.panel h4.subheader,.panel h5.subheader,.panel h6.subheader{line-height:1.4}.panel.callout{border-style:solid;border-width:1px;border-color:#b6edff;margin-bottom:1.25rem;padding:1.25rem;background:#ecfaff}.panel.callout>:first-child{margin-top:0}.panel.callout>:last-child{margin-bottom:0}.panel.callout h1,.panel.callout h2,.panel.callout h3,.panel.callout h4,.panel.callout h5,.panel.callout h6,.panel.callout p{color:#333}.panel.callout h1,.panel.callout h2,.panel.callout h3,.panel.callout h4,.panel.callout h5,.panel.callout h6{line-height:1;margin-bottom:.625rem}.panel.callout h1.subheader,.panel.callout h2.subheader,.panel.callout h3.subheader,.panel.callout h4.subheader,.panel.callout h5.subheader,.panel.callout h6.subheader{line-height:1.4}.panel.callout a{color:#008cba}.panel.radius{-webkit-border-radius:3px;border-radius:3px}.pricing-table{border:solid 1px #ddd;margin-left:0;margin-bottom:1.25rem}.pricing-table *{list-style:none;line-height:1}.pricing-table .title{background-color:#333;padding:.9375rem 1.25rem;text-align:center;color:#eee;font-weight:400;font-size:1rem;font-family:"Helvetica Neue",Helvetica,Helvetica,Arial,sans-serif}.pricing-table .price{background-color:#f6f6f6;padding:.9375rem 1.25rem;text-align:center;color:#333;font-weight:400;font-size:2rem;font-family:"Helvetica Neue",Helvetica,Helvetica,Arial,sans-serif}.pricing-table .description{background-color:#fff;padding:.9375rem;text-align:center;color:#777;font-size:.75rem;font-weight:400;line-height:1.4;border-bottom:dotted 1px #ddd}.pricing-table .bullet-item{background-color:#fff;padding:.9375rem;text-align:center;color:#333;font-size:.875rem;font-weight:400;border-bottom:dotted 1px #ddd}.pricing-table .cta-button{background-color:#fff;text-align:center;padding:1.25rem 1.25rem 0}.progress{background-color:#f6f6f6;height:1.5625rem;border:1px solid #fff;padding:.125rem;margin-bottom:.625rem}.progress .meter{background:#008cba;height:100%;display:block}.progress.secondary .meter{background:#e7e7e7;height:100%;display:block}.progress.success .meter{background:#43ac6a;height:100%;display:block}.progress.alert .meter{background:#f04124;height:100%;display:block}.progress.radius{-webkit-border-radius:3px;border-radius:3px}.progress.radius .meter{-webkit-border-radius:2px;border-radius:2px}.progress.round{-webkit-border-radius:1000px;border-radius:1000px}.progress.round .meter{-webkit-border-radius:999px;border-radius:999px}.reveal-modal-bg{position:fixed;height:100%;width:100%;background:#000;background:rgba(0,0,0,.45);z-index:98;display:none;top:0;left:0}.reveal-modal{visibility:hidden;display:none;position:absolute;left:50%;z-index:99;height:auto;margin-left:-40%;width:80%;background-color:#fff;padding:1.25rem;border:solid 1px #666;-webkit-box-shadow:0 0 10px rgba(0,0,0,.4);box-shadow:0 0 10px rgba(0,0,0,.4);top:6.25rem}.reveal-modal .column,.reveal-modal .columns{min-width:0}.reveal-modal>:first-child{margin-top:0}.reveal-modal>:last-child{margin-bottom:0}.reveal-modal .close-reveal-modal{font-size:1.375rem;line-height:1;position:absolute;top:.5rem;right:.6875rem;color:#aaa;font-weight:700;cursor:pointer}@media only screen and (min-width:40.063em){.reveal-modal{padding:1.875rem;top:6.25rem}.reveal-modal.tiny{margin-left:-15%;width:30%}.reveal-modal.small{margin-left:-20%;width:40%}.reveal-modal.medium{margin-left:-30%;width:60%}.reveal-modal.large{margin-left:-35%;width:70%}.reveal-modal.xlarge{margin-left:-47.5%;width:95%}}@media print{.reveal-modal{background:#fff!important}}.side-nav{display:block;margin:0;padding:.875rem 0;list-style-type:none;list-style-position:inside;font-family:"Helvetica Neue",Helvetica,Helvetica,Arial,sans-serif}.side-nav li{margin:0 0 .4375rem;font-size:.875rem}.side-nav li a{display:block;color:#008cba}.side-nav li.active>a:first-child{color:#4d4d4d;font-weight:400;font-family:"Helvetica Neue",Helvetica,Helvetica,Arial,sans-serif}.side-nav li.divider{border-top:1px solid;height:0;padding:0;list-style:none;border-top-color:#fff}.split.button{position:relative;padding-right:5.0625rem}.split.button span{display:block;height:100%;position:absolute;right:0;top:0;border-left:solid 1px}.split.button span:before{position:absolute;content:"";width:0;height:0;display:block;border-style:inset;left:50%}.split.button span:active{background-color:rgba(0,0,0,.1)}.split.button span{border-left-color:rgba(255,255,255,.5);width:3.09375rem}.split.button span:before{border-top-style:solid;border-width:.375rem;top:48%;margin-left:-.375rem;border-color:#fff transparent transparent}.split.button.secondary span{border-left-color:rgba(255,255,255,.5)}.split.button.alert span,.split.button.success span{border-left-color:rgba(255,255,255,.5)}.split.button.tiny{padding-right:3.75rem}.split.button.tiny span{width:2.25rem}.split.button.tiny span:before{border-top-style:solid;border-width:.375rem;top:48%;margin-left:-.375rem}.split.button.small{padding-right:4.375rem}.split.button.small span{width:2.625rem}.split.button.small span:before{border-top-style:solid;border-width:.4375rem;top:48%;margin-left:-.375rem}.split.button.large{padding-right:5.5rem}.split.button.large span{width:3.4375rem}.split.button.large span:before{border-top-style:solid;border-width:.3125rem;top:48%;margin-left:-.375rem}.split.button.expand{padding-left:2rem}.split.button.secondary span:before{border-color:#333 transparent transparent}.split.button.radius span{-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.split.button.round span{-moz-border-radius-topright:1000px;-moz-border-radius-bottomright:1000px;-webkit-border-top-right-radius:1000px;-webkit-border-bottom-right-radius:1000px;border-top-right-radius:1000px;border-bottom-right-radius:1000px}.sub-nav{display:block;width:auto;overflow:hidden;margin:-.25rem 0 1.125rem;padding-top:.25rem;margin-right:0;margin-left:-.75rem}.sub-nav dt{text-transform:uppercase}.sub-nav dd,.sub-nav dt,.sub-nav li{float:left;display:inline;margin-left:1rem;margin-bottom:.625rem;font-family:"Helvetica Neue",Helvetica,Helvetica,Arial,sans-serif;font-weight:400;font-size:.875rem;color:#999}.sub-nav dd a,.sub-nav dt a,.sub-nav li a{text-decoration:none;color:#999}.sub-nav dd a:hover,.sub-nav dt a:hover,.sub-nav li a:hover{color:#0085b1}.sub-nav dd.active a,.sub-nav dt.active a,.sub-nav li.active a{-webkit-border-radius:3px;border-radius:3px;font-weight:400;background:#008cba;padding:.1875rem 1rem;cursor:default;color:#fff}.sub-nav dd.active a:hover,.sub-nav dt.active a:hover,.sub-nav li.active a:hover{background:#0085b1}div.switch{position:relative;padding:0;display:block;overflow:hidden;border-style:solid;border-width:1px;margin-bottom:1.25rem;height:2.25rem;background:#fff;border-color:#ccc}div.switch label{position:relative;left:0;z-index:2;float:left;width:50%;height:100%;margin:0;font-weight:700;text-align:left;-webkit-transition:all .1s ease-out;-moz-transition:all .1s ease-out;transition:all .1s ease-out}div.switch input{position:absolute;z-index:3;opacity:0;width:100%;height:100%;-moz-appearance:none}div.switch input:focus,div.switch input:hover{cursor:pointer}div.switch span:last-child{position:absolute;top:-1px;left:-1px;z-index:1;display:block;padding:0;border-width:1px;border-style:solid;-webkit-transition:all .1s ease-out;-moz-transition:all .1s ease-out;transition:all .1s ease-out}div.switch input:not(:checked)+label{opacity:0}div.switch input:checked{display:none!important}div.switch input{left:0;display:block!important}div.switch input:first-of-type+label,div.switch input:first-of-type+span+label{left:-50%}div.switch input:first-of-type:checked+label,div.switch input:first-of-type:checked+span+label{left:0}div.switch input:last-of-type+label,div.switch input:last-of-type+span+label{right:-50%;left:auto;text-align:right}div.switch input:last-of-type:checked+label,div.switch input:last-of-type:checked+span+label{right:0;left:auto}div.switch span.custom{display:none!important}form.custom div.switch .hidden-field{margin-left:auto;position:absolute;visibility:visible}div.switch label{padding:0;line-height:2.3rem;font-size:.875rem}div.switch input:first-of-type:checked~span:last-child{left:100%;margin-left:-2.1875rem}div.switch span:last-child{width:2.25rem;height:2.25rem;border-color:#b3b3b3;background:#fff;background:-moz-linear-gradient(top,#fff 0,#f2f2f2 100%);background:-webkit-linear-gradient(top,#fff 0,#f2f2f2 100%);background:linear-gradient(to bottom,#fff 0,#f2f2f2 100%);-webkit-box-shadow:2px 0 10px 0 rgba(0,0,0,.07),1000px 0 0 1000px #f3faf6,-2px 0 10px 0 rgba(0,0,0,.07),-1000px 0 0 1000px #f5f5f5;box-shadow:2px 0 10px 0 rgba(0,0,0,.07),1000px 0 0 980px #f3faf6,-2px 0 10px 0 rgba(0,0,0,.07),-1000px 0 0 1000px #f5f5f5}div.switch:focus span:last-child,div.switch:hover span:last-child{background:#fff;background:-moz-linear-gradient(top,#fff 0,#e6e6e6 100%);background:-webkit-linear-gradient(top,#fff 0,#e6e6e6 100%);background:linear-gradient(to bottom,#fff 0,#e6e6e6 100%)}div.switch:active{background:0 0}div.switch.large{height:2.75rem}div.switch.large label{padding:0;line-height:2.3rem;font-size:1.0625rem}div.switch.large input:first-of-type:checked~span:last-child{left:100%;margin-left:-2.6875rem}div.switch.large span:last-child{width:2.75rem;height:2.75rem}div.switch.small{height:1.75rem}div.switch.small label{padding:0;line-height:2.1rem;font-size:.75rem}div.switch.small input:first-of-type:checked~span:last-child{left:100%;margin-left:-1.6875rem}div.switch.small span:last-child{width:1.75rem;height:1.75rem}div.switch.tiny{height:1.375rem}div.switch.tiny label{padding:0;line-height:1.9rem;font-size:.6875rem}div.switch.tiny input:first-of-type:checked~span:last-child{left:100%;margin-left:-1.3125rem}div.switch.tiny span:last-child{width:1.375rem;height:1.375rem}div.switch.radius{-webkit-border-radius:4px;border-radius:4px}div.switch.radius span:last-child{-webkit-border-radius:3px;border-radius:3px}div.switch.round{-webkit-border-radius:1000px;border-radius:1000px}div.switch.round span:last-child{-webkit-border-radius:999px;border-radius:999px}div.switch.round label{padding:0 .5625rem}@-webkit-keyframes webkitSiblingBugfix{from,to{position:relative}}table{background:#fff;margin-bottom:1.25rem;border:solid 1px #ddd}table tfoot,table thead{background:#f5f5f5}table tfoot tr td,table tfoot tr th,table thead tr td,table thead tr th{padding:.5rem .625rem .625rem;font-size:.875rem;font-weight:700;color:#222;text-align:left}table tr td,table tr th{padding:.5625rem .625rem;font-size:.875rem;color:#222}table tr.alt,table tr.even,table tr:nth-of-type(even){background:#f9f9f9}table tbody tr td,table tfoot tr td,table tfoot tr th,table thead tr th,table tr td{display:table-cell;line-height:1.125rem}.tabs{*zoom:1;margin-bottom:0!important}.tabs:after,.tabs:before{content:" ";display:table}.tabs:after{clear:both}.tabs dd{position:relative;margin-bottom:0!important;top:1px;float:left}.tabs dd>a{display:block;background:#efefef;color:#222;padding-top:1rem;padding-right:2rem;padding-bottom:1.0625rem;padding-left:2rem;font-family:"Helvetica Neue",Helvetica,Helvetica,Arial,sans-serif;font-size:1rem}.tabs dd>a:hover{background:#e1e1e1}.tabs dd.active a{background:#fff}.tabs.radius dd:first-child a{-moz-border-radius-bottomleft:3px;-moz-border-radius-topleft:3px;-webkit-border-bottom-left-radius:3px;-webkit-border-top-left-radius:3px;border-bottom-left-radius:3px;border-top-left-radius:3px}.tabs.radius dd:last-child a{-moz-border-radius-topright:3px;-moz-border-radius-bottomright:3px;-webkit-border-top-right-radius:3px;-webkit-border-bottom-right-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px}.tabs.vertical dd{position:inherit;float:none;display:block;top:auto}.tabs-content{*zoom:1;margin-bottom:1.5rem}.tabs-content:after,.tabs-content:before{content:" ";display:table}.tabs-content:after{clear:both}.tabs-content>.content{display:none;float:left;padding:.9375rem 0}.tabs-content>.content.active{display:block}.tabs-content>.content.contained{padding:.9375rem}.tabs-content.vertical{display:block}.tabs-content.vertical>.content{padding:0 .9375rem}@media only screen and (min-width:40.063em){.tabs.vertical{width:20%;float:left;margin-bottom:1.25rem}.tabs-content.vertical{width:80%;float:left;margin-left:-1px}}.th{line-height:0;display:inline-block;border:solid 4px #fff;max-width:100%;-webkit-box-shadow:0 0 0 1px rgba(0,0,0,.2);box-shadow:0 0 0 1px rgba(0,0,0,.2);-webkit-transition:all 200ms ease-out;-moz-transition:all 200ms ease-out;transition:all 200ms ease-out}.th:focus,.th:hover{-webkit-box-shadow:0 0 6px 1px rgba(0,140,186,.5);box-shadow:0 0 6px 1px rgba(0,140,186,.5)}.th.radius{-webkit-border-radius:3px;border-radius:3px}.has-tip{border-bottom:dotted 1px #ccc;cursor:help;font-weight:700;color:#333}.has-tip:focus,.has-tip:hover{border-bottom:dotted 1px #003f54;color:#008cba}.has-tip.tip-left,.has-tip.tip-right{float:none!important}.tooltip{display:none;position:absolute;z-index:999;font-weight:400;font-size:.875rem;line-height:1.3;padding:.75rem;max-width:85%;left:50%;width:100%;color:#fff;background:#333;-webkit-border-radius:3px;border-radius:3px}.tooltip>.nub{display:block;left:5px;position:absolute;width:0;height:0;border:solid 5px;border-color:transparent transparent #333;top:-10px}.tooltip.opened{color:#008cba!important;border-bottom:dotted 1px #003f54!important}.tap-to-close{display:block;font-size:.625rem;color:#777;font-weight:400}@media only screen and (min-width:40.063em){.tooltip>.nub{border-color:transparent transparent #333;top:-10px}.tooltip.tip-top>.nub{border-color:#333 transparent transparent;top:auto;bottom:-10px}.tooltip.tip-left,.tooltip.tip-right{float:none!important}.tooltip.tip-left>.nub{border-color:transparent transparent transparent #333;right:-10px;left:auto;top:50%;margin-top:-5px}.tooltip.tip-right>.nub{border-color:transparent #333 transparent transparent;right:auto;left:-10px;top:50%;margin-top:-5px}}blockquote,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,li,ol,p,pre,td,th,ul{margin:0;padding:0}a{color:#008cba;text-decoration:none;line-height:inherit}a:focus,a:hover{color:#0078a0}a img{border:0}p{font-family:inherit;font-weight:400;font-size:1rem;line-height:1.6;margin-bottom:1.25rem;text-rendering:optimizeLegibility}p.lead{font-size:1.21875rem;line-height:1.6}p aside{font-size:.875rem;line-height:1.35;font-style:italic}h1,h2,h3,h4,h5,h6{font-family:"Helvetica Neue",Helvetica,Helvetica,Arial,sans-serif;font-weight:300;font-style:normal;color:#222;text-rendering:optimizeLegibility;margin-top:.2rem;margin-bottom:.5rem;line-height:1.4}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-size:60%;color:#6f6f6f;line-height:0}h1{font-size:2.125rem}h2{font-size:1.6875rem}h3{font-size:1.375rem}h4,h5{font-size:1.125rem}h6{font-size:1rem}.subheader{line-height:1.4;color:#6f6f6f;font-weight:300;margin-top:.2rem;margin-bottom:.5rem}hr{border:solid #ddd;border-width:1px 0 0;clear:both;margin:1.25rem 0 1.1875rem;height:0}em,i{font-style:italic;line-height:inherit}b,strong{font-weight:700;line-height:inherit}small{font-size:60%;line-height:inherit}code{font-family:Consolas,"Liberation Mono",Courier,monospace;font-weight:700;color:#bd260d}dl,ol,ul{font-size:1rem;line-height:1.6;margin-bottom:1.25rem;list-style-position:outside;font-family:inherit}ul{margin-left:1.1rem}ul.no-bullet{margin-left:0}ul.no-bullet li ol,ul.no-bullet li ul{margin-left:1.25rem;margin-bottom:0;list-style:none}ul li ol,ul li ul{margin-left:1.25rem;margin-bottom:0;font-size:1rem}ul.circle li ul,ul.disc li ul,ul.square li ul{list-style:inherit}ul.square{list-style-type:square;margin-left:1.1rem}ul.circle{list-style-type:circle;margin-left:1.1rem}ul.disc{list-style-type:disc;margin-left:1.1rem}ul.no-bullet{list-style:none}ol{margin-left:1.4rem}ol li ol,ol li ul{margin-left:1.25rem;margin-bottom:0}dl dt{margin-bottom:.3rem;font-weight:700}dl dd{margin-bottom:.75rem}abbr,acronym{text-transform:uppercase;font-size:90%;color:#222;border-bottom:1px dotted #ddd;cursor:help}abbr{text-transform:none}blockquote{margin:0 0 1.25rem;padding:.5625rem 1.25rem 0 1.1875rem;border-left:1px solid #ddd}blockquote cite{display:block;font-size:.8125rem;color:#555}blockquote cite:before{content:"\2014 \0020"}blockquote cite a,blockquote cite a:visited{color:#555}blockquote,blockquote p{line-height:1.6;color:#6f6f6f}.vcard{display:inline-block;margin:0 0 1.25rem;border:1px solid #ddd;padding:.625rem .75rem}.vcard li{margin:0;display:block}.vcard .fn{font-weight:700;font-size:.9375rem}.vevent .summary{font-weight:700}.vevent abbr{cursor:default;text-decoration:none;font-weight:700;border:0;padding:0 .0625rem}@media only screen and (min-width:40.063em){h1,h2,h3,h4,h5,h6{line-height:1.4}h1{font-size:2.75rem}h2{font-size:2.3125rem}h3{font-size:1.6875rem}h4{font-size:1.4375rem}}.print-only{display:none!important}@media print{*{background:transparent!important;color:#000!important;box-shadow:none!important;text-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.hide-on-print{display:none!important}.print-only{display:block!important}.hide-for-print{display:none!important}.show-for-print{display:inherit!important}}meta.foundation-mq-topbar{font-family:"/only screen and (min-width:40.063em)/";width:40.063em}.contain-to-grid{width:100%;background:#333}.contain-to-grid .top-bar{margin-bottom:0}.fixed{width:100%;left:0;position:fixed;top:0;z-index:99}.fixed.expanded:not(.top-bar){overflow-y:auto;height:auto;width:100%;max-height:100%}.fixed.expanded:not(.top-bar) .title-area{position:fixed;width:100%;z-index:99}.fixed.expanded:not(.top-bar) .top-bar-section{z-index:98;margin-top:45px}.top-bar{overflow:hidden;height:45px;line-height:45px;position:relative;background:#333;margin-bottom:0}.top-bar ul{margin-bottom:0;list-style:none}.top-bar .row{max-width:none}.top-bar form,.top-bar input{margin-bottom:0}.top-bar input{height:auto;padding-top:.35rem;padding-bottom:.35rem;font-size:.75rem}.top-bar .button{padding-top:.45rem;padding-bottom:.35rem;margin-bottom:0;font-size:.75rem}.top-bar .title-area{position:relative;margin:0}.top-bar .name{height:45px;margin:0;font-size:16px}.top-bar .name h1{line-height:45px;font-size:1.0625rem;margin:0}.top-bar .name h1 a{font-weight:400;color:#fff;width:50%;display:block;padding:0 15px}.top-bar .toggle-topbar{position:absolute;right:0;top:0}.top-bar .toggle-topbar a{color:#fff;text-transform:uppercase;font-size:.8125rem;font-weight:700;position:relative;display:block;padding:0 15px;height:45px;line-height:45px}.top-bar .toggle-topbar.menu-icon{right:15px;top:50%;margin-top:-16px;padding-left:40px}.top-bar .toggle-topbar.menu-icon a{height:34px;line-height:33px;padding:0;padding-right:25px;color:#fff;position:relative}.top-bar .toggle-topbar.menu-icon a::after{content:"";position:absolute;right:0;display:block;width:16px;top:0;height:0;-webkit-box-shadow:0 10px 0 1px white,0 16px 0 1px white,0 22px 0 1px #fff;box-shadow:0 10px 0 1px white,0 16px 0 1px white,0 22px 0 1px #fff}.top-bar.expanded{height:auto;background:0 0}.top-bar.expanded .title-area{background:#333}.top-bar.expanded .toggle-topbar a{color:#888}.top-bar.expanded .toggle-topbar a span{-webkit-box-shadow:0 10px 0 1px #888,0 16px 0 1px #888,0 22px 0 1px #888;box-shadow:0 10px 0 1px #888,0 16px 0 1px #888,0 22px 0 1px #888}.top-bar-section{left:0;position:relative;width:auto;-webkit-transition:left 300ms ease-out;-moz-transition:left 300ms ease-out;transition:left 300ms ease-out}.top-bar-section ul{width:100%;height:auto;display:block;background:#333;font-size:16px;margin:0}.top-bar-section .divider,.top-bar-section [role=separator]{border-top:solid 1px #1a1a1a;clear:both;height:1px;width:100%}.top-bar-section ul li>a{display:block;width:100%;color:#fff;padding:12px 0;padding-left:15px;font-family:"Helvetica Neue",Helvetica,Helvetica,Arial,sans-serif;font-size:.8125rem;font-weight:400;background:#333}.top-bar-section ul li>a.button{background:#008cba;font-size:.8125rem;padding-right:15px;padding-left:15px}.top-bar-section ul li>a.button:hover{background:#068}.top-bar-section ul li>a.button.secondary{background:#e7e7e7}.top-bar-section ul li>a.button.secondary:hover{background:#cecece}.top-bar-section ul li>a.button.success{background:#43ac6a}.top-bar-section ul li>a.button.success:hover{background:#358854}.top-bar-section ul li>a.button.alert{background:#f04124}.top-bar-section ul li>a.button.alert:hover{background:#d42b0f}.top-bar-section ul li:hover>a{background:#272727;color:#fff}.top-bar-section ul li.active>a{background:#008cba;color:#fff}.top-bar-section ul li.active>a:hover{background:#0078a0}.top-bar-section .has-form{padding:15px}.top-bar-section .has-dropdown{position:relative}.top-bar-section .has-dropdown>a:after{content:"";display:block;width:0;height:0;border:inset 5px;border-color:transparent transparent transparent rgba(255,255,255,.4);border-left-style:solid;margin-right:15px;margin-top:-4.5px;position:absolute;top:50%;right:0}.top-bar-section .has-dropdown.moved{position:static}.top-bar-section .has-dropdown.moved>.dropdown{display:block}.top-bar-section .dropdown{position:absolute;left:100%;top:0;display:none;z-index:99}.top-bar-section .dropdown li{width:100%;height:auto}.top-bar-section .dropdown li a{font-weight:400;padding:8px 15px}.top-bar-section .dropdown li a.parent-link{font-weight:400}.top-bar-section .dropdown li.title h5{margin-bottom:0}.top-bar-section .dropdown li.title h5 a{color:#fff;line-height:22.5px;display:block}.top-bar-section .dropdown li.has-form{padding:8px 15px}.top-bar-section .dropdown li .button{top:auto}.top-bar-section .dropdown label{padding:8px 15px 2px;margin-bottom:0;text-transform:uppercase;color:#777;font-weight:700;font-size:.625rem}.js-generated{display:block}@media only screen and (min-width:40.063em){.top-bar{background:#333;*zoom:1;overflow:visible}.top-bar:after,.top-bar:before{content:" ";display:table}.top-bar:after{clear:both}.top-bar .toggle-topbar{display:none}.top-bar .title-area{float:left}.top-bar .name h1 a{width:auto}.top-bar .button,.top-bar input{font-size:.875rem;position:relative;top:7px}.top-bar.expanded{background:#333}.contain-to-grid .top-bar{max-width:62.5rem;margin:0 auto;margin-bottom:0}.top-bar-section{-webkit-transition:none 0 0;-moz-transition:none 0 0;transition:none 0 0;left:0!important}.top-bar-section ul{width:auto;height:auto!important;display:inline}.top-bar-section ul li{float:left}.top-bar-section ul li .js-generated{display:none}.top-bar-section li.hover>a:not(.button){background:#272727;color:#fff}.top-bar-section li:not(.has-form) a:not(.button){padding:0 15px;line-height:45px;background:#333}.top-bar-section li:not(.has-form) a:not(.button):hover{background:#272727}.top-bar-section .has-dropdown>a{padding-right:35px!important}.top-bar-section .has-dropdown>a:after{content:"";display:block;width:0;height:0;border:inset 5px;border-color:rgba(255,255,255,.4) transparent transparent;border-top-style:solid;margin-top:-2.5px;top:22.5px}.top-bar-section .has-dropdown.moved{position:relative}.top-bar-section .has-dropdown.moved>.dropdown{display:none}.top-bar-section .has-dropdown.hover>.dropdown,.top-bar-section .has-dropdown.not-click:hover>.dropdown{display:block}.top-bar-section .has-dropdown .dropdown li.has-dropdown>a:after{border:0;content:"\00bb";top:1rem;margin-top:-2px;right:5px;line-height:1.2}.top-bar-section .dropdown{left:0;top:auto;background:0 0;min-width:100%}.top-bar-section .dropdown li a{color:#fff;line-height:1;white-space:nowrap;padding:12px 15px;background:#333}.top-bar-section .dropdown li label{white-space:nowrap;background:#333}.top-bar-section .dropdown li .dropdown{left:100%;top:0}.top-bar-section>ul>.divider,.top-bar-section>ul>[role=separator]{border-bottom:0;border-top:0;border-right:solid 1px #4e4e4e;clear:none;height:45px;width:0}.top-bar-section .has-form{background:#333;padding:0 15px;height:45px}.top-bar-section .right li .dropdown{left:auto;right:0}.top-bar-section .right li .dropdown li .dropdown{right:100%}.top-bar-section .left li .dropdown{right:auto;left:0}.top-bar-section .left li .dropdown li .dropdown{left:100%}.no-js .top-bar-section ul li:hover>a{background:#272727;color:#fff}.no-js .top-bar-section ul li:active>a{background:#008cba;color:#fff}.no-js .top-bar-section .has-dropdown:hover>.dropdown{display:block}}.off-canvas-wrap{-webkit-backface-visibility:hidden;position:relative;width:100%;overflow:hidden}.inner-wrap{-webkit-backface-visibility:hidden;position:relative;width:100%;*zoom:1;-webkit-transition:-webkit-transform 500ms ease;-moz-transition:-moz-transform 500ms ease;-ms-transition:-ms-transform 500ms ease;-o-transition:-o-transform 500ms ease;transition:transform 500ms ease}.inner-wrap:after,.inner-wrap:before{content:" ";display:table}.inner-wrap:after{clear:both}nav.tab-bar{-webkit-backface-visibility:hidden;background:#333;color:#fff;height:2.8125rem;line-height:2.8125rem;position:relative}nav.tab-bar h1,nav.tab-bar h2,nav.tab-bar h3,nav.tab-bar h4,nav.tab-bar h5,nav.tab-bar h6{color:#fff;font-weight:700;line-height:2.8125rem;margin:0}nav.tab-bar h1,nav.tab-bar h2,nav.tab-bar h3,nav.tab-bar h4{font-size:1.125rem}section.left-small{width:2.8125rem;height:2.8125rem;position:absolute;top:0;border-right:solid 1px #1a1a1a;box-shadow:1px 0 0 #4e4e4e;left:0}section.right-small{width:2.8125rem;height:2.8125rem;position:absolute;top:0;border-left:solid 1px #4e4e4e;box-shadow:-1px 0 0 #1a1a1a;right:0}section.tab-bar-section{padding:0 .625rem;position:absolute;text-align:center;height:2.8125rem;top:0}@media only screen and (min-width:40.063em){section.tab-bar-section{text-align:left}}section.tab-bar-section.left{left:0;right:2.8125rem}section.tab-bar-section.right{left:2.8125rem;right:0}section.tab-bar-section.middle{left:2.8125rem;right:2.8125rem}a.menu-icon{text-indent:2.1875rem;width:2.8125rem;height:2.8125rem;display:block;line-height:2.0625rem;padding:0;color:#fff;position:relative}a.menu-icon span{position:absolute;display:block;width:1rem;height:0;left:.8125rem;top:.3125rem;-webkit-box-shadow:1px 10px 1px 1px white,1px 16px 1px 1px white,1px 22px 1px 1px #fff;box-shadow:0 10px 0 1px white,0 16px 0 1px white,0 22px 0 1px #fff}a.menu-icon:hover span{-webkit-box-shadow:1px 10px 1px 1px #b3b3b3,1px 16px 1px 1px #b3b3b3,1px 22px 1px 1px #b3b3b3;box-shadow:0 10px 0 1px #b3b3b3,0 16px 0 1px #b3b3b3,0 22px 0 1px #b3b3b3}.left-off-canvas-menu{-webkit-backface-visibility:hidden;width:250px;top:0;bottom:0;height:100%;position:absolute;overflow-y:auto;background:#333;z-index:1001;box-sizing:content-box;-webkit-transform:translate3d(-100%,0,0);-moz-transform:translate3d(-100%,0,0);-ms-transform:translate3d(-100%,0,0);-o-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.left-off-canvas-menu *{-webkit-backface-visibility:hidden}.right-off-canvas-menu{-webkit-backface-visibility:hidden;width:250px;top:0;bottom:0;height:100%;position:absolute;overflow-y:auto;background:#333;z-index:1001;box-sizing:content-box;-webkit-transform:translate3d(100%,0,0);-moz-transform:translate3d(100%,0,0);-ms-transform:translate3d(100%,0,0);-o-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);right:0}ul.off-canvas-list{list-style-type:none;padding:0;margin:0}ul.off-canvas-list li label{padding:.3rem .9375rem;color:#999;text-transform:uppercase;font-weight:700;background:#444;border-top:1px solid #5e5e5e;border-bottom:0;margin:0}ul.off-canvas-list li a{display:block;padding:.66667rem;color:rgba(255,255,255,.7);border-bottom:1px solid #262626}.move-right>.inner-wrap{-webkit-transform:translate3d(250px,0,0);-moz-transform:translate3d(250px,0,0);-ms-transform:translate3d(250px,0,0);-o-transform:translate3d(250px,0,0);transform:translate3d(250px,0,0)}.move-right a.exit-off-canvas{-webkit-backface-visibility:hidden;transition:background 300ms ease;cursor:pointer;box-shadow:-4px 0 4px rgba(0,0,0,.5),4px 0 4px rgba(0,0,0,.5);display:block;position:absolute;background:rgba(255,255,255,.2);top:0;bottom:0;left:0;right:0;z-index:1002;-webkit-tap-highlight-color:rgba(0,0,0,0)}@media only screen and (min-width:40.063em){.move-right a.exit-off-canvas:hover{background:rgba(255,255,255,.05)}}.move-left>.inner-wrap{-webkit-transform:translate3d(-250px,0,0);-moz-transform:translate3d(-250px,0,0);-ms-transform:translate3d(-250px,0,0);-o-transform:translate3d(-250px,0,0);transform:translate3d(-250px,0,0)}.move-left a.exit-off-canvas{-webkit-backface-visibility:hidden;transition:background 300ms ease;cursor:pointer;box-shadow:-4px 0 4px rgba(0,0,0,.5),4px 0 4px rgba(0,0,0,.5);display:block;position:absolute;background:rgba(255,255,255,.2);top:0;bottom:0;left:0;right:0;z-index:1002;-webkit-tap-highlight-color:rgba(0,0,0,0)}@media only screen and (min-width:40.063em){.move-left a.exit-off-canvas:hover{background:rgba(255,255,255,.05)}}.csstransforms.no-csstransforms3d .left-off-canvas-menu{-webkit-transform:translate(-100%,0);-moz-transform:translate(-100%,0);-ms-transform:translate(-100%,0);-o-transform:translate(-100%,0);transform:translate(-100%,0)}.csstransforms.no-csstransforms3d .right-off-canvas-menu{-webkit-transform:translate(100%,0);-moz-transform:translate(100%,0);-ms-transform:translate(100%,0);-o-transform:translate(100%,0);transform:translate(100%,0)}.csstransforms.no-csstransforms3d .move-left>.inner-wrap{-webkit-transform:translate(-250px,0);-moz-transform:translate(-250px,0);-ms-transform:translate(-250px,0);-o-transform:translate(-250px,0);transform:translate(-250px,0)}.csstransforms.no-csstransforms3d .move-right>.inner-wrap{-webkit-transform:translate(250px,0);-moz-transform:translate(250px,0);-ms-transform:translate(250px,0);-o-transform:translate(250px,0);transform:translate(250px,0)}.no-csstransforms .left-off-canvas-menu{left:-250px}.no-csstransforms .right-off-canvas-menu{right:-250px}.no-csstransforms .move-left>.inner-wrap{right:250px}.no-csstransforms .move-right>.inner-wrap{left:250px}.hide-for-large,.hide-for-large-only,.hide-for-large-up,.hide-for-medium,.hide-for-medium-only,.hide-for-medium-up,.hide-for-xlarge,.hide-for-xlarge-only,.hide-for-xlarge-up,.hide-for-xxlarge-only,.hide-for-xxlarge-up,.show-for-large-down,.show-for-medium-down,.show-for-small,.show-for-small-only{display:inherit!important}.hide-for-large-down,.hide-for-medium-down,.hide-for-small,.hide-for-small-only,.show-for-large,.show-for-large-only,.show-for-large-up,.show-for-medium,.show-for-medium-only,.show-for-medium-up,.show-for-xlarge,.show-for-xlarge-only,.show-for-xlarge-up,.show-for-xxlarge-only,.show-for-xxlarge-up{display:none!important}table.hide-for-large,table.hide-for-large-only,table.hide-for-large-up,table.hide-for-medium,table.hide-for-medium-only,table.hide-for-medium-up,table.hide-for-xlarge,table.hide-for-xlarge-only,table.hide-for-xlarge-up,table.hide-for-xxlarge-only,table.hide-for-xxlarge-up,table.show-for-large-down,table.show-for-medium-down,table.show-for-small,table.show-for-small-only{display:table}thead.hide-for-large,thead.hide-for-large-only,thead.hide-for-large-up,thead.hide-for-medium,thead.hide-for-medium-only,thead.hide-for-medium-up,thead.hide-for-xlarge,thead.hide-for-xlarge-only,thead.hide-for-xlarge-up,thead.hide-for-xxlarge-only,thead.hide-for-xxlarge-up,thead.show-for-large-down,thead.show-for-medium-down,thead.show-for-small,thead.show-for-small-only{display:table-header-group!important}tbody.hide-for-large,tbody.hide-for-large-only,tbody.hide-for-large-up,tbody.hide-for-medium,tbody.hide-for-medium-only,tbody.hide-for-medium-up,tbody.hide-for-xlarge,tbody.hide-for-xlarge-only,tbody.hide-for-xlarge-up,tbody.hide-for-xxlarge-only,tbody.hide-for-xxlarge-up,tbody.show-for-large-down,tbody.show-for-medium-down,tbody.show-for-small,tbody.show-for-small-only{display:table-row-group!important}tr.hide-for-large,tr.hide-for-large-only,tr.hide-for-large-up,tr.hide-for-medium,tr.hide-for-medium-only,tr.hide-for-medium-up,tr.hide-for-xlarge,tr.hide-for-xlarge-only,tr.hide-for-xlarge-up,tr.hide-for-xxlarge-only,tr.hide-for-xxlarge-up,tr.show-for-large-down,tr.show-for-medium-down,tr.show-for-small,tr.show-for-small-only{display:table-row!important}td.hide-for-large,td.hide-for-large-up,td.hide-for-medium,td.hide-for-medium-up,td.hide-for-xlarge td.hide-for-xlarge-up,td.hide-for-xxlarge-up,td.show-for-medium-down td.show-for-large-down,td.show-for-small,td.show-for-small-only,th.hide-for-large,th.hide-for-large-up,th.hide-for-medium,th.hide-for-medium-up,th.hide-for-xlarge th.hide-for-xlarge-up,th.hide-for-xxlarge-up,th.show-for-medium-down th.show-for-large-down,th.show-for-small,th.show-for-small-only{display:table-cell!important}@media only screen and (min-width:40.063em){.hide-for-large,.hide-for-large-only,.hide-for-large-up,.hide-for-small,.hide-for-small-only,.hide-for-xlarge,.hide-for-xlarge-only,.hide-for-xlarge-up,.hide-for-xxlarge-only,.hide-for-xxlarge-up,.show-for-medium,.show-for-medium-down,.show-for-medium-only,.show-for-medium-up{display:inherit!important}.hide-for-large-down,.hide-for-medium,.hide-for-medium-down,.hide-for-medium-only,.hide-for-medium-up,.show-for-large,.show-for-large-only,.show-for-large-up,.show-for-small,.show-for-small-only,.show-for-xlarge,.show-for-xlarge-only,.show-for-xlarge-up,.show-for-xxlarge-only,.show-for-xxlarge-up{display:none!important}table.hide-for-large,table.hide-for-large-only,table.hide-for-large-up,table.hide-for-small,table.hide-for-small-only,table.hide-for-xlarge,table.hide-for-xlarge-only,table.hide-for-xlarge-up,table.hide-for-xxlarge-only,table.hide-for-xxlarge-up,table.show-for-medium,table.show-for-medium-down,table.show-for-medium-only,table.show-for-medium-up{display:table}thead.hide-for-large,thead.hide-for-large-only,thead.hide-for-large-up,thead.hide-for-small,thead.hide-for-small-only,thead.hide-for-xlarge,thead.hide-for-xlarge-only,thead.hide-for-xlarge-up,thead.hide-for-xxlarge-only,thead.hide-for-xxlarge-up,thead.show-for-medium,thead.show-for-medium-down,thead.show-for-medium-only,thead.show-for-medium-up{display:table-header-group!important}tbody.hide-for-large,tbody.hide-for-large-only,tbody.hide-for-large-up,tbody.hide-for-small,tbody.hide-for-small-only,tbody.hide-for-xlarge,tbody.hide-for-xlarge-only,tbody.hide-for-xlarge-up,tbody.hide-for-xxlarge-only,tbody.hide-for-xxlarge-up,tbody.show-for-medium,tbody.show-for-medium-down,tbody.show-for-medium-only,tbody.show-for-medium-up{display:table-row-group!important}tr.hide-for-large,tr.hide-for-large-only,tr.hide-for-large-up,tr.hide-for-small,tr.hide-for-small-only,tr.hide-for-xlarge,tr.hide-for-xlarge-only,tr.hide-for-xlarge-up,tr.hide-for-xxlarge-only,tr.hide-for-xxlarge-up,tr.show-for-medium,tr.show-for-medium-down,tr.show-for-medium-only,tr.show-for-medium-up{display:table-row!important}td.hide-for-large,td.hide-for-large-only,td.hide-for-large-up,td.hide-for-small,td.hide-for-small-only,td.hide-for-xlarge,td.hide-for-xlarge-only,td.hide-for-xlarge-up,td.hide-for-xxlarge-only,td.hide-for-xxlarge-up,td.show-for-medium,td.show-for-medium-down,td.show-for-medium-only,td.show-for-medium-up,th.hide-for-large,th.hide-for-large-only,th.hide-for-large-up,th.hide-for-small,th.hide-for-small-only,th.hide-for-xlarge,th.hide-for-xlarge-only,th.hide-for-xlarge-up,th.hide-for-xxlarge-only,th.hide-for-xxlarge-up,th.show-for-medium,th.show-for-medium-down,th.show-for-medium-only,th.show-for-medium-up{display:table-cell!important}}@media only screen and (min-width:64.063em){.hide-for-medium,.hide-for-medium-down,.hide-for-medium-only,.hide-for-small,.hide-for-small-only,.hide-for-xlarge,.hide-for-xlarge-only,.hide-for-xlarge-up,.hide-for-xxlarge-only,.hide-for-xxlarge-up,.show-for-large,.show-for-large-only,.show-for-large-up,.show-for-medium-up{display:inherit!important}.hide-for-large,.hide-for-large-only,.hide-for-large-up,.show-for-medium,.show-for-medium-down,.show-for-medium-only,.show-for-small-only,.show-for-xlarge,.show-for-xlarge-only,.show-for-xlarge-up,.show-for-xxlarge-only,.show-for-xxlarge-up{display:none!important}table.hide-for-medium,table.hide-for-medium-down,table.hide-for-medium-only,table.hide-for-small,table.hide-for-small-only,table.hide-for-xlarge,table.hide-for-xlarge-only,table.hide-for-xlarge-up,table.hide-for-xxlarge-only,table.hide-for-xxlarge-up,table.show-for-large,table.show-for-large-only,table.show-for-large-up,table.show-for-medium-up{display:table}thead.hide-for-medium,thead.hide-for-medium-down,thead.hide-for-medium-only,thead.hide-for-small,thead.hide-for-small-only,thead.hide-for-xlarge,thead.hide-for-xlarge-only,thead.hide-for-xlarge-up,thead.hide-for-xxlarge-only,thead.hide-for-xxlarge-up,thead.show-for-large,thead.show-for-large-only,thead.show-for-large-up,thead.show-for-medium-up{display:table-header-group!important}tbody.hide-for-medium,tbody.hide-for-medium-down,tbody.hide-for-medium-only,tbody.hide-for-small,tbody.hide-for-small-only,tbody.hide-for-xlarge,tbody.hide-for-xlarge-only,tbody.hide-for-xlarge-up,tbody.hide-for-xxlarge-only,tbody.hide-for-xxlarge-up,tbody.show-for-large,tbody.show-for-large-only,tbody.show-for-large-up,tbody.show-for-medium-up{display:table-row-group!important}tr.hide-for-medium,tr.hide-for-medium-down,tr.hide-for-medium-only,tr.hide-for-small,tr.hide-for-small-only,tr.hide-for-xlarge,tr.hide-for-xlarge-only,tr.hide-for-xlarge-up,tr.hide-for-xxlarge-only,tr.hide-for-xxlarge-up,tr.show-for-large,tr.show-for-large-only,tr.show-for-large-up,tr.show-for-medium-up{display:table-row!important}td.hide-for-medium,td.hide-for-medium-down,td.hide-for-medium-only,td.hide-for-small,td.hide-for-small-only,td.hide-for-xlarge,td.hide-for-xlarge-only,td.hide-for-xlarge-up,td.hide-for-xxlarge-only,td.hide-for-xxlarge-up,td.show-for-large,td.show-for-large-only,td.show-for-large-up,td.show-for-medium-up,th.hide-for-medium,th.hide-for-medium-down,th.hide-for-medium-only,th.hide-for-small,th.hide-for-small-only,th.hide-for-xlarge,th.hide-for-xlarge-only,th.hide-for-xlarge-up,th.hide-for-xxlarge-only,th.hide-for-xxlarge-up,th.show-for-large,th.show-for-large-only,th.show-for-large-up,th.show-for-medium-up{display:table-cell!important}}@media only screen and (min-width:90.063em){.hide-for-large-only,.hide-for-medium,.hide-for-medium-down,.hide-for-medium-only,.hide-for-small,.hide-for-small-only,.hide-for-xxlarge-only,.hide-for-xxlarge-up,.show-for-large-up,.show-for-medium-up,.show-for-xlarge,.show-for-xlarge-only,.show-for-xlarge-up{display:inherit!important}.hide-for-xlarge,.hide-for-xlarge-only,.hide-for-xlarge-up,.show-for-large,.show-for-large-down,.show-for-large-only,.show-for-medium,.show-for-medium-down,.show-for-medium-only,.show-for-small-only,.show-for-xxlarge-only,.show-for-xxlarge-up{display:none!important}table.hide-for-large-only,table.hide-for-medium,table.hide-for-medium-down,table.hide-for-medium-only,table.hide-for-small,table.hide-for-small-only,table.hide-for-xxlarge-only,table.hide-for-xxlarge-up,table.show-for-large-up,table.show-for-medium-up,table.show-for-xlarge,table.show-for-xlarge-only,table.show-for-xlarge-up{display:table}thead.hide-for-large-only,thead.hide-for-medium,thead.hide-for-medium-down,thead.hide-for-medium-only,thead.hide-for-small,thead.hide-for-small-only,thead.hide-for-xxlarge-only,thead.hide-for-xxlarge-up,thead.show-for-large-up,thead.show-for-medium-up,thead.show-for-xlarge,thead.show-for-xlarge-only,thead.show-for-xlarge-up{display:table-header-group!important}tbody.hide-for-large-only,tbody.hide-for-medium,tbody.hide-for-medium-down,tbody.hide-for-medium-only,tbody.hide-for-small,tbody.hide-for-small-only,tbody.hide-for-xxlarge-only,tbody.hide-for-xxlarge-up,tbody.show-for-large-up,tbody.show-for-medium-up,tbody.show-for-xlarge,tbody.show-for-xlarge-only,tbody.show-for-xlarge-up{display:table-row-group!important}tr.hide-for-large-only,tr.hide-for-medium,tr.hide-for-medium-down,tr.hide-for-medium-only,tr.hide-for-small,tr.hide-for-small-only,tr.hide-for-xxlarge-only,tr.hide-for-xxlarge-up,tr.show-for-large-up,tr.show-for-medium-up,tr.show-for-xlarge,tr.show-for-xlarge-only,tr.show-for-xlarge-up{display:table-row!important}td.hide-for-large-only,td.hide-for-medium,td.hide-for-medium-down,td.hide-for-medium-only,td.hide-for-small,td.hide-for-small-only,td.hide-for-xxlarge-only,td.hide-for-xxlarge-up,td.show-for-large-up,td.show-for-medium-up,td.show-for-xlarge,td.show-for-xlarge-only,td.show-for-xlarge-up,th.hide-for-large-only,th.hide-for-medium,th.hide-for-medium-down,th.hide-for-medium-only,th.hide-for-small,th.hide-for-small-only,th.hide-for-xxlarge-only,th.hide-for-xxlarge-up,th.show-for-large-up,th.show-for-medium-up,th.show-for-xlarge,th.show-for-xlarge-only,th.show-for-xlarge-up{display:table-cell!important}}@media only screen and (min-width:120.063em){.hide-for-large-only,.hide-for-medium,.hide-for-medium-down,.hide-for-medium-only,.hide-for-small,.hide-for-small-only,.hide-for-xlarge-only,.show-for-large-up,.show-for-medium-up,.show-for-xlarge-up,.show-for-xxlarge-only,.show-for-xxlarge-up{display:inherit!important}.hide-for-xlarge,.hide-for-xxlarge-only,.hide-for-xxlarge-up,.show-for-large,.show-for-large-down,.show-for-large-only,.show-for-medium,.show-for-medium-down,.show-for-medium-only,.show-for-small-only,.show-for-xlarge-only{display:none!important}table.hide-for-medium,table.hide-for-medium-down,table.hide-for-medium-only,table.hide-for-small,table.hide-for-small-only,table.hide-for-xlarge-only,table.show-for-large-up,table.show-for-medium-up,table.show-for-xlarge-up,table.show-for-xxlarge-only,table.show-for-xxlarge-up{display:table}thead.hide-for-medium,thead.hide-for-medium-down,thead.hide-for-medium-only,thead.hide-for-small,thead.hide-for-small-only,thead.hide-for-xlarge-only,thead.show-for-large-up,thead.show-for-medium-up,thead.show-for-xlarge-up,thead.show-for-xxlarge-only,thead.show-for-xxlarge-up{display:table-header-group!important}tbody.hide-for-medium,tbody.hide-for-medium-down,tbody.hide-for-medium-only,tbody.hide-for-small,tbody.hide-for-small-only,tbody.hide-for-xlarge-only,tbody.show-for-large-up,tbody.show-for-medium-up,tbody.show-for-xlarge-up,tbody.show-for-xxlarge-only,tbody.show-for-xxlarge-up{display:table-row-group!important}tr.hide-for-medium,tr.hide-for-medium-down,tr.hide-for-medium-only,tr.hide-for-small,tr.hide-for-small-only,tr.hide-for-xlarge-only,tr.show-for-large-up,tr.show-for-medium-up,tr.show-for-xlarge-up,tr.show-for-xxlarge-only,tr.show-for-xxlarge-up{display:table-row!important}td.hide-for-medium,td.hide-for-medium-down,td.hide-for-medium-only,td.hide-for-small,td.hide-for-small-only,td.hide-for-xlarge-only,td.show-for-large-up,td.show-for-medium-up,td.show-for-xlarge-up,td.show-for-xxlarge-only,td.show-for-xxlarge-up,th.hide-for-medium,th.hide-for-medium-down,th.hide-for-medium-only,th.hide-for-small,th.hide-for-small-only,th.hide-for-xlarge-only,th.show-for-large-up,th.show-for-medium-up,th.show-for-xlarge-up,th.show-for-xxlarge-only,th.show-for-xxlarge-up{display:table-cell!important}}.hide-for-portrait,.show-for-landscape{display:inherit!important}.hide-for-landscape,.show-for-portrait{display:none!important}table.hide-for-landscape,table.show-for-portrait{display:table}thead.hide-for-landscape,thead.show-for-portrait{display:table-header-group!important}tbody.hide-for-landscape,tbody.show-for-portrait{display:table-row-group!important}tr.hide-for-landscape,tr.show-for-portrait{display:table-row!important}td.hide-for-landscape,td.show-for-portrait,th.hide-for-landscape,th.show-for-portrait{display:table-cell!important}@media only screen and (orientation:landscape){.hide-for-portrait,.show-for-landscape{display:inherit!important}.hide-for-landscape,.show-for-portrait{display:none!important}table.hide-for-portrait,table.show-for-landscape{display:table}thead.hide-for-portrait,thead.show-for-landscape{display:table-header-group!important}tbody.hide-for-portrait,tbody.show-for-landscape{display:table-row-group!important}tr.hide-for-portrait,tr.show-for-landscape{display:table-row!important}td.hide-for-portrait,td.show-for-landscape,th.hide-for-portrait,th.show-for-landscape{display:table-cell!important}}@media only screen and (orientation:portrait){.hide-for-landscape,.show-for-portrait{display:inherit!important}.hide-for-portrait,.show-for-landscape{display:none!important}table.hide-for-landscape,table.show-for-portrait{display:table}thead.hide-for-landscape,thead.show-for-portrait{display:table-header-group!important}tbody.hide-for-landscape,tbody.show-for-portrait{display:table-row-group!important}tr.hide-for-landscape,tr.show-for-portrait{display:table-row!important}td.hide-for-landscape,td.show-for-portrait,th.hide-for-landscape,th.show-for-portrait{display:table-cell!important}}.show-for-touch{display:none!important}.hide-for-touch,.touch .show-for-touch{display:inherit!important}.touch .hide-for-touch{display:none!important}.touch table.show-for-touch,table.hide-for-touch{display:table}.touch thead.show-for-touch,thead.hide-for-touch{display:table-header-group!important}.touch tbody.show-for-touch,tbody.hide-for-touch{display:table-row-group!important}.touch tr.show-for-touch,tr.hide-for-touch{display:table-row!important}.touch td.show-for-touch,.touch th.show-for-touch,td.hide-for-touch,th.hide-for-touch{display:table-cell!important} |
| \ No newline at end of file | |
generators/foundation5/public/stylesheets/app.min.css.scss
+3
-0
| @@ | @@ -0,0 +1,3 @@ |
| + | @import 'normalize'; |
| + | @import 'foundation/settings'; |
| + | @import 'foundation'; |
| \ No newline at end of file | |
generators/foundation5/public/stylesheets/foundation.css
+5398
-0
| @@ | @@ -0,0 +1,5398 @@ |
| + | meta.foundation-version { |
| + | font-family: "/5.2.3/"; } |
| + | |
| + | meta.foundation-mq-small { |
| + | font-family: "/only screen/"; |
| + | width: 0em; } |
| + | |
| + | meta.foundation-mq-medium { |
| + | font-family: "/only screen and (min-width:40.063em)/"; |
| + | width: 40.063em; } |
| + | |
| + | meta.foundation-mq-large { |
| + | font-family: "/only screen and (min-width:64.063em)/"; |
| + | width: 64.063em; } |
| + | |
| + | meta.foundation-mq-xlarge { |
| + | font-family: "/only screen and (min-width:90.063em)/"; |
| + | width: 90.063em; } |
| + | |
| + | meta.foundation-mq-xxlarge { |
| + | font-family: "/only screen and (min-width:120.063em)/"; |
| + | width: 120.063em; } |
| + | |
| + | meta.foundation-data-attribute-namespace { |
| + | font-family: false; } |
| + | |
| + | html, body { |
| + | height: 100%; } |
| + | |
| + | *, |
| + | *:before, |
| + | *:after { |
| + | -webkit-box-sizing: border-box; |
| + | -moz-box-sizing: border-box; |
| + | box-sizing: border-box; } |
| + | |
| + | html, |
| + | body { |
| + | font-size: 100%; } |
| + | |
| + | body { |
| + | background: white; |
| + | color: #222222; |
| + | padding: 0; |
| + | margin: 0; |
| + | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| + | font-weight: normal; |
| + | font-style: normal; |
| + | line-height: 1; |
| + | position: relative; |
| + | cursor: default; } |
| + | |
| + | a:hover { |
| + | cursor: pointer; } |
| + | |
| + | img { |
| + | max-width: 100%; |
| + | height: auto; } |
| + | |
| + | img { |
| + | -ms-interpolation-mode: bicubic; } |
| + | |
| + | #map_canvas img, |
| + | #map_canvas embed, |
| + | #map_canvas object, |
| + | .map_canvas img, |
| + | .map_canvas embed, |
| + | .map_canvas object { |
| + | max-width: none !important; } |
| + | |
| + | .left { |
| + | float: left !important; } |
| + | |
| + | .right { |
| + | float: right !important; } |
| + | |
| + | .clearfix:before, .clearfix:after { |
| + | content: " "; |
| + | display: table; } |
| + | .clearfix:after { |
| + | clear: both; } |
| + | |
| + | .hide { |
| + | display: none; } |
| + | |
| + | .antialiased { |
| + | -webkit-font-smoothing: antialiased; |
| + | -moz-osx-font-smoothing: grayscale; } |
| + | |
| + | img { |
| + | display: inline-block; |
| + | vertical-align: middle; } |
| + | |
| + | textarea { |
| + | height: auto; |
| + | min-height: 50px; } |
| + | |
| + | select { |
| + | width: 100%; } |
| + | |
| + | .row { |
| + | width: 100%; |
| + | margin-left: auto; |
| + | margin-right: auto; |
| + | margin-top: 0; |
| + | margin-bottom: 0; |
| + | max-width: 62.5rem; } |
| + | .row:before, .row:after { |
| + | content: " "; |
| + | display: table; } |
| + | .row:after { |
| + | clear: both; } |
| + | .row.collapse > .column, |
| + | .row.collapse > .columns { |
| + | padding-left: 0; |
| + | padding-right: 0; } |
| + | .row.collapse .row { |
| + | margin-left: 0; |
| + | margin-right: 0; } |
| + | .row .row { |
| + | width: auto; |
| + | margin-left: -0.9375rem; |
| + | margin-right: -0.9375rem; |
| + | margin-top: 0; |
| + | margin-bottom: 0; |
| + | max-width: none; } |
| + | .row .row:before, .row .row:after { |
| + | content: " "; |
| + | display: table; } |
| + | .row .row:after { |
| + | clear: both; } |
| + | .row .row.collapse { |
| + | width: auto; |
| + | margin: 0; |
| + | max-width: none; } |
| + | .row .row.collapse:before, .row .row.collapse:after { |
| + | content: " "; |
| + | display: table; } |
| + | .row .row.collapse:after { |
| + | clear: both; } |
| + | |
| + | .column, |
| + | .columns { |
| + | padding-left: 0.9375rem; |
| + | padding-right: 0.9375rem; |
| + | width: 100%; |
| + | float: left; } |
| + | |
| + | @media only screen { |
| + | .small-push-0 { |
| + | position: relative; |
| + | left: 0%; |
| + | right: auto; } |
| + | |
| + | .small-pull-0 { |
| + | position: relative; |
| + | right: 0%; |
| + | left: auto; } |
| + | |
| + | .small-push-1 { |
| + | position: relative; |
| + | left: 8.33333%; |
| + | right: auto; } |
| + | |
| + | .small-pull-1 { |
| + | position: relative; |
| + | right: 8.33333%; |
| + | left: auto; } |
| + | |
| + | .small-push-2 { |
| + | position: relative; |
| + | left: 16.66667%; |
| + | right: auto; } |
| + | |
| + | .small-pull-2 { |
| + | position: relative; |
| + | right: 16.66667%; |
| + | left: auto; } |
| + | |
| + | .small-push-3 { |
| + | position: relative; |
| + | left: 25%; |
| + | right: auto; } |
| + | |
| + | .small-pull-3 { |
| + | position: relative; |
| + | right: 25%; |
| + | left: auto; } |
| + | |
| + | .small-push-4 { |
| + | position: relative; |
| + | left: 33.33333%; |
| + | right: auto; } |
| + | |
| + | .small-pull-4 { |
| + | position: relative; |
| + | right: 33.33333%; |
| + | left: auto; } |
| + | |
| + | .small-push-5 { |
| + | position: relative; |
| + | left: 41.66667%; |
| + | right: auto; } |
| + | |
| + | .small-pull-5 { |
| + | position: relative; |
| + | right: 41.66667%; |
| + | left: auto; } |
| + | |
| + | .small-push-6 { |
| + | position: relative; |
| + | left: 50%; |
| + | right: auto; } |
| + | |
| + | .small-pull-6 { |
| + | position: relative; |
| + | right: 50%; |
| + | left: auto; } |
| + | |
| + | .small-push-7 { |
| + | position: relative; |
| + | left: 58.33333%; |
| + | right: auto; } |
| + | |
| + | .small-pull-7 { |
| + | position: relative; |
| + | right: 58.33333%; |
| + | left: auto; } |
| + | |
| + | .small-push-8 { |
| + | position: relative; |
| + | left: 66.66667%; |
| + | right: auto; } |
| + | |
| + | .small-pull-8 { |
| + | position: relative; |
| + | right: 66.66667%; |
| + | left: auto; } |
| + | |
| + | .small-push-9 { |
| + | position: relative; |
| + | left: 75%; |
| + | right: auto; } |
| + | |
| + | .small-pull-9 { |
| + | position: relative; |
| + | right: 75%; |
| + | left: auto; } |
| + | |
| + | .small-push-10 { |
| + | position: relative; |
| + | left: 83.33333%; |
| + | right: auto; } |
| + | |
| + | .small-pull-10 { |
| + | position: relative; |
| + | right: 83.33333%; |
| + | left: auto; } |
| + | |
| + | .small-push-11 { |
| + | position: relative; |
| + | left: 91.66667%; |
| + | right: auto; } |
| + | |
| + | .small-pull-11 { |
| + | position: relative; |
| + | right: 91.66667%; |
| + | left: auto; } |
| + | |
| + | .column, |
| + | .columns { |
| + | position: relative; |
| + | padding-left: 0.9375rem; |
| + | padding-right: 0.9375rem; |
| + | float: left; } |
| + | |
| + | .small-1 { |
| + | width: 8.33333%; } |
| + | |
| + | .small-2 { |
| + | width: 16.66667%; } |
| + | |
| + | .small-3 { |
| + | width: 25%; } |
| + | |
| + | .small-4 { |
| + | width: 33.33333%; } |
| + | |
| + | .small-5 { |
| + | width: 41.66667%; } |
| + | |
| + | .small-6 { |
| + | width: 50%; } |
| + | |
| + | .small-7 { |
| + | width: 58.33333%; } |
| + | |
| + | .small-8 { |
| + | width: 66.66667%; } |
| + | |
| + | .small-9 { |
| + | width: 75%; } |
| + | |
| + | .small-10 { |
| + | width: 83.33333%; } |
| + | |
| + | .small-11 { |
| + | width: 91.66667%; } |
| + | |
| + | .small-12 { |
| + | width: 100%; } |
| + | |
| + | [class*="column"] + [class*="column"]:last-child { |
| + | float: right; } |
| + | |
| + | [class*="column"] + [class*="column"].end { |
| + | float: left; } |
| + | |
| + | .small-offset-0 { |
| + | margin-left: 0% !important; } |
| + | |
| + | .small-offset-1 { |
| + | margin-left: 8.33333% !important; } |
| + | |
| + | .small-offset-2 { |
| + | margin-left: 16.66667% !important; } |
| + | |
| + | .small-offset-3 { |
| + | margin-left: 25% !important; } |
| + | |
| + | .small-offset-4 { |
| + | margin-left: 33.33333% !important; } |
| + | |
| + | .small-offset-5 { |
| + | margin-left: 41.66667% !important; } |
| + | |
| + | .small-offset-6 { |
| + | margin-left: 50% !important; } |
| + | |
| + | .small-offset-7 { |
| + | margin-left: 58.33333% !important; } |
| + | |
| + | .small-offset-8 { |
| + | margin-left: 66.66667% !important; } |
| + | |
| + | .small-offset-9 { |
| + | margin-left: 75% !important; } |
| + | |
| + | .small-offset-10 { |
| + | margin-left: 83.33333% !important; } |
| + | |
| + | .small-offset-11 { |
| + | margin-left: 91.66667% !important; } |
| + | |
| + | .small-reset-order { |
| + | margin-left: 0; |
| + | margin-right: 0; |
| + | left: auto; |
| + | right: auto; |
| + | float: left; } |
| + | |
| + | .column.small-centered, |
| + | .columns.small-centered { |
| + | margin-left: auto; |
| + | margin-right: auto; |
| + | float: none !important; } |
| + | |
| + | .column.small-uncentered, |
| + | .columns.small-uncentered { |
| + | margin-left: 0; |
| + | margin-right: 0; |
| + | float: left !important; } |
| + | |
| + | .column.small-uncentered.opposite, |
| + | .columns.small-uncentered.opposite { |
| + | float: right; } } |
| + | @media only screen and (min-width: 40.063em) { |
| + | .medium-push-0 { |
| + | position: relative; |
| + | left: 0%; |
| + | right: auto; } |
| + | |
| + | .medium-pull-0 { |
| + | position: relative; |
| + | right: 0%; |
| + | left: auto; } |
| + | |
| + | .medium-push-1 { |
| + | position: relative; |
| + | left: 8.33333%; |
| + | right: auto; } |
| + | |
| + | .medium-pull-1 { |
| + | position: relative; |
| + | right: 8.33333%; |
| + | left: auto; } |
| + | |
| + | .medium-push-2 { |
| + | position: relative; |
| + | left: 16.66667%; |
| + | right: auto; } |
| + | |
| + | .medium-pull-2 { |
| + | position: relative; |
| + | right: 16.66667%; |
| + | left: auto; } |
| + | |
| + | .medium-push-3 { |
| + | position: relative; |
| + | left: 25%; |
| + | right: auto; } |
| + | |
| + | .medium-pull-3 { |
| + | position: relative; |
| + | right: 25%; |
| + | left: auto; } |
| + | |
| + | .medium-push-4 { |
| + | position: relative; |
| + | left: 33.33333%; |
| + | right: auto; } |
| + | |
| + | .medium-pull-4 { |
| + | position: relative; |
| + | right: 33.33333%; |
| + | left: auto; } |
| + | |
| + | .medium-push-5 { |
| + | position: relative; |
| + | left: 41.66667%; |
| + | right: auto; } |
| + | |
| + | .medium-pull-5 { |
| + | position: relative; |
| + | right: 41.66667%; |
| + | left: auto; } |
| + | |
| + | .medium-push-6 { |
| + | position: relative; |
| + | left: 50%; |
| + | right: auto; } |
| + | |
| + | .medium-pull-6 { |
| + | position: relative; |
| + | right: 50%; |
| + | left: auto; } |
| + | |
| + | .medium-push-7 { |
| + | position: relative; |
| + | left: 58.33333%; |
| + | right: auto; } |
| + | |
| + | .medium-pull-7 { |
| + | position: relative; |
| + | right: 58.33333%; |
| + | left: auto; } |
| + | |
| + | .medium-push-8 { |
| + | position: relative; |
| + | left: 66.66667%; |
| + | right: auto; } |
| + | |
| + | .medium-pull-8 { |
| + | position: relative; |
| + | right: 66.66667%; |
| + | left: auto; } |
| + | |
| + | .medium-push-9 { |
| + | position: relative; |
| + | left: 75%; |
| + | right: auto; } |
| + | |
| + | .medium-pull-9 { |
| + | position: relative; |
| + | right: 75%; |
| + | left: auto; } |
| + | |
| + | .medium-push-10 { |
| + | position: relative; |
| + | left: 83.33333%; |
| + | right: auto; } |
| + | |
| + | .medium-pull-10 { |
| + | position: relative; |
| + | right: 83.33333%; |
| + | left: auto; } |
| + | |
| + | .medium-push-11 { |
| + | position: relative; |
| + | left: 91.66667%; |
| + | right: auto; } |
| + | |
| + | .medium-pull-11 { |
| + | position: relative; |
| + | right: 91.66667%; |
| + | left: auto; } |
| + | |
| + | .column, |
| + | .columns { |
| + | position: relative; |
| + | padding-left: 0.9375rem; |
| + | padding-right: 0.9375rem; |
| + | float: left; } |
| + | |
| + | .medium-1 { |
| + | width: 8.33333%; } |
| + | |
| + | .medium-2 { |
| + | width: 16.66667%; } |
| + | |
| + | .medium-3 { |
| + | width: 25%; } |
| + | |
| + | .medium-4 { |
| + | width: 33.33333%; } |
| + | |
| + | .medium-5 { |
| + | width: 41.66667%; } |
| + | |
| + | .medium-6 { |
| + | width: 50%; } |
| + | |
| + | .medium-7 { |
| + | width: 58.33333%; } |
| + | |
| + | .medium-8 { |
| + | width: 66.66667%; } |
| + | |
| + | .medium-9 { |
| + | width: 75%; } |
| + | |
| + | .medium-10 { |
| + | width: 83.33333%; } |
| + | |
| + | .medium-11 { |
| + | width: 91.66667%; } |
| + | |
| + | .medium-12 { |
| + | width: 100%; } |
| + | |
| + | [class*="column"] + [class*="column"]:last-child { |
| + | float: right; } |
| + | |
| + | [class*="column"] + [class*="column"].end { |
| + | float: left; } |
| + | |
| + | .medium-offset-0 { |
| + | margin-left: 0% !important; } |
| + | |
| + | .medium-offset-1 { |
| + | margin-left: 8.33333% !important; } |
| + | |
| + | .medium-offset-2 { |
| + | margin-left: 16.66667% !important; } |
| + | |
| + | .medium-offset-3 { |
| + | margin-left: 25% !important; } |
| + | |
| + | .medium-offset-4 { |
| + | margin-left: 33.33333% !important; } |
| + | |
| + | .medium-offset-5 { |
| + | margin-left: 41.66667% !important; } |
| + | |
| + | .medium-offset-6 { |
| + | margin-left: 50% !important; } |
| + | |
| + | .medium-offset-7 { |
| + | margin-left: 58.33333% !important; } |
| + | |
| + | .medium-offset-8 { |
| + | margin-left: 66.66667% !important; } |
| + | |
| + | .medium-offset-9 { |
| + | margin-left: 75% !important; } |
| + | |
| + | .medium-offset-10 { |
| + | margin-left: 83.33333% !important; } |
| + | |
| + | .medium-offset-11 { |
| + | margin-left: 91.66667% !important; } |
| + | |
| + | .medium-reset-order { |
| + | margin-left: 0; |
| + | margin-right: 0; |
| + | left: auto; |
| + | right: auto; |
| + | float: left; } |
| + | |
| + | .column.medium-centered, |
| + | .columns.medium-centered { |
| + | margin-left: auto; |
| + | margin-right: auto; |
| + | float: none !important; } |
| + | |
| + | .column.medium-uncentered, |
| + | .columns.medium-uncentered { |
| + | margin-left: 0; |
| + | margin-right: 0; |
| + | float: left !important; } |
| + | |
| + | .column.medium-uncentered.opposite, |
| + | .columns.medium-uncentered.opposite { |
| + | float: right; } |
| + | |
| + | .push-0 { |
| + | position: relative; |
| + | left: 0%; |
| + | right: auto; } |
| + | |
| + | .pull-0 { |
| + | position: relative; |
| + | right: 0%; |
| + | left: auto; } |
| + | |
| + | .push-1 { |
| + | position: relative; |
| + | left: 8.33333%; |
| + | right: auto; } |
| + | |
| + | .pull-1 { |
| + | position: relative; |
| + | right: 8.33333%; |
| + | left: auto; } |
| + | |
| + | .push-2 { |
| + | position: relative; |
| + | left: 16.66667%; |
| + | right: auto; } |
| + | |
| + | .pull-2 { |
| + | position: relative; |
| + | right: 16.66667%; |
| + | left: auto; } |
| + | |
| + | .push-3 { |
| + | position: relative; |
| + | left: 25%; |
| + | right: auto; } |
| + | |
| + | .pull-3 { |
| + | position: relative; |
| + | right: 25%; |
| + | left: auto; } |
| + | |
| + | .push-4 { |
| + | position: relative; |
| + | left: 33.33333%; |
| + | right: auto; } |
| + | |
| + | .pull-4 { |
| + | position: relative; |
| + | right: 33.33333%; |
| + | left: auto; } |
| + | |
| + | .push-5 { |
| + | position: relative; |
| + | left: 41.66667%; |
| + | right: auto; } |
| + | |
| + | .pull-5 { |
| + | position: relative; |
| + | right: 41.66667%; |
| + | left: auto; } |
| + | |
| + | .push-6 { |
| + | position: relative; |
| + | left: 50%; |
| + | right: auto; } |
| + | |
| + | .pull-6 { |
| + | position: relative; |
| + | right: 50%; |
| + | left: auto; } |
| + | |
| + | .push-7 { |
| + | position: relative; |
| + | left: 58.33333%; |
| + | right: auto; } |
| + | |
| + | .pull-7 { |
| + | position: relative; |
| + | right: 58.33333%; |
| + | left: auto; } |
| + | |
| + | .push-8 { |
| + | position: relative; |
| + | left: 66.66667%; |
| + | right: auto; } |
| + | |
| + | .pull-8 { |
| + | position: relative; |
| + | right: 66.66667%; |
| + | left: auto; } |
| + | |
| + | .push-9 { |
| + | position: relative; |
| + | left: 75%; |
| + | right: auto; } |
| + | |
| + | .pull-9 { |
| + | position: relative; |
| + | right: 75%; |
| + | left: auto; } |
| + | |
| + | .push-10 { |
| + | position: relative; |
| + | left: 83.33333%; |
| + | right: auto; } |
| + | |
| + | .pull-10 { |
| + | position: relative; |
| + | right: 83.33333%; |
| + | left: auto; } |
| + | |
| + | .push-11 { |
| + | position: relative; |
| + | left: 91.66667%; |
| + | right: auto; } |
| + | |
| + | .pull-11 { |
| + | position: relative; |
| + | right: 91.66667%; |
| + | left: auto; } } |
| + | @media only screen and (min-width: 64.063em) { |
| + | .large-push-0 { |
| + | position: relative; |
| + | left: 0%; |
| + | right: auto; } |
| + | |
| + | .large-pull-0 { |
| + | position: relative; |
| + | right: 0%; |
| + | left: auto; } |
| + | |
| + | .large-push-1 { |
| + | position: relative; |
| + | left: 8.33333%; |
| + | right: auto; } |
| + | |
| + | .large-pull-1 { |
| + | position: relative; |
| + | right: 8.33333%; |
| + | left: auto; } |
| + | |
| + | .large-push-2 { |
| + | position: relative; |
| + | left: 16.66667%; |
| + | right: auto; } |
| + | |
| + | .large-pull-2 { |
| + | position: relative; |
| + | right: 16.66667%; |
| + | left: auto; } |
| + | |
| + | .large-push-3 { |
| + | position: relative; |
| + | left: 25%; |
| + | right: auto; } |
| + | |
| + | .large-pull-3 { |
| + | position: relative; |
| + | right: 25%; |
| + | left: auto; } |
| + | |
| + | .large-push-4 { |
| + | position: relative; |
| + | left: 33.33333%; |
| + | right: auto; } |
| + | |
| + | .large-pull-4 { |
| + | position: relative; |
| + | right: 33.33333%; |
| + | left: auto; } |
| + | |
| + | .large-push-5 { |
| + | position: relative; |
| + | left: 41.66667%; |
| + | right: auto; } |
| + | |
| + | .large-pull-5 { |
| + | position: relative; |
| + | right: 41.66667%; |
| + | left: auto; } |
| + | |
| + | .large-push-6 { |
| + | position: relative; |
| + | left: 50%; |
| + | right: auto; } |
| + | |
| + | .large-pull-6 { |
| + | position: relative; |
| + | right: 50%; |
| + | left: auto; } |
| + | |
| + | .large-push-7 { |
| + | position: relative; |
| + | left: 58.33333%; |
| + | right: auto; } |
| + | |
| + | .large-pull-7 { |
| + | position: relative; |
| + | right: 58.33333%; |
| + | left: auto; } |
| + | |
| + | .large-push-8 { |
| + | position: relative; |
| + | left: 66.66667%; |
| + | right: auto; } |
| + | |
| + | .large-pull-8 { |
| + | position: relative; |
| + | right: 66.66667%; |
| + | left: auto; } |
| + | |
| + | .large-push-9 { |
| + | position: relative; |
| + | left: 75%; |
| + | right: auto; } |
| + | |
| + | .large-pull-9 { |
| + | position: relative; |
| + | right: 75%; |
| + | left: auto; } |
| + | |
| + | .large-push-10 { |
| + | position: relative; |
| + | left: 83.33333%; |
| + | right: auto; } |
| + | |
| + | .large-pull-10 { |
| + | position: relative; |
| + | right: 83.33333%; |
| + | left: auto; } |
| + | |
| + | .large-push-11 { |
| + | position: relative; |
| + | left: 91.66667%; |
| + | right: auto; } |
| + | |
| + | .large-pull-11 { |
| + | position: relative; |
| + | right: 91.66667%; |
| + | left: auto; } |
| + | |
| + | .column, |
| + | .columns { |
| + | position: relative; |
| + | padding-left: 0.9375rem; |
| + | padding-right: 0.9375rem; |
| + | float: left; } |
| + | |
| + | .large-1 { |
| + | width: 8.33333%; } |
| + | |
| + | .large-2 { |
| + | width: 16.66667%; } |
| + | |
| + | .large-3 { |
| + | width: 25%; } |
| + | |
| + | .large-4 { |
| + | width: 33.33333%; } |
| + | |
| + | .large-5 { |
| + | width: 41.66667%; } |
| + | |
| + | .large-6 { |
| + | width: 50%; } |
| + | |
| + | .large-7 { |
| + | width: 58.33333%; } |
| + | |
| + | .large-8 { |
| + | width: 66.66667%; } |
| + | |
| + | .large-9 { |
| + | width: 75%; } |
| + | |
| + | .large-10 { |
| + | width: 83.33333%; } |
| + | |
| + | .large-11 { |
| + | width: 91.66667%; } |
| + | |
| + | .large-12 { |
| + | width: 100%; } |
| + | |
| + | [class*="column"] + [class*="column"]:last-child { |
| + | float: right; } |
| + | |
| + | [class*="column"] + [class*="column"].end { |
| + | float: left; } |
| + | |
| + | .large-offset-0 { |
| + | margin-left: 0% !important; } |
| + | |
| + | .large-offset-1 { |
| + | margin-left: 8.33333% !important; } |
| + | |
| + | .large-offset-2 { |
| + | margin-left: 16.66667% !important; } |
| + | |
| + | .large-offset-3 { |
| + | margin-left: 25% !important; } |
| + | |
| + | .large-offset-4 { |
| + | margin-left: 33.33333% !important; } |
| + | |
| + | .large-offset-5 { |
| + | margin-left: 41.66667% !important; } |
| + | |
| + | .large-offset-6 { |
| + | margin-left: 50% !important; } |
| + | |
| + | .large-offset-7 { |
| + | margin-left: 58.33333% !important; } |
| + | |
| + | .large-offset-8 { |
| + | margin-left: 66.66667% !important; } |
| + | |
| + | .large-offset-9 { |
| + | margin-left: 75% !important; } |
| + | |
| + | .large-offset-10 { |
| + | margin-left: 83.33333% !important; } |
| + | |
| + | .large-offset-11 { |
| + | margin-left: 91.66667% !important; } |
| + | |
| + | .large-reset-order { |
| + | margin-left: 0; |
| + | margin-right: 0; |
| + | left: auto; |
| + | right: auto; |
| + | float: left; } |
| + | |
| + | .column.large-centered, |
| + | .columns.large-centered { |
| + | margin-left: auto; |
| + | margin-right: auto; |
| + | float: none !important; } |
| + | |
| + | .column.large-uncentered, |
| + | .columns.large-uncentered { |
| + | margin-left: 0; |
| + | margin-right: 0; |
| + | float: left !important; } |
| + | |
| + | .column.large-uncentered.opposite, |
| + | .columns.large-uncentered.opposite { |
| + | float: right; } |
| + | |
| + | .push-0 { |
| + | position: relative; |
| + | left: 0%; |
| + | right: auto; } |
| + | |
| + | .pull-0 { |
| + | position: relative; |
| + | right: 0%; |
| + | left: auto; } |
| + | |
| + | .push-1 { |
| + | position: relative; |
| + | left: 8.33333%; |
| + | right: auto; } |
| + | |
| + | .pull-1 { |
| + | position: relative; |
| + | right: 8.33333%; |
| + | left: auto; } |
| + | |
| + | .push-2 { |
| + | position: relative; |
| + | left: 16.66667%; |
| + | right: auto; } |
| + | |
| + | .pull-2 { |
| + | position: relative; |
| + | right: 16.66667%; |
| + | left: auto; } |
| + | |
| + | .push-3 { |
| + | position: relative; |
| + | left: 25%; |
| + | right: auto; } |
| + | |
| + | .pull-3 { |
| + | position: relative; |
| + | right: 25%; |
| + | left: auto; } |
| + | |
| + | .push-4 { |
| + | position: relative; |
| + | left: 33.33333%; |
| + | right: auto; } |
| + | |
| + | .pull-4 { |
| + | position: relative; |
| + | right: 33.33333%; |
| + | left: auto; } |
| + | |
| + | .push-5 { |
| + | position: relative; |
| + | left: 41.66667%; |
| + | right: auto; } |
| + | |
| + | .pull-5 { |
| + | position: relative; |
| + | right: 41.66667%; |
| + | left: auto; } |
| + | |
| + | .push-6 { |
| + | position: relative; |
| + | left: 50%; |
| + | right: auto; } |
| + | |
| + | .pull-6 { |
| + | position: relative; |
| + | right: 50%; |
| + | left: auto; } |
| + | |
| + | .push-7 { |
| + | position: relative; |
| + | left: 58.33333%; |
| + | right: auto; } |
| + | |
| + | .pull-7 { |
| + | position: relative; |
| + | right: 58.33333%; |
| + | left: auto; } |
| + | |
| + | .push-8 { |
| + | position: relative; |
| + | left: 66.66667%; |
| + | right: auto; } |
| + | |
| + | .pull-8 { |
| + | position: relative; |
| + | right: 66.66667%; |
| + | left: auto; } |
| + | |
| + | .push-9 { |
| + | position: relative; |
| + | left: 75%; |
| + | right: auto; } |
| + | |
| + | .pull-9 { |
| + | position: relative; |
| + | right: 75%; |
| + | left: auto; } |
| + | |
| + | .push-10 { |
| + | position: relative; |
| + | left: 83.33333%; |
| + | right: auto; } |
| + | |
| + | .pull-10 { |
| + | position: relative; |
| + | right: 83.33333%; |
| + | left: auto; } |
| + | |
| + | .push-11 { |
| + | position: relative; |
| + | left: 91.66667%; |
| + | right: auto; } |
| + | |
| + | .pull-11 { |
| + | position: relative; |
| + | right: 91.66667%; |
| + | left: auto; } } |
| + | button, .button { |
| + | border-style: solid; |
| + | border-width: 0px; |
| + | cursor: pointer; |
| + | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| + | font-weight: normal; |
| + | line-height: normal; |
| + | margin: 0 0 1.25rem; |
| + | position: relative; |
| + | text-decoration: none; |
| + | text-align: center; |
| + | -webkit-appearance: none; |
| + | -webkit-border-radius: 0; |
| + | display: inline-block; |
| + | padding-top: 1rem; |
| + | padding-right: 2rem; |
| + | padding-bottom: 1.0625rem; |
| + | padding-left: 2rem; |
| + | font-size: 1rem; |
| + | background-color: #008cba; |
| + | border-color: #007095; |
| + | color: white; |
| + | transition: background-color 300ms ease-out; } |
| + | button:hover, button:focus, .button:hover, .button:focus { |
| + | background-color: #007095; } |
| + | button:hover, button:focus, .button:hover, .button:focus { |
| + | color: white; } |
| + | button.secondary, .button.secondary { |
| + | background-color: #e7e7e7; |
| + | border-color: #b9b9b9; |
| + | color: #333333; } |
| + | button.secondary:hover, button.secondary:focus, .button.secondary:hover, .button.secondary:focus { |
| + | background-color: #b9b9b9; } |
| + | button.secondary:hover, button.secondary:focus, .button.secondary:hover, .button.secondary:focus { |
| + | color: #333333; } |
| + | button.success, .button.success { |
| + | background-color: #43ac6a; |
| + | border-color: #368a55; |
| + | color: white; } |
| + | button.success:hover, button.success:focus, .button.success:hover, .button.success:focus { |
| + | background-color: #368a55; } |
| + | button.success:hover, button.success:focus, .button.success:hover, .button.success:focus { |
| + | color: white; } |
| + | button.alert, .button.alert { |
| + | background-color: #f04124; |
| + | border-color: #cf2a0e; |
| + | color: white; } |
| + | button.alert:hover, button.alert:focus, .button.alert:hover, .button.alert:focus { |
| + | background-color: #cf2a0e; } |
| + | button.alert:hover, button.alert:focus, .button.alert:hover, .button.alert:focus { |
| + | color: white; } |
| + | button.large, .button.large { |
| + | padding-top: 1.125rem; |
| + | padding-right: 2.25rem; |
| + | padding-bottom: 1.1875rem; |
| + | padding-left: 2.25rem; |
| + | font-size: 1.25rem; } |
| + | button.small, .button.small { |
| + | padding-top: 0.875rem; |
| + | padding-right: 1.75rem; |
| + | padding-bottom: 0.9375rem; |
| + | padding-left: 1.75rem; |
| + | font-size: 0.8125rem; } |
| + | button.tiny, .button.tiny { |
| + | padding-top: 0.625rem; |
| + | padding-right: 1.25rem; |
| + | padding-bottom: 0.6875rem; |
| + | padding-left: 1.25rem; |
| + | font-size: 0.6875rem; } |
| + | button.expand, .button.expand { |
| + | padding-right: 0; |
| + | padding-left: 0; |
| + | width: 100%; } |
| + | button.left-align, .button.left-align { |
| + | text-align: left; |
| + | text-indent: 0.75rem; } |
| + | button.right-align, .button.right-align { |
| + | text-align: right; |
| + | padding-right: 0.75rem; } |
| + | button.radius, .button.radius { |
| + | border-radius: 3px; } |
| + | button.round, .button.round { |
| + | border-radius: 1000px; } |
| + | button.disabled, button[disabled], .button.disabled, .button[disabled] { |
| + | background-color: #008cba; |
| + | border-color: #007095; |
| + | color: white; |
| + | cursor: default; |
| + | opacity: 0.7; |
| + | box-shadow: none; } |
| + | button.disabled:hover, button.disabled:focus, button[disabled]:hover, button[disabled]:focus, .button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus { |
| + | background-color: #007095; } |
| + | button.disabled:hover, button.disabled:focus, button[disabled]:hover, button[disabled]:focus, .button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus { |
| + | color: white; } |
| + | button.disabled:hover, button.disabled:focus, button[disabled]:hover, button[disabled]:focus, .button.disabled:hover, .button.disabled:focus, .button[disabled]:hover, .button[disabled]:focus { |
| + | background-color: #008cba; } |
| + | button.disabled.secondary, button[disabled].secondary, .button.disabled.secondary, .button[disabled].secondary { |
| + | background-color: #e7e7e7; |
| + | border-color: #b9b9b9; |
| + | color: #333333; |
| + | cursor: default; |
| + | opacity: 0.7; |
| + | box-shadow: none; } |
| + | button.disabled.secondary:hover, button.disabled.secondary:focus, button[disabled].secondary:hover, button[disabled].secondary:focus, .button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus { |
| + | background-color: #b9b9b9; } |
| + | button.disabled.secondary:hover, button.disabled.secondary:focus, button[disabled].secondary:hover, button[disabled].secondary:focus, .button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus { |
| + | color: #333333; } |
| + | button.disabled.secondary:hover, button.disabled.secondary:focus, button[disabled].secondary:hover, button[disabled].secondary:focus, .button.disabled.secondary:hover, .button.disabled.secondary:focus, .button[disabled].secondary:hover, .button[disabled].secondary:focus { |
| + | background-color: #e7e7e7; } |
| + | button.disabled.success, button[disabled].success, .button.disabled.success, .button[disabled].success { |
| + | background-color: #43ac6a; |
| + | border-color: #368a55; |
| + | color: white; |
| + | cursor: default; |
| + | opacity: 0.7; |
| + | box-shadow: none; } |
| + | button.disabled.success:hover, button.disabled.success:focus, button[disabled].success:hover, button[disabled].success:focus, .button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus { |
| + | background-color: #368a55; } |
| + | button.disabled.success:hover, button.disabled.success:focus, button[disabled].success:hover, button[disabled].success:focus, .button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus { |
| + | color: white; } |
| + | button.disabled.success:hover, button.disabled.success:focus, button[disabled].success:hover, button[disabled].success:focus, .button.disabled.success:hover, .button.disabled.success:focus, .button[disabled].success:hover, .button[disabled].success:focus { |
| + | background-color: #43ac6a; } |
| + | button.disabled.alert, button[disabled].alert, .button.disabled.alert, .button[disabled].alert { |
| + | background-color: #f04124; |
| + | border-color: #cf2a0e; |
| + | color: white; |
| + | cursor: default; |
| + | opacity: 0.7; |
| + | box-shadow: none; } |
| + | button.disabled.alert:hover, button.disabled.alert:focus, button[disabled].alert:hover, button[disabled].alert:focus, .button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus { |
| + | background-color: #cf2a0e; } |
| + | button.disabled.alert:hover, button.disabled.alert:focus, button[disabled].alert:hover, button[disabled].alert:focus, .button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus { |
| + | color: white; } |
| + | button.disabled.alert:hover, button.disabled.alert:focus, button[disabled].alert:hover, button[disabled].alert:focus, .button.disabled.alert:hover, .button.disabled.alert:focus, .button[disabled].alert:hover, .button[disabled].alert:focus { |
| + | background-color: #f04124; } |
| + | |
| + | @media only screen and (min-width: 40.063em) { |
| + | button, .button { |
| + | display: inline-block; } } |
| + | meta.foundation-mq-topbar { |
| + | font-family: "/only screen and (min-width:40.063em)/"; |
| + | width: 40.063em; } |
| + | |
| + | /* Wrapped around .top-bar to contain to grid width */ |
| + | .contain-to-grid { |
| + | width: 100%; |
| + | background: #333333; } |
| + | .contain-to-grid .top-bar { |
| + | margin-bottom: 0; } |
| + | |
| + | .fixed { |
| + | width: 100%; |
| + | left: 0; |
| + | position: fixed; |
| + | top: 0; |
| + | z-index: 99; } |
| + | .fixed.expanded:not(.top-bar) { |
| + | overflow-y: auto; |
| + | height: auto; |
| + | width: 100%; |
| + | max-height: 100%; } |
| + | .fixed.expanded:not(.top-bar) .title-area { |
| + | position: fixed; |
| + | width: 100%; |
| + | z-index: 99; } |
| + | .fixed.expanded:not(.top-bar) .top-bar-section { |
| + | z-index: 98; |
| + | margin-top: 45px; } |
| + | |
| + | .top-bar { |
| + | overflow: hidden; |
| + | height: 45px; |
| + | line-height: 45px; |
| + | position: relative; |
| + | background: #333333; |
| + | margin-bottom: 0; } |
| + | .top-bar ul { |
| + | margin-bottom: 0; |
| + | list-style: none; } |
| + | .top-bar .row { |
| + | max-width: none; } |
| + | .top-bar form, |
| + | .top-bar input { |
| + | margin-bottom: 0; } |
| + | .top-bar input { |
| + | height: auto; |
| + | padding-top: .35rem; |
| + | padding-bottom: .35rem; |
| + | font-size: 0.75rem; } |
| + | .top-bar .button, .top-bar button { |
| + | padding-top: .45rem; |
| + | padding-bottom: .35rem; |
| + | margin-bottom: 0; |
| + | font-size: 0.75rem; } |
| + | .top-bar .title-area { |
| + | position: relative; |
| + | margin: 0; } |
| + | .top-bar .name { |
| + | height: 45px; |
| + | margin: 0; |
| + | font-size: 16px; } |
| + | .top-bar .name h1 { |
| + | line-height: 45px; |
| + | font-size: 1.0625rem; |
| + | margin: 0; } |
| + | .top-bar .name h1 a { |
| + | font-weight: normal; |
| + | color: white; |
| + | width: 75%; |
| + | display: block; |
| + | padding: 0 15px; } |
| + | .top-bar .toggle-topbar { |
| + | position: absolute; |
| + | right: 0; |
| + | top: 0; } |
| + | .top-bar .toggle-topbar a { |
| + | color: white; |
| + | text-transform: uppercase; |
| + | font-size: 0.8125rem; |
| + | font-weight: bold; |
| + | position: relative; |
| + | display: block; |
| + | padding: 0 15px; |
| + | height: 45px; |
| + | line-height: 45px; } |
| + | .top-bar .toggle-topbar.menu-icon { |
| + | right: 15px; |
| + | top: 50%; |
| + | margin-top: -16px; |
| + | padding-left: 40px; } |
| + | .top-bar .toggle-topbar.menu-icon a { |
| + | height: 34px; |
| + | line-height: 33px; |
| + | padding: 0; |
| + | color: white; |
| + | position: relative; } |
| + | .top-bar .toggle-topbar.menu-icon a::after { |
| + | right: 0; } |
| + | .top-bar .toggle-topbar.menu-icon a::after span:after { |
| + | content: ''; |
| + | position: absolute; |
| + | display: block; |
| + | height: 0; |
| + | box-shadow: 0 0px 0 1px white, 0 7px 0 1px white, 0 14px 0 1px white; |
| + | width: 16px; } |
| + | .top-bar .toggle-topbar.menu-icon a::after span:hover:after { |
| + | box-shadow: 0 0px 0 1px white, 0 7px 0 1px white, 0 14px 0 1px white; } |
| + | .top-bar.expanded { |
| + | height: auto; |
| + | background: transparent; } |
| + | .top-bar.expanded .title-area { |
| + | background: #333333; } |
| + | .top-bar.expanded .toggle-topbar a { |
| + | color: #888888; } |
| + | .top-bar.expanded .toggle-topbar a::after { |
| + | box-shadow: 0 10px 0 1px #888888, 0 16px 0 1px #888888, 0 22px 0 1px #888888; } |
| + | |
| + | .top-bar-section { |
| + | left: 0; |
| + | position: relative; |
| + | width: auto; |
| + | transition: left 300ms ease-out; } |
| + | .top-bar-section ul { |
| + | padding: 0; |
| + | width: 100%; |
| + | height: auto; |
| + | display: block; |
| + | font-size: 16px; |
| + | margin: 0; } |
| + | .top-bar-section .divider, |
| + | .top-bar-section [role="separator"] { |
| + | border-top: solid 1px #1a1a1a; |
| + | clear: both; |
| + | height: 1px; |
| + | width: 100%; } |
| + | .top-bar-section ul li { |
| + | background: #333333; } |
| + | .top-bar-section ul li > a { |
| + | display: block; |
| + | width: 100%; |
| + | color: white; |
| + | padding: 12px 0 12px 0; |
| + | padding-left: 15px; |
| + | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| + | font-size: 0.8125rem; |
| + | font-weight: normal; |
| + | text-transform: none; } |
| + | .top-bar-section ul li > a.button { |
| + | font-size: 0.8125rem; |
| + | padding-right: 15px; |
| + | padding-left: 15px; |
| + | background-color: #008cba; |
| + | border-color: #007095; |
| + | color: white; } |
| + | .top-bar-section ul li > a.button:hover, .top-bar-section ul li > a.button:focus { |
| + | background-color: #007095; } |
| + | .top-bar-section ul li > a.button:hover, .top-bar-section ul li > a.button:focus { |
| + | color: white; } |
| + | .top-bar-section ul li > a.button.secondary { |
| + | background-color: #e7e7e7; |
| + | border-color: #b9b9b9; |
| + | color: #333333; } |
| + | .top-bar-section ul li > a.button.secondary:hover, .top-bar-section ul li > a.button.secondary:focus { |
| + | background-color: #b9b9b9; } |
| + | .top-bar-section ul li > a.button.secondary:hover, .top-bar-section ul li > a.button.secondary:focus { |
| + | color: #333333; } |
| + | .top-bar-section ul li > a.button.success { |
| + | background-color: #43ac6a; |
| + | border-color: #368a55; |
| + | color: white; } |
| + | .top-bar-section ul li > a.button.success:hover, .top-bar-section ul li > a.button.success:focus { |
| + | background-color: #368a55; } |
| + | .top-bar-section ul li > a.button.success:hover, .top-bar-section ul li > a.button.success:focus { |
| + | color: white; } |
| + | .top-bar-section ul li > a.button.alert { |
| + | background-color: #f04124; |
| + | border-color: #cf2a0e; |
| + | color: white; } |
| + | .top-bar-section ul li > a.button.alert:hover, .top-bar-section ul li > a.button.alert:focus { |
| + | background-color: #cf2a0e; } |
| + | .top-bar-section ul li > a.button.alert:hover, .top-bar-section ul li > a.button.alert:focus { |
| + | color: white; } |
| + | .top-bar-section ul li > button { |
| + | font-size: 0.8125rem; |
| + | padding-right: 15px; |
| + | padding-left: 15px; |
| + | background-color: #008cba; |
| + | border-color: #007095; |
| + | color: white; } |
| + | .top-bar-section ul li > button:hover, .top-bar-section ul li > button:focus { |
| + | background-color: #007095; } |
| + | .top-bar-section ul li > button:hover, .top-bar-section ul li > button:focus { |
| + | color: white; } |
| + | .top-bar-section ul li > button.secondary { |
| + | background-color: #e7e7e7; |
| + | border-color: #b9b9b9; |
| + | color: #333333; } |
| + | .top-bar-section ul li > button.secondary:hover, .top-bar-section ul li > button.secondary:focus { |
| + | background-color: #b9b9b9; } |
| + | .top-bar-section ul li > button.secondary:hover, .top-bar-section ul li > button.secondary:focus { |
| + | color: #333333; } |
| + | .top-bar-section ul li > button.success { |
| + | background-color: #43ac6a; |
| + | border-color: #368a55; |
| + | color: white; } |
| + | .top-bar-section ul li > button.success:hover, .top-bar-section ul li > button.success:focus { |
| + | background-color: #368a55; } |
| + | .top-bar-section ul li > button.success:hover, .top-bar-section ul li > button.success:focus { |
| + | color: white; } |
| + | .top-bar-section ul li > button.alert { |
| + | background-color: #f04124; |
| + | border-color: #cf2a0e; |
| + | color: white; } |
| + | .top-bar-section ul li > button.alert:hover, .top-bar-section ul li > button.alert:focus { |
| + | background-color: #cf2a0e; } |
| + | .top-bar-section ul li > button.alert:hover, .top-bar-section ul li > button.alert:focus { |
| + | color: white; } |
| + | .top-bar-section ul li:hover:not(.has-form) > a { |
| + | background: #272727; |
| + | color: white; } |
| + | .top-bar-section ul li.active > a { |
| + | background: #008cba; |
| + | color: white; } |
| + | .top-bar-section ul li.active > a:hover { |
| + | background: #0078a0; |
| + | color: white; } |
| + | .top-bar-section .has-form { |
| + | padding: 15px; } |
| + | .top-bar-section .has-dropdown { |
| + | position: relative; } |
| + | .top-bar-section .has-dropdown > a:after { |
| + | content: ""; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset 5px; |
| + | border-color: transparent transparent transparent rgba(255, 255, 255, 0.4); |
| + | border-left-style: solid; |
| + | margin-right: 15px; |
| + | margin-top: -4.5px; |
| + | position: absolute; |
| + | top: 50%; |
| + | right: 0; } |
| + | .top-bar-section .has-dropdown.moved { |
| + | position: static; } |
| + | .top-bar-section .has-dropdown.moved > .dropdown { |
| + | display: block; |
| + | position: static !important; |
| + | height: auto; |
| + | width: auto; |
| + | overflow: visible; |
| + | clip: auto; |
| + | position: absolute !important; |
| + | width: 100%; } |
| + | .top-bar-section .has-dropdown.moved > a:after { |
| + | display: none; } |
| + | .top-bar-section .dropdown { |
| + | padding: 0; |
| + | position: absolute; |
| + | left: 100%; |
| + | top: 0; |
| + | z-index: 99; |
| + | display: block; |
| + | position: absolute !important; |
| + | height: 1px; |
| + | width: 1px; |
| + | overflow: hidden; |
| + | clip: rect(1px, 1px, 1px, 1px); } |
| + | .top-bar-section .dropdown li { |
| + | width: 100%; |
| + | height: auto; } |
| + | .top-bar-section .dropdown li a { |
| + | font-weight: normal; |
| + | padding: 8px 15px; } |
| + | .top-bar-section .dropdown li a.parent-link { |
| + | font-weight: normal; } |
| + | .top-bar-section .dropdown li.title h5 { |
| + | margin-bottom: 0; |
| + | margin-top: 0; } |
| + | .top-bar-section .dropdown li.title h5 a { |
| + | color: white; |
| + | line-height: 22.5px; |
| + | display: block; } |
| + | .top-bar-section .dropdown li.has-form { |
| + | padding: 8px 15px; } |
| + | .top-bar-section .dropdown li .button, .top-bar-section .dropdown li button { |
| + | top: auto; } |
| + | .top-bar-section .dropdown label { |
| + | padding: 8px 15px 2px; |
| + | margin-bottom: 0; |
| + | text-transform: uppercase; |
| + | color: #777777; |
| + | font-weight: bold; |
| + | font-size: 0.625rem; } |
| + | |
| + | .js-generated { |
| + | display: block; } |
| + | |
| + | @media only screen and (min-width: 40.063em) { |
| + | .top-bar { |
| + | background: #333333; |
| + | overflow: visible; } |
| + | .top-bar:before, .top-bar:after { |
| + | content: " "; |
| + | display: table; } |
| + | .top-bar:after { |
| + | clear: both; } |
| + | .top-bar .toggle-topbar { |
| + | display: none; } |
| + | .top-bar .title-area { |
| + | float: left; } |
| + | .top-bar .name h1 a { |
| + | width: auto; } |
| + | .top-bar input, |
| + | .top-bar .button, |
| + | .top-bar button { |
| + | font-size: 0.875rem; |
| + | position: relative; |
| + | top: 7px; } |
| + | .top-bar.expanded { |
| + | background: #333333; } |
| + | |
| + | .contain-to-grid .top-bar { |
| + | max-width: 62.5rem; |
| + | margin: 0 auto; |
| + | margin-bottom: 0; } |
| + | |
| + | .top-bar-section { |
| + | transition: none 0 0; |
| + | left: 0 !important; } |
| + | .top-bar-section ul { |
| + | width: auto; |
| + | height: auto !important; |
| + | display: inline; } |
| + | .top-bar-section ul li { |
| + | float: left; } |
| + | .top-bar-section ul li .js-generated { |
| + | display: none; } |
| + | .top-bar-section li.hover > a:not(.button) { |
| + | background: #272727; |
| + | color: white; } |
| + | .top-bar-section li:not(.has-form) a:not(.button) { |
| + | padding: 0 15px; |
| + | line-height: 45px; |
| + | background: #333333; } |
| + | .top-bar-section li:not(.has-form) a:not(.button):hover { |
| + | background: #272727; } |
| + | .top-bar-section li.active:not(.has-form) a:not(.button) { |
| + | padding: 0 15px; |
| + | line-height: 45px; |
| + | color: white; |
| + | background: #008cba; } |
| + | .top-bar-section li.active:not(.has-form) a:not(.button):hover { |
| + | background: #0078a0; } |
| + | .top-bar-section .has-dropdown > a { |
| + | padding-right: 35px !important; } |
| + | .top-bar-section .has-dropdown > a:after { |
| + | content: ""; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset 5px; |
| + | border-color: rgba(255, 255, 255, 0.4) transparent transparent transparent; |
| + | border-top-style: solid; |
| + | margin-top: -2.5px; |
| + | top: 22.5px; } |
| + | .top-bar-section .has-dropdown.moved { |
| + | position: relative; } |
| + | .top-bar-section .has-dropdown.moved > .dropdown { |
| + | display: block; |
| + | position: absolute !important; |
| + | height: 1px; |
| + | width: 1px; |
| + | overflow: hidden; |
| + | clip: rect(1px, 1px, 1px, 1px); } |
| + | .top-bar-section .has-dropdown.hover > .dropdown, .top-bar-section .has-dropdown.not-click:hover > .dropdown { |
| + | display: block; |
| + | position: static !important; |
| + | height: auto; |
| + | width: auto; |
| + | overflow: visible; |
| + | clip: auto; |
| + | position: absolute !important; } |
| + | .top-bar-section .has-dropdown .dropdown li.has-dropdown > a:after { |
| + | border: none; |
| + | content: "\00bb"; |
| + | top: 1rem; |
| + | margin-top: -1px; |
| + | right: 5px; |
| + | line-height: 1.2; } |
| + | .top-bar-section .dropdown { |
| + | left: 0; |
| + | top: auto; |
| + | background: transparent; |
| + | min-width: 100%; } |
| + | .top-bar-section .dropdown li a { |
| + | color: white; |
| + | line-height: 45px; |
| + | white-space: nowrap; |
| + | padding: 12px 15px; |
| + | background: #333333; } |
| + | .top-bar-section .dropdown li:not(.has-form) a:not(.button) { |
| + | color: white; |
| + | background: #333333; } |
| + | .top-bar-section .dropdown li:not(.has-form):hover > a:not(.button) { |
| + | color: white; |
| + | background: #272727; } |
| + | .top-bar-section .dropdown li label { |
| + | white-space: nowrap; |
| + | background: #333333; } |
| + | .top-bar-section .dropdown li .dropdown { |
| + | left: 100%; |
| + | top: 0; } |
| + | .top-bar-section > ul > .divider, .top-bar-section > ul > [role="separator"] { |
| + | border-bottom: none; |
| + | border-top: none; |
| + | border-right: solid 1px #4e4e4e; |
| + | clear: none; |
| + | height: 45px; |
| + | width: 0; } |
| + | .top-bar-section .has-form { |
| + | background: #333333; |
| + | padding: 0 15px; |
| + | height: 45px; } |
| + | .top-bar-section .right li .dropdown { |
| + | left: auto; |
| + | right: 0; } |
| + | .top-bar-section .right li .dropdown li .dropdown { |
| + | right: 100%; } |
| + | .top-bar-section .left li .dropdown { |
| + | right: auto; |
| + | left: 0; } |
| + | .top-bar-section .left li .dropdown li .dropdown { |
| + | left: 100%; } |
| + | |
| + | .no-js .top-bar-section ul li:hover > a { |
| + | background: #272727; |
| + | color: white; } |
| + | .no-js .top-bar-section ul li:active > a { |
| + | background: #008cba; |
| + | color: white; } |
| + | .no-js .top-bar-section .has-dropdown:hover > .dropdown { |
| + | display: block; |
| + | position: static !important; |
| + | height: auto; |
| + | width: auto; |
| + | overflow: visible; |
| + | clip: auto; |
| + | position: absolute !important; } } |
| + | .breadcrumbs { |
| + | display: block; |
| + | padding: 0.5625rem 0.875rem 0.5625rem; |
| + | overflow: hidden; |
| + | margin-left: 0; |
| + | list-style: none; |
| + | border-style: solid; |
| + | border-width: 1px; |
| + | background-color: #f4f4f4; |
| + | border-color: gainsboro; |
| + | border-radius: 3px; } |
| + | .breadcrumbs > * { |
| + | margin: 0; |
| + | float: left; |
| + | font-size: 0.6875rem; |
| + | line-height: 0.6875rem; |
| + | text-transform: uppercase; |
| + | color: #008cba; } |
| + | .breadcrumbs > *:hover a, .breadcrumbs > *:focus a { |
| + | text-decoration: underline; } |
| + | .breadcrumbs > * a { |
| + | color: #008cba; } |
| + | .breadcrumbs > *.current { |
| + | cursor: default; |
| + | color: #333333; } |
| + | .breadcrumbs > *.current a { |
| + | cursor: default; |
| + | color: #333333; } |
| + | .breadcrumbs > *.current:hover, .breadcrumbs > *.current:hover a, .breadcrumbs > *.current:focus, .breadcrumbs > *.current:focus a { |
| + | text-decoration: none; } |
| + | .breadcrumbs > *.unavailable { |
| + | color: #999999; } |
| + | .breadcrumbs > *.unavailable a { |
| + | color: #999999; } |
| + | .breadcrumbs > *.unavailable:hover, .breadcrumbs > *.unavailable:hover a, .breadcrumbs > *.unavailable:focus, |
| + | .breadcrumbs > *.unavailable a:focus { |
| + | text-decoration: none; |
| + | color: #999999; |
| + | cursor: default; } |
| + | .breadcrumbs > *:before { |
| + | content: "/"; |
| + | color: #aaaaaa; |
| + | margin: 0 0.75rem; |
| + | position: relative; |
| + | top: 1px; } |
| + | .breadcrumbs > *:first-child:before { |
| + | content: " "; |
| + | margin: 0; } |
| + | |
| + | .alert-box { |
| + | border-style: solid; |
| + | border-width: 1px; |
| + | display: block; |
| + | font-weight: normal; |
| + | margin-bottom: 1.25rem; |
| + | position: relative; |
| + | padding: 0.875rem 1.5rem 0.875rem 0.875rem; |
| + | font-size: 0.8125rem; |
| + | transition: opacity 300ms ease-out; |
| + | background-color: #008cba; |
| + | border-color: #0078a0; |
| + | color: white; } |
| + | .alert-box .close { |
| + | font-size: 1.375rem; |
| + | padding: 9px 6px 4px; |
| + | line-height: 0; |
| + | position: absolute; |
| + | top: 50%; |
| + | margin-top: -0.6875rem; |
| + | right: 0.25rem; |
| + | color: #333333; |
| + | opacity: 0.3; } |
| + | .alert-box .close:hover, .alert-box .close:focus { |
| + | opacity: 0.5; } |
| + | .alert-box.radius { |
| + | border-radius: 3px; } |
| + | .alert-box.round { |
| + | border-radius: 1000px; } |
| + | .alert-box.success { |
| + | background-color: #43ac6a; |
| + | border-color: #3a945b; |
| + | color: white; } |
| + | .alert-box.alert { |
| + | background-color: #f04124; |
| + | border-color: #de2d0f; |
| + | color: white; } |
| + | .alert-box.secondary { |
| + | background-color: #e7e7e7; |
| + | border-color: #c7c7c7; |
| + | color: #4f4f4f; } |
| + | .alert-box.warning { |
| + | background-color: #f08a24; |
| + | border-color: #de770f; |
| + | color: white; } |
| + | .alert-box.info { |
| + | background-color: #a0d3e8; |
| + | border-color: #74bfdd; |
| + | color: #4f4f4f; } |
| + | .alert-box.alert-close { |
| + | opacity: 0; } |
| + | |
| + | .inline-list { |
| + | margin: 0 auto 1.0625rem auto; |
| + | margin-left: -1.375rem; |
| + | margin-right: 0; |
| + | padding: 0; |
| + | list-style: none; |
| + | overflow: hidden; } |
| + | .inline-list > li { |
| + | list-style: none; |
| + | float: left; |
| + | margin-left: 1.375rem; |
| + | display: block; } |
| + | .inline-list > li > * { |
| + | display: block; } |
| + | |
| + | .button-group { |
| + | list-style: none; |
| + | margin: 0; |
| + | left: 0; } |
| + | .button-group:before, .button-group:after { |
| + | content: " "; |
| + | display: table; } |
| + | .button-group:after { |
| + | clear: both; } |
| + | .button-group > li { |
| + | margin: 0; |
| + | float: left; } |
| + | .button-group > li > button, .button-group > li .button { |
| + | border-left: 1px solid; |
| + | border-color: rgba(255, 255, 255, 0.5); } |
| + | .button-group > li:first-child button, .button-group > li:first-child .button { |
| + | border-left: 0; } |
| + | .button-group > li:first-child { |
| + | margin-left: 0; } |
| + | .button-group.radius > * > button, .button-group.radius > * .button { |
| + | border-left: 1px solid; |
| + | border-color: rgba(255, 255, 255, 0.5); } |
| + | .button-group.radius > *:first-child button, .button-group.radius > *:first-child .button { |
| + | border-left: 0; } |
| + | .button-group.radius > *:first-child, .button-group.radius > *:first-child > a, .button-group.radius > *:first-child > button, .button-group.radius > *:first-child > .button { |
| + | border-bottom-left-radius: 3px; |
| + | border-top-left-radius: 3px; } |
| + | .button-group.radius > *:last-child, .button-group.radius > *:last-child > a, .button-group.radius > *:last-child > button, .button-group.radius > *:last-child > .button { |
| + | border-bottom-right-radius: 3px; |
| + | border-top-right-radius: 3px; } |
| + | .button-group.round > * > button, .button-group.round > * .button { |
| + | border-left: 1px solid; |
| + | border-color: rgba(255, 255, 255, 0.5); } |
| + | .button-group.round > *:first-child button, .button-group.round > *:first-child .button { |
| + | border-left: 0; } |
| + | .button-group.round > *:first-child, .button-group.round > *:first-child > a, .button-group.round > *:first-child > button, .button-group.round > *:first-child > .button { |
| + | border-bottom-left-radius: 1000px; |
| + | border-top-left-radius: 1000px; } |
| + | .button-group.round > *:last-child, .button-group.round > *:last-child > a, .button-group.round > *:last-child > button, .button-group.round > *:last-child > .button { |
| + | border-bottom-right-radius: 1000px; |
| + | border-top-right-radius: 1000px; } |
| + | .button-group.even-2 li { |
| + | width: 50%; } |
| + | .button-group.even-2 li > button, .button-group.even-2 li .button { |
| + | border-left: 1px solid; |
| + | border-color: rgba(255, 255, 255, 0.5); } |
| + | .button-group.even-2 li:first-child button, .button-group.even-2 li:first-child .button { |
| + | border-left: 0; } |
| + | .button-group.even-2 li button, .button-group.even-2 li .button { |
| + | width: 100%; } |
| + | .button-group.even-3 li { |
| + | width: 33.33333%; } |
| + | .button-group.even-3 li > button, .button-group.even-3 li .button { |
| + | border-left: 1px solid; |
| + | border-color: rgba(255, 255, 255, 0.5); } |
| + | .button-group.even-3 li:first-child button, .button-group.even-3 li:first-child .button { |
| + | border-left: 0; } |
| + | .button-group.even-3 li button, .button-group.even-3 li .button { |
| + | width: 100%; } |
| + | .button-group.even-4 li { |
| + | width: 25%; } |
| + | .button-group.even-4 li > button, .button-group.even-4 li .button { |
| + | border-left: 1px solid; |
| + | border-color: rgba(255, 255, 255, 0.5); } |
| + | .button-group.even-4 li:first-child button, .button-group.even-4 li:first-child .button { |
| + | border-left: 0; } |
| + | .button-group.even-4 li button, .button-group.even-4 li .button { |
| + | width: 100%; } |
| + | .button-group.even-5 li { |
| + | width: 20%; } |
| + | .button-group.even-5 li > button, .button-group.even-5 li .button { |
| + | border-left: 1px solid; |
| + | border-color: rgba(255, 255, 255, 0.5); } |
| + | .button-group.even-5 li:first-child button, .button-group.even-5 li:first-child .button { |
| + | border-left: 0; } |
| + | .button-group.even-5 li button, .button-group.even-5 li .button { |
| + | width: 100%; } |
| + | .button-group.even-6 li { |
| + | width: 16.66667%; } |
| + | .button-group.even-6 li > button, .button-group.even-6 li .button { |
| + | border-left: 1px solid; |
| + | border-color: rgba(255, 255, 255, 0.5); } |
| + | .button-group.even-6 li:first-child button, .button-group.even-6 li:first-child .button { |
| + | border-left: 0; } |
| + | .button-group.even-6 li button, .button-group.even-6 li .button { |
| + | width: 100%; } |
| + | .button-group.even-7 li { |
| + | width: 14.28571%; } |
| + | .button-group.even-7 li > button, .button-group.even-7 li .button { |
| + | border-left: 1px solid; |
| + | border-color: rgba(255, 255, 255, 0.5); } |
| + | .button-group.even-7 li:first-child button, .button-group.even-7 li:first-child .button { |
| + | border-left: 0; } |
| + | .button-group.even-7 li button, .button-group.even-7 li .button { |
| + | width: 100%; } |
| + | .button-group.even-8 li { |
| + | width: 12.5%; } |
| + | .button-group.even-8 li > button, .button-group.even-8 li .button { |
| + | border-left: 1px solid; |
| + | border-color: rgba(255, 255, 255, 0.5); } |
| + | .button-group.even-8 li:first-child button, .button-group.even-8 li:first-child .button { |
| + | border-left: 0; } |
| + | .button-group.even-8 li button, .button-group.even-8 li .button { |
| + | width: 100%; } |
| + | |
| + | .button-bar:before, .button-bar:after { |
| + | content: " "; |
| + | display: table; } |
| + | .button-bar:after { |
| + | clear: both; } |
| + | .button-bar .button-group { |
| + | float: left; |
| + | margin-right: 0.625rem; } |
| + | .button-bar .button-group div { |
| + | overflow: hidden; } |
| + | |
| + | /* Panels */ |
| + | .panel { |
| + | border-style: solid; |
| + | border-width: 1px; |
| + | border-color: #d8d8d8; |
| + | margin-bottom: 1.25rem; |
| + | padding: 1.25rem; |
| + | background: #f2f2f2; } |
| + | .panel > :first-child { |
| + | margin-top: 0; } |
| + | .panel > :last-child { |
| + | margin-bottom: 0; } |
| + | .panel h1, .panel h2, .panel h3, .panel h4, .panel h5, .panel h6, .panel p, .panel li { |
| + | color: #333333; } |
| + | .panel h1, .panel h2, .panel h3, .panel h4, .panel h5, .panel h6 { |
| + | line-height: 1; |
| + | margin-bottom: 0.625rem; } |
| + | .panel h1.subheader, .panel h2.subheader, .panel h3.subheader, .panel h4.subheader, .panel h5.subheader, .panel h6.subheader { |
| + | line-height: 1.4; } |
| + | .panel.callout { |
| + | border-style: solid; |
| + | border-width: 1px; |
| + | border-color: #b6edff; |
| + | margin-bottom: 1.25rem; |
| + | padding: 1.25rem; |
| + | background: #ecfaff; } |
| + | .panel.callout > :first-child { |
| + | margin-top: 0; } |
| + | .panel.callout > :last-child { |
| + | margin-bottom: 0; } |
| + | .panel.callout h1, .panel.callout h2, .panel.callout h3, .panel.callout h4, .panel.callout h5, .panel.callout h6, .panel.callout p, .panel.callout li { |
| + | color: #333333; } |
| + | .panel.callout h1, .panel.callout h2, .panel.callout h3, .panel.callout h4, .panel.callout h5, .panel.callout h6 { |
| + | line-height: 1; |
| + | margin-bottom: 0.625rem; } |
| + | .panel.callout h1.subheader, .panel.callout h2.subheader, .panel.callout h3.subheader, .panel.callout h4.subheader, .panel.callout h5.subheader, .panel.callout h6.subheader { |
| + | line-height: 1.4; } |
| + | .panel.callout a:not(.button) { |
| + | color: #008cba; } |
| + | .panel.radius { |
| + | border-radius: 3px; } |
| + | |
| + | .dropdown.button, button.dropdown { |
| + | position: relative; |
| + | padding-right: 3.5625rem; } |
| + | .dropdown.button:after, button.dropdown:after { |
| + | position: absolute; |
| + | content: ""; |
| + | width: 0; |
| + | height: 0; |
| + | display: block; |
| + | border-style: solid; |
| + | border-color: white transparent transparent transparent; |
| + | top: 50%; } |
| + | .dropdown.button:after, button.dropdown:after { |
| + | border-width: 0.375rem; |
| + | right: 1.40625rem; |
| + | margin-top: -0.15625rem; } |
| + | .dropdown.button:after, button.dropdown:after { |
| + | border-color: white transparent transparent transparent; } |
| + | .dropdown.button.tiny, button.dropdown.tiny { |
| + | padding-right: 2.625rem; } |
| + | .dropdown.button.tiny:before, button.dropdown.tiny:before { |
| + | border-width: 0.375rem; |
| + | right: 1.125rem; |
| + | margin-top: -0.125rem; } |
| + | .dropdown.button.tiny:after, button.dropdown.tiny:after { |
| + | border-color: white transparent transparent transparent; } |
| + | .dropdown.button.small, button.dropdown.small { |
| + | padding-right: 3.0625rem; } |
| + | .dropdown.button.small:after, button.dropdown.small:after { |
| + | border-width: 0.4375rem; |
| + | right: 1.3125rem; |
| + | margin-top: -0.15625rem; } |
| + | .dropdown.button.small:after, button.dropdown.small:after { |
| + | border-color: white transparent transparent transparent; } |
| + | .dropdown.button.large, button.dropdown.large { |
| + | padding-right: 3.625rem; } |
| + | .dropdown.button.large:after, button.dropdown.large:after { |
| + | border-width: 0.3125rem; |
| + | right: 1.71875rem; |
| + | margin-top: -0.15625rem; } |
| + | .dropdown.button.large:after, button.dropdown.large:after { |
| + | border-color: white transparent transparent transparent; } |
| + | .dropdown.button.secondary:after, button.dropdown.secondary:after { |
| + | border-color: #333333 transparent transparent transparent; } |
| + | |
| + | div.switch { |
| + | position: relative; |
| + | padding: 0; |
| + | display: block; |
| + | overflow: hidden; |
| + | border-style: solid; |
| + | border-width: 1px; |
| + | margin-bottom: 1.25rem; |
| + | height: 2.25rem; |
| + | background: white; |
| + | border-color: #cccccc; } |
| + | div.switch label { |
| + | position: relative; |
| + | left: 0; |
| + | z-index: 2; |
| + | float: left; |
| + | width: 50%; |
| + | height: 100%; |
| + | margin: 0; |
| + | font-weight: bold; |
| + | text-align: left; |
| + | transition: all 0.1s ease-out; } |
| + | div.switch input { |
| + | position: absolute; |
| + | z-index: 3; |
| + | opacity: 0; |
| + | width: 100%; |
| + | height: 100%; |
| + | -moz-appearance: none; } |
| + | div.switch input:hover, div.switch input:focus { |
| + | cursor: pointer; } |
| + | div.switch span:last-child { |
| + | position: absolute; |
| + | top: -1px; |
| + | left: -1px; |
| + | z-index: 1; |
| + | display: block; |
| + | padding: 0; |
| + | border-width: 1px; |
| + | border-style: solid; |
| + | transition: all 0.1s ease-out; } |
| + | div.switch input:not(:checked) + label { |
| + | opacity: 0; } |
| + | div.switch input:checked { |
| + | display: none !important; } |
| + | div.switch input { |
| + | left: 0; |
| + | display: block !important; } |
| + | div.switch input:first-of-type + label, |
| + | div.switch input:first-of-type + span + label { |
| + | left: -50%; } |
| + | div.switch input:first-of-type:checked + label, |
| + | div.switch input:first-of-type:checked + span + label { |
| + | left: 0%; } |
| + | div.switch input:last-of-type + label, |
| + | div.switch input:last-of-type + span + label { |
| + | right: -50%; |
| + | left: auto; |
| + | text-align: right; } |
| + | div.switch input:last-of-type:checked + label, |
| + | div.switch input:last-of-type:checked + span + label { |
| + | right: 0%; |
| + | left: auto; } |
| + | div.switch span.custom { |
| + | display: none !important; } |
| + | form.custom div.switch .hidden-field { |
| + | margin-left: auto; |
| + | position: absolute; |
| + | visibility: visible; } |
| + | div.switch label { |
| + | padding: 0; |
| + | line-height: 2.3rem; |
| + | font-size: 0.875rem; } |
| + | div.switch input:first-of-type:checked ~ span:last-child { |
| + | left: 100%; |
| + | margin-left: -2.1875rem; } |
| + | div.switch span:last-child { |
| + | width: 2.25rem; |
| + | height: 2.25rem; } |
| + | div.switch span:last-child { |
| + | border-color: #b3b3b3; |
| + | background: white; |
| + | background: linear-gradient(to bottom, white 0%, #f2f2f2 100%); |
| + | box-shadow: 2px 0 10px 0 rgba(0, 0, 0, 0.07), 1000px 0 0 980px #f3faf6, -2px 0 10px 0 rgba(0, 0, 0, 0.07), -1000px 0 0 1000px whitesmoke; } |
| + | div.switch:hover span:last-child, div.switch:focus span:last-child { |
| + | background: white; |
| + | background: linear-gradient(to bottom, white 0%, #e6e6e6 100%); } |
| + | div.switch:active { |
| + | background: transparent; } |
| + | div.switch.large { |
| + | height: 2.75rem; } |
| + | div.switch.large label { |
| + | padding: 0; |
| + | line-height: 2.3rem; |
| + | font-size: 1.0625rem; } |
| + | div.switch.large input:first-of-type:checked ~ span:last-child { |
| + | left: 100%; |
| + | margin-left: -2.6875rem; } |
| + | div.switch.large span:last-child { |
| + | width: 2.75rem; |
| + | height: 2.75rem; } |
| + | div.switch.small { |
| + | height: 1.75rem; } |
| + | div.switch.small label { |
| + | padding: 0; |
| + | line-height: 2.1rem; |
| + | font-size: 0.75rem; } |
| + | div.switch.small input:first-of-type:checked ~ span:last-child { |
| + | left: 100%; |
| + | margin-left: -1.6875rem; } |
| + | div.switch.small span:last-child { |
| + | width: 1.75rem; |
| + | height: 1.75rem; } |
| + | div.switch.tiny { |
| + | height: 1.375rem; } |
| + | div.switch.tiny label { |
| + | padding: 0; |
| + | line-height: 1.9rem; |
| + | font-size: 0.6875rem; } |
| + | div.switch.tiny input:first-of-type:checked ~ span:last-child { |
| + | left: 100%; |
| + | margin-left: -1.3125rem; } |
| + | div.switch.tiny span:last-child { |
| + | width: 1.375rem; |
| + | height: 1.375rem; } |
| + | div.switch.radius { |
| + | border-radius: 4px; } |
| + | div.switch.radius span:last-child { |
| + | border-radius: 3px; } |
| + | div.switch.round { |
| + | border-radius: 1000px; } |
| + | div.switch.round span:last-child { |
| + | border-radius: 999px; } |
| + | div.switch.round label { |
| + | padding: 0 0.5625rem; } |
| + | |
| + | /* Image Thumbnails */ |
| + | .th { |
| + | line-height: 0; |
| + | display: inline-block; |
| + | border: solid 4px white; |
| + | max-width: 100%; |
| + | box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); |
| + | transition: all 200ms ease-out; } |
| + | .th:hover, .th:focus { |
| + | box-shadow: 0 0 6px 1px rgba(0, 140, 186, 0.5); } |
| + | .th.radius { |
| + | border-radius: 3px; } |
| + | |
| + | /* Pricing Tables */ |
| + | .pricing-table { |
| + | border: solid 1px #dddddd; |
| + | margin-left: 0; |
| + | margin-bottom: 1.25rem; } |
| + | .pricing-table * { |
| + | list-style: none; |
| + | line-height: 1; } |
| + | .pricing-table .title { |
| + | background-color: #333333; |
| + | padding: 0.9375rem 1.25rem; |
| + | text-align: center; |
| + | color: #eeeeee; |
| + | font-weight: normal; |
| + | font-size: 1rem; |
| + | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; } |
| + | .pricing-table .price { |
| + | background-color: #f6f6f6; |
| + | padding: 0.9375rem 1.25rem; |
| + | text-align: center; |
| + | color: #333333; |
| + | font-weight: normal; |
| + | font-size: 2rem; |
| + | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; } |
| + | .pricing-table .description { |
| + | background-color: white; |
| + | padding: 0.9375rem; |
| + | text-align: center; |
| + | color: #777777; |
| + | font-size: 0.75rem; |
| + | font-weight: normal; |
| + | line-height: 1.4; |
| + | border-bottom: dotted 1px #dddddd; } |
| + | .pricing-table .bullet-item { |
| + | background-color: white; |
| + | padding: 0.9375rem; |
| + | text-align: center; |
| + | color: #333333; |
| + | font-size: 0.875rem; |
| + | font-weight: normal; |
| + | border-bottom: dotted 1px #dddddd; } |
| + | .pricing-table .cta-button { |
| + | background-color: white; |
| + | text-align: center; |
| + | padding: 1.25rem 1.25rem 0; } |
| + | |
| + | @keyframes rotate { |
| + | from { |
| + | -webkit-transform: rotate(0deg); |
| + | -moz-transform: rotate(0deg); |
| + | -ms-transform: rotate(0deg); |
| + | -o-transform: rotate(0deg); |
| + | transform: rotate(0deg); } |
| + | |
| + | to { |
| + | -webkit-transform: rotate(360deg); |
| + | -moz-transform: rotate(360deg); |
| + | -ms-transform: rotate(360deg); |
| + | -o-transform: rotate(360deg); |
| + | transform: rotate(360deg); } } |
| + | |
| + | /* Orbit Graceful Loading */ |
| + | .slideshow-wrapper { |
| + | position: relative; } |
| + | .slideshow-wrapper ul { |
| + | list-style-type: none; |
| + | margin: 0; } |
| + | .slideshow-wrapper ul li, |
| + | .slideshow-wrapper ul li .orbit-caption { |
| + | display: none; } |
| + | .slideshow-wrapper ul li:first-child { |
| + | display: block; } |
| + | .slideshow-wrapper .orbit-container { |
| + | background-color: transparent; } |
| + | .slideshow-wrapper .orbit-container li { |
| + | display: block; } |
| + | .slideshow-wrapper .orbit-container li .orbit-caption { |
| + | display: block; } |
| + | .slideshow-wrapper .preloader { |
| + | display: block; |
| + | width: 40px; |
| + | height: 40px; |
| + | position: absolute; |
| + | top: 50%; |
| + | left: 50%; |
| + | margin-top: -20px; |
| + | margin-left: -20px; |
| + | border: solid 3px; |
| + | border-color: #555555 white; |
| + | border-radius: 1000px; |
| + | animation-name: rotate; |
| + | animation-duration: 1.5s; |
| + | animation-iteration-count: infinite; |
| + | animation-timing-function: linear; } |
| + | |
| + | .orbit-container { |
| + | overflow: hidden; |
| + | width: 100%; |
| + | position: relative; |
| + | background: none; } |
| + | .orbit-container .orbit-slides-container { |
| + | list-style: none; |
| + | margin: 0; |
| + | padding: 0; |
| + | position: relative; |
| + | -webkit-transform: translateZ(0); } |
| + | .orbit-container .orbit-slides-container img { |
| + | display: block; |
| + | max-width: 100%; } |
| + | .orbit-container .orbit-slides-container.fade > li { |
| + | opacity: 0; |
| + | transition: opacity 500ms ease-in-out; |
| + | -ms-transform: translate(0, 0); |
| + | -webkit-transform: translate3d(0, 0, 0); |
| + | -moz-transform: translate3d(0, 0, 0); |
| + | -o-transform: translate3d(0, 0, 0); |
| + | transform: translate3d(0, 0, 0); } |
| + | .orbit-container .orbit-slides-container.fade > li.animate-in { |
| + | opacity: 1; |
| + | z-index: 20; |
| + | transition: opacity 500ms ease-in-out; } |
| + | .orbit-container .orbit-slides-container.fade > li.animate-out { |
| + | z-index: 10; |
| + | transition: opacity 500ms ease-in-out; } |
| + | .orbit-container .orbit-slides-container.swipe-next > li { |
| + | -ms-transform: translate(100%, 0); |
| + | -webkit-transform: translate3d(100%, 0, 0); |
| + | -moz-transform: translate3d(100%, 0, 0); |
| + | -o-transform: translate3d(100%, 0, 0); |
| + | transform: translate3d(100%, 0, 0); } |
| + | .orbit-container .orbit-slides-container.swipe-next > li.animate-in { |
| + | -ms-transform: translate(0, 0); |
| + | -webkit-transform: translate3d(0, 0, 0); |
| + | -moz-transform: translate3d(0, 0, 0); |
| + | -o-transform: translate3d(0, 0, 0); |
| + | transform: translate3d(0, 0, 0); |
| + | transition-duration: 500ms; } |
| + | .orbit-container .orbit-slides-container.swipe-next > li.animate-out { |
| + | -ms-transform: translate(-100%, 0); |
| + | -webkit-transform: translate3d(-100%, 0, 0); |
| + | -moz-transform: translate3d(-100%, 0, 0); |
| + | -o-transform: translate3d(-100%, 0, 0); |
| + | transform: translate3d(-100%, 0, 0); |
| + | transition-duration: 500ms; } |
| + | .orbit-container .orbit-slides-container.swipe-prev > li { |
| + | -ms-transform: translate(-100%, 0); |
| + | -webkit-transform: translate3d(-100%, 0, 0); |
| + | -moz-transform: translate3d(-100%, 0, 0); |
| + | -o-transform: translate3d(-100%, 0, 0); |
| + | transform: translate3d(-100%, 0, 0); } |
| + | .orbit-container .orbit-slides-container.swipe-prev > li.animate-in { |
| + | -ms-transform: translate(0, 0); |
| + | -webkit-transform: translate3d(0, 0, 0); |
| + | -moz-transform: translate3d(0, 0, 0); |
| + | -o-transform: translate3d(0, 0, 0); |
| + | transform: translate3d(0, 0, 0); |
| + | transition-duration: 500ms; } |
| + | .orbit-container .orbit-slides-container.swipe-prev > li.animate-out { |
| + | -ms-transform: translate(100%, 0); |
| + | -webkit-transform: translate3d(100%, 0, 0); |
| + | -moz-transform: translate3d(100%, 0, 0); |
| + | -o-transform: translate3d(100%, 0, 0); |
| + | transform: translate3d(100%, 0, 0); |
| + | transition-duration: 500ms; } |
| + | .orbit-container .orbit-slides-container > li { |
| + | position: absolute; |
| + | top: 0; |
| + | left: 0; |
| + | width: 100%; |
| + | -ms-transform: translate(100%, 0); |
| + | -webkit-transform: translate3d(100%, 0, 0); |
| + | -moz-transform: translate3d(100%, 0, 0); |
| + | -o-transform: translate3d(100%, 0, 0); |
| + | transform: translate3d(100%, 0, 0); } |
| + | .orbit-container .orbit-slides-container > li > a { |
| + | display: block; } |
| + | .orbit-container .orbit-slides-container > li.active { |
| + | opacity: 1; |
| + | position: relative; |
| + | top: 0; |
| + | left: 0; |
| + | -ms-transform: translate(0, 0); |
| + | -webkit-transform: translate3d(0, 0, 0); |
| + | -moz-transform: translate3d(0, 0, 0); |
| + | -o-transform: translate3d(0, 0, 0); |
| + | transform: translate3d(0, 0, 0); } |
| + | .orbit-container .orbit-slides-container > li .orbit-caption { |
| + | position: absolute; |
| + | bottom: 0; |
| + | background-color: rgba(51, 51, 51, 0.8); |
| + | color: white; |
| + | width: 100%; |
| + | padding: 0.625rem 0.875rem; |
| + | font-size: 0.875rem; } |
| + | .orbit-container .orbit-slide-number { |
| + | position: absolute; |
| + | top: 10px; |
| + | left: 10px; |
| + | font-size: 12px; |
| + | color: white; |
| + | background: rgba(0, 0, 0, 0); |
| + | z-index: 10; } |
| + | .orbit-container .orbit-slide-number span { |
| + | font-weight: bold; |
| + | padding: 0.3125rem; } |
| + | .orbit-container .orbit-timer { |
| + | position: absolute; |
| + | top: 12px; |
| + | right: 10px; |
| + | height: 6px; |
| + | width: 100px; |
| + | z-index: 10; } |
| + | .orbit-container .orbit-timer .orbit-progress { |
| + | height: 3px; |
| + | background-color: rgba(255, 255, 255, 0.3); |
| + | display: block; |
| + | width: 0%; |
| + | position: relative; |
| + | right: 20px; |
| + | top: 5px; } |
| + | .orbit-container .orbit-timer > span { |
| + | display: none; |
| + | position: absolute; |
| + | top: 0px; |
| + | right: 0; |
| + | width: 11px; |
| + | height: 14px; |
| + | border: solid 4px white; |
| + | border-top: none; |
| + | border-bottom: none; } |
| + | .orbit-container .orbit-timer.paused > span { |
| + | right: -4px; |
| + | top: 0px; |
| + | width: 11px; |
| + | height: 14px; |
| + | border: inset 8px; |
| + | border-left-style: solid; |
| + | -webkit-transform: rotate(180deg); |
| + | -moz-transform: rotate(180deg); |
| + | -ms-transform: rotate(180deg); |
| + | -o-transform: rotate(180deg); |
| + | transform: rotate(180deg); |
| + | border-color: transparent white transparent transparent; } |
| + | .orbit-container .orbit-timer.paused > span.dark { |
| + | border-color: transparent #333333 transparent transparent; } |
| + | .orbit-container:hover .orbit-timer > span { |
| + | display: block; } |
| + | .orbit-container .orbit-prev, |
| + | .orbit-container .orbit-next { |
| + | position: absolute; |
| + | top: 45%; |
| + | margin-top: -25px; |
| + | width: 36px; |
| + | height: 60px; |
| + | line-height: 50px; |
| + | color: white; |
| + | background-color: transparent; |
| + | text-indent: -9999px !important; |
| + | z-index: 10; } |
| + | .orbit-container .orbit-prev:hover, |
| + | .orbit-container .orbit-next:hover { |
| + | background-color: rgba(0, 0, 0, 0.3); } |
| + | .orbit-container .orbit-prev > span, |
| + | .orbit-container .orbit-next > span { |
| + | position: absolute; |
| + | top: 50%; |
| + | margin-top: -10px; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset 10px; } |
| + | .orbit-container .orbit-prev { |
| + | left: 0; } |
| + | .orbit-container .orbit-prev > span { |
| + | border-right-style: solid; |
| + | border-color: transparent; |
| + | border-right-color: white; } |
| + | .orbit-container .orbit-prev:hover > span { |
| + | border-right-color: white; } |
| + | .orbit-container .orbit-next { |
| + | right: 0; } |
| + | .orbit-container .orbit-next > span { |
| + | border-color: transparent; |
| + | border-left-style: solid; |
| + | border-left-color: white; |
| + | left: 50%; |
| + | margin-left: -4px; } |
| + | .orbit-container .orbit-next:hover > span { |
| + | border-left-color: white; } |
| + | .orbit-container .orbit-bullets-container { |
| + | text-align: center; } |
| + | .orbit-container .orbit-bullets { |
| + | margin: 0 auto 30px auto; |
| + | overflow: hidden; |
| + | position: relative; |
| + | top: 10px; |
| + | float: none; |
| + | text-align: center; |
| + | display: block; } |
| + | .orbit-container .orbit-bullets li { |
| + | display: inline-block; |
| + | width: 0.5625rem; |
| + | height: 0.5625rem; |
| + | background: #cccccc; |
| + | float: none; |
| + | margin-right: 6px; |
| + | border-radius: 1000px; } |
| + | .orbit-container .orbit-bullets li.active { |
| + | background: #999999; } |
| + | .orbit-container .orbit-bullets li:last-child { |
| + | margin-right: 0; } |
| + | |
| + | .touch .orbit-container .orbit-prev, |
| + | .touch .orbit-container .orbit-next { |
| + | display: none; } |
| + | .touch .orbit-bullets { |
| + | display: none; } |
| + | |
| + | @media only screen and (min-width: 40.063em) { |
| + | .touch .orbit-container .orbit-prev, |
| + | .touch .orbit-container .orbit-next { |
| + | display: inherit; } |
| + | .touch .orbit-bullets { |
| + | display: block; } } |
| + | @media only screen and (max-width: 40em) { |
| + | .orbit-stack-on-small .orbit-slides-container { |
| + | height: auto !important; } |
| + | .orbit-stack-on-small .orbit-slides-container > * { |
| + | position: relative !important; |
| + | margin-left: 0% !important; |
| + | opacity: 1 !important; |
| + | -webkit-transform: none !important; |
| + | -moz-transform: none !important; |
| + | -ms-transform: none !important; |
| + | -o-transform: none !important; |
| + | transform: none !important; |
| + | transition: none !important; } |
| + | .orbit-stack-on-small .orbit-timer { |
| + | display: none; } |
| + | .orbit-stack-on-small .orbit-next, .orbit-stack-on-small .orbit-prev { |
| + | display: none; } |
| + | .orbit-stack-on-small .orbit-bullets { |
| + | display: none; } |
| + | .orbit-stack-on-small .orbit-slide-number { |
| + | display: none; } } |
| + | [data-magellan-expedition], [data-magellan-expedition-clone] { |
| + | background: white; |
| + | z-index: 50; |
| + | min-width: 100%; |
| + | padding: 10px; } |
| + | [data-magellan-expedition] .sub-nav, [data-magellan-expedition-clone] .sub-nav { |
| + | margin-bottom: 0; } |
| + | [data-magellan-expedition] .sub-nav dd, [data-magellan-expedition-clone] .sub-nav dd { |
| + | margin-bottom: 0; } |
| + | [data-magellan-expedition] .sub-nav a, [data-magellan-expedition-clone] .sub-nav a { |
| + | line-height: 1.8em; } |
| + | |
| + | .text-left { |
| + | text-align: left !important; } |
| + | |
| + | .text-right { |
| + | text-align: right !important; } |
| + | |
| + | .text-center { |
| + | text-align: center !important; } |
| + | |
| + | .text-justify { |
| + | text-align: justify !important; } |
| + | |
| + | @media only screen and (max-width: 40em) { |
| + | .small-only-text-left { |
| + | text-align: left !important; } |
| + | |
| + | .small-only-text-right { |
| + | text-align: right !important; } |
| + | |
| + | .small-only-text-center { |
| + | text-align: center !important; } |
| + | |
| + | .small-only-text-justify { |
| + | text-align: justify !important; } } |
| + | @media only screen { |
| + | .small-text-left { |
| + | text-align: left !important; } |
| + | |
| + | .small-text-right { |
| + | text-align: right !important; } |
| + | |
| + | .small-text-center { |
| + | text-align: center !important; } |
| + | |
| + | .small-text-justify { |
| + | text-align: justify !important; } } |
| + | @media only screen and (min-width: 40.063em) and (max-width: 64em) { |
| + | .medium-only-text-left { |
| + | text-align: left !important; } |
| + | |
| + | .medium-only-text-right { |
| + | text-align: right !important; } |
| + | |
| + | .medium-only-text-center { |
| + | text-align: center !important; } |
| + | |
| + | .medium-only-text-justify { |
| + | text-align: justify !important; } } |
| + | @media only screen and (min-width: 40.063em) { |
| + | .medium-text-left { |
| + | text-align: left !important; } |
| + | |
| + | .medium-text-right { |
| + | text-align: right !important; } |
| + | |
| + | .medium-text-center { |
| + | text-align: center !important; } |
| + | |
| + | .medium-text-justify { |
| + | text-align: justify !important; } } |
| + | @media only screen and (min-width: 64.063em) and (max-width: 90em) { |
| + | .large-only-text-left { |
| + | text-align: left !important; } |
| + | |
| + | .large-only-text-right { |
| + | text-align: right !important; } |
| + | |
| + | .large-only-text-center { |
| + | text-align: center !important; } |
| + | |
| + | .large-only-text-justify { |
| + | text-align: justify !important; } } |
| + | @media only screen and (min-width: 64.063em) { |
| + | .large-text-left { |
| + | text-align: left !important; } |
| + | |
| + | .large-text-right { |
| + | text-align: right !important; } |
| + | |
| + | .large-text-center { |
| + | text-align: center !important; } |
| + | |
| + | .large-text-justify { |
| + | text-align: justify !important; } } |
| + | @media only screen and (min-width: 90.063em) and (max-width: 120em) { |
| + | .xlarge-only-text-left { |
| + | text-align: left !important; } |
| + | |
| + | .xlarge-only-text-right { |
| + | text-align: right !important; } |
| + | |
| + | .xlarge-only-text-center { |
| + | text-align: center !important; } |
| + | |
| + | .xlarge-only-text-justify { |
| + | text-align: justify !important; } } |
| + | @media only screen and (min-width: 90.063em) { |
| + | .xlarge-text-left { |
| + | text-align: left !important; } |
| + | |
| + | .xlarge-text-right { |
| + | text-align: right !important; } |
| + | |
| + | .xlarge-text-center { |
| + | text-align: center !important; } |
| + | |
| + | .xlarge-text-justify { |
| + | text-align: justify !important; } } |
| + | @media only screen and (min-width: 120.063em) and (max-width: 99999999em) { |
| + | .xxlarge-only-text-left { |
| + | text-align: left !important; } |
| + | |
| + | .xxlarge-only-text-right { |
| + | text-align: right !important; } |
| + | |
| + | .xxlarge-only-text-center { |
| + | text-align: center !important; } |
| + | |
| + | .xxlarge-only-text-justify { |
| + | text-align: justify !important; } } |
| + | @media only screen and (min-width: 120.063em) { |
| + | .xxlarge-text-left { |
| + | text-align: left !important; } |
| + | |
| + | .xxlarge-text-right { |
| + | text-align: right !important; } |
| + | |
| + | .xxlarge-text-center { |
| + | text-align: center !important; } |
| + | |
| + | .xxlarge-text-justify { |
| + | text-align: justify !important; } } |
| + | /* Typography resets */ |
| + | div, |
| + | dl, |
| + | dt, |
| + | dd, |
| + | ul, |
| + | ol, |
| + | li, |
| + | h1, |
| + | h2, |
| + | h3, |
| + | h4, |
| + | h5, |
| + | h6, |
| + | pre, |
| + | form, |
| + | p, |
| + | blockquote, |
| + | th, |
| + | td { |
| + | margin: 0; |
| + | padding: 0; } |
| + | |
| + | /* Default Link Styles */ |
| + | a { |
| + | color: #008cba; |
| + | text-decoration: none; |
| + | line-height: inherit; } |
| + | a:hover, a:focus { |
| + | color: #0078a0; } |
| + | a img { |
| + | border: none; } |
| + | |
| + | /* Default paragraph styles */ |
| + | p { |
| + | font-family: inherit; |
| + | font-weight: normal; |
| + | font-size: 1rem; |
| + | line-height: 1.6; |
| + | margin-bottom: 1.25rem; |
| + | text-rendering: optimizeLegibility; } |
| + | p.lead { |
| + | font-size: 1.21875rem; |
| + | line-height: 1.6; } |
| + | p aside { |
| + | font-size: 0.875rem; |
| + | line-height: 1.35; |
| + | font-style: italic; } |
| + | |
| + | /* Default header styles */ |
| + | h1, h2, h3, h4, h5, h6 { |
| + | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| + | font-weight: normal; |
| + | font-style: normal; |
| + | color: #222222; |
| + | text-rendering: optimizeLegibility; |
| + | margin-top: 0.2rem; |
| + | margin-bottom: 0.5rem; |
| + | line-height: 1.4; } |
| + | h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { |
| + | font-size: 60%; |
| + | color: #6f6f6f; |
| + | line-height: 0; } |
| + | |
| + | h1 { |
| + | font-size: 2.125rem; } |
| + | |
| + | h2 { |
| + | font-size: 1.6875rem; } |
| + | |
| + | h3 { |
| + | font-size: 1.375rem; } |
| + | |
| + | h4 { |
| + | font-size: 1.125rem; } |
| + | |
| + | h5 { |
| + | font-size: 1.125rem; } |
| + | |
| + | h6 { |
| + | font-size: 1rem; } |
| + | |
| + | .subheader { |
| + | line-height: 1.4; |
| + | color: #6f6f6f; |
| + | font-weight: normal; |
| + | margin-top: 0.2rem; |
| + | margin-bottom: 0.5rem; } |
| + | |
| + | hr { |
| + | border: solid #dddddd; |
| + | border-width: 1px 0 0; |
| + | clear: both; |
| + | margin: 1.25rem 0 1.1875rem; |
| + | height: 0; } |
| + | |
| + | /* Helpful Typography Defaults */ |
| + | em, |
| + | i { |
| + | font-style: italic; |
| + | line-height: inherit; } |
| + | |
| + | strong, |
| + | b { |
| + | font-weight: bold; |
| + | line-height: inherit; } |
| + | |
| + | small { |
| + | font-size: 60%; |
| + | line-height: inherit; } |
| + | |
| + | code { |
| + | font-family: Consolas, "Liberation Mono", Courier, monospace; |
| + | font-weight: bold; |
| + | color: #bd260d; } |
| + | |
| + | /* Lists */ |
| + | ul, |
| + | ol, |
| + | dl { |
| + | font-size: 1rem; |
| + | line-height: 1.6; |
| + | margin-bottom: 1.25rem; |
| + | list-style-position: outside; |
| + | font-family: inherit; } |
| + | |
| + | ul { |
| + | margin-left: 1.1rem; } |
| + | ul.no-bullet { |
| + | margin-left: 0; } |
| + | ul.no-bullet li ul, |
| + | ul.no-bullet li ol { |
| + | margin-left: 1.25rem; |
| + | margin-bottom: 0; |
| + | list-style: none; } |
| + | |
| + | /* Unordered Lists */ |
| + | ul li ul, |
| + | ul li ol { |
| + | margin-left: 1.25rem; |
| + | margin-bottom: 0; } |
| + | ul.square li ul, ul.circle li ul, ul.disc li ul { |
| + | list-style: inherit; } |
| + | ul.square { |
| + | list-style-type: square; |
| + | margin-left: 1.1rem; } |
| + | ul.circle { |
| + | list-style-type: circle; |
| + | margin-left: 1.1rem; } |
| + | ul.disc { |
| + | list-style-type: disc; |
| + | margin-left: 1.1rem; } |
| + | ul.no-bullet { |
| + | list-style: none; } |
| + | |
| + | /* Ordered Lists */ |
| + | ol { |
| + | margin-left: 1.4rem; } |
| + | ol li ul, |
| + | ol li ol { |
| + | margin-left: 1.25rem; |
| + | margin-bottom: 0; } |
| + | |
| + | /* Definition Lists */ |
| + | dl dt { |
| + | margin-bottom: 0.3rem; |
| + | font-weight: bold; } |
| + | dl dd { |
| + | margin-bottom: 0.75rem; } |
| + | |
| + | /* Abbreviations */ |
| + | abbr, |
| + | acronym { |
| + | text-transform: uppercase; |
| + | font-size: 90%; |
| + | color: #222222; |
| + | border-bottom: 1px dotted #dddddd; |
| + | cursor: help; } |
| + | |
| + | abbr { |
| + | text-transform: none; } |
| + | |
| + | /* Blockquotes */ |
| + | blockquote { |
| + | margin: 0 0 1.25rem; |
| + | padding: 0.5625rem 1.25rem 0 1.1875rem; |
| + | border-left: 1px solid #dddddd; } |
| + | blockquote cite { |
| + | display: block; |
| + | font-size: 0.8125rem; |
| + | color: #555555; } |
| + | blockquote cite:before { |
| + | content: "\2014 \0020"; } |
| + | blockquote cite a, |
| + | blockquote cite a:visited { |
| + | color: #555555; } |
| + | |
| + | blockquote, |
| + | blockquote p { |
| + | line-height: 1.6; |
| + | color: #6f6f6f; } |
| + | |
| + | /* Microformats */ |
| + | .vcard { |
| + | display: inline-block; |
| + | margin: 0 0 1.25rem 0; |
| + | border: 1px solid #dddddd; |
| + | padding: 0.625rem 0.75rem; } |
| + | .vcard li { |
| + | margin: 0; |
| + | display: block; } |
| + | .vcard .fn { |
| + | font-weight: bold; |
| + | font-size: 0.9375rem; } |
| + | |
| + | .vevent .summary { |
| + | font-weight: bold; } |
| + | .vevent abbr { |
| + | cursor: default; |
| + | text-decoration: none; |
| + | font-weight: bold; |
| + | border: none; |
| + | padding: 0 0.0625rem; } |
| + | |
| + | @media only screen and (min-width: 40.063em) { |
| + | h1, h2, h3, h4, h5, h6 { |
| + | line-height: 1.4; } |
| + | |
| + | h1 { |
| + | font-size: 2.75rem; } |
| + | |
| + | h2 { |
| + | font-size: 2.3125rem; } |
| + | |
| + | h3 { |
| + | font-size: 1.6875rem; } |
| + | |
| + | h4 { |
| + | font-size: 1.4375rem; } } |
| + | /* |
| + | * Print styles. |
| + | * |
| + | * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/ |
| + | * Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com) |
| + | */ |
| + | .print-only { |
| + | display: none !important; } |
| + | |
| + | @media print { |
| + | * { |
| + | background: transparent !important; |
| + | color: black !important; |
| + | /* Black prints faster: h5bp.com/s */ |
| + | box-shadow: none !important; |
| + | text-shadow: none !important; } |
| + | |
| + | a, |
| + | a:visited { |
| + | text-decoration: underline; } |
| + | |
| + | a[href]:after { |
| + | content: " (" attr(href) ")"; } |
| + | |
| + | abbr[title]:after { |
| + | content: " (" attr(title) ")"; } |
| + | |
| + | .ir a:after, |
| + | a[href^="javascript:"]:after, |
| + | a[href^="#"]:after { |
| + | content: ""; } |
| + | |
| + | pre, |
| + | blockquote { |
| + | border: 1px solid #999999; |
| + | page-break-inside: avoid; } |
| + | |
| + | thead { |
| + | display: table-header-group; |
| + | /* h5bp.com/t */ } |
| + | |
| + | tr, |
| + | img { |
| + | page-break-inside: avoid; } |
| + | |
| + | img { |
| + | max-width: 100% !important; } |
| + | |
| + | @page { |
| + | margin: 0.5cm; } |
| + | |
| + | p, |
| + | h2, |
| + | h3 { |
| + | orphans: 3; |
| + | widows: 3; } |
| + | |
| + | h2, |
| + | h3 { |
| + | page-break-after: avoid; } |
| + | |
| + | .hide-on-print { |
| + | display: none !important; } |
| + | |
| + | .print-only { |
| + | display: block !important; } |
| + | |
| + | .hide-for-print { |
| + | display: none !important; } |
| + | |
| + | .show-for-print { |
| + | display: inherit !important; } } |
| + | .tabs { |
| + | margin-bottom: 0 !important; |
| + | margin-left: 0; } |
| + | .tabs:before, .tabs:after { |
| + | content: " "; |
| + | display: table; } |
| + | .tabs:after { |
| + | clear: both; } |
| + | .tabs dd, .tabs .tab-title { |
| + | position: relative; |
| + | margin-bottom: 0 !important; |
| + | list-style: none; |
| + | float: left; } |
| + | .tabs dd > a, .tabs .tab-title > a { |
| + | display: block; |
| + | background: #efefef; |
| + | color: #222222; |
| + | padding: 1rem 2rem; |
| + | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| + | font-size: 1rem; } |
| + | .tabs dd > a:hover, .tabs .tab-title > a:hover { |
| + | background: #e1e1e1; } |
| + | .tabs dd.active a, .tabs .tab-title.active a { |
| + | background: white; |
| + | color: #222222; } |
| + | .tabs.radius dd:first-child a, .tabs.radius .tab:first-child a { |
| + | border-bottom-left-radius: 3px; |
| + | border-top-left-radius: 3px; } |
| + | .tabs.radius dd:last-child a, .tabs.radius .tab:last-child a { |
| + | border-bottom-right-radius: 3px; |
| + | border-top-right-radius: 3px; } |
| + | .tabs.vertical dd, .tabs.vertical .tab { |
| + | position: inherit; |
| + | float: none; |
| + | display: block; |
| + | top: auto; } |
| + | |
| + | .tabs-content { |
| + | margin-bottom: 1.5rem; |
| + | width: 100%; } |
| + | .tabs-content:before, .tabs-content:after { |
| + | content: " "; |
| + | display: table; } |
| + | .tabs-content:after { |
| + | clear: both; } |
| + | .tabs-content > .content { |
| + | display: none; |
| + | float: left; |
| + | padding: 0.9375rem 0; |
| + | width: 100%; } |
| + | .tabs-content > .content.active { |
| + | display: block; |
| + | float: none; } |
| + | .tabs-content > .content.contained { |
| + | padding: 0.9375rem; } |
| + | .tabs-content.vertical { |
| + | display: block; } |
| + | .tabs-content.vertical > .content { |
| + | padding: 0 0.9375rem; } |
| + | |
| + | @media only screen and (min-width: 40.063em) { |
| + | .tabs.vertical { |
| + | width: 20%; |
| + | float: left; |
| + | margin-bottom: 1.25rem; } |
| + | |
| + | .tabs-content.vertical { |
| + | width: 80%; |
| + | float: left; |
| + | margin-left: -1px; } } |
| + | .no-js .tabs-content > .content { |
| + | display: block; |
| + | float: none; } |
| + | |
| + | ul.pagination { |
| + | display: block; |
| + | min-height: 1.5rem; |
| + | margin-left: -0.3125rem; } |
| + | ul.pagination li { |
| + | height: 1.5rem; |
| + | color: #222222; |
| + | font-size: 0.875rem; |
| + | margin-left: 0.3125rem; } |
| + | ul.pagination li a { |
| + | display: block; |
| + | padding: 0.0625rem 0.625rem 0.0625rem; |
| + | color: #999999; |
| + | border-radius: 3px; } |
| + | ul.pagination li:hover a, |
| + | ul.pagination li a:focus { |
| + | background: #e6e6e6; } |
| + | ul.pagination li.unavailable a { |
| + | cursor: default; |
| + | color: #999999; } |
| + | ul.pagination li.unavailable:hover a, ul.pagination li.unavailable a:focus { |
| + | background: transparent; } |
| + | ul.pagination li.current a { |
| + | background: #008cba; |
| + | color: white; |
| + | font-weight: bold; |
| + | cursor: default; } |
| + | ul.pagination li.current a:hover, ul.pagination li.current a:focus { |
| + | background: #008cba; } |
| + | ul.pagination li { |
| + | float: left; |
| + | display: block; } |
| + | |
| + | /* Pagination centred wrapper */ |
| + | .pagination-centered { |
| + | text-align: center; } |
| + | .pagination-centered ul.pagination li { |
| + | float: none; |
| + | display: inline-block; } |
| + | |
| + | .side-nav { |
| + | display: block; |
| + | margin: 0; |
| + | padding: 0.875rem 0; |
| + | list-style-type: none; |
| + | list-style-position: inside; |
| + | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; } |
| + | .side-nav li { |
| + | margin: 0 0 0.4375rem 0; |
| + | font-size: 0.875rem; } |
| + | .side-nav li a:not(.button) { |
| + | display: block; |
| + | color: #008cba; |
| + | margin: 0; |
| + | padding: 0.4375rem 0.875rem; } |
| + | .side-nav li a:not(.button):hover, .side-nav li a:not(.button):focus { |
| + | background: rgba(0, 0, 0, 0.025); |
| + | color: #1cc7ff; } |
| + | .side-nav li.active > a:first-child:not(.button) { |
| + | color: #1cc7ff; |
| + | font-weight: normal; |
| + | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; } |
| + | .side-nav li.divider { |
| + | border-top: 1px solid; |
| + | height: 0; |
| + | padding: 0; |
| + | list-style: none; |
| + | border-top-color: white; } |
| + | .side-nav li.heading { |
| + | color: #008cba; |
| + | font-size: 0.875rem; |
| + | font-weight: bold; |
| + | text-transform: uppercase; } |
| + | |
| + | .accordion { |
| + | margin-bottom: 0; } |
| + | .accordion:before, .accordion:after { |
| + | content: " "; |
| + | display: table; } |
| + | .accordion:after { |
| + | clear: both; } |
| + | .accordion dd { |
| + | display: block; |
| + | margin-bottom: 0 !important; } |
| + | .accordion dd.active > a { |
| + | background: #e8e8e8; } |
| + | .accordion dd > a { |
| + | background: #efefef; |
| + | color: #222222; |
| + | padding: 1rem; |
| + | display: block; |
| + | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| + | font-size: 1rem; } |
| + | .accordion dd > a:hover { |
| + | background: #e3e3e3; } |
| + | .accordion dd > .content { |
| + | display: none; |
| + | padding: 0.9375rem; } |
| + | .accordion dd > .content.active { |
| + | display: block; |
| + | background: white; } |
| + | |
| + | .split.button { |
| + | position: relative; |
| + | padding-right: 5.0625rem; } |
| + | .split.button span { |
| + | display: block; |
| + | height: 100%; |
| + | position: absolute; |
| + | right: 0; |
| + | top: 0; |
| + | border-left: solid 1px; } |
| + | .split.button span:after { |
| + | position: absolute; |
| + | content: ""; |
| + | width: 0; |
| + | height: 0; |
| + | display: block; |
| + | border-style: inset; |
| + | top: 50%; |
| + | left: 50%; } |
| + | .split.button span:active { |
| + | background-color: rgba(0, 0, 0, 0.1); } |
| + | .split.button span { |
| + | border-left-color: rgba(255, 255, 255, 0.5); } |
| + | .split.button span { |
| + | width: 3.09375rem; } |
| + | .split.button span:after { |
| + | border-top-style: solid; |
| + | border-width: 0.375rem; |
| + | top: 48%; |
| + | margin-left: -0.375rem; } |
| + | .split.button span:after { |
| + | border-color: white transparent transparent transparent; } |
| + | .split.button.secondary span { |
| + | border-left-color: rgba(255, 255, 255, 0.5); } |
| + | .split.button.secondary span:after { |
| + | border-color: white transparent transparent transparent; } |
| + | .split.button.alert span { |
| + | border-left-color: rgba(255, 255, 255, 0.5); } |
| + | .split.button.success span { |
| + | border-left-color: rgba(255, 255, 255, 0.5); } |
| + | .split.button.tiny { |
| + | padding-right: 3.75rem; } |
| + | .split.button.tiny span { |
| + | width: 2.25rem; } |
| + | .split.button.tiny span:after { |
| + | border-top-style: solid; |
| + | border-width: 0.375rem; |
| + | top: 48%; |
| + | margin-left: -0.375rem; } |
| + | .split.button.small { |
| + | padding-right: 4.375rem; } |
| + | .split.button.small span { |
| + | width: 2.625rem; } |
| + | .split.button.small span:after { |
| + | border-top-style: solid; |
| + | border-width: 0.4375rem; |
| + | top: 48%; |
| + | margin-left: -0.375rem; } |
| + | .split.button.large { |
| + | padding-right: 5.5rem; } |
| + | .split.button.large span { |
| + | width: 3.4375rem; } |
| + | .split.button.large span:after { |
| + | border-top-style: solid; |
| + | border-width: 0.3125rem; |
| + | top: 48%; |
| + | margin-left: -0.375rem; } |
| + | .split.button.expand { |
| + | padding-left: 2rem; } |
| + | .split.button.secondary span:after { |
| + | border-color: #333333 transparent transparent transparent; } |
| + | .split.button.radius span { |
| + | border-bottom-right-radius: 3px; |
| + | border-top-right-radius: 3px; } |
| + | .split.button.round span { |
| + | border-bottom-right-radius: 1000px; |
| + | border-top-right-radius: 1000px; } |
| + | |
| + | .reveal-modal-bg { |
| + | position: fixed; |
| + | height: 100%; |
| + | width: 100%; |
| + | background: black; |
| + | background: rgba(0, 0, 0, 0.45); |
| + | z-index: 99; |
| + | display: none; |
| + | top: 0; |
| + | left: 0; } |
| + | |
| + | dialog, .reveal-modal { |
| + | visibility: hidden; |
| + | display: none; |
| + | position: absolute; |
| + | z-index: 100; |
| + | width: 100vw; |
| + | top: 0; |
| + | left: 0; |
| + | background-color: white; |
| + | padding: 1.25rem; |
| + | border: solid 1px #666666; |
| + | box-shadow: 0 0 10px rgba(0, 0, 0, 0.4); } |
| + | @media only screen and (max-width: 40em) { |
| + | dialog, .reveal-modal { |
| + | min-height: 100vh; } } |
| + | @media only screen and (min-width: 40.063em) { |
| + | dialog, .reveal-modal { |
| + | left: 50%; } } |
| + | dialog .column, |
| + | dialog .columns, .reveal-modal .column, |
| + | .reveal-modal .columns { |
| + | min-width: 0; } |
| + | dialog > :first-child, .reveal-modal > :first-child { |
| + | margin-top: 0; } |
| + | dialog > :last-child, .reveal-modal > :last-child { |
| + | margin-bottom: 0; } |
| + | @media only screen and (min-width: 40.063em) { |
| + | dialog, .reveal-modal { |
| + | margin-left: -40%; |
| + | width: 80%; } } |
| + | @media only screen and (min-width: 40.063em) { |
| + | dialog, .reveal-modal { |
| + | top: 6.25rem; } } |
| + | dialog .close-reveal-modal, .reveal-modal .close-reveal-modal { |
| + | font-size: 2.5rem; |
| + | line-height: 1; |
| + | position: absolute; |
| + | top: 0.5rem; |
| + | right: 0.6875rem; |
| + | color: #aaaaaa; |
| + | font-weight: bold; |
| + | cursor: pointer; } |
| + | |
| + | dialog[open] { |
| + | display: block; |
| + | visibility: visible; } |
| + | |
| + | @media only screen and (min-width: 40.063em) { |
| + | dialog, .reveal-modal { |
| + | padding: 1.875rem; } |
| + | dialog.radius, .reveal-modal.radius { |
| + | border-radius: 3px; } |
| + | dialog.round, .reveal-modal.round { |
| + | border-radius: 1000px; } |
| + | dialog.collapse, .reveal-modal.collapse { |
| + | padding: 0; } |
| + | dialog.full, .reveal-modal.full { |
| + | top: 0; |
| + | left: 0; |
| + | height: 100vh; |
| + | min-height: 100vh; |
| + | margin-left: 0 !important; } } |
| + | @media only screen and (min-width: 40.063em) and (min-width: 40.063em) { |
| + | dialog.tiny, .reveal-modal.tiny { |
| + | margin-left: -15%; |
| + | width: 30%; } } |
| + | @media only screen and (min-width: 40.063em) and (min-width: 40.063em) { |
| + | dialog.small, .reveal-modal.small { |
| + | margin-left: -20%; |
| + | width: 40%; } } |
| + | @media only screen and (min-width: 40.063em) and (min-width: 40.063em) { |
| + | dialog.medium, .reveal-modal.medium { |
| + | margin-left: -30%; |
| + | width: 60%; } } |
| + | @media only screen and (min-width: 40.063em) and (min-width: 40.063em) { |
| + | dialog.large, .reveal-modal.large { |
| + | margin-left: -35%; |
| + | width: 70%; } } |
| + | @media only screen and (min-width: 40.063em) and (min-width: 40.063em) { |
| + | dialog.xlarge, .reveal-modal.xlarge { |
| + | margin-left: -47.5%; |
| + | width: 95%; } } |
| + | |
| + | @media only screen and (min-width: 40.063em) and (min-width: 40.063em) { |
| + | dialog.full, .reveal-modal.full { |
| + | margin-left: -50vw; |
| + | width: 100vw; } } |
| + | |
| + | @media print { |
| + | dialog, .reveal-modal { |
| + | background: white !important; } } |
| + | /* Tooltips */ |
| + | .has-tip { |
| + | border-bottom: dotted 1px #cccccc; |
| + | cursor: help; |
| + | font-weight: bold; |
| + | color: #333333; } |
| + | .has-tip:hover, .has-tip:focus { |
| + | border-bottom: dotted 1px #003f54; |
| + | color: #008cba; } |
| + | .has-tip.tip-left, .has-tip.tip-right { |
| + | float: none !important; } |
| + | |
| + | .tooltip { |
| + | display: none; |
| + | position: absolute; |
| + | z-index: 999; |
| + | font-weight: normal; |
| + | font-size: 0.875rem; |
| + | line-height: 1.3; |
| + | padding: 0.75rem; |
| + | max-width: 85%; |
| + | left: 50%; |
| + | width: 100%; |
| + | color: white; |
| + | background: #333333; } |
| + | .tooltip > .nub { |
| + | display: block; |
| + | left: 5px; |
| + | position: absolute; |
| + | width: 0; |
| + | height: 0; |
| + | border: solid 5px; |
| + | border-color: transparent transparent #333333 transparent; |
| + | top: -10px; } |
| + | .tooltip > .nub.rtl { |
| + | left: auto; |
| + | right: 5px; } |
| + | .tooltip.radius { |
| + | border-radius: 3px; } |
| + | .tooltip.round { |
| + | border-radius: 1000px; } |
| + | .tooltip.round > .nub { |
| + | left: 2rem; } |
| + | .tooltip.opened { |
| + | color: #008cba !important; |
| + | border-bottom: dotted 1px #003f54 !important; } |
| + | |
| + | .tap-to-close { |
| + | display: block; |
| + | font-size: 0.625rem; |
| + | color: #777777; |
| + | font-weight: normal; } |
| + | |
| + | @media only screen and (min-width: 40.063em) { |
| + | .tooltip > .nub { |
| + | border-color: transparent transparent #333333 transparent; |
| + | top: -10px; } |
| + | .tooltip.tip-top > .nub { |
| + | border-color: #333333 transparent transparent transparent; |
| + | top: auto; |
| + | bottom: -10px; } |
| + | .tooltip.tip-left, .tooltip.tip-right { |
| + | float: none !important; } |
| + | .tooltip.tip-left > .nub { |
| + | border-color: transparent transparent transparent #333333; |
| + | right: -10px; |
| + | left: auto; |
| + | top: 50%; |
| + | margin-top: -5px; } |
| + | .tooltip.tip-right > .nub { |
| + | border-color: transparent #333333 transparent transparent; |
| + | right: auto; |
| + | left: -10px; |
| + | top: 50%; |
| + | margin-top: -5px; } } |
| + | /* Clearing Styles */ |
| + | .clearing-thumbs, [data-clearing] { |
| + | margin-bottom: 0; |
| + | margin-left: 0; |
| + | list-style: none; } |
| + | .clearing-thumbs:before, .clearing-thumbs:after, [data-clearing]:before, [data-clearing]:after { |
| + | content: " "; |
| + | display: table; } |
| + | .clearing-thumbs:after, [data-clearing]:after { |
| + | clear: both; } |
| + | .clearing-thumbs li, [data-clearing] li { |
| + | float: left; |
| + | margin-right: 10px; } |
| + | .clearing-thumbs[class*="block-grid-"] li, [data-clearing][class*="block-grid-"] li { |
| + | margin-right: 0; } |
| + | |
| + | .clearing-blackout { |
| + | background: #333333; |
| + | position: fixed; |
| + | width: 100%; |
| + | height: 100%; |
| + | top: 0; |
| + | left: 0; |
| + | z-index: 998; } |
| + | .clearing-blackout .clearing-close { |
| + | display: block; } |
| + | |
| + | .clearing-container { |
| + | position: relative; |
| + | z-index: 998; |
| + | height: 100%; |
| + | overflow: hidden; |
| + | margin: 0; } |
| + | |
| + | .clearing-touch-label { |
| + | position: absolute; |
| + | top: 50%; |
| + | left: 50%; |
| + | color: #aaa; |
| + | font-size: 0.6em; } |
| + | |
| + | .visible-img { |
| + | height: 95%; |
| + | position: relative; } |
| + | .visible-img img { |
| + | position: absolute; |
| + | left: 50%; |
| + | top: 50%; |
| + | margin-left: -50%; |
| + | max-height: 100%; |
| + | max-width: 100%; } |
| + | |
| + | .clearing-caption { |
| + | color: #cccccc; |
| + | font-size: 0.875em; |
| + | line-height: 1.3; |
| + | margin-bottom: 0; |
| + | text-align: center; |
| + | bottom: 0; |
| + | background: #333333; |
| + | width: 100%; |
| + | padding: 10px 30px 20px; |
| + | position: absolute; |
| + | left: 0; } |
| + | |
| + | .clearing-close { |
| + | z-index: 999; |
| + | padding-left: 20px; |
| + | padding-top: 10px; |
| + | font-size: 30px; |
| + | line-height: 1; |
| + | color: #cccccc; |
| + | display: none; } |
| + | .clearing-close:hover, .clearing-close:focus { |
| + | color: #ccc; } |
| + | |
| + | .clearing-assembled .clearing-container { |
| + | height: 100%; } |
| + | .clearing-assembled .clearing-container .carousel > ul { |
| + | display: none; } |
| + | |
| + | .clearing-feature li { |
| + | display: none; } |
| + | .clearing-feature li.clearing-featured-img { |
| + | display: block; } |
| + | |
| + | @media only screen and (min-width: 40.063em) { |
| + | .clearing-main-prev, |
| + | .clearing-main-next { |
| + | position: absolute; |
| + | height: 100%; |
| + | width: 40px; |
| + | top: 0; } |
| + | .clearing-main-prev > span, |
| + | .clearing-main-next > span { |
| + | position: absolute; |
| + | top: 50%; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: solid 12px; } |
| + | .clearing-main-prev > span:hover, |
| + | .clearing-main-next > span:hover { |
| + | opacity: 0.8; } |
| + | |
| + | .clearing-main-prev { |
| + | left: 0; } |
| + | .clearing-main-prev > span { |
| + | left: 5px; |
| + | border-color: transparent; |
| + | border-right-color: #cccccc; } |
| + | |
| + | .clearing-main-next { |
| + | right: 0; } |
| + | .clearing-main-next > span { |
| + | border-color: transparent; |
| + | border-left-color: #cccccc; } |
| + | |
| + | .clearing-main-prev.disabled, |
| + | .clearing-main-next.disabled { |
| + | opacity: 0.3; } |
| + | |
| + | .clearing-assembled .clearing-container .carousel { |
| + | background: rgba(51, 51, 51, 0.8); |
| + | height: 120px; |
| + | margin-top: 10px; |
| + | text-align: center; } |
| + | .clearing-assembled .clearing-container .carousel > ul { |
| + | display: inline-block; |
| + | z-index: 999; |
| + | height: 100%; |
| + | position: relative; |
| + | float: none; } |
| + | .clearing-assembled .clearing-container .carousel > ul li { |
| + | display: block; |
| + | width: 120px; |
| + | min-height: inherit; |
| + | float: left; |
| + | overflow: hidden; |
| + | margin-right: 0; |
| + | padding: 0; |
| + | position: relative; |
| + | cursor: pointer; |
| + | opacity: 0.4; |
| + | clear: none; } |
| + | .clearing-assembled .clearing-container .carousel > ul li.fix-height img { |
| + | height: 100%; |
| + | max-width: none; } |
| + | .clearing-assembled .clearing-container .carousel > ul li a.th { |
| + | border: none; |
| + | box-shadow: none; |
| + | display: block; } |
| + | .clearing-assembled .clearing-container .carousel > ul li img { |
| + | cursor: pointer !important; |
| + | width: 100% !important; } |
| + | .clearing-assembled .clearing-container .carousel > ul li.visible { |
| + | opacity: 1; } |
| + | .clearing-assembled .clearing-container .carousel > ul li:hover { |
| + | opacity: 0.8; } |
| + | .clearing-assembled .clearing-container .visible-img { |
| + | background: #333333; |
| + | overflow: hidden; |
| + | height: 85%; } |
| + | |
| + | .clearing-close { |
| + | position: absolute; |
| + | top: 10px; |
| + | right: 20px; |
| + | padding-left: 0; |
| + | padding-top: 0; } } |
| + | /* Progress Bar */ |
| + | .progress { |
| + | background-color: #f6f6f6; |
| + | height: 1.5625rem; |
| + | border: 1px solid white; |
| + | padding: 0.125rem; |
| + | margin-bottom: 0.625rem; } |
| + | .progress .meter { |
| + | background: #008cba; |
| + | height: 100%; |
| + | display: block; } |
| + | .progress.secondary .meter { |
| + | background: #e7e7e7; |
| + | height: 100%; |
| + | display: block; } |
| + | .progress.success .meter { |
| + | background: #43ac6a; |
| + | height: 100%; |
| + | display: block; } |
| + | .progress.alert .meter { |
| + | background: #f04124; |
| + | height: 100%; |
| + | display: block; } |
| + | .progress.radius { |
| + | border-radius: 3px; } |
| + | .progress.radius .meter { |
| + | border-radius: 2px; } |
| + | .progress.round { |
| + | border-radius: 1000px; } |
| + | .progress.round .meter { |
| + | border-radius: 999px; } |
| + | |
| + | .sub-nav { |
| + | display: block; |
| + | width: auto; |
| + | overflow: hidden; |
| + | margin: -0.25rem 0 1.125rem; |
| + | padding-top: 0.25rem; |
| + | margin-right: 0; |
| + | margin-left: -0.75rem; } |
| + | .sub-nav dt { |
| + | text-transform: uppercase; } |
| + | .sub-nav dt, |
| + | .sub-nav dd, |
| + | .sub-nav li { |
| + | float: left; |
| + | display: inline; |
| + | margin-left: 1rem; |
| + | margin-bottom: 0.625rem; |
| + | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| + | font-weight: normal; |
| + | font-size: 0.875rem; |
| + | color: #999999; } |
| + | .sub-nav dt a, |
| + | .sub-nav dd a, |
| + | .sub-nav li a { |
| + | text-decoration: none; |
| + | color: #999999; |
| + | padding: 0.1875rem 1rem; } |
| + | .sub-nav dt a:hover, |
| + | .sub-nav dd a:hover, |
| + | .sub-nav li a:hover { |
| + | color: #737373; } |
| + | .sub-nav dt.active a, |
| + | .sub-nav dd.active a, |
| + | .sub-nav li.active a { |
| + | border-radius: 3px; |
| + | font-weight: normal; |
| + | background: #008cba; |
| + | padding: 0.1875rem 1rem; |
| + | cursor: default; |
| + | color: white; } |
| + | .sub-nav dt.active a:hover, |
| + | .sub-nav dd.active a:hover, |
| + | .sub-nav li.active a:hover { |
| + | background: #0078a0; } |
| + | |
| + | /* Foundation Joyride */ |
| + | .joyride-list { |
| + | display: none; } |
| + | |
| + | /* Default styles for the container */ |
| + | .joyride-tip-guide { |
| + | display: none; |
| + | position: absolute; |
| + | background: #333333; |
| + | color: white; |
| + | z-index: 101; |
| + | top: 0; |
| + | left: 2.5%; |
| + | font-family: inherit; |
| + | font-weight: normal; |
| + | width: 95%; } |
| + | |
| + | .lt-ie9 .joyride-tip-guide { |
| + | max-width: 800px; |
| + | left: 50%; |
| + | margin-left: -400px; } |
| + | |
| + | .joyride-content-wrapper { |
| + | width: 100%; |
| + | padding: 1.125rem 1.25rem 1.5rem; } |
| + | .joyride-content-wrapper .button { |
| + | margin-bottom: 0 !important; } |
| + | |
| + | /* Add a little css triangle pip, older browser just miss out on the fanciness of it */ |
| + | .joyride-tip-guide .joyride-nub { |
| + | display: block; |
| + | position: absolute; |
| + | left: 22px; |
| + | width: 0; |
| + | height: 0; |
| + | border: 10px solid #333333; } |
| + | .joyride-tip-guide .joyride-nub.top { |
| + | border-top-style: solid; |
| + | border-color: #333333; |
| + | border-top-color: transparent !important; |
| + | border-left-color: transparent !important; |
| + | border-right-color: transparent !important; |
| + | top: -20px; } |
| + | .joyride-tip-guide .joyride-nub.bottom { |
| + | border-bottom-style: solid; |
| + | border-color: #333333 !important; |
| + | border-bottom-color: transparent !important; |
| + | border-left-color: transparent !important; |
| + | border-right-color: transparent !important; |
| + | bottom: -20px; } |
| + | .joyride-tip-guide .joyride-nub.right { |
| + | right: -20px; } |
| + | .joyride-tip-guide .joyride-nub.left { |
| + | left: -20px; } |
| + | |
| + | /* Typography */ |
| + | .joyride-tip-guide h1, |
| + | .joyride-tip-guide h2, |
| + | .joyride-tip-guide h3, |
| + | .joyride-tip-guide h4, |
| + | .joyride-tip-guide h5, |
| + | .joyride-tip-guide h6 { |
| + | line-height: 1.25; |
| + | margin: 0; |
| + | font-weight: bold; |
| + | color: white; } |
| + | |
| + | .joyride-tip-guide p { |
| + | margin: 0 0 1.125rem 0; |
| + | font-size: 0.875rem; |
| + | line-height: 1.3; } |
| + | |
| + | .joyride-timer-indicator-wrap { |
| + | width: 50px; |
| + | height: 3px; |
| + | border: solid 1px #555555; |
| + | position: absolute; |
| + | right: 1.0625rem; |
| + | bottom: 1rem; } |
| + | |
| + | .joyride-timer-indicator { |
| + | display: block; |
| + | width: 0; |
| + | height: inherit; |
| + | background: #666666; } |
| + | |
| + | .joyride-close-tip { |
| + | position: absolute; |
| + | right: 12px; |
| + | top: 10px; |
| + | color: #777777 !important; |
| + | text-decoration: none; |
| + | font-size: 24px; |
| + | font-weight: normal; |
| + | line-height: 0.5 !important; } |
| + | .joyride-close-tip:hover, .joyride-close-tip:focus { |
| + | color: #eeeeee !important; } |
| + | |
| + | .joyride-modal-bg { |
| + | position: fixed; |
| + | height: 100%; |
| + | width: 100%; |
| + | background: transparent; |
| + | background: rgba(0, 0, 0, 0.5); |
| + | z-index: 100; |
| + | display: none; |
| + | top: 0; |
| + | left: 0; |
| + | cursor: pointer; } |
| + | |
| + | .joyride-expose-wrapper { |
| + | background-color: #ffffff; |
| + | position: absolute; |
| + | border-radius: 3px; |
| + | z-index: 102; |
| + | box-shadow: 0 0 15px white; } |
| + | |
| + | .joyride-expose-cover { |
| + | background: transparent; |
| + | border-radius: 3px; |
| + | position: absolute; |
| + | z-index: 9999; |
| + | top: 0; |
| + | left: 0; } |
| + | |
| + | /* Styles for screens that are at least 768px; */ |
| + | @media only screen and (min-width: 40.063em) { |
| + | .joyride-tip-guide { |
| + | width: 300px; |
| + | left: inherit; } |
| + | .joyride-tip-guide .joyride-nub.bottom { |
| + | border-color: #333333 !important; |
| + | border-bottom-color: transparent !important; |
| + | border-left-color: transparent !important; |
| + | border-right-color: transparent !important; |
| + | bottom: -20px; } |
| + | .joyride-tip-guide .joyride-nub.right { |
| + | border-color: #333333 !important; |
| + | border-top-color: transparent !important; |
| + | border-right-color: transparent !important; |
| + | border-bottom-color: transparent !important; |
| + | top: 22px; |
| + | left: auto; |
| + | right: -20px; } |
| + | .joyride-tip-guide .joyride-nub.left { |
| + | border-color: #333333 !important; |
| + | border-top-color: transparent !important; |
| + | border-left-color: transparent !important; |
| + | border-bottom-color: transparent !important; |
| + | top: 22px; |
| + | left: -20px; |
| + | right: auto; } } |
| + | .label { |
| + | font-weight: normal; |
| + | font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| + | text-align: center; |
| + | text-decoration: none; |
| + | line-height: 1; |
| + | white-space: nowrap; |
| + | display: inline-block; |
| + | position: relative; |
| + | margin-bottom: inherit; |
| + | padding: 0.25rem 0.5rem 0.375rem; |
| + | font-size: 0.6875rem; |
| + | background-color: #008cba; |
| + | color: white; } |
| + | .label.radius { |
| + | border-radius: 3px; } |
| + | .label.round { |
| + | border-radius: 1000px; } |
| + | .label.alert { |
| + | background-color: #f04124; |
| + | color: white; } |
| + | .label.success { |
| + | background-color: #43ac6a; |
| + | color: white; } |
| + | .label.secondary { |
| + | background-color: #e7e7e7; |
| + | color: #333333; } |
| + | |
| + | .off-canvas-wrap { |
| + | -webkit-backface-visibility: hidden; |
| + | position: relative; |
| + | width: 100%; |
| + | overflow: hidden; } |
| + | .off-canvas-wrap.move-right, .off-canvas-wrap.move-left { |
| + | min-height: 100%; |
| + | -webkit-overflow-scrolling: touch; } |
| + | |
| + | .inner-wrap { |
| + | -webkit-backface-visibility: hidden; |
| + | position: relative; |
| + | width: 100%; |
| + | -webkit-transition: -webkit-transform 500ms ease; |
| + | -moz-transition: -moz-transform 500ms ease; |
| + | -ms-transition: -ms-transform 500ms ease; |
| + | -o-transition: -o-transform 500ms ease; |
| + | transition: transform 500ms ease; } |
| + | .inner-wrap:before, .inner-wrap:after { |
| + | content: " "; |
| + | display: table; } |
| + | .inner-wrap:after { |
| + | clear: both; } |
| + | |
| + | .tab-bar { |
| + | -webkit-backface-visibility: hidden; |
| + | background: #333333; |
| + | color: white; |
| + | height: 2.8125rem; |
| + | line-height: 2.8125rem; |
| + | position: relative; } |
| + | .tab-bar h1, .tab-bar h2, .tab-bar h3, .tab-bar h4, .tab-bar h5, .tab-bar h6 { |
| + | color: white; |
| + | font-weight: bold; |
| + | line-height: 2.8125rem; |
| + | margin: 0; } |
| + | .tab-bar h1, .tab-bar h2, .tab-bar h3, .tab-bar h4 { |
| + | font-size: 1.125rem; } |
| + | |
| + | .left-small { |
| + | width: 2.8125rem; |
| + | height: 2.8125rem; |
| + | position: absolute; |
| + | top: 0; |
| + | border-right: solid 1px #1a1a1a; |
| + | left: 0; } |
| + | |
| + | .right-small { |
| + | width: 2.8125rem; |
| + | height: 2.8125rem; |
| + | position: absolute; |
| + | top: 0; |
| + | border-left: solid 1px #1a1a1a; |
| + | right: 0; } |
| + | |
| + | .tab-bar-section { |
| + | padding: 0 0.625rem; |
| + | position: absolute; |
| + | text-align: center; |
| + | height: 2.8125rem; |
| + | top: 0; } |
| + | @media only screen and (min-width: 40.063em) { |
| + | .tab-bar-section { |
| + | text-align: left; } } |
| + | .tab-bar-section.left { |
| + | left: 0; |
| + | right: 2.8125rem; } |
| + | .tab-bar-section.right { |
| + | left: 2.8125rem; |
| + | right: 0; } |
| + | .tab-bar-section.middle { |
| + | left: 2.8125rem; |
| + | right: 2.8125rem; } |
| + | |
| + | .tab-bar .menu-icon { |
| + | text-indent: 2.1875rem; |
| + | width: 2.8125rem; |
| + | height: 2.8125rem; |
| + | display: block; |
| + | line-height: 2.0625rem; |
| + | padding: 0; |
| + | color: white; |
| + | position: relative; |
| + | transform: translate3d(0, 0, 0); } |
| + | .tab-bar .menu-icon span:after { |
| + | content: ''; |
| + | position: absolute; |
| + | display: block; |
| + | height: 0; |
| + | top: 50%; |
| + | margin-top: -0.5rem; |
| + | left: 0.90625rem; |
| + | box-shadow: 0 0px 0 1px white, 0 7px 0 1px white, 0 14px 0 1px white; |
| + | width: 1rem; } |
| + | .tab-bar .menu-icon span:hover:after { |
| + | box-shadow: 0 0px 0 1px #b3b3b3, 0 7px 0 1px #b3b3b3, 0 14px 0 1px #b3b3b3; } |
| + | |
| + | .left-off-canvas-menu { |
| + | -webkit-backface-visibility: hidden; |
| + | width: 15.625rem; |
| + | top: 0; |
| + | bottom: 0; |
| + | position: absolute; |
| + | overflow-y: auto; |
| + | background: #333333; |
| + | z-index: 1001; |
| + | box-sizing: content-box; |
| + | transition: transform 500ms ease 0s; |
| + | -webkit-overflow-scrolling: touch; |
| + | -ms-transform: translate(-100%, 0); |
| + | -webkit-transform: translate3d(-100%, 0, 0); |
| + | -moz-transform: translate3d(-100%, 0, 0); |
| + | -ms-transform: translate3d(-100%, 0, 0); |
| + | -o-transform: translate3d(-100%, 0, 0); |
| + | transform: translate3d(-100%, 0, 0); |
| + | left: 0; } |
| + | .left-off-canvas-menu * { |
| + | -webkit-backface-visibility: hidden; } |
| + | |
| + | .right-off-canvas-menu { |
| + | -webkit-backface-visibility: hidden; |
| + | width: 15.625rem; |
| + | top: 0; |
| + | bottom: 0; |
| + | position: absolute; |
| + | overflow-y: auto; |
| + | background: #333333; |
| + | z-index: 1001; |
| + | box-sizing: content-box; |
| + | transition: transform 500ms ease 0s; |
| + | -webkit-overflow-scrolling: touch; |
| + | -ms-transform: translate(100%, 0); |
| + | -webkit-transform: translate3d(100%, 0, 0); |
| + | -moz-transform: translate3d(100%, 0, 0); |
| + | -ms-transform: translate3d(100%, 0, 0); |
| + | -o-transform: translate3d(100%, 0, 0); |
| + | transform: translate3d(100%, 0, 0); |
| + | right: 0; } |
| + | .right-off-canvas-menu * { |
| + | -webkit-backface-visibility: hidden; } |
| + | |
| + | ul.off-canvas-list { |
| + | list-style-type: none; |
| + | padding: 0; |
| + | margin: 0; } |
| + | ul.off-canvas-list li label { |
| + | padding: 0.3rem 0.9375rem; |
| + | color: #999999; |
| + | text-transform: uppercase; |
| + | font-weight: bold; |
| + | background: #444444; |
| + | border-top: 1px solid #5e5e5e; |
| + | border-bottom: none; |
| + | margin: 0; } |
| + | ul.off-canvas-list li a { |
| + | display: block; |
| + | padding: 0.66667rem; |
| + | color: rgba(255, 255, 255, 0.7); |
| + | border-bottom: 1px solid #262626; |
| + | transition: background 300ms ease; } |
| + | ul.off-canvas-list li a:hover { |
| + | background: #242424; } |
| + | |
| + | .move-right > .inner-wrap { |
| + | -ms-transform: translate(15.625rem, 0); |
| + | -webkit-transform: translate3d(15.625rem, 0, 0); |
| + | -moz-transform: translate3d(15.625rem, 0, 0); |
| + | -ms-transform: translate3d(15.625rem, 0, 0); |
| + | -o-transform: translate3d(15.625rem, 0, 0); |
| + | transform: translate3d(15.625rem, 0, 0); } |
| + | .move-right .exit-off-canvas { |
| + | -webkit-backface-visibility: hidden; |
| + | transition: background 300ms ease; |
| + | cursor: pointer; |
| + | box-shadow: -4px 0 4px rgba(0, 0, 0, 0.5), 4px 0 4px rgba(0, 0, 0, 0.5); |
| + | display: block; |
| + | position: absolute; |
| + | background: rgba(255, 255, 255, 0.2); |
| + | top: 0; |
| + | bottom: 0; |
| + | left: 0; |
| + | right: 0; |
| + | z-index: 1002; |
| + | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } |
| + | @media only screen and (min-width: 40.063em) { |
| + | .move-right .exit-off-canvas:hover { |
| + | background: rgba(255, 255, 255, 0.05); } } |
| + | |
| + | .move-left > .inner-wrap { |
| + | -ms-transform: translate(-15.625rem, 0); |
| + | -webkit-transform: translate3d(-15.625rem, 0, 0); |
| + | -moz-transform: translate3d(-15.625rem, 0, 0); |
| + | -ms-transform: translate3d(-15.625rem, 0, 0); |
| + | -o-transform: translate3d(-15.625rem, 0, 0); |
| + | transform: translate3d(-15.625rem, 0, 0); } |
| + | .move-left .exit-off-canvas { |
| + | -webkit-backface-visibility: hidden; |
| + | transition: background 300ms ease; |
| + | cursor: pointer; |
| + | box-shadow: -4px 0 4px rgba(0, 0, 0, 0.5), 4px 0 4px rgba(0, 0, 0, 0.5); |
| + | display: block; |
| + | position: absolute; |
| + | background: rgba(255, 255, 255, 0.2); |
| + | top: 0; |
| + | bottom: 0; |
| + | left: 0; |
| + | right: 0; |
| + | z-index: 1002; |
| + | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } |
| + | @media only screen and (min-width: 40.063em) { |
| + | .move-left .exit-off-canvas:hover { |
| + | background: rgba(255, 255, 255, 0.05); } } |
| + | |
| + | .offcanvas-overlap .left-off-canvas-menu, .offcanvas-overlap .right-off-canvas-menu { |
| + | -ms-transform: none; |
| + | -webkit-transform: none; |
| + | -moz-transform: none; |
| + | -o-transform: none; |
| + | transform: none; |
| + | z-index: 1003; } |
| + | .offcanvas-overlap .exit-offcanvas-menu { |
| + | -webkit-backface-visibility: hidden; |
| + | transition: background 300ms ease; |
| + | cursor: pointer; |
| + | box-shadow: -4px 0 4px rgba(0, 0, 0, 0.5), 4px 0 4px rgba(0, 0, 0, 0.5); |
| + | display: block; |
| + | position: absolute; |
| + | background: rgba(255, 255, 255, 0.2); |
| + | top: 0; |
| + | bottom: 0; |
| + | left: 0; |
| + | right: 0; |
| + | z-index: 1002; |
| + | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); |
| + | z-index: 1002; } |
| + | @media only screen and (min-width: 40.063em) { |
| + | .offcanvas-overlap .exit-offcanvas-menu:hover { |
| + | background: rgba(255, 255, 255, 0.05); } } |
| + | |
| + | .no-csstransforms .left-off-canvas-menu { |
| + | left: -15.625rem; } |
| + | .no-csstransforms .right-off-canvas-menu { |
| + | right: -15.625rem; } |
| + | .no-csstransforms .move-left > .inner-wrap { |
| + | right: 15.625rem; } |
| + | .no-csstransforms .move-right > .inner-wrap { |
| + | left: 15.625rem; } |
| + | |
| + | /* Foundation Dropdowns */ |
| + | .f-dropdown { |
| + | position: absolute; |
| + | left: -9999px; |
| + | list-style: none; |
| + | margin-left: 0; |
| + | width: 100%; |
| + | max-height: none; |
| + | height: auto; |
| + | background: white; |
| + | border: solid 1px #cccccc; |
| + | font-size: 0.875rem; |
| + | z-index: 99; |
| + | margin-top: 2px; |
| + | max-width: 200px; } |
| + | .f-dropdown > *:first-child { |
| + | margin-top: 0; } |
| + | .f-dropdown > *:last-child { |
| + | margin-bottom: 0; } |
| + | .f-dropdown:before { |
| + | content: ""; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset 6px; |
| + | border-color: transparent transparent white transparent; |
| + | border-bottom-style: solid; |
| + | position: absolute; |
| + | top: -12px; |
| + | left: 10px; |
| + | z-index: 99; } |
| + | .f-dropdown:after { |
| + | content: ""; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset 7px; |
| + | border-color: transparent transparent #cccccc transparent; |
| + | border-bottom-style: solid; |
| + | position: absolute; |
| + | top: -14px; |
| + | left: 9px; |
| + | z-index: 98; } |
| + | .f-dropdown.right:before { |
| + | left: auto; |
| + | right: 10px; } |
| + | .f-dropdown.right:after { |
| + | left: auto; |
| + | right: 9px; } |
| + | .f-dropdown.drop-right { |
| + | position: absolute; |
| + | left: -9999px; |
| + | list-style: none; |
| + | margin-left: 0; |
| + | width: 100%; |
| + | max-height: none; |
| + | height: auto; |
| + | background: white; |
| + | border: solid 1px #cccccc; |
| + | font-size: 0.875rem; |
| + | z-index: 99; |
| + | margin-top: 0; |
| + | margin-left: 2px; |
| + | max-width: 200px; } |
| + | .f-dropdown.drop-right > *:first-child { |
| + | margin-top: 0; } |
| + | .f-dropdown.drop-right > *:last-child { |
| + | margin-bottom: 0; } |
| + | .f-dropdown.drop-right:before { |
| + | content: ""; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset 6px; |
| + | border-color: transparent white transparent transparent; |
| + | border-right-style: solid; |
| + | position: absolute; |
| + | top: 10px; |
| + | left: -12px; |
| + | z-index: 99; } |
| + | .f-dropdown.drop-right:after { |
| + | content: ""; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset 7px; |
| + | border-color: transparent #cccccc transparent transparent; |
| + | border-right-style: solid; |
| + | position: absolute; |
| + | top: 9px; |
| + | left: -14px; |
| + | z-index: 98; } |
| + | .f-dropdown.drop-left { |
| + | position: absolute; |
| + | left: -9999px; |
| + | list-style: none; |
| + | margin-left: 0; |
| + | width: 100%; |
| + | max-height: none; |
| + | height: auto; |
| + | background: white; |
| + | border: solid 1px #cccccc; |
| + | font-size: 0.875rem; |
| + | z-index: 99; |
| + | margin-top: 0; |
| + | margin-left: -2px; |
| + | max-width: 200px; } |
| + | .f-dropdown.drop-left > *:first-child { |
| + | margin-top: 0; } |
| + | .f-dropdown.drop-left > *:last-child { |
| + | margin-bottom: 0; } |
| + | .f-dropdown.drop-left:before { |
| + | content: ""; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset 6px; |
| + | border-color: transparent transparent transparent white; |
| + | border-left-style: solid; |
| + | position: absolute; |
| + | top: 10px; |
| + | right: -12px; |
| + | left: auto; |
| + | z-index: 99; } |
| + | .f-dropdown.drop-left:after { |
| + | content: ""; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset 7px; |
| + | border-color: transparent transparent transparent #cccccc; |
| + | border-left-style: solid; |
| + | position: absolute; |
| + | top: 9px; |
| + | right: -14px; |
| + | left: auto; |
| + | z-index: 98; } |
| + | .f-dropdown.drop-top { |
| + | position: absolute; |
| + | left: -9999px; |
| + | list-style: none; |
| + | margin-left: 0; |
| + | width: 100%; |
| + | max-height: none; |
| + | height: auto; |
| + | background: white; |
| + | border: solid 1px #cccccc; |
| + | font-size: 0.875rem; |
| + | z-index: 99; |
| + | margin-top: -2px; |
| + | margin-left: 0; |
| + | max-width: 200px; } |
| + | .f-dropdown.drop-top > *:first-child { |
| + | margin-top: 0; } |
| + | .f-dropdown.drop-top > *:last-child { |
| + | margin-bottom: 0; } |
| + | .f-dropdown.drop-top:before { |
| + | content: ""; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset 6px; |
| + | border-color: white transparent transparent transparent; |
| + | border-top-style: solid; |
| + | position: absolute; |
| + | top: auto; |
| + | bottom: -12px; |
| + | left: 10px; |
| + | right: auto; |
| + | z-index: 99; } |
| + | .f-dropdown.drop-top:after { |
| + | content: ""; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset 7px; |
| + | border-color: #cccccc transparent transparent transparent; |
| + | border-top-style: solid; |
| + | position: absolute; |
| + | top: auto; |
| + | bottom: -14px; |
| + | left: 9px; |
| + | right: auto; |
| + | z-index: 98; } |
| + | .f-dropdown li { |
| + | font-size: 0.875rem; |
| + | cursor: pointer; |
| + | line-height: 1.125rem; |
| + | margin: 0; } |
| + | .f-dropdown li:hover, .f-dropdown li:focus { |
| + | background: #eeeeee; } |
| + | .f-dropdown li a { |
| + | display: block; |
| + | padding: 0.5rem; |
| + | color: #555555; } |
| + | .f-dropdown.content { |
| + | position: absolute; |
| + | left: -9999px; |
| + | list-style: none; |
| + | margin-left: 0; |
| + | padding: 1.25rem; |
| + | width: 100%; |
| + | height: auto; |
| + | max-height: none; |
| + | background: white; |
| + | border: solid 1px #cccccc; |
| + | font-size: 0.875rem; |
| + | z-index: 99; |
| + | max-width: 200px; } |
| + | .f-dropdown.content > *:first-child { |
| + | margin-top: 0; } |
| + | .f-dropdown.content > *:last-child { |
| + | margin-bottom: 0; } |
| + | .f-dropdown.tiny { |
| + | max-width: 200px; } |
| + | .f-dropdown.small { |
| + | max-width: 300px; } |
| + | .f-dropdown.medium { |
| + | max-width: 500px; } |
| + | .f-dropdown.large { |
| + | max-width: 800px; } |
| + | |
| + | table { |
| + | background: white; |
| + | margin-bottom: 1.25rem; |
| + | border: solid 1px #dddddd; } |
| + | table caption { |
| + | background: transparent; |
| + | color: #222222; |
| + | font-size: 1rem; |
| + | font-weight: bold; } |
| + | table thead { |
| + | background: whitesmoke; } |
| + | table thead tr th, |
| + | table thead tr td { |
| + | padding: 0.5rem 0.625rem 0.625rem; |
| + | font-size: 0.875rem; |
| + | font-weight: bold; |
| + | color: #222222; } |
| + | table tfoot { |
| + | background: whitesmoke; } |
| + | table tfoot tr th, |
| + | table tfoot tr td { |
| + | padding: 0.5rem 0.625rem 0.625rem; |
| + | font-size: 0.875rem; |
| + | font-weight: bold; |
| + | color: #222222; } |
| + | table tr th, |
| + | table tr td { |
| + | padding: 0.5625rem 0.625rem; |
| + | font-size: 0.875rem; |
| + | color: #222222; |
| + | text-align: left; } |
| + | table tr.even, table tr.alt, table tr:nth-of-type(even) { |
| + | background: #f9f9f9; } |
| + | table thead tr th, |
| + | table tfoot tr th, |
| + | table tfoot tr td, |
| + | table tbody tr th, |
| + | table tbody tr td, |
| + | table tr td { |
| + | display: table-cell; |
| + | line-height: 1.125rem; } |
| + | |
| + | /* Standard Forms */ |
| + | form { |
| + | margin: 0 0 1rem; } |
| + | |
| + | /* Using forms within rows, we need to set some defaults */ |
| + | form .row .row { |
| + | margin: 0 -0.5rem; } |
| + | form .row .row .column, |
| + | form .row .row .columns { |
| + | padding: 0 0.5rem; } |
| + | form .row .row.collapse { |
| + | margin: 0; } |
| + | form .row .row.collapse .column, |
| + | form .row .row.collapse .columns { |
| + | padding: 0; } |
| + | form .row .row.collapse input { |
| + | border-bottom-right-radius: 0; |
| + | border-top-right-radius: 0; } |
| + | form .row input.column, |
| + | form .row input.columns, |
| + | form .row textarea.column, |
| + | form .row textarea.columns { |
| + | padding-left: 0.5rem; } |
| + | |
| + | /* Label Styles */ |
| + | label { |
| + | font-size: 0.875rem; |
| + | color: #4d4d4d; |
| + | cursor: pointer; |
| + | display: block; |
| + | font-weight: normal; |
| + | line-height: 1.5; |
| + | margin-bottom: 0; |
| + | /* Styles for required inputs */ } |
| + | label.right { |
| + | float: none !important; |
| + | text-align: right; } |
| + | label.inline { |
| + | margin: 0 0 1rem 0; |
| + | padding: 0.5625rem 0; } |
| + | label small { |
| + | text-transform: capitalize; |
| + | color: #676767; } |
| + | |
| + | select::-ms-expand { |
| + | display: none; } |
| + | |
| + | @-moz-document url-prefix() { |
| + | select { |
| + | background: #fafafa; } |
| + | |
| + | select:hover { |
| + | background: #f3f3f3; } } |
| + | |
| + | /* Attach elements to the beginning or end of an input */ |
| + | .prefix, |
| + | .postfix { |
| + | display: block; |
| + | position: relative; |
| + | z-index: 2; |
| + | text-align: center; |
| + | width: 100%; |
| + | padding-top: 0; |
| + | padding-bottom: 0; |
| + | border-style: solid; |
| + | border-width: 1px; |
| + | overflow: hidden; |
| + | font-size: 0.875rem; |
| + | height: 2.3125rem; |
| + | line-height: 2.3125rem; } |
| + | |
| + | /* Adjust padding, alignment and radius if pre/post element is a button */ |
| + | .postfix.button { |
| + | padding-left: 0; |
| + | padding-right: 0; |
| + | padding-top: 0; |
| + | padding-bottom: 0; |
| + | text-align: center; |
| + | line-height: 2.125rem; |
| + | border: none; } |
| + | |
| + | .prefix.button { |
| + | padding-left: 0; |
| + | padding-right: 0; |
| + | padding-top: 0; |
| + | padding-bottom: 0; |
| + | text-align: center; |
| + | line-height: 2.125rem; |
| + | border: none; } |
| + | |
| + | .prefix.button.radius { |
| + | border-radius: 0; |
| + | border-bottom-left-radius: 3px; |
| + | border-top-left-radius: 3px; } |
| + | |
| + | .postfix.button.radius { |
| + | border-radius: 0; |
| + | border-bottom-right-radius: 3px; |
| + | border-top-right-radius: 3px; } |
| + | |
| + | .prefix.button.round { |
| + | border-radius: 0; |
| + | border-bottom-left-radius: 1000px; |
| + | border-top-left-radius: 1000px; } |
| + | |
| + | .postfix.button.round { |
| + | border-radius: 0; |
| + | border-bottom-right-radius: 1000px; |
| + | border-top-right-radius: 1000px; } |
| + | |
| + | /* Separate prefix and postfix styles when on span or label so buttons keep their own */ |
| + | span.prefix, label.prefix { |
| + | background: #f2f2f2; |
| + | border-right: none; |
| + | color: #333333; |
| + | border-color: #cccccc; } |
| + | span.prefix.radius, label.prefix.radius { |
| + | border-radius: 0; |
| + | border-bottom-left-radius: 3px; |
| + | border-top-left-radius: 3px; } |
| + | |
| + | span.postfix, label.postfix { |
| + | background: #f2f2f2; |
| + | border-left: none; |
| + | color: #333333; |
| + | border-color: #cccccc; } |
| + | span.postfix.radius, label.postfix.radius { |
| + | border-radius: 0; |
| + | border-bottom-right-radius: 3px; |
| + | border-top-right-radius: 3px; } |
| + | |
| + | /* We use this to get basic styling on all basic form elements */ |
| + | input[type="text"], |
| + | input[type="password"], |
| + | input[type="date"], |
| + | input[type="datetime"], |
| + | input[type="datetime-local"], |
| + | input[type="month"], |
| + | input[type="week"], |
| + | input[type="email"], |
| + | input[type="number"], |
| + | input[type="search"], |
| + | input[type="tel"], |
| + | input[type="time"], |
| + | input[type="url"], |
| + | textarea { |
| + | -webkit-appearance: none; |
| + | background-color: white; |
| + | font-family: inherit; |
| + | border: 1px solid #cccccc; |
| + | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); |
| + | color: rgba(0, 0, 0, 0.75); |
| + | display: block; |
| + | font-size: 0.875rem; |
| + | margin: 0 0 1rem 0; |
| + | padding: 0.5rem; |
| + | height: 2.3125rem; |
| + | width: 100%; |
| + | -webkit-box-sizing: border-box; |
| + | -moz-box-sizing: border-box; |
| + | box-sizing: border-box; |
| + | transition: box-shadow 0.45s, border-color 0.45s ease-in-out; } |
| + | input[type="text"]:focus, |
| + | input[type="password"]:focus, |
| + | input[type="date"]:focus, |
| + | input[type="datetime"]:focus, |
| + | input[type="datetime-local"]:focus, |
| + | input[type="month"]:focus, |
| + | input[type="week"]:focus, |
| + | input[type="email"]:focus, |
| + | input[type="number"]:focus, |
| + | input[type="search"]:focus, |
| + | input[type="tel"]:focus, |
| + | input[type="time"]:focus, |
| + | input[type="url"]:focus, |
| + | textarea:focus { |
| + | box-shadow: 0 0 5px #999999; |
| + | border-color: #999999; } |
| + | input[type="text"]:focus, |
| + | input[type="password"]:focus, |
| + | input[type="date"]:focus, |
| + | input[type="datetime"]:focus, |
| + | input[type="datetime-local"]:focus, |
| + | input[type="month"]:focus, |
| + | input[type="week"]:focus, |
| + | input[type="email"]:focus, |
| + | input[type="number"]:focus, |
| + | input[type="search"]:focus, |
| + | input[type="tel"]:focus, |
| + | input[type="time"]:focus, |
| + | input[type="url"]:focus, |
| + | textarea:focus { |
| + | background: #fafafa; |
| + | border-color: #999999; |
| + | outline: none; } |
| + | input[type="text"][disabled], fieldset[disabled] input[type="text"], |
| + | input[type="password"][disabled], fieldset[disabled] |
| + | input[type="password"], |
| + | input[type="date"][disabled], fieldset[disabled] |
| + | input[type="date"], |
| + | input[type="datetime"][disabled], fieldset[disabled] |
| + | input[type="datetime"], |
| + | input[type="datetime-local"][disabled], fieldset[disabled] |
| + | input[type="datetime-local"], |
| + | input[type="month"][disabled], fieldset[disabled] |
| + | input[type="month"], |
| + | input[type="week"][disabled], fieldset[disabled] |
| + | input[type="week"], |
| + | input[type="email"][disabled], fieldset[disabled] |
| + | input[type="email"], |
| + | input[type="number"][disabled], fieldset[disabled] |
| + | input[type="number"], |
| + | input[type="search"][disabled], fieldset[disabled] |
| + | input[type="search"], |
| + | input[type="tel"][disabled], fieldset[disabled] |
| + | input[type="tel"], |
| + | input[type="time"][disabled], fieldset[disabled] |
| + | input[type="time"], |
| + | input[type="url"][disabled], fieldset[disabled] |
| + | input[type="url"], |
| + | textarea[disabled], fieldset[disabled] |
| + | textarea { |
| + | background-color: #dddddd; } |
| + | input[type="text"].radius, |
| + | input[type="password"].radius, |
| + | input[type="date"].radius, |
| + | input[type="datetime"].radius, |
| + | input[type="datetime-local"].radius, |
| + | input[type="month"].radius, |
| + | input[type="week"].radius, |
| + | input[type="email"].radius, |
| + | input[type="number"].radius, |
| + | input[type="search"].radius, |
| + | input[type="tel"].radius, |
| + | input[type="time"].radius, |
| + | input[type="url"].radius, |
| + | textarea.radius { |
| + | border-radius: 3px; } |
| + | |
| + | input[type="submit"] { |
| + | -webkit-appearance: none; } |
| + | |
| + | /* Respect enforced amount of rows for textarea */ |
| + | textarea[rows] { |
| + | height: auto; } |
| + | |
| + | /* Add height value for select elements to match text input height */ |
| + | select { |
| + | -webkit-appearance: none !important; |
| + | background-color: #fafafa; |
| + | background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg=="); |
| + | background-repeat: no-repeat; |
| + | background-position: 97% center; |
| + | border: 1px solid #cccccc; |
| + | padding: 0.5rem; |
| + | font-size: 0.875rem; |
| + | color: rgba(0, 0, 0, 0.75); |
| + | line-height: normal; |
| + | border-radius: 0; |
| + | height: 2.3125rem; } |
| + | select.radius { |
| + | border-radius: 3px; } |
| + | select:hover { |
| + | background-color: #f3f3f3; |
| + | border-color: #999999; } |
| + | |
| + | /* Adjust margin for form elements below */ |
| + | input[type="file"], |
| + | input[type="checkbox"], |
| + | input[type="radio"], |
| + | select { |
| + | margin: 0 0 1rem 0; } |
| + | |
| + | input[type="checkbox"] + label, |
| + | input[type="radio"] + label { |
| + | display: inline-block; |
| + | margin-left: 0.5rem; |
| + | margin-right: 1rem; |
| + | margin-bottom: 0; |
| + | vertical-align: baseline; } |
| + | |
| + | /* Normalize file input width */ |
| + | input[type="file"] { |
| + | width: 100%; } |
| + | |
| + | /* We add basic fieldset styling */ |
| + | fieldset { |
| + | border: 1px solid #dddddd; |
| + | padding: 1.25rem; |
| + | margin: 1.125rem 0; } |
| + | fieldset legend { |
| + | font-weight: bold; |
| + | background: white; |
| + | padding: 0 0.1875rem; |
| + | margin: 0; |
| + | margin-left: -0.1875rem; } |
| + | |
| + | /* Error Handling */ |
| + | [data-abide] .error small.error, [data-abide] span.error, [data-abide] small.error { |
| + | display: block; |
| + | padding: 0.375rem 0.5625rem 0.5625rem; |
| + | margin-top: -1px; |
| + | margin-bottom: 1rem; |
| + | font-size: 0.75rem; |
| + | font-weight: normal; |
| + | font-style: italic; |
| + | background: #f04124; |
| + | color: white; } |
| + | [data-abide] span.error, [data-abide] small.error { |
| + | display: none; } |
| + | |
| + | span.error, small.error { |
| + | display: block; |
| + | padding: 0.375rem 0.5625rem 0.5625rem; |
| + | margin-top: -1px; |
| + | margin-bottom: 1rem; |
| + | font-size: 0.75rem; |
| + | font-weight: normal; |
| + | font-style: italic; |
| + | background: #f04124; |
| + | color: white; } |
| + | |
| + | .error input, |
| + | .error textarea, |
| + | .error select { |
| + | margin-bottom: 0; } |
| + | .error input[type="checkbox"], |
| + | .error input[type="radio"] { |
| + | margin-bottom: 1rem; } |
| + | .error label, |
| + | .error label.error { |
| + | color: #f04124; } |
| + | .error small.error { |
| + | display: block; |
| + | padding: 0.375rem 0.5625rem 0.5625rem; |
| + | margin-top: -1px; |
| + | margin-bottom: 1rem; |
| + | font-size: 0.75rem; |
| + | font-weight: normal; |
| + | font-style: italic; |
| + | background: #f04124; |
| + | color: white; } |
| + | .error > label > small { |
| + | color: #676767; |
| + | background: transparent; |
| + | padding: 0; |
| + | text-transform: capitalize; |
| + | font-style: normal; |
| + | font-size: 60%; |
| + | margin: 0; |
| + | display: inline; } |
| + | .error span.error-message { |
| + | display: block; } |
| + | |
| + | input.error, |
| + | textarea.error { |
| + | margin-bottom: 0; } |
| + | |
| + | label.error { |
| + | color: #f04124; } |
| + | |
| + | .range-slider { |
| + | display: block; |
| + | position: relative; |
| + | width: 100%; |
| + | height: 1rem; |
| + | border: 1px solid #dddddd; |
| + | margin: 1.25rem 0; |
| + | -ms-touch-action: none; |
| + | touch-action: none; |
| + | background: #fafafa; } |
| + | .range-slider.vertical-range { |
| + | display: block; |
| + | position: relative; |
| + | width: 100%; |
| + | height: 1rem; |
| + | border: 1px solid #dddddd; |
| + | margin: 1.25rem 0; |
| + | -ms-touch-action: none; |
| + | touch-action: none; |
| + | display: inline-block; |
| + | width: 1rem; |
| + | height: 12.5rem; } |
| + | .range-slider.vertical-range .range-slider-handle { |
| + | margin-top: 0; |
| + | margin-left: -0.5rem; |
| + | position: absolute; |
| + | bottom: -10.5rem; } |
| + | .range-slider.vertical-range .range-slider-active-segment { |
| + | width: 0.875rem; |
| + | height: auto; |
| + | bottom: 0; } |
| + | .range-slider.radius { |
| + | background: #fafafa; |
| + | border-radius: 3px; } |
| + | .range-slider.radius .range-slider-handle { |
| + | background: #008cba; |
| + | border-radius: 3px; } |
| + | .range-slider.radius .range-slider-handle:hover { |
| + | background: #007ba4; } |
| + | .range-slider.round { |
| + | background: #fafafa; |
| + | border-radius: 1000px; } |
| + | .range-slider.round .range-slider-handle { |
| + | background: #008cba; |
| + | border-radius: 1000px; } |
| + | .range-slider.round .range-slider-handle:hover { |
| + | background: #007ba4; } |
| + | |
| + | .range-slider-active-segment { |
| + | display: inline-block; |
| + | position: absolute; |
| + | height: 0.875rem; |
| + | background: #e5e5e5; } |
| + | |
| + | .range-slider-handle { |
| + | display: inline-block; |
| + | position: absolute; |
| + | z-index: 1; |
| + | top: -0.3125rem; |
| + | width: 2rem; |
| + | height: 1.375rem; |
| + | border: 1px solid none; |
| + | cursor: pointer; |
| + | background: #008cba; } |
| + | .range-slider-handle:hover { |
| + | background: #007ba4; } |
| + | |
| + | [class*="block-grid-"] { |
| + | display: block; |
| + | padding: 0; |
| + | margin: 0 -0.625rem; } |
| + | [class*="block-grid-"]:before, [class*="block-grid-"]:after { |
| + | content: " "; |
| + | display: table; } |
| + | [class*="block-grid-"]:after { |
| + | clear: both; } |
| + | [class*="block-grid-"] > li { |
| + | display: block; |
| + | height: auto; |
| + | float: left; |
| + | padding: 0 0.625rem 1.25rem; } |
| + | |
| + | @media only screen { |
| + | .small-block-grid-1 > li { |
| + | width: 100%; |
| + | list-style: none; } |
| + | .small-block-grid-1 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .small-block-grid-1 > li:nth-of-type(1n+1) { |
| + | clear: both; } |
| + | |
| + | .small-block-grid-2 > li { |
| + | width: 50%; |
| + | list-style: none; } |
| + | .small-block-grid-2 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .small-block-grid-2 > li:nth-of-type(2n+1) { |
| + | clear: both; } |
| + | |
| + | .small-block-grid-3 > li { |
| + | width: 33.33333%; |
| + | list-style: none; } |
| + | .small-block-grid-3 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .small-block-grid-3 > li:nth-of-type(3n+1) { |
| + | clear: both; } |
| + | |
| + | .small-block-grid-4 > li { |
| + | width: 25%; |
| + | list-style: none; } |
| + | .small-block-grid-4 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .small-block-grid-4 > li:nth-of-type(4n+1) { |
| + | clear: both; } |
| + | |
| + | .small-block-grid-5 > li { |
| + | width: 20%; |
| + | list-style: none; } |
| + | .small-block-grid-5 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .small-block-grid-5 > li:nth-of-type(5n+1) { |
| + | clear: both; } |
| + | |
| + | .small-block-grid-6 > li { |
| + | width: 16.66667%; |
| + | list-style: none; } |
| + | .small-block-grid-6 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .small-block-grid-6 > li:nth-of-type(6n+1) { |
| + | clear: both; } |
| + | |
| + | .small-block-grid-7 > li { |
| + | width: 14.28571%; |
| + | list-style: none; } |
| + | .small-block-grid-7 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .small-block-grid-7 > li:nth-of-type(7n+1) { |
| + | clear: both; } |
| + | |
| + | .small-block-grid-8 > li { |
| + | width: 12.5%; |
| + | list-style: none; } |
| + | .small-block-grid-8 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .small-block-grid-8 > li:nth-of-type(8n+1) { |
| + | clear: both; } |
| + | |
| + | .small-block-grid-9 > li { |
| + | width: 11.11111%; |
| + | list-style: none; } |
| + | .small-block-grid-9 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .small-block-grid-9 > li:nth-of-type(9n+1) { |
| + | clear: both; } |
| + | |
| + | .small-block-grid-10 > li { |
| + | width: 10%; |
| + | list-style: none; } |
| + | .small-block-grid-10 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .small-block-grid-10 > li:nth-of-type(10n+1) { |
| + | clear: both; } |
| + | |
| + | .small-block-grid-11 > li { |
| + | width: 9.09091%; |
| + | list-style: none; } |
| + | .small-block-grid-11 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .small-block-grid-11 > li:nth-of-type(11n+1) { |
| + | clear: both; } |
| + | |
| + | .small-block-grid-12 > li { |
| + | width: 8.33333%; |
| + | list-style: none; } |
| + | .small-block-grid-12 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .small-block-grid-12 > li:nth-of-type(12n+1) { |
| + | clear: both; } } |
| + | @media only screen and (min-width: 40.063em) { |
| + | .medium-block-grid-1 > li { |
| + | width: 100%; |
| + | list-style: none; } |
| + | .medium-block-grid-1 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .medium-block-grid-1 > li:nth-of-type(1n+1) { |
| + | clear: both; } |
| + | |
| + | .medium-block-grid-2 > li { |
| + | width: 50%; |
| + | list-style: none; } |
| + | .medium-block-grid-2 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .medium-block-grid-2 > li:nth-of-type(2n+1) { |
| + | clear: both; } |
| + | |
| + | .medium-block-grid-3 > li { |
| + | width: 33.33333%; |
| + | list-style: none; } |
| + | .medium-block-grid-3 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .medium-block-grid-3 > li:nth-of-type(3n+1) { |
| + | clear: both; } |
| + | |
| + | .medium-block-grid-4 > li { |
| + | width: 25%; |
| + | list-style: none; } |
| + | .medium-block-grid-4 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .medium-block-grid-4 > li:nth-of-type(4n+1) { |
| + | clear: both; } |
| + | |
| + | .medium-block-grid-5 > li { |
| + | width: 20%; |
| + | list-style: none; } |
| + | .medium-block-grid-5 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .medium-block-grid-5 > li:nth-of-type(5n+1) { |
| + | clear: both; } |
| + | |
| + | .medium-block-grid-6 > li { |
| + | width: 16.66667%; |
| + | list-style: none; } |
| + | .medium-block-grid-6 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .medium-block-grid-6 > li:nth-of-type(6n+1) { |
| + | clear: both; } |
| + | |
| + | .medium-block-grid-7 > li { |
| + | width: 14.28571%; |
| + | list-style: none; } |
| + | .medium-block-grid-7 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .medium-block-grid-7 > li:nth-of-type(7n+1) { |
| + | clear: both; } |
| + | |
| + | .medium-block-grid-8 > li { |
| + | width: 12.5%; |
| + | list-style: none; } |
| + | .medium-block-grid-8 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .medium-block-grid-8 > li:nth-of-type(8n+1) { |
| + | clear: both; } |
| + | |
| + | .medium-block-grid-9 > li { |
| + | width: 11.11111%; |
| + | list-style: none; } |
| + | .medium-block-grid-9 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .medium-block-grid-9 > li:nth-of-type(9n+1) { |
| + | clear: both; } |
| + | |
| + | .medium-block-grid-10 > li { |
| + | width: 10%; |
| + | list-style: none; } |
| + | .medium-block-grid-10 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .medium-block-grid-10 > li:nth-of-type(10n+1) { |
| + | clear: both; } |
| + | |
| + | .medium-block-grid-11 > li { |
| + | width: 9.09091%; |
| + | list-style: none; } |
| + | .medium-block-grid-11 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .medium-block-grid-11 > li:nth-of-type(11n+1) { |
| + | clear: both; } |
| + | |
| + | .medium-block-grid-12 > li { |
| + | width: 8.33333%; |
| + | list-style: none; } |
| + | .medium-block-grid-12 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .medium-block-grid-12 > li:nth-of-type(12n+1) { |
| + | clear: both; } } |
| + | @media only screen and (min-width: 64.063em) { |
| + | .large-block-grid-1 > li { |
| + | width: 100%; |
| + | list-style: none; } |
| + | .large-block-grid-1 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .large-block-grid-1 > li:nth-of-type(1n+1) { |
| + | clear: both; } |
| + | |
| + | .large-block-grid-2 > li { |
| + | width: 50%; |
| + | list-style: none; } |
| + | .large-block-grid-2 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .large-block-grid-2 > li:nth-of-type(2n+1) { |
| + | clear: both; } |
| + | |
| + | .large-block-grid-3 > li { |
| + | width: 33.33333%; |
| + | list-style: none; } |
| + | .large-block-grid-3 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .large-block-grid-3 > li:nth-of-type(3n+1) { |
| + | clear: both; } |
| + | |
| + | .large-block-grid-4 > li { |
| + | width: 25%; |
| + | list-style: none; } |
| + | .large-block-grid-4 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .large-block-grid-4 > li:nth-of-type(4n+1) { |
| + | clear: both; } |
| + | |
| + | .large-block-grid-5 > li { |
| + | width: 20%; |
| + | list-style: none; } |
| + | .large-block-grid-5 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .large-block-grid-5 > li:nth-of-type(5n+1) { |
| + | clear: both; } |
| + | |
| + | .large-block-grid-6 > li { |
| + | width: 16.66667%; |
| + | list-style: none; } |
| + | .large-block-grid-6 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .large-block-grid-6 > li:nth-of-type(6n+1) { |
| + | clear: both; } |
| + | |
| + | .large-block-grid-7 > li { |
| + | width: 14.28571%; |
| + | list-style: none; } |
| + | .large-block-grid-7 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .large-block-grid-7 > li:nth-of-type(7n+1) { |
| + | clear: both; } |
| + | |
| + | .large-block-grid-8 > li { |
| + | width: 12.5%; |
| + | list-style: none; } |
| + | .large-block-grid-8 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .large-block-grid-8 > li:nth-of-type(8n+1) { |
| + | clear: both; } |
| + | |
| + | .large-block-grid-9 > li { |
| + | width: 11.11111%; |
| + | list-style: none; } |
| + | .large-block-grid-9 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .large-block-grid-9 > li:nth-of-type(9n+1) { |
| + | clear: both; } |
| + | |
| + | .large-block-grid-10 > li { |
| + | width: 10%; |
| + | list-style: none; } |
| + | .large-block-grid-10 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .large-block-grid-10 > li:nth-of-type(10n+1) { |
| + | clear: both; } |
| + | |
| + | .large-block-grid-11 > li { |
| + | width: 9.09091%; |
| + | list-style: none; } |
| + | .large-block-grid-11 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .large-block-grid-11 > li:nth-of-type(11n+1) { |
| + | clear: both; } |
| + | |
| + | .large-block-grid-12 > li { |
| + | width: 8.33333%; |
| + | list-style: none; } |
| + | .large-block-grid-12 > li:nth-of-type(1n) { |
| + | clear: none; } |
| + | .large-block-grid-12 > li:nth-of-type(12n+1) { |
| + | clear: both; } } |
| + | .flex-video { |
| + | position: relative; |
| + | padding-top: 1.5625rem; |
| + | padding-bottom: 67.5%; |
| + | height: 0; |
| + | margin-bottom: 1rem; |
| + | overflow: hidden; } |
| + | .flex-video.widescreen { |
| + | padding-bottom: 56.34%; } |
| + | .flex-video.vimeo { |
| + | padding-top: 0; } |
| + | .flex-video iframe, |
| + | .flex-video object, |
| + | .flex-video embed, |
| + | .flex-video video { |
| + | position: absolute; |
| + | top: 0; |
| + | left: 0; |
| + | width: 100%; |
| + | height: 100%; } |
| + | |
| + | .keystroke, |
| + | kbd { |
| + | background-color: #ededed; |
| + | border-color: #dddddd; |
| + | color: #222222; |
| + | border-style: solid; |
| + | border-width: 1px; |
| + | margin: 0; |
| + | font-family: "Consolas", "Menlo", "Courier", monospace; |
| + | font-size: inherit; |
| + | padding: 0.125rem 0.25rem 0; |
| + | border-radius: 3px; } |
| + | |
| + | /* small displays */ |
| + | @media only screen { |
| + | .show-for-small-only, .show-for-small-up, .show-for-small, .show-for-small-down, .hide-for-medium-only, .hide-for-medium-up, .hide-for-medium, .show-for-medium-down, .hide-for-large-only, .hide-for-large-up, .hide-for-large, .show-for-large-down, .hide-for-xlarge-only, .hide-for-xlarge-up, .hide-for-xxlarge-only, .hide-for-xxlarge-up { |
| + | display: inherit !important; } |
| + | |
| + | .hide-for-small-only, .hide-for-small-up, .hide-for-small, .hide-for-small-down, .show-for-medium-only, .show-for-medium-up, .show-for-medium, .hide-for-medium-down, .show-for-large-only, .show-for-large-up, .show-for-large, .hide-for-large-down, .show-for-xlarge-only, .show-for-xlarge-up, .show-for-xxlarge-only, .show-for-xxlarge-up { |
| + | display: none !important; } |
| + | |
| + | .visible-for-small-only, .visible-for-small-up, .visible-for-small, .visible-for-small-down, .hidden-for-medium-only, .hidden-for-medium-up, .hidden-for-medium, .visible-for-medium-down, .hidden-for-large-only, .hidden-for-large-up, .hidden-for-large, .visible-for-large-down, .hidden-for-xlarge-only, .hidden-for-xlarge-up, .hidden-for-xxlarge-only, .hidden-for-xxlarge-up { |
| + | position: static !important; |
| + | height: auto; |
| + | width: auto; |
| + | overflow: visible; |
| + | clip: auto; } |
| + | |
| + | .hidden-for-small-only, .hidden-for-small-up, .hidden-for-small, .hidden-for-small-down, .visible-for-medium-only, .visible-for-medium-up, .visible-for-medium, .hidden-for-medium-down, .visible-for-large-only, .visible-for-large-up, .visible-for-large, .hidden-for-large-down, .visible-for-xlarge-only, .visible-for-xlarge-up, .visible-for-xxlarge-only, .visible-for-xxlarge-up { |
| + | position: absolute !important; |
| + | height: 1px; |
| + | width: 1px; |
| + | overflow: hidden; |
| + | clip: rect(1px, 1px, 1px, 1px); } |
| + | |
| + | table.show-for-small-only, table.show-for-small-up, table.show-for-small, table.show-for-small-down, table.hide-for-medium-only, table.hide-for-medium-up, table.hide-for-medium, table.show-for-medium-down, table.hide-for-large-only, table.hide-for-large-up, table.hide-for-large, table.show-for-large-down, table.hide-for-xlarge-only, table.hide-for-xlarge-up, table.hide-for-xxlarge-only, table.hide-for-xxlarge-up { |
| + | display: table; } |
| + | |
| + | thead.show-for-small-only, thead.show-for-small-up, thead.show-for-small, thead.show-for-small-down, thead.hide-for-medium-only, thead.hide-for-medium-up, thead.hide-for-medium, thead.show-for-medium-down, thead.hide-for-large-only, thead.hide-for-large-up, thead.hide-for-large, thead.show-for-large-down, thead.hide-for-xlarge-only, thead.hide-for-xlarge-up, thead.hide-for-xxlarge-only, thead.hide-for-xxlarge-up { |
| + | display: table-header-group !important; } |
| + | |
| + | tbody.show-for-small-only, tbody.show-for-small-up, tbody.show-for-small, tbody.show-for-small-down, tbody.hide-for-medium-only, tbody.hide-for-medium-up, tbody.hide-for-medium, tbody.show-for-medium-down, tbody.hide-for-large-only, tbody.hide-for-large-up, tbody.hide-for-large, tbody.show-for-large-down, tbody.hide-for-xlarge-only, tbody.hide-for-xlarge-up, tbody.hide-for-xxlarge-only, tbody.hide-for-xxlarge-up { |
| + | display: table-row-group !important; } |
| + | |
| + | tr.show-for-small-only, tr.show-for-small-up, tr.show-for-small, tr.show-for-small-down, tr.hide-for-medium-only, tr.hide-for-medium-up, tr.hide-for-medium, tr.show-for-medium-down, tr.hide-for-large-only, tr.hide-for-large-up, tr.hide-for-large, tr.show-for-large-down, tr.hide-for-xlarge-only, tr.hide-for-xlarge-up, tr.hide-for-xxlarge-only, tr.hide-for-xxlarge-up { |
| + | display: table-row !important; } |
| + | |
| + | th.show-for-small-only, td.show-for-small-only, th.show-for-small-up, td.show-for-small-up, th.show-for-small, td.show-for-small, th.show-for-small-down, td.show-for-small-down, th.hide-for-medium-only, td.hide-for-medium-only, th.hide-for-medium-up, td.hide-for-medium-up, th.hide-for-medium, td.hide-for-medium, th.show-for-medium-down, td.show-for-medium-down, th.hide-for-large-only, td.hide-for-large-only, th.hide-for-large-up, td.hide-for-large-up, th.hide-for-large, td.hide-for-large, th.show-for-large-down, td.show-for-large-down, th.hide-for-xlarge-only, td.hide-for-xlarge-only, th.hide-for-xlarge-up, td.hide-for-xlarge-up, th.hide-for-xxlarge-only, td.hide-for-xxlarge-only, th.hide-for-xxlarge-up, td.hide-for-xxlarge-up { |
| + | display: table-cell !important; } } |
| + | /* medium displays */ |
| + | @media only screen and (min-width: 40.063em) { |
| + | .hide-for-small-only, .show-for-small-up, .hide-for-small, .hide-for-small-down, .show-for-medium-only, .show-for-medium-up, .show-for-medium, .show-for-medium-down, .hide-for-large-only, .hide-for-large-up, .hide-for-large, .show-for-large-down, .hide-for-xlarge-only, .hide-for-xlarge-up, .hide-for-xxlarge-only, .hide-for-xxlarge-up { |
| + | display: inherit !important; } |
| + | |
| + | .show-for-small-only, .hide-for-small-up, .show-for-small, .show-for-small-down, .hide-for-medium-only, .hide-for-medium-up, .hide-for-medium, .hide-for-medium-down, .show-for-large-only, .show-for-large-up, .show-for-large, .hide-for-large-down, .show-for-xlarge-only, .show-for-xlarge-up, .show-for-xxlarge-only, .show-for-xxlarge-up { |
| + | display: none !important; } |
| + | |
| + | .hidden-for-small-only, .visible-for-small-up, .hidden-for-small, .hidden-for-small-down, .visible-for-medium-only, .visible-for-medium-up, .visible-for-medium, .visible-for-medium-down, .hidden-for-large-only, .hidden-for-large-up, .hidden-for-large, .visible-for-large-down, .hidden-for-xlarge-only, .hidden-for-xlarge-up, .hidden-for-xxlarge-only, .hidden-for-xxlarge-up { |
| + | position: static !important; |
| + | height: auto; |
| + | width: auto; |
| + | overflow: visible; |
| + | clip: auto; } |
| + | |
| + | .visible-for-small-only, .hidden-for-small-up, .visible-for-small, .visible-for-small-down, .hidden-for-medium-only, .hidden-for-medium-up, .hidden-for-medium, .hidden-for-medium-down, .visible-for-large-only, .visible-for-large-up, .visible-for-large, .hidden-for-large-down, .visible-for-xlarge-only, .visible-for-xlarge-up, .visible-for-xxlarge-only, .visible-for-xxlarge-up { |
| + | position: absolute !important; |
| + | height: 1px; |
| + | width: 1px; |
| + | overflow: hidden; |
| + | clip: rect(1px, 1px, 1px, 1px); } |
| + | |
| + | table.hide-for-small-only, table.show-for-small-up, table.hide-for-small, table.hide-for-small-down, table.show-for-medium-only, table.show-for-medium-up, table.show-for-medium, table.show-for-medium-down, table.hide-for-large-only, table.hide-for-large-up, table.hide-for-large, table.show-for-large-down, table.hide-for-xlarge-only, table.hide-for-xlarge-up, table.hide-for-xxlarge-only, table.hide-for-xxlarge-up { |
| + | display: table; } |
| + | |
| + | thead.hide-for-small-only, thead.show-for-small-up, thead.hide-for-small, thead.hide-for-small-down, thead.show-for-medium-only, thead.show-for-medium-up, thead.show-for-medium, thead.show-for-medium-down, thead.hide-for-large-only, thead.hide-for-large-up, thead.hide-for-large, thead.show-for-large-down, thead.hide-for-xlarge-only, thead.hide-for-xlarge-up, thead.hide-for-xxlarge-only, thead.hide-for-xxlarge-up { |
| + | display: table-header-group !important; } |
| + | |
| + | tbody.hide-for-small-only, tbody.show-for-small-up, tbody.hide-for-small, tbody.hide-for-small-down, tbody.show-for-medium-only, tbody.show-for-medium-up, tbody.show-for-medium, tbody.show-for-medium-down, tbody.hide-for-large-only, tbody.hide-for-large-up, tbody.hide-for-large, tbody.show-for-large-down, tbody.hide-for-xlarge-only, tbody.hide-for-xlarge-up, tbody.hide-for-xxlarge-only, tbody.hide-for-xxlarge-up { |
| + | display: table-row-group !important; } |
| + | |
| + | tr.hide-for-small-only, tr.show-for-small-up, tr.hide-for-small, tr.hide-for-small-down, tr.show-for-medium-only, tr.show-for-medium-up, tr.show-for-medium, tr.show-for-medium-down, tr.hide-for-large-only, tr.hide-for-large-up, tr.hide-for-large, tr.show-for-large-down, tr.hide-for-xlarge-only, tr.hide-for-xlarge-up, tr.hide-for-xxlarge-only, tr.hide-for-xxlarge-up { |
| + | display: table-row !important; } |
| + | |
| + | th.hide-for-small-only, td.hide-for-small-only, th.show-for-small-up, td.show-for-small-up, th.hide-for-small, td.hide-for-small, th.hide-for-small-down, td.hide-for-small-down, th.show-for-medium-only, td.show-for-medium-only, th.show-for-medium-up, td.show-for-medium-up, th.show-for-medium, td.show-for-medium, th.show-for-medium-down, td.show-for-medium-down, th.hide-for-large-only, td.hide-for-large-only, th.hide-for-large-up, td.hide-for-large-up, th.hide-for-large, td.hide-for-large, th.show-for-large-down, td.show-for-large-down, th.hide-for-xlarge-only, td.hide-for-xlarge-only, th.hide-for-xlarge-up, td.hide-for-xlarge-up, th.hide-for-xxlarge-only, td.hide-for-xxlarge-only, th.hide-for-xxlarge-up, td.hide-for-xxlarge-up { |
| + | display: table-cell !important; } } |
| + | /* large displays */ |
| + | @media only screen and (min-width: 64.063em) { |
| + | .hide-for-small-only, .show-for-small-up, .hide-for-small, .hide-for-small-down, .hide-for-medium-only, .show-for-medium-up, .hide-for-medium, .hide-for-medium-down, .show-for-large-only, .show-for-large-up, .show-for-large, .show-for-large-down, .hide-for-xlarge-only, .hide-for-xlarge-up, .hide-for-xxlarge-only, .hide-for-xxlarge-up { |
| + | display: inherit !important; } |
| + | |
| + | .show-for-small-only, .hide-for-small-up, .show-for-small, .show-for-small-down, .show-for-medium-only, .hide-for-medium-up, .show-for-medium, .show-for-medium-down, .hide-for-large-only, .hide-for-large-up, .hide-for-large, .hide-for-large-down, .show-for-xlarge-only, .show-for-xlarge-up, .show-for-xxlarge-only, .show-for-xxlarge-up { |
| + | display: none !important; } |
| + | |
| + | .hidden-for-small-only, .visible-for-small-up, .hidden-for-small, .hidden-for-small-down, .hidden-for-medium-only, .visible-for-medium-up, .hidden-for-medium, .hidden-for-medium-down, .visible-for-large-only, .visible-for-large-up, .visible-for-large, .visible-for-large-down, .hidden-for-xlarge-only, .hidden-for-xlarge-up, .hidden-for-xxlarge-only, .hidden-for-xxlarge-up { |
| + | position: static !important; |
| + | height: auto; |
| + | width: auto; |
| + | overflow: visible; |
| + | clip: auto; } |
| + | |
| + | .visible-for-small-only, .hidden-for-small-up, .visible-for-small, .visible-for-small-down, .visible-for-medium-only, .hidden-for-medium-up, .visible-for-medium, .visible-for-medium-down, .hidden-for-large-only, .hidden-for-large-up, .hidden-for-large, .hidden-for-large-down, .visible-for-xlarge-only, .visible-for-xlarge-up, .visible-for-xxlarge-only, .visible-for-xxlarge-up { |
| + | position: absolute !important; |
| + | height: 1px; |
| + | width: 1px; |
| + | overflow: hidden; |
| + | clip: rect(1px, 1px, 1px, 1px); } |
| + | |
| + | table.hide-for-small-only, table.show-for-small-up, table.hide-for-small, table.hide-for-small-down, table.hide-for-medium-only, table.show-for-medium-up, table.hide-for-medium, table.hide-for-medium-down, table.show-for-large-only, table.show-for-large-up, table.show-for-large, table.show-for-large-down, table.hide-for-xlarge-only, table.hide-for-xlarge-up, table.hide-for-xxlarge-only, table.hide-for-xxlarge-up { |
| + | display: table; } |
| + | |
| + | thead.hide-for-small-only, thead.show-for-small-up, thead.hide-for-small, thead.hide-for-small-down, thead.hide-for-medium-only, thead.show-for-medium-up, thead.hide-for-medium, thead.hide-for-medium-down, thead.show-for-large-only, thead.show-for-large-up, thead.show-for-large, thead.show-for-large-down, thead.hide-for-xlarge-only, thead.hide-for-xlarge-up, thead.hide-for-xxlarge-only, thead.hide-for-xxlarge-up { |
| + | display: table-header-group !important; } |
| + | |
| + | tbody.hide-for-small-only, tbody.show-for-small-up, tbody.hide-for-small, tbody.hide-for-small-down, tbody.hide-for-medium-only, tbody.show-for-medium-up, tbody.hide-for-medium, tbody.hide-for-medium-down, tbody.show-for-large-only, tbody.show-for-large-up, tbody.show-for-large, tbody.show-for-large-down, tbody.hide-for-xlarge-only, tbody.hide-for-xlarge-up, tbody.hide-for-xxlarge-only, tbody.hide-for-xxlarge-up { |
| + | display: table-row-group !important; } |
| + | |
| + | tr.hide-for-small-only, tr.show-for-small-up, tr.hide-for-small, tr.hide-for-small-down, tr.hide-for-medium-only, tr.show-for-medium-up, tr.hide-for-medium, tr.hide-for-medium-down, tr.show-for-large-only, tr.show-for-large-up, tr.show-for-large, tr.show-for-large-down, tr.hide-for-xlarge-only, tr.hide-for-xlarge-up, tr.hide-for-xxlarge-only, tr.hide-for-xxlarge-up { |
| + | display: table-row !important; } |
| + | |
| + | th.hide-for-small-only, td.hide-for-small-only, th.show-for-small-up, td.show-for-small-up, th.hide-for-small, td.hide-for-small, th.hide-for-small-down, td.hide-for-small-down, th.hide-for-medium-only, td.hide-for-medium-only, th.show-for-medium-up, td.show-for-medium-up, th.hide-for-medium, td.hide-for-medium, th.hide-for-medium-down, td.hide-for-medium-down, th.show-for-large-only, td.show-for-large-only, th.show-for-large-up, td.show-for-large-up, th.show-for-large, td.show-for-large, th.show-for-large-down, td.show-for-large-down, th.hide-for-xlarge-only, td.hide-for-xlarge-only, th.hide-for-xlarge-up, td.hide-for-xlarge-up, th.hide-for-xxlarge-only, td.hide-for-xxlarge-only, th.hide-for-xxlarge-up, td.hide-for-xxlarge-up { |
| + | display: table-cell !important; } } |
| + | /* xlarge displays */ |
| + | @media only screen and (min-width: 90.063em) { |
| + | .hide-for-small-only, .show-for-small-up, .hide-for-small, .hide-for-small-down, .hide-for-medium-only, .show-for-medium-up, .hide-for-medium, .hide-for-medium-down, .hide-for-large-only, .show-for-large-up, .hide-for-large, .hide-for-large-down, .show-for-xlarge-only, .show-for-xlarge-up, .hide-for-xxlarge-only, .hide-for-xxlarge-up { |
| + | display: inherit !important; } |
| + | |
| + | .show-for-small-only, .hide-for-small-up, .show-for-small, .show-for-small-down, .show-for-medium-only, .hide-for-medium-up, .show-for-medium, .show-for-medium-down, .show-for-large-only, .hide-for-large-up, .show-for-large, .show-for-large-down, .hide-for-xlarge-only, .hide-for-xlarge-up, .show-for-xxlarge-only, .show-for-xxlarge-up { |
| + | display: none !important; } |
| + | |
| + | .hidden-for-small-only, .visible-for-small-up, .hidden-for-small, .hidden-for-small-down, .hidden-for-medium-only, .visible-for-medium-up, .hidden-for-medium, .hidden-for-medium-down, .hidden-for-large-only, .visible-for-large-up, .hidden-for-large, .hidden-for-large-down, .visible-for-xlarge-only, .visible-for-xlarge-up, .hidden-for-xxlarge-only, .hidden-for-xxlarge-up { |
| + | position: static !important; |
| + | height: auto; |
| + | width: auto; |
| + | overflow: visible; |
| + | clip: auto; } |
| + | |
| + | .visible-for-small-only, .hidden-for-small-up, .visible-for-small, .visible-for-small-down, .visible-for-medium-only, .hidden-for-medium-up, .visible-for-medium, .visible-for-medium-down, .visible-for-large-only, .hidden-for-large-up, .visible-for-large, .visible-for-large-down, .hidden-for-xlarge-only, .hidden-for-xlarge-up, .visible-for-xxlarge-only, .visible-for-xxlarge-up { |
| + | position: absolute !important; |
| + | height: 1px; |
| + | width: 1px; |
| + | overflow: hidden; |
| + | clip: rect(1px, 1px, 1px, 1px); } |
| + | |
| + | table.hide-for-small-only, table.show-for-small-up, table.hide-for-small, table.hide-for-small-down, table.hide-for-medium-only, table.show-for-medium-up, table.hide-for-medium, table.hide-for-medium-down, table.hide-for-large-only, table.show-for-large-up, table.hide-for-large, table.hide-for-large-down, table.show-for-xlarge-only, table.show-for-xlarge-up, table.hide-for-xxlarge-only, table.hide-for-xxlarge-up { |
| + | display: table; } |
| + | |
| + | thead.hide-for-small-only, thead.show-for-small-up, thead.hide-for-small, thead.hide-for-small-down, thead.hide-for-medium-only, thead.show-for-medium-up, thead.hide-for-medium, thead.hide-for-medium-down, thead.hide-for-large-only, thead.show-for-large-up, thead.hide-for-large, thead.hide-for-large-down, thead.show-for-xlarge-only, thead.show-for-xlarge-up, thead.hide-for-xxlarge-only, thead.hide-for-xxlarge-up { |
| + | display: table-header-group !important; } |
| + | |
| + | tbody.hide-for-small-only, tbody.show-for-small-up, tbody.hide-for-small, tbody.hide-for-small-down, tbody.hide-for-medium-only, tbody.show-for-medium-up, tbody.hide-for-medium, tbody.hide-for-medium-down, tbody.hide-for-large-only, tbody.show-for-large-up, tbody.hide-for-large, tbody.hide-for-large-down, tbody.show-for-xlarge-only, tbody.show-for-xlarge-up, tbody.hide-for-xxlarge-only, tbody.hide-for-xxlarge-up { |
| + | display: table-row-group !important; } |
| + | |
| + | tr.hide-for-small-only, tr.show-for-small-up, tr.hide-for-small, tr.hide-for-small-down, tr.hide-for-medium-only, tr.show-for-medium-up, tr.hide-for-medium, tr.hide-for-medium-down, tr.hide-for-large-only, tr.show-for-large-up, tr.hide-for-large, tr.hide-for-large-down, tr.show-for-xlarge-only, tr.show-for-xlarge-up, tr.hide-for-xxlarge-only, tr.hide-for-xxlarge-up { |
| + | display: table-row !important; } |
| + | |
| + | th.hide-for-small-only, td.hide-for-small-only, th.show-for-small-up, td.show-for-small-up, th.hide-for-small, td.hide-for-small, th.hide-for-small-down, td.hide-for-small-down, th.hide-for-medium-only, td.hide-for-medium-only, th.show-for-medium-up, td.show-for-medium-up, th.hide-for-medium, td.hide-for-medium, th.hide-for-medium-down, td.hide-for-medium-down, th.hide-for-large-only, td.hide-for-large-only, th.show-for-large-up, td.show-for-large-up, th.hide-for-large, td.hide-for-large, th.hide-for-large-down, td.hide-for-large-down, th.show-for-xlarge-only, td.show-for-xlarge-only, th.show-for-xlarge-up, td.show-for-xlarge-up, th.hide-for-xxlarge-only, td.hide-for-xxlarge-only, th.hide-for-xxlarge-up, td.hide-for-xxlarge-up { |
| + | display: table-cell !important; } } |
| + | /* xxlarge displays */ |
| + | @media only screen and (min-width: 120.063em) { |
| + | .hide-for-small-only, .show-for-small-up, .hide-for-small, .hide-for-small-down, .hide-for-medium-only, .show-for-medium-up, .hide-for-medium, .hide-for-medium-down, .hide-for-large-only, .show-for-large-up, .hide-for-large, .hide-for-large-down, .hide-for-xlarge-only, .show-for-xlarge-up, .show-for-xxlarge-only, .show-for-xxlarge-up { |
| + | display: inherit !important; } |
| + | |
| + | .show-for-small-only, .hide-for-small-up, .show-for-small, .show-for-small-down, .show-for-medium-only, .hide-for-medium-up, .show-for-medium, .show-for-medium-down, .show-for-large-only, .hide-for-large-up, .show-for-large, .show-for-large-down, .show-for-xlarge-only, .hide-for-xlarge-up, .hide-for-xxlarge-only, .hide-for-xxlarge-up { |
| + | display: none !important; } |
| + | |
| + | .hidden-for-small-only, .visible-for-small-up, .hidden-for-small, .hidden-for-small-down, .hidden-for-medium-only, .visible-for-medium-up, .hidden-for-medium, .hidden-for-medium-down, .hidden-for-large-only, .visible-for-large-up, .hidden-for-large, .hidden-for-large-down, .hidden-for-xlarge-only, .visible-for-xlarge-up, .visible-for-xxlarge-only, .visible-for-xxlarge-up { |
| + | position: static !important; |
| + | height: auto; |
| + | width: auto; |
| + | overflow: visible; |
| + | clip: auto; } |
| + | |
| + | .visible-for-small-only, .hidden-for-small-up, .visible-for-small, .visible-for-small-down, .visible-for-medium-only, .hidden-for-medium-up, .visible-for-medium, .visible-for-medium-down, .visible-for-large-only, .hidden-for-large-up, .visible-for-large, .visible-for-large-down, .visible-for-xlarge-only, .hidden-for-xlarge-up, .hidden-for-xxlarge-only, .hidden-for-xxlarge-up { |
| + | position: absolute !important; |
| + | height: 1px; |
| + | width: 1px; |
| + | overflow: hidden; |
| + | clip: rect(1px, 1px, 1px, 1px); } |
| + | |
| + | table.hide-for-small-only, table.show-for-small-up, table.hide-for-small, table.hide-for-small-down, table.hide-for-medium-only, table.show-for-medium-up, table.hide-for-medium, table.hide-for-medium-down, table.hide-for-large-only, table.show-for-large-up, table.hide-for-large, table.hide-for-large-down, table.hide-for-xlarge-only, table.show-for-xlarge-up, table.show-for-xxlarge-only, table.show-for-xxlarge-up { |
| + | display: table; } |
| + | |
| + | thead.hide-for-small-only, thead.show-for-small-up, thead.hide-for-small, thead.hide-for-small-down, thead.hide-for-medium-only, thead.show-for-medium-up, thead.hide-for-medium, thead.hide-for-medium-down, thead.hide-for-large-only, thead.show-for-large-up, thead.hide-for-large, thead.hide-for-large-down, thead.hide-for-xlarge-only, thead.show-for-xlarge-up, thead.show-for-xxlarge-only, thead.show-for-xxlarge-up { |
| + | display: table-header-group !important; } |
| + | |
| + | tbody.hide-for-small-only, tbody.show-for-small-up, tbody.hide-for-small, tbody.hide-for-small-down, tbody.hide-for-medium-only, tbody.show-for-medium-up, tbody.hide-for-medium, tbody.hide-for-medium-down, tbody.hide-for-large-only, tbody.show-for-large-up, tbody.hide-for-large, tbody.hide-for-large-down, tbody.hide-for-xlarge-only, tbody.show-for-xlarge-up, tbody.show-for-xxlarge-only, tbody.show-for-xxlarge-up { |
| + | display: table-row-group !important; } |
| + | |
| + | tr.hide-for-small-only, tr.show-for-small-up, tr.hide-for-small, tr.hide-for-small-down, tr.hide-for-medium-only, tr.show-for-medium-up, tr.hide-for-medium, tr.hide-for-medium-down, tr.hide-for-large-only, tr.show-for-large-up, tr.hide-for-large, tr.hide-for-large-down, tr.hide-for-xlarge-only, tr.show-for-xlarge-up, tr.show-for-xxlarge-only, tr.show-for-xxlarge-up { |
| + | display: table-row !important; } |
| + | |
| + | th.hide-for-small-only, td.hide-for-small-only, th.show-for-small-up, td.show-for-small-up, th.hide-for-small, td.hide-for-small, th.hide-for-small-down, td.hide-for-small-down, th.hide-for-medium-only, td.hide-for-medium-only, th.show-for-medium-up, td.show-for-medium-up, th.hide-for-medium, td.hide-for-medium, th.hide-for-medium-down, td.hide-for-medium-down, th.hide-for-large-only, td.hide-for-large-only, th.show-for-large-up, td.show-for-large-up, th.hide-for-large, td.hide-for-large, th.hide-for-large-down, td.hide-for-large-down, th.hide-for-xlarge-only, td.hide-for-xlarge-only, th.show-for-xlarge-up, td.show-for-xlarge-up, th.show-for-xxlarge-only, td.show-for-xxlarge-only, th.show-for-xxlarge-up, td.show-for-xxlarge-up { |
| + | display: table-cell !important; } } |
| + | /* Orientation targeting */ |
| + | .show-for-landscape, |
| + | .hide-for-portrait { |
| + | display: inherit !important; } |
| + | |
| + | .hide-for-landscape, |
| + | .show-for-portrait { |
| + | display: none !important; } |
| + | |
| + | /* Specific visibility for tables */ |
| + | table.hide-for-landscape, table.show-for-portrait { |
| + | display: table; } |
| + | |
| + | thead.hide-for-landscape, thead.show-for-portrait { |
| + | display: table-header-group !important; } |
| + | |
| + | tbody.hide-for-landscape, tbody.show-for-portrait { |
| + | display: table-row-group !important; } |
| + | |
| + | tr.hide-for-landscape, tr.show-for-portrait { |
| + | display: table-row !important; } |
| + | |
| + | td.hide-for-landscape, td.show-for-portrait, |
| + | th.hide-for-landscape, |
| + | th.show-for-portrait { |
| + | display: table-cell !important; } |
| + | |
| + | @media only screen and (orientation: landscape) { |
| + | .show-for-landscape, |
| + | .hide-for-portrait { |
| + | display: inherit !important; } |
| + | |
| + | .hide-for-landscape, |
| + | .show-for-portrait { |
| + | display: none !important; } |
| + | |
| + | /* Specific visibility for tables */ |
| + | table.show-for-landscape, table.hide-for-portrait { |
| + | display: table; } |
| + | |
| + | thead.show-for-landscape, thead.hide-for-portrait { |
| + | display: table-header-group !important; } |
| + | |
| + | tbody.show-for-landscape, tbody.hide-for-portrait { |
| + | display: table-row-group !important; } |
| + | |
| + | tr.show-for-landscape, tr.hide-for-portrait { |
| + | display: table-row !important; } |
| + | |
| + | td.show-for-landscape, td.hide-for-portrait, |
| + | th.show-for-landscape, |
| + | th.hide-for-portrait { |
| + | display: table-cell !important; } } |
| + | @media only screen and (orientation: portrait) { |
| + | .show-for-portrait, |
| + | .hide-for-landscape { |
| + | display: inherit !important; } |
| + | |
| + | .hide-for-portrait, |
| + | .show-for-landscape { |
| + | display: none !important; } |
| + | |
| + | /* Specific visibility for tables */ |
| + | table.show-for-portrait, table.hide-for-landscape { |
| + | display: table; } |
| + | |
| + | thead.show-for-portrait, thead.hide-for-landscape { |
| + | display: table-header-group !important; } |
| + | |
| + | tbody.show-for-portrait, tbody.hide-for-landscape { |
| + | display: table-row-group !important; } |
| + | |
| + | tr.show-for-portrait, tr.hide-for-landscape { |
| + | display: table-row !important; } |
| + | |
| + | td.show-for-portrait, td.hide-for-landscape, |
| + | th.show-for-portrait, |
| + | th.hide-for-landscape { |
| + | display: table-cell !important; } } |
| + | /* Touch-enabled device targeting */ |
| + | .show-for-touch { |
| + | display: none !important; } |
| + | |
| + | .hide-for-touch { |
| + | display: inherit !important; } |
| + | |
| + | .touch .show-for-touch { |
| + | display: inherit !important; } |
| + | |
| + | .touch .hide-for-touch { |
| + | display: none !important; } |
| + | |
| + | /* Specific visibility for tables */ |
| + | table.hide-for-touch { |
| + | display: table; } |
| + | |
| + | .touch table.show-for-touch { |
| + | display: table; } |
| + | |
| + | thead.hide-for-touch { |
| + | display: table-header-group !important; } |
| + | |
| + | .touch thead.show-for-touch { |
| + | display: table-header-group !important; } |
| + | |
| + | tbody.hide-for-touch { |
| + | display: table-row-group !important; } |
| + | |
| + | .touch tbody.show-for-touch { |
| + | display: table-row-group !important; } |
| + | |
| + | tr.hide-for-touch { |
| + | display: table-row !important; } |
| + | |
| + | .touch tr.show-for-touch { |
| + | display: table-row !important; } |
| + | |
| + | td.hide-for-touch { |
| + | display: table-cell !important; } |
| + | |
| + | .touch td.show-for-touch { |
| + | display: table-cell !important; } |
| + | |
| + | th.hide-for-touch { |
| + | display: table-cell !important; } |
| + | |
| + | .touch th.show-for-touch { |
| + | display: table-cell !important; } |
| + | |
| + | /* Print visibility */ |
| + | @media print { |
| + | .show-for-print { |
| + | display: block; } |
| + | |
| + | .hide-for-print { |
| + | display: none; } |
| + | |
| + | table.show-for-print { |
| + | display: table; } |
| + | |
| + | thead.show-for-print { |
| + | display: table-header-group !important; } |
| + | |
| + | tbody.show-for-print { |
| + | display: table-row-group !important; } |
| + | |
| + | tr.show-for-print { |
| + | display: table-row !important; } |
| + | |
| + | td.show-for-print { |
| + | display: table-cell !important; } |
| + | |
| + | th.show-for-print { |
| + | display: table-cell !important; } } |
generators/foundation5/public/stylesheets/foundation.css.scss
+45
-0
| @@ | @@ -0,0 +1,45 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | // Make sure the charset is set appropriately |
| + | @charset "UTF-8"; |
| + | |
| + | // Behold, here are all the Foundation components. |
| + | @import |
| + | "foundation/components/grid", |
| + | "foundation/components/accordion", |
| + | "foundation/components/alert-boxes", |
| + | "foundation/components/block-grid", |
| + | "foundation/components/breadcrumbs", |
| + | "foundation/components/button-groups", |
| + | "foundation/components/buttons", |
| + | "foundation/components/clearing", |
| + | "foundation/components/dropdown", |
| + | "foundation/components/dropdown-buttons", |
| + | "foundation/components/flex-video", |
| + | "foundation/components/forms", |
| + | "foundation/components/inline-lists", |
| + | "foundation/components/joyride", |
| + | "foundation/components/keystrokes", |
| + | "foundation/components/labels", |
| + | "foundation/components/magellan", |
| + | "foundation/components/orbit", |
| + | "foundation/components/pagination", |
| + | "foundation/components/panels", |
| + | "foundation/components/pricing-tables", |
| + | "foundation/components/progress-bars", |
| + | "foundation/components/range-slider", |
| + | "foundation/components/reveal", |
| + | "foundation/components/side-nav", |
| + | "foundation/components/split-buttons", |
| + | "foundation/components/sub-nav", |
| + | "foundation/components/switch", |
| + | "foundation/components/tables", |
| + | "foundation/components/tabs", |
| + | "foundation/components/thumbs", |
| + | "foundation/components/tooltips", |
| + | "foundation/components/top-bar", |
| + | "foundation/components/type", |
| + | "foundation/components/offcanvas", |
| + | "foundation/components/visibility"; |
generators/foundation5/public/stylesheets/foundation.min.css
+1
-0
| @@ | @@ -0,0 +1 @@ |
| + | meta.foundation-version{font-family:"/5.2.3/"}meta.foundation-mq-small{font-family:"/only screen/";width:0em}meta.foundation-mq-medium{font-family:"/only screen and (min-width:40.063em)/";width:40.063em}meta.foundation-mq-large{font-family:"/only screen and (min-width:64.063em)/";width:64.063em}meta.foundation-mq-xlarge{font-family:"/only screen and (min-width:90.063em)/";width:90.063em}meta.foundation-mq-xxlarge{font-family:"/only screen and (min-width:120.063em)/";width:120.063em}meta.foundation-data-attribute-namespace{font-family:false}html,body{height:100%}*,*:before,*:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html,body{font-size:100%}body{background:#fff;color:#222;padding:0;margin:0;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-weight:normal;font-style:normal;line-height:1;position:relative;cursor:default}a:hover{cursor:pointer}img{max-width:100%;height:auto}img{-ms-interpolation-mode:bicubic}#map_canvas img,#map_canvas embed,#map_canvas object,.map_canvas img,.map_canvas embed,.map_canvas object{max-width:none !important}.left{float:left !important}.right{float:right !important}.clearfix:before,.clearfix:after{content:" ";display:table}.clearfix:after{clear:both}.hide{display:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img{display:inline-block;vertical-align:middle}textarea{height:auto;min-height:50px}select{width:100%}.row{width:100%;margin-left:auto;margin-right:auto;margin-top:0;margin-bottom:0;max-width:62.5rem}.row:before,.row:after{content:" ";display:table}.row:after{clear:both}.row.collapse>.column,.row.collapse>.columns{padding-left:0;padding-right:0}.row.collapse .row{margin-left:0;margin-right:0}.row .row{width:auto;margin-left:-0.9375rem;margin-right:-0.9375rem;margin-top:0;margin-bottom:0;max-width:none}.row .row:before,.row .row:after{content:" ";display:table}.row .row:after{clear:both}.row .row.collapse{width:auto;margin:0;max-width:none}.row .row.collapse:before,.row .row.collapse:after{content:" ";display:table}.row .row.collapse:after{clear:both}.column,.columns{padding-left:0.9375rem;padding-right:0.9375rem;width:100%;float:left}@media only screen{.small-push-0{position:relative;left:0%;right:auto}.small-pull-0{position:relative;right:0%;left:auto}.small-push-1{position:relative;left:8.33333%;right:auto}.small-pull-1{position:relative;right:8.33333%;left:auto}.small-push-2{position:relative;left:16.66667%;right:auto}.small-pull-2{position:relative;right:16.66667%;left:auto}.small-push-3{position:relative;left:25%;right:auto}.small-pull-3{position:relative;right:25%;left:auto}.small-push-4{position:relative;left:33.33333%;right:auto}.small-pull-4{position:relative;right:33.33333%;left:auto}.small-push-5{position:relative;left:41.66667%;right:auto}.small-pull-5{position:relative;right:41.66667%;left:auto}.small-push-6{position:relative;left:50%;right:auto}.small-pull-6{position:relative;right:50%;left:auto}.small-push-7{position:relative;left:58.33333%;right:auto}.small-pull-7{position:relative;right:58.33333%;left:auto}.small-push-8{position:relative;left:66.66667%;right:auto}.small-pull-8{position:relative;right:66.66667%;left:auto}.small-push-9{position:relative;left:75%;right:auto}.small-pull-9{position:relative;right:75%;left:auto}.small-push-10{position:relative;left:83.33333%;right:auto}.small-pull-10{position:relative;right:83.33333%;left:auto}.small-push-11{position:relative;left:91.66667%;right:auto}.small-pull-11{position:relative;right:91.66667%;left:auto}.column,.columns{position:relative;padding-left:0.9375rem;padding-right:0.9375rem;float:left}.small-1{width:8.33333%}.small-2{width:16.66667%}.small-3{width:25%}.small-4{width:33.33333%}.small-5{width:41.66667%}.small-6{width:50%}.small-7{width:58.33333%}.small-8{width:66.66667%}.small-9{width:75%}.small-10{width:83.33333%}.small-11{width:91.66667%}.small-12{width:100%}[class*="column"]+[class*="column"]:last-child{float:right}[class*="column"]+[class*="column"].end{float:left}.small-offset-0{margin-left:0% !important}.small-offset-1{margin-left:8.33333% !important}.small-offset-2{margin-left:16.66667% !important}.small-offset-3{margin-left:25% !important}.small-offset-4{margin-left:33.33333% !important}.small-offset-5{margin-left:41.66667% !important}.small-offset-6{margin-left:50% !important}.small-offset-7{margin-left:58.33333% !important}.small-offset-8{margin-left:66.66667% !important}.small-offset-9{margin-left:75% !important}.small-offset-10{margin-left:83.33333% !important}.small-offset-11{margin-left:91.66667% !important}.small-reset-order{margin-left:0;margin-right:0;left:auto;right:auto;float:left}.column.small-centered,.columns.small-centered{margin-left:auto;margin-right:auto;float:none !important}.column.small-uncentered,.columns.small-uncentered{margin-left:0;margin-right:0;float:left !important}.column.small-uncentered.opposite,.columns.small-uncentered.opposite{float:right}}@media only screen and (min-width: 40.063em){.medium-push-0{position:relative;left:0%;right:auto}.medium-pull-0{position:relative;right:0%;left:auto}.medium-push-1{position:relative;left:8.33333%;right:auto}.medium-pull-1{position:relative;right:8.33333%;left:auto}.medium-push-2{position:relative;left:16.66667%;right:auto}.medium-pull-2{position:relative;right:16.66667%;left:auto}.medium-push-3{position:relative;left:25%;right:auto}.medium-pull-3{position:relative;right:25%;left:auto}.medium-push-4{position:relative;left:33.33333%;right:auto}.medium-pull-4{position:relative;right:33.33333%;left:auto}.medium-push-5{position:relative;left:41.66667%;right:auto}.medium-pull-5{position:relative;right:41.66667%;left:auto}.medium-push-6{position:relative;left:50%;right:auto}.medium-pull-6{position:relative;right:50%;left:auto}.medium-push-7{position:relative;left:58.33333%;right:auto}.medium-pull-7{position:relative;right:58.33333%;left:auto}.medium-push-8{position:relative;left:66.66667%;right:auto}.medium-pull-8{position:relative;right:66.66667%;left:auto}.medium-push-9{position:relative;left:75%;right:auto}.medium-pull-9{position:relative;right:75%;left:auto}.medium-push-10{position:relative;left:83.33333%;right:auto}.medium-pull-10{position:relative;right:83.33333%;left:auto}.medium-push-11{position:relative;left:91.66667%;right:auto}.medium-pull-11{position:relative;right:91.66667%;left:auto}.column,.columns{position:relative;padding-left:0.9375rem;padding-right:0.9375rem;float:left}.medium-1{width:8.33333%}.medium-2{width:16.66667%}.medium-3{width:25%}.medium-4{width:33.33333%}.medium-5{width:41.66667%}.medium-6{width:50%}.medium-7{width:58.33333%}.medium-8{width:66.66667%}.medium-9{width:75%}.medium-10{width:83.33333%}.medium-11{width:91.66667%}.medium-12{width:100%}[class*="column"]+[class*="column"]:last-child{float:right}[class*="column"]+[class*="column"].end{float:left}.medium-offset-0{margin-left:0% !important}.medium-offset-1{margin-left:8.33333% !important}.medium-offset-2{margin-left:16.66667% !important}.medium-offset-3{margin-left:25% !important}.medium-offset-4{margin-left:33.33333% !important}.medium-offset-5{margin-left:41.66667% !important}.medium-offset-6{margin-left:50% !important}.medium-offset-7{margin-left:58.33333% !important}.medium-offset-8{margin-left:66.66667% !important}.medium-offset-9{margin-left:75% !important}.medium-offset-10{margin-left:83.33333% !important}.medium-offset-11{margin-left:91.66667% !important}.medium-reset-order{margin-left:0;margin-right:0;left:auto;right:auto;float:left}.column.medium-centered,.columns.medium-centered{margin-left:auto;margin-right:auto;float:none !important}.column.medium-uncentered,.columns.medium-uncentered{margin-left:0;margin-right:0;float:left !important}.column.medium-uncentered.opposite,.columns.medium-uncentered.opposite{float:right}.push-0{position:relative;left:0%;right:auto}.pull-0{position:relative;right:0%;left:auto}.push-1{position:relative;left:8.33333%;right:auto}.pull-1{position:relative;right:8.33333%;left:auto}.push-2{position:relative;left:16.66667%;right:auto}.pull-2{position:relative;right:16.66667%;left:auto}.push-3{position:relative;left:25%;right:auto}.pull-3{position:relative;right:25%;left:auto}.push-4{position:relative;left:33.33333%;right:auto}.pull-4{position:relative;right:33.33333%;left:auto}.push-5{position:relative;left:41.66667%;right:auto}.pull-5{position:relative;right:41.66667%;left:auto}.push-6{position:relative;left:50%;right:auto}.pull-6{position:relative;right:50%;left:auto}.push-7{position:relative;left:58.33333%;right:auto}.pull-7{position:relative;right:58.33333%;left:auto}.push-8{position:relative;left:66.66667%;right:auto}.pull-8{position:relative;right:66.66667%;left:auto}.push-9{position:relative;left:75%;right:auto}.pull-9{position:relative;right:75%;left:auto}.push-10{position:relative;left:83.33333%;right:auto}.pull-10{position:relative;right:83.33333%;left:auto}.push-11{position:relative;left:91.66667%;right:auto}.pull-11{position:relative;right:91.66667%;left:auto}}@media only screen and (min-width: 64.063em){.large-push-0{position:relative;left:0%;right:auto}.large-pull-0{position:relative;right:0%;left:auto}.large-push-1{position:relative;left:8.33333%;right:auto}.large-pull-1{position:relative;right:8.33333%;left:auto}.large-push-2{position:relative;left:16.66667%;right:auto}.large-pull-2{position:relative;right:16.66667%;left:auto}.large-push-3{position:relative;left:25%;right:auto}.large-pull-3{position:relative;right:25%;left:auto}.large-push-4{position:relative;left:33.33333%;right:auto}.large-pull-4{position:relative;right:33.33333%;left:auto}.large-push-5{position:relative;left:41.66667%;right:auto}.large-pull-5{position:relative;right:41.66667%;left:auto}.large-push-6{position:relative;left:50%;right:auto}.large-pull-6{position:relative;right:50%;left:auto}.large-push-7{position:relative;left:58.33333%;right:auto}.large-pull-7{position:relative;right:58.33333%;left:auto}.large-push-8{position:relative;left:66.66667%;right:auto}.large-pull-8{position:relative;right:66.66667%;left:auto}.large-push-9{position:relative;left:75%;right:auto}.large-pull-9{position:relative;right:75%;left:auto}.large-push-10{position:relative;left:83.33333%;right:auto}.large-pull-10{position:relative;right:83.33333%;left:auto}.large-push-11{position:relative;left:91.66667%;right:auto}.large-pull-11{position:relative;right:91.66667%;left:auto}.column,.columns{position:relative;padding-left:0.9375rem;padding-right:0.9375rem;float:left}.large-1{width:8.33333%}.large-2{width:16.66667%}.large-3{width:25%}.large-4{width:33.33333%}.large-5{width:41.66667%}.large-6{width:50%}.large-7{width:58.33333%}.large-8{width:66.66667%}.large-9{width:75%}.large-10{width:83.33333%}.large-11{width:91.66667%}.large-12{width:100%}[class*="column"]+[class*="column"]:last-child{float:right}[class*="column"]+[class*="column"].end{float:left}.large-offset-0{margin-left:0% !important}.large-offset-1{margin-left:8.33333% !important}.large-offset-2{margin-left:16.66667% !important}.large-offset-3{margin-left:25% !important}.large-offset-4{margin-left:33.33333% !important}.large-offset-5{margin-left:41.66667% !important}.large-offset-6{margin-left:50% !important}.large-offset-7{margin-left:58.33333% !important}.large-offset-8{margin-left:66.66667% !important}.large-offset-9{margin-left:75% !important}.large-offset-10{margin-left:83.33333% !important}.large-offset-11{margin-left:91.66667% !important}.large-reset-order{margin-left:0;margin-right:0;left:auto;right:auto;float:left}.column.large-centered,.columns.large-centered{margin-left:auto;margin-right:auto;float:none !important}.column.large-uncentered,.columns.large-uncentered{margin-left:0;margin-right:0;float:left !important}.column.large-uncentered.opposite,.columns.large-uncentered.opposite{float:right}.push-0{position:relative;left:0%;right:auto}.pull-0{position:relative;right:0%;left:auto}.push-1{position:relative;left:8.33333%;right:auto}.pull-1{position:relative;right:8.33333%;left:auto}.push-2{position:relative;left:16.66667%;right:auto}.pull-2{position:relative;right:16.66667%;left:auto}.push-3{position:relative;left:25%;right:auto}.pull-3{position:relative;right:25%;left:auto}.push-4{position:relative;left:33.33333%;right:auto}.pull-4{position:relative;right:33.33333%;left:auto}.push-5{position:relative;left:41.66667%;right:auto}.pull-5{position:relative;right:41.66667%;left:auto}.push-6{position:relative;left:50%;right:auto}.pull-6{position:relative;right:50%;left:auto}.push-7{position:relative;left:58.33333%;right:auto}.pull-7{position:relative;right:58.33333%;left:auto}.push-8{position:relative;left:66.66667%;right:auto}.pull-8{position:relative;right:66.66667%;left:auto}.push-9{position:relative;left:75%;right:auto}.pull-9{position:relative;right:75%;left:auto}.push-10{position:relative;left:83.33333%;right:auto}.pull-10{position:relative;right:83.33333%;left:auto}.push-11{position:relative;left:91.66667%;right:auto}.pull-11{position:relative;right:91.66667%;left:auto}}button,.button{border-style:solid;border-width:0px;cursor:pointer;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-weight:normal;line-height:normal;margin:0 0 1.25rem;position:relative;text-decoration:none;text-align:center;-webkit-appearance:none;-webkit-border-radius:0;display:inline-block;padding-top:1rem;padding-right:2rem;padding-bottom:1.0625rem;padding-left:2rem;font-size:1rem;background-color:#008cba;border-color:#007095;color:#fff;transition:background-color 300ms ease-out}button:hover,button:focus,.button:hover,.button:focus{background-color:#007095}button:hover,button:focus,.button:hover,.button:focus{color:#fff}button.secondary,.button.secondary{background-color:#e7e7e7;border-color:#b9b9b9;color:#333}button.secondary:hover,button.secondary:focus,.button.secondary:hover,.button.secondary:focus{background-color:#b9b9b9}button.secondary:hover,button.secondary:focus,.button.secondary:hover,.button.secondary:focus{color:#333}button.success,.button.success{background-color:#43ac6a;border-color:#368a55;color:#fff}button.success:hover,button.success:focus,.button.success:hover,.button.success:focus{background-color:#368a55}button.success:hover,button.success:focus,.button.success:hover,.button.success:focus{color:#fff}button.alert,.button.alert{background-color:#f04124;border-color:#cf2a0e;color:#fff}button.alert:hover,button.alert:focus,.button.alert:hover,.button.alert:focus{background-color:#cf2a0e}button.alert:hover,button.alert:focus,.button.alert:hover,.button.alert:focus{color:#fff}button.large,.button.large{padding-top:1.125rem;padding-right:2.25rem;padding-bottom:1.1875rem;padding-left:2.25rem;font-size:1.25rem}button.small,.button.small{padding-top:0.875rem;padding-right:1.75rem;padding-bottom:0.9375rem;padding-left:1.75rem;font-size:0.8125rem}button.tiny,.button.tiny{padding-top:0.625rem;padding-right:1.25rem;padding-bottom:0.6875rem;padding-left:1.25rem;font-size:0.6875rem}button.expand,.button.expand{padding-right:0;padding-left:0;width:100%}button.left-align,.button.left-align{text-align:left;text-indent:0.75rem}button.right-align,.button.right-align{text-align:right;padding-right:0.75rem}button.radius,.button.radius{border-radius:3px}button.round,.button.round{border-radius:1000px}button.disabled,button[disabled],.button.disabled,.button[disabled]{background-color:#008cba;border-color:#007095;color:#fff;cursor:default;opacity:0.7;box-shadow:none}button.disabled:hover,button.disabled:focus,button[disabled]:hover,button[disabled]:focus,.button.disabled:hover,.button.disabled:focus,.button[disabled]:hover,.button[disabled]:focus{background-color:#007095}button.disabled:hover,button.disabled:focus,button[disabled]:hover,button[disabled]:focus,.button.disabled:hover,.button.disabled:focus,.button[disabled]:hover,.button[disabled]:focus{color:#fff}button.disabled:hover,button.disabled:focus,button[disabled]:hover,button[disabled]:focus,.button.disabled:hover,.button.disabled:focus,.button[disabled]:hover,.button[disabled]:focus{background-color:#008cba}button.disabled.secondary,button[disabled].secondary,.button.disabled.secondary,.button[disabled].secondary{background-color:#e7e7e7;border-color:#b9b9b9;color:#333;cursor:default;opacity:0.7;box-shadow:none}button.disabled.secondary:hover,button.disabled.secondary:focus,button[disabled].secondary:hover,button[disabled].secondary:focus,.button.disabled.secondary:hover,.button.disabled.secondary:focus,.button[disabled].secondary:hover,.button[disabled].secondary:focus{background-color:#b9b9b9}button.disabled.secondary:hover,button.disabled.secondary:focus,button[disabled].secondary:hover,button[disabled].secondary:focus,.button.disabled.secondary:hover,.button.disabled.secondary:focus,.button[disabled].secondary:hover,.button[disabled].secondary:focus{color:#333}button.disabled.secondary:hover,button.disabled.secondary:focus,button[disabled].secondary:hover,button[disabled].secondary:focus,.button.disabled.secondary:hover,.button.disabled.secondary:focus,.button[disabled].secondary:hover,.button[disabled].secondary:focus{background-color:#e7e7e7}button.disabled.success,button[disabled].success,.button.disabled.success,.button[disabled].success{background-color:#43ac6a;border-color:#368a55;color:#fff;cursor:default;opacity:0.7;box-shadow:none}button.disabled.success:hover,button.disabled.success:focus,button[disabled].success:hover,button[disabled].success:focus,.button.disabled.success:hover,.button.disabled.success:focus,.button[disabled].success:hover,.button[disabled].success:focus{background-color:#368a55}button.disabled.success:hover,button.disabled.success:focus,button[disabled].success:hover,button[disabled].success:focus,.button.disabled.success:hover,.button.disabled.success:focus,.button[disabled].success:hover,.button[disabled].success:focus{color:#fff}button.disabled.success:hover,button.disabled.success:focus,button[disabled].success:hover,button[disabled].success:focus,.button.disabled.success:hover,.button.disabled.success:focus,.button[disabled].success:hover,.button[disabled].success:focus{background-color:#43ac6a}button.disabled.alert,button[disabled].alert,.button.disabled.alert,.button[disabled].alert{background-color:#f04124;border-color:#cf2a0e;color:#fff;cursor:default;opacity:0.7;box-shadow:none}button.disabled.alert:hover,button.disabled.alert:focus,button[disabled].alert:hover,button[disabled].alert:focus,.button.disabled.alert:hover,.button.disabled.alert:focus,.button[disabled].alert:hover,.button[disabled].alert:focus{background-color:#cf2a0e}button.disabled.alert:hover,button.disabled.alert:focus,button[disabled].alert:hover,button[disabled].alert:focus,.button.disabled.alert:hover,.button.disabled.alert:focus,.button[disabled].alert:hover,.button[disabled].alert:focus{color:#fff}button.disabled.alert:hover,button.disabled.alert:focus,button[disabled].alert:hover,button[disabled].alert:focus,.button.disabled.alert:hover,.button.disabled.alert:focus,.button[disabled].alert:hover,.button[disabled].alert:focus{background-color:#f04124}@media only screen and (min-width: 40.063em){button,.button{display:inline-block}}meta.foundation-mq-topbar{font-family:"/only screen and (min-width:40.063em)/";width:40.063em}.contain-to-grid{width:100%;background:#333}.contain-to-grid .top-bar{margin-bottom:0}.fixed{width:100%;left:0;position:fixed;top:0;z-index:99}.fixed.expanded:not(.top-bar){overflow-y:auto;height:auto;width:100%;max-height:100%}.fixed.expanded:not(.top-bar) .title-area{position:fixed;width:100%;z-index:99}.fixed.expanded:not(.top-bar) .top-bar-section{z-index:98;margin-top:45px}.top-bar{overflow:hidden;height:45px;line-height:45px;position:relative;background:#333;margin-bottom:0}.top-bar ul{margin-bottom:0;list-style:none}.top-bar .row{max-width:none}.top-bar form,.top-bar input{margin-bottom:0}.top-bar input{height:auto;padding-top:.35rem;padding-bottom:.35rem;font-size:0.75rem}.top-bar .button,.top-bar button{padding-top:.45rem;padding-bottom:.35rem;margin-bottom:0;font-size:0.75rem}.top-bar .title-area{position:relative;margin:0}.top-bar .name{height:45px;margin:0;font-size:16px}.top-bar .name h1{line-height:45px;font-size:1.0625rem;margin:0}.top-bar .name h1 a{font-weight:normal;color:#fff;width:75%;display:block;padding:0 15px}.top-bar .toggle-topbar{position:absolute;right:0;top:0}.top-bar .toggle-topbar a{color:#fff;text-transform:uppercase;font-size:0.8125rem;font-weight:bold;position:relative;display:block;padding:0 15px;height:45px;line-height:45px}.top-bar .toggle-topbar.menu-icon{right:15px;top:50%;margin-top:-16px;padding-left:40px}.top-bar .toggle-topbar.menu-icon a{height:34px;line-height:33px;padding:0;color:#fff;position:relative}.top-bar .toggle-topbar.menu-icon a::after{right:0}.top-bar .toggle-topbar.menu-icon a::after span:after{content:'';position:absolute;display:block;height:0;box-shadow:0 0px 0 1px #fff,0 7px 0 1px #fff,0 14px 0 1px #fff;width:16px}.top-bar .toggle-topbar.menu-icon a::after span:hover:after{box-shadow:0 0px 0 1px #fff,0 7px 0 1px #fff,0 14px 0 1px #fff}.top-bar.expanded{height:auto;background:transparent}.top-bar.expanded .title-area{background:#333}.top-bar.expanded .toggle-topbar a{color:#888}.top-bar.expanded .toggle-topbar a::after{box-shadow:0 10px 0 1px #888,0 16px 0 1px #888,0 22px 0 1px #888}.top-bar-section{left:0;position:relative;width:auto;transition:left 300ms ease-out}.top-bar-section ul{padding:0;width:100%;height:auto;display:block;font-size:16px;margin:0}.top-bar-section .divider,.top-bar-section [role="separator"]{border-top:solid 1px #1a1a1a;clear:both;height:1px;width:100%}.top-bar-section ul li{background:#333}.top-bar-section ul li>a{display:block;width:100%;color:#fff;padding:12px 0 12px 0;padding-left:15px;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-size:0.8125rem;font-weight:normal;text-transform:none}.top-bar-section ul li>a.button{font-size:0.8125rem;padding-right:15px;padding-left:15px;background-color:#008cba;border-color:#007095;color:#fff}.top-bar-section ul li>a.button:hover,.top-bar-section ul li>a.button:focus{background-color:#007095}.top-bar-section ul li>a.button:hover,.top-bar-section ul li>a.button:focus{color:#fff}.top-bar-section ul li>a.button.secondary{background-color:#e7e7e7;border-color:#b9b9b9;color:#333}.top-bar-section ul li>a.button.secondary:hover,.top-bar-section ul li>a.button.secondary:focus{background-color:#b9b9b9}.top-bar-section ul li>a.button.secondary:hover,.top-bar-section ul li>a.button.secondary:focus{color:#333}.top-bar-section ul li>a.button.success{background-color:#43ac6a;border-color:#368a55;color:#fff}.top-bar-section ul li>a.button.success:hover,.top-bar-section ul li>a.button.success:focus{background-color:#368a55}.top-bar-section ul li>a.button.success:hover,.top-bar-section ul li>a.button.success:focus{color:#fff}.top-bar-section ul li>a.button.alert{background-color:#f04124;border-color:#cf2a0e;color:#fff}.top-bar-section ul li>a.button.alert:hover,.top-bar-section ul li>a.button.alert:focus{background-color:#cf2a0e}.top-bar-section ul li>a.button.alert:hover,.top-bar-section ul li>a.button.alert:focus{color:#fff}.top-bar-section ul li>button{font-size:0.8125rem;padding-right:15px;padding-left:15px;background-color:#008cba;border-color:#007095;color:#fff}.top-bar-section ul li>button:hover,.top-bar-section ul li>button:focus{background-color:#007095}.top-bar-section ul li>button:hover,.top-bar-section ul li>button:focus{color:#fff}.top-bar-section ul li>button.secondary{background-color:#e7e7e7;border-color:#b9b9b9;color:#333}.top-bar-section ul li>button.secondary:hover,.top-bar-section ul li>button.secondary:focus{background-color:#b9b9b9}.top-bar-section ul li>button.secondary:hover,.top-bar-section ul li>button.secondary:focus{color:#333}.top-bar-section ul li>button.success{background-color:#43ac6a;border-color:#368a55;color:#fff}.top-bar-section ul li>button.success:hover,.top-bar-section ul li>button.success:focus{background-color:#368a55}.top-bar-section ul li>button.success:hover,.top-bar-section ul li>button.success:focus{color:#fff}.top-bar-section ul li>button.alert{background-color:#f04124;border-color:#cf2a0e;color:#fff}.top-bar-section ul li>button.alert:hover,.top-bar-section ul li>button.alert:focus{background-color:#cf2a0e}.top-bar-section ul li>button.alert:hover,.top-bar-section ul li>button.alert:focus{color:#fff}.top-bar-section ul li:hover:not(.has-form)>a{background:#272727;color:#fff}.top-bar-section ul li.active>a{background:#008cba;color:#fff}.top-bar-section ul li.active>a:hover{background:#0078a0;color:#fff}.top-bar-section .has-form{padding:15px}.top-bar-section .has-dropdown{position:relative}.top-bar-section .has-dropdown>a:after{content:"";display:block;width:0;height:0;border:inset 5px;border-color:transparent transparent transparent rgba(255,255,255,0.4);border-left-style:solid;margin-right:15px;margin-top:-4.5px;position:absolute;top:50%;right:0}.top-bar-section .has-dropdown.moved{position:static}.top-bar-section .has-dropdown.moved>.dropdown{display:block;position:static !important;height:auto;width:auto;overflow:visible;clip:auto;position:absolute !important;width:100%}.top-bar-section .has-dropdown.moved>a:after{display:none}.top-bar-section .dropdown{padding:0;position:absolute;left:100%;top:0;z-index:99;display:block;position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px)}.top-bar-section .dropdown li{width:100%;height:auto}.top-bar-section .dropdown li a{font-weight:normal;padding:8px 15px}.top-bar-section .dropdown li a.parent-link{font-weight:normal}.top-bar-section .dropdown li.title h5{margin-bottom:0;margin-top:0}.top-bar-section .dropdown li.title h5 a{color:#fff;line-height:22.5px;display:block}.top-bar-section .dropdown li.has-form{padding:8px 15px}.top-bar-section .dropdown li .button,.top-bar-section .dropdown li button{top:auto}.top-bar-section .dropdown label{padding:8px 15px 2px;margin-bottom:0;text-transform:uppercase;color:#777;font-weight:bold;font-size:0.625rem}.js-generated{display:block}@media only screen and (min-width: 40.063em){.top-bar{background:#333;overflow:visible}.top-bar:before,.top-bar:after{content:" ";display:table}.top-bar:after{clear:both}.top-bar .toggle-topbar{display:none}.top-bar .title-area{float:left}.top-bar .name h1 a{width:auto}.top-bar input,.top-bar .button,.top-bar button{font-size:0.875rem;position:relative;top:7px}.top-bar.expanded{background:#333}.contain-to-grid .top-bar{max-width:62.5rem;margin:0 auto;margin-bottom:0}.top-bar-section{transition:none 0 0;left:0 !important}.top-bar-section ul{width:auto;height:auto !important;display:inline}.top-bar-section ul li{float:left}.top-bar-section ul li .js-generated{display:none}.top-bar-section li.hover>a:not(.button){background:#272727;color:#fff}.top-bar-section li:not(.has-form) a:not(.button){padding:0 15px;line-height:45px;background:#333}.top-bar-section li:not(.has-form) a:not(.button):hover{background:#272727}.top-bar-section li.active:not(.has-form) a:not(.button){padding:0 15px;line-height:45px;color:#fff;background:#008cba}.top-bar-section li.active:not(.has-form) a:not(.button):hover{background:#0078a0}.top-bar-section .has-dropdown>a{padding-right:35px !important}.top-bar-section .has-dropdown>a:after{content:"";display:block;width:0;height:0;border:inset 5px;border-color:rgba(255,255,255,0.4) transparent transparent transparent;border-top-style:solid;margin-top:-2.5px;top:22.5px}.top-bar-section .has-dropdown.moved{position:relative}.top-bar-section .has-dropdown.moved>.dropdown{display:block;position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px)}.top-bar-section .has-dropdown.hover>.dropdown,.top-bar-section .has-dropdown.not-click:hover>.dropdown{display:block;position:static !important;height:auto;width:auto;overflow:visible;clip:auto;position:absolute !important}.top-bar-section .has-dropdown .dropdown li.has-dropdown>a:after{border:none;content:"\00bb";top:1rem;margin-top:-1px;right:5px;line-height:1.2}.top-bar-section .dropdown{left:0;top:auto;background:transparent;min-width:100%}.top-bar-section .dropdown li a{color:#fff;line-height:45px;white-space:nowrap;padding:12px 15px;background:#333}.top-bar-section .dropdown li:not(.has-form) a:not(.button){color:#fff;background:#333}.top-bar-section .dropdown li:not(.has-form):hover>a:not(.button){color:#fff;background:#272727}.top-bar-section .dropdown li label{white-space:nowrap;background:#333}.top-bar-section .dropdown li .dropdown{left:100%;top:0}.top-bar-section>ul>.divider,.top-bar-section>ul>[role="separator"]{border-bottom:none;border-top:none;border-right:solid 1px #4e4e4e;clear:none;height:45px;width:0}.top-bar-section .has-form{background:#333;padding:0 15px;height:45px}.top-bar-section .right li .dropdown{left:auto;right:0}.top-bar-section .right li .dropdown li .dropdown{right:100%}.top-bar-section .left li .dropdown{right:auto;left:0}.top-bar-section .left li .dropdown li .dropdown{left:100%}.no-js .top-bar-section ul li:hover>a{background:#272727;color:#fff}.no-js .top-bar-section ul li:active>a{background:#008cba;color:#fff}.no-js .top-bar-section .has-dropdown:hover>.dropdown{display:block;position:static !important;height:auto;width:auto;overflow:visible;clip:auto;position:absolute !important}}.breadcrumbs{display:block;padding:0.5625rem 0.875rem 0.5625rem;overflow:hidden;margin-left:0;list-style:none;border-style:solid;border-width:1px;background-color:#f4f4f4;border-color:#dcdcdc;border-radius:3px}.breadcrumbs>*{margin:0;float:left;font-size:0.6875rem;line-height:0.6875rem;text-transform:uppercase;color:#008cba}.breadcrumbs>*:hover a,.breadcrumbs>*:focus a{text-decoration:underline}.breadcrumbs>* a{color:#008cba}.breadcrumbs>*.current{cursor:default;color:#333}.breadcrumbs>*.current a{cursor:default;color:#333}.breadcrumbs>*.current:hover,.breadcrumbs>*.current:hover a,.breadcrumbs>*.current:focus,.breadcrumbs>*.current:focus a{text-decoration:none}.breadcrumbs>*.unavailable{color:#999}.breadcrumbs>*.unavailable a{color:#999}.breadcrumbs>*.unavailable:hover,.breadcrumbs>*.unavailable:hover a,.breadcrumbs>*.unavailable:focus,.breadcrumbs>*.unavailable a:focus{text-decoration:none;color:#999;cursor:default}.breadcrumbs>*:before{content:"/";color:#aaa;margin:0 0.75rem;position:relative;top:1px}.breadcrumbs>*:first-child:before{content:" ";margin:0}.alert-box{border-style:solid;border-width:1px;display:block;font-weight:normal;margin-bottom:1.25rem;position:relative;padding:0.875rem 1.5rem 0.875rem 0.875rem;font-size:0.8125rem;transition:opacity 300ms ease-out;background-color:#008cba;border-color:#0078a0;color:#fff}.alert-box .close{font-size:1.375rem;padding:9px 6px 4px;line-height:0;position:absolute;top:50%;margin-top:-0.6875rem;right:0.25rem;color:#333;opacity:0.3}.alert-box .close:hover,.alert-box .close:focus{opacity:0.5}.alert-box.radius{border-radius:3px}.alert-box.round{border-radius:1000px}.alert-box.success{background-color:#43ac6a;border-color:#3a945b;color:#fff}.alert-box.alert{background-color:#f04124;border-color:#de2d0f;color:#fff}.alert-box.secondary{background-color:#e7e7e7;border-color:#c7c7c7;color:#4f4f4f}.alert-box.warning{background-color:#f08a24;border-color:#de770f;color:#fff}.alert-box.info{background-color:#a0d3e8;border-color:#74bfdd;color:#4f4f4f}.alert-box.alert-close{opacity:0}.inline-list{margin:0 auto 1.0625rem auto;margin-left:-1.375rem;margin-right:0;padding:0;list-style:none;overflow:hidden}.inline-list>li{list-style:none;float:left;margin-left:1.375rem;display:block}.inline-list>li>*{display:block}.button-group{list-style:none;margin:0;left:0}.button-group:before,.button-group:after{content:" ";display:table}.button-group:after{clear:both}.button-group>li{margin:0;float:left}.button-group>li>button,.button-group>li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group>li:first-child button,.button-group>li:first-child .button{border-left:0}.button-group>li:first-child{margin-left:0}.button-group.radius>*>button,.button-group.radius>* .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.radius>*:first-child button,.button-group.radius>*:first-child .button{border-left:0}.button-group.radius>*:first-child,.button-group.radius>*:first-child>a,.button-group.radius>*:first-child>button,.button-group.radius>*:first-child>.button{border-bottom-left-radius:3px;border-top-left-radius:3px}.button-group.radius>*:last-child,.button-group.radius>*:last-child>a,.button-group.radius>*:last-child>button,.button-group.radius>*:last-child>.button{border-bottom-right-radius:3px;border-top-right-radius:3px}.button-group.round>*>button,.button-group.round>* .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.round>*:first-child button,.button-group.round>*:first-child .button{border-left:0}.button-group.round>*:first-child,.button-group.round>*:first-child>a,.button-group.round>*:first-child>button,.button-group.round>*:first-child>.button{border-bottom-left-radius:1000px;border-top-left-radius:1000px}.button-group.round>*:last-child,.button-group.round>*:last-child>a,.button-group.round>*:last-child>button,.button-group.round>*:last-child>.button{border-bottom-right-radius:1000px;border-top-right-radius:1000px}.button-group.even-2 li{width:50%}.button-group.even-2 li>button,.button-group.even-2 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-2 li:first-child button,.button-group.even-2 li:first-child .button{border-left:0}.button-group.even-2 li button,.button-group.even-2 li .button{width:100%}.button-group.even-3 li{width:33.33333%}.button-group.even-3 li>button,.button-group.even-3 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-3 li:first-child button,.button-group.even-3 li:first-child .button{border-left:0}.button-group.even-3 li button,.button-group.even-3 li .button{width:100%}.button-group.even-4 li{width:25%}.button-group.even-4 li>button,.button-group.even-4 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-4 li:first-child button,.button-group.even-4 li:first-child .button{border-left:0}.button-group.even-4 li button,.button-group.even-4 li .button{width:100%}.button-group.even-5 li{width:20%}.button-group.even-5 li>button,.button-group.even-5 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-5 li:first-child button,.button-group.even-5 li:first-child .button{border-left:0}.button-group.even-5 li button,.button-group.even-5 li .button{width:100%}.button-group.even-6 li{width:16.66667%}.button-group.even-6 li>button,.button-group.even-6 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-6 li:first-child button,.button-group.even-6 li:first-child .button{border-left:0}.button-group.even-6 li button,.button-group.even-6 li .button{width:100%}.button-group.even-7 li{width:14.28571%}.button-group.even-7 li>button,.button-group.even-7 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-7 li:first-child button,.button-group.even-7 li:first-child .button{border-left:0}.button-group.even-7 li button,.button-group.even-7 li .button{width:100%}.button-group.even-8 li{width:12.5%}.button-group.even-8 li>button,.button-group.even-8 li .button{border-left:1px solid;border-color:rgba(255,255,255,0.5)}.button-group.even-8 li:first-child button,.button-group.even-8 li:first-child .button{border-left:0}.button-group.even-8 li button,.button-group.even-8 li .button{width:100%}.button-bar:before,.button-bar:after{content:" ";display:table}.button-bar:after{clear:both}.button-bar .button-group{float:left;margin-right:0.625rem}.button-bar .button-group div{overflow:hidden}.panel{border-style:solid;border-width:1px;border-color:#d8d8d8;margin-bottom:1.25rem;padding:1.25rem;background:#f2f2f2}.panel>:first-child{margin-top:0}.panel>:last-child{margin-bottom:0}.panel h1,.panel h2,.panel h3,.panel h4,.panel h5,.panel h6,.panel p,.panel li{color:#333}.panel h1,.panel h2,.panel h3,.panel h4,.panel h5,.panel h6{line-height:1;margin-bottom:0.625rem}.panel h1.subheader,.panel h2.subheader,.panel h3.subheader,.panel h4.subheader,.panel h5.subheader,.panel h6.subheader{line-height:1.4}.panel.callout{border-style:solid;border-width:1px;border-color:#b6edff;margin-bottom:1.25rem;padding:1.25rem;background:#ecfaff}.panel.callout>:first-child{margin-top:0}.panel.callout>:last-child{margin-bottom:0}.panel.callout h1,.panel.callout h2,.panel.callout h3,.panel.callout h4,.panel.callout h5,.panel.callout h6,.panel.callout p,.panel.callout li{color:#333}.panel.callout h1,.panel.callout h2,.panel.callout h3,.panel.callout h4,.panel.callout h5,.panel.callout h6{line-height:1;margin-bottom:0.625rem}.panel.callout h1.subheader,.panel.callout h2.subheader,.panel.callout h3.subheader,.panel.callout h4.subheader,.panel.callout h5.subheader,.panel.callout h6.subheader{line-height:1.4}.panel.callout a:not(.button){color:#008cba}.panel.radius{border-radius:3px}.dropdown.button,button.dropdown{position:relative;padding-right:3.5625rem}.dropdown.button:after,button.dropdown:after{position:absolute;content:"";width:0;height:0;display:block;border-style:solid;border-color:#fff transparent transparent transparent;top:50%}.dropdown.button:after,button.dropdown:after{border-width:0.375rem;right:1.40625rem;margin-top:-0.15625rem}.dropdown.button:after,button.dropdown:after{border-color:#fff transparent transparent transparent}.dropdown.button.tiny,button.dropdown.tiny{padding-right:2.625rem}.dropdown.button.tiny:before,button.dropdown.tiny:before{border-width:0.375rem;right:1.125rem;margin-top:-0.125rem}.dropdown.button.tiny:after,button.dropdown.tiny:after{border-color:#fff transparent transparent transparent}.dropdown.button.small,button.dropdown.small{padding-right:3.0625rem}.dropdown.button.small:after,button.dropdown.small:after{border-width:0.4375rem;right:1.3125rem;margin-top:-0.15625rem}.dropdown.button.small:after,button.dropdown.small:after{border-color:#fff transparent transparent transparent}.dropdown.button.large,button.dropdown.large{padding-right:3.625rem}.dropdown.button.large:after,button.dropdown.large:after{border-width:0.3125rem;right:1.71875rem;margin-top:-0.15625rem}.dropdown.button.large:after,button.dropdown.large:after{border-color:#fff transparent transparent transparent}.dropdown.button.secondary:after,button.dropdown.secondary:after{border-color:#333 transparent transparent transparent}div.switch{position:relative;padding:0;display:block;overflow:hidden;border-style:solid;border-width:1px;margin-bottom:1.25rem;height:2.25rem;background:#fff;border-color:#ccc}div.switch label{position:relative;left:0;z-index:2;float:left;width:50%;height:100%;margin:0;font-weight:bold;text-align:left;transition:all 0.1s ease-out}div.switch input{position:absolute;z-index:3;opacity:0;width:100%;height:100%;-moz-appearance:none}div.switch input:hover,div.switch input:focus{cursor:pointer}div.switch span:last-child{position:absolute;top:-1px;left:-1px;z-index:1;display:block;padding:0;border-width:1px;border-style:solid;transition:all 0.1s ease-out}div.switch input:not(:checked)+label{opacity:0}div.switch input:checked{display:none !important}div.switch input{left:0;display:block !important}div.switch input:first-of-type+label,div.switch input:first-of-type+span+label{left:-50%}div.switch input:first-of-type:checked+label,div.switch input:first-of-type:checked+span+label{left:0%}div.switch input:last-of-type+label,div.switch input:last-of-type+span+label{right:-50%;left:auto;text-align:right}div.switch input:last-of-type:checked+label,div.switch input:last-of-type:checked+span+label{right:0%;left:auto}div.switch span.custom{display:none !important}form.custom div.switch .hidden-field{margin-left:auto;position:absolute;visibility:visible}div.switch label{padding:0;line-height:2.3rem;font-size:0.875rem}div.switch input:first-of-type:checked ~ span:last-child{left:100%;margin-left:-2.1875rem}div.switch span:last-child{width:2.25rem;height:2.25rem}div.switch span:last-child{border-color:#b3b3b3;background:#fff;background:linear-gradient(to bottom, #fff 0%, #f2f2f2 100%);box-shadow:2px 0 10px 0 rgba(0,0,0,0.07),1000px 0 0 980px #f3faf6,-2px 0 10px 0 rgba(0,0,0,0.07),-1000px 0 0 1000px #f5f5f5}div.switch:hover span:last-child,div.switch:focus span:last-child{background:#fff;background:linear-gradient(to bottom, #fff 0%, #e6e6e6 100%)}div.switch:active{background:transparent}div.switch.large{height:2.75rem}div.switch.large label{padding:0;line-height:2.3rem;font-size:1.0625rem}div.switch.large input:first-of-type:checked ~ span:last-child{left:100%;margin-left:-2.6875rem}div.switch.large span:last-child{width:2.75rem;height:2.75rem}div.switch.small{height:1.75rem}div.switch.small label{padding:0;line-height:2.1rem;font-size:0.75rem}div.switch.small input:first-of-type:checked ~ span:last-child{left:100%;margin-left:-1.6875rem}div.switch.small span:last-child{width:1.75rem;height:1.75rem}div.switch.tiny{height:1.375rem}div.switch.tiny label{padding:0;line-height:1.9rem;font-size:0.6875rem}div.switch.tiny input:first-of-type:checked ~ span:last-child{left:100%;margin-left:-1.3125rem}div.switch.tiny span:last-child{width:1.375rem;height:1.375rem}div.switch.radius{border-radius:4px}div.switch.radius span:last-child{border-radius:3px}div.switch.round{border-radius:1000px}div.switch.round span:last-child{border-radius:999px}div.switch.round label{padding:0 0.5625rem}.th{line-height:0;display:inline-block;border:solid 4px #fff;max-width:100%;box-shadow:0 0 0 1px rgba(0,0,0,0.2);transition:all 200ms ease-out}.th:hover,.th:focus{box-shadow:0 0 6px 1px rgba(0,140,186,0.5)}.th.radius{border-radius:3px}.pricing-table{border:solid 1px #ddd;margin-left:0;margin-bottom:1.25rem}.pricing-table *{list-style:none;line-height:1}.pricing-table .title{background-color:#333;padding:0.9375rem 1.25rem;text-align:center;color:#eee;font-weight:normal;font-size:1rem;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif}.pricing-table .price{background-color:#f6f6f6;padding:0.9375rem 1.25rem;text-align:center;color:#333;font-weight:normal;font-size:2rem;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif}.pricing-table .description{background-color:#fff;padding:0.9375rem;text-align:center;color:#777;font-size:0.75rem;font-weight:normal;line-height:1.4;border-bottom:dotted 1px #ddd}.pricing-table .bullet-item{background-color:#fff;padding:0.9375rem;text-align:center;color:#333;font-size:0.875rem;font-weight:normal;border-bottom:dotted 1px #ddd}.pricing-table .cta-button{background-color:#fff;text-align:center;padding:1.25rem 1.25rem 0}@keyframes rotate{from{-webkit-transform:rotate(0deg);-moz-transform:rotate(0deg);-ms-transform:rotate(0deg);-o-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-ms-transform:rotate(360deg);-o-transform:rotate(360deg);transform:rotate(360deg)}}.slideshow-wrapper{position:relative}.slideshow-wrapper ul{list-style-type:none;margin:0}.slideshow-wrapper ul li,.slideshow-wrapper ul li .orbit-caption{display:none}.slideshow-wrapper ul li:first-child{display:block}.slideshow-wrapper .orbit-container{background-color:transparent}.slideshow-wrapper .orbit-container li{display:block}.slideshow-wrapper .orbit-container li .orbit-caption{display:block}.slideshow-wrapper .preloader{display:block;width:40px;height:40px;position:absolute;top:50%;left:50%;margin-top:-20px;margin-left:-20px;border:solid 3px;border-color:#555 #fff;border-radius:1000px;animation-name:rotate;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}.orbit-container{overflow:hidden;width:100%;position:relative;background:none}.orbit-container .orbit-slides-container{list-style:none;margin:0;padding:0;position:relative;-webkit-transform:translateZ(0)}.orbit-container .orbit-slides-container img{display:block;max-width:100%}.orbit-container .orbit-slides-container.fade>li{opacity:0;transition:opacity 500ms ease-in-out;-ms-transform:translate(0, 0);-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.orbit-container .orbit-slides-container.fade>li.animate-in{opacity:1;z-index:20;transition:opacity 500ms ease-in-out}.orbit-container .orbit-slides-container.fade>li.animate-out{z-index:10;transition:opacity 500ms ease-in-out}.orbit-container .orbit-slides-container.swipe-next>li{-ms-transform:translate(100%, 0);-webkit-transform:translate3d(100%, 0, 0);-moz-transform:translate3d(100%, 0, 0);-o-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0)}.orbit-container .orbit-slides-container.swipe-next>li.animate-in{-ms-transform:translate(0, 0);-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);transition-duration:500ms}.orbit-container .orbit-slides-container.swipe-next>li.animate-out{-ms-transform:translate(-100%, 0);-webkit-transform:translate3d(-100%, 0, 0);-moz-transform:translate3d(-100%, 0, 0);-o-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);transition-duration:500ms}.orbit-container .orbit-slides-container.swipe-prev>li{-ms-transform:translate(-100%, 0);-webkit-transform:translate3d(-100%, 0, 0);-moz-transform:translate3d(-100%, 0, 0);-o-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0)}.orbit-container .orbit-slides-container.swipe-prev>li.animate-in{-ms-transform:translate(0, 0);-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);transition-duration:500ms}.orbit-container .orbit-slides-container.swipe-prev>li.animate-out{-ms-transform:translate(100%, 0);-webkit-transform:translate3d(100%, 0, 0);-moz-transform:translate3d(100%, 0, 0);-o-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);transition-duration:500ms}.orbit-container .orbit-slides-container>li{position:absolute;top:0;left:0;width:100%;-ms-transform:translate(100%, 0);-webkit-transform:translate3d(100%, 0, 0);-moz-transform:translate3d(100%, 0, 0);-o-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0)}.orbit-container .orbit-slides-container>li>a{display:block}.orbit-container .orbit-slides-container>li.active{opacity:1;position:relative;top:0;left:0;-ms-transform:translate(0, 0);-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}.orbit-container .orbit-slides-container>li .orbit-caption{position:absolute;bottom:0;background-color:rgba(51,51,51,0.8);color:#fff;width:100%;padding:0.625rem 0.875rem;font-size:0.875rem}.orbit-container .orbit-slide-number{position:absolute;top:10px;left:10px;font-size:12px;color:#fff;background:rgba(0,0,0,0);z-index:10}.orbit-container .orbit-slide-number span{font-weight:bold;padding:0.3125rem}.orbit-container .orbit-timer{position:absolute;top:12px;right:10px;height:6px;width:100px;z-index:10}.orbit-container .orbit-timer .orbit-progress{height:3px;background-color:rgba(255,255,255,0.3);display:block;width:0%;position:relative;right:20px;top:5px}.orbit-container .orbit-timer>span{display:none;position:absolute;top:0px;right:0;width:11px;height:14px;border:solid 4px #fff;border-top:none;border-bottom:none}.orbit-container .orbit-timer.paused>span{right:-4px;top:0px;width:11px;height:14px;border:inset 8px;border-left-style:solid;-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg);border-color:transparent #fff transparent transparent}.orbit-container .orbit-timer.paused>span.dark{border-color:transparent #333 transparent transparent}.orbit-container:hover .orbit-timer>span{display:block}.orbit-container .orbit-prev,.orbit-container .orbit-next{position:absolute;top:45%;margin-top:-25px;width:36px;height:60px;line-height:50px;color:white;background-color:transparent;text-indent:-9999px !important;z-index:10}.orbit-container .orbit-prev:hover,.orbit-container .orbit-next:hover{background-color:rgba(0,0,0,0.3)}.orbit-container .orbit-prev>span,.orbit-container .orbit-next>span{position:absolute;top:50%;margin-top:-10px;display:block;width:0;height:0;border:inset 10px}.orbit-container .orbit-prev{left:0}.orbit-container .orbit-prev>span{border-right-style:solid;border-color:transparent;border-right-color:#fff}.orbit-container .orbit-prev:hover>span{border-right-color:#fff}.orbit-container .orbit-next{right:0}.orbit-container .orbit-next>span{border-color:transparent;border-left-style:solid;border-left-color:#fff;left:50%;margin-left:-4px}.orbit-container .orbit-next:hover>span{border-left-color:#fff}.orbit-container .orbit-bullets-container{text-align:center}.orbit-container .orbit-bullets{margin:0 auto 30px auto;overflow:hidden;position:relative;top:10px;float:none;text-align:center;display:block}.orbit-container .orbit-bullets li{display:inline-block;width:0.5625rem;height:0.5625rem;background:#ccc;float:none;margin-right:6px;border-radius:1000px}.orbit-container .orbit-bullets li.active{background:#999}.orbit-container .orbit-bullets li:last-child{margin-right:0}.touch .orbit-container .orbit-prev,.touch .orbit-container .orbit-next{display:none}.touch .orbit-bullets{display:none}@media only screen and (min-width: 40.063em){.touch .orbit-container .orbit-prev,.touch .orbit-container .orbit-next{display:inherit}.touch .orbit-bullets{display:block}}@media only screen and (max-width: 40em){.orbit-stack-on-small .orbit-slides-container{height:auto !important}.orbit-stack-on-small .orbit-slides-container>*{position:relative !important;margin-left:0% !important;opacity:1 !important;-webkit-transform:none !important;-moz-transform:none !important;-ms-transform:none !important;-o-transform:none !important;transform:none !important;transition:none !important}.orbit-stack-on-small .orbit-timer{display:none}.orbit-stack-on-small .orbit-next,.orbit-stack-on-small .orbit-prev{display:none}.orbit-stack-on-small .orbit-bullets{display:none}.orbit-stack-on-small .orbit-slide-number{display:none}}[data-magellan-expedition],[data-magellan-expedition-clone]{background:#fff;z-index:50;min-width:100%;padding:10px}[data-magellan-expedition] .sub-nav,[data-magellan-expedition-clone] .sub-nav{margin-bottom:0}[data-magellan-expedition] .sub-nav dd,[data-magellan-expedition-clone] .sub-nav dd{margin-bottom:0}[data-magellan-expedition] .sub-nav a,[data-magellan-expedition-clone] .sub-nav a{line-height:1.8em}.text-left{text-align:left !important}.text-right{text-align:right !important}.text-center{text-align:center !important}.text-justify{text-align:justify !important}@media only screen and (max-width: 40em){.small-only-text-left{text-align:left !important}.small-only-text-right{text-align:right !important}.small-only-text-center{text-align:center !important}.small-only-text-justify{text-align:justify !important}}@media only screen{.small-text-left{text-align:left !important}.small-text-right{text-align:right !important}.small-text-center{text-align:center !important}.small-text-justify{text-align:justify !important}}@media only screen and (min-width: 40.063em) and (max-width: 64em){.medium-only-text-left{text-align:left !important}.medium-only-text-right{text-align:right !important}.medium-only-text-center{text-align:center !important}.medium-only-text-justify{text-align:justify !important}}@media only screen and (min-width: 40.063em){.medium-text-left{text-align:left !important}.medium-text-right{text-align:right !important}.medium-text-center{text-align:center !important}.medium-text-justify{text-align:justify !important}}@media only screen and (min-width: 64.063em) and (max-width: 90em){.large-only-text-left{text-align:left !important}.large-only-text-right{text-align:right !important}.large-only-text-center{text-align:center !important}.large-only-text-justify{text-align:justify !important}}@media only screen and (min-width: 64.063em){.large-text-left{text-align:left !important}.large-text-right{text-align:right !important}.large-text-center{text-align:center !important}.large-text-justify{text-align:justify !important}}@media only screen and (min-width: 90.063em) and (max-width: 120em){.xlarge-only-text-left{text-align:left !important}.xlarge-only-text-right{text-align:right !important}.xlarge-only-text-center{text-align:center !important}.xlarge-only-text-justify{text-align:justify !important}}@media only screen and (min-width: 90.063em){.xlarge-text-left{text-align:left !important}.xlarge-text-right{text-align:right !important}.xlarge-text-center{text-align:center !important}.xlarge-text-justify{text-align:justify !important}}@media only screen and (min-width: 120.063em) and (max-width: 99999999em){.xxlarge-only-text-left{text-align:left !important}.xxlarge-only-text-right{text-align:right !important}.xxlarge-only-text-center{text-align:center !important}.xxlarge-only-text-justify{text-align:justify !important}}@media only screen and (min-width: 120.063em){.xxlarge-text-left{text-align:left !important}.xxlarge-text-right{text-align:right !important}.xxlarge-text-center{text-align:center !important}.xxlarge-text-justify{text-align:justify !important}}div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,p,blockquote,th,td{margin:0;padding:0}a{color:#008cba;text-decoration:none;line-height:inherit}a:hover,a:focus{color:#0078a0}a img{border:none}p{font-family:inherit;font-weight:normal;font-size:1rem;line-height:1.6;margin-bottom:1.25rem;text-rendering:optimizeLegibility}p.lead{font-size:1.21875rem;line-height:1.6}p aside{font-size:0.875rem;line-height:1.35;font-style:italic}h1,h2,h3,h4,h5,h6{font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-weight:normal;font-style:normal;color:#222;text-rendering:optimizeLegibility;margin-top:0.2rem;margin-bottom:0.5rem;line-height:1.4}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small{font-size:60%;color:#6f6f6f;line-height:0}h1{font-size:2.125rem}h2{font-size:1.6875rem}h3{font-size:1.375rem}h4{font-size:1.125rem}h5{font-size:1.125rem}h6{font-size:1rem}.subheader{line-height:1.4;color:#6f6f6f;font-weight:normal;margin-top:0.2rem;margin-bottom:0.5rem}hr{border:solid #ddd;border-width:1px 0 0;clear:both;margin:1.25rem 0 1.1875rem;height:0}em,i{font-style:italic;line-height:inherit}strong,b{font-weight:bold;line-height:inherit}small{font-size:60%;line-height:inherit}code{font-family:Consolas,"Liberation Mono",Courier,monospace;font-weight:bold;color:#bd260d}ul,ol,dl{font-size:1rem;line-height:1.6;margin-bottom:1.25rem;list-style-position:outside;font-family:inherit}ul{margin-left:1.1rem}ul.no-bullet{margin-left:0}ul.no-bullet li ul,ul.no-bullet li ol{margin-left:1.25rem;margin-bottom:0;list-style:none}ul li ul,ul li ol{margin-left:1.25rem;margin-bottom:0}ul.square li ul,ul.circle li ul,ul.disc li ul{list-style:inherit}ul.square{list-style-type:square;margin-left:1.1rem}ul.circle{list-style-type:circle;margin-left:1.1rem}ul.disc{list-style-type:disc;margin-left:1.1rem}ul.no-bullet{list-style:none}ol{margin-left:1.4rem}ol li ul,ol li ol{margin-left:1.25rem;margin-bottom:0}dl dt{margin-bottom:0.3rem;font-weight:bold}dl dd{margin-bottom:0.75rem}abbr,acronym{text-transform:uppercase;font-size:90%;color:#222;border-bottom:1px dotted #ddd;cursor:help}abbr{text-transform:none}blockquote{margin:0 0 1.25rem;padding:0.5625rem 1.25rem 0 1.1875rem;border-left:1px solid #ddd}blockquote cite{display:block;font-size:0.8125rem;color:#555}blockquote cite:before{content:"\2014 \0020"}blockquote cite a,blockquote cite a:visited{color:#555}blockquote,blockquote p{line-height:1.6;color:#6f6f6f}.vcard{display:inline-block;margin:0 0 1.25rem 0;border:1px solid #ddd;padding:0.625rem 0.75rem}.vcard li{margin:0;display:block}.vcard .fn{font-weight:bold;font-size:0.9375rem}.vevent .summary{font-weight:bold}.vevent abbr{cursor:default;text-decoration:none;font-weight:bold;border:none;padding:0 0.0625rem}@media only screen and (min-width: 40.063em){h1,h2,h3,h4,h5,h6{line-height:1.4}h1{font-size:2.75rem}h2{font-size:2.3125rem}h3{font-size:1.6875rem}h4{font-size:1.4375rem}}.print-only{display:none !important}@media print{*{background:transparent !important;color:#000 !important;box-shadow:none !important;text-shadow:none !important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100% !important}@page{margin:0.5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}.hide-on-print{display:none !important}.print-only{display:block !important}.hide-for-print{display:none !important}.show-for-print{display:inherit !important}}.tabs{margin-bottom:0 !important;margin-left:0}.tabs:before,.tabs:after{content:" ";display:table}.tabs:after{clear:both}.tabs dd,.tabs .tab-title{position:relative;margin-bottom:0 !important;list-style:none;float:left}.tabs dd>a,.tabs .tab-title>a{display:block;background:#efefef;color:#222;padding:1rem 2rem;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-size:1rem}.tabs dd>a:hover,.tabs .tab-title>a:hover{background:#e1e1e1}.tabs dd.active a,.tabs .tab-title.active a{background:#fff;color:#222}.tabs.radius dd:first-child a,.tabs.radius .tab:first-child a{border-bottom-left-radius:3px;border-top-left-radius:3px}.tabs.radius dd:last-child a,.tabs.radius .tab:last-child a{border-bottom-right-radius:3px;border-top-right-radius:3px}.tabs.vertical dd,.tabs.vertical .tab{position:inherit;float:none;display:block;top:auto}.tabs-content{margin-bottom:1.5rem;width:100%}.tabs-content:before,.tabs-content:after{content:" ";display:table}.tabs-content:after{clear:both}.tabs-content>.content{display:none;float:left;padding:0.9375rem 0;width:100%}.tabs-content>.content.active{display:block;float:none}.tabs-content>.content.contained{padding:0.9375rem}.tabs-content.vertical{display:block}.tabs-content.vertical>.content{padding:0 0.9375rem}@media only screen and (min-width: 40.063em){.tabs.vertical{width:20%;float:left;margin-bottom:1.25rem}.tabs-content.vertical{width:80%;float:left;margin-left:-1px}}.no-js .tabs-content>.content{display:block;float:none}ul.pagination{display:block;min-height:1.5rem;margin-left:-0.3125rem}ul.pagination li{height:1.5rem;color:#222;font-size:0.875rem;margin-left:0.3125rem}ul.pagination li a{display:block;padding:0.0625rem 0.625rem 0.0625rem;color:#999;border-radius:3px}ul.pagination li:hover a,ul.pagination li a:focus{background:#e6e6e6}ul.pagination li.unavailable a{cursor:default;color:#999}ul.pagination li.unavailable:hover a,ul.pagination li.unavailable a:focus{background:transparent}ul.pagination li.current a{background:#008cba;color:#fff;font-weight:bold;cursor:default}ul.pagination li.current a:hover,ul.pagination li.current a:focus{background:#008cba}ul.pagination li{float:left;display:block}.pagination-centered{text-align:center}.pagination-centered ul.pagination li{float:none;display:inline-block}.side-nav{display:block;margin:0;padding:0.875rem 0;list-style-type:none;list-style-position:inside;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif}.side-nav li{margin:0 0 0.4375rem 0;font-size:0.875rem}.side-nav li a:not(.button){display:block;color:#008cba;margin:0;padding:0.4375rem 0.875rem}.side-nav li a:not(.button):hover,.side-nav li a:not(.button):focus{background:rgba(0,0,0,0.025);color:#1cc7ff}.side-nav li.active>a:first-child:not(.button){color:#1cc7ff;font-weight:normal;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif}.side-nav li.divider{border-top:1px solid;height:0;padding:0;list-style:none;border-top-color:#fff}.side-nav li.heading{color:#008cba;font-size:0.875rem;font-weight:bold;text-transform:uppercase}.accordion{margin-bottom:0}.accordion:before,.accordion:after{content:" ";display:table}.accordion:after{clear:both}.accordion dd{display:block;margin-bottom:0 !important}.accordion dd.active>a{background:#e8e8e8}.accordion dd>a{background:#efefef;color:#222;padding:1rem;display:block;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-size:1rem}.accordion dd>a:hover{background:#e3e3e3}.accordion dd>.content{display:none;padding:0.9375rem}.accordion dd>.content.active{display:block;background:#fff}.split.button{position:relative;padding-right:5.0625rem}.split.button span{display:block;height:100%;position:absolute;right:0;top:0;border-left:solid 1px}.split.button span:after{position:absolute;content:"";width:0;height:0;display:block;border-style:inset;top:50%;left:50%}.split.button span:active{background-color:rgba(0,0,0,0.1)}.split.button span{border-left-color:rgba(255,255,255,0.5)}.split.button span{width:3.09375rem}.split.button span:after{border-top-style:solid;border-width:0.375rem;top:48%;margin-left:-0.375rem}.split.button span:after{border-color:#fff transparent transparent transparent}.split.button.secondary span{border-left-color:rgba(255,255,255,0.5)}.split.button.secondary span:after{border-color:#fff transparent transparent transparent}.split.button.alert span{border-left-color:rgba(255,255,255,0.5)}.split.button.success span{border-left-color:rgba(255,255,255,0.5)}.split.button.tiny{padding-right:3.75rem}.split.button.tiny span{width:2.25rem}.split.button.tiny span:after{border-top-style:solid;border-width:0.375rem;top:48%;margin-left:-0.375rem}.split.button.small{padding-right:4.375rem}.split.button.small span{width:2.625rem}.split.button.small span:after{border-top-style:solid;border-width:0.4375rem;top:48%;margin-left:-0.375rem}.split.button.large{padding-right:5.5rem}.split.button.large span{width:3.4375rem}.split.button.large span:after{border-top-style:solid;border-width:0.3125rem;top:48%;margin-left:-0.375rem}.split.button.expand{padding-left:2rem}.split.button.secondary span:after{border-color:#333 transparent transparent transparent}.split.button.radius span{border-bottom-right-radius:3px;border-top-right-radius:3px}.split.button.round span{border-bottom-right-radius:1000px;border-top-right-radius:1000px}.reveal-modal-bg{position:fixed;height:100%;width:100%;background:#000;background:rgba(0,0,0,0.45);z-index:99;display:none;top:0;left:0}dialog,.reveal-modal{visibility:hidden;display:none;position:absolute;z-index:100;width:100vw;top:0;left:0;background-color:#fff;padding:1.25rem;border:solid 1px #666;box-shadow:0 0 10px rgba(0,0,0,0.4)}@media only screen and (max-width: 40em){dialog,.reveal-modal{min-height:100vh}}@media only screen and (min-width: 40.063em){dialog,.reveal-modal{left:50%}}dialog .column,dialog .columns,.reveal-modal .column,.reveal-modal .columns{min-width:0}dialog>:first-child,.reveal-modal>:first-child{margin-top:0}dialog>:last-child,.reveal-modal>:last-child{margin-bottom:0}@media only screen and (min-width: 40.063em){dialog,.reveal-modal{margin-left:-40%;width:80%}}@media only screen and (min-width: 40.063em){dialog,.reveal-modal{top:6.25rem}}dialog .close-reveal-modal,.reveal-modal .close-reveal-modal{font-size:2.5rem;line-height:1;position:absolute;top:0.5rem;right:0.6875rem;color:#aaa;font-weight:bold;cursor:pointer}dialog[open]{display:block;visibility:visible}@media only screen and (min-width: 40.063em){dialog,.reveal-modal{padding:1.875rem}dialog.radius,.reveal-modal.radius{border-radius:3px}dialog.round,.reveal-modal.round{border-radius:1000px}dialog.collapse,.reveal-modal.collapse{padding:0}dialog.full,.reveal-modal.full{top:0;left:0;height:100vh;min-height:100vh;margin-left:0 !important}}@media only screen and (min-width: 40.063em) and (min-width: 40.063em){dialog.tiny,.reveal-modal.tiny{margin-left:-15%;width:30%}}@media only screen and (min-width: 40.063em) and (min-width: 40.063em){dialog.small,.reveal-modal.small{margin-left:-20%;width:40%}}@media only screen and (min-width: 40.063em) and (min-width: 40.063em){dialog.medium,.reveal-modal.medium{margin-left:-30%;width:60%}}@media only screen and (min-width: 40.063em) and (min-width: 40.063em){dialog.large,.reveal-modal.large{margin-left:-35%;width:70%}}@media only screen and (min-width: 40.063em) and (min-width: 40.063em){dialog.xlarge,.reveal-modal.xlarge{margin-left:-47.5%;width:95%}}@media only screen and (min-width: 40.063em) and (min-width: 40.063em){dialog.full,.reveal-modal.full{margin-left:-50vw;width:100vw}}@media print{dialog,.reveal-modal{background:#fff !important}}.has-tip{border-bottom:dotted 1px #ccc;cursor:help;font-weight:bold;color:#333}.has-tip:hover,.has-tip:focus{border-bottom:dotted 1px #003f54;color:#008cba}.has-tip.tip-left,.has-tip.tip-right{float:none !important}.tooltip{display:none;position:absolute;z-index:999;font-weight:normal;font-size:0.875rem;line-height:1.3;padding:0.75rem;max-width:85%;left:50%;width:100%;color:#fff;background:#333}.tooltip>.nub{display:block;left:5px;position:absolute;width:0;height:0;border:solid 5px;border-color:transparent transparent #333 transparent;top:-10px}.tooltip>.nub.rtl{left:auto;right:5px}.tooltip.radius{border-radius:3px}.tooltip.round{border-radius:1000px}.tooltip.round>.nub{left:2rem}.tooltip.opened{color:#008cba !important;border-bottom:dotted 1px #003f54 !important}.tap-to-close{display:block;font-size:0.625rem;color:#777;font-weight:normal}@media only screen and (min-width: 40.063em){.tooltip>.nub{border-color:transparent transparent #333 transparent;top:-10px}.tooltip.tip-top>.nub{border-color:#333 transparent transparent transparent;top:auto;bottom:-10px}.tooltip.tip-left,.tooltip.tip-right{float:none !important}.tooltip.tip-left>.nub{border-color:transparent transparent transparent #333;right:-10px;left:auto;top:50%;margin-top:-5px}.tooltip.tip-right>.nub{border-color:transparent #333 transparent transparent;right:auto;left:-10px;top:50%;margin-top:-5px}}.clearing-thumbs,[data-clearing]{margin-bottom:0;margin-left:0;list-style:none}.clearing-thumbs:before,.clearing-thumbs:after,[data-clearing]:before,[data-clearing]:after{content:" ";display:table}.clearing-thumbs:after,[data-clearing]:after{clear:both}.clearing-thumbs li,[data-clearing] li{float:left;margin-right:10px}.clearing-thumbs[class*="block-grid-"] li,[data-clearing][class*="block-grid-"] li{margin-right:0}.clearing-blackout{background:#333;position:fixed;width:100%;height:100%;top:0;left:0;z-index:998}.clearing-blackout .clearing-close{display:block}.clearing-container{position:relative;z-index:998;height:100%;overflow:hidden;margin:0}.clearing-touch-label{position:absolute;top:50%;left:50%;color:#aaa;font-size:0.6em}.visible-img{height:95%;position:relative}.visible-img img{position:absolute;left:50%;top:50%;margin-left:-50%;max-height:100%;max-width:100%}.clearing-caption{color:#ccc;font-size:0.875em;line-height:1.3;margin-bottom:0;text-align:center;bottom:0;background:#333;width:100%;padding:10px 30px 20px;position:absolute;left:0}.clearing-close{z-index:999;padding-left:20px;padding-top:10px;font-size:30px;line-height:1;color:#ccc;display:none}.clearing-close:hover,.clearing-close:focus{color:#ccc}.clearing-assembled .clearing-container{height:100%}.clearing-assembled .clearing-container .carousel>ul{display:none}.clearing-feature li{display:none}.clearing-feature li.clearing-featured-img{display:block}@media only screen and (min-width: 40.063em){.clearing-main-prev,.clearing-main-next{position:absolute;height:100%;width:40px;top:0}.clearing-main-prev>span,.clearing-main-next>span{position:absolute;top:50%;display:block;width:0;height:0;border:solid 12px}.clearing-main-prev>span:hover,.clearing-main-next>span:hover{opacity:0.8}.clearing-main-prev{left:0}.clearing-main-prev>span{left:5px;border-color:transparent;border-right-color:#ccc}.clearing-main-next{right:0}.clearing-main-next>span{border-color:transparent;border-left-color:#ccc}.clearing-main-prev.disabled,.clearing-main-next.disabled{opacity:0.3}.clearing-assembled .clearing-container .carousel{background:rgba(51,51,51,0.8);height:120px;margin-top:10px;text-align:center}.clearing-assembled .clearing-container .carousel>ul{display:inline-block;z-index:999;height:100%;position:relative;float:none}.clearing-assembled .clearing-container .carousel>ul li{display:block;width:120px;min-height:inherit;float:left;overflow:hidden;margin-right:0;padding:0;position:relative;cursor:pointer;opacity:0.4;clear:none}.clearing-assembled .clearing-container .carousel>ul li.fix-height img{height:100%;max-width:none}.clearing-assembled .clearing-container .carousel>ul li a.th{border:none;box-shadow:none;display:block}.clearing-assembled .clearing-container .carousel>ul li img{cursor:pointer !important;width:100% !important}.clearing-assembled .clearing-container .carousel>ul li.visible{opacity:1}.clearing-assembled .clearing-container .carousel>ul li:hover{opacity:0.8}.clearing-assembled .clearing-container .visible-img{background:#333;overflow:hidden;height:85%}.clearing-close{position:absolute;top:10px;right:20px;padding-left:0;padding-top:0}}.progress{background-color:#f6f6f6;height:1.5625rem;border:1px solid #fff;padding:0.125rem;margin-bottom:0.625rem}.progress .meter{background:#008cba;height:100%;display:block}.progress.secondary .meter{background:#e7e7e7;height:100%;display:block}.progress.success .meter{background:#43ac6a;height:100%;display:block}.progress.alert .meter{background:#f04124;height:100%;display:block}.progress.radius{border-radius:3px}.progress.radius .meter{border-radius:2px}.progress.round{border-radius:1000px}.progress.round .meter{border-radius:999px}.sub-nav{display:block;width:auto;overflow:hidden;margin:-0.25rem 0 1.125rem;padding-top:0.25rem;margin-right:0;margin-left:-0.75rem}.sub-nav dt{text-transform:uppercase}.sub-nav dt,.sub-nav dd,.sub-nav li{float:left;display:inline;margin-left:1rem;margin-bottom:0.625rem;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;font-weight:normal;font-size:0.875rem;color:#999}.sub-nav dt a,.sub-nav dd a,.sub-nav li a{text-decoration:none;color:#999;padding:0.1875rem 1rem}.sub-nav dt a:hover,.sub-nav dd a:hover,.sub-nav li a:hover{color:#737373}.sub-nav dt.active a,.sub-nav dd.active a,.sub-nav li.active a{border-radius:3px;font-weight:normal;background:#008cba;padding:0.1875rem 1rem;cursor:default;color:#fff}.sub-nav dt.active a:hover,.sub-nav dd.active a:hover,.sub-nav li.active a:hover{background:#0078a0}.joyride-list{display:none}.joyride-tip-guide{display:none;position:absolute;background:#333;color:#fff;z-index:101;top:0;left:2.5%;font-family:inherit;font-weight:normal;width:95%}.lt-ie9 .joyride-tip-guide{max-width:800px;left:50%;margin-left:-400px}.joyride-content-wrapper{width:100%;padding:1.125rem 1.25rem 1.5rem}.joyride-content-wrapper .button{margin-bottom:0 !important}.joyride-tip-guide .joyride-nub{display:block;position:absolute;left:22px;width:0;height:0;border:10px solid #333}.joyride-tip-guide .joyride-nub.top{border-top-style:solid;border-color:#333;border-top-color:transparent !important;border-left-color:transparent !important;border-right-color:transparent !important;top:-20px}.joyride-tip-guide .joyride-nub.bottom{border-bottom-style:solid;border-color:#333 !important;border-bottom-color:transparent !important;border-left-color:transparent !important;border-right-color:transparent !important;bottom:-20px}.joyride-tip-guide .joyride-nub.right{right:-20px}.joyride-tip-guide .joyride-nub.left{left:-20px}.joyride-tip-guide h1,.joyride-tip-guide h2,.joyride-tip-guide h3,.joyride-tip-guide h4,.joyride-tip-guide h5,.joyride-tip-guide h6{line-height:1.25;margin:0;font-weight:bold;color:#fff}.joyride-tip-guide p{margin:0 0 1.125rem 0;font-size:0.875rem;line-height:1.3}.joyride-timer-indicator-wrap{width:50px;height:3px;border:solid 1px #555;position:absolute;right:1.0625rem;bottom:1rem}.joyride-timer-indicator{display:block;width:0;height:inherit;background:#666}.joyride-close-tip{position:absolute;right:12px;top:10px;color:#777 !important;text-decoration:none;font-size:24px;font-weight:normal;line-height:0.5 !important}.joyride-close-tip:hover,.joyride-close-tip:focus{color:#eee !important}.joyride-modal-bg{position:fixed;height:100%;width:100%;background:transparent;background:rgba(0,0,0,0.5);z-index:100;display:none;top:0;left:0;cursor:pointer}.joyride-expose-wrapper{background-color:#ffffff;position:absolute;border-radius:3px;z-index:102;box-shadow:0 0 15px #fff}.joyride-expose-cover{background:transparent;border-radius:3px;position:absolute;z-index:9999;top:0;left:0}@media only screen and (min-width: 40.063em){.joyride-tip-guide{width:300px;left:inherit}.joyride-tip-guide .joyride-nub.bottom{border-color:#333 !important;border-bottom-color:transparent !important;border-left-color:transparent !important;border-right-color:transparent !important;bottom:-20px}.joyride-tip-guide .joyride-nub.right{border-color:#333 !important;border-top-color:transparent !important;border-right-color:transparent !important;border-bottom-color:transparent !important;top:22px;left:auto;right:-20px}.joyride-tip-guide .joyride-nub.left{border-color:#333 !important;border-top-color:transparent !important;border-left-color:transparent !important;border-bottom-color:transparent !important;top:22px;left:-20px;right:auto}}.label{font-weight:normal;font-family:"Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;text-align:center;text-decoration:none;line-height:1;white-space:nowrap;display:inline-block;position:relative;margin-bottom:inherit;padding:0.25rem 0.5rem 0.375rem;font-size:0.6875rem;background-color:#008cba;color:#fff}.label.radius{border-radius:3px}.label.round{border-radius:1000px}.label.alert{background-color:#f04124;color:#fff}.label.success{background-color:#43ac6a;color:#fff}.label.secondary{background-color:#e7e7e7;color:#333}.off-canvas-wrap{-webkit-backface-visibility:hidden;position:relative;width:100%;overflow:hidden}.off-canvas-wrap.move-right,.off-canvas-wrap.move-left{min-height:100%;-webkit-overflow-scrolling:touch}.inner-wrap{-webkit-backface-visibility:hidden;position:relative;width:100%;-webkit-transition:-webkit-transform 500ms ease;-moz-transition:-moz-transform 500ms ease;-ms-transition:-ms-transform 500ms ease;-o-transition:-o-transform 500ms ease;transition:transform 500ms ease}.inner-wrap:before,.inner-wrap:after{content:" ";display:table}.inner-wrap:after{clear:both}.tab-bar{-webkit-backface-visibility:hidden;background:#333;color:#fff;height:2.8125rem;line-height:2.8125rem;position:relative}.tab-bar h1,.tab-bar h2,.tab-bar h3,.tab-bar h4,.tab-bar h5,.tab-bar h6{color:#fff;font-weight:bold;line-height:2.8125rem;margin:0}.tab-bar h1,.tab-bar h2,.tab-bar h3,.tab-bar h4{font-size:1.125rem}.left-small{width:2.8125rem;height:2.8125rem;position:absolute;top:0;border-right:solid 1px #1a1a1a;left:0}.right-small{width:2.8125rem;height:2.8125rem;position:absolute;top:0;border-left:solid 1px #1a1a1a;right:0}.tab-bar-section{padding:0 0.625rem;position:absolute;text-align:center;height:2.8125rem;top:0}@media only screen and (min-width: 40.063em){.tab-bar-section{text-align:left}}.tab-bar-section.left{left:0;right:2.8125rem}.tab-bar-section.right{left:2.8125rem;right:0}.tab-bar-section.middle{left:2.8125rem;right:2.8125rem}.tab-bar .menu-icon{text-indent:2.1875rem;width:2.8125rem;height:2.8125rem;display:block;line-height:2.0625rem;padding:0;color:#fff;position:relative;transform:translate3d(0, 0, 0)}.tab-bar .menu-icon span:after{content:'';position:absolute;display:block;height:0;top:50%;margin-top:-0.5rem;left:0.90625rem;box-shadow:0 0px 0 1px #fff,0 7px 0 1px #fff,0 14px 0 1px #fff;width:1rem}.tab-bar .menu-icon span:hover:after{box-shadow:0 0px 0 1px #b3b3b3,0 7px 0 1px #b3b3b3,0 14px 0 1px #b3b3b3}.left-off-canvas-menu{-webkit-backface-visibility:hidden;width:15.625rem;top:0;bottom:0;position:absolute;overflow-y:auto;background:#333;z-index:1001;box-sizing:content-box;transition:transform 500ms ease 0s;-webkit-overflow-scrolling:touch;-ms-transform:translate(-100%, 0);-webkit-transform:translate3d(-100%, 0, 0);-moz-transform:translate3d(-100%, 0, 0);-ms-transform:translate3d(-100%, 0, 0);-o-transform:translate3d(-100%, 0, 0);transform:translate3d(-100%, 0, 0);left:0}.left-off-canvas-menu *{-webkit-backface-visibility:hidden}.right-off-canvas-menu{-webkit-backface-visibility:hidden;width:15.625rem;top:0;bottom:0;position:absolute;overflow-y:auto;background:#333;z-index:1001;box-sizing:content-box;transition:transform 500ms ease 0s;-webkit-overflow-scrolling:touch;-ms-transform:translate(100%, 0);-webkit-transform:translate3d(100%, 0, 0);-moz-transform:translate3d(100%, 0, 0);-ms-transform:translate3d(100%, 0, 0);-o-transform:translate3d(100%, 0, 0);transform:translate3d(100%, 0, 0);right:0}.right-off-canvas-menu *{-webkit-backface-visibility:hidden}ul.off-canvas-list{list-style-type:none;padding:0;margin:0}ul.off-canvas-list li label{padding:0.3rem 0.9375rem;color:#999;text-transform:uppercase;font-weight:bold;background:#444;border-top:1px solid #5e5e5e;border-bottom:none;margin:0}ul.off-canvas-list li a{display:block;padding:0.66667rem;color:rgba(255,255,255,0.7);border-bottom:1px solid #262626;transition:background 300ms ease}ul.off-canvas-list li a:hover{background:#242424}.move-right>.inner-wrap{-ms-transform:translate(15.625rem, 0);-webkit-transform:translate3d(15.625rem, 0, 0);-moz-transform:translate3d(15.625rem, 0, 0);-ms-transform:translate3d(15.625rem, 0, 0);-o-transform:translate3d(15.625rem, 0, 0);transform:translate3d(15.625rem, 0, 0)}.move-right .exit-off-canvas{-webkit-backface-visibility:hidden;transition:background 300ms ease;cursor:pointer;box-shadow:-4px 0 4px rgba(0,0,0,0.5),4px 0 4px rgba(0,0,0,0.5);display:block;position:absolute;background:rgba(255,255,255,0.2);top:0;bottom:0;left:0;right:0;z-index:1002;-webkit-tap-highlight-color:rgba(0,0,0,0)}@media only screen and (min-width: 40.063em){.move-right .exit-off-canvas:hover{background:rgba(255,255,255,0.05)}}.move-left>.inner-wrap{-ms-transform:translate(-15.625rem, 0);-webkit-transform:translate3d(-15.625rem, 0, 0);-moz-transform:translate3d(-15.625rem, 0, 0);-ms-transform:translate3d(-15.625rem, 0, 0);-o-transform:translate3d(-15.625rem, 0, 0);transform:translate3d(-15.625rem, 0, 0)}.move-left .exit-off-canvas{-webkit-backface-visibility:hidden;transition:background 300ms ease;cursor:pointer;box-shadow:-4px 0 4px rgba(0,0,0,0.5),4px 0 4px rgba(0,0,0,0.5);display:block;position:absolute;background:rgba(255,255,255,0.2);top:0;bottom:0;left:0;right:0;z-index:1002;-webkit-tap-highlight-color:rgba(0,0,0,0)}@media only screen and (min-width: 40.063em){.move-left .exit-off-canvas:hover{background:rgba(255,255,255,0.05)}}.offcanvas-overlap .left-off-canvas-menu,.offcanvas-overlap .right-off-canvas-menu{-ms-transform:none;-webkit-transform:none;-moz-transform:none;-o-transform:none;transform:none;z-index:1003}.offcanvas-overlap .exit-offcanvas-menu{-webkit-backface-visibility:hidden;transition:background 300ms ease;cursor:pointer;box-shadow:-4px 0 4px rgba(0,0,0,0.5),4px 0 4px rgba(0,0,0,0.5);display:block;position:absolute;background:rgba(255,255,255,0.2);top:0;bottom:0;left:0;right:0;z-index:1002;-webkit-tap-highlight-color:rgba(0,0,0,0);z-index:1002}@media only screen and (min-width: 40.063em){.offcanvas-overlap .exit-offcanvas-menu:hover{background:rgba(255,255,255,0.05)}}.no-csstransforms .left-off-canvas-menu{left:-15.625rem}.no-csstransforms .right-off-canvas-menu{right:-15.625rem}.no-csstransforms .move-left>.inner-wrap{right:15.625rem}.no-csstransforms .move-right>.inner-wrap{left:15.625rem}.f-dropdown{position:absolute;left:-9999px;list-style:none;margin-left:0;width:100%;max-height:none;height:auto;background:#fff;border:solid 1px #ccc;font-size:0.875rem;z-index:99;margin-top:2px;max-width:200px}.f-dropdown>*:first-child{margin-top:0}.f-dropdown>*:last-child{margin-bottom:0}.f-dropdown:before{content:"";display:block;width:0;height:0;border:inset 6px;border-color:transparent transparent #fff transparent;border-bottom-style:solid;position:absolute;top:-12px;left:10px;z-index:99}.f-dropdown:after{content:"";display:block;width:0;height:0;border:inset 7px;border-color:transparent transparent #ccc transparent;border-bottom-style:solid;position:absolute;top:-14px;left:9px;z-index:98}.f-dropdown.right:before{left:auto;right:10px}.f-dropdown.right:after{left:auto;right:9px}.f-dropdown.drop-right{position:absolute;left:-9999px;list-style:none;margin-left:0;width:100%;max-height:none;height:auto;background:#fff;border:solid 1px #ccc;font-size:0.875rem;z-index:99;margin-top:0;margin-left:2px;max-width:200px}.f-dropdown.drop-right>*:first-child{margin-top:0}.f-dropdown.drop-right>*:last-child{margin-bottom:0}.f-dropdown.drop-right:before{content:"";display:block;width:0;height:0;border:inset 6px;border-color:transparent #fff transparent transparent;border-right-style:solid;position:absolute;top:10px;left:-12px;z-index:99}.f-dropdown.drop-right:after{content:"";display:block;width:0;height:0;border:inset 7px;border-color:transparent #ccc transparent transparent;border-right-style:solid;position:absolute;top:9px;left:-14px;z-index:98}.f-dropdown.drop-left{position:absolute;left:-9999px;list-style:none;margin-left:0;width:100%;max-height:none;height:auto;background:#fff;border:solid 1px #ccc;font-size:0.875rem;z-index:99;margin-top:0;margin-left:-2px;max-width:200px}.f-dropdown.drop-left>*:first-child{margin-top:0}.f-dropdown.drop-left>*:last-child{margin-bottom:0}.f-dropdown.drop-left:before{content:"";display:block;width:0;height:0;border:inset 6px;border-color:transparent transparent transparent #fff;border-left-style:solid;position:absolute;top:10px;right:-12px;left:auto;z-index:99}.f-dropdown.drop-left:after{content:"";display:block;width:0;height:0;border:inset 7px;border-color:transparent transparent transparent #ccc;border-left-style:solid;position:absolute;top:9px;right:-14px;left:auto;z-index:98}.f-dropdown.drop-top{position:absolute;left:-9999px;list-style:none;margin-left:0;width:100%;max-height:none;height:auto;background:#fff;border:solid 1px #ccc;font-size:0.875rem;z-index:99;margin-top:-2px;margin-left:0;max-width:200px}.f-dropdown.drop-top>*:first-child{margin-top:0}.f-dropdown.drop-top>*:last-child{margin-bottom:0}.f-dropdown.drop-top:before{content:"";display:block;width:0;height:0;border:inset 6px;border-color:#fff transparent transparent transparent;border-top-style:solid;position:absolute;top:auto;bottom:-12px;left:10px;right:auto;z-index:99}.f-dropdown.drop-top:after{content:"";display:block;width:0;height:0;border:inset 7px;border-color:#ccc transparent transparent transparent;border-top-style:solid;position:absolute;top:auto;bottom:-14px;left:9px;right:auto;z-index:98}.f-dropdown li{font-size:0.875rem;cursor:pointer;line-height:1.125rem;margin:0}.f-dropdown li:hover,.f-dropdown li:focus{background:#eee}.f-dropdown li a{display:block;padding:0.5rem;color:#555}.f-dropdown.content{position:absolute;left:-9999px;list-style:none;margin-left:0;padding:1.25rem;width:100%;height:auto;max-height:none;background:#fff;border:solid 1px #ccc;font-size:0.875rem;z-index:99;max-width:200px}.f-dropdown.content>*:first-child{margin-top:0}.f-dropdown.content>*:last-child{margin-bottom:0}.f-dropdown.tiny{max-width:200px}.f-dropdown.small{max-width:300px}.f-dropdown.medium{max-width:500px}.f-dropdown.large{max-width:800px}table{background:#fff;margin-bottom:1.25rem;border:solid 1px #ddd}table caption{background:transparent;color:#222;font-size:1rem;font-weight:bold}table thead{background:#f5f5f5}table thead tr th,table thead tr td{padding:0.5rem 0.625rem 0.625rem;font-size:0.875rem;font-weight:bold;color:#222}table tfoot{background:#f5f5f5}table tfoot tr th,table tfoot tr td{padding:0.5rem 0.625rem 0.625rem;font-size:0.875rem;font-weight:bold;color:#222}table tr th,table tr td{padding:0.5625rem 0.625rem;font-size:0.875rem;color:#222;text-align:left}table tr.even,table tr.alt,table tr:nth-of-type(even){background:#f9f9f9}table thead tr th,table tfoot tr th,table tfoot tr td,table tbody tr th,table tbody tr td,table tr td{display:table-cell;line-height:1.125rem}form{margin:0 0 1rem}form .row .row{margin:0 -0.5rem}form .row .row .column,form .row .row .columns{padding:0 0.5rem}form .row .row.collapse{margin:0}form .row .row.collapse .column,form .row .row.collapse .columns{padding:0}form .row .row.collapse input{border-bottom-right-radius:0;border-top-right-radius:0}form .row input.column,form .row input.columns,form .row textarea.column,form .row textarea.columns{padding-left:0.5rem}label{font-size:0.875rem;color:#4d4d4d;cursor:pointer;display:block;font-weight:normal;line-height:1.5;margin-bottom:0}label.right{float:none !important;text-align:right}label.inline{margin:0 0 1rem 0;padding:0.5625rem 0}label small{text-transform:capitalize;color:#676767}select::-ms-expand{display:none}@-moz-document url-prefix(){select{background:#fafafa}select:hover{background:#f3f3f3}}.prefix,.postfix{display:block;position:relative;z-index:2;text-align:center;width:100%;padding-top:0;padding-bottom:0;border-style:solid;border-width:1px;overflow:hidden;font-size:0.875rem;height:2.3125rem;line-height:2.3125rem}.postfix.button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;text-align:center;line-height:2.125rem;border:none}.prefix.button{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;text-align:center;line-height:2.125rem;border:none}.prefix.button.radius{border-radius:0;border-bottom-left-radius:3px;border-top-left-radius:3px}.postfix.button.radius{border-radius:0;border-bottom-right-radius:3px;border-top-right-radius:3px}.prefix.button.round{border-radius:0;border-bottom-left-radius:1000px;border-top-left-radius:1000px}.postfix.button.round{border-radius:0;border-bottom-right-radius:1000px;border-top-right-radius:1000px}span.prefix,label.prefix{background:#f2f2f2;border-right:none;color:#333;border-color:#ccc}span.prefix.radius,label.prefix.radius{border-radius:0;border-bottom-left-radius:3px;border-top-left-radius:3px}span.postfix,label.postfix{background:#f2f2f2;border-left:none;color:#333;border-color:#ccc}span.postfix.radius,label.postfix.radius{border-radius:0;border-bottom-right-radius:3px;border-top-right-radius:3px}input[type="text"],input[type="password"],input[type="date"],input[type="datetime"],input[type="datetime-local"],input[type="month"],input[type="week"],input[type="email"],input[type="number"],input[type="search"],input[type="tel"],input[type="time"],input[type="url"],textarea{-webkit-appearance:none;background-color:#fff;font-family:inherit;border:1px solid #ccc;box-shadow:inset 0 1px 2px rgba(0,0,0,0.1);color:rgba(0,0,0,0.75);display:block;font-size:0.875rem;margin:0 0 1rem 0;padding:0.5rem;height:2.3125rem;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;transition:box-shadow 0.45s,border-color 0.45s ease-in-out}input[type="text"]:focus,input[type="password"]:focus,input[type="date"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="month"]:focus,input[type="week"]:focus,input[type="email"]:focus,input[type="number"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="time"]:focus,input[type="url"]:focus,textarea:focus{box-shadow:0 0 5px #999;border-color:#999}input[type="text"]:focus,input[type="password"]:focus,input[type="date"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="month"]:focus,input[type="week"]:focus,input[type="email"]:focus,input[type="number"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="time"]:focus,input[type="url"]:focus,textarea:focus{background:#fafafa;border-color:#999;outline:none}input[type="text"][disabled],fieldset[disabled] input[type="text"],input[type="password"][disabled],fieldset[disabled] input[type="password"],input[type="date"][disabled],fieldset[disabled] input[type="date"],input[type="datetime"][disabled],fieldset[disabled] input[type="datetime"],input[type="datetime-local"][disabled],fieldset[disabled] input[type="datetime-local"],input[type="month"][disabled],fieldset[disabled] input[type="month"],input[type="week"][disabled],fieldset[disabled] input[type="week"],input[type="email"][disabled],fieldset[disabled] input[type="email"],input[type="number"][disabled],fieldset[disabled] input[type="number"],input[type="search"][disabled],fieldset[disabled] input[type="search"],input[type="tel"][disabled],fieldset[disabled] input[type="tel"],input[type="time"][disabled],fieldset[disabled] input[type="time"],input[type="url"][disabled],fieldset[disabled] input[type="url"],textarea[disabled],fieldset[disabled] textarea{background-color:#ddd}input[type="text"].radius,input[type="password"].radius,input[type="date"].radius,input[type="datetime"].radius,input[type="datetime-local"].radius,input[type="month"].radius,input[type="week"].radius,input[type="email"].radius,input[type="number"].radius,input[type="search"].radius,input[type="tel"].radius,input[type="time"].radius,input[type="url"].radius,textarea.radius{border-radius:3px}input[type="submit"]{-webkit-appearance:none}textarea[rows]{height:auto}select{-webkit-appearance:none !important;background-color:#fafafa;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg==");background-repeat:no-repeat;background-position:97% center;border:1px solid #ccc;padding:0.5rem;font-size:0.875rem;color:rgba(0,0,0,0.75);line-height:normal;border-radius:0;height:2.3125rem}select.radius{border-radius:3px}select:hover{background-color:#f3f3f3;border-color:#999}input[type="file"],input[type="checkbox"],input[type="radio"],select{margin:0 0 1rem 0}input[type="checkbox"]+label,input[type="radio"]+label{display:inline-block;margin-left:0.5rem;margin-right:1rem;margin-bottom:0;vertical-align:baseline}input[type="file"]{width:100%}fieldset{border:1px solid #ddd;padding:1.25rem;margin:1.125rem 0}fieldset legend{font-weight:bold;background:#fff;padding:0 0.1875rem;margin:0;margin-left:-0.1875rem}[data-abide] .error small.error,[data-abide] span.error,[data-abide] small.error{display:block;padding:0.375rem 0.5625rem 0.5625rem;margin-top:-1px;margin-bottom:1rem;font-size:0.75rem;font-weight:normal;font-style:italic;background:#f04124;color:#fff}[data-abide] span.error,[data-abide] small.error{display:none}span.error,small.error{display:block;padding:0.375rem 0.5625rem 0.5625rem;margin-top:-1px;margin-bottom:1rem;font-size:0.75rem;font-weight:normal;font-style:italic;background:#f04124;color:#fff}.error input,.error textarea,.error select{margin-bottom:0}.error input[type="checkbox"],.error input[type="radio"]{margin-bottom:1rem}.error label,.error label.error{color:#f04124}.error small.error{display:block;padding:0.375rem 0.5625rem 0.5625rem;margin-top:-1px;margin-bottom:1rem;font-size:0.75rem;font-weight:normal;font-style:italic;background:#f04124;color:#fff}.error>label>small{color:#676767;background:transparent;padding:0;text-transform:capitalize;font-style:normal;font-size:60%;margin:0;display:inline}.error span.error-message{display:block}input.error,textarea.error{margin-bottom:0}label.error{color:#f04124}.range-slider{display:block;position:relative;width:100%;height:1rem;border:1px solid #ddd;margin:1.25rem 0;-ms-touch-action:none;touch-action:none;background:#fafafa}.range-slider.vertical-range{display:block;position:relative;width:100%;height:1rem;border:1px solid #ddd;margin:1.25rem 0;-ms-touch-action:none;touch-action:none;display:inline-block;width:1rem;height:12.5rem}.range-slider.vertical-range .range-slider-handle{margin-top:0;margin-left:-0.5rem;position:absolute;bottom:-10.5rem}.range-slider.vertical-range .range-slider-active-segment{width:0.875rem;height:auto;bottom:0}.range-slider.radius{background:#fafafa;border-radius:3px}.range-slider.radius .range-slider-handle{background:#008cba;border-radius:3px}.range-slider.radius .range-slider-handle:hover{background:#007ba4}.range-slider.round{background:#fafafa;border-radius:1000px}.range-slider.round .range-slider-handle{background:#008cba;border-radius:1000px}.range-slider.round .range-slider-handle:hover{background:#007ba4}.range-slider-active-segment{display:inline-block;position:absolute;height:0.875rem;background:#e5e5e5}.range-slider-handle{display:inline-block;position:absolute;z-index:1;top:-0.3125rem;width:2rem;height:1.375rem;border:1px solid none;cursor:pointer;background:#008cba}.range-slider-handle:hover{background:#007ba4}[class*="block-grid-"]{display:block;padding:0;margin:0 -0.625rem}[class*="block-grid-"]:before,[class*="block-grid-"]:after{content:" ";display:table}[class*="block-grid-"]:after{clear:both}[class*="block-grid-"]>li{display:block;height:auto;float:left;padding:0 0.625rem 1.25rem}@media only screen{.small-block-grid-1>li{width:100%;list-style:none}.small-block-grid-1>li:nth-of-type(1n){clear:none}.small-block-grid-1>li:nth-of-type(1n+1){clear:both}.small-block-grid-2>li{width:50%;list-style:none}.small-block-grid-2>li:nth-of-type(1n){clear:none}.small-block-grid-2>li:nth-of-type(2n+1){clear:both}.small-block-grid-3>li{width:33.33333%;list-style:none}.small-block-grid-3>li:nth-of-type(1n){clear:none}.small-block-grid-3>li:nth-of-type(3n+1){clear:both}.small-block-grid-4>li{width:25%;list-style:none}.small-block-grid-4>li:nth-of-type(1n){clear:none}.small-block-grid-4>li:nth-of-type(4n+1){clear:both}.small-block-grid-5>li{width:20%;list-style:none}.small-block-grid-5>li:nth-of-type(1n){clear:none}.small-block-grid-5>li:nth-of-type(5n+1){clear:both}.small-block-grid-6>li{width:16.66667%;list-style:none}.small-block-grid-6>li:nth-of-type(1n){clear:none}.small-block-grid-6>li:nth-of-type(6n+1){clear:both}.small-block-grid-7>li{width:14.28571%;list-style:none}.small-block-grid-7>li:nth-of-type(1n){clear:none}.small-block-grid-7>li:nth-of-type(7n+1){clear:both}.small-block-grid-8>li{width:12.5%;list-style:none}.small-block-grid-8>li:nth-of-type(1n){clear:none}.small-block-grid-8>li:nth-of-type(8n+1){clear:both}.small-block-grid-9>li{width:11.11111%;list-style:none}.small-block-grid-9>li:nth-of-type(1n){clear:none}.small-block-grid-9>li:nth-of-type(9n+1){clear:both}.small-block-grid-10>li{width:10%;list-style:none}.small-block-grid-10>li:nth-of-type(1n){clear:none}.small-block-grid-10>li:nth-of-type(10n+1){clear:both}.small-block-grid-11>li{width:9.09091%;list-style:none}.small-block-grid-11>li:nth-of-type(1n){clear:none}.small-block-grid-11>li:nth-of-type(11n+1){clear:both}.small-block-grid-12>li{width:8.33333%;list-style:none}.small-block-grid-12>li:nth-of-type(1n){clear:none}.small-block-grid-12>li:nth-of-type(12n+1){clear:both}}@media only screen and (min-width: 40.063em){.medium-block-grid-1>li{width:100%;list-style:none}.medium-block-grid-1>li:nth-of-type(1n){clear:none}.medium-block-grid-1>li:nth-of-type(1n+1){clear:both}.medium-block-grid-2>li{width:50%;list-style:none}.medium-block-grid-2>li:nth-of-type(1n){clear:none}.medium-block-grid-2>li:nth-of-type(2n+1){clear:both}.medium-block-grid-3>li{width:33.33333%;list-style:none}.medium-block-grid-3>li:nth-of-type(1n){clear:none}.medium-block-grid-3>li:nth-of-type(3n+1){clear:both}.medium-block-grid-4>li{width:25%;list-style:none}.medium-block-grid-4>li:nth-of-type(1n){clear:none}.medium-block-grid-4>li:nth-of-type(4n+1){clear:both}.medium-block-grid-5>li{width:20%;list-style:none}.medium-block-grid-5>li:nth-of-type(1n){clear:none}.medium-block-grid-5>li:nth-of-type(5n+1){clear:both}.medium-block-grid-6>li{width:16.66667%;list-style:none}.medium-block-grid-6>li:nth-of-type(1n){clear:none}.medium-block-grid-6>li:nth-of-type(6n+1){clear:both}.medium-block-grid-7>li{width:14.28571%;list-style:none}.medium-block-grid-7>li:nth-of-type(1n){clear:none}.medium-block-grid-7>li:nth-of-type(7n+1){clear:both}.medium-block-grid-8>li{width:12.5%;list-style:none}.medium-block-grid-8>li:nth-of-type(1n){clear:none}.medium-block-grid-8>li:nth-of-type(8n+1){clear:both}.medium-block-grid-9>li{width:11.11111%;list-style:none}.medium-block-grid-9>li:nth-of-type(1n){clear:none}.medium-block-grid-9>li:nth-of-type(9n+1){clear:both}.medium-block-grid-10>li{width:10%;list-style:none}.medium-block-grid-10>li:nth-of-type(1n){clear:none}.medium-block-grid-10>li:nth-of-type(10n+1){clear:both}.medium-block-grid-11>li{width:9.09091%;list-style:none}.medium-block-grid-11>li:nth-of-type(1n){clear:none}.medium-block-grid-11>li:nth-of-type(11n+1){clear:both}.medium-block-grid-12>li{width:8.33333%;list-style:none}.medium-block-grid-12>li:nth-of-type(1n){clear:none}.medium-block-grid-12>li:nth-of-type(12n+1){clear:both}}@media only screen and (min-width: 64.063em){.large-block-grid-1>li{width:100%;list-style:none}.large-block-grid-1>li:nth-of-type(1n){clear:none}.large-block-grid-1>li:nth-of-type(1n+1){clear:both}.large-block-grid-2>li{width:50%;list-style:none}.large-block-grid-2>li:nth-of-type(1n){clear:none}.large-block-grid-2>li:nth-of-type(2n+1){clear:both}.large-block-grid-3>li{width:33.33333%;list-style:none}.large-block-grid-3>li:nth-of-type(1n){clear:none}.large-block-grid-3>li:nth-of-type(3n+1){clear:both}.large-block-grid-4>li{width:25%;list-style:none}.large-block-grid-4>li:nth-of-type(1n){clear:none}.large-block-grid-4>li:nth-of-type(4n+1){clear:both}.large-block-grid-5>li{width:20%;list-style:none}.large-block-grid-5>li:nth-of-type(1n){clear:none}.large-block-grid-5>li:nth-of-type(5n+1){clear:both}.large-block-grid-6>li{width:16.66667%;list-style:none}.large-block-grid-6>li:nth-of-type(1n){clear:none}.large-block-grid-6>li:nth-of-type(6n+1){clear:both}.large-block-grid-7>li{width:14.28571%;list-style:none}.large-block-grid-7>li:nth-of-type(1n){clear:none}.large-block-grid-7>li:nth-of-type(7n+1){clear:both}.large-block-grid-8>li{width:12.5%;list-style:none}.large-block-grid-8>li:nth-of-type(1n){clear:none}.large-block-grid-8>li:nth-of-type(8n+1){clear:both}.large-block-grid-9>li{width:11.11111%;list-style:none}.large-block-grid-9>li:nth-of-type(1n){clear:none}.large-block-grid-9>li:nth-of-type(9n+1){clear:both}.large-block-grid-10>li{width:10%;list-style:none}.large-block-grid-10>li:nth-of-type(1n){clear:none}.large-block-grid-10>li:nth-of-type(10n+1){clear:both}.large-block-grid-11>li{width:9.09091%;list-style:none}.large-block-grid-11>li:nth-of-type(1n){clear:none}.large-block-grid-11>li:nth-of-type(11n+1){clear:both}.large-block-grid-12>li{width:8.33333%;list-style:none}.large-block-grid-12>li:nth-of-type(1n){clear:none}.large-block-grid-12>li:nth-of-type(12n+1){clear:both}}.flex-video{position:relative;padding-top:1.5625rem;padding-bottom:67.5%;height:0;margin-bottom:1rem;overflow:hidden}.flex-video.widescreen{padding-bottom:56.34%}.flex-video.vimeo{padding-top:0}.flex-video iframe,.flex-video object,.flex-video embed,.flex-video video{position:absolute;top:0;left:0;width:100%;height:100%}.keystroke,kbd{background-color:#ededed;border-color:#ddd;color:#222;border-style:solid;border-width:1px;margin:0;font-family:"Consolas","Menlo","Courier",monospace;font-size:inherit;padding:0.125rem 0.25rem 0;border-radius:3px}@media only screen{.show-for-small-only,.show-for-small-up,.show-for-small,.show-for-small-down,.hide-for-medium-only,.hide-for-medium-up,.hide-for-medium,.show-for-medium-down,.hide-for-large-only,.hide-for-large-up,.hide-for-large,.show-for-large-down,.hide-for-xlarge-only,.hide-for-xlarge-up,.hide-for-xxlarge-only,.hide-for-xxlarge-up{display:inherit !important}.hide-for-small-only,.hide-for-small-up,.hide-for-small,.hide-for-small-down,.show-for-medium-only,.show-for-medium-up,.show-for-medium,.hide-for-medium-down,.show-for-large-only,.show-for-large-up,.show-for-large,.hide-for-large-down,.show-for-xlarge-only,.show-for-xlarge-up,.show-for-xxlarge-only,.show-for-xxlarge-up{display:none !important}.visible-for-small-only,.visible-for-small-up,.visible-for-small,.visible-for-small-down,.hidden-for-medium-only,.hidden-for-medium-up,.hidden-for-medium,.visible-for-medium-down,.hidden-for-large-only,.hidden-for-large-up,.hidden-for-large,.visible-for-large-down,.hidden-for-xlarge-only,.hidden-for-xlarge-up,.hidden-for-xxlarge-only,.hidden-for-xxlarge-up{position:static !important;height:auto;width:auto;overflow:visible;clip:auto}.hidden-for-small-only,.hidden-for-small-up,.hidden-for-small,.hidden-for-small-down,.visible-for-medium-only,.visible-for-medium-up,.visible-for-medium,.hidden-for-medium-down,.visible-for-large-only,.visible-for-large-up,.visible-for-large,.hidden-for-large-down,.visible-for-xlarge-only,.visible-for-xlarge-up,.visible-for-xxlarge-only,.visible-for-xxlarge-up{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px)}table.show-for-small-only,table.show-for-small-up,table.show-for-small,table.show-for-small-down,table.hide-for-medium-only,table.hide-for-medium-up,table.hide-for-medium,table.show-for-medium-down,table.hide-for-large-only,table.hide-for-large-up,table.hide-for-large,table.show-for-large-down,table.hide-for-xlarge-only,table.hide-for-xlarge-up,table.hide-for-xxlarge-only,table.hide-for-xxlarge-up{display:table}thead.show-for-small-only,thead.show-for-small-up,thead.show-for-small,thead.show-for-small-down,thead.hide-for-medium-only,thead.hide-for-medium-up,thead.hide-for-medium,thead.show-for-medium-down,thead.hide-for-large-only,thead.hide-for-large-up,thead.hide-for-large,thead.show-for-large-down,thead.hide-for-xlarge-only,thead.hide-for-xlarge-up,thead.hide-for-xxlarge-only,thead.hide-for-xxlarge-up{display:table-header-group !important}tbody.show-for-small-only,tbody.show-for-small-up,tbody.show-for-small,tbody.show-for-small-down,tbody.hide-for-medium-only,tbody.hide-for-medium-up,tbody.hide-for-medium,tbody.show-for-medium-down,tbody.hide-for-large-only,tbody.hide-for-large-up,tbody.hide-for-large,tbody.show-for-large-down,tbody.hide-for-xlarge-only,tbody.hide-for-xlarge-up,tbody.hide-for-xxlarge-only,tbody.hide-for-xxlarge-up{display:table-row-group !important}tr.show-for-small-only,tr.show-for-small-up,tr.show-for-small,tr.show-for-small-down,tr.hide-for-medium-only,tr.hide-for-medium-up,tr.hide-for-medium,tr.show-for-medium-down,tr.hide-for-large-only,tr.hide-for-large-up,tr.hide-for-large,tr.show-for-large-down,tr.hide-for-xlarge-only,tr.hide-for-xlarge-up,tr.hide-for-xxlarge-only,tr.hide-for-xxlarge-up{display:table-row !important}th.show-for-small-only,td.show-for-small-only,th.show-for-small-up,td.show-for-small-up,th.show-for-small,td.show-for-small,th.show-for-small-down,td.show-for-small-down,th.hide-for-medium-only,td.hide-for-medium-only,th.hide-for-medium-up,td.hide-for-medium-up,th.hide-for-medium,td.hide-for-medium,th.show-for-medium-down,td.show-for-medium-down,th.hide-for-large-only,td.hide-for-large-only,th.hide-for-large-up,td.hide-for-large-up,th.hide-for-large,td.hide-for-large,th.show-for-large-down,td.show-for-large-down,th.hide-for-xlarge-only,td.hide-for-xlarge-only,th.hide-for-xlarge-up,td.hide-for-xlarge-up,th.hide-for-xxlarge-only,td.hide-for-xxlarge-only,th.hide-for-xxlarge-up,td.hide-for-xxlarge-up{display:table-cell !important}}@media only screen and (min-width: 40.063em){.hide-for-small-only,.show-for-small-up,.hide-for-small,.hide-for-small-down,.show-for-medium-only,.show-for-medium-up,.show-for-medium,.show-for-medium-down,.hide-for-large-only,.hide-for-large-up,.hide-for-large,.show-for-large-down,.hide-for-xlarge-only,.hide-for-xlarge-up,.hide-for-xxlarge-only,.hide-for-xxlarge-up{display:inherit !important}.show-for-small-only,.hide-for-small-up,.show-for-small,.show-for-small-down,.hide-for-medium-only,.hide-for-medium-up,.hide-for-medium,.hide-for-medium-down,.show-for-large-only,.show-for-large-up,.show-for-large,.hide-for-large-down,.show-for-xlarge-only,.show-for-xlarge-up,.show-for-xxlarge-only,.show-for-xxlarge-up{display:none !important}.hidden-for-small-only,.visible-for-small-up,.hidden-for-small,.hidden-for-small-down,.visible-for-medium-only,.visible-for-medium-up,.visible-for-medium,.visible-for-medium-down,.hidden-for-large-only,.hidden-for-large-up,.hidden-for-large,.visible-for-large-down,.hidden-for-xlarge-only,.hidden-for-xlarge-up,.hidden-for-xxlarge-only,.hidden-for-xxlarge-up{position:static !important;height:auto;width:auto;overflow:visible;clip:auto}.visible-for-small-only,.hidden-for-small-up,.visible-for-small,.visible-for-small-down,.hidden-for-medium-only,.hidden-for-medium-up,.hidden-for-medium,.hidden-for-medium-down,.visible-for-large-only,.visible-for-large-up,.visible-for-large,.hidden-for-large-down,.visible-for-xlarge-only,.visible-for-xlarge-up,.visible-for-xxlarge-only,.visible-for-xxlarge-up{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px)}table.hide-for-small-only,table.show-for-small-up,table.hide-for-small,table.hide-for-small-down,table.show-for-medium-only,table.show-for-medium-up,table.show-for-medium,table.show-for-medium-down,table.hide-for-large-only,table.hide-for-large-up,table.hide-for-large,table.show-for-large-down,table.hide-for-xlarge-only,table.hide-for-xlarge-up,table.hide-for-xxlarge-only,table.hide-for-xxlarge-up{display:table}thead.hide-for-small-only,thead.show-for-small-up,thead.hide-for-small,thead.hide-for-small-down,thead.show-for-medium-only,thead.show-for-medium-up,thead.show-for-medium,thead.show-for-medium-down,thead.hide-for-large-only,thead.hide-for-large-up,thead.hide-for-large,thead.show-for-large-down,thead.hide-for-xlarge-only,thead.hide-for-xlarge-up,thead.hide-for-xxlarge-only,thead.hide-for-xxlarge-up{display:table-header-group !important}tbody.hide-for-small-only,tbody.show-for-small-up,tbody.hide-for-small,tbody.hide-for-small-down,tbody.show-for-medium-only,tbody.show-for-medium-up,tbody.show-for-medium,tbody.show-for-medium-down,tbody.hide-for-large-only,tbody.hide-for-large-up,tbody.hide-for-large,tbody.show-for-large-down,tbody.hide-for-xlarge-only,tbody.hide-for-xlarge-up,tbody.hide-for-xxlarge-only,tbody.hide-for-xxlarge-up{display:table-row-group !important}tr.hide-for-small-only,tr.show-for-small-up,tr.hide-for-small,tr.hide-for-small-down,tr.show-for-medium-only,tr.show-for-medium-up,tr.show-for-medium,tr.show-for-medium-down,tr.hide-for-large-only,tr.hide-for-large-up,tr.hide-for-large,tr.show-for-large-down,tr.hide-for-xlarge-only,tr.hide-for-xlarge-up,tr.hide-for-xxlarge-only,tr.hide-for-xxlarge-up{display:table-row !important}th.hide-for-small-only,td.hide-for-small-only,th.show-for-small-up,td.show-for-small-up,th.hide-for-small,td.hide-for-small,th.hide-for-small-down,td.hide-for-small-down,th.show-for-medium-only,td.show-for-medium-only,th.show-for-medium-up,td.show-for-medium-up,th.show-for-medium,td.show-for-medium,th.show-for-medium-down,td.show-for-medium-down,th.hide-for-large-only,td.hide-for-large-only,th.hide-for-large-up,td.hide-for-large-up,th.hide-for-large,td.hide-for-large,th.show-for-large-down,td.show-for-large-down,th.hide-for-xlarge-only,td.hide-for-xlarge-only,th.hide-for-xlarge-up,td.hide-for-xlarge-up,th.hide-for-xxlarge-only,td.hide-for-xxlarge-only,th.hide-for-xxlarge-up,td.hide-for-xxlarge-up{display:table-cell !important}}@media only screen and (min-width: 64.063em){.hide-for-small-only,.show-for-small-up,.hide-for-small,.hide-for-small-down,.hide-for-medium-only,.show-for-medium-up,.hide-for-medium,.hide-for-medium-down,.show-for-large-only,.show-for-large-up,.show-for-large,.show-for-large-down,.hide-for-xlarge-only,.hide-for-xlarge-up,.hide-for-xxlarge-only,.hide-for-xxlarge-up{display:inherit !important}.show-for-small-only,.hide-for-small-up,.show-for-small,.show-for-small-down,.show-for-medium-only,.hide-for-medium-up,.show-for-medium,.show-for-medium-down,.hide-for-large-only,.hide-for-large-up,.hide-for-large,.hide-for-large-down,.show-for-xlarge-only,.show-for-xlarge-up,.show-for-xxlarge-only,.show-for-xxlarge-up{display:none !important}.hidden-for-small-only,.visible-for-small-up,.hidden-for-small,.hidden-for-small-down,.hidden-for-medium-only,.visible-for-medium-up,.hidden-for-medium,.hidden-for-medium-down,.visible-for-large-only,.visible-for-large-up,.visible-for-large,.visible-for-large-down,.hidden-for-xlarge-only,.hidden-for-xlarge-up,.hidden-for-xxlarge-only,.hidden-for-xxlarge-up{position:static !important;height:auto;width:auto;overflow:visible;clip:auto}.visible-for-small-only,.hidden-for-small-up,.visible-for-small,.visible-for-small-down,.visible-for-medium-only,.hidden-for-medium-up,.visible-for-medium,.visible-for-medium-down,.hidden-for-large-only,.hidden-for-large-up,.hidden-for-large,.hidden-for-large-down,.visible-for-xlarge-only,.visible-for-xlarge-up,.visible-for-xxlarge-only,.visible-for-xxlarge-up{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px)}table.hide-for-small-only,table.show-for-small-up,table.hide-for-small,table.hide-for-small-down,table.hide-for-medium-only,table.show-for-medium-up,table.hide-for-medium,table.hide-for-medium-down,table.show-for-large-only,table.show-for-large-up,table.show-for-large,table.show-for-large-down,table.hide-for-xlarge-only,table.hide-for-xlarge-up,table.hide-for-xxlarge-only,table.hide-for-xxlarge-up{display:table}thead.hide-for-small-only,thead.show-for-small-up,thead.hide-for-small,thead.hide-for-small-down,thead.hide-for-medium-only,thead.show-for-medium-up,thead.hide-for-medium,thead.hide-for-medium-down,thead.show-for-large-only,thead.show-for-large-up,thead.show-for-large,thead.show-for-large-down,thead.hide-for-xlarge-only,thead.hide-for-xlarge-up,thead.hide-for-xxlarge-only,thead.hide-for-xxlarge-up{display:table-header-group !important}tbody.hide-for-small-only,tbody.show-for-small-up,tbody.hide-for-small,tbody.hide-for-small-down,tbody.hide-for-medium-only,tbody.show-for-medium-up,tbody.hide-for-medium,tbody.hide-for-medium-down,tbody.show-for-large-only,tbody.show-for-large-up,tbody.show-for-large,tbody.show-for-large-down,tbody.hide-for-xlarge-only,tbody.hide-for-xlarge-up,tbody.hide-for-xxlarge-only,tbody.hide-for-xxlarge-up{display:table-row-group !important}tr.hide-for-small-only,tr.show-for-small-up,tr.hide-for-small,tr.hide-for-small-down,tr.hide-for-medium-only,tr.show-for-medium-up,tr.hide-for-medium,tr.hide-for-medium-down,tr.show-for-large-only,tr.show-for-large-up,tr.show-for-large,tr.show-for-large-down,tr.hide-for-xlarge-only,tr.hide-for-xlarge-up,tr.hide-for-xxlarge-only,tr.hide-for-xxlarge-up{display:table-row !important}th.hide-for-small-only,td.hide-for-small-only,th.show-for-small-up,td.show-for-small-up,th.hide-for-small,td.hide-for-small,th.hide-for-small-down,td.hide-for-small-down,th.hide-for-medium-only,td.hide-for-medium-only,th.show-for-medium-up,td.show-for-medium-up,th.hide-for-medium,td.hide-for-medium,th.hide-for-medium-down,td.hide-for-medium-down,th.show-for-large-only,td.show-for-large-only,th.show-for-large-up,td.show-for-large-up,th.show-for-large,td.show-for-large,th.show-for-large-down,td.show-for-large-down,th.hide-for-xlarge-only,td.hide-for-xlarge-only,th.hide-for-xlarge-up,td.hide-for-xlarge-up,th.hide-for-xxlarge-only,td.hide-for-xxlarge-only,th.hide-for-xxlarge-up,td.hide-for-xxlarge-up{display:table-cell !important}}@media only screen and (min-width: 90.063em){.hide-for-small-only,.show-for-small-up,.hide-for-small,.hide-for-small-down,.hide-for-medium-only,.show-for-medium-up,.hide-for-medium,.hide-for-medium-down,.hide-for-large-only,.show-for-large-up,.hide-for-large,.hide-for-large-down,.show-for-xlarge-only,.show-for-xlarge-up,.hide-for-xxlarge-only,.hide-for-xxlarge-up{display:inherit !important}.show-for-small-only,.hide-for-small-up,.show-for-small,.show-for-small-down,.show-for-medium-only,.hide-for-medium-up,.show-for-medium,.show-for-medium-down,.show-for-large-only,.hide-for-large-up,.show-for-large,.show-for-large-down,.hide-for-xlarge-only,.hide-for-xlarge-up,.show-for-xxlarge-only,.show-for-xxlarge-up{display:none !important}.hidden-for-small-only,.visible-for-small-up,.hidden-for-small,.hidden-for-small-down,.hidden-for-medium-only,.visible-for-medium-up,.hidden-for-medium,.hidden-for-medium-down,.hidden-for-large-only,.visible-for-large-up,.hidden-for-large,.hidden-for-large-down,.visible-for-xlarge-only,.visible-for-xlarge-up,.hidden-for-xxlarge-only,.hidden-for-xxlarge-up{position:static !important;height:auto;width:auto;overflow:visible;clip:auto}.visible-for-small-only,.hidden-for-small-up,.visible-for-small,.visible-for-small-down,.visible-for-medium-only,.hidden-for-medium-up,.visible-for-medium,.visible-for-medium-down,.visible-for-large-only,.hidden-for-large-up,.visible-for-large,.visible-for-large-down,.hidden-for-xlarge-only,.hidden-for-xlarge-up,.visible-for-xxlarge-only,.visible-for-xxlarge-up{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px)}table.hide-for-small-only,table.show-for-small-up,table.hide-for-small,table.hide-for-small-down,table.hide-for-medium-only,table.show-for-medium-up,table.hide-for-medium,table.hide-for-medium-down,table.hide-for-large-only,table.show-for-large-up,table.hide-for-large,table.hide-for-large-down,table.show-for-xlarge-only,table.show-for-xlarge-up,table.hide-for-xxlarge-only,table.hide-for-xxlarge-up{display:table}thead.hide-for-small-only,thead.show-for-small-up,thead.hide-for-small,thead.hide-for-small-down,thead.hide-for-medium-only,thead.show-for-medium-up,thead.hide-for-medium,thead.hide-for-medium-down,thead.hide-for-large-only,thead.show-for-large-up,thead.hide-for-large,thead.hide-for-large-down,thead.show-for-xlarge-only,thead.show-for-xlarge-up,thead.hide-for-xxlarge-only,thead.hide-for-xxlarge-up{display:table-header-group !important}tbody.hide-for-small-only,tbody.show-for-small-up,tbody.hide-for-small,tbody.hide-for-small-down,tbody.hide-for-medium-only,tbody.show-for-medium-up,tbody.hide-for-medium,tbody.hide-for-medium-down,tbody.hide-for-large-only,tbody.show-for-large-up,tbody.hide-for-large,tbody.hide-for-large-down,tbody.show-for-xlarge-only,tbody.show-for-xlarge-up,tbody.hide-for-xxlarge-only,tbody.hide-for-xxlarge-up{display:table-row-group !important}tr.hide-for-small-only,tr.show-for-small-up,tr.hide-for-small,tr.hide-for-small-down,tr.hide-for-medium-only,tr.show-for-medium-up,tr.hide-for-medium,tr.hide-for-medium-down,tr.hide-for-large-only,tr.show-for-large-up,tr.hide-for-large,tr.hide-for-large-down,tr.show-for-xlarge-only,tr.show-for-xlarge-up,tr.hide-for-xxlarge-only,tr.hide-for-xxlarge-up{display:table-row !important}th.hide-for-small-only,td.hide-for-small-only,th.show-for-small-up,td.show-for-small-up,th.hide-for-small,td.hide-for-small,th.hide-for-small-down,td.hide-for-small-down,th.hide-for-medium-only,td.hide-for-medium-only,th.show-for-medium-up,td.show-for-medium-up,th.hide-for-medium,td.hide-for-medium,th.hide-for-medium-down,td.hide-for-medium-down,th.hide-for-large-only,td.hide-for-large-only,th.show-for-large-up,td.show-for-large-up,th.hide-for-large,td.hide-for-large,th.hide-for-large-down,td.hide-for-large-down,th.show-for-xlarge-only,td.show-for-xlarge-only,th.show-for-xlarge-up,td.show-for-xlarge-up,th.hide-for-xxlarge-only,td.hide-for-xxlarge-only,th.hide-for-xxlarge-up,td.hide-for-xxlarge-up{display:table-cell !important}}@media only screen and (min-width: 120.063em){.hide-for-small-only,.show-for-small-up,.hide-for-small,.hide-for-small-down,.hide-for-medium-only,.show-for-medium-up,.hide-for-medium,.hide-for-medium-down,.hide-for-large-only,.show-for-large-up,.hide-for-large,.hide-for-large-down,.hide-for-xlarge-only,.show-for-xlarge-up,.show-for-xxlarge-only,.show-for-xxlarge-up{display:inherit !important}.show-for-small-only,.hide-for-small-up,.show-for-small,.show-for-small-down,.show-for-medium-only,.hide-for-medium-up,.show-for-medium,.show-for-medium-down,.show-for-large-only,.hide-for-large-up,.show-for-large,.show-for-large-down,.show-for-xlarge-only,.hide-for-xlarge-up,.hide-for-xxlarge-only,.hide-for-xxlarge-up{display:none !important}.hidden-for-small-only,.visible-for-small-up,.hidden-for-small,.hidden-for-small-down,.hidden-for-medium-only,.visible-for-medium-up,.hidden-for-medium,.hidden-for-medium-down,.hidden-for-large-only,.visible-for-large-up,.hidden-for-large,.hidden-for-large-down,.hidden-for-xlarge-only,.visible-for-xlarge-up,.visible-for-xxlarge-only,.visible-for-xxlarge-up{position:static !important;height:auto;width:auto;overflow:visible;clip:auto}.visible-for-small-only,.hidden-for-small-up,.visible-for-small,.visible-for-small-down,.visible-for-medium-only,.hidden-for-medium-up,.visible-for-medium,.visible-for-medium-down,.visible-for-large-only,.hidden-for-large-up,.visible-for-large,.visible-for-large-down,.visible-for-xlarge-only,.hidden-for-xlarge-up,.hidden-for-xxlarge-only,.hidden-for-xxlarge-up{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px)}table.hide-for-small-only,table.show-for-small-up,table.hide-for-small,table.hide-for-small-down,table.hide-for-medium-only,table.show-for-medium-up,table.hide-for-medium,table.hide-for-medium-down,table.hide-for-large-only,table.show-for-large-up,table.hide-for-large,table.hide-for-large-down,table.hide-for-xlarge-only,table.show-for-xlarge-up,table.show-for-xxlarge-only,table.show-for-xxlarge-up{display:table}thead.hide-for-small-only,thead.show-for-small-up,thead.hide-for-small,thead.hide-for-small-down,thead.hide-for-medium-only,thead.show-for-medium-up,thead.hide-for-medium,thead.hide-for-medium-down,thead.hide-for-large-only,thead.show-for-large-up,thead.hide-for-large,thead.hide-for-large-down,thead.hide-for-xlarge-only,thead.show-for-xlarge-up,thead.show-for-xxlarge-only,thead.show-for-xxlarge-up{display:table-header-group !important}tbody.hide-for-small-only,tbody.show-for-small-up,tbody.hide-for-small,tbody.hide-for-small-down,tbody.hide-for-medium-only,tbody.show-for-medium-up,tbody.hide-for-medium,tbody.hide-for-medium-down,tbody.hide-for-large-only,tbody.show-for-large-up,tbody.hide-for-large,tbody.hide-for-large-down,tbody.hide-for-xlarge-only,tbody.show-for-xlarge-up,tbody.show-for-xxlarge-only,tbody.show-for-xxlarge-up{display:table-row-group !important}tr.hide-for-small-only,tr.show-for-small-up,tr.hide-for-small,tr.hide-for-small-down,tr.hide-for-medium-only,tr.show-for-medium-up,tr.hide-for-medium,tr.hide-for-medium-down,tr.hide-for-large-only,tr.show-for-large-up,tr.hide-for-large,tr.hide-for-large-down,tr.hide-for-xlarge-only,tr.show-for-xlarge-up,tr.show-for-xxlarge-only,tr.show-for-xxlarge-up{display:table-row !important}th.hide-for-small-only,td.hide-for-small-only,th.show-for-small-up,td.show-for-small-up,th.hide-for-small,td.hide-for-small,th.hide-for-small-down,td.hide-for-small-down,th.hide-for-medium-only,td.hide-for-medium-only,th.show-for-medium-up,td.show-for-medium-up,th.hide-for-medium,td.hide-for-medium,th.hide-for-medium-down,td.hide-for-medium-down,th.hide-for-large-only,td.hide-for-large-only,th.show-for-large-up,td.show-for-large-up,th.hide-for-large,td.hide-for-large,th.hide-for-large-down,td.hide-for-large-down,th.hide-for-xlarge-only,td.hide-for-xlarge-only,th.show-for-xlarge-up,td.show-for-xlarge-up,th.show-for-xxlarge-only,td.show-for-xxlarge-only,th.show-for-xxlarge-up,td.show-for-xxlarge-up{display:table-cell !important}}.show-for-landscape,.hide-for-portrait{display:inherit !important}.hide-for-landscape,.show-for-portrait{display:none !important}table.hide-for-landscape,table.show-for-portrait{display:table}thead.hide-for-landscape,thead.show-for-portrait{display:table-header-group !important}tbody.hide-for-landscape,tbody.show-for-portrait{display:table-row-group !important}tr.hide-for-landscape,tr.show-for-portrait{display:table-row !important}td.hide-for-landscape,td.show-for-portrait,th.hide-for-landscape,th.show-for-portrait{display:table-cell !important}@media only screen and (orientation: landscape){.show-for-landscape,.hide-for-portrait{display:inherit !important}.hide-for-landscape,.show-for-portrait{display:none !important}table.show-for-landscape,table.hide-for-portrait{display:table}thead.show-for-landscape,thead.hide-for-portrait{display:table-header-group !important}tbody.show-for-landscape,tbody.hide-for-portrait{display:table-row-group !important}tr.show-for-landscape,tr.hide-for-portrait{display:table-row !important}td.show-for-landscape,td.hide-for-portrait,th.show-for-landscape,th.hide-for-portrait{display:table-cell !important}}@media only screen and (orientation: portrait){.show-for-portrait,.hide-for-landscape{display:inherit !important}.hide-for-portrait,.show-for-landscape{display:none !important}table.show-for-portrait,table.hide-for-landscape{display:table}thead.show-for-portrait,thead.hide-for-landscape{display:table-header-group !important}tbody.show-for-portrait,tbody.hide-for-landscape{display:table-row-group !important}tr.show-for-portrait,tr.hide-for-landscape{display:table-row !important}td.show-for-portrait,td.hide-for-landscape,th.show-for-portrait,th.hide-for-landscape{display:table-cell !important}}.show-for-touch{display:none !important}.hide-for-touch{display:inherit !important}.touch .show-for-touch{display:inherit !important}.touch .hide-for-touch{display:none !important}table.hide-for-touch{display:table}.touch table.show-for-touch{display:table}thead.hide-for-touch{display:table-header-group !important}.touch thead.show-for-touch{display:table-header-group !important}tbody.hide-for-touch{display:table-row-group !important}.touch tbody.show-for-touch{display:table-row-group !important}tr.hide-for-touch{display:table-row !important}.touch tr.show-for-touch{display:table-row !important}td.hide-for-touch{display:table-cell !important}.touch td.show-for-touch{display:table-cell !important}th.hide-for-touch{display:table-cell !important}.touch th.show-for-touch{display:table-cell !important}@media print{.show-for-print{display:block}.hide-for-print{display:none}table.show-for-print{display:table}thead.show-for-print{display:table-header-group !important}tbody.show-for-print{display:table-row-group !important}tr.show-for-print{display:table-row !important}td.show-for-print{display:table-cell !important}th.show-for-print{display:table-cell !important}} |
generators/foundation5/public/stylesheets/foundation/_functions.scss
+101
-0
| @@ | @@ -0,0 +1,101 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | // This is the default html and body font-size for the base rem value. |
| + | $rem-base: 16px !default; |
| + | |
| + | // IMPORT ONCE |
| + | // We use this to prevent styles from being loaded multiple times for compenents that rely on other components. |
| + | $modules: () !default; |
| + | @mixin exports($name) { |
| + | @if (index($modules, $name) == false) { |
| + | $modules: append($modules, $name); |
| + | @content; |
| + | } |
| + | } |
| + | |
| + | // |
| + | // @functions |
| + | // |
| + | |
| + | |
| + | // RANGES |
| + | // We use these functions to define ranges for various things, like media queries. |
| + | @function lower-bound($range){ |
| + | @if length($range) <= 0 { |
| + | @return 0; |
| + | } |
| + | @return nth($range,1); |
| + | } |
| + | |
| + | @function upper-bound($range) { |
| + | @if length($range) < 2 { |
| + | @return 999999999999; |
| + | } |
| + | @return nth($range, 2); |
| + | } |
| + | |
| + | // STRIP UNIT |
| + | // It strips the unit of measure and returns it |
| + | @function strip-unit($num) { |
| + | @return $num / ($num * 0 + 1); |
| + | } |
| + | |
| + | // CONVERT TO REM |
| + | @function convert-to-rem($value, $base-value: $rem-base) { |
| + | $value: strip-unit($value) / strip-unit($base-value) * 1rem; |
| + | @if ($value == 0rem) { $value: 0; } // Turn 0rem into 0 |
| + | @return $value; |
| + | } |
| + | |
| + | @function data($attr) { |
| + | @if $namespace { |
| + | @return '[data-' + $namespace + '-' + $attr + ']'; |
| + | } |
| + | |
| + | @return '[data-' + $attr + ']'; |
| + | } |
| + | |
| + | // REM CALC |
| + | |
| + | // New Syntax, allows to optionally calculate on a different base value to counter compounding effect of rem's. |
| + | // Call with 1, 2, 3 or 4 parameters, 'px' is not required but supported: |
| + | // |
| + | // rem-calc(10 20 30px 40); |
| + | // |
| + | // Space delimited, if you want to delimit using comma's, wrap it in another pair of brackets |
| + | // |
| + | // rem-calc((10, 20, 30, 40px)); |
| + | // |
| + | // Optionally call with a different base (eg: 8px) to calculate rem. |
| + | // |
| + | // rem-calc(16px 32px 48px, 8px); |
| + | // |
| + | // If you require to comma separate your list |
| + | // |
| + | // rem-calc((16px, 32px, 48), 8px); |
| + | |
| + | @function rem-calc($values, $base-value: $rem-base) { |
| + | $max: length($values); |
| + | |
| + | @if $max == 1 { @return convert-to-rem(nth($values, 1), $base-value); } |
| + | |
| + | $remValues: (); |
| + | @for $i from 1 through $max { |
| + | $remValues: append($remValues, convert-to-rem(nth($values, $i), $base-value)); |
| + | } |
| + | @return $remValues; |
| + | } |
| + | |
| + | // OLD EM CALC |
| + | // Deprecated: We'll drop support for this in 5.1.0, use rem-calc() |
| + | @function emCalc($values){ |
| + | @return rem-calc($values); |
| + | } |
| + | |
| + | // OLD EM CALC |
| + | // Deprecated: We'll drop support for this in 5.1.0, use rem-calc() |
| + | @function em-calc($values){ |
| + | @return rem-calc($values); |
| + | } |
| \ No newline at end of file | |
generators/foundation5/public/stylesheets/foundation/_settings.scss
+1296
-0
| @@ | @@ -0,0 +1,1296 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | // |
| + | // FOUNDATION SETTINGS |
| + | // |
| + | |
| + | // This is the default html and body font-size for the base rem value. |
| + | // $rem-base: 16px; |
| + | |
| + | // Allows the use of rem-calc() or lower-bound() in your settings |
| + | @import "foundation/functions"; |
| + | |
| + | // $experimental: true; |
| + | |
| + | // The default font-size is set to 100% of the browser style sheet (usually 16px) |
| + | // for compatibility with browser-based text zoom or user-set defaults. |
| + | |
| + | // Since the typical default browser font-size is 16px, that makes the calculation for grid size. |
| + | // If you want your base font-size to be different and not have it affect the grid breakpoints, |
| + | // set $rem-base to $base-font-size and make sure $base-font-size is a px value. |
| + | // $base-font-size: 100%; |
| + | |
| + | // The $base-font-size is 100% while $base-line-height is 150% |
| + | // $base-line-height: 150%; |
| + | |
| + | // We use this to control whether or not CSS classes come through in the gem files. |
| + | // $include-html-classes: true; |
| + | // $include-print-styles: true; |
| + | // $include-html-global-classes: $include-html-classes; |
| + | |
| + | // Grid |
| + | |
| + | // $include-html-grid-classes: $include-html-classes; |
| + | // $include-xl-html-grid-classes: false; |
| + | |
| + | // $row-width: rem-calc(1000); |
| + | // $total-columns: 12; |
| + | |
| + | // Global |
| + | |
| + | // We use these to control various global styles |
| + | // $body-bg: #fff; |
| + | // $body-font-color: #222; |
| + | // $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif; |
| + | // $body-font-weight: $font-weight-normal; |
| + | // $body-font-style: normal; |
| + | |
| + | // We use this to control font-smoothing |
| + | // $font-smoothing: antialiased; |
| + | |
| + | // We use these to control text direction settings |
| + | // $text-direction: ltr; |
| + | // $opposite-direction: right; |
| + | // $default-float: left; |
| + | |
| + | // We use these as default colors throughout |
| + | // $primary-color: #008CBA; |
| + | // $secondary-color: #e7e7e7; |
| + | // $alert-color: #f04124; |
| + | // $success-color: #43AC6A; |
| + | // $warning-color: #f08a24; |
| + | // $info-color: #a0d3e8; |
| + | |
| + | // We use these to make sure border radius matches unless we want it different. |
| + | // $global-radius: 3px; |
| + | // $global-rounded: 1000px; |
| + | |
| + | // We use these to control inset shadow shiny edges and depressions. |
| + | // $shiny-edge-size: 0 1px 0; |
| + | // $shiny-edge-color: rgba(#fff, .5); |
| + | // $shiny-edge-active-color: rgba(#000, .2); |
| + | |
| + | // $column-gutter: rem-calc(30); |
| + | |
| + | // Media Query Ranges |
| + | // $small-range: (0em, 40em); |
| + | // $medium-range: (40.063em, 64em); |
| + | // $large-range: (64.063em, 90em); |
| + | // $xlarge-range: (90.063em, 120em); |
| + | // $xxlarge-range: (120.063em, 99999999em); |
| + | |
| + | // $screen: "only screen"; |
| + | |
| + | // $landscape: "#{$screen} and (orientation: landscape)"; |
| + | // $portrait: "#{$screen} and (orientation: portrait)"; |
| + | |
| + | // $small-up: $screen; |
| + | // $small-only: "#{$screen} and (max-width: #{upper-bound($small-range)})"; |
| + | |
| + | // $medium-up: "#{$screen} and (min-width:#{lower-bound($medium-range)})"; |
| + | // $medium-only: "#{$screen} and (min-width:#{lower-bound($medium-range)}) and (max-width:#{upper-bound($medium-range)})"; |
| + | |
| + | // $large-up: "#{$screen} and (min-width:#{lower-bound($large-range)})"; |
| + | // $large-only: "#{$screen} and (min-width:#{lower-bound($large-range)}) and (max-width:#{upper-bound($large-range)})"; |
| + | |
| + | // $xlarge-up: "#{$screen} and (min-width:#{lower-bound($xlarge-range)})"; |
| + | // $xlarge-only: "#{$screen} and (min-width:#{lower-bound($xlarge-range)}) and (max-width:#{upper-bound($xlarge-range)})"; |
| + | |
| + | // $xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})"; |
| + | // $xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})"; |
| + | |
| + | // Legacy |
| + | // $small: $medium-up; |
| + | // $medium: $medium-up; |
| + | // $large: $large-up; |
| + | |
| + | //We use this as cursors values for enabling the option of having custom cursors in the whole site's stylesheet |
| + | // $cursor-crosshair-value: crosshair; |
| + | // $cursor-default-value: default; |
| + | // $cursor-pointer-value: pointer; |
| + | // $cursor-help-value: help; |
| + | // $cursor-text-value: text; |
| + | |
| + | // |
| + | // TYPOGRAPHY |
| + | // |
| + | |
| + | // $include-html-type-classes: $include-html-classes; |
| + | |
| + | // We use these to control header font styles |
| + | // $header-font-family: $body-font-family; |
| + | // $header-font-weight: $font-weight-normal; |
| + | // $header-font-style: normal; |
| + | // $header-font-color: #222; |
| + | // $header-line-height: 1.4; |
| + | // $header-top-margin: .2rem; |
| + | // $header-bottom-margin: .5rem; |
| + | // $header-text-rendering: optimizeLegibility; |
| + | |
| + | // We use these to control header font sizes |
| + | // $h1-font-size: rem-calc(44); |
| + | // $h2-font-size: rem-calc(37); |
| + | // $h3-font-size: rem-calc(27); |
| + | // $h4-font-size: rem-calc(23); |
| + | // $h5-font-size: rem-calc(18); |
| + | // $h6-font-size: 1rem; |
| + | |
| + | // We use these to control header size reduction on small screens |
| + | // $h1-font-reduction: rem-calc(10) !default; |
| + | // $h2-font-reduction: rem-calc(10) !default; |
| + | // $h3-font-reduction: rem-calc(5) !default; |
| + | // $h4-font-reduction: rem-calc(5) !default; |
| + | // $h5-font-reduction: 0 !default; |
| + | // $h6-font-reduction: 0 !default; |
| + | |
| + | // These control how subheaders are styled. |
| + | // $subheader-line-height: 1.4; |
| + | // $subheader-font-color: scale-color($header-font-color, $lightness: 35%); |
| + | // $subheader-font-weight: $font-weight-normal; |
| + | // $subheader-top-margin: .2rem; |
| + | // $subheader-bottom-margin: .5rem; |
| + | |
| + | // A general <small> styling |
| + | // $small-font-size: 60%; |
| + | // $small-font-color: scale-color($header-font-color, $lightness: 35%); |
| + | |
| + | // We use these to style paragraphs |
| + | // $paragraph-font-family: inherit; |
| + | // $paragraph-font-weight: $font-weight-normal; |
| + | // $paragraph-font-size: 1rem; |
| + | // $paragraph-line-height: 1.6; |
| + | // $paragraph-margin-bottom: rem-calc(20); |
| + | // $paragraph-aside-font-size: rem-calc(14); |
| + | // $paragraph-aside-line-height: 1.35; |
| + | // $paragraph-aside-font-style: italic; |
| + | // $paragraph-text-rendering: optimizeLegibility; |
| + | |
| + | // We use these to style <code> tags |
| + | // $code-color: scale-color($alert-color, $lightness: -27%); |
| + | // $code-font-family: Consolas, 'Liberation Mono', Courier, monospace; |
| + | // $code-font-weight: $font-weight-bold; |
| + | |
| + | // We use these to style anchors |
| + | // $anchor-text-decoration: none; |
| + | // $anchor-text-decoration-hover: none; |
| + | // $anchor-font-color: $primary-color; |
| + | // $anchor-font-color-hover: scale-color($primary-color, $lightness: -14%); |
| + | |
| + | // We use these to style the <hr> element |
| + | // $hr-border-width: 1px; |
| + | // $hr-border-style: solid; |
| + | // $hr-border-color: #ddd; |
| + | // $hr-margin: rem-calc(20); |
| + | |
| + | // We use these to style lists |
| + | // $list-font-family: $paragraph-font-family; |
| + | // $list-font-size: $paragraph-font-size; |
| + | // $list-line-height: $paragraph-line-height; |
| + | // $list-margin-bottom: $paragraph-margin-bottom; |
| + | // $list-style-position: outside; |
| + | // $list-side-margin: 1.1rem; |
| + | // $list-ordered-side-margin: 1.4rem; |
| + | // $list-side-margin-no-bullet: 0; |
| + | // $list-nested-margin: rem-calc(20); |
| + | // $definition-list-header-weight: $font-weight-bold; |
| + | // $definition-list-header-margin-bottom: .3rem; |
| + | // $definition-list-margin-bottom: rem-calc(12); |
| + | |
| + | // We use these to style blockquotes |
| + | // $blockquote-font-color: scale-color($header-font-color, $lightness: 35%); |
| + | // $blockquote-padding: rem-calc(9 20 0 19); |
| + | // $blockquote-border: 1px solid #ddd; |
| + | // $blockquote-cite-font-size: rem-calc(13); |
| + | // $blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%); |
| + | // $blockquote-cite-link-color: $blockquote-cite-font-color; |
| + | |
| + | // Acronym styles |
| + | // $acronym-underline: 1px dotted #ddd; |
| + | |
| + | // We use these to control padding and margin |
| + | // $microformat-padding: rem-calc(10 12); |
| + | // $microformat-margin: rem-calc(0 0 20 0); |
| + | |
| + | // We use these to control the border styles |
| + | // $microformat-border-width: 1px; |
| + | // $microformat-border-style: solid; |
| + | // $microformat-border-color: #ddd; |
| + | |
| + | // We use these to control full name font styles |
| + | // $microformat-fullname-font-weight: $font-weight-bold; |
| + | // $microformat-fullname-font-size: rem-calc(15); |
| + | |
| + | // We use this to control the summary font styles |
| + | // $microformat-summary-font-weight: $font-weight-bold; |
| + | |
| + | // We use this to control abbr padding |
| + | // $microformat-abbr-padding: rem-calc(0 1); |
| + | |
| + | // We use this to control abbr font styles |
| + | // $microformat-abbr-font-weight: $font-weight-bold; |
| + | // $microformat-abbr-font-decoration: none; |
| + | |
| + | // Accordion |
| + | |
| + | // $include-html-accordion-classes: $include-html-classes; |
| + | |
| + | // $accordion-navigation-padding: rem-calc(16); |
| + | // $accordion-navigation-bg-color: #efefef ; |
| + | // $accordion-navigation-hover-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -5%); |
| + | // $accordion-navigation-active-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -3%); |
| + | // $accordion-navigation-font-color: #222; |
| + | // $accordion-navigation-font-size: rem-calc(16); |
| + | // $accordion-navigation-font-family: $body-font-family; |
| + | |
| + | // $accordion-content-padding: $column-gutter/2; |
| + | // $accordion-content-active-bg-color: #fff; |
| + | |
| + | // Alert Boxes |
| + | |
| + | // $include-html-alert-classes: $include-html-classes; |
| + | |
| + | // We use this to control alert padding. |
| + | // $alert-padding-top: rem-calc(14); |
| + | // $alert-padding-default-float: $alert-padding-top; |
| + | // $alert-padding-opposite-direction: $alert-padding-top + rem-calc(10); |
| + | // $alert-padding-bottom: $alert-padding-top; |
| + | |
| + | // We use these to control text style. |
| + | // $alert-font-weight: $font-weight-normal; |
| + | // $alert-font-size: rem-calc(13); |
| + | // $alert-font-color: #fff; |
| + | // $alert-font-color-alt: scale-color($secondary-color, $lightness: -66%); |
| + | |
| + | // We use this for close hover effect. |
| + | // $alert-function-factor: -14%; |
| + | |
| + | // We use these to control border styles. |
| + | // $alert-border-style: solid; |
| + | // $alert-border-width: 1px; |
| + | // $alert-border-color: scale-color($primary-color, $lightness: $alert-function-factor); |
| + | // $alert-bottom-margin: rem-calc(20); |
| + | |
| + | // We use these to style the close buttons |
| + | // $alert-close-color: #333; |
| + | // $alert-close-top: 50%; |
| + | // $alert-close-position: rem-calc(4); |
| + | // $alert-close-font-size: rem-calc(22); |
| + | // $alert-close-opacity: 0.3; |
| + | // $alert-close-opacity-hover: 0.5; |
| + | // $alert-close-padding: 9px 6px 4px; |
| + | |
| + | // We use this to control border radius |
| + | // $alert-radius: $global-radius; |
| + | |
| + | // We use this to control transition effects |
| + | // $alert-transition-speed: 300ms; |
| + | // $alert-transition-ease: ease-out; |
| + | |
| + | // Block Grid |
| + | |
| + | // $include-html-grid-classes: $include-html-classes; |
| + | // $include-xl-html-block-grid-classes: false; |
| + | |
| + | // We use this to control the maximum number of block grid elements per row |
| + | // $block-grid-elements: 12; |
| + | // $block-grid-default-spacing: rem-calc(20); |
| + | // $align-block-grid-to-grid: false; |
| + | |
| + | |
| + | // Enables media queries for block-grid classes. Set to false if writing semantic HTML. |
| + | // $block-grid-media-queries: true; |
| + | |
| + | // Breadcrumbs |
| + | |
| + | // $include-html-nav-classes: $include-html-classes; |
| + | |
| + | // We use this to set the background color for the breadcrumb container. |
| + | // $crumb-bg: scale-color($secondary-color, $lightness: 55%); |
| + | |
| + | // We use these to set the padding around the breadcrumbs. |
| + | // $crumb-padding: rem-calc(9 14 9); |
| + | // $crumb-side-padding: rem-calc(12); |
| + | |
| + | // We use these to control border styles. |
| + | // $crumb-function-factor: -10%; |
| + | // $crumb-border-size: 1px; |
| + | // $crumb-border-style: solid; |
| + | // $crumb-border-color: scale-color($crumb-bg, $lightness: $crumb-function-factor); |
| + | // $crumb-radius: $global-radius; |
| + | |
| + | // We use these to set various text styles for breadcrumbs. |
| + | // $crumb-font-size: rem-calc(11); |
| + | // $crumb-font-color: $primary-color; |
| + | // $crumb-font-color-current: #333; |
| + | // $crumb-font-color-unavailable: #999; |
| + | // $crumb-font-transform: uppercase; |
| + | // $crumb-link-decor: underline; |
| + | |
| + | // We use these to control the slash between breadcrumbs |
| + | // $crumb-slash-color: #aaa; |
| + | // $crumb-slash: "/"; |
| + | |
| + | // |
| + | // BUTTONS |
| + | // |
| + | |
| + | // $include-html-button-classes: $include-html-classes; |
| + | |
| + | // We use these to build padding for buttons. |
| + | // $button-tny: rem-calc(10); |
| + | // $button-sml: rem-calc(14); |
| + | // $button-med: rem-calc(16); |
| + | // $button-lrg: rem-calc(18); |
| + | |
| + | // We use this to control the display property. |
| + | // $button-display: inline-block; |
| + | // $button-margin-bottom: rem-calc(20); |
| + | |
| + | // We use these to control button text styles. |
| + | // $button-font-family: $body-font-family; |
| + | // $button-font-color: #fff; |
| + | // $button-font-color-alt: #333; |
| + | // $button-font-tny: rem-calc(11); |
| + | // $button-font-sml: rem-calc(13); |
| + | // $button-font-med: rem-calc(16); |
| + | // $button-font-lrg: rem-calc(20); |
| + | // $button-font-weight: $font-weight-normal; |
| + | // $button-font-align: center; |
| + | |
| + | // We use these to control various hover effects. |
| + | // $button-function-factor: -20%; |
| + | |
| + | // We use these to control button border styles. |
| + | // $button-border-width: 0px; |
| + | // $button-border-style: solid; |
| + | // $button-bg: $primary-color; |
| + | // $button-border-color: scale-color($bg, $lightness: $button-function-factor); |
| + | |
| + | // We use this to set the default radius used throughout the core. |
| + | // $button-radius: $global-radius; |
| + | // $button-round: $global-rounded; |
| + | |
| + | // We use this to set default opacity for disabled buttons. |
| + | // $button-disabled-opacity: 0.7; |
| + | |
| + | // Button Groups |
| + | |
| + | // $include-html-button-classes: $include-html-classes; |
| + | |
| + | // Sets the margin for the right side by default, and the left margin if right-to-left direction is used |
| + | // $button-bar-margin-opposite: rem-calc(10); |
| + | // $button-group-border-width: 1px; |
| + | |
| + | // Clearing |
| + | |
| + | // $include-html-clearing-classes: $include-html-classes; |
| + | |
| + | // We use these to set the background colors for parts of Clearing. |
| + | // $clearing-bg: #333; |
| + | // $clearing-caption-bg: $clearing-bg; |
| + | // $clearing-carousel-bg: rgba(51,51,51,0.8); |
| + | // $clearing-img-bg: $clearing-bg; |
| + | |
| + | // We use these to style the close button |
| + | // $clearing-close-color: #ccc; |
| + | // $clearing-close-size: 30px; |
| + | |
| + | // We use these to style the arrows |
| + | // $clearing-arrow-size: 12px; |
| + | // $clearing-arrow-color: $clearing-close-color; |
| + | |
| + | // We use these to style captions |
| + | // $clearing-caption-font-color: #ccc; |
| + | // $clearing-caption-font-size: 0.875em; |
| + | // $clearing-caption-padding: 10px 30px 20px; |
| + | |
| + | // We use these to make the image and carousel height and style |
| + | // $clearing-active-img-height: 85%; |
| + | // $clearing-carousel-height: 120px; |
| + | // $clearing-carousel-thumb-width: 120px; |
| + | // $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255); |
| + | |
| + | // Dropdown |
| + | |
| + | // $include-html-dropdown-classes: $include-html-classes; |
| + | |
| + | // We use these to controls height and width styles. |
| + | // $f-dropdown-max-width: 200px; |
| + | // $f-dropdown-height: auto; |
| + | // $f-dropdown-max-height: none; |
| + | |
| + | // Used for bottom position |
| + | // $f-dropdown-margin-top: 2px; |
| + | |
| + | // Used for right position |
| + | // $f-dropdown-margin-left: $f-dropdown-margin-top; |
| + | |
| + | // Used for left position |
| + | // $f-dropdown-margin-right: $f-dropdown-margin-top; |
| + | |
| + | // Used for top position |
| + | // $f-dropdown-margin-bottom: $f-dropdown-margin-top; |
| + | |
| + | // We use this to control the background color |
| + | // $f-dropdown-bg: #fff; |
| + | |
| + | // We use this to set the border styles for dropdowns. |
| + | // $f-dropdown-border-style: solid; |
| + | // $f-dropdown-border-width: 1px; |
| + | // $f-dropdown-border-color: scale-color(#fff, $lightness: -20%); |
| + | |
| + | // We use these to style the triangle pip. |
| + | // $f-dropdown-triangle-size: 6px; |
| + | // $f-dropdown-triangle-color: #fff; |
| + | // $f-dropdown-triangle-side-offset: 10px; |
| + | |
| + | // We use these to control styles for the list elements. |
| + | // $f-dropdown-list-style: none; |
| + | // $f-dropdown-font-color: #555; |
| + | // $f-dropdown-font-size: rem-calc(14); |
| + | // $f-dropdown-list-padding: rem-calc(5, 10); |
| + | // $f-dropdown-line-height: rem-calc(18); |
| + | // $f-dropdown-list-hover-bg: #eeeeee ; |
| + | // $dropdown-mobile-default-float: 0; |
| + | |
| + | // We use this to control the styles for when the dropdown has custom content. |
| + | // $f-dropdown-content-padding: rem-calc(20); |
| + | |
| + | // Dropdown Buttons |
| + | |
| + | // $include-html-button-classes: $include-html-classes; |
| + | |
| + | // We use these to set the color of the pip in dropdown buttons |
| + | // $dropdown-button-pip-color: #fff; |
| + | // $dropdown-button-pip-color-alt: #333; |
| + | |
| + | // $button-pip-tny: rem-calc(6); |
| + | // $button-pip-sml: rem-calc(7); |
| + | // $button-pip-med: rem-calc(9); |
| + | // $button-pip-lrg: rem-calc(11); |
| + | |
| + | // We use these to style tiny dropdown buttons |
| + | // $dropdown-button-padding-tny: $button-pip-tny * 7; |
| + | // $dropdown-button-pip-size-tny: $button-pip-tny; |
| + | // $dropdown-button-pip-opposite-tny: $button-pip-tny * 3; |
| + | // $dropdown-button-pip-top-tny: -$button-pip-tny / 2 + rem-calc(1); |
| + | |
| + | // We use these to style small dropdown buttons |
| + | // $dropdown-button-padding-sml: $button-pip-sml * 7; |
| + | // $dropdown-button-pip-size-sml: $button-pip-sml; |
| + | // $dropdown-button-pip-opposite-sml: $button-pip-sml * 3; |
| + | // $dropdown-button-pip-top-sml: -$button-pip-sml / 2 + rem-calc(1); |
| + | |
| + | // We use these to style medium dropdown buttons |
| + | // $dropdown-button-padding-med: $button-pip-med * 6 + rem-calc(3); |
| + | // $dropdown-button-pip-size-med: $button-pip-med - rem-calc(3); |
| + | // $dropdown-button-pip-opposite-med: $button-pip-med * 2.5; |
| + | // $dropdown-button-pip-top-med: -$button-pip-med / 2 + rem-calc(2); |
| + | |
| + | // We use these to style large dropdown buttons |
| + | // $dropdown-button-padding-lrg: $button-pip-lrg * 5 + rem-calc(3); |
| + | // $dropdown-button-pip-size-lrg: $button-pip-lrg - rem-calc(6); |
| + | // $dropdown-button-pip-opposite-lrg: $button-pip-lrg * 2.5; |
| + | // $dropdown-button-pip-top-lrg: -$button-pip-lrg / 2 + rem-calc(3); |
| + | |
| + | // Flex Video |
| + | |
| + | // $include-html-media-classes: $include-html-classes; |
| + | |
| + | // We use these to control video container padding and margins |
| + | // $flex-video-padding-top: rem-calc(25); |
| + | // $flex-video-padding-bottom: 67.5%; |
| + | // $flex-video-margin-bottom: rem-calc(16); |
| + | |
| + | // We use this to control widescreen bottom padding |
| + | // $flex-video-widescreen-padding-bottom: 56.34%; |
| + | |
| + | // Forms |
| + | |
| + | // $include-html-form-classes: $include-html-classes; |
| + | |
| + | // We use this to set the base for lots of form spacing and positioning styles |
| + | // $form-spacing: rem-calc(16); |
| + | |
| + | // We use these to style the labels in different ways |
| + | // $form-label-pointer: pointer; |
| + | // $form-label-font-size: rem-calc(14); |
| + | // $form-label-font-weight: $font-weight-normal; |
| + | // $form-label-line-height: 1.5; |
| + | // $form-label-font-color: scale-color(#000, $lightness: 30%); |
| + | // $form-label-small-transform: capitalize; |
| + | // $form-label-bottom-margin: 0; |
| + | // $input-font-family: inherit; |
| + | // $input-font-color: rgba(0,0,0,0.75); |
| + | // $input-font-size: rem-calc(14); |
| + | // $input-bg-color: #fff; |
| + | // $input-focus-bg-color: scale-color(#fff, $lightness: -2%); |
| + | // $input-border-color: scale-color(#fff, $lightness: -20%); |
| + | // $input-focus-border-color: scale-color(#fff, $lightness: -40%); |
| + | // $input-border-style: solid; |
| + | // $input-border-width: 1px; |
| + | // $input-border-radius: $global-radius; |
| + | // $input-disabled-bg: #ddd; |
| + | // $input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1); |
| + | // $input-include-glowing-effect: true; |
| + | |
| + | // We use these to style the fieldset border and spacing. |
| + | // $fieldset-border-style: solid; |
| + | // $fieldset-border-width: 1px; |
| + | // $fieldset-border-color: #ddd; |
| + | // $fieldset-padding: rem-calc(20); |
| + | // $fieldset-margin: rem-calc(18 0); |
| + | |
| + | // We use these to style the legends when you use them |
| + | // $legend-bg: #fff; |
| + | // $legend-font-weight: $font-weight-bold; |
| + | // $legend-padding: rem-calc(0 3); |
| + | |
| + | // We use these to style the prefix and postfix input elements |
| + | // $input-prefix-bg: scale-color(#fff, $lightness: -5%); |
| + | // $input-prefix-border-color: scale-color(#fff, $lightness: -20%); |
| + | // $input-prefix-border-size: 1px; |
| + | // $input-prefix-border-type: solid; |
| + | // $input-prefix-overflow: hidden; |
| + | // $input-prefix-font-color: #333; |
| + | // $input-prefix-font-color-alt: #fff; |
| + | |
| + | // We use these to style the error states for inputs and labels |
| + | // $input-error-message-padding: rem-calc(6 9 9); |
| + | // $input-error-message-top: -1px; |
| + | // $input-error-message-font-size: rem-calc(12); |
| + | // $input-error-message-font-weight: $font-weight-normal; |
| + | // $input-error-message-font-style: italic; |
| + | // $input-error-message-font-color: #fff; |
| + | // $input-error-message-font-color-alt: #333; |
| + | |
| + | // We use this to style the glowing effect of inputs when focused |
| + | // $glowing-effect-fade-time: 0.45s; |
| + | // $glowing-effect-color: $input-focus-border-color; |
| + | |
| + | // Select variables |
| + | // $select-bg-color: #fafafa; |
| + | // $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%); |
| + | |
| + | // Inline Lists |
| + | |
| + | // $include-html-inline-list-classes: $include-html-classes; |
| + | |
| + | // We use this to control the margins and padding of the inline list. |
| + | // $inline-list-top-margin: 0; |
| + | // $inline-list-opposite-margin: 0; |
| + | // $inline-list-bottom-margin: rem-calc(17); |
| + | // $inline-list-default-float-margin: rem-calc(-22); |
| + | // $inline-list-default-float-list-margin: rem-calc(22); |
| + | |
| + | // $inline-list-padding: 0; |
| + | |
| + | // We use this to control the overflow of the inline list. |
| + | // $inline-list-overflow: hidden; |
| + | |
| + | // We use this to control the list items |
| + | // $inline-list-display: block; |
| + | |
| + | // We use this to control any elments within list items |
| + | // $inline-list-children-display: block; |
| + | |
| + | // Joyride |
| + | |
| + | // $include-html-joyride-classes: $include-html-classes; |
| + | |
| + | // Controlling default Joyride styles |
| + | // $joyride-tip-bg: #333; |
| + | // $joyride-tip-default-width: 300px; |
| + | // $joyride-tip-padding: rem-calc(18 20 24); |
| + | // $joyride-tip-border: solid 1px #555; |
| + | // $joyride-tip-radius: 4px; |
| + | // $joyride-tip-position-offset: 22px; |
| + | |
| + | // Here, we're setting the tip dont styles |
| + | // $joyride-tip-font-color: #fff; |
| + | // $joyride-tip-font-size: rem-calc(14); |
| + | // $joyride-tip-header-weight: $font-weight-bold; |
| + | |
| + | // This changes the nub size |
| + | // $joyride-tip-nub-size: 10px; |
| + | |
| + | // This adjusts the styles for the timer when its enabled |
| + | // $joyride-tip-timer-width: 50px; |
| + | // $joyride-tip-timer-height: 3px; |
| + | // $joyride-tip-timer-color: #666; |
| + | |
| + | // This changes up the styles for the close button |
| + | // $joyride-tip-close-color: #777; |
| + | // $joyride-tip-close-size: 24px; |
| + | // $joyride-tip-close-weight: $font-weight-normal; |
| + | |
| + | // When Joyride is filling the screen, we use this style for the bg |
| + | // $joyride-screenfill: rgba(0,0,0,0.5); |
| + | |
| + | // Keystrokes |
| + | |
| + | // $include-html-keystroke-classes: $include-html-classes; |
| + | |
| + | // We use these to control text styles. |
| + | // $keystroke-font: "Consolas", "Menlo", "Courier", monospace; |
| + | // $keystroke-font-size: inherit; |
| + | // $keystroke-font-color: #222; |
| + | // $keystroke-font-color-alt: #fff; |
| + | // $keystroke-function-factor: -7%; |
| + | |
| + | // We use this to control keystroke padding. |
| + | // $keystroke-padding: rem-calc(2 4 0); |
| + | |
| + | // We use these to control background and border styles. |
| + | // $keystroke-bg: scale-color(#fff, $lightness: $keystroke-function-factor); |
| + | // $keystroke-border-style: solid; |
| + | // $keystroke-border-width: 1px; |
| + | // $keystroke-border-color: scale-color($keystroke-bg, $lightness: $keystroke-function-factor); |
| + | // $keystroke-radius: $global-radius; |
| + | |
| + | // Labels |
| + | |
| + | // $include-html-label-classes: $include-html-classes; |
| + | |
| + | // We use these to style the labels |
| + | // $label-padding: rem-calc(4 8 6); |
| + | // $label-radius: $global-radius; |
| + | |
| + | // We use these to style the label text |
| + | // $label-font-sizing: rem-calc(11); |
| + | // $label-font-weight: $font-weight-normal; |
| + | // $label-font-color: #333; |
| + | // $label-font-color-alt: #fff; |
| + | // $label-font-family: $body-font-family; |
| + | |
| + | // Magellan |
| + | |
| + | // $include-html-magellan-classes: $include-html-classes; |
| + | |
| + | // $magellan-bg: #fff; |
| + | // $magellan-padding: 10px; |
| + | |
| + | // Off-canvas |
| + | |
| + | // $include-html-off-canvas-classes: $include-html-classes; |
| + | |
| + | // $tabbar-bg: #333; |
| + | // $tabbar-height: rem-calc(45); |
| + | // $tabbar-line-height: $tabbar-height; |
| + | // $tabbar-color: #fff; |
| + | // $tabbar-middle-padding: 0 rem-calc(10); |
| + | |
| + | // Off Canvas Divider Styles |
| + | // $tabbar-right-section-border: solid 1px scale-color($tabbar-bg, $lightness: 13%); |
| + | // $tabbar-left-section-border: solid 1px scale-color($tabbar-bg, $lightness: -50%); |
| + | |
| + | // Off Canvas Tab Bar Headers |
| + | // $tabbar-header-color: #fff; |
| + | // $tabbar-header-weight: $font-weight-bold; |
| + | // $tabbar-header-line-height: $tabbar-height; |
| + | // $tabbar-header-margin: 0; |
| + | |
| + | // Off Canvas Menu Variables |
| + | // $off-canvas-width: rem-calc(250); |
| + | // $off-canvas-bg: #333; |
| + | |
| + | // Off Canvas Menu List Variables |
| + | // $off-canvas-label-padding: 0.3rem rem-calc(15); |
| + | // $off-canvas-label-color: #999; |
| + | // $off-canvas-label-text-transform: uppercase; |
| + | // $off-canvas-label-font-weight: $font-weight-bold; |
| + | // $off-canvas-label-bg: #444; |
| + | // $off-canvas-label-border-top: 1px solid scale-color(#444, $lightness: 14%); |
| + | // $off-canvas-label-border-bottom: none; |
| + | // $off-canvas-label-margin:0; |
| + | // $off-canvas-link-padding: rem-calc(10, 15); |
| + | // $off-canvas-link-color: rgba(#fff, 0.7); |
| + | // $off-canvas-link-border-bottom: 1px solid scale-color($off-canvas-bg, $lightness: -25%); |
| + | |
| + | // Off Canvas Menu Icon Variables |
| + | // $tabbar-menu-icon-color: #fff; |
| + | // $tabbar-menu-icon-hover: scale-color($tabbar-menu-icon-color, $lightness: -30%); |
| + | |
| + | // $tabbar-menu-icon-text-indent: rem-calc(35); |
| + | // $tabbar-menu-icon-width: $tabbar-height; |
| + | // $tabbar-menu-icon-height: $tabbar-height; |
| + | // $tabbar-menu-icon-padding: 0; |
| + | |
| + | // $tabbar-hamburger-icon-width: rem-calc(16); |
| + | // $tabbar-hamburger-icon-left: false; |
| + | // $tabbar-hamburger-icon-top: false; |
| + | // $tapbar-hamburger-icon-thickness: 1px; |
| + | // $tapbar-hamburger-icon-gap: 6px; |
| + | |
| + | // Off Canvas Back-Link Overlay |
| + | // $off-canvas-overlay-transition: background 300ms ease; |
| + | // $off-canvas-overlay-cursor: pointer; |
| + | // $off-canvas-overlay-box-shadow: -4px 0 4px rgba(#000, 0.5), 4px 0 4px rgba(#000, 0.5); |
| + | // $off-canvas-overlay-background: rgba(#fff, 0.2); |
| + | // $off-canvas-overlay-background-hover: rgba(#fff, 0.05); |
| + | |
| + | // Transition Variables |
| + | // $menu-slide: "transform 500ms ease"; |
| + | |
| + | // Orbit |
| + | |
| + | // $include-html-orbit-classes: $include-html-classes; |
| + | |
| + | // We use these to control the caption styles |
| + | // $orbit-container-bg: none; |
| + | // $orbit-caption-bg: rgba(51,51,51, 0.8); |
| + | // $orbit-caption-font-color: #fff; |
| + | // $orbit-caption-font-size: rem-calc(14); |
| + | // $orbit-caption-position: "bottom"; // Supported values: "bottom", "under" |
| + | // $orbit-caption-padding: rem-calc(10 14); |
| + | // $orbit-caption-height: auto; |
| + | |
| + | // We use these to control the left/right nav styles |
| + | // $orbit-nav-bg: transparent; |
| + | // $orbit-nav-bg-hover: rgba(0,0,0,0.3); |
| + | // $orbit-nav-arrow-color: #fff; |
| + | // $orbit-nav-arrow-color-hover: #fff; |
| + | |
| + | // We use these to control the timer styles |
| + | // $orbit-timer-bg: rgba(255,255,255,0.3); |
| + | // $orbit-timer-show-progress-bar: true; |
| + | |
| + | // We use these to control the bullet nav styles |
| + | // $orbit-bullet-nav-color: #ccc; |
| + | // $orbit-bullet-nav-color-active: #999; |
| + | // $orbit-bullet-radius: rem-calc(9); |
| + | |
| + | // We use these to controls the style of slide numbers |
| + | // $orbit-slide-number-bg: rgba(0,0,0,0); |
| + | // $orbit-slide-number-font-color: #fff; |
| + | // $orbit-slide-number-padding: rem-calc(5); |
| + | |
| + | // We use these to controls the css animation |
| + | // $orbit-animation-speed: 500ms; |
| + | // $orbit-animation-ease: ease-in-out; |
| + | |
| + | // Hide controls on small |
| + | // $orbit-nav-hide-for-small: true; |
| + | // $orbit-bullet-hide-for-small: true; |
| + | // $orbit-timer-hide-for-small: true; |
| + | |
| + | // Graceful Loading Wrapper and preloader |
| + | // $wrapper-class: "slideshow-wrapper"; |
| + | // $preloader-class: "preloader"; |
| + | |
| + | // Pagination |
| + | |
| + | // $include-pagination-classes: $include-html-classes; |
| + | |
| + | // We use these to control the pagination container |
| + | // $pagination-height: rem-calc(24); |
| + | // $pagination-margin: rem-calc(-5); |
| + | |
| + | // We use these to set the list-item properties |
| + | // $pagination-li-float: $default-float; |
| + | // $pagination-li-height: rem-calc(24); |
| + | // $pagination-li-font-color: #222; |
| + | // $pagination-li-font-size: rem-calc(14); |
| + | // $pagination-li-margin: rem-calc(5); |
| + | |
| + | // We use these for the pagination anchor links |
| + | // $pagination-link-pad: rem-calc(1 10 1); |
| + | // $pagination-link-font-color: #999; |
| + | // $pagination-link-active-bg: scale-color(#fff, $lightness: -10%); |
| + | |
| + | // We use these for disabled anchor links |
| + | // $pagination-link-unavailable-cursor: default; |
| + | // $pagination-link-unavailable-font-color: #999; |
| + | // $pagination-link-unavailable-bg-active: transparent; |
| + | |
| + | // We use these for currently selected anchor links |
| + | // $pagination-link-current-background: $primary-color; |
| + | // $pagination-link-current-font-color: #fff; |
| + | // $pagination-link-current-font-weight: $font-weight-bold; |
| + | // $pagination-link-current-cursor: default; |
| + | // $pagination-link-current-active-bg: $primary-color; |
| + | |
| + | // Panels |
| + | |
| + | // $include-html-panel-classes: $include-html-classes; |
| + | |
| + | // We use these to control the background and border styles |
| + | // $panel-bg: scale-color(#fff, $lightness: -5%); |
| + | // $panel-border-style: solid; |
| + | // $panel-border-size: 1px; |
| + | |
| + | // We use this % to control how much we darken things on hover |
| + | // $panel-function-factor: -11%; |
| + | // $panel-border-color: scale-color($panel-bg, $lightness: $panel-function-factor); |
| + | |
| + | // We use these to set default inner padding and bottom margin |
| + | // $panel-margin-bottom: rem-calc(20); |
| + | // $panel-padding: rem-calc(20); |
| + | |
| + | // We use these to set default font colors |
| + | // $panel-font-color: #333; |
| + | // $panel-font-color-alt: #fff; |
| + | |
| + | // $panel-header-adjust: true; |
| + | // $callout-panel-link-color: $primary-color; |
| + | |
| + | // Pricing Tables |
| + | |
| + | // $include-html-pricing-classes: $include-html-classes; |
| + | |
| + | // We use this to control the border color |
| + | // $price-table-border: solid 1px #ddd; |
| + | |
| + | // We use this to control the bottom margin of the pricing table |
| + | // $price-table-margin-bottom: rem-calc(20); |
| + | |
| + | // We use these to control the title styles |
| + | // $price-title-bg: #333; |
| + | // $price-title-padding: rem-calc(15 20); |
| + | // $price-title-align: center; |
| + | // $price-title-color: #eee; |
| + | // $price-title-weight: $font-weight-normal; |
| + | // $price-title-size: rem-calc(16); |
| + | // $price-title-font-family: $body-font-family; |
| + | |
| + | // We use these to control the price styles |
| + | // $price-money-bg: #f6f6f6 ; |
| + | // $price-money-padding: rem-calc(15 20); |
| + | // $price-money-align: center; |
| + | // $price-money-color: #333; |
| + | // $price-money-weight: $font-weight-normal; |
| + | // $price-money-size: rem-calc(32); |
| + | // $price-money-font-family: $body-font-family; |
| + | |
| + | |
| + | // We use these to control the description styles |
| + | // $price-bg: #fff; |
| + | // $price-desc-color: #777; |
| + | // $price-desc-padding: rem-calc(15); |
| + | // $price-desc-align: center; |
| + | // $price-desc-font-size: rem-calc(12); |
| + | // $price-desc-weight: $font-weight-normal; |
| + | // $price-desc-line-height: 1.4; |
| + | // $price-desc-bottom-border: dotted 1px #ddd; |
| + | |
| + | // We use these to control the list item styles |
| + | // $price-item-color: #333; |
| + | // $price-item-padding: rem-calc(15); |
| + | // $price-item-align: center; |
| + | // $price-item-font-size: rem-calc(14); |
| + | // $price-item-weight: $font-weight-normal; |
| + | // $price-item-bottom-border: dotted 1px #ddd; |
| + | |
| + | // We use these to control the CTA area styles |
| + | // $price-cta-bg: #fff; |
| + | // $price-cta-align: center; |
| + | // $price-cta-padding: rem-calc(20 20 0); |
| + | |
| + | // Progress Bar |
| + | |
| + | // $include-html-media-classes: $include-html-classes; |
| + | |
| + | // We use this to set the progress bar height |
| + | // $progress-bar-height: rem-calc(25); |
| + | // $progress-bar-color: #f6f6f6 ; |
| + | |
| + | // We use these to control the border styles |
| + | // $progress-bar-border-color: scale-color(#fff, $lightness: 20%); |
| + | // $progress-bar-border-size: 1px; |
| + | // $progress-bar-border-style: solid; |
| + | // $progress-bar-border-radius: $global-radius; |
| + | |
| + | // We use these to control the margin & padding |
| + | // $progress-bar-pad: rem-calc(2); |
| + | // $progress-bar-margin-bottom: rem-calc(10); |
| + | |
| + | // We use these to set the meter colors |
| + | // $progress-meter-color: $primary-color; |
| + | // $progress-meter-secondary-color: $secondary-color; |
| + | // $progress-meter-success-color: $success-color; |
| + | // $progress-meter-alert-color: $alert-color; |
| + | |
| + | // Reveal |
| + | |
| + | // $include-html-reveal-classes: $include-html-classes; |
| + | |
| + | // We use these to control the style of the reveal overlay. |
| + | // $reveal-overlay-bg: rgba(#000, .45); |
| + | // $reveal-overlay-bg-old: #000; |
| + | |
| + | // We use these to control the style of the modal itself. |
| + | // $reveal-modal-bg: #fff; |
| + | // $reveal-position-top: rem-calc(100); |
| + | // $reveal-default-width: 80%; |
| + | // $reveal-modal-padding: rem-calc(20); |
| + | // $reveal-box-shadow: 0 0 10px rgba(#000,.4); |
| + | |
| + | // We use these to style the reveal close button |
| + | // $reveal-close-font-size: rem-calc(40); |
| + | // $reveal-close-top: rem-calc(8); |
| + | // $reveal-close-side: rem-calc(11); |
| + | // $reveal-close-color: #aaa; |
| + | // $reveal-close-weight: $font-weight-bold; |
| + | |
| + | // We use this to set the default radius used throughout the core. |
| + | // $reveal-radius: $global-radius; |
| + | // $reveal-round: $global-rounded; |
| + | |
| + | // We use these to control the modal border |
| + | // $reveal-border-style: solid; |
| + | // $reveal-border-width: 1px; |
| + | // $reveal-border-color: #666; |
| + | |
| + | // $reveal-modal-class: "reveal-modal"; |
| + | // $close-reveal-modal-class: "close-reveal-modal"; |
| + | |
| + | // Side Nav |
| + | |
| + | // $include-html-nav-classes: $include-html-classes; |
| + | |
| + | // We use this to control padding. |
| + | // $side-nav-padding: rem-calc(14 0); |
| + | |
| + | // We use these to control list styles. |
| + | // $side-nav-list-type: none; |
| + | // $side-nav-list-position: inside; |
| + | // $side-nav-list-margin: rem-calc(0 0 7 0); |
| + | |
| + | // We use these to control link styles. |
| + | // $side-nav-link-color: $primary-color; |
| + | // $side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%); |
| + | // $side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%); |
| + | // $side-nav-font-size: rem-calc(14); |
| + | // $side-nav-font-weight: $font-weight-normal; |
| + | // $side-nav-font-weight-active: $side-nav-font-weight; |
| + | // $side-nav-font-family: $body-font-family; |
| + | // $side-nav-active-font-family: $side-nav-font-family; |
| + | |
| + | |
| + | |
| + | // We use these to control border styles |
| + | // $side-nav-divider-size: 1px; |
| + | // $side-nav-divider-style: solid; |
| + | // $side-nav-divider-color: scale-color(#fff, $lightness: 10%); |
| + | |
| + | // Split Buttons |
| + | |
| + | // $include-html-button-classes: $include-html-classes; |
| + | |
| + | // We use these to control different shared styles for Split Buttons |
| + | // $split-button-function-factor: 10%; |
| + | // $split-button-pip-color: #fff; |
| + | // $split-button-pip-color-alt: #333; |
| + | // $split-button-active-bg-tint: rgba(0,0,0,0.1); |
| + | |
| + | // We use these to control tiny split buttons |
| + | // $split-button-padding-tny: $button-pip-tny * 10; |
| + | // $split-button-span-width-tny: $button-pip-tny * 6; |
| + | // $split-button-pip-size-tny: $button-pip-tny; |
| + | // $split-button-pip-top-tny: $button-pip-tny * 2; |
| + | // $split-button-pip-default-float-tny: rem-calc(-6); |
| + | |
| + | // We use these to control small split buttons |
| + | // $split-button-padding-sml: $button-pip-sml * 10; |
| + | // $split-button-span-width-sml: $button-pip-sml * 6; |
| + | // $split-button-pip-size-sml: $button-pip-sml; |
| + | // $split-button-pip-top-sml: $button-pip-sml * 1.5; |
| + | // $split-button-pip-default-float-sml: rem-calc(-6); |
| + | |
| + | // We use these to control medium split buttons |
| + | // $split-button-padding-med: $button-pip-med * 9; |
| + | // $split-button-span-width-med: $button-pip-med * 5.5; |
| + | // $split-button-pip-size-med: $button-pip-med - rem-calc(3); |
| + | // $split-button-pip-top-med: $button-pip-med * 1.5; |
| + | // $split-button-pip-default-float-med: rem-calc(-6); |
| + | |
| + | // We use these to control large split buttons |
| + | // $split-button-padding-lrg: $button-pip-lrg * 8; |
| + | // $split-button-span-width-lrg: $button-pip-lrg * 5; |
| + | // $split-button-pip-size-lrg: $button-pip-lrg - rem-calc(6); |
| + | // $split-button-pip-top-lrg: $button-pip-lrg + rem-calc(5); |
| + | // $split-button-pip-default-float-lrg: rem-calc(-6); |
| + | |
| + | // Sub Nav |
| + | |
| + | // $include-html-nav-classes: $include-html-classes; |
| + | |
| + | // We use these to control margin and padding |
| + | // $sub-nav-list-margin: rem-calc(-4 0 18); |
| + | // $sub-nav-list-padding-top: rem-calc(4); |
| + | |
| + | // We use this to control the definition |
| + | // $sub-nav-font-family: $body-font-family; |
| + | // $sub-nav-font-size: rem-calc(14); |
| + | // $sub-nav-font-color: #999; |
| + | // $sub-nav-font-weight: $font-weight-normal; |
| + | // $sub-nav-text-decoration: none; |
| + | // $sub-nav-padding: rem-calc(3 16); |
| + | // $sub-nav-border-radius: 3px; |
| + | // $sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%); |
| + | |
| + | |
| + | // We use these to control the active item styles |
| + | // $sub-nav-active-font-weight: $font-weight-normal; |
| + | // $sub-nav-active-bg: $primary-color; |
| + | // $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%); |
| + | // $sub-nav-active-color: #fff; |
| + | // $sub-nav-active-padding: $sub-nav-padding; |
| + | // $sub-nav-active-cursor: default; |
| + | |
| + | // $sub-nav-item-divider: ""; |
| + | // $sub-nav-item-divider-margin: rem-calc(12); |
| + | |
| + | // |
| + | // SWITCH |
| + | // |
| + | |
| + | // $include-html-form-classes: $include-html-classes; |
| + | |
| + | // Controlling border styles and background colors for the switch container |
| + | // $switch-border-color: scale-color(#fff, $lightness: -20%); |
| + | // $switch-border-style: solid; |
| + | // $switch-border-width: 1px; |
| + | // $switch-bg: #fff; |
| + | |
| + | // We use these to control the switch heights for our default classes |
| + | // $switch-height-tny: 22px; |
| + | // $switch-height-sml: 28px; |
| + | // $switch-height-med: 36px; |
| + | // $switch-height-lrg: 44px; |
| + | // $switch-bottom-margin: rem-calc(20); |
| + | |
| + | // We use these to control default font sizes for our classes. |
| + | // $switch-font-size-tny: 11px; |
| + | // $switch-font-size-sml: 12px; |
| + | // $switch-font-size-med: 14px; |
| + | // $switch-font-size-lrg: 17px; |
| + | // $switch-label-side-padding: 6px; |
| + | |
| + | // We use these to style the switch-paddle |
| + | // $switch-paddle-bg: #fff; |
| + | // $switch-paddle-fade-to-color: scale-color($switch-paddle-bg, $lightness: -10%); |
| + | // $switch-paddle-border-color: scale-color($switch-paddle-bg, $lightness: -35%); |
| + | // $switch-paddle-border-width: 1px; |
| + | // $switch-paddle-border-style: solid; |
| + | // $switch-paddle-transition-speed: .1s; |
| + | // $switch-paddle-transition-ease: ease-out; |
| + | // $switch-positive-color: scale-color($success-color, $lightness: 94%); |
| + | // $switch-negative-color: #f5f5f5; |
| + | |
| + | // Outline Style for tabbing through switches |
| + | // $switch-label-outline: 1px dotted #888; |
| + | |
| + | // Tables |
| + | |
| + | // $include-html-table-classes: $include-html-classes; |
| + | |
| + | // These control the background color for the table and even rows |
| + | // $table-bg: #fff; |
| + | // $table-even-row-bg: #f9f9f9 ; |
| + | |
| + | // These control the table cell border style |
| + | // $table-border-style: solid; |
| + | // $table-border-size: 1px; |
| + | // $table-border-color: #ddd; |
| + | |
| + | // These control the table head styles |
| + | // $table-head-bg: #f5f5f5 ; |
| + | // $table-head-font-size: rem-calc(14); |
| + | // $table-head-font-color: #222; |
| + | // $table-head-font-weight: $font-weight-bold; |
| + | // $table-head-padding: rem-calc(8 10 10); |
| + | |
| + | // These control the row padding and font styles |
| + | // $table-row-padding: rem-calc(9 10); |
| + | // $table-row-font-size: rem-calc(14); |
| + | // $table-row-font-color: #222; |
| + | // $table-line-height: rem-calc(18); |
| + | |
| + | // These are for controlling the display and margin of tables |
| + | // $table-display: table-cell; |
| + | // $table-margin-bottom: rem-calc(20); |
| + | |
| + | // |
| + | // TABS |
| + | // |
| + | |
| + | // $include-html-tabs-classes: $include-html-classes; |
| + | |
| + | // $tabs-navigation-padding: rem-calc(16); |
| + | // $tabs-navigation-bg-color: #efefef ; |
| + | // $tabs-navigation-active-bg-color: #fff; |
| + | // $tabs-navigation-hover-bg-color: scale-color($tabs-navigation-bg-color, $lightness: -6%); |
| + | // $tabs-navigation-font-color: #222; |
| + | // $tabs-navigation-active-font-color: $tabs-navigation-font-color; |
| + | // $tabs-navigation-font-size: rem-calc(16); |
| + | // $tabs-navigation-font-family: $body-font-family; |
| + | |
| + | // $tabs-content-margin-bottom: rem-calc(24); |
| + | // $tabs-content-padding: $column-gutter/2; |
| + | |
| + | // $tabs-vertical-navigation-margin-bottom: 1.25rem; |
| + | |
| + | // |
| + | // THUMBNAILS |
| + | // |
| + | |
| + | // $include-html-media-classes: $include-html-classes; |
| + | |
| + | // We use these to control border styles |
| + | // $thumb-border-style: solid; |
| + | // $thumb-border-width: 4px; |
| + | // $thumb-border-color: #fff; |
| + | // $thumb-box-shadow: 0 0 0 1px rgba(#000,.2); |
| + | // $thumb-box-shadow-hover: 0 0 6px 1px rgba($primary-color,0.5); |
| + | |
| + | // Radius and transition speed for thumbs |
| + | // $thumb-radius: $global-radius; |
| + | // $thumb-transition-speed: 200ms; |
| + | |
| + | // |
| + | // TOOLTIPS |
| + | // |
| + | |
| + | // $include-html-tooltip-classes: $include-html-classes; |
| + | |
| + | // $has-tip-border-bottom: dotted 1px #ccc; |
| + | // $has-tip-font-weight: $font-weight-bold; |
| + | // $has-tip-font-color: #333; |
| + | // $has-tip-border-bottom-hover: dotted 1px scale-color($primary-color, $lightness: -55%); |
| + | // $has-tip-font-color-hover: $primary-color; |
| + | // $has-tip-cursor-type: help; |
| + | |
| + | // $tooltip-padding: rem-calc(12); |
| + | // $tooltip-bg: #333; |
| + | // $tooltip-font-size: rem-calc(14); |
| + | // $tooltip-font-weight: $font-weight-normal; |
| + | // $tooltip-font-color: #fff; |
| + | // $tooltip-line-height: 1.3; |
| + | // $tooltip-close-font-size: rem-calc(10); |
| + | // $tooltip-close-font-weight: $font-weight-normal; |
| + | // $tooltip-close-font-color: #777; |
| + | // $tooltip-font-size-sml: rem-calc(14); |
| + | // $tooltip-radius: $global-radius; |
| + | // $tooltip-rounded: $global-rounded; |
| + | // $tooltip-pip-size: 5px; |
| + | |
| + | // |
| + | // TOP BAR |
| + | // |
| + | |
| + | // $include-html-top-bar-classes: $include-html-classes; |
| + | |
| + | // Background color for the top bar |
| + | // $topbar-bg-color: #333; |
| + | // $topbar-bg: $topbar-bg-color; |
| + | |
| + | // Height and margin |
| + | // $topbar-height: 45px; |
| + | // $topbar-margin-bottom: 0; |
| + | |
| + | // Controlling the styles for the title in the top bar |
| + | // $topbar-title-weight: $font-weight-normal; |
| + | // $topbar-title-font-size: rem-calc(17); |
| + | |
| + | // Style the top bar dropdown elements |
| + | // $topbar-dropdown-bg: #333; |
| + | // $topbar-dropdown-link-color: #fff; |
| + | // $topbar-dropdown-link-bg: #333; |
| + | // $topbar-dropdown-link-weight: $font-weight-normal; |
| + | // $topbar-dropdown-toggle-size: 5px; |
| + | // $topbar-dropdown-toggle-color: #fff; |
| + | // $topbar-dropdown-toggle-alpha: 0.4; |
| + | |
| + | // Set the link colors and styles for top-level nav |
| + | // $topbar-link-color: #fff; |
| + | // $topbar-link-color-hover: #fff; |
| + | // $topbar-link-color-active: #fff; |
| + | // $topbar-link-color-active-hover: #fff; |
| + | // $topbar-link-weight: $font-weight-normal; |
| + | // $topbar-link-font-size: rem-calc(13); |
| + | // $topbar-link-hover-lightness: -10%; // Darken by 10% |
| + | // $topbar-link-bg: $topbar-bg; |
| + | // $topbar-link-bg-color-hover: #555555; |
| + | // $topbar-link-bg-hover: #272727; |
| + | // $topbar-link-bg-active: $primary-color; |
| + | // $topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%); |
| + | // $topbar-link-font-family: $body-font-family; |
| + | // $topbar-link-text-transform: none; |
| + | // $topbar-link-padding: $topbar-height / 3; |
| + | |
| + | // $topbar-button-font-size: 0.75rem; |
| + | // $topbar-button-top: 7px; |
| + | |
| + | // $topbar-dropdown-label-color: #777; |
| + | // $topbar-dropdown-label-text-transform: uppercase; |
| + | // $topbar-dropdown-label-font-weight: $font-weight-bold; |
| + | // $topbar-dropdown-label-font-size: rem-calc(10); |
| + | // $topbar-dropdown-label-bg: #333; |
| + | |
| + | // Top menu icon styles |
| + | // $topbar-menu-link-transform: uppercase; |
| + | // $topbar-menu-link-font-size: rem-calc(13); |
| + | // $topbar-menu-link-weight: $font-weight-bold; |
| + | // $topbar-menu-link-color: #fff; |
| + | // $topbar-menu-icon-color: #fff; |
| + | // $topbar-menu-link-color-toggled: #888; |
| + | // $topbar-menu-icon-color-toggled: #888; |
| + | |
| + | // Transitions and breakpoint styles |
| + | // $topbar-transition-speed: 300ms; |
| + | // Using rem-calc for the below breakpoint causes issues with top bar |
| + | // $topbar-breakpoint: #{lower-bound($medium-range)}; // Change to 9999px for always mobile layout |
| + | // $topbar-media-query: $medium-up; |
| + | |
| + | // Divider Styles |
| + | // $topbar-divider-border-bottom: solid 1px scale-color($topbar-bg-color, $lightness: 13%); |
| + | // $topbar-divider-border-top: solid 1px scale-color($topbar-bg-color, $lightness: -50%); |
| + | |
| + | // Sticky Class |
| + | // $topbar-sticky-class: ".sticky"; |
| + | // $topbar-arrows: true; //Set false to remove the triangle icon from the menu item |
| + | |
| + | // |
| + | // VISIBILITY CLASSES |
| + | // |
| + | |
| + | // $include-html-visibility-classes: $include-html-classes; |
| + | // $include-table-visibility-classes: true; |
| + | // $include-legacy-visibility-classes: true; |
| + | |
| + | // |
| + | // RANGE SLIDER |
| + | // |
| + | |
| + | // $include-html-range-slider-classes: $include-html-classes; |
| + | |
| + | // These variabels define the slider bar styles |
| + | // $range-slider-bar-width: 100%; |
| + | // $range-slider-bar-height: rem-calc(16); |
| + | |
| + | // $range-slider-bar-border-width: 1px; |
| + | // $range-slider-bar-border-style: solid; |
| + | // $range-slider-bar-border-color: #ddd; |
| + | // $range-slider-radius: $global-radius; |
| + | // $range-slider-round: $global-rounded; |
| + | // $range-slider-bar-bg-color: #fafafa; |
| + | |
| + | // Vertical bar styles |
| + | // $range-slider-vertical-bar-width: rem-calc(16); |
| + | // $range-slider-vertical-bar-height: rem-calc(200); |
| + | |
| + | // These variabels define the slider handle styles |
| + | // $range-slider-handle-width: rem-calc(32); |
| + | // $range-slider-handle-height: rem-calc(22); |
| + | // $range-slider-handle-position-top: rem-calc(-5); |
| + | // $range-slider-handle-bg-color: $primary-color; |
| + | // $range-slider-handle-border-width: 1px; |
| + | // $range-slider-handle-border-style: solid; |
| + | // $range-slider-handle-border-color: none; |
| + | // $range-slider-handle-radius: $global-radius; |
| + | // $range-slider-handle-round: $global-rounded; |
| + | // $range-slider-handle-bg-hover-color: scale-color($primary-color, $lightness: -12%); |
| + | // $range-slider-handle-cursor: pointer; |
generators/foundation5/public/stylesheets/foundation/components/_accordion.scss
+53
-0
| @@ | @@ -0,0 +1,53 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | |
| + | $include-html-accordion-classes: $include-html-classes !default; |
| + | |
| + | $accordion-navigation-padding: rem-calc(16) !default; |
| + | $accordion-navigation-bg-color: #efefef !default; |
| + | $accordion-navigation-hover-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -5%) !default; |
| + | $accordion-navigation-active-bg-color: scale-color($accordion-navigation-bg-color, $lightness: -3%) !default; |
| + | $accordion-navigation-font-color: #222 !default; |
| + | $accordion-navigation-font-size: rem-calc(16) !default; |
| + | $accordion-navigation-font-family: $body-font-family !default; |
| + | |
| + | $accordion-content-padding: $column-gutter/2 !default; |
| + | $accordion-content-active-bg-color: #fff !default; |
| + | |
| + | @include exports("accordion") { |
| + | @if $include-html-accordion-classes { |
| + | .accordion { |
| + | @include clearfix; margin-bottom: 0; |
| + | dd { |
| + | display: block; |
| + | margin-bottom: 0 !important; |
| + | &.active > a { background: $accordion-navigation-active-bg-color; } |
| + | > a { |
| + | background: $accordion-navigation-bg-color; |
| + | color: $accordion-navigation-font-color; |
| + | padding: $accordion-navigation-padding; |
| + | display: block; |
| + | font-family: $accordion-navigation-font-family; |
| + | font-size: $accordion-navigation-font-size; |
| + | &:hover { background: $accordion-navigation-hover-bg-color; } |
| + | } |
| + | |
| + | > .content { |
| + | display: none; |
| + | padding: $accordion-content-padding; |
| + | &.active { |
| + | display: block; |
| + | background: $accordion-content-active-bg-color; |
| + | } |
| + | } |
| + | } |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_alert-boxes.scss
+126
-0
| @@ | @@ -0,0 +1,126 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // Alert Box Variables |
| + | // |
| + | $include-html-alert-classes: $include-html-classes !default; |
| + | |
| + | // We use this to control alert padding. |
| + | $alert-padding-top: rem-calc(14) !default; |
| + | $alert-padding-default-float: $alert-padding-top !default; |
| + | $alert-padding-opposite-direction: $alert-padding-top + rem-calc(10) !default; |
| + | $alert-padding-bottom: $alert-padding-top !default; |
| + | |
| + | // We use these to control text style. |
| + | $alert-font-weight: $font-weight-normal !default; |
| + | $alert-font-size: rem-calc(13) !default; |
| + | $alert-font-color: #fff !default; |
| + | $alert-font-color-alt: scale-color($secondary-color, $lightness: -66%) !default; |
| + | |
| + | // We use this for close hover effect. |
| + | $alert-function-factor: -14% !default; |
| + | |
| + | // We use these to control border styles. |
| + | $alert-border-style: solid !default; |
| + | $alert-border-width: 1px !default; |
| + | $alert-border-color: scale-color($primary-color, $lightness: $alert-function-factor) !default; |
| + | $alert-bottom-margin: rem-calc(20) !default; |
| + | |
| + | // We use these to style the close buttons |
| + | $alert-close-color: #333 !default; |
| + | $alert-close-top: 50% !default; |
| + | $alert-close-position: rem-calc(4) !default; |
| + | $alert-close-font-size: rem-calc(22) !default; |
| + | $alert-close-opacity: 0.3 !default; |
| + | $alert-close-opacity-hover: 0.5 !default; |
| + | $alert-close-padding: 9px 6px 4px !default; |
| + | |
| + | // We use this to control border radius |
| + | $alert-radius: $global-radius !default; |
| + | |
| + | $alert-transition-speed: 300ms !default; |
| + | $alert-transition-ease: ease-out !default; |
| + | |
| + | // |
| + | // Alert Mixins |
| + | // |
| + | |
| + | // We use this mixin to create a default alert base. |
| + | @mixin alert-base { |
| + | border-style: $alert-border-style; |
| + | border-width: $alert-border-width; |
| + | display: block; |
| + | font-weight: $alert-font-weight; |
| + | margin-bottom: $alert-bottom-margin; |
| + | position: relative; |
| + | padding: $alert-padding-top $alert-padding-opposite-direction $alert-padding-bottom $alert-padding-default-float; |
| + | font-size: $alert-font-size; |
| + | @include single-transition(opacity, $alert-transition-speed, $alert-transition-ease) |
| + | } |
| + | |
| + | // We use this mixin to add alert styles |
| + | // |
| + | // $bg - The background of the alert. Default: $primary-color. |
| + | @mixin alert-style($bg:$primary-color) { |
| + | |
| + | // This finds the lightness percentage of the background color. |
| + | $bg-lightness: lightness($bg); |
| + | |
| + | // We control which background color and border come through. |
| + | background-color: $bg; |
| + | border-color: scale-color($bg, $lightness: $alert-function-factor); |
| + | |
| + | // We control the text color for you based on the background color. |
| + | @if $bg-lightness > 70% { color: $alert-font-color-alt; } |
| + | @else { color: $alert-font-color; } |
| + | |
| + | } |
| + | |
| + | // We use this to create the close button. |
| + | @mixin alert-close { |
| + | font-size: $alert-close-font-size; |
| + | padding: $alert-close-padding; |
| + | line-height: 0; |
| + | position: absolute; |
| + | top: $alert-close-top; |
| + | margin-top: -($alert-close-font-size / 2); |
| + | #{$opposite-direction}: $alert-close-position; |
| + | color: $alert-close-color; |
| + | opacity: $alert-close-opacity; |
| + | &:hover, |
| + | &:focus { opacity: $alert-close-opacity-hover; } |
| + | } |
| + | |
| + | // We use this to quickly create alerts with a single mixin. |
| + | // |
| + | // $bg - Background of alert. Default: $primary-color. |
| + | // $radius - Radius of alert box. Default: false. |
| + | @mixin alert($bg:$primary-color, $radius:false) { |
| + | @include alert-base; |
| + | @include alert-style($bg); |
| + | @include radius($radius); |
| + | } |
| + | |
| + | @include exports("alert-box") { |
| + | @if $include-html-alert-classes { |
| + | .alert-box { |
| + | @include alert; |
| + | |
| + | .close { @include alert-close; } |
| + | |
| + | &.radius { @include radius($alert-radius); } |
| + | &.round { @include radius($global-rounded); } |
| + | |
| + | &.success { @include alert-style($success-color); } |
| + | &.alert { @include alert-style($alert-color); } |
| + | &.secondary { @include alert-style($secondary-color); } |
| + | &.warning { @include alert-style($warning-color); } |
| + | &.info { @include alert-style($info-color); } |
| + | &.alert-close { opacity: 0} |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_block-grid.scss
+132
-0
| @@ | @@ -0,0 +1,132 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // Block Grid Variables |
| + | // |
| + | $include-html-grid-classes: $include-html-classes !default; |
| + | $include-xl-html-block-grid-classes: false !default; |
| + | |
| + | // We use this to control the maximum number of block grid elements per row |
| + | $block-grid-elements: 12 !default; |
| + | $block-grid-default-spacing: rem-calc(20) !default; |
| + | |
| + | $align-block-grid-to-grid: false !default; |
| + | @if $align-block-grid-to-grid { |
| + | $block-grid-default-spacing: $column-gutter; |
| + | } |
| + | |
| + | // Enables media queries for block-grid classes. Set to false if writing semantic HTML. |
| + | $block-grid-media-queries: true !default; |
| + | |
| + | // |
| + | // Block Grid Mixins |
| + | // |
| + | |
| + | // Create a custom block grid |
| + | // |
| + | // $per-row - # of items to display per row. Default: false. |
| + | // $spacing - # of ems to use as padding on each block item. Default: rem-calc(20). |
| + | // $base-style - Apply a base style to block grid. Default: true. |
| + | @mixin block-grid( |
| + | $per-row:false, |
| + | $spacing:$block-grid-default-spacing, |
| + | $include-spacing:true, |
| + | $base-style:true) { |
| + | |
| + | @if $base-style { |
| + | display: block; |
| + | padding: 0; |
| + | @if $align-block-grid-to-grid { |
| + | margin: 0; |
| + | } @else { |
| + | margin: 0 (-$spacing/2); |
| + | } |
| + | @include clearfix; |
| + | |
| + | &>li { |
| + | display: block; |
| + | height: auto; |
| + | float: $default-float; |
| + | @if $include-spacing { |
| + | padding: 0 ($spacing/2) $spacing; |
| + | } |
| + | } |
| + | } |
| + | |
| + | @if $per-row { |
| + | &>li { |
| + | width: 100%/$per-row; |
| + | @if $include-spacing { |
| + | padding: 0 ($spacing/2) $spacing; |
| + | } |
| + | list-style: none; |
| + | |
| + | &:nth-of-type(1n) { clear: none; } |
| + | &:nth-of-type(#{$per-row}n+1) { clear: both; } |
| + | @if $align-block-grid-to-grid { |
| + | @include block-grid-aligned($per-row, $spacing); |
| + | } |
| + | } |
| + | } |
| + | } |
| + | |
| + | @mixin block-grid-aligned($per-row, $spacing) { |
| + | @for $i from 1 through $block-grid-elements { |
| + | @if $per-row >= $i { |
| + | $grid-column: '+' + $i; |
| + | @if $per-row == $i { |
| + | $grid-column: ''; |
| + | } |
| + | &:nth-of-type(#{$per-row}n#{unquote($grid-column)}) { |
| + | padding-left: ($spacing - (($spacing / $per-row) * ($per-row - ($i - 1)))); |
| + | padding-right: ($spacing - (($spacing / $per-row) * $i)); |
| + | } |
| + | } |
| + | } |
| + | } |
| + | |
| + | // Generate presentational markup for block grid. |
| + | // |
| + | // $size - Name of class to use, i.e. "large" will generate .large-block-grid-1, .large-block-grid-2, etc. |
| + | @mixin block-grid-html-classes($size,$include-spacing) { |
| + | @for $i from 1 through $block-grid-elements { |
| + | .#{$size}-block-grid-#{($i)} { |
| + | @include block-grid($i,$block-grid-default-spacing,$include-spacing,false); |
| + | } |
| + | } |
| + | } |
| + | |
| + | @include exports("block-grid") { |
| + | @if $include-html-grid-classes { |
| + | |
| + | [class*="block-grid-"] { @include block-grid; } |
| + | |
| + | @if $block-grid-media-queries { |
| + | @media #{$small-up} { |
| + | @include block-grid-html-classes($size:small,$include-spacing:false); |
| + | } |
| + | |
| + | @media #{$medium-up} { |
| + | @include block-grid-html-classes($size:medium,$include-spacing:false); |
| + | } |
| + | |
| + | @media #{$large-up} { |
| + | @include block-grid-html-classes($size:large,$include-spacing:false); |
| + | } |
| + | |
| + | @if $include-xl-html-block-grid-classes { |
| + | @media #{$xlarge-up} { |
| + | @include block-grid-html-classes($size:xlarge,$include-spacing:false); |
| + | } |
| + | |
| + | @media #{$xxlarge-up} { |
| + | @include block-grid-html-classes($size:xxlarge,$include-spacing:false); |
| + | } |
| + | } |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_breadcrumbs.scss
+127
-0
| @@ | @@ -0,0 +1,127 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // Breadcrumb Variables |
| + | // |
| + | $include-html-nav-classes: $include-html-classes !default; |
| + | |
| + | // We use this to set the background color for the breadcrumb container. |
| + | $crumb-bg: scale-color($secondary-color, $lightness: 55%) !default; |
| + | |
| + | // We use these to set the padding around the breadcrumbs. |
| + | $crumb-padding: rem-calc(9 14 9) !default; |
| + | $crumb-side-padding: rem-calc(12) !default; |
| + | |
| + | // We use these to control border styles. |
| + | $crumb-function-factor: -10% !default; |
| + | $crumb-border-size: 1px !default; |
| + | $crumb-border-style: solid !default; |
| + | $crumb-border-color: scale-color($crumb-bg, $lightness: $crumb-function-factor) !default; |
| + | $crumb-radius: $global-radius !default; |
| + | |
| + | // We use these to set various text styles for breadcrumbs. |
| + | $crumb-font-size: rem-calc(11) !default; |
| + | $crumb-font-color: $primary-color !default; |
| + | $crumb-font-color-current: #333 !default; |
| + | $crumb-font-color-unavailable: #999 !default; |
| + | $crumb-font-transform: uppercase !default; |
| + | $crumb-link-decor: underline !default; |
| + | |
| + | // We use these to control the slash between breadcrumbs |
| + | $crumb-slash-color: #aaa !default; |
| + | $crumb-slash: "/" !default; |
| + | |
| + | // |
| + | // Breadcrumb Mixins |
| + | // |
| + | |
| + | // We use this mixin to create a container around our breadcrumbs |
| + | @mixin crumb-container { |
| + | display: block; |
| + | padding: $crumb-padding; |
| + | overflow: hidden; |
| + | margin-#{$default-float}: 0; |
| + | list-style: none; |
| + | border-style: $crumb-border-style; |
| + | border-width: $crumb-border-size; |
| + | |
| + | // We control which background color and border come through. |
| + | background-color: $crumb-bg; |
| + | border-color: $crumb-border-color; |
| + | } |
| + | |
| + | // We use this mixin to create breadcrumb styles from list items. |
| + | @mixin crumbs { |
| + | |
| + | // A normal state will make the links look and act like clickable breadcrumbs. |
| + | margin: 0; |
| + | float: $default-float; |
| + | font-size: $crumb-font-size; |
| + | line-height: $crumb-font-size; |
| + | text-transform: $crumb-font-transform; |
| + | color: $crumb-font-color; |
| + | |
| + | &:hover a, &:focus a { text-decoration: $crumb-link-decor; } |
| + | |
| + | a { |
| + | color: $crumb-font-color; |
| + | } |
| + | |
| + | // Current is for the link of the current page |
| + | &.current { |
| + | cursor: $cursor-default-value; |
| + | color: $crumb-font-color-current; |
| + | a { |
| + | cursor: $cursor-default-value; |
| + | color: $crumb-font-color-current; |
| + | } |
| + | |
| + | &:hover, &:hover a, |
| + | &:focus, &:focus a { text-decoration: none; } |
| + | } |
| + | |
| + | // Unavailable removed color and link styles so it looks inactive. |
| + | &.unavailable { |
| + | color: $crumb-font-color-unavailable; |
| + | a { color: $crumb-font-color-unavailable; } |
| + | |
| + | &:hover, |
| + | &:hover a, |
| + | &:focus, |
| + | a:focus { |
| + | text-decoration: none; |
| + | color: $crumb-font-color-unavailable; |
| + | cursor: $cursor-default-value; |
| + | } |
| + | } |
| + | |
| + | &:before { |
| + | content: "#{$crumb-slash}"; |
| + | color: $crumb-slash-color; |
| + | margin: 0 $crumb-side-padding; |
| + | position: relative; |
| + | top: 1px; |
| + | } |
| + | |
| + | &:first-child:before { |
| + | content: " "; |
| + | margin: 0; |
| + | } |
| + | } |
| + | |
| + | @include exports("breadcrumbs") { |
| + | @if $include-html-nav-classes { |
| + | .breadcrumbs { |
| + | @include crumb-container; |
| + | @include radius($crumb-radius); |
| + | |
| + | &>* { |
| + | @include crumbs; |
| + | } |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_button-groups.scss
+108
-0
| @@ | @@ -0,0 +1,108 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | @import "buttons"; |
| + | |
| + | |
| + | // |
| + | // Button Group Variables |
| + | // |
| + | $include-html-button-classes: $include-html-classes !default; |
| + | |
| + | // Sets the margin for the right side by default, and the left margin if right-to-left direction is used |
| + | $button-bar-margin-opposite: rem-calc(10) !default; |
| + | $button-group-border-width: 1px !default; |
| + | |
| + | // |
| + | // Button Group Mixins |
| + | // |
| + | |
| + | // We use this to add styles for a button group container |
| + | @mixin button-group-container($styles:true, $float:false) { |
| + | @if $styles { |
| + | list-style: none; |
| + | margin: 0; |
| + | #{$default-float}: 0; |
| + | @include clearfix(); |
| + | } |
| + | @if $float { |
| + | float: #{$default-float}; |
| + | margin-#{$opposite-direction}: $button-bar-margin-opposite; |
| + | & div { overflow: hidden; } |
| + | } |
| + | } |
| + | |
| + | // We use this to control styles for button groups |
| + | @mixin button-group-style($radius:false, $even:false, $float:$default-float) { |
| + | |
| + | > button, .button { |
| + | border-#{$default-float}: $button-group-border-width solid; |
| + | border-color: rgba(255, 255, 255, 0.5); |
| + | } |
| + | |
| + | &:first-child { |
| + | button, .button { |
| + | border-#{$default-float}: 0; |
| + | } |
| + | } |
| + | |
| + | // We use this to control the flow, or remove those styles completely. |
| + | @if $float { |
| + | margin: 0; |
| + | float: $float; |
| + | // Make sure the first child doesn't get the negative margin. |
| + | &:first-child { margin-#{$default-float}: 0; } |
| + | } |
| + | |
| + | // We use these to control left and right radius on first/last buttons in the group. |
| + | @if $radius == true { |
| + | &:first-child, |
| + | &:first-child > a, |
| + | &:first-child > button, |
| + | &:first-child > .button { @include side-radius($default-float, $button-radius); } |
| + | &:last-child, |
| + | &:last-child > a, |
| + | &:last-child > button, |
| + | &:last-child > .button { @include side-radius($opposite-direction, $button-radius); } |
| + | } |
| + | @else if $radius { |
| + | &:first-child, |
| + | &:first-child > a, |
| + | &:first-child > button, |
| + | &:first-child > .button { @include side-radius($default-float, $radius); } |
| + | &:last-child, |
| + | &:last-child > a, |
| + | &:last-child > button, |
| + | &:last-child > .button { @include side-radius($opposite-direction, $radius); } |
| + | } |
| + | |
| + | // We use this to make the buttons even width across their container |
| + | @if $even { |
| + | width: percentage((100/$even) / 100); |
| + | button, .button { width: 100%; } |
| + | } |
| + | |
| + | } |
| + | |
| + | @include exports("button-group") { |
| + | @if $include-html-button-classes { |
| + | .button-group { @include button-group-container; |
| + | |
| + | & > li { @include button-group-style(); } |
| + | |
| + | &.radius > * { @include button-group-style($radius:$button-radius, $float:null); } |
| + | &.round > * { @include button-group-style($radius:$button-round, $float:null); } |
| + | |
| + | @for $i from 2 through 8 { |
| + | &.even-#{$i} li { @include button-group-style($even:$i, $float:null); } |
| + | } |
| + | } |
| + | |
| + | .button-bar { |
| + | @include clearfix; |
| + | .button-group { @include button-group-container($styles:false,$float:true); } |
| + | } |
| + | } |
| + | } |
| \ No newline at end of file | |
generators/foundation5/public/stylesheets/foundation/components/_buttons.scss
+222
-0
| @@ | @@ -0,0 +1,222 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-button-classes: $include-html-classes !default; |
| + | |
| + | // We use these to build padding for buttons. |
| + | $button-tny: rem-calc(10) !default; |
| + | $button-sml: rem-calc(14) !default; |
| + | $button-med: rem-calc(16) !default; |
| + | $button-lrg: rem-calc(18) !default; |
| + | |
| + | // We use this to control the display property. |
| + | $button-display: inline-block !default; |
| + | $button-margin-bottom: rem-calc(20) !default; |
| + | |
| + | // We use these to control button text styles. |
| + | $button-font-family: $body-font-family !default; |
| + | $button-font-color: #fff !default; |
| + | $button-font-color-alt: #333 !default; |
| + | $button-font-tny: rem-calc(11) !default; |
| + | $button-font-sml: rem-calc(13) !default; |
| + | $button-font-med: rem-calc(16) !default; |
| + | $button-font-lrg: rem-calc(20) !default; |
| + | $button-font-weight: $font-weight-normal !default; |
| + | $button-font-align: center !default; |
| + | |
| + | // We use these to control various hover effects. |
| + | $button-function-factor: -20% !default; |
| + | |
| + | // We use these to control button border styles. |
| + | $button-border-width: 0px !default; |
| + | $button-border-style: solid !default; |
| + | $button-bg: $primary-color !default; |
| + | $button-border-color: scale-color($button-bg, $lightness: $button-function-factor) !default; |
| + | |
| + | // We use this to set the default radius used throughout the core. |
| + | $button-radius: $global-radius !default; |
| + | $button-round: $global-rounded !default; |
| + | |
| + | // We use this to set default opacity for disabled buttons. |
| + | $button-disabled-opacity: 0.7 !default; |
| + | |
| + | |
| + | // |
| + | // @MIXIN |
| + | // |
| + | // We use this mixin to create a default button base. |
| + | // |
| + | // $style - Sets base styles. Can be set to false. Default: true. |
| + | // $display - Used to control display property. Default: $button-display || inline-block |
| + | |
| + | @mixin button-base($style:true, $display:$button-display) { |
| + | @if $style { |
| + | border-style: $button-border-style; |
| + | border-width: $button-border-width; |
| + | cursor: $cursor-pointer-value; |
| + | font-family: $button-font-family; |
| + | font-weight: $button-font-weight; |
| + | line-height: normal; |
| + | margin: 0 0 $button-margin-bottom; |
| + | position: relative; |
| + | text-decoration: none; |
| + | text-align: $button-font-align; |
| + | -webkit-appearance: none; |
| + | -webkit-border-radius:0; |
| + | } |
| + | @if $display { display: $display; } |
| + | } |
| + | |
| + | // @MIXIN |
| + | // |
| + | // We use this mixin to add button size styles |
| + | // |
| + | // $padding - Used to build padding for buttons Default: $button-med ||= rem-calc(12) |
| + | // $full-width - We can set $full-width:true to remove side padding extend width - Default: false |
| + | |
| + | @mixin button-size($padding:$button-med, $full-width:false) { |
| + | |
| + | // We control which padding styles come through, |
| + | // these can be turned off by setting $padding:false |
| + | @if $padding { |
| + | padding-top: $padding; |
| + | padding-#{$opposite-direction}: $padding * 2; |
| + | padding-bottom: $padding + rem-calc(1); |
| + | padding-#{$default-float}: $padding * 2; |
| + | |
| + | // We control the font-size based on mixin input. |
| + | @if $padding == $button-med { font-size: $button-font-med; } |
| + | @else if $padding == $button-tny { font-size: $button-font-tny; } |
| + | @else if $padding == $button-sml { font-size: $button-font-sml; } |
| + | @else if $padding == $button-lrg { font-size: $button-font-lrg; } |
| + | } |
| + | |
| + | // We can set $full-width:true to remove side padding extend width. |
| + | @if $full-width { |
| + | // We still need to check if $padding is set. |
| + | @if $padding { |
| + | padding-top: $padding; |
| + | padding-bottom: $padding + rem-calc(1); |
| + | } @else if $padding == false { |
| + | padding-top:0; |
| + | padding-bottom:0; |
| + | } |
| + | padding-right: 0; |
| + | padding-left: 0; |
| + | width: 100%; |
| + | } |
| + | } |
| + | |
| + | // @MIXIN |
| + | // |
| + | // We use this mixin to add button color styles |
| + | // |
| + | // $bg - Primary color set in settings file. Default: $button-bg. |
| + | // $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default: true |
| + | // $disabled - We can set $disabled:true to create a disabled transparent button. Default: false |
| + | @mixin button-style($bg:$button-bg, $radius:true, $disabled:false) { |
| + | |
| + | // We control which background styles are used, |
| + | // these can be removed by setting $bg:false |
| + | @if $bg { |
| + | // This find the lightness percentage of the background color. |
| + | $bg-lightness: lightness($bg); |
| + | |
| + | background-color: $bg; |
| + | border-color: scale-color($bg, $lightness: $button-function-factor); |
| + | &:hover, |
| + | &:focus { background-color: scale-color($bg, $lightness: $button-function-factor); } |
| + | |
| + | // We control the text color for you based on the background color. |
| + | @if $bg-lightness > 70% { |
| + | color: $button-font-color-alt; |
| + | &:hover, |
| + | &:focus { color: $button-font-color-alt; } |
| + | } |
| + | @else { |
| + | color: $button-font-color; |
| + | &:hover, |
| + | &:focus { color: $button-font-color; } |
| + | } |
| + | } |
| + | |
| + | // We can set $disabled:true to create a disabled transparent button. |
| + | @if $disabled { |
| + | cursor: $cursor-default-value; |
| + | opacity: $button-disabled-opacity; |
| + | box-shadow: none; |
| + | &:hover, |
| + | &:focus { background-color: $bg; } |
| + | } |
| + | |
| + | // We can control how much button radius us used. |
| + | @if $radius == true { @include radius($button-radius); } |
| + | @else if $radius { @include radius($radius); } |
| + | |
| + | } |
| + | |
| + | // @MIXIN |
| + | // |
| + | // We use this to quickly create buttons with a single mixin. As @jaredhardy puts it, "the kitchen sink mixin" |
| + | // |
| + | // $padding - Used to build padding for buttons Default: $button-med ||= rem-calc(12) |
| + | // $bg - Primary color set in settings file. Default: $button-bg. |
| + | // $radius - If true, set to button radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default:false. |
| + | // $full-width - We can set $full-width:true to remove side padding extend width. Default:false. |
| + | // $disabled - We can set $disabled:true to create a disabled transparent button. Default:false. |
| + | // $is-input - <input>'s and <button>'s take on strange padding. We added this to help fix that. Default:false. |
| + | // $is-prefix - Not used? Default:false. |
| + | @mixin button($padding:$button-med, $bg:$button-bg, $radius:false, $full-width:false, $disabled:false, $is-prefix:false) { |
| + | @include button-base; |
| + | @include button-size($padding, $full-width); |
| + | @include button-style($bg, $radius, $disabled); |
| + | } |
| + | |
| + | |
| + | @include exports("button") { |
| + | @if $include-html-button-classes { |
| + | |
| + | // Default styles applied outside of media query |
| + | button, .button { |
| + | @include button-base; |
| + | @include button-size; |
| + | @include button-style; |
| + | |
| + | @include single-transition(background-color); |
| + | |
| + | &.secondary { @include button-style($bg:$secondary-color); } |
| + | &.success { @include button-style($bg:$success-color); } |
| + | &.alert { @include button-style($bg:$alert-color); } |
| + | |
| + | &.large { @include button-size($padding:$button-lrg); } |
| + | &.small { @include button-size($padding:$button-sml); } |
| + | &.tiny { @include button-size($padding:$button-tny); } |
| + | &.expand { @include button-size($padding:null,$full-width:true); } |
| + | |
| + | &.left-align { text-align: left; text-indent: rem-calc(12); } |
| + | &.right-align { text-align: right; padding-right: rem-calc(12); } |
| + | |
| + | &.radius { @include button-style($bg:false, $radius:true); } |
| + | &.round { @include button-style($bg:false, $radius:$button-round); } |
| + | |
| + | &.disabled, &[disabled] { @include button-style($bg:$button-bg, $disabled:true); |
| + | &.secondary { @include button-style($bg:$secondary-color, $disabled:true); } |
| + | &.success { @include button-style($bg:$success-color, $disabled:true); } |
| + | &.alert { @include button-style($bg:$alert-color, $disabled:true); } |
| + | } |
| + | } |
| + | |
| + | @media #{$medium-up} { |
| + | button, .button { |
| + | @include button-base($style:false, $display:inline-block); |
| + | @include button-size($padding:false, $full-width:false); |
| + | } |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_clearing.scss
+247
-0
| @@ | @@ -0,0 +1,247 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-clearing-classes: $include-html-classes !default; |
| + | |
| + | // We use these to set the background colors for parts of Clearing. |
| + | $clearing-bg: #333 !default; |
| + | $clearing-caption-bg: $clearing-bg !default; |
| + | $clearing-carousel-bg: rgba(51,51,51,0.8) !default; |
| + | $clearing-img-bg: $clearing-bg !default; |
| + | |
| + | // We use these to style the close button |
| + | $clearing-close-color: #ccc !default; |
| + | $clearing-close-size: 30px !default; |
| + | |
| + | // We use these to style the arrows |
| + | $clearing-arrow-size: 12px !default; |
| + | $clearing-arrow-color: $clearing-close-color !default; |
| + | |
| + | // We use these to style captions |
| + | $clearing-caption-font-color: #ccc !default; |
| + | $clearing-caption-font-size: 0.875em !default; |
| + | $clearing-caption-padding: 10px 30px 20px !default; |
| + | |
| + | // We use these to make the image and carousel height and style |
| + | $clearing-active-img-height: 85% !default; |
| + | $clearing-carousel-height: 120px !default; |
| + | $clearing-carousel-thumb-width: 120px !default; |
| + | $clearing-carousel-thumb-active-border: 1px solid rgb(255,255,255) !default; |
| + | |
| + | @include exports("clearing") { |
| + | @if $include-html-clearing-classes { |
| + | // We decided to not create a mixin for Clearing because it relies |
| + | // on predefined classes and structure to work properly. |
| + | // The variables above should give enough control. |
| + | |
| + | /* Clearing Styles */ |
| + | .clearing-thumbs, #{data('clearing')} { |
| + | @include clearfix; |
| + | margin-bottom: 0; |
| + | margin-#{$default-float}: 0; |
| + | list-style: none; |
| + | |
| + | li { |
| + | float: $default-float; |
| + | margin-#{$opposite-direction}: 10px; |
| + | } |
| + | |
| + | &[class*="block-grid-"] li { |
| + | margin-#{$opposite-direction}: 0; |
| + | } |
| + | } |
| + | |
| + | .clearing-blackout { |
| + | background: $clearing-bg; |
| + | position: fixed; |
| + | width: 100%; |
| + | height: 100%; |
| + | top: 0; |
| + | #{$default-float}: 0; |
| + | z-index: 998; |
| + | |
| + | .clearing-close { display: block; } |
| + | } |
| + | |
| + | .clearing-container { |
| + | position: relative; |
| + | z-index: 998; |
| + | height: 100%; |
| + | overflow: hidden; |
| + | margin: 0; |
| + | } |
| + | |
| + | .clearing-touch-label { |
| + | position: absolute; |
| + | top: 50%; |
| + | left: 50%; |
| + | color: #aaa; |
| + | font-size: 0.6em; |
| + | } |
| + | |
| + | .visible-img { |
| + | height: 95%; |
| + | position: relative; |
| + | |
| + | img { |
| + | position: absolute; |
| + | #{$default-float}: 50%; |
| + | top: 50%; |
| + | margin-#{$default-float}: -50%; |
| + | max-height: 100%; |
| + | max-width: 100%; |
| + | } |
| + | } |
| + | |
| + | .clearing-caption { |
| + | color: $clearing-caption-font-color; |
| + | font-size: $clearing-caption-font-size; |
| + | line-height: 1.3; |
| + | margin-bottom: 0; |
| + | text-align: center; |
| + | bottom: 0; |
| + | background: $clearing-caption-bg; |
| + | width: 100%; |
| + | padding: $clearing-caption-padding; |
| + | position: absolute; |
| + | #{$default-float}: 0; |
| + | } |
| + | |
| + | .clearing-close { |
| + | z-index: 999; |
| + | padding-#{$default-float}: 20px; |
| + | padding-top: 10px; |
| + | font-size: $clearing-close-size; |
| + | line-height: 1; |
| + | color: $clearing-close-color; |
| + | display: none; |
| + | |
| + | &:hover, |
| + | &:focus { color: #ccc; } |
| + | } |
| + | |
| + | .clearing-assembled .clearing-container { height: 100%; |
| + | .carousel > ul { display: none; } |
| + | } |
| + | |
| + | // If you want to show a lightbox, but only have a single image come through as the thumbnail |
| + | .clearing-feature li { |
| + | display: none; |
| + | &.clearing-featured-img { |
| + | display: block; |
| + | } |
| + | } |
| + | |
| + | // Large screen overrides |
| + | @media #{$medium-up} { |
| + | .clearing-main-prev, |
| + | .clearing-main-next { |
| + | position: absolute; |
| + | height: 100%; |
| + | width: 40px; |
| + | top: 0; |
| + | & > span { |
| + | position: absolute; |
| + | top: 50%; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: solid $clearing-arrow-size; |
| + | &:hover { opacity: 0.8; } |
| + | } |
| + | } |
| + | .clearing-main-prev { |
| + | #{$default-float}: 0; |
| + | & > span { |
| + | #{$default-float}: 5px; |
| + | border-color: transparent; |
| + | border-#{$opposite-direction}-color: $clearing-arrow-color; |
| + | } |
| + | } |
| + | .clearing-main-next { |
| + | #{$opposite-direction}: 0; |
| + | & > span { |
| + | border-color: transparent; |
| + | border-#{$default-float}-color: $clearing-arrow-color; |
| + | } |
| + | } |
| + | |
| + | .clearing-main-prev.disabled, |
| + | .clearing-main-next.disabled { opacity: 0.3; } |
| + | |
| + | .clearing-assembled .clearing-container { |
| + | |
| + | .carousel { |
| + | background: $clearing-carousel-bg; |
| + | height: $clearing-carousel-height; |
| + | margin-top: 10px; |
| + | text-align: center; |
| + | |
| + | & > ul { |
| + | display: inline-block; |
| + | z-index: 999; |
| + | height: 100%; |
| + | position: relative; |
| + | float: none; |
| + | |
| + | li { |
| + | display: block; |
| + | width: $clearing-carousel-thumb-width; |
| + | min-height: inherit; |
| + | float: $default-float; |
| + | overflow: hidden; |
| + | margin-#{$opposite-direction}: 0; |
| + | padding: 0; |
| + | position: relative; |
| + | cursor: $cursor-pointer-value; |
| + | opacity: 0.4; |
| + | clear: none; |
| + | |
| + | &.fix-height { |
| + | img { |
| + | height: 100%; |
| + | max-width: none; |
| + | } |
| + | } |
| + | |
| + | a.th { |
| + | border: none; |
| + | box-shadow: none; |
| + | display: block; |
| + | } |
| + | |
| + | img { |
| + | cursor: $cursor-pointer-value !important; |
| + | width: 100% !important; |
| + | } |
| + | |
| + | &.visible { opacity: 1; } |
| + | &:hover { opacity: 0.8; } |
| + | } |
| + | } |
| + | } |
| + | |
| + | .visible-img { |
| + | background: $clearing-img-bg; |
| + | overflow: hidden; |
| + | height: $clearing-active-img-height; |
| + | } |
| + | } |
| + | |
| + | .clearing-close { |
| + | position: absolute; |
| + | top: 10px; |
| + | #{$opposite-direction}: 20px; |
| + | padding-#{$default-float}: 0; |
| + | padding-top: 0; |
| + | } |
| + | } |
| + | |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_dropdown-buttons.scss
+129
-0
| @@ | @@ -0,0 +1,129 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-button-classes: $include-html-classes !default; |
| + | |
| + | // We use these to set the color of the pip in dropdown buttons |
| + | $dropdown-button-pip-color: #fff !default; |
| + | $dropdown-button-pip-color-alt: #333 !default; |
| + | |
| + | $button-pip-tny: rem-calc(6) !default; |
| + | $button-pip-sml: rem-calc(7) !default; |
| + | $button-pip-med: rem-calc(9) !default; |
| + | $button-pip-lrg: rem-calc(11) !default; |
| + | |
| + | // We use these to style tiny dropdown buttons |
| + | $dropdown-button-padding-tny: $button-pip-tny * 7 !default; |
| + | $dropdown-button-pip-size-tny: $button-pip-tny !default; |
| + | $dropdown-button-pip-opposite-tny: $button-pip-tny * 3 !default; |
| + | $dropdown-button-pip-top-tny: -$button-pip-tny / 2 + rem-calc(1) !default; |
| + | |
| + | // We use these to style small dropdown buttons |
| + | $dropdown-button-padding-sml: $button-pip-sml * 7 !default; |
| + | $dropdown-button-pip-size-sml: $button-pip-sml !default; |
| + | $dropdown-button-pip-opposite-sml: $button-pip-sml * 3 !default; |
| + | $dropdown-button-pip-top-sml: -$button-pip-sml / 2 + rem-calc(1) !default; |
| + | |
| + | // We use these to style medium dropdown buttons |
| + | $dropdown-button-padding-med: $button-pip-med * 6 + rem-calc(3) !default; |
| + | $dropdown-button-pip-size-med: $button-pip-med - rem-calc(3) !default; |
| + | $dropdown-button-pip-opposite-med: $button-pip-med * 2.5 !default; |
| + | $dropdown-button-pip-top-med: -$button-pip-med / 2 + rem-calc(2) !default; |
| + | |
| + | // We use these to style large dropdown buttons |
| + | $dropdown-button-padding-lrg: $button-pip-lrg * 5 + rem-calc(3) !default; |
| + | $dropdown-button-pip-size-lrg: $button-pip-lrg - rem-calc(6) !default; |
| + | $dropdown-button-pip-opposite-lrg: $button-pip-lrg * 2.5 !default; |
| + | $dropdown-button-pip-top-lrg: -$button-pip-lrg / 2 + rem-calc(3) !default; |
| + | |
| + | // @mixins |
| + | // |
| + | // Dropdown Button Mixin |
| + | // |
| + | // We use this mixin to build off of the button mixin and add dropdown button styles |
| + | // |
| + | // $padding - Determines the size of button you're working with. Default: medium. Options [tiny, small, medium, large] |
| + | // $pip-color - Color of the little triangle that points to the dropdown. Default: #fff. |
| + | // $base-style - Add in base-styles. This can be set to false. Default:true |
| + | |
| + | @mixin dropdown-button($padding:medium, $pip-color:#fff, $base-style:true) { |
| + | |
| + | // We add in base styles, but they can be negated by setting to 'false'. |
| + | @if $base-style { |
| + | position: relative; |
| + | |
| + | // This creates the base styles for the triangle pip |
| + | &:after { |
| + | position: absolute; |
| + | content: ""; |
| + | width: 0; |
| + | height: 0; |
| + | display: block; |
| + | border-style: solid; |
| + | border-color: $dropdown-button-pip-color transparent transparent transparent; |
| + | top: 50%; |
| + | } |
| + | } |
| + | |
| + | // If we're dealing with tiny buttons, use these styles |
| + | @if $padding == tiny { |
| + | padding-#{$opposite-direction}: $dropdown-button-padding-tny; |
| + | &:before { |
| + | border-width: $dropdown-button-pip-size-tny; |
| + | #{$opposite-direction}: $dropdown-button-pip-opposite-tny; |
| + | margin-top: $dropdown-button-pip-top-tny; |
| + | } |
| + | } |
| + | |
| + | // If we're dealing with small buttons, use these styles |
| + | @if $padding == small { |
| + | padding-#{$opposite-direction}: $dropdown-button-padding-sml; |
| + | &:after { |
| + | border-width: $dropdown-button-pip-size-sml; |
| + | #{$opposite-direction}: $dropdown-button-pip-opposite-sml; |
| + | margin-top: $dropdown-button-pip-top-sml; |
| + | } |
| + | } |
| + | |
| + | // If we're dealing with default (medium) buttons, use these styles |
| + | @if $padding == medium { |
| + | padding-#{$opposite-direction}: $dropdown-button-padding-med; |
| + | &:after { |
| + | border-width: $dropdown-button-pip-size-med; |
| + | #{$opposite-direction}: $dropdown-button-pip-opposite-med; |
| + | margin-top: $dropdown-button-pip-top-med; |
| + | } |
| + | } |
| + | |
| + | // If we're dealing with large buttons, use these styles |
| + | @if $padding == large { |
| + | padding-#{$opposite-direction}: $dropdown-button-padding-lrg; |
| + | &:after { |
| + | border-width: $dropdown-button-pip-size-lrg; |
| + | #{$opposite-direction}: $dropdown-button-pip-opposite-lrg; |
| + | margin-top: $dropdown-button-pip-top-lrg; |
| + | } |
| + | } |
| + | |
| + | // We can control the pip color. We didn't use logic in this case, just set it and forget it. |
| + | @if $pip-color { |
| + | &:after { border-color: $pip-color transparent transparent transparent; } |
| + | } |
| + | } |
| + | |
| + | @include exports("dropdown-button") { |
| + | @if $include-html-button-classes { |
| + | .dropdown.button, button.dropdown { @include dropdown-button; |
| + | &.tiny { @include dropdown-button(tiny,$base-style:false); } |
| + | &.small { @include dropdown-button(small,$base-style:false); } |
| + | &.large { @include dropdown-button(large,$base-style:false); } |
| + | &.secondary:after { border-color: $dropdown-button-pip-color-alt transparent transparent transparent; } |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_dropdown.scss
+248
-0
| @@ | @@ -0,0 +1,248 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-dropdown-classes: $include-html-classes !default; |
| + | |
| + | // We use these to controls height and width styles. |
| + | $f-dropdown-max-width: 200px !default; |
| + | $f-dropdown-height: auto !default; |
| + | $f-dropdown-max-height: none !default; |
| + | |
| + | // Used for bottom position |
| + | $f-dropdown-margin-top: 2px !default; |
| + | |
| + | // Used for right position |
| + | $f-dropdown-margin-left: $f-dropdown-margin-top !default; |
| + | |
| + | // Used for left position |
| + | $f-dropdown-margin-right: $f-dropdown-margin-top !default; |
| + | |
| + | // Used for top position |
| + | $f-dropdown-margin-bottom: $f-dropdown-margin-top !default; |
| + | |
| + | // We use this to control the background color |
| + | $f-dropdown-bg: #fff !default; |
| + | |
| + | // We use this to set the border styles for dropdowns. |
| + | $f-dropdown-border-style: solid !default; |
| + | $f-dropdown-border-width: 1px !default; |
| + | $f-dropdown-border-color: scale-color(#fff, $lightness: -20%) !default; |
| + | |
| + | // We use these to style the triangle pip. |
| + | $f-dropdown-triangle-size: 6px !default; |
| + | $f-dropdown-triangle-color: #fff !default; |
| + | $f-dropdown-triangle-side-offset: 10px !default; |
| + | |
| + | // We use these to control styles for the list elements. |
| + | $f-dropdown-list-style: none !default; |
| + | $f-dropdown-font-color: #555 !default; |
| + | $f-dropdown-font-size: rem-calc(14) !default; |
| + | $f-dropdown-list-padding: rem-calc(5, 10) !default; |
| + | $f-dropdown-line-height: rem-calc(18) !default; |
| + | $f-dropdown-list-hover-bg: #eeeeee !default; |
| + | $dropdown-mobile-default-float: 0 !default; |
| + | |
| + | // We use this to control the styles for when the dropdown has custom content. |
| + | $f-dropdown-content-padding: rem-calc(20) !default; |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | // |
| + | // NOTE: Make default max-width change between list and content types. Can add more width with classes, maybe .small, .medium, .large, etc.; |
| + | // We use this to style the dropdown container element. |
| + | // $content-list - Sets list-style. Default: list. Options: [list, content] |
| + | // $triangle - Sets if dropdown has triangle. Default:true. |
| + | // $max-width - Default: $f-dropdown-max-width || 200px. |
| + | @mixin dropdown-container($content:list, $triangle:true, $max-width:$f-dropdown-max-width) { |
| + | position: absolute; |
| + | left: -9999px; |
| + | list-style: $f-dropdown-list-style; |
| + | margin-#{$default-float}: 0; |
| + | |
| + | > *:first-child { margin-top: 0; } |
| + | > *:last-child { margin-bottom: 0; } |
| + | |
| + | @if $content == list { |
| + | width: 100%; |
| + | max-height: $f-dropdown-max-height; |
| + | height: $f-dropdown-height; |
| + | background: $f-dropdown-bg; |
| + | border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color; |
| + | font-size: $f-dropdown-font-size; |
| + | z-index: 99; |
| + | } |
| + | @else if $content == content { |
| + | padding: $f-dropdown-content-padding; |
| + | width: 100%; |
| + | height: $f-dropdown-height; |
| + | max-height: $f-dropdown-max-height; |
| + | background: $f-dropdown-bg; |
| + | border: $f-dropdown-border-style $f-dropdown-border-width $f-dropdown-border-color; |
| + | font-size: $f-dropdown-font-size; |
| + | z-index: 99; |
| + | } |
| + | |
| + | @if $triangle == bottom { |
| + | margin-top: $f-dropdown-margin-top; |
| + | |
| + | &:before { |
| + | @include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, bottom); |
| + | position: absolute; |
| + | top: -($f-dropdown-triangle-size * 2); |
| + | #{$default-float}: $f-dropdown-triangle-side-offset; |
| + | z-index: 99; |
| + | } |
| + | &:after { |
| + | @include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, bottom); |
| + | position: absolute; |
| + | top: -(($f-dropdown-triangle-size + 1) * 2); |
| + | #{$default-float}: $f-dropdown-triangle-side-offset - 1; |
| + | z-index: 98; |
| + | } |
| + | |
| + | &.right:before { |
| + | left: auto; |
| + | right: $f-dropdown-triangle-side-offset; |
| + | } |
| + | &.right:after { |
| + | left: auto; |
| + | right: $f-dropdown-triangle-side-offset - 1; |
| + | } |
| + | } |
| + | |
| + | @if $triangle == left { |
| + | margin-top: 0; |
| + | margin-left: $f-dropdown-margin-right; |
| + | |
| + | &:before { |
| + | @include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, right); |
| + | position: absolute; |
| + | top: $f-dropdown-triangle-side-offset; |
| + | #{$default-float}: -($f-dropdown-triangle-size * 2); |
| + | z-index: 99; |
| + | } |
| + | &:after { |
| + | @include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, right); |
| + | position: absolute; |
| + | top: $f-dropdown-triangle-side-offset - 1; |
| + | #{$default-float}: -($f-dropdown-triangle-size * 2) - 2; |
| + | z-index: 98; |
| + | } |
| + | |
| + | } |
| + | |
| + | @if $triangle == right { |
| + | margin-top: 0; |
| + | margin-left: -$f-dropdown-margin-right; |
| + | |
| + | &:before { |
| + | @include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, left); |
| + | position: absolute; |
| + | top: $f-dropdown-triangle-side-offset; |
| + | #{$opposite-direction}: -($f-dropdown-triangle-size * 2); |
| + | left: auto; |
| + | z-index: 99; |
| + | } |
| + | &:after { |
| + | @include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, left); |
| + | position: absolute; |
| + | top: $f-dropdown-triangle-side-offset - 1; |
| + | #{$opposite-direction}: -($f-dropdown-triangle-size * 2) - 2; |
| + | left: auto; |
| + | z-index: 98; |
| + | } |
| + | |
| + | } |
| + | |
| + | @if $triangle == top { |
| + | margin-top: -$f-dropdown-margin-bottom; |
| + | margin-left: 0; |
| + | |
| + | &:before { |
| + | @include css-triangle($f-dropdown-triangle-size, $f-dropdown-triangle-color, top); |
| + | position: absolute; |
| + | top: auto; |
| + | bottom: -($f-dropdown-triangle-size * 2); |
| + | #{$default-float}: $f-dropdown-triangle-side-offset; |
| + | right: auto; |
| + | z-index: 99; |
| + | } |
| + | &:after { |
| + | @include css-triangle($f-dropdown-triangle-size + 1, $f-dropdown-border-color, top); |
| + | position: absolute; |
| + | top: auto; |
| + | bottom: -($f-dropdown-triangle-size * 2) - 2; |
| + | #{$default-float}: $f-dropdown-triangle-side-offset - 1; |
| + | right: auto; |
| + | z-index: 98; |
| + | } |
| + | |
| + | } |
| + | |
| + | @if $max-width { max-width: $max-width; } |
| + | @else { max-width: $f-dropdown-max-width; } |
| + | |
| + | } |
| + | |
| + | // @MIXIN |
| + | // |
| + | // We use this to style the list elements or content inside the dropdown. |
| + | |
| + | @mixin dropdown-style { |
| + | font-size: $f-dropdown-font-size; |
| + | cursor: $cursor-pointer-value; |
| + | |
| + | line-height: $f-dropdown-line-height; |
| + | margin: 0; |
| + | |
| + | &:hover, |
| + | &:focus { background: $f-dropdown-list-hover-bg; } |
| + | |
| + | a { |
| + | display: block; |
| + | padding: $f-dropdown-list-padding; |
| + | color: $f-dropdown-font-color; |
| + | } |
| + | } |
| + | |
| + | @include exports("dropdown") { |
| + | @if $include-html-dropdown-classes { |
| + | |
| + | /* Foundation Dropdowns */ |
| + | .f-dropdown { |
| + | @include dropdown-container(list, bottom); |
| + | |
| + | &.drop-right { |
| + | @include dropdown-container(list, left); |
| + | } |
| + | |
| + | &.drop-left { |
| + | @include dropdown-container(list, right); |
| + | } |
| + | |
| + | &.drop-top { |
| + | @include dropdown-container(list, top); |
| + | } |
| + | // max-width: none; |
| + | |
| + | li { @include dropdown-style; } |
| + | |
| + | // You can also put custom content in these dropdowns |
| + | &.content { @include dropdown-container(content, $triangle:false); } |
| + | |
| + | // Sizes |
| + | &.tiny { max-width: 200px; } |
| + | &.small { max-width: 300px; } |
| + | &.medium { max-width: 500px; } |
| + | &.large { max-width: 800px; } |
| + | } |
| + | |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_flex-video.scss
+51
-0
| @@ | @@ -0,0 +1,51 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-media-classes: $include-html-classes !default; |
| + | |
| + | // We use these to control video container padding and margins |
| + | $flex-video-padding-top: rem-calc(25) !default; |
| + | $flex-video-padding-bottom: 67.5% !default; |
| + | $flex-video-margin-bottom: rem-calc(16) !default; |
| + | |
| + | // We use this to control widescreen bottom padding |
| + | $flex-video-widescreen-padding-bottom: 56.34% !default; |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | |
| + | @mixin flex-video-container { |
| + | position: relative; |
| + | padding-top: $flex-video-padding-top; |
| + | padding-bottom: $flex-video-padding-bottom; |
| + | height: 0; |
| + | margin-bottom: $flex-video-margin-bottom; |
| + | overflow: hidden; |
| + | |
| + | &.widescreen { padding-bottom: $flex-video-widescreen-padding-bottom; } |
| + | &.vimeo { padding-top: 0; } |
| + | |
| + | iframe, |
| + | object, |
| + | embed, |
| + | video { |
| + | position: absolute; |
| + | top: 0; |
| + | #{$default-float}: 0; |
| + | width: 100%; |
| + | height: 100%; |
| + | } |
| + | } |
| + | |
| + | @include exports("flex-video") { |
| + | @if $include-html-media-classes { |
| + | .flex-video { @include flex-video-container; } |
| + | } |
| + | } |
| \ No newline at end of file | |
generators/foundation5/public/stylesheets/foundation/components/_forms.scss
+498
-0
| @@ | @@ -0,0 +1,498 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | @import "buttons"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-form-classes: $include-html-classes !default; |
| + | |
| + | // We use this to set the base for lots of form spacing and positioning styles |
| + | $form-spacing: rem-calc(16) !default; |
| + | |
| + | // We use these to style the labels in different ways |
| + | $form-label-pointer: pointer !default; |
| + | $form-label-font-size: rem-calc(14) !default; |
| + | $form-label-font-weight: $font-weight-normal !default; |
| + | $form-label-line-height: 1.5 !default; |
| + | $form-label-font-color: scale-color(#000, $lightness: 30%) !default; |
| + | $form-label-small-transform: capitalize !default; |
| + | $form-label-bottom-margin: 0 !default; |
| + | $input-font-family: inherit !default; |
| + | $input-font-color: rgba(0,0,0,0.75) !default; |
| + | $input-font-size: rem-calc(14) !default; |
| + | $input-bg-color: #fff !default; |
| + | $input-focus-bg-color: scale-color(#fff, $lightness: -2%) !default; |
| + | $input-border-color: scale-color(#fff, $lightness: -20%) !default; |
| + | $input-focus-border-color: scale-color(#fff, $lightness: -40%) !default; |
| + | $input-border-style: solid !default; |
| + | $input-border-width: 1px !default; |
| + | $input-border-radius: $global-radius !default; |
| + | $input-disabled-bg: #ddd !default; |
| + | $input-box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !default; |
| + | $input-include-glowing-effect: true !default; |
| + | |
| + | // We use these to style the fieldset border and spacing. |
| + | $fieldset-border-style: solid !default; |
| + | $fieldset-border-width: 1px !default; |
| + | $fieldset-border-color: #ddd !default; |
| + | $fieldset-padding: rem-calc(20) !default; |
| + | $fieldset-margin: rem-calc(18 0) !default; |
| + | |
| + | // We use these to style the legends when you use them |
| + | $legend-bg: #fff !default; |
| + | $legend-font-weight: $font-weight-bold !default; |
| + | $legend-padding: rem-calc(0 3) !default; |
| + | |
| + | // We use these to style the prefix and postfix input elements |
| + | $input-prefix-bg: scale-color(#fff, $lightness: -5%) !default; |
| + | $input-prefix-border-color: scale-color(#fff, $lightness: -20%) !default; |
| + | $input-prefix-border-size: 1px !default; |
| + | $input-prefix-border-type: solid !default; |
| + | $input-prefix-overflow: hidden !default; |
| + | $input-prefix-font-color: #333 !default; |
| + | $input-prefix-font-color-alt: #fff !default; |
| + | |
| + | // We use these to style the error states for inputs and labels |
| + | $input-error-message-padding: rem-calc(6 9 9) !default; |
| + | $input-error-message-top: -1px !default; |
| + | $input-error-message-font-size: rem-calc(12) !default; |
| + | $input-error-message-font-weight: $font-weight-normal !default; |
| + | $input-error-message-font-style: italic !default; |
| + | $input-error-message-font-color: #fff !default; |
| + | $input-error-message-font-color-alt: #333 !default; |
| + | |
| + | // We use this to style the glowing effect of inputs when focused |
| + | $glowing-effect-fade-time: 0.45s !default; |
| + | $glowing-effect-color: $input-focus-border-color !default; |
| + | |
| + | // Select variables |
| + | $select-bg-color: #fafafa !default; |
| + | $select-hover-bg-color: scale-color($select-bg-color, $lightness: -3%) !default; |
| + | |
| + | // |
| + | // @MIXINS |
| + | // |
| + | |
| + | // We use this mixin to give us form styles for rows inside of forms |
| + | @mixin form-row-base { |
| + | .row { margin: 0 ((-$form-spacing) / 2); |
| + | |
| + | .column, |
| + | .columns { padding: 0 $form-spacing / 2; } |
| + | |
| + | // Use this to collapse the margins of a form row |
| + | &.collapse { margin: 0; |
| + | |
| + | .column, |
| + | .columns { padding: 0; } |
| + | input { |
| + | @include side-radius($opposite-direction, 0); |
| + | } |
| + | |
| + | } |
| + | } |
| + | input.column, |
| + | input.columns, |
| + | textarea.column, |
| + | textarea.columns { padding-#{$default-float}: $form-spacing / 2; } |
| + | } |
| + | |
| + | // @MIXIN |
| + | // |
| + | // We use this mixin to give all basic form elements their style |
| + | @mixin form-element { |
| + | background-color: $input-bg-color; |
| + | font-family: $input-font-family; |
| + | border: $input-border-width $input-border-style $input-border-color; |
| + | box-shadow: $input-box-shadow; |
| + | color: $input-font-color; |
| + | display: block; |
| + | font-size: $input-font-size; |
| + | margin: 0 0 $form-spacing 0; |
| + | padding: $form-spacing / 2; |
| + | height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1)); |
| + | width: 100%; |
| + | @include box-sizing(border-box); |
| + | @if $input-include-glowing-effect { |
| + | @include block-glowing-effect(focus, $glowing-effect-fade-time, $glowing-effect-color); |
| + | } |
| + | // Basic focus styles |
| + | &:focus { |
| + | background: $input-focus-bg-color; |
| + | border-color: $input-focus-border-color; |
| + | outline: none; |
| + | } |
| + | |
| + | // Disabled background input background color |
| + | &[disabled], fieldset[disabled] & { background-color: $input-disabled-bg; } |
| + | } |
| + | |
| + | // @MIXIN |
| + | // |
| + | // We use this mixin to create form labels |
| + | // |
| + | // $alignment - Alignment options. Default: false. Options: [right, inline, false] |
| + | // $base-style - Control whether or not the base styles come through. Default: true. |
| + | @mixin form-label($alignment:false, $base-style:true) { |
| + | |
| + | // Control whether or not the base styles come through. |
| + | @if $base-style { |
| + | font-size: $form-label-font-size; |
| + | color: $form-label-font-color; |
| + | cursor: $form-label-pointer; |
| + | display: block; |
| + | font-weight: $form-label-font-weight; |
| + | line-height: $form-label-line-height; |
| + | margin-bottom: $form-label-bottom-margin; |
| + | } |
| + | |
| + | // Alignment options |
| + | @if $alignment == right { |
| + | float: none !important; |
| + | text-align: right; |
| + | } |
| + | @else if $alignment == inline { |
| + | margin: 0 0 $form-spacing 0; |
| + | padding: $form-spacing / 2 + rem-calc($input-border-width) 0; |
| + | } |
| + | } |
| + | |
| + | // We use this mixin to create postfix/prefix form Labels |
| + | @mixin prefix-postfix-base { |
| + | display: block; |
| + | position: relative; |
| + | z-index: 2; |
| + | text-align: center; |
| + | width: 100%; |
| + | padding-top: 0; |
| + | padding-bottom: 0; |
| + | border-style: $input-prefix-border-type; |
| + | border-width: $input-prefix-border-size; |
| + | overflow: $input-prefix-overflow; |
| + | font-size: $form-label-font-size; |
| + | height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1)); |
| + | line-height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1)); |
| + | } |
| + | |
| + | // @MIXIN |
| + | // |
| + | // We use this mixin to create prefix label styles |
| + | // $bg - Default:$input-prefix-bg || scale-color(#fff, $lightness: -5%) !default; |
| + | // $is-button - Toggle position settings if prefix is a button. Default:false |
| + | // |
| + | @mixin prefix($bg:$input-prefix-bg, $border:$input-prefix-border-color, $is-button:false) { |
| + | |
| + | @if $bg { |
| + | $bg-lightness: lightness($bg); |
| + | background: $bg; |
| + | border-#{$opposite-direction}: none; |
| + | |
| + | // Control the font color based on background brightness |
| + | @if $bg-lightness > 70% or $bg == yellow { color: $input-prefix-font-color; } |
| + | @else { color: $input-prefix-font-color-alt; } |
| + | } |
| + | |
| + | @if $border { |
| + | border-color: $border; |
| + | } |
| + | |
| + | @if $is-button { |
| + | padding-#{$default-float}: 0; |
| + | padding-#{$opposite-direction}: 0; |
| + | padding-top: 0; |
| + | padding-bottom: 0; |
| + | text-align: center; |
| + | line-height: rem-calc(34); |
| + | border: none; |
| + | } |
| + | |
| + | } |
| + | |
| + | // @MIXIN |
| + | // |
| + | // We use this mixin to create postfix label styles |
| + | // $bg - Default:$input-prefix-bg || scale-color(#fff, $lightness: -5%) !default; |
| + | // $is-button - Toggle position settings if prefix is a button. Default: false |
| + | @mixin postfix($bg:$input-prefix-bg, $border:$input-prefix-border-color, $is-button:false) { |
| + | |
| + | @if $bg { |
| + | $bg-lightness: lightness($bg); |
| + | background: $bg; |
| + | border-#{$default-float}: none; |
| + | |
| + | // Control the font color based on background brightness |
| + | @if $bg-lightness > 70% or $bg == yellow { color: $input-prefix-font-color; } |
| + | @else { color: $input-prefix-font-color-alt; } |
| + | } |
| + | |
| + | @if $border { |
| + | border-color: $border; |
| + | } |
| + | |
| + | @if $is-button { |
| + | padding-#{$default-float}: 0; |
| + | padding-#{$opposite-direction}: 0; |
| + | padding-top: 0; |
| + | padding-bottom: 0; |
| + | text-align: center; |
| + | line-height: rem-calc(34); |
| + | border: none; |
| + | } |
| + | |
| + | } |
| + | |
| + | // We use this mixin to style fieldsets |
| + | @mixin fieldset { |
| + | border: $fieldset-border-width $fieldset-border-style $fieldset-border-color; |
| + | padding: $fieldset-padding; |
| + | margin: $fieldset-margin; |
| + | |
| + | // and legend styles |
| + | legend { |
| + | font-weight: $legend-font-weight; |
| + | background: $legend-bg; |
| + | padding: $legend-padding; |
| + | margin: 0; |
| + | margin-#{$default-float}: rem-calc(-3); |
| + | } |
| + | } |
| + | |
| + | // @MIXIN |
| + | // |
| + | // We use this mixin to control border and background color of error inputs |
| + | // $color - Default: $alert-color (found in settings file) |
| + | @mixin form-error-color($color:$alert-color) { |
| + | border-color: $color; |
| + | background-color: rgba($color, 0.1); |
| + | |
| + | // Go back to normal on focus |
| + | &:focus { |
| + | background: $input-focus-bg-color; |
| + | border-color: $input-focus-border-color; |
| + | } |
| + | } |
| + | |
| + | // @MIXIN |
| + | // |
| + | // We use this simple mixin to style labels for error inputs |
| + | // $color - Default:$alert-color. Found in settings file |
| + | @mixin form-label-error-color($color:$alert-color) { color: $color; } |
| + | |
| + | // @MIXIN |
| + | // |
| + | // We use this mixin to create error message styles |
| + | // $bg - Default: $alert-color (Found in settings file) |
| + | @mixin form-error-message($bg:$alert-color) { |
| + | display: block; |
| + | padding: $input-error-message-padding; |
| + | margin-top: $input-error-message-top; |
| + | margin-bottom: $form-spacing; |
| + | font-size: $input-error-message-font-size; |
| + | font-weight: $input-error-message-font-weight; |
| + | font-style: $input-error-message-font-style; |
| + | |
| + | // We can control the text color based on the brightness of the background. |
| + | $bg-lightness: lightness($bg); |
| + | background: $bg; |
| + | @if $bg-lightness < 70% or $bg == yellow { color: $input-error-message-font-color; } |
| + | @else { color: $input-error-message-font-color-alt; } |
| + | } |
| + | |
| + | // We use this mixin to style select elements |
| + | @mixin form-select { |
| + | -webkit-appearance: none !important; |
| + | background-color: $select-bg-color; |
| + | background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iM3B4IiB2aWV3Qm94PSIwIDAgNiAzIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA2IDMiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwb2x5Z29uIHBvaW50cz0iNS45OTIsMCAyLjk5MiwzIC0wLjAwOCwwICIvPjwvc3ZnPg=='); |
| + | background-repeat: no-repeat; |
| + | background-position: if($text-direction == 'rtl', 3%, 97%) center; |
| + | border: $input-border-width $input-border-style $input-border-color; |
| + | padding: $form-spacing / 2; |
| + | font-size: $input-font-size; |
| + | color: $input-font-color; |
| + | line-height: normal; |
| + | @include radius(0); |
| + | &.radius { @include radius($global-radius); } |
| + | &:hover { |
| + | background-color: $select-hover-bg-color; |
| + | border-color: $input-focus-border-color; |
| + | } |
| + | } |
| + | |
| + | @include exports("form") { |
| + | @if $include-html-form-classes { |
| + | /* Standard Forms */ |
| + | form { margin: 0 0 $form-spacing; } |
| + | |
| + | /* Using forms within rows, we need to set some defaults */ |
| + | form .row { @include form-row-base; } |
| + | |
| + | /* Label Styles */ |
| + | label { @include form-label; |
| + | &.right { @include form-label(right,false); } |
| + | &.inline { @include form-label(inline,false); } |
| + | /* Styles for required inputs */ |
| + | small { |
| + | text-transform: $form-label-small-transform; |
| + | color: scale-color($form-label-font-color, $lightness: 15%); |
| + | } |
| + | } |
| + | |
| + | select::-ms-expand { |
| + | display:none; |
| + | } |
| + | |
| + | @-moz-document url-prefix() { |
| + | select { background: $select-bg-color; } |
| + | select:hover { background: $select-hover-bg-color } |
| + | } |
| + | /* Attach elements to the beginning or end of an input */ |
| + | .prefix, |
| + | .postfix { @include prefix-postfix-base; } |
| + | |
| + | /* Adjust padding, alignment and radius if pre/post element is a button */ |
| + | .postfix.button { @include button-size(false,false); @include postfix(false, false, true); } |
| + | .prefix.button { @include button-size(false,false); @include prefix(false, false, true); } |
| + | |
| + | .prefix.button.radius { @include radius(0); @include side-radius($default-float, $button-radius); } |
| + | .postfix.button.radius { @include radius(0); @include side-radius($opposite-direction, $button-radius); } |
| + | .prefix.button.round { @include radius(0); @include side-radius($default-float, $button-round); } |
| + | .postfix.button.round { @include radius(0); @include side-radius($opposite-direction, $button-round); } |
| + | |
| + | /* Separate prefix and postfix styles when on span or label so buttons keep their own */ |
| + | span.prefix,label.prefix { @include prefix(); |
| + | &.radius { @include radius(0); @include side-radius($default-float, $global-radius); } |
| + | } |
| + | span.postfix,label.postfix { @include postfix(); |
| + | &.radius { @include radius(0); @include side-radius($opposite-direction, $global-radius); } |
| + | } |
| + | |
| + | /* We use this to get basic styling on all basic form elements */ |
| + | input[type="text"], |
| + | input[type="password"], |
| + | input[type="date"], |
| + | input[type="datetime"], |
| + | input[type="datetime-local"], |
| + | input[type="month"], |
| + | input[type="week"], |
| + | input[type="email"], |
| + | input[type="number"], |
| + | input[type="search"], |
| + | input[type="tel"], |
| + | input[type="time"], |
| + | input[type="url"], |
| + | textarea { |
| + | -webkit-appearance: none; |
| + | @include form-element; |
| + | @if $input-include-glowing-effect == false { |
| + | @include single-transition(all, 0.15s, linear); |
| + | } |
| + | &.radius { |
| + | @include radius($input-border-radius); |
| + | } |
| + | } |
| + | |
| + | input[type="submit"] { |
| + | -webkit-appearance: none; |
| + | } |
| + | |
| + | /* Respect enforced amount of rows for textarea */ |
| + | textarea[rows] { |
| + | height: auto; |
| + | } |
| + | |
| + | /* Add height value for select elements to match text input height */ |
| + | select { |
| + | @include form-select; |
| + | height: ($input-font-size + ($form-spacing * 1.5) - rem-calc(1)); |
| + | } |
| + | |
| + | /* Adjust margin for form elements below */ |
| + | input[type="file"], |
| + | input[type="checkbox"], |
| + | input[type="radio"], |
| + | select { |
| + | margin: 0 0 $form-spacing 0; |
| + | } |
| + | |
| + | input[type="checkbox"] + label, |
| + | input[type="radio"] + label { |
| + | display: inline-block; |
| + | margin-#{$default-float}: $form-spacing * .5; |
| + | margin-#{$opposite-direction}: $form-spacing; |
| + | margin-bottom: 0; |
| + | vertical-align: baseline; |
| + | } |
| + | |
| + | /* Normalize file input width */ |
| + | input[type="file"] { |
| + | width:100%; |
| + | } |
| + | |
| + | /* We add basic fieldset styling */ |
| + | fieldset { |
| + | @include fieldset; |
| + | } |
| + | |
| + | /* Error Handling */ |
| + | |
| + | #{data('abide')} { |
| + | .error small.error, span.error, small.error { |
| + | @include form-error-message; |
| + | } |
| + | span.error, small.error { display: none; } |
| + | } |
| + | |
| + | span.error, small.error { |
| + | @include form-error-message; |
| + | } |
| + | |
| + | .error { |
| + | input, |
| + | textarea, |
| + | select { |
| + | margin-bottom: 0; |
| + | } |
| + | |
| + | input[type="checkbox"], |
| + | input[type="radio"] { |
| + | margin-bottom: $form-spacing |
| + | } |
| + | |
| + | label, |
| + | label.error { |
| + | @include form-label-error-color; |
| + | } |
| + | |
| + | small.error { |
| + | @include form-error-message; |
| + | } |
| + | |
| + | > label { |
| + | > small { |
| + | color: scale-color($form-label-font-color, $lightness: 15%); |
| + | background: transparent; |
| + | padding: 0; |
| + | text-transform: $form-label-small-transform; |
| + | font-style: normal; |
| + | font-size: 60%; |
| + | margin: 0; |
| + | display: inline; |
| + | } |
| + | } |
| + | |
| + | span.error-message { |
| + | display: block; |
| + | } |
| + | } |
| + | |
| + | input.error, |
| + | textarea.error { |
| + | margin-bottom: 0; |
| + | } |
| + | label.error { @include form-label-error-color; } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_global.scss
+434
-0
| @@ | @@ -0,0 +1,434 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "../functions"; |
| + | // |
| + | // Foundation Variables |
| + | // |
| + | |
| + | // Data attribute namespace |
| + | // styles get applied to [data-mysite-plugin], etc |
| + | $namespace: false !default; |
| + | |
| + | // Control the inclusion of experimental properties |
| + | $experimental: true !default; |
| + | |
| + | // The default font-size is set to 100% of the browser style sheet (usually 16px) |
| + | // for compatibility with browser-based text zoom or user-set defaults. |
| + | |
| + | // Since the typical default browser font-size is 16px, that makes the calculation for grid size. |
| + | // If you want your base font-size to be different and not have it affect the grid breakpoints, |
| + | // set $rem-base to $base-font-size and make sure $base-font-size is a px value. |
| + | $base-font-size: 100% !default; |
| + | |
| + | // $base-line-height is 24px while $base-font-size is 16px |
| + | $base-line-height: 150% !default; |
| + | |
| + | // |
| + | // Global Foundation Mixins |
| + | // |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this to optionally include experimental or |
| + | // explicitly vendor prefixed properties |
| + | @mixin experimental() { |
| + | @if $experimental { |
| + | @content; |
| + | } |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this to control border radius. |
| + | // $radius - Default: $global-radius || 4px |
| + | @mixin radius($radius:$global-radius) { |
| + | @if $radius { |
| + | border-radius: $radius; |
| + | } |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this to create equal side border radius on elements. |
| + | // $side - Options: left, right, top, bottom |
| + | @mixin side-radius($side, $radius:$global-radius) { |
| + | @if ($side == left or $side == right) { |
| + | border-bottom-#{$side}-radius: $radius; |
| + | border-top-#{$side}-radius: $radius; |
| + | } @else { |
| + | border-#{$side}-left-radius: $radius; |
| + | border-#{$side}-right-radius: $radius; |
| + | } |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We can control whether or not we have inset shadows edges. |
| + | // $active - Default: true, Options: false |
| + | @mixin inset-shadow($active:true) { |
| + | box-shadow: $shiny-edge-size $shiny-edge-color inset; |
| + | |
| + | @if $active { &:active { |
| + | box-shadow: $shiny-edge-size $shiny-edge-active-color inset; } } |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this to add transitions to elements |
| + | // $property - Default: all, Options: http://www.w3.org/TR/css3-transitions/#animatable-properties |
| + | // $speed - Default: 300ms |
| + | // $ease - Default:ease-out, Options: http://css-tricks.com/almanac/properties/t/transition-timing-function/ |
| + | @mixin single-transition($property:all, $speed:300ms, $ease:ease-out) { |
| + | transition: $property $speed $ease; |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this to add box-sizing across browser prefixes |
| + | @mixin box-sizing($type:border-box) { |
| + | -webkit-box-sizing: $type; // Android < 2.3, iOS < 4 |
| + | -moz-box-sizing: $type; // Firefox < 29 |
| + | box-sizing: $type; // Chrome, IE 8+, Opera, Safari 5.1 |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this to create isosceles triangles |
| + | // $triangle-size - Used to set border-size. No default, set a px or em size. |
| + | // $triangle-color - Used to set border-color which makes up triangle. No default |
| + | // $triangle-direction - Used to determine which direction triangle points. Options: top, bottom, left, right |
| + | @mixin css-triangle($triangle-size, $triangle-color, $triangle-direction) { |
| + | content: ""; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset $triangle-size; |
| + | @if ($triangle-direction == top) { |
| + | border-color: $triangle-color transparent transparent transparent; |
| + | border-top-style: solid; |
| + | } |
| + | @if ($triangle-direction == bottom) { |
| + | border-color: transparent transparent $triangle-color transparent; |
| + | border-bottom-style: solid; |
| + | } |
| + | @if ($triangle-direction == left) { |
| + | border-color: transparent transparent transparent $triangle-color; |
| + | border-left-style: solid; |
| + | } |
| + | @if ($triangle-direction == right) { |
| + | border-color: transparent $triangle-color transparent transparent; |
| + | border-right-style: solid; |
| + | } |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this to create the icon with three lines aka the hamburger icon, the menu-icon or the navicon |
| + | // $width - Width of hamburger icon in rem |
| + | // $left - If false, icon will be centered horizontally || explicitly set value in rem |
| + | // $top - If false, icon will be centered vertically || explicitly set value in rem |
| + | // $thickness - thickness of lines in hamburger icon, set value in px |
| + | // $gap - spacing between the lines in hamburger icon, set value in px |
| + | // $color - icon color |
| + | // $hover-color - icon color during hover |
| + | // $offcanvas - Set to true of @include in offcanvas |
| + | @mixin hamburger($width, $left, $top, $thickness, $gap, $color, $hover-color, $offcanvas) { |
| + | span::after { |
| + | content: ""; |
| + | position: absolute; |
| + | display: block; |
| + | height: 0; |
| + | |
| + | @if $offcanvas { |
| + | @if $top { |
| + | top: $top; |
| + | } |
| + | @else { |
| + | top: 50%; |
| + | margin-top: -$width/2; |
| + | } |
| + | @if $left { |
| + | left: $left; |
| + | } |
| + | @else { |
| + | left: ($tabbar-menu-icon-width - $width)/2; |
| + | } |
| + | } |
| + | @else { |
| + | top: 50%; |
| + | margin-top: -$width/2; |
| + | #{$opposite-direction}: $topbar-link-padding; |
| + | } |
| + | |
| + | box-shadow: |
| + | 0 0px 0 $thickness $color, |
| + | 0 $gap + $thickness 0 $thickness $color, |
| + | 0 (2 * $gap + 2*$thickness) 0 $thickness $color; |
| + | width: $width; |
| + | } |
| + | span:hover:after { |
| + | box-shadow: |
| + | 0 0px 0 $thickness $hover-color, |
| + | 0 $gap + $thickness 0 $thickness $hover-color, |
| + | 0 (2 * $gap + 2*$thickness) 0 $thickness $hover-color; |
| + | } |
| + | } |
| + | |
| + | // We use this to do clear floats |
| + | @mixin clearfix { |
| + | &:before, &:after { content: " "; display: table; } |
| + | &:after { clear: both; } |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this to add a glowing effect to block elements |
| + | // $selector - Used for selector state. Default: focus, Options: hover, active, visited |
| + | // $fade-time - Default: 300ms |
| + | // $glowing-effect-color - Default: fade-out($primary-color, .25) |
| + | @mixin block-glowing-effect($selector:focus, $fade-time:300ms, $glowing-effect-color:fade-out($primary-color, .25)) { |
| + | transition: box-shadow $fade-time, border-color $fade-time ease-in-out; |
| + | |
| + | &:#{$selector} { |
| + | box-shadow: 0 0 5px $glowing-effect-color; |
| + | border-color: $glowing-effect-color; |
| + | } |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this to translate elements in 2D |
| + | // $horizontal: Default: 0 |
| + | // $vertical: Default: 0 |
| + | @mixin translate2d($horizontal:0, $vertical:0) { |
| + | transform: translate($horizontal,$vertical) |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // Makes an element visually hidden, but accessible. |
| + | // @see http://snook.ca/archives/html_and_css/hiding-content-for-accessibility |
| + | @mixin element-invisible { |
| + | position: absolute !important; |
| + | height: 1px; |
| + | width: 1px; |
| + | overflow: hidden; |
| + | clip: rect(1px, 1px, 1px, 1px); |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // Turns off the element-invisible effect. |
| + | @mixin element-invisible-off { |
| + | position: static !important; |
| + | height: auto; |
| + | width: auto; |
| + | overflow: visible; |
| + | clip: auto; |
| + | } |
| + | |
| + | // We use these to define default font weights |
| + | $font-weight-normal: normal !default; |
| + | $font-weight-bold: bold !default; |
| + | |
| + | // We use these to control various global styles |
| + | $body-bg: #fff !default; |
| + | $body-font-color: #222 !default; |
| + | $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif !default; |
| + | $body-font-weight: $font-weight-normal !default; |
| + | $body-font-style: normal !default; |
| + | |
| + | // We use this to control font-smoothing |
| + | $font-smoothing: antialiased !default; |
| + | |
| + | // We use these to control text direction settings |
| + | $text-direction: ltr !default; |
| + | $default-float: left !default; |
| + | $opposite-direction: right !default; |
| + | @if $text-direction == ltr { |
| + | $default-float: left; |
| + | $opposite-direction: right; |
| + | } @else { |
| + | $default-float: right; |
| + | $opposite-direction: left; |
| + | } |
| + | // We use these as default colors throughout |
| + | $primary-color: #008CBA !default; |
| + | $secondary-color: #e7e7e7 !default; |
| + | $alert-color: #f04124 !default; |
| + | $success-color: #43AC6A !default; |
| + | $warning-color: #f08a24 !default; |
| + | $info-color: #a0d3e8 !default; |
| + | |
| + | // We use these to make sure border radius matches unless we want it different. |
| + | $global-radius: 3px !default; |
| + | $global-rounded: 1000px !default; |
| + | |
| + | // We use these to control inset shadow shiny edges and depressions. |
| + | $shiny-edge-size: 0 1px 0 !default; |
| + | $shiny-edge-color: rgba(#fff, .5) !default; |
| + | $shiny-edge-active-color: rgba(#000, .2) !default; |
| + | |
| + | // We use this to control whether or not CSS classes come through in the gem files. |
| + | $include-html-classes: true !default; |
| + | $include-print-styles: true !default; |
| + | $include-html-global-classes: $include-html-classes !default; |
| + | |
| + | $column-gutter: rem-calc(30) !default; |
| + | |
| + | // Media Query Ranges |
| + | $small-range: (0em, 40em) !default; |
| + | $medium-range: (40.063em, 64em) !default; |
| + | $large-range: (64.063em, 90em) !default; |
| + | $xlarge-range: (90.063em, 120em) !default; |
| + | $xxlarge-range: (120.063em, 99999999em) !default; |
| + | |
| + | |
| + | $screen: "only screen" !default; |
| + | |
| + | $landscape: "#{$screen} and (orientation: landscape)" !default; |
| + | $portrait: "#{$screen} and (orientation: portrait)" !default; |
| + | |
| + | $small-up: $screen !default; |
| + | $small-only: "#{$screen} and (max-width: #{upper-bound($small-range)})" !default; |
| + | |
| + | $medium-up: "#{$screen} and (min-width:#{lower-bound($medium-range)})" !default; |
| + | $medium-only: "#{$screen} and (min-width:#{lower-bound($medium-range)}) and (max-width:#{upper-bound($medium-range)})" !default; |
| + | |
| + | $large-up: "#{$screen} and (min-width:#{lower-bound($large-range)})" !default; |
| + | $large-only: "#{$screen} and (min-width:#{lower-bound($large-range)}) and (max-width:#{upper-bound($large-range)})" !default; |
| + | |
| + | $xlarge-up: "#{$screen} and (min-width:#{lower-bound($xlarge-range)})" !default; |
| + | $xlarge-only: "#{$screen} and (min-width:#{lower-bound($xlarge-range)}) and (max-width:#{upper-bound($xlarge-range)})" !default; |
| + | |
| + | $xxlarge-up: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)})" !default; |
| + | $xxlarge-only: "#{$screen} and (min-width:#{lower-bound($xxlarge-range)}) and (max-width:#{upper-bound($xxlarge-range)})" !default; |
| + | |
| + | // Legacy |
| + | $small: $medium-up; |
| + | $medium: $medium-up; |
| + | $large: $large-up; |
| + | |
| + | |
| + | //We use this as cursors values for enabling the option of having custom cursors in the whole site's stylesheet |
| + | $cursor-crosshair-value: crosshair !default; |
| + | $cursor-default-value: default !default; |
| + | $cursor-pointer-value: pointer !default; |
| + | $cursor-help-value: help !default; |
| + | $cursor-text-value: text !default; |
| + | |
| + | |
| + | @include exports("global") { |
| + | |
| + | // Meta styles are included in all builds, as they are a dependancy of the Javascript. |
| + | // Used to provide media query values for javascript components. |
| + | // Forward slash placed around everything to convince PhantomJS to read the value. |
| + | |
| + | meta.foundation-version { |
| + | font-family: "/5.2.3/"; |
| + | } |
| + | |
| + | meta.foundation-mq-small { |
| + | font-family: "/" + unquote($small-up) + "/"; |
| + | width: lower-bound($small-range); |
| + | } |
| + | |
| + | meta.foundation-mq-medium { |
| + | font-family: "/" + unquote($medium-up) + "/"; |
| + | width: lower-bound($medium-range); |
| + | } |
| + | |
| + | meta.foundation-mq-large { |
| + | font-family: "/" + unquote($large-up) + "/"; |
| + | width: lower-bound($large-range); |
| + | } |
| + | |
| + | meta.foundation-mq-xlarge { |
| + | font-family: "/" + unquote($xlarge-up) + "/"; |
| + | width: lower-bound($xlarge-range); |
| + | } |
| + | |
| + | meta.foundation-mq-xxlarge { |
| + | font-family: "/" + unquote($xxlarge-up) + "/"; |
| + | width: lower-bound($xxlarge-range); |
| + | } |
| + | |
| + | meta.foundation-data-attribute-namespace { |
| + | font-family: #{$namespace}; |
| + | } |
| + | |
| + | @if $include-html-global-classes { |
| + | |
| + | // Must be 100% for off canvas to work |
| + | html, body { height: 100%; } |
| + | |
| + | // Set box-sizing globally to handle padding and border widths |
| + | *, |
| + | *:before, |
| + | *:after { |
| + | @include box-sizing(border-box); |
| + | } |
| + | |
| + | html, |
| + | body { font-size: $base-font-size; } |
| + | |
| + | // Default body styles |
| + | body { |
| + | background: $body-bg; |
| + | color: $body-font-color; |
| + | padding: 0; |
| + | margin: 0; |
| + | font-family: $body-font-family; |
| + | font-weight: $body-font-weight; |
| + | font-style: $body-font-style; |
| + | line-height: 1; // Set to $base-line-height to take on browser default of 150% |
| + | position: relative; |
| + | cursor: $cursor-default-value; |
| + | } |
| + | |
| + | a:hover { cursor: $cursor-pointer-value; } |
| + | |
| + | // Grid Defaults to get images and embeds to work properly |
| + | img { max-width: 100%; height: auto; } |
| + | |
| + | img { -ms-interpolation-mode: bicubic; } |
| + | |
| + | #map_canvas, |
| + | .map_canvas { |
| + | img, |
| + | embed, |
| + | object { max-width: none !important; |
| + | } |
| + | } |
| + | |
| + | // Miscellaneous useful HTML classes |
| + | .left { float: left !important; } |
| + | .right { float: right !important; } |
| + | .clearfix { @include clearfix; } |
| + | .hide { display: none; } |
| + | |
| + | // Font smoothing |
| + | // Antialiased font smoothing works best for light text on a dark background. |
| + | // Apply to single elements instead of globally to body. |
| + | // Note this only applies to webkit-based desktop browsers and Firefox 25 (and later) on the Mac. |
| + | .antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } |
| + | |
| + | // Get rid of gap under images by making them display: inline-block; by default |
| + | img { |
| + | display: inline-block; |
| + | vertical-align: middle; |
| + | } |
| + | |
| + | // |
| + | // Global resets for forms |
| + | // |
| + | |
| + | // Make sure textarea takes on height automatically |
| + | textarea { height: auto; min-height: 50px; } |
| + | |
| + | // Make select elements 100% width by default |
| + | select { width: 100%; } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_grid.scss
+260
-0
| @@ | @@ -0,0 +1,260 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-grid-classes: $include-html-classes !default; |
| + | $include-xl-html-grid-classes: false !default; |
| + | |
| + | $row-width: rem-calc(1000) !default; |
| + | $total-columns: 12 !default; |
| + | |
| + | // |
| + | // Grid Functions |
| + | // |
| + | |
| + | // Deprecated: We'll drop support for this in 5.1, use grid-calc() |
| + | @function gridCalc($colNumber, $totalColumns) { |
| + | @warn "gridCalc() is deprecated, use grid-calc()"; |
| + | @return grid-calc($colNumber, $totalColumns); |
| + | } |
| + | |
| + | // @FUNCTION |
| + | // $colNumber - Found in settings file |
| + | // $totalColumns - Found in settings file |
| + | @function grid-calc($colNumber, $totalColumns) { |
| + | @return percentage(($colNumber / $totalColumns)); |
| + | } |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | |
| + | // For creating container, nested, and collapsed rows. |
| + | // |
| + | // |
| + | // $behavior - Any special behavior for this row? Default: false. Options: nest, collapse, nest-collapse, false. |
| + | @mixin grid-row($behavior: false) { |
| + | |
| + | // use @include grid-row(nest); to include a nested row |
| + | @if $behavior == nest { |
| + | width: auto; |
| + | margin-#{$default-float}: -($column-gutter/2); |
| + | margin-#{$opposite-direction}: -($column-gutter/2); |
| + | margin-top: 0; |
| + | margin-bottom: 0; |
| + | max-width: none; |
| + | } |
| + | |
| + | // use @include grid-row(collapse); to collapsed a container row margins |
| + | @else if $behavior == collapse { |
| + | width: 100%; |
| + | margin: 0; |
| + | max-width: $row-width; |
| + | } |
| + | |
| + | // use @include grid-row(nest-collapse); to collapse outer margins on a nested row |
| + | @else if $behavior == nest-collapse { |
| + | width: auto; |
| + | margin: 0; |
| + | max-width: none; |
| + | } |
| + | |
| + | // use @include grid-row; to use a container row |
| + | @else { |
| + | width: 100%; |
| + | margin-#{$default-float}: auto; |
| + | margin-#{$opposite-direction}: auto; |
| + | margin-top: 0; |
| + | margin-bottom: 0; |
| + | max-width: $row-width; |
| + | } |
| + | |
| + | // Clearfix for all rows |
| + | @include clearfix(); |
| + | } |
| + | |
| + | // Creates a column, should be used inside of a media query to control layouts |
| + | // |
| + | // $columns - The number of columns this should be |
| + | // $last-column - Is this the last column? Default: false. |
| + | // $center - Center these columns? Default: false. |
| + | // $offset - # of columns to offset. Default: false. |
| + | // $push - # of columns to push. Default: false. |
| + | // $pull - # of columns to pull. Default: false. |
| + | // $collapse - Get rid of gutter padding on column? Default: false. |
| + | // $float - Should this float? Default: true. Options: true, false, left, right. |
| + | @mixin grid-column( |
| + | $columns:false, |
| + | $last-column:false, |
| + | $center:false, |
| + | $offset:false, |
| + | $push:false, |
| + | $pull:false, |
| + | $collapse:false, |
| + | $float:true, |
| + | $position:false) { |
| + | |
| + | // If positioned for default .column, include relative position |
| + | // push and pull require position set |
| + | @if $position or $push or $pull { |
| + | position: relative; |
| + | } |
| + | |
| + | // If collapsed, get rid of gutter padding |
| + | @if $collapse { |
| + | padding-left: 0; |
| + | padding-right: 0; |
| + | } |
| + | |
| + | // Gutter padding whenever a column isn't set to collapse |
| + | // (use $collapse:null to do nothing) |
| + | @else if $collapse == false { |
| + | padding-left: $column-gutter / 2; |
| + | padding-right: $column-gutter / 2; |
| + | } |
| + | |
| + | // If a column number is given, calculate width |
| + | @if $columns { |
| + | width: grid-calc($columns, $total-columns); |
| + | |
| + | // If last column, float naturally instead of to the right |
| + | @if $last-column { float: $opposite-direction; } |
| + | } |
| + | |
| + | // Source Ordering, adds left/right depending on which you use. |
| + | @if $push { #{$default-float}: grid-calc($push, $total-columns); #{$opposite-direction}: auto; } |
| + | @if $pull { #{$opposite-direction}: grid-calc($pull, $total-columns); #{$default-float}: auto; } |
| + | |
| + | @if $float { |
| + | @if $float == left or $float == true { float: $default-float; } |
| + | @else if $float == right { float: $opposite-direction; } |
| + | @else { float: none; } |
| + | } |
| + | |
| + | // If centered, get rid of float and add appropriate margins |
| + | @if $center { |
| + | margin-#{$default-float}: auto; |
| + | margin-#{$opposite-direction}: auto; |
| + | float: none !important; |
| + | } |
| + | |
| + | // If offset, calculate appropriate margins |
| + | @if $offset { margin-#{$default-float}: grid-calc($offset, $total-columns) !important; } |
| + | |
| + | } |
| + | |
| + | // Create presentational classes for grid |
| + | // |
| + | // $size - Name of class to use, i.e. "large" will generate .large-1, .large-2, etc. |
| + | @mixin grid-html-classes($size) { |
| + | |
| + | @for $i from 0 through $total-columns - 1 { |
| + | .#{$size}-push-#{$i} { |
| + | @include grid-column($push:$i, $collapse:null, $float:false); |
| + | } |
| + | .#{$size}-pull-#{$i} { |
| + | @include grid-column($pull:$i, $collapse:null, $float:false); |
| + | } |
| + | } |
| + | |
| + | .column, |
| + | .columns { @include grid-column($columns:false, $position:true); } |
| + | |
| + | |
| + | @for $i from 1 through $total-columns { |
| + | .#{$size}-#{$i} { @include grid-column($columns:$i,$collapse:null,$float:false); } |
| + | } |
| + | |
| + | [class*="column"] + [class*="column"]:last-child { float: $opposite-direction; } |
| + | [class*="column"] + [class*="column"].end { float: $default-float; } |
| + | |
| + | |
| + | @for $i from 0 through $total-columns - 1 { |
| + | .#{$size}-offset-#{$i} { @include grid-column($offset:$i, $collapse:null,$float:false); } |
| + | } |
| + | .#{$size}-reset-order { |
| + | margin-#{$default-float}: 0; |
| + | margin-#{$opposite-direction}: 0; |
| + | left: auto; |
| + | right: auto; |
| + | float: $default-float; |
| + | } |
| + | |
| + | .column.#{$size}-centered, |
| + | .columns.#{$size}-centered { @include grid-column($center:true, $collapse:null, $float:false); } |
| + | |
| + | .column.#{$size}-uncentered, |
| + | .columns.#{$size}-uncentered { |
| + | margin-#{$default-float}: 0; |
| + | margin-#{$opposite-direction}: 0; |
| + | float: $default-float !important; |
| + | } |
| + | |
| + | .column.#{$size}-uncentered.opposite, |
| + | .columns.#{$size}-uncentered.opposite { |
| + | float: $opposite-direction; |
| + | } |
| + | } |
| + | |
| + | @include exports("grid") { |
| + | @if $include-html-grid-classes { |
| + | .row { |
| + | @include grid-row; |
| + | |
| + | &.collapse { |
| + | > .column, |
| + | > .columns { @include grid-column($collapse:true, $float:false); } |
| + | |
| + | .row {margin-left:0; margin-right:0;} |
| + | } |
| + | |
| + | .row { @include grid-row($behavior:nest); |
| + | &.collapse { @include grid-row($behavior:nest-collapse); } |
| + | } |
| + | } |
| + | |
| + | .column, |
| + | .columns { @include grid-column($columns:$total-columns); } |
| + | |
| + | @media #{$small-up} { |
| + | @include grid-html-classes($size:small); |
| + | } |
| + | |
| + | @media #{$medium-up} { |
| + | @include grid-html-classes($size:medium); |
| + | // Old push and pull classes |
| + | @for $i from 0 through $total-columns - 1 { |
| + | .push-#{$i} { |
| + | @include grid-column($push:$i, $collapse:null, $float:false); |
| + | } |
| + | .pull-#{$i} { |
| + | @include grid-column($pull:$i, $collapse:null, $float:false); |
| + | } |
| + | } |
| + | } |
| + | @media #{$large-up} { |
| + | @include grid-html-classes($size:large); |
| + | @for $i from 0 through $total-columns - 1 { |
| + | .push-#{$i} { |
| + | @include grid-column($push:$i, $collapse:null, $float:false); |
| + | } |
| + | .pull-#{$i} { |
| + | @include grid-column($pull:$i, $collapse:null, $float:false); |
| + | } |
| + | } |
| + | } |
| + | } |
| + | @if $include-xl-html-grid-classes { |
| + | @media #{$xlarge-up} { |
| + | @include grid-html-classes($size:xlarge); |
| + | } |
| + | @media #{$xxlarge-up} { |
| + | @include grid-html-classes($size:xxlarge); |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_inline-lists.scss
+57
-0
| @@ | @@ -0,0 +1,57 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-inline-list-classes: $include-html-classes !default; |
| + | |
| + | // We use this to control the margins and padding of the inline list. |
| + | $inline-list-top-margin: 0 !default; |
| + | $inline-list-opposite-margin: 0 !default; |
| + | $inline-list-bottom-margin: rem-calc(17) !default; |
| + | $inline-list-default-float-margin: rem-calc(-22) !default; |
| + | $inline-list-default-float-list-margin: rem-calc(22) !default; |
| + | |
| + | $inline-list-padding: 0 !default; |
| + | |
| + | // We use this to control the overflow of the inline list. |
| + | $inline-list-overflow: hidden !default; |
| + | |
| + | // We use this to control the list items |
| + | $inline-list-display: block !default; |
| + | |
| + | // We use this to control any elements within list items |
| + | $inline-list-children-display: block !default; |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | // We use this mixin to create inline lists |
| + | @mixin inline-list { |
| + | margin: $inline-list-top-margin auto $inline-list-bottom-margin auto; |
| + | margin-#{$default-float}: $inline-list-default-float-margin; |
| + | margin-#{$opposite-direction}: $inline-list-opposite-margin; |
| + | padding: $inline-list-padding; |
| + | list-style: none; |
| + | overflow: $inline-list-overflow; |
| + | |
| + | & > li { |
| + | list-style: none; |
| + | float: $default-float; |
| + | margin-#{$default-float}: $inline-list-default-float-list-margin; |
| + | display: $inline-list-display; |
| + | &>* { display: $inline-list-children-display; } |
| + | } |
| + | } |
| + | |
| + | @include exports("inline-list") { |
| + | @if $include-html-inline-list-classes { |
| + | .inline-list { |
| + | @include inline-list(); |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_joyride.scss
+220
-0
| @@ | @@ -0,0 +1,220 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-joyride-classes: $include-html-classes !default; |
| + | |
| + | // Controlling default Joyride styles |
| + | $joyride-tip-bg: #333 !default; |
| + | $joyride-tip-default-width: 300px !default; |
| + | $joyride-tip-padding: rem-calc(18 20 24) !default; |
| + | $joyride-tip-border: solid 1px #555 !default; |
| + | $joyride-tip-radius: 4px !default; |
| + | $joyride-tip-position-offset: 22px !default; |
| + | |
| + | // Here, we're setting the tip font styles |
| + | $joyride-tip-font-color: #fff !default; |
| + | $joyride-tip-font-size: rem-calc(14) !default; |
| + | $joyride-tip-header-weight: $font-weight-bold !default; |
| + | |
| + | // This changes the nub size |
| + | $joyride-tip-nub-size: 10px !default; |
| + | |
| + | // This adjusts the styles for the timer when its enabled |
| + | $joyride-tip-timer-width: 50px !default; |
| + | $joyride-tip-timer-height: 3px !default; |
| + | $joyride-tip-timer-color: #666 !default; |
| + | |
| + | // This changes up the styles for the close button |
| + | $joyride-tip-close-color: #777 !default; |
| + | $joyride-tip-close-size: 24px !default; |
| + | $joyride-tip-close-weight: $font-weight-normal !default; |
| + | |
| + | // When Joyride is filling the screen, we use this style for the bg |
| + | $joyride-screenfill: rgba(0,0,0,0.5) !default; |
| + | |
| + | |
| + | // We decided not to make a mixin for this because it relies on |
| + | // predefined classes to work properly. |
| + | @include exports("joyride") { |
| + | @if $include-html-joyride-classes { |
| + | |
| + | /* Foundation Joyride */ |
| + | .joyride-list { display: none; } |
| + | |
| + | /* Default styles for the container */ |
| + | .joyride-tip-guide { |
| + | display: none; |
| + | position: absolute; |
| + | background: $joyride-tip-bg; |
| + | color: $joyride-tip-font-color; |
| + | z-index: 101; |
| + | top: 0; |
| + | #{$default-float}: 2.5%; |
| + | font-family: inherit; |
| + | font-weight: $font-weight-normal; |
| + | width: 95%; |
| + | } |
| + | |
| + | .lt-ie9 .joyride-tip-guide { |
| + | max-width:800px; |
| + | #{$default-float}: 50%; |
| + | margin-#{$default-float}:-400px; |
| + | } |
| + | |
| + | .joyride-content-wrapper { |
| + | width: 100%; |
| + | |
| + | padding: $joyride-tip-padding; |
| + | |
| + | .button { margin-bottom: 0 !important; } |
| + | } |
| + | |
| + | /* Add a little css triangle pip, older browser just miss out on the fanciness of it */ |
| + | .joyride-tip-guide { |
| + | .joyride-nub { |
| + | display: block; |
| + | position: absolute; |
| + | #{$default-float}: $joyride-tip-position-offset; |
| + | width: 0; |
| + | height: 0; |
| + | border: $joyride-tip-nub-size solid $joyride-tip-bg; |
| + | |
| + | &.top { |
| + | border-top-style: solid; |
| + | border-color: $joyride-tip-bg; |
| + | border-top-color: transparent !important; |
| + | border-#{$default-float}-color: transparent !important; |
| + | border-#{$opposite-direction}-color: transparent !important; |
| + | top: -($joyride-tip-nub-size*2); |
| + | } |
| + | &.bottom { |
| + | border-bottom-style: solid; |
| + | border-color: $joyride-tip-bg !important; |
| + | border-bottom-color: transparent !important; |
| + | border-#{$default-float}-color: transparent !important; |
| + | border-#{$opposite-direction}-color: transparent !important; |
| + | bottom: -($joyride-tip-nub-size*2); |
| + | } |
| + | |
| + | &.right { right: -($joyride-tip-nub-size*2); } |
| + | &.left { left: -($joyride-tip-nub-size*2); } |
| + | } |
| + | } |
| + | |
| + | /* Typography */ |
| + | .joyride-tip-guide h1, |
| + | .joyride-tip-guide h2, |
| + | .joyride-tip-guide h3, |
| + | .joyride-tip-guide h4, |
| + | .joyride-tip-guide h5, |
| + | .joyride-tip-guide h6 { |
| + | line-height: 1.25; |
| + | margin: 0; |
| + | font-weight: $joyride-tip-header-weight; |
| + | color: $joyride-tip-font-color; |
| + | } |
| + | .joyride-tip-guide p { |
| + | margin: rem-calc(0 0 18 0); |
| + | font-size: $joyride-tip-font-size; |
| + | line-height: 1.3; |
| + | } |
| + | |
| + | .joyride-timer-indicator-wrap { |
| + | width: $joyride-tip-timer-width; |
| + | height: $joyride-tip-timer-height; |
| + | border: $joyride-tip-border; |
| + | position: absolute; |
| + | #{$opposite-direction}: rem-calc(17); |
| + | bottom: rem-calc(16); |
| + | } |
| + | .joyride-timer-indicator { |
| + | display: block; |
| + | width: 0; |
| + | height: inherit; |
| + | background: $joyride-tip-timer-color; |
| + | } |
| + | |
| + | .joyride-close-tip { |
| + | position: absolute; |
| + | #{$opposite-direction}: 12px; |
| + | top: 10px; |
| + | color: $joyride-tip-close-color !important; |
| + | text-decoration: none; |
| + | font-size: $joyride-tip-close-size; |
| + | font-weight: $joyride-tip-close-weight; |
| + | line-height: .5 !important; |
| + | |
| + | &:hover, |
| + | &:focus { color: #eee !important; } |
| + | } |
| + | |
| + | .joyride-modal-bg { |
| + | position: fixed; |
| + | height: 100%; |
| + | width: 100%; |
| + | background: transparent; |
| + | background: $joyride-screenfill; |
| + | z-index: 100; |
| + | display: none; |
| + | top: 0; |
| + | #{$default-float}: 0; |
| + | cursor: $cursor-pointer-value; |
| + | } |
| + | |
| + | .joyride-expose-wrapper { |
| + | background-color: #ffffff; |
| + | position: absolute; |
| + | border-radius: 3px; |
| + | z-index: 102; |
| + | box-shadow: 0 0 15px #ffffff; |
| + | } |
| + | |
| + | .joyride-expose-cover { |
| + | background: transparent; |
| + | border-radius: 3px; |
| + | position: absolute; |
| + | z-index: 9999; |
| + | top: 0; |
| + | left: 0; |
| + | } |
| + | |
| + | |
| + | /* Styles for screens that are at least 768px; */ |
| + | @media #{$small} { |
| + | .joyride-tip-guide { width: $joyride-tip-default-width; #{$default-float}: inherit; |
| + | .joyride-nub { |
| + | &.bottom { |
| + | border-color: $joyride-tip-bg !important; |
| + | border-bottom-color: transparent !important; |
| + | border-#{$default-float}-color: transparent !important; |
| + | border-#{$opposite-direction}-color: transparent !important; |
| + | bottom: -($joyride-tip-nub-size*2); |
| + | } |
| + | &.right { |
| + | border-color: $joyride-tip-bg !important; |
| + | border-top-color: transparent !important; |
| + | border-right-color: transparent !important; border-bottom-color: transparent !important; |
| + | top: $joyride-tip-position-offset; |
| + | left: auto; |
| + | right: -($joyride-tip-nub-size*2); |
| + | } |
| + | &.left { |
| + | border-color: $joyride-tip-bg !important; |
| + | border-top-color: transparent !important; |
| + | border-left-color: transparent !important; |
| + | border-bottom-color: transparent !important; |
| + | top: $joyride-tip-position-offset; |
| + | left: -($joyride-tip-nub-size*2); |
| + | right: auto; |
| + | } |
| + | } |
| + | } |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_keystrokes.scss
+61
-0
| @@ | @@ -0,0 +1,61 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-keystroke-classes: $include-html-classes !default; |
| + | |
| + | // We use these to control text styles. |
| + | $keystroke-font: "Consolas", "Menlo", "Courier", monospace !default; |
| + | $keystroke-font-size: inherit !default; |
| + | $keystroke-font-color: #222 !default; |
| + | $keystroke-font-color-alt: #fff !default; |
| + | $keystroke-function-factor: -7% !default; |
| + | |
| + | // We use this to control keystroke padding. |
| + | $keystroke-padding: rem-calc(2 4 0) !default; |
| + | |
| + | // We use these to control background and border styles. |
| + | $keystroke-bg: scale-color(#fff, $lightness: $keystroke-function-factor) !default; |
| + | $keystroke-border-style: solid !default; |
| + | $keystroke-border-width: 1px !default; |
| + | $keystroke-border-color: scale-color($keystroke-bg, $lightness: $keystroke-function-factor) !default; |
| + | $keystroke-radius: $global-radius !default; |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | // We use this mixin to create keystroke styles. |
| + | // $bg - Default: $keystroke-bg || scale-color(#fff, $lightness: $keystroke-function-factor) !default; |
| + | @mixin keystroke($bg:$keystroke-bg) { |
| + | // This find the lightness percentage of the background color. |
| + | $bg-lightness: lightness($bg); |
| + | |
| + | background-color: $bg; |
| + | border-color: scale-color($bg, $lightness: $keystroke-function-factor); |
| + | |
| + | // We adjust the font color based on the brightness of the background. |
| + | @if $bg-lightness > 70% { color: $keystroke-font-color; } |
| + | @else { color: $keystroke-font-color-alt; } |
| + | |
| + | border-style: $keystroke-border-style; |
| + | border-width: $keystroke-border-width; |
| + | margin: 0; |
| + | font-family: $keystroke-font; |
| + | font-size: $keystroke-font-size; |
| + | padding: $keystroke-padding; |
| + | } |
| + | |
| + | @include exports("keystroke") { |
| + | @if $include-html-keystroke-classes { |
| + | .keystroke, |
| + | kbd { |
| + | @include keystroke; |
| + | @include radius($keystroke-radius); |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_labels.scss
+104
-0
| @@ | @@ -0,0 +1,104 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-label-classes: $include-html-classes !default; |
| + | |
| + | // We use these to style the labels |
| + | $label-padding: rem-calc(4 8 6) !default; |
| + | $label-radius: $global-radius !default; |
| + | |
| + | // We use these to style the label text |
| + | $label-font-sizing: rem-calc(11) !default; |
| + | $label-font-weight: $font-weight-normal !default; |
| + | $label-font-color: #333 !default; |
| + | $label-font-color-alt: #fff !default; |
| + | $label-font-family: $body-font-family !default; |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | // We use this mixin to create a default label base. |
| + | @mixin label-base { |
| + | font-weight: $label-font-weight; |
| + | font-family: $label-font-family; |
| + | text-align: center; |
| + | text-decoration: none; |
| + | line-height: 1; |
| + | white-space: nowrap; |
| + | display: inline-block; |
| + | position: relative; |
| + | margin-bottom: inherit; |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this mixin to add label size styles. |
| + | // $padding - Used to determine label padding. Default: $label-padding || rem-calc(3 10 4) !default |
| + | // $text-size - Used to determine label text-size. Default: $text-size found in settings |
| + | @mixin label-size($padding:$label-padding, $text-size:$label-font-sizing) { |
| + | @if $padding { padding: $padding; } |
| + | @if $text-size { font-size: $text-size; } |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this mixin to add label styles. |
| + | // $bg - Default: $primary-color (found in settings file) |
| + | // $radius - Default: false, Options: true, sets radius to $global-radius (found in settings file) |
| + | @mixin label-style($bg:$primary-color, $radius:false) { |
| + | |
| + | // We control which background color comes through |
| + | @if $bg { |
| + | |
| + | // This find the lightness percentage of the background color. |
| + | $bg-lightness: lightness($bg); |
| + | |
| + | background-color: $bg; |
| + | |
| + | // We control the text color for you based on the background color. |
| + | @if $bg-lightness < 70% { color: $label-font-color-alt; } |
| + | @else { color: $label-font-color; } |
| + | } |
| + | |
| + | // We use this to control the radius on labels. |
| + | @if $radius == true { @include radius($label-radius); } |
| + | @else if $radius { @include radius($radius); } |
| + | |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this to add close buttons to alerts |
| + | // $padding - Default: $label-padding, |
| + | // $text-size - Default: $label-font-sizing, |
| + | // $bg - Default: $primary-color(found in settings file) |
| + | // $radius - Default: false, Options: true which sets radius to $global-radius (found in settings file) |
| + | @mixin label($padding:$label-padding, $text-size:$label-font-sizing, $bg:$primary-color, $radius:false) { |
| + | |
| + | @include label-base; |
| + | @include label-size($padding, $text-size); |
| + | @include label-style($bg, $radius); |
| + | } |
| + | |
| + | @include exports("label") { |
| + | @if $include-html-label-classes { |
| + | .label { |
| + | @include label-base; |
| + | @include label-size; |
| + | @include label-style; |
| + | |
| + | &.radius { @include label-style(false, true); } |
| + | &.round { @include label-style(false, $radius:1000px); } |
| + | |
| + | &.alert { @include label-style($alert-color); } |
| + | &.success { @include label-style($success-color); } |
| + | &.secondary { @include label-style($secondary-color); } |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_magellan.scss
+34
-0
| @@ | @@ -0,0 +1,34 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-magellan-classes: $include-html-classes !default; |
| + | |
| + | $magellan-bg: #fff !default; |
| + | $magellan-padding: 10px !default; |
| + | |
| + | @include exports("magellan") { |
| + | @if $include-html-magellan-classes { |
| + | |
| + | #{data('magellan-expedition')}, #{data('magellan-expedition-clone')} { |
| + | background: $magellan-bg; |
| + | z-index: 50; |
| + | min-width: 100%; |
| + | padding: $magellan-padding; |
| + | |
| + | .sub-nav { |
| + | margin-bottom: 0; |
| + | dd { margin-bottom: 0; } |
| + | a { |
| + | line-height: 1.8em; |
| + | } |
| + | } |
| + | } |
| + | |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_offcanvas.scss
+356
-0
| @@ | @@ -0,0 +1,356 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | @import "type"; |
| + | |
| + | // Off Canvas Tab Bar Variables |
| + | $include-html-off-canvas-classes: $include-html-classes !default; |
| + | |
| + | $tabbar-bg: #333 !default; |
| + | $tabbar-height: rem-calc(45) !default; |
| + | $tabbar-line-height: $tabbar-height !default; |
| + | $tabbar-color: #fff !default; |
| + | $tabbar-middle-padding: 0 rem-calc(10) !default; |
| + | |
| + | // Off Canvas Divider Styles |
| + | $tabbar-left-section-border: solid 1px scale-color($tabbar-bg, $lightness: -50%) !default; |
| + | $tabbar-right-section-border: $tabbar-left-section-border; |
| + | |
| + | |
| + | // Off Canvas Tab Bar Headers |
| + | $tabbar-header-color: #fff !default; |
| + | $tabbar-header-weight: $font-weight-bold !default; |
| + | $tabbar-header-line-height: $tabbar-height !default; |
| + | $tabbar-header-margin: 0 !default; |
| + | |
| + | // Off Canvas Menu Variables |
| + | $off-canvas-width: rem-calc(250) !default; |
| + | $off-canvas-bg: #333 !default; |
| + | |
| + | // Off Canvas Menu List Variables |
| + | $off-canvas-label-padding: 0.3rem rem-calc(15) !default; |
| + | $off-canvas-label-color: #999 !default; |
| + | $off-canvas-label-text-transform: uppercase !default; |
| + | $off-canvas-label-font-size: rem-calc(12) !default; |
| + | $off-canvas-label-font-weight: $font-weight-bold !default; |
| + | $off-canvas-label-bg: #444 !default; |
| + | $off-canvas-label-border-top: 1px solid scale-color($off-canvas-label-bg, $lightness: 14%) !default; |
| + | $off-canvas-label-border-bottom: none !default; |
| + | $off-canvas-label-margin:0 !default; |
| + | $off-canvas-link-padding: rem-calc(10, 15) !default; |
| + | $off-canvas-link-color: rgba(#FFF, 0.7) !default; |
| + | $off-canvas-link-border-bottom: 1px solid scale-color($off-canvas-bg, $lightness: -25%) !default; |
| + | |
| + | // Off Canvas Menu Icon Variables |
| + | $tabbar-menu-icon-color: #FFF !default; |
| + | $tabbar-menu-icon-hover: scale-color($tabbar-menu-icon-color, $lightness: -30%) !default; |
| + | |
| + | $tabbar-menu-icon-text-indent: rem-calc(35) !default; |
| + | $tabbar-menu-icon-width: $tabbar-height !default; |
| + | $tabbar-menu-icon-height: $tabbar-height !default; |
| + | $tabbar-menu-icon-padding: 0 !default; |
| + | |
| + | $tabbar-hamburger-icon-width: rem-calc(16) !default; |
| + | $tabbar-hamburger-icon-left: false !default; |
| + | $tabbar-hamburger-icon-top: false !default; |
| + | $tapbar-hamburger-icon-thickness: 1px !default; |
| + | $tapbar-hamburger-icon-gap: 6px !default; |
| + | |
| + | // Off Canvas Back-Link Overlay |
| + | $off-canvas-overlay-transition: background 300ms ease !default; |
| + | $off-canvas-overlay-cursor: pointer !default; |
| + | $off-canvas-overlay-box-shadow: -4px 0 4px rgba(#000, 0.5), 4px 0 4px rgba(#000, 0.5) !default; |
| + | $off-canvas-overlay-background: rgba(#FFF, 0.2) !default; |
| + | $off-canvas-overlay-background-hover: rgba(#FFF, 0.05) !default; |
| + | |
| + | // Transition Variables |
| + | $menu-slide: "transform 500ms ease" !default; |
| + | |
| + | |
| + | // MIXINS |
| + | // Remove transition flicker on phones |
| + | @mixin kill-flicker { |
| + | // -webkit-transform: translateZ(0x); |
| + | -webkit-backface-visibility: hidden; |
| + | } |
| + | |
| + | // Basic properties for the content wraps |
| + | @mixin wrap-base { |
| + | position: relative; |
| + | width: 100%; |
| + | } |
| + | |
| + | @mixin translate3d($tx,$ty,$tz) { |
| + | -ms-transform: translate($tx,$ty); |
| + | -webkit-transform: translate3d($tx,$ty,$tz); |
| + | -moz-transform: translate3d($tx,$ty,$tz); |
| + | -ms-transform: translate3d($tx,$ty,$tz); |
| + | -o-transform: translate3d($tx,$ty,$tz); |
| + | transform: translate3d($tx,$ty,$tz) |
| + | } |
| + | |
| + | // basic styles for off-canvas menu container |
| + | @mixin off-canvas-menu($position) { |
| + | @include kill-flicker; |
| + | * { @include kill-flicker; } |
| + | width: $off-canvas-width; |
| + | top: 0; |
| + | bottom: 0; |
| + | position: absolute; |
| + | overflow-y: auto; |
| + | background: $off-canvas-bg; |
| + | z-index: 1001; |
| + | box-sizing: content-box; |
| + | transition: transform 500ms ease 0s; |
| + | -webkit-overflow-scrolling: touch; |
| + | @if $position == left { |
| + | @include translate3d(-100%,0,0); |
| + | left: 0; |
| + | } |
| + | @if $position == right { |
| + | @include translate3d(100%,0,0); |
| + | right: 0; |
| + | } |
| + | } |
| + | |
| + | // OFF CANVAS WRAP |
| + | // Wrap visible content and prevent scroll bars |
| + | @mixin off-canvas-wrap { |
| + | @include kill-flicker; |
| + | @include wrap-base; |
| + | overflow: hidden; |
| + | &.move-right, |
| + | &.move-left { min-height: 100%; -webkit-overflow-scrolling: touch; } |
| + | } |
| + | |
| + | // INNER WRAP |
| + | // Main content area that moves to reveal the off-canvas nav |
| + | @mixin inner-wrap { |
| + | @include kill-flicker; |
| + | @include wrap-base; |
| + | @include clearfix; |
| + | -webkit-transition: -webkit-#{$menu-slide}; |
| + | -moz-transition: -moz-#{$menu-slide}; |
| + | -ms-transition: -ms-#{$menu-slide}; |
| + | -o-transition: -o-#{$menu-slide}; |
| + | transition: #{$menu-slide}; |
| + | } |
| + | |
| + | // TAB BAR |
| + | // This is the tab bar base |
| + | @mixin tab-bar-base { |
| + | @include kill-flicker; |
| + | |
| + | // base styles |
| + | background: $tabbar-bg; |
| + | color: $tabbar-color; |
| + | height: $tabbar-height; |
| + | line-height: $tabbar-height; |
| + | |
| + | // make sure it's below the .exit-offcanvas link |
| + | position: relative; |
| + | // z-index: 999; |
| + | |
| + | // Typography |
| + | h1,h2,h3,h4,h5,h6 { |
| + | color: $tabbar-header-color; |
| + | font-weight: $tabbar-header-weight; |
| + | line-height: $tabbar-header-line-height; |
| + | margin: $tabbar-header-margin; |
| + | } |
| + | h1,h2,h3,h4 { font-size: $h5-font-size; } |
| + | } |
| + | |
| + | // SMALL SECTIONS |
| + | // These are small sections on the left and right that contain the off-canvas toggle buttons; |
| + | @mixin tabbar-small-section($position) { |
| + | width: $tabbar-height; |
| + | height: $tabbar-height; |
| + | position: absolute; |
| + | top: 0; |
| + | @if $position == left { |
| + | border-right: $tabbar-left-section-border; |
| + | // box-shadow: 1px 0 0 scale-color($tabbar-bg, $lightness: 13%); |
| + | left: 0; |
| + | } |
| + | @if $position == right { |
| + | border-left: $tabbar-right-section-border; |
| + | // box-shadow: -1px 0 0 scale-color($tabbar-bg, $lightness: -50%); |
| + | right:0; |
| + | } |
| + | } |
| + | |
| + | @mixin tab-bar-section { |
| + | padding: $tabbar-middle-padding; |
| + | position: absolute; |
| + | text-align: center; |
| + | height: $tabbar-height; |
| + | top: 0; |
| + | @media #{$medium-up} { text-align: left; } |
| + | |
| + | // still need to make these non-presentational |
| + | &.left { |
| + | left: 0; |
| + | right: $tabbar-height; |
| + | } |
| + | &.right { |
| + | left: $tabbar-height; |
| + | right: 0; |
| + | } |
| + | &.middle { |
| + | left: $tabbar-height; |
| + | right: $tabbar-height; |
| + | } |
| + | } |
| + | |
| + | // OFF CANVAS LIST |
| + | // This is the list of links in the off-canvas menu |
| + | @mixin off-canvas-list { |
| + | list-style-type: none; |
| + | padding:0; |
| + | margin:0; |
| + | |
| + | li { |
| + | label { |
| + | display: block; |
| + | padding: $off-canvas-label-padding; |
| + | color: $off-canvas-label-color; |
| + | text-transform: $off-canvas-label-text-transform; |
| + | font-size: $off-canvas-label-font-size; |
| + | font-weight: $off-canvas-label-font-weight; |
| + | background: $off-canvas-label-bg; |
| + | border-top: $off-canvas-label-border-top; |
| + | border-bottom: $off-canvas-label-border-bottom; |
| + | margin: $off-canvas-label-margin; |
| + | } |
| + | a { |
| + | display: block; |
| + | padding: $off-canvas-link-padding; |
| + | color: $off-canvas-link-color; |
| + | border-bottom: $off-canvas-link-border-bottom; |
| + | &:hover { background: scale-color($tabbar-bg, $lightness: -30%); } |
| + | transition: background 300ms ease; |
| + | } |
| + | } |
| + | |
| + | } |
| + | |
| + | // BACK LINK |
| + | // This is an overlay that, when clicked, will toggle off the off canvas menu |
| + | @mixin back-link { |
| + | @include kill-flicker; |
| + | |
| + | transition: $off-canvas-overlay-transition; |
| + | cursor: $off-canvas-overlay-cursor; |
| + | box-shadow: $off-canvas-overlay-box-shadow; |
| + | |
| + | // fill the screen |
| + | display: block; |
| + | position: absolute; |
| + | background: $off-canvas-overlay-background; |
| + | top: 0; |
| + | bottom: 0; |
| + | left:0; |
| + | right:0; |
| + | z-index: 1002; |
| + | -webkit-tap-highlight-color: rgba(0,0,0,0); |
| + | |
| + | @media #{$medium-up} { |
| + | &:hover { |
| + | background: $off-canvas-overlay-background-hover; |
| + | } |
| + | } |
| + | } |
| + | |
| + | // |
| + | // DEFAULT CLASSES |
| + | // |
| + | @include exports("offcanvas") { |
| + | @if $include-html-off-canvas-classes { |
| + | |
| + | .off-canvas-wrap { @include off-canvas-wrap; } |
| + | .inner-wrap { @include inner-wrap; } |
| + | |
| + | .tab-bar { @include tab-bar-base; } |
| + | |
| + | .left-small { @include tabbar-small-section($position: left); } |
| + | .right-small { @include tabbar-small-section($position: right); } |
| + | |
| + | .tab-bar-section { @include tab-bar-section; } |
| + | |
| + | // MENU BUTTON |
| + | // This is a little bonus. You don't need it for off canvas to work. Mixins to be written in the future. |
| + | .tab-bar .menu-icon { |
| + | text-indent: $tabbar-menu-icon-text-indent; |
| + | width: $tabbar-height; |
| + | height: $tabbar-height; |
| + | display: block; |
| + | padding: $tabbar-menu-icon-padding; |
| + | color: $tabbar-menu-icon-color; |
| + | position: relative; |
| + | transform: translate3d(0,0,0); |
| + | |
| + | // @include for the hamburger menu-icon |
| + | // |
| + | // Arguments as follows: ($width, $left, $top, $thickness, $gap, $color, $hover-color) |
| + | // $width - Width of hamburger icon in rem Default: $tabbar-hamburger-icon-width. |
| + | // $left - If false, icon will be centered horizontally || explicitly set value in rem Default: $tabbar-hamburger-icon-left= False |
| + | // $top - If false, icon will be centered vertically || explicitly set value in rem Default: = False |
| + | // $thickness - thickness of lines in hamburger icon, set value in px Default: $tapbar-hamburger-icon-thickness = 1px |
| + | // $gap - spacing between the lines in hamburger icon, set value in px Default: $tapbar-hamburger-icon-gap = 6px |
| + | // $color - icon color Default: $tabbar-menu-icon-color |
| + | // $hover-color - icon color when hovered Default: $tabbar-menu-icon-hover |
| + | // $offcanvas - Set to true |
| + | @include hamburger($tabbar-hamburger-icon-width, $tabbar-hamburger-icon-left, $tabbar-hamburger-icon-top, $tapbar-hamburger-icon-thickness, $tapbar-hamburger-icon-gap, $tabbar-menu-icon-color, $tabbar-menu-icon-hover, true) |
| + | } |
| + | |
| + | .left-off-canvas-menu { @include off-canvas-menu($position: left); } |
| + | .right-off-canvas-menu { @include off-canvas-menu($position: right); } |
| + | |
| + | ul.off-canvas-list { @include off-canvas-list; } |
| + | |
| + | |
| + | // ANIMATION CLASSES |
| + | // These classes are added with JS and trigger the actual animation. |
| + | .move-right { |
| + | > .inner-wrap { |
| + | @include translate3d($off-canvas-width,0,0); |
| + | } |
| + | .exit-off-canvas { @include back-link;} |
| + | } |
| + | |
| + | .move-left { |
| + | > .inner-wrap { |
| + | @include translate3d(-($off-canvas-width),0,0); |
| + | |
| + | } |
| + | .exit-off-canvas { @include back-link; } |
| + | } |
| + | .offcanvas-overlap { |
| + | .left-off-canvas-menu, .right-off-canvas-menu { |
| + | -ms-transform: none; |
| + | -webkit-transform: none; |
| + | -moz-transform: none; |
| + | -o-transform: none; |
| + | transform: none; |
| + | z-index: 1003; |
| + | } |
| + | .exit-offcanvas-menu { |
| + | @include back-link; |
| + | z-index: 1002; |
| + | } |
| + | } |
| + | |
| + | // Older browsers |
| + | .no-csstransforms { |
| + | .left-off-canvas-menu { left: -($off-canvas-width); } |
| + | .right-off-canvas-menu { right: -($off-canvas-width); } |
| + | |
| + | .move-left > .inner-wrap { right: $off-canvas-width; } |
| + | .move-right > .inner-wrap { left: $off-canvas-width; } |
| + | } |
| + | |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_orbit.scss
+423
-0
| @@ | @@ -0,0 +1,423 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // @variables |
| + | // |
| + | $include-html-orbit-classes: $include-html-classes !default; |
| + | |
| + | // We use these to control the caption styles |
| + | $orbit-container-bg: none !default; |
| + | $orbit-caption-bg: rgba(51,51,51, 0.8) !default; |
| + | $orbit-caption-font-color: #fff !default; |
| + | $orbit-caption-font-size: rem-calc(14) !default; |
| + | $orbit-caption-position: "bottom" !default; // Supported values: "bottom", "under" |
| + | $orbit-caption-padding: rem-calc(10 14) !default; |
| + | $orbit-caption-height: auto !default; |
| + | |
| + | // We use these to control the left/right nav styles |
| + | $orbit-nav-bg: transparent !default; |
| + | $orbit-nav-bg-hover: rgba(0,0,0,0.3) !default; |
| + | $orbit-nav-arrow-color: #fff !default; |
| + | $orbit-nav-arrow-color-hover: #fff !default; |
| + | |
| + | // We use these to control the timer styles |
| + | $orbit-timer-bg: rgba(255,255,255,0.3) !default; |
| + | $orbit-timer-show-progress-bar: true !default; |
| + | |
| + | // We use these to control the bullet nav styles |
| + | $orbit-bullet-nav-color: #ccc !default; |
| + | $orbit-bullet-nav-color-active: #999 !default; |
| + | $orbit-bullet-radius: rem-calc(9) !default; |
| + | |
| + | // We use these to controls the style of slide numbers |
| + | $orbit-slide-number-bg: rgba(0,0,0,0) !default; |
| + | $orbit-slide-number-font-color: #fff !default; |
| + | $orbit-slide-number-padding: rem-calc(5) !default; |
| + | |
| + | // We use these to controls the css animation |
| + | $orbit-animation-speed: 500ms !default; |
| + | $orbit-animation-ease: ease-in-out !default; |
| + | |
| + | // Graceful Loading Wrapper and preloader |
| + | $wrapper-class: "slideshow-wrapper" !default; |
| + | $preloader-class: "preloader" !default; |
| + | |
| + | // Hide controls on small |
| + | $orbit-nav-hide-for-small: true !default; |
| + | $orbit-bullet-hide-for-small: true !default; |
| + | $orbit-timer-hide-for-small: true !default; |
| + | |
| + | // CSS Transform |
| + | // This function is needed in order to put in all of the browser prefixes. |
| + | // The normal tranform attribute still does not work properly across all browsers. |
| + | // In order to receive the transitionEnd events then you will still need to use the vendor prefixes |
| + | @mixin translate3d($x,$y,$z) { |
| + | -ms-transform:translate($x,$y); |
| + | |
| + | -webkit-transform: translate3d($x,$y,$z); |
| + | -moz-transform: translate3d($x,$y,$z); |
| + | -o-transform: translate3d($x,$y,$z); |
| + | transform: translate3d($x,$y,$z); |
| + | } |
| + | |
| + | @mixin rotate($d) { |
| + | -webkit-transform: rotate($d); |
| + | -moz-transform: rotate($d); |
| + | -ms-transform: rotate($d); |
| + | -o-transform: rotate($d); |
| + | transform: rotate($d); |
| + | } |
| + | |
| + | @include exports("orbit") { |
| + | @if $include-html-orbit-classes { |
| + | |
| + | @keyframes rotate { |
| + | from { @include rotate(0deg); } |
| + | to { @include rotate(360deg); } |
| + | } |
| + | |
| + | /* Orbit Graceful Loading */ |
| + | .#{$wrapper-class} { |
| + | position: relative; |
| + | |
| + | ul { |
| + | // Prevent bullets showing before .orbit-container is loaded |
| + | list-style-type: none; |
| + | margin: 0; |
| + | |
| + | // Hide all list items |
| + | li, |
| + | li .orbit-caption { display: none; } |
| + | |
| + | // ...except for the first one |
| + | li:first-child { display: block; } |
| + | } |
| + | |
| + | .orbit-container { background-color: transparent; |
| + | |
| + | // Show images when .orbit-container is loaded |
| + | li { display: block; |
| + | |
| + | .orbit-caption { display: block; } |
| + | } |
| + | } |
| + | |
| + | // Orbit preloader |
| + | .#{$preloader-class} { |
| + | display: block; |
| + | width: 40px; |
| + | height: 40px; |
| + | position: absolute; |
| + | top: 50%; |
| + | left: 50%; |
| + | margin-top: -20px; |
| + | margin-left: -20px; |
| + | border: solid 3px; |
| + | border-color: #555 #fff; |
| + | @include radius(1000px); |
| + | animation-name: rotate; |
| + | animation-duration: 1.5s; |
| + | animation-iteration-count: infinite; |
| + | animation-timing-function: linear; |
| + | } |
| + | } |
| + | |
| + | .orbit-container { |
| + | overflow: hidden; |
| + | width: 100%; |
| + | position: relative; |
| + | background: $orbit-container-bg; |
| + | |
| + | .orbit-slides-container { |
| + | list-style: none; |
| + | margin: 0; |
| + | padding: 0; |
| + | position: relative; |
| + | |
| + | // Prevents images (and captions) from disappearing after first rotation on Chrome for Android |
| + | -webkit-transform: translateZ(0); |
| + | |
| + | img { display: block; max-width: 100%; } |
| + | |
| + | &.fade > li { |
| + | opacity: 0; |
| + | transition: opacity $orbit-animation-speed $orbit-animation-ease; |
| + | @include translate3d(0,0,0); |
| + | &.animate-in { |
| + | opacity: 1; |
| + | z-index: 20; |
| + | transition: opacity $orbit-animation-speed $orbit-animation-ease; |
| + | } |
| + | &.animate-out { |
| + | z-index: 10; |
| + | transition: opacity $orbit-animation-speed $orbit-animation-ease; |
| + | } |
| + | } |
| + | |
| + | &.swipe-next > li { |
| + | @include translate3d(100%,0,0); |
| + | &.animate-in { |
| + | @include translate3d(0,0,0); |
| + | transition-duration:$orbit-animation-speed; |
| + | } |
| + | &.animate-out { |
| + | @include translate3d(-100%,0,0); |
| + | transition-duration:$orbit-animation-speed; |
| + | } |
| + | } |
| + | |
| + | &.swipe-prev > li { |
| + | @include translate3d(-100%,0,0); |
| + | &.animate-in { |
| + | @include translate3d(0,0,0); |
| + | transition-duration:$orbit-animation-speed; |
| + | } |
| + | &.animate-out { |
| + | @include translate3d(100%,0,0); |
| + | transition-duration:$orbit-animation-speed; |
| + | } |
| + | } |
| + | |
| + | > li { |
| + | position: absolute; |
| + | top: 0; |
| + | left: 0; |
| + | width: 100%; |
| + | @include translate3d(100%,0,0); |
| + | |
| + | > a { display: block; } |
| + | |
| + | &.active { |
| + | opacity: 1; |
| + | // "relative" positioning is required for variable height of children. |
| + | position:relative; |
| + | top: 0; |
| + | left: 0; |
| + | @include translate3d(0,0,0); |
| + | } |
| + | |
| + | .orbit-caption { |
| + | @if $orbit-caption-position == "bottom" { |
| + | position: absolute; |
| + | bottom: 0; |
| + | } @else if $orbit-caption-position == "under" { |
| + | position: relative; |
| + | } |
| + | |
| + | background-color: $orbit-caption-bg; |
| + | color: $orbit-caption-font-color; |
| + | width: 100%; |
| + | padding: $orbit-caption-padding; |
| + | font-size: $orbit-caption-font-size; |
| + | } |
| + | } |
| + | } |
| + | |
| + | .orbit-slide-number { |
| + | position: absolute; |
| + | top: 10px; |
| + | #{$default-float}: 10px; |
| + | font-size: 12px; |
| + | span { font-weight: $font-weight-bold; padding: $orbit-slide-number-padding;} |
| + | color: $orbit-slide-number-font-color; |
| + | background: $orbit-slide-number-bg; |
| + | z-index: 10; |
| + | } |
| + | |
| + | .orbit-timer { |
| + | position: absolute; |
| + | top: 12px; |
| + | #{$opposite-direction}: 10px; |
| + | height: 6px; |
| + | width: 100px; |
| + | z-index: 10; |
| + | .orbit-progress { |
| + | @if $orbit-timer-show-progress-bar { |
| + | height: 3px; |
| + | background-color: $orbit-timer-bg; |
| + | display: block; |
| + | width: 0%; |
| + | position: relative; |
| + | right: 20px; |
| + | top: 5px; |
| + | } @else { |
| + | display:none; // This is used by the Javascript to not create a handler. |
| + | } |
| + | } |
| + | |
| + | // Play button |
| + | & > span { |
| + | display: none; |
| + | position: absolute; |
| + | top: 0px; |
| + | #{$opposite-direction}: 0; |
| + | width: 11px; |
| + | height: 14px; |
| + | border: solid 4px #fff; |
| + | border-top: none; |
| + | border-bottom: none; |
| + | } |
| + | |
| + | // Pause button |
| + | &.paused { |
| + | & > span { |
| + | #{$opposite-direction}: -4px; |
| + | top: 0px; |
| + | width: 11px; |
| + | height: 14px; |
| + | border: inset 8px; |
| + | border-left-style: solid; |
| + | @include rotate(180deg); |
| + | border-color: transparent #fff transparent transparent; |
| + | &.dark { |
| + | border-color: transparent #333 transparent transparent; |
| + | } |
| + | } |
| + | } |
| + | } |
| + | |
| + | |
| + | |
| + | &:hover .orbit-timer > span { display: block; } |
| + | |
| + | // Let's get those controls to be right in the center on each side |
| + | .orbit-prev, |
| + | .orbit-next { |
| + | position: absolute; |
| + | top: 45%; |
| + | margin-top: -25px; |
| + | width: 36px; |
| + | height: 60px; |
| + | line-height: 50px; |
| + | color: white; |
| + | background-color: $orbit-nav-bg; |
| + | text-indent: -9999px !important; |
| + | z-index: 10; |
| + | |
| + | &:hover { |
| + | background-color: $orbit-nav-bg-hover; |
| + | } |
| + | |
| + | & > span { |
| + | position: absolute; |
| + | top: 50%; |
| + | margin-top: -10px; |
| + | display: block; |
| + | width: 0; |
| + | height: 0; |
| + | border: inset 10px; |
| + | } |
| + | } |
| + | .orbit-prev { #{$default-float}: 0; |
| + | & > span { |
| + | border-#{$opposite-direction}-style: solid; |
| + | border-color: transparent; |
| + | border-#{$opposite-direction}-color: $orbit-nav-arrow-color; |
| + | } |
| + | &:hover > span { |
| + | border-#{$opposite-direction}-color: $orbit-nav-arrow-color-hover; |
| + | } |
| + | } |
| + | .orbit-next { #{$opposite-direction}: 0; |
| + | & > span { |
| + | border-color: transparent; |
| + | border-#{$default-float}-style: solid; |
| + | border-#{$default-float}-color: $orbit-nav-arrow-color; |
| + | #{$default-float}: 50%; |
| + | margin-#{$default-float}: -4px; |
| + | } |
| + | &:hover > span { |
| + | border-#{$default-float}-color: $orbit-nav-arrow-color-hover; |
| + | } |
| + | } |
| + | |
| + | .orbit-bullets-container { text-align: center; } |
| + | .orbit-bullets { |
| + | margin: 0 auto 30px auto; |
| + | overflow: hidden; |
| + | position: relative; |
| + | top: 10px; |
| + | float: none; |
| + | text-align: center; |
| + | display: block; |
| + | |
| + | li { |
| + | display: inline-block; |
| + | width: $orbit-bullet-radius; |
| + | height: $orbit-bullet-radius; |
| + | background: $orbit-bullet-nav-color; |
| + | // float: $default-float; |
| + | float: none; |
| + | margin-#{$opposite-direction}: 6px; |
| + | @include radius(1000px); |
| + | |
| + | &.active { |
| + | background: $orbit-bullet-nav-color-active; |
| + | } |
| + | |
| + | &:last-child { margin-#{$opposite-direction}: 0; } |
| + | } |
| + | } |
| + | } |
| + | |
| + | |
| + | .touch { |
| + | .orbit-container { |
| + | .orbit-prev, |
| + | .orbit-next { display: none; } |
| + | } |
| + | |
| + | .orbit-bullets { display: none; } |
| + | } |
| + | |
| + | |
| + | @media #{$medium-up} { |
| + | |
| + | .touch { |
| + | .orbit-container { |
| + | .orbit-prev, |
| + | .orbit-next { display: inherit; } |
| + | } |
| + | |
| + | .orbit-bullets { display: block; } |
| + | } |
| + | |
| + | } |
| + | |
| + | @media #{$small-only} { |
| + | .orbit-stack-on-small { |
| + | |
| + | .orbit-slides-container {height: auto !important;} |
| + | .orbit-slides-container > * { |
| + | position: relative !important; |
| + | margin-left: 0% !important; |
| + | opacity: 1 !important; |
| + | -webkit-transform: none !important; |
| + | -moz-transform: none !important; |
| + | -ms-transform: none !important; |
| + | -o-transform: none !important; |
| + | transform: none !important; |
| + | transition: none !important; |
| + | } |
| + | |
| + | @if $orbit-timer-hide-for-small { |
| + | .orbit-timer{display: none;} |
| + | } |
| + | @if $orbit-nav-hide-for-small { |
| + | .orbit-next,.orbit-prev{display: none;} |
| + | } |
| + | @if $orbit-bullet-hide-for-small { |
| + | .orbit-bullets{display: none;} |
| + | } |
| + | |
| + | .orbit-slide-number { |
| + | display: none; |
| + | } |
| + | } |
| + | } |
| + | |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_pagination.scss
+150
-0
| @@ | @@ -0,0 +1,150 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-pagination-classes: $include-html-classes !default; |
| + | |
| + | // We use these to control the pagination container |
| + | $pagination-height: rem-calc(24) !default; |
| + | $pagination-margin: rem-calc(-5) !default; |
| + | |
| + | // We use these to set the list-item properties |
| + | $pagination-li-float: $default-float !default; |
| + | $pagination-li-height: rem-calc(24) !default; |
| + | $pagination-li-font-color: #222 !default; |
| + | $pagination-li-font-size: rem-calc(14) !default; |
| + | $pagination-li-margin: rem-calc(5) !default; |
| + | |
| + | // We use these for the pagination anchor links |
| + | $pagination-link-pad: rem-calc(1 10 1) !default; |
| + | $pagination-link-font-color: #999 !default; |
| + | $pagination-link-active-bg: scale-color(#fff, $lightness: -10%) !default; |
| + | |
| + | // We use these for disabled anchor links |
| + | $pagination-link-unavailable-cursor: default !default; |
| + | $pagination-link-unavailable-font-color: #999 !default; |
| + | $pagination-link-unavailable-bg-active: transparent !default; |
| + | |
| + | // We use these for currently selected anchor links |
| + | $pagination-link-current-background: $primary-color !default; |
| + | $pagination-link-current-font-color: #fff !default; |
| + | $pagination-link-current-font-weight: $font-weight-bold !default; |
| + | $pagination-link-current-cursor: default !default; |
| + | $pagination-link-current-active-bg: $primary-color !default; |
| + | |
| + | // @mixins |
| + | // |
| + | // Style the pagination container. Currently only used when centering elements. |
| + | // $center - Default: false, Options: true |
| + | @mixin pagination-container($center:false) { |
| + | @if $center { text-align: center; } |
| + | } |
| + | |
| + | // @mixins |
| + | // Style unavailable list items |
| + | @mixin pagination-unavailable-item { |
| + | a { |
| + | cursor: $pagination-link-unavailable-cursor; |
| + | color: $pagination-link-unavailable-font-color; |
| + | } |
| + | &:hover a, |
| + | & a:focus { background: $pagination-link-unavailable-bg-active; } |
| + | } |
| + | // @mixins |
| + | // Style the current list item. Do not assume that the current item has |
| + | // an anchor <a> element. |
| + | // $has-anchor - Default: true, Options: false |
| + | @mixin pagination-current-item($has-anchor: true) { |
| + | @if $has-anchor { |
| + | a { |
| + | background: $pagination-link-current-background; |
| + | color: $pagination-link-current-font-color; |
| + | font-weight: $pagination-link-current-font-weight; |
| + | cursor: $pagination-link-current-cursor; |
| + | |
| + | &:hover, |
| + | &:focus { background: $pagination-link-current-active-bg; } |
| + | } |
| + | } @else { |
| + | height: auto; |
| + | padding: $pagination-link-pad; |
| + | background: $pagination-link-current-background; |
| + | color: $pagination-link-current-font-color; |
| + | font-weight: $pagination-link-current-font-weight; |
| + | cursor: $pagination-link-current-cursor; |
| + | @include radius; |
| + | |
| + | &:hover, |
| + | &:focus { background: $pagination-link-current-active-bg; } |
| + | } |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this mixin to set the properties for the creating Foundation pagination |
| + | // $center - Left or center align the li elements. Default: false |
| + | // $base-style - Sets base styles for pagination. Default: true, Options: false |
| + | // $use-default-classes - Makes unavailable & current classes available for use. Default: true |
| + | @mixin pagination($center:false, $base-style:true, $use-default-classes:true) { |
| + | |
| + | @if $base-style { |
| + | display: block; |
| + | min-height: $pagination-height; |
| + | margin-#{$default-float}: $pagination-margin; |
| + | |
| + | li { |
| + | height: $pagination-li-height; |
| + | color: $pagination-li-font-color; |
| + | font-size: $pagination-li-font-size; |
| + | margin-#{$default-float}: $pagination-li-margin; |
| + | |
| + | a { |
| + | display: block; |
| + | padding: $pagination-link-pad; |
| + | color: $pagination-link-font-color; |
| + | @include radius; |
| + | } |
| + | |
| + | &:hover a, |
| + | a:focus { background: $pagination-link-active-bg; } |
| + | |
| + | @if $use-default-classes { |
| + | &.unavailable { @include pagination-unavailable-item(); } |
| + | &.current { @include pagination-current-item(); } |
| + | } |
| + | } |
| + | } |
| + | |
| + | // Left or center align the li elements |
| + | li { |
| + | @if $center { |
| + | float: none; |
| + | display: inline-block; |
| + | } @else { |
| + | float: $pagination-li-float; |
| + | display: block; |
| + | } |
| + | } |
| + | } |
| + | |
| + | @include exports("pagination") { |
| + | @if $include-pagination-classes { |
| + | ul.pagination { |
| + | @include pagination; |
| + | } |
| + | |
| + | /* Pagination centred wrapper */ |
| + | .pagination-centered { |
| + | @include pagination-container(true); |
| + | |
| + | ul.pagination { |
| + | @include pagination(true, false); |
| + | } |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_panels.scss
+90
-0
| @@ | @@ -0,0 +1,90 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-panel-classes: $include-html-classes !default; |
| + | |
| + | // We use these to control the background and border styles |
| + | $panel-bg: scale-color(#fff, $lightness: -5%) !default; |
| + | $panel-border-style: solid !default; |
| + | $panel-border-size: 1px !default; |
| + | |
| + | // We use this % to control how much we darken things on hover |
| + | $panel-function-factor: -11% !default; |
| + | $panel-border-color: scale-color($panel-bg, $lightness: $panel-function-factor) !default; |
| + | |
| + | // We use these to set default inner padding and bottom margin |
| + | $panel-margin-bottom: rem-calc(20) !default; |
| + | $panel-padding: rem-calc(20) !default; |
| + | |
| + | // We use these to set default font colors |
| + | $panel-font-color: #333 !default; |
| + | $panel-font-color-alt: #fff !default; |
| + | |
| + | $panel-header-adjust: true !default; |
| + | $callout-panel-link-color: $primary-color !default; |
| + | // |
| + | // @mixins |
| + | // |
| + | // We use this mixin to create panels. |
| + | // $bg - Sets the panel background color. Default: $panel-pg || scale-color(#fff, $lightness: -5%) !default |
| + | // $padding - Sets the panel padding amount. Default: $panel-padding || rem-calc(20) |
| + | // $adjust - Sets the font color based on the darkness of the bg & resets header line-heights for panels. Default: $panel-header-adjust || true |
| + | @mixin panel($bg:$panel-bg, $padding:$panel-padding, $adjust:$panel-header-adjust) { |
| + | |
| + | @if $bg { |
| + | $bg-lightness: lightness($bg); |
| + | |
| + | border-style: $panel-border-style; |
| + | border-width: $panel-border-size; |
| + | border-color: scale-color($bg, $lightness: $panel-function-factor); |
| + | margin-bottom: $panel-margin-bottom; |
| + | padding: $padding; |
| + | |
| + | background: $bg; |
| + | |
| + | // Respect the padding, fool. |
| + | &>:first-child { margin-top: 0; } |
| + | &>:last-child { margin-bottom: 0; } |
| + | |
| + | @if $adjust { |
| + | // We set the font color based on the darkness of the bg. |
| + | @if $bg-lightness >= 50% and $bg == blue { h1,h2,h3,h4,h5,h6,p,li { color: $panel-font-color-alt; } } |
| + | @else if $bg-lightness >= 50% { h1,h2,h3,h4,h5,h6,p,li { color: $panel-font-color; } } |
| + | @else { h1,h2,h3,h4,h5,h6,p,li { color: $panel-font-color-alt; } } |
| + | |
| + | // reset header line-heights for panels |
| + | h1,h2,h3,h4,h5,h6 { |
| + | line-height: 1; margin-bottom: rem-calc(20) / 2; |
| + | &.subheader { line-height: 1.4; } |
| + | } |
| + | } |
| + | } |
| + | } |
| + | |
| + | @include exports("panel") { |
| + | @if $include-html-panel-classes { |
| + | |
| + | /* Panels */ |
| + | .panel { @include panel; |
| + | |
| + | &.callout { |
| + | @include panel(scale-color($primary-color, $lightness: 94%)); |
| + | a:not(.button) { |
| + | color: $callout-panel-link-color; |
| + | } |
| + | } |
| + | |
| + | &.radius { |
| + | @include radius; |
| + | } |
| + | |
| + | } |
| + | |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_pricing-tables.scss
+150
-0
| @@ | @@ -0,0 +1,150 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-pricing-classes: $include-html-classes !default; |
| + | |
| + | // We use this to control the border color |
| + | $price-table-border: solid 1px #ddd !default; |
| + | |
| + | // We use this to control the bottom margin of the pricing table |
| + | $price-table-margin-bottom: rem-calc(20) !default; |
| + | |
| + | // We use these to control the title styles |
| + | $price-title-bg: #333 !default; |
| + | $price-title-padding: rem-calc(15 20) !default; |
| + | $price-title-align: center !default; |
| + | $price-title-color: #eee !default; |
| + | $price-title-weight: $font-weight-normal !default; |
| + | $price-title-size: rem-calc(16) !default; |
| + | $price-title-font-family: $body-font-family !default; |
| + | |
| + | // We use these to control the price styles |
| + | $price-money-bg: #f6f6f6 !default; |
| + | $price-money-padding: rem-calc(15 20) !default; |
| + | $price-money-align: center !default; |
| + | $price-money-color: #333 !default; |
| + | $price-money-weight: $font-weight-normal !default; |
| + | $price-money-size: rem-calc(32) !default; |
| + | $price-money-font-family: $body-font-family !default; |
| + | |
| + | |
| + | // We use these to control the description styles |
| + | $price-bg: #fff !default; |
| + | $price-desc-color: #777 !default; |
| + | $price-desc-padding: rem-calc(15) !default; |
| + | $price-desc-align: center !default; |
| + | $price-desc-font-size: rem-calc(12) !default; |
| + | $price-desc-weight: $font-weight-normal !default; |
| + | $price-desc-line-height: 1.4 !default; |
| + | $price-desc-bottom-border: dotted 1px #ddd !default; |
| + | |
| + | // We use these to control the list item styles |
| + | $price-item-color: #333 !default; |
| + | $price-item-padding: rem-calc(15) !default; |
| + | $price-item-align: center !default; |
| + | $price-item-font-size: rem-calc(14) !default; |
| + | $price-item-weight: $font-weight-normal !default; |
| + | $price-item-bottom-border: dotted 1px #ddd !default; |
| + | |
| + | // We use these to control the CTA area styles |
| + | $price-cta-bg: #fff !default; |
| + | $price-cta-align: center !default; |
| + | $price-cta-padding: rem-calc(20 20 0) !default; |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this to create the container element for the pricing tables |
| + | @mixin pricing-table-container { |
| + | border: $price-table-border; |
| + | margin-#{$default-float}: 0; |
| + | margin-bottom: $price-table-margin-bottom; |
| + | |
| + | & * { |
| + | list-style: none; |
| + | line-height: 1; |
| + | } |
| + | } |
| + | // @mixins |
| + | // |
| + | // We use this mixin to create the pricing table title styles |
| + | @mixin pricing-table-title { |
| + | background-color: $price-title-bg; |
| + | padding: $price-title-padding; |
| + | text-align: $price-title-align; |
| + | color: $price-title-color; |
| + | font-weight: $price-title-weight; |
| + | font-size: $price-title-size; |
| + | font-family: $price-title-font-family; |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this mixin to control the pricing table price styles |
| + | @mixin pricing-table-price { |
| + | background-color: $price-money-bg; |
| + | padding: $price-money-padding; |
| + | text-align: $price-money-align; |
| + | color: $price-money-color; |
| + | font-weight: $price-money-weight; |
| + | font-size: $price-money-size; |
| + | font-family: $price-money-font-family; |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this mixin to create the description styles for the pricing table |
| + | @mixin pricing-table-description { |
| + | background-color: $price-bg; |
| + | padding: $price-desc-padding; |
| + | text-align: $price-desc-align; |
| + | color: $price-desc-color; |
| + | font-size: $price-desc-font-size; |
| + | font-weight: $price-desc-weight; |
| + | line-height: $price-desc-line-height; |
| + | border-bottom: $price-desc-bottom-border; |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this mixin to style the bullet items in the pricing table |
| + | @mixin pricing-table-bullet { |
| + | background-color: $price-bg; |
| + | padding: $price-item-padding; |
| + | text-align: $price-item-align; |
| + | color: $price-item-color; |
| + | font-size: $price-item-font-size; |
| + | font-weight: $price-item-weight; |
| + | border-bottom: $price-item-bottom-border; |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this mixin to style the CTA area of the pricing tables |
| + | @mixin pricing-table-cta { |
| + | background-color: $price-cta-bg; |
| + | text-align: $price-cta-align; |
| + | padding: $price-cta-padding; |
| + | } |
| + | |
| + | @include exports("pricing-table") { |
| + | @if $include-html-pricing-classes { |
| + | |
| + | /* Pricing Tables */ |
| + | .pricing-table { |
| + | @include pricing-table-container; |
| + | |
| + | .title { @include pricing-table-title; } |
| + | .price { @include pricing-table-price; } |
| + | .description { @include pricing-table-description; } |
| + | .bullet-item { @include pricing-table-bullet; } |
| + | .cta-button { @include pricing-table-cta; } |
| + | } |
| + | |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_progress-bars.scss
+79
-0
| @@ | @@ -0,0 +1,79 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | $include-html-media-classes: $include-html-classes !default; |
| + | |
| + | // We use this to set the progress bar height |
| + | $progress-bar-height: rem-calc(25) !default; |
| + | $progress-bar-color: #f6f6f6 !default; |
| + | |
| + | // We use these to control the border styles |
| + | $progress-bar-border-color: scale-color(#fff, $lightness: 20%) !default; |
| + | $progress-bar-border-size: 1px !default; |
| + | $progress-bar-border-style: solid !default; |
| + | $progress-bar-border-radius: $global-radius !default; |
| + | |
| + | // We use these to control the margin & padding |
| + | $progress-bar-pad: rem-calc(2) !default; |
| + | $progress-bar-margin-bottom: rem-calc(10) !default; |
| + | |
| + | // We use these to set the meter colors |
| + | $progress-meter-color: $primary-color !default; |
| + | $progress-meter-secondary-color: $secondary-color !default; |
| + | $progress-meter-success-color: $success-color !default; |
| + | $progress-meter-alert-color: $alert-color !default; |
| + | |
| + | // @mixins |
| + | // |
| + | // We use this to set up the progress bar container |
| + | @mixin progress-container { |
| + | background-color: $progress-bar-color; |
| + | height: $progress-bar-height; |
| + | border: $progress-bar-border-size $progress-bar-border-style $progress-bar-border-color; |
| + | padding: $progress-bar-pad; |
| + | margin-bottom: $progress-bar-margin-bottom; |
| + | } |
| + | |
| + | // @mixins |
| + | // |
| + | // $bg - Default: $progress-meter-color || $primary-color |
| + | @mixin progress-meter($bg:$progress-meter-color) { |
| + | background: $bg; |
| + | height: 100%; |
| + | display: block; |
| + | } |
| + | |
| + | |
| + | @include exports("progress-bar") { |
| + | @if $include-html-media-classes { |
| + | |
| + | /* Progress Bar */ |
| + | .progress { |
| + | @include progress-container; |
| + | |
| + | // Meter |
| + | .meter { |
| + | @include progress-meter; |
| + | } |
| + | &.secondary .meter { @include progress-meter($bg:$progress-meter-secondary-color); } |
| + | &.success .meter { @include progress-meter($bg:$progress-meter-success-color); } |
| + | &.alert .meter { @include progress-meter($bg:$progress-meter-alert-color); } |
| + | |
| + | &.radius { @include radius($progress-bar-border-radius); |
| + | .meter { @include radius($progress-bar-border-radius - 1); } |
| + | } |
| + | |
| + | &.round { @include radius(1000px); |
| + | .meter { @include radius(999px); } |
| + | } |
| + | |
| + | } |
| + | |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_range-slider.scss
+148
-0
| @@ | @@ -0,0 +1,148 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @name _range-slider.scss |
| + | // @dependencies _global.scss |
| + | // |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | |
| + | $include-html-range-slider-classes: $include-html-classes !default; |
| + | |
| + | // These variabels define the slider bar styles |
| + | $range-slider-bar-width: 100% !default; |
| + | $range-slider-bar-height: rem-calc(16) !default; |
| + | |
| + | $range-slider-bar-border-width: 1px !default; |
| + | $range-slider-bar-border-style: solid !default; |
| + | $range-slider-bar-border-color: #ddd !default; |
| + | $range-slider-radius: $global-radius !default; |
| + | $range-slider-round: $global-rounded !default; |
| + | $range-slider-bar-bg-color: #fafafa !default; |
| + | |
| + | // Vertical bar styles |
| + | $range-slider-vertical-bar-width: rem-calc(16) !default; |
| + | $range-slider-vertical-bar-height: rem-calc(200) !default; |
| + | |
| + | // These variabels define the slider handle styles |
| + | $range-slider-handle-width: rem-calc(32) !default; |
| + | $range-slider-handle-height: rem-calc(22) !default; |
| + | $range-slider-handle-position-top: rem-calc(-5) !default; |
| + | $range-slider-handle-bg-color: $primary-color !default; |
| + | $range-slider-handle-border-width: 1px !default; |
| + | $range-slider-handle-border-style: solid !default; |
| + | $range-slider-handle-border-color: none !default; |
| + | $range-slider-handle-radius: $global-radius !default; |
| + | $range-slider-handle-round: $global-rounded !default; |
| + | $range-slider-handle-bg-hover-color: scale-color($primary-color, $lightness: -12%) !default; |
| + | $range-slider-handle-cursor: pointer !default; |
| + | |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | |
| + | @mixin range-slider-bar-base($vertical: false) { |
| + | display: block; |
| + | position: relative; |
| + | width: $range-slider-bar-width; |
| + | height: $range-slider-bar-height; |
| + | border: $range-slider-bar-border-width $range-slider-bar-border-style $range-slider-bar-border-color; |
| + | margin: rem-calc(20 0); |
| + | -ms-touch-action: none; |
| + | touch-action: none; |
| + | @if $vertical == true { |
| + | display: inline-block; |
| + | width: $range-slider-vertical-bar-width; |
| + | height: $range-slider-vertical-bar-height; |
| + | } |
| + | } |
| + | @mixin range-slider-bar-style( |
| + | $bg: true, |
| + | $radius: false, |
| + | $round: false) { |
| + | @if $bg == true { background: $range-slider-bar-bg-color; } |
| + | @if $radius == true { @include radius($range-slider-radius); } |
| + | @if $round == true { @include radius($range-slider-round); } |
| + | } |
| + | |
| + | @mixin range-slider-bar( |
| + | $bg: $range-slider-bar-bg-color, |
| + | $radius:false) { |
| + | @include range-slider-bar-base; |
| + | @include range-slider-bar-style; |
| + | } |
| + | |
| + | @mixin range-slider-handle-base() { |
| + | display: inline-block; |
| + | position: absolute; |
| + | z-index: 1; |
| + | top: $range-slider-handle-position-top; |
| + | width: $range-slider-handle-width; |
| + | height: $range-slider-handle-height; |
| + | border: $range-slider-handle-border-width $range-slider-handle-border-style $range-slider-handle-border-color; |
| + | cursor: $range-slider-handle-cursor; |
| + | } |
| + | @mixin range-slider-handle-style( |
| + | $bg: true, |
| + | $radius: false, |
| + | $round: false) { |
| + | @if $bg == true { background: $range-slider-handle-bg-color; } |
| + | @if $radius == true { @include radius($range-slider-radius); } |
| + | @if $round == true { @include radius($range-slider-round); } |
| + | &:hover { |
| + | background: $range-slider-handle-bg-hover-color; |
| + | } |
| + | } |
| + | @mixin range-slider-handle() { |
| + | @include range-slider-handle-base; |
| + | @include range-slider-handle-style; |
| + | } |
| + | |
| + | // CSS Generation |
| + | @include exports("range-slider-bar") { |
| + | @if $include-html-range-slider-classes { |
| + | .range-slider { |
| + | @include range-slider-bar-base; |
| + | @include range-slider-bar-style($bg:true, $radius:false); |
| + | &.vertical-range { |
| + | @include range-slider-bar-base($vertical: true); |
| + | .range-slider-handle { |
| + | margin-top: 0; |
| + | margin-#{$default-float}: -($range-slider-handle-width / 4); |
| + | position: absolute; |
| + | bottom: -($range-slider-vertical-bar-height - $range-slider-handle-width); |
| + | } |
| + | .range-slider-active-segment { |
| + | width: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2)); |
| + | height: auto; |
| + | bottom: 0; |
| + | } |
| + | } |
| + | &.radius { |
| + | @include range-slider-bar-style($radius:true); |
| + | .range-slider-handle { @include range-slider-handle-style($radius: true); } |
| + | } |
| + | &.round { |
| + | @include range-slider-bar-style($round:true); |
| + | .range-slider-handle { @include range-slider-handle-style($round: true); } |
| + | } |
| + | } |
| + | .range-slider-active-segment { |
| + | display: inline-block; |
| + | position: absolute; |
| + | height: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2)); |
| + | background: scale-color($secondary-color, $lightness: -1%); |
| + | } |
| + | .range-slider-handle { |
| + | @include range-slider-handle-base; |
| + | @include range-slider-handle-style($bg:true, $radius: false); |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_reveal-new.scss
+0
-0
generators/foundation5/public/stylesheets/foundation/components/_reveal.scss
+216
-0
| @@ | @@ -0,0 +1,216 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @name _reveal.scss |
| + | // @dependencies _global.scss |
| + | // |
| + | |
| + | $include-html-reveal-classes: $include-html-classes !default; |
| + | |
| + | // We use these to control the style of the reveal overlay. |
| + | $reveal-overlay-bg: rgba(#000, .45) !default; |
| + | $reveal-overlay-bg-old: #000 !default; |
| + | |
| + | // We use these to control the style of the modal itself. |
| + | $reveal-modal-bg: #fff !default; |
| + | $reveal-position-top: rem-calc(100) !default; |
| + | $reveal-default-width: 80% !default; |
| + | $reveal-modal-padding: rem-calc(20) !default; |
| + | $reveal-box-shadow: 0 0 10px rgba(#000,.4) !default; |
| + | |
| + | // We use these to style the reveal close button |
| + | $reveal-close-font-size: rem-calc(40) !default; |
| + | $reveal-close-top: rem-calc(8) !default; |
| + | $reveal-close-side: rem-calc(11) !default; |
| + | $reveal-close-color: #aaa !default; |
| + | $reveal-close-weight: $font-weight-bold !default; |
| + | |
| + | // We use this to set the default radius used throughout the core. |
| + | $reveal-radius: $global-radius !default; |
| + | $reveal-round: $global-rounded !default; |
| + | |
| + | // We use these to control the modal border |
| + | $reveal-border-style: solid !default; |
| + | $reveal-border-width: 1px !default; |
| + | $reveal-border-color: #666 !default; |
| + | |
| + | $reveal-modal-class: "reveal-modal" !default; |
| + | $close-reveal-modal-class: "close-reveal-modal" !default; |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | |
| + | // We use this to create the reveal background overlay styles |
| + | @mixin reveal-bg { |
| + | position: fixed; |
| + | height: 100%; |
| + | width: 100%; |
| + | background: $reveal-overlay-bg-old; |
| + | background: $reveal-overlay-bg; |
| + | z-index: 99; |
| + | display: none; |
| + | top: 0; |
| + | #{$default-float}: 0; |
| + | } |
| + | |
| + | // We use this mixin to create the structure of a reveal modal |
| + | // |
| + | // $base-style - Provides reveal base styles, can be set to false to override. Default: true, Options: false |
| + | // $width - Sets reveal width Default: $reveal-default-width || 80% |
| + | // |
| + | @mixin reveal-modal-base( |
| + | $base-style:true, |
| + | $width:$reveal-default-width) { |
| + | @if $base-style { |
| + | visibility: hidden; |
| + | display: none; |
| + | position: absolute; |
| + | z-index: 100; |
| + | width: 100vw; |
| + | top:0; |
| + | #{$default-float}: 0; |
| + | @media #{$small-only} { |
| + | min-height:100vh; |
| + | } |
| + | @media #{$medium-up} { |
| + | #{$default-float}: 50%; |
| + | } |
| + | |
| + | // Make sure rows don't have a min-width on them |
| + | .column, |
| + | .columns { min-width: 0; } |
| + | |
| + | // Get rid of margin from first and last element inside modal |
| + | & > :first-child { margin-top: 0; } |
| + | & > :last-child { margin-bottom: 0; } |
| + | } |
| + | |
| + | @if $width { |
| + | @media #{$medium-up} { |
| + | margin-#{$default-float}: -($width / 2); |
| + | width: $width; |
| + | } |
| + | } |
| + | } |
| + | |
| + | // We use this to style the reveal modal defaults |
| + | // |
| + | // $bg - Sets background color of reveal modal. Default: $reveal-modal-bg || #fff |
| + | // $padding - Padding to apply to reveal modal. Default: $reveal-modal-padding. |
| + | // $border - Choose whether reveal uses a border. Default: true, Options: false |
| + | // $border-style - Set reveal border style. Default: $reveal-border-style || solid |
| + | // $border-width - Width of border (i.e. 1px). Default: $reveal-border-width. |
| + | // $border-color - Color of border. Default: $reveal-border-color. |
| + | // $box-shadow - Choose whether or not to include the default box-shadow. Default: true, Options: false |
| + | // $radius - If true, set to modal radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default: false |
| + | // $top-offset - Default: $reveal-position-top || 50px |
| + | @mixin reveal-modal-style( |
| + | $bg:false, |
| + | $padding:false, |
| + | $border:false, |
| + | $border-style:$reveal-border-style, |
| + | $border-width:$reveal-border-width, |
| + | $border-color:$reveal-border-color, |
| + | $box-shadow:false, |
| + | $radius:false, |
| + | $top-offset:false) { |
| + | |
| + | @if $bg { background-color: $bg; } |
| + | @if $padding != false { padding: $padding; } |
| + | |
| + | @if $border { border: $border-style $border-width $border-color; } |
| + | |
| + | // We can choose whether or not to include the default box-shadow. |
| + | @if $box-shadow { |
| + | box-shadow: $reveal-box-shadow; |
| + | } |
| + | |
| + | // We can control how much radius is used on the modal |
| + | @if $radius == true { @include radius($reveal-radius); } |
| + | @else if $radius { @include radius($radius); } |
| + | |
| + | @if $top-offset { |
| + | @media #{$medium-up} { |
| + | top: $top-offset; |
| + | } |
| + | } |
| + | } |
| + | |
| + | // We use this to create a close button for the reveal modal |
| + | // |
| + | // $color - Default: $reveal-close-color || #aaa |
| + | @mixin reveal-close($color:$reveal-close-color) { |
| + | font-size: $reveal-close-font-size; |
| + | line-height: 1; |
| + | position: absolute; |
| + | top: $reveal-close-top; |
| + | #{$opposite-direction}: $reveal-close-side; |
| + | color: $color; |
| + | font-weight: $reveal-close-weight; |
| + | cursor: $cursor-pointer-value; |
| + | } |
| + | |
| + | @include exports("reveal") { |
| + | @if $include-html-reveal-classes { |
| + | |
| + | // Reveal Modals |
| + | .reveal-modal-bg { @include reveal-bg; } |
| + | |
| + | dialog, .#{$reveal-modal-class} { |
| + | @include reveal-modal-base; |
| + | @include reveal-modal-style( |
| + | $bg:$reveal-modal-bg, |
| + | $padding:$reveal-modal-padding, |
| + | $border:true, |
| + | $box-shadow:true, |
| + | $radius:false, |
| + | $top-offset:$reveal-position-top); |
| + | |
| + | .#{$close-reveal-modal-class} { @include reveal-close; } |
| + | } |
| + | |
| + | dialog[open] { |
| + | display:block; |
| + | visibility: visible; |
| + | } |
| + | |
| + | @media #{$medium-up} { |
| + | |
| + | dialog, .#{$reveal-modal-class} { |
| + | @include reveal-modal-style($padding:$reveal-modal-padding * 1.5); |
| + | |
| + | &.radius { @include reveal-modal-style($radius:true); } |
| + | &.round { @include reveal-modal-style($radius:$reveal-round); } |
| + | |
| + | &.collapse { @include reveal-modal-style($padding:0); } |
| + | |
| + | &.tiny { @include reveal-modal-base(false, 30%); } |
| + | &.small { @include reveal-modal-base(false, 40%); } |
| + | &.medium { @include reveal-modal-base(false, 60%); } |
| + | &.large { @include reveal-modal-base(false, 70%); } |
| + | &.xlarge { @include reveal-modal-base(false, 95%); } |
| + | } |
| + | |
| + | dialog, .#{$reveal-modal-class} { |
| + | &.full { |
| + | @include reveal-modal-base(false, 100vw); |
| + | top:0; |
| + | left:0; |
| + | height: 100vh; |
| + | min-height:100vh; |
| + | margin-left: 0 !important; |
| + | } |
| + | } |
| + | } |
| + | |
| + | // Reveal Print Styles |
| + | @media print { |
| + | dialog, .#{$reveal-modal-class} {background: #fff !important;} |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_side-nav.scss
+115
-0
| @@ | @@ -0,0 +1,115 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | |
| + | $include-html-nav-classes: $include-html-classes !default; |
| + | |
| + | // We use this to control padding. |
| + | $side-nav-padding: rem-calc(14 0) !default; |
| + | |
| + | // We use these to control list styles. |
| + | $side-nav-list-type: none !default; |
| + | $side-nav-list-position: inside !default; |
| + | $side-nav-list-margin: rem-calc(0 0 7 0) !default; |
| + | |
| + | // We use these to control link styles. |
| + | $side-nav-link-color: $primary-color !default; |
| + | $side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%) !default; |
| + | $side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%) !default; |
| + | $side-nav-link-bg-hover: hsla(0, 0, 0, 0.025) !default; |
| + | $side-nav-link-margin: 0 !default; |
| + | $side-nav-link-padding: rem-calc(7 14) !default; |
| + | $side-nav-font-size: rem-calc(14) !default; |
| + | $side-nav-font-weight: $font-weight-normal !default; |
| + | $side-nav-font-weight-active: $side-nav-font-weight !default; |
| + | $side-nav-font-family: $body-font-family !default; |
| + | $side-nav-font-family-active: $side-nav-font-family !default; |
| + | |
| + | // We use these to control heading styles. |
| + | $side-nav-heading-color: $side-nav-link-color !default; |
| + | $side-nav-heading-font-size: $side-nav-font-size !default; |
| + | $side-nav-heading-font-weight: bold !default; |
| + | $side-nav-heading-text-transform: uppercase !default; |
| + | |
| + | // We use these to control border styles |
| + | $side-nav-divider-size: 1px !default; |
| + | $side-nav-divider-style: solid !default; |
| + | $side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default; |
| + | |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | |
| + | |
| + | // We use this to style the side-nav |
| + | // |
| + | // $divider-color - Border color of divider. Default: $side-nav-divider-color. |
| + | // $font-size - Font size of nav items. Default: $side-nav-font-size. |
| + | // $link-color - Color of navigation links. Default: $side-nav-link-color. |
| + | // $link-color-hover - Color of navigation links when hovered. Default: $side-nav-link-color-hover. |
| + | @mixin side-nav( |
| + | $divider-color:$side-nav-divider-color, |
| + | $font-size:$side-nav-font-size, |
| + | $link-color:$side-nav-link-color, |
| + | $link-color-hover:$side-nav-link-color-hover, |
| + | $link-bg-hover:$side-nav-link-bg-hover) { |
| + | display: block; |
| + | margin: 0; |
| + | padding: $side-nav-padding; |
| + | list-style-type: $side-nav-list-type; |
| + | list-style-position: $side-nav-list-position; |
| + | font-family: $side-nav-font-family; |
| + | |
| + | li { |
| + | margin: $side-nav-list-margin; |
| + | font-size: $font-size; |
| + | |
| + | a:not(.button) { |
| + | display: block; |
| + | color: $link-color; |
| + | margin: $side-nav-link-margin; |
| + | padding: $side-nav-link-padding; |
| + | &:hover, |
| + | &:focus { |
| + | background: $link-bg-hover; |
| + | color: $link-color-hover; |
| + | } |
| + | } |
| + | |
| + | &.active > a:first-child:not(.button) { |
| + | color: $side-nav-link-color-active; |
| + | font-weight: $side-nav-font-weight-active; |
| + | font-family: $side-nav-font-family-active; |
| + | } |
| + | |
| + | &.divider { |
| + | border-top: $side-nav-divider-size $side-nav-divider-style; |
| + | height: 0; |
| + | padding: 0; |
| + | list-style: none; |
| + | border-top-color: $divider-color; |
| + | } |
| + | |
| + | &.heading { |
| + | color: $side-nav-heading-color; |
| + | font: { |
| + | size: $side-nav-heading-font-size; |
| + | weight: $side-nav-heading-font-weight; |
| + | } |
| + | text-transform: $side-nav-heading-text-transform; |
| + | } |
| + | } |
| + | } |
| + | |
| + | @include exports("side-nav") { |
| + | @if $include-html-nav-classes { |
| + | .side-nav { @include side-nav; } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_split-buttons.scss
+191
-0
| @@ | @@ -0,0 +1,191 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | @import "buttons"; |
| + | @import "dropdown-buttons"; |
| + | |
| + | // |
| + | // @name _split-buttons.scss |
| + | // @dependencies _buttons.scss, _global.scss |
| + | // |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | |
| + | $include-html-button-classes: $include-html-classes !default; |
| + | |
| + | // We use these to control different shared styles for Split Buttons |
| + | $split-button-function-factor: 10% !default; |
| + | $split-button-pip-color: #fff !default; |
| + | $split-button-pip-color-alt: #333 !default; |
| + | $split-button-active-bg-tint: rgba(0,0,0,0.1) !default; |
| + | |
| + | // We use these to control tiny split buttons |
| + | $split-button-padding-tny: $button-pip-tny * 10 !default; |
| + | $split-button-span-width-tny: $button-pip-tny * 6 !default; |
| + | $split-button-pip-size-tny: $button-pip-tny !default; |
| + | $split-button-pip-top-tny: $button-pip-tny * 2 !default; |
| + | $split-button-pip-default-float-tny: rem-calc(-6) !default; |
| + | |
| + | // We use these to control small split buttons |
| + | $split-button-padding-sml: $button-pip-sml * 10 !default; |
| + | $split-button-span-width-sml: $button-pip-sml * 6 !default; |
| + | $split-button-pip-size-sml: $button-pip-sml !default; |
| + | $split-button-pip-top-sml: $button-pip-sml * 1.5 !default; |
| + | $split-button-pip-default-float-sml: rem-calc(-6) !default; |
| + | |
| + | // We use these to control medium split buttons |
| + | $split-button-padding-med: $button-pip-med * 9 !default; |
| + | $split-button-span-width-med: $button-pip-med * 5.5 !default; |
| + | $split-button-pip-size-med: $button-pip-med - rem-calc(3) !default; |
| + | $split-button-pip-top-med: $button-pip-med * 1.5 !default; |
| + | $split-button-pip-default-float-med: rem-calc(-6) !default; |
| + | |
| + | // We use these to control large split buttons |
| + | $split-button-padding-lrg: $button-pip-lrg * 8 !default; |
| + | $split-button-span-width-lrg: $button-pip-lrg * 5 !default; |
| + | $split-button-pip-size-lrg: $button-pip-lrg - rem-calc(6) !default; |
| + | $split-button-pip-top-lrg: $button-pip-lrg + rem-calc(5) !default; |
| + | $split-button-pip-default-float-lrg: rem-calc(-6) !default; |
| + | |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | |
| + | // We use this mixin to create split buttons that build upon the button mixins |
| + | // |
| + | // $padding - Type of padding to apply. Default: medium. Options: tiny, small, medium, large. |
| + | // $pip-color - Color of the triangle. Default: $split-button-pip-color. |
| + | // $span-border - Border color of button divider. Default: $primary-color. |
| + | // $base-style - Apply base style to split button. Default: true. |
| + | @mixin split-button( |
| + | $padding:medium, |
| + | $pip-color:$split-button-pip-color, |
| + | $span-border:$primary-color, |
| + | $base-style:true) { |
| + | |
| + | // With this, we can control whether or not the base styles come through. |
| + | @if $base-style { |
| + | position: relative; |
| + | |
| + | // Styling for the split arrow clickable area |
| + | span { |
| + | display: block; |
| + | height: 100%; |
| + | position: absolute; |
| + | #{$opposite-direction}: 0; |
| + | top: 0; |
| + | border-#{$default-float}: solid 1px; |
| + | |
| + | // Building the triangle pip indicator |
| + | &:after { |
| + | position: absolute; |
| + | content: ""; |
| + | width: 0; |
| + | height: 0; |
| + | display: block; |
| + | border-style: inset; |
| + | top: 50%; |
| + | |
| + | #{$default-float}: 50%; |
| + | } |
| + | |
| + | &:active { background-color: $split-button-active-bg-tint; } |
| + | } |
| + | } |
| + | |
| + | // Control the border color for the span area of the split button |
| + | @if $span-border { |
| + | span { |
| + | border-#{$default-float}-color: rgba(255,255,255,0.5); |
| + | } |
| + | } |
| + | |
| + | // Style of the button and clickable area for tiny sizes |
| + | @if $padding == tiny { |
| + | padding-#{$opposite-direction}: $split-button-padding-tny; |
| + | |
| + | span { width: $split-button-span-width-tny; |
| + | &:after { |
| + | border-top-style: solid; |
| + | border-width: $split-button-pip-size-tny; |
| + | top: 48%; |
| + | margin-#{$default-float}: $split-button-pip-default-float-tny; |
| + | } |
| + | } |
| + | } |
| + | |
| + | // Style of the button and clickable area for small sizes |
| + | @else if $padding == small { |
| + | padding-#{$opposite-direction}: $split-button-padding-sml; |
| + | |
| + | span { width: $split-button-span-width-sml; |
| + | &:after { |
| + | border-top-style: solid; |
| + | border-width: $split-button-pip-size-sml; |
| + | top: 48%; |
| + | margin-#{$default-float}: $split-button-pip-default-float-sml; |
| + | } |
| + | } |
| + | } |
| + | |
| + | // Style of the button and clickable area for default (medium) sizes |
| + | @else if $padding == medium { |
| + | padding-#{$opposite-direction}: $split-button-padding-med; |
| + | |
| + | span { width: $split-button-span-width-med; |
| + | &:after { |
| + | border-top-style: solid; |
| + | border-width: $split-button-pip-size-med; |
| + | top: 48%; |
| + | margin-#{$default-float}: $split-button-pip-default-float-med; |
| + | } |
| + | } |
| + | } |
| + | |
| + | // Style of the button and clickable area for large sizes |
| + | @else if $padding == large { |
| + | padding-#{$opposite-direction}: $split-button-padding-lrg; |
| + | |
| + | span { width: $split-button-span-width-lrg; |
| + | &:after { |
| + | border-top-style: solid; |
| + | border-width: $split-button-pip-size-lrg; |
| + | top: 48%; |
| + | margin-#{$default-float}: $split-button-pip-default-float-lrg; |
| + | } |
| + | } |
| + | } |
| + | |
| + | // Control the color of the triangle pip |
| + | @if $pip-color { |
| + | span:after { border-color: $pip-color transparent transparent transparent; } |
| + | } |
| + | } |
| + | |
| + | @include exports("split-button") { |
| + | @if $include-html-button-classes { |
| + | |
| + | .split.button { @include split-button; |
| + | |
| + | &.secondary { @include split-button(false, $split-button-pip-color, $secondary-color, false); } |
| + | &.alert { @include split-button(false, false, $alert-color, false); } |
| + | &.success { @include split-button(false, false, $success-color, false); } |
| + | |
| + | &.tiny { @include split-button(tiny, false, false, false); } |
| + | &.small { @include split-button(small, false, false, false); } |
| + | &.large { @include split-button(large, false, false, false); } |
| + | &.expand { padding-left: 2rem; } |
| + | |
| + | &.secondary { @include split-button(false, $split-button-pip-color-alt, false, false); } |
| + | |
| + | &.radius span { @include side-radius($opposite-direction, $global-radius); } |
| + | &.round span { @include side-radius($opposite-direction, 1000px); } |
| + | } |
| + | |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_sub-nav.scss
+125
-0
| @@ | @@ -0,0 +1,125 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @name _sub-nav.scss |
| + | // @dependencies _global.scss |
| + | // |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | |
| + | $include-html-nav-classes: $include-html-classes !default; |
| + | |
| + | // We use these to control margin and padding |
| + | $sub-nav-list-margin: rem-calc(-4 0 18) !default; |
| + | $sub-nav-list-padding-top: rem-calc(4) !default; |
| + | |
| + | // We use this to control the definition |
| + | $sub-nav-font-family: $body-font-family !default; |
| + | $sub-nav-font-size: rem-calc(14) !default; |
| + | $sub-nav-font-color: #999 !default; |
| + | $sub-nav-font-weight: $font-weight-normal !default; |
| + | $sub-nav-text-decoration: none !default; |
| + | $sub-nav-padding: rem-calc(3 16) !default; |
| + | $sub-nav-border-radius: 3px !default; |
| + | $sub-nav-font-color-hover: scale-color($sub-nav-font-color, $lightness: -25%) !default; |
| + | |
| + | |
| + | // We use these to control the active item styles |
| + | |
| + | $sub-nav-active-font-weight: $font-weight-normal !default; |
| + | $sub-nav-active-bg: $primary-color !default; |
| + | $sub-nav-active-bg-hover: scale-color($sub-nav-active-bg, $lightness: -14%) !default; |
| + | $sub-nav-active-color: #fff !default; |
| + | $sub-nav-active-padding: $sub-nav-padding !default; |
| + | $sub-nav-active-cursor: default !default; |
| + | |
| + | $sub-nav-item-divider: "" !default; |
| + | $sub-nav-item-divider-margin: rem-calc(12) !default; |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | |
| + | |
| + | // Create a sub-nav item |
| + | // |
| + | // $font-color - Font color. Default: $sub-nav-font-color. |
| + | // $font-size - Font size. Default: $sub-nav-font-size. |
| + | // $active-bg - Background of active nav item. Default: $sub-nav-active-bg. |
| + | // $active-bg-hover - Background of active nav item, when hovered. Default: $sub-nav-active-bg-hover. |
| + | @mixin sub-nav( |
| + | $font-color: $sub-nav-font-color, |
| + | $font-size: $sub-nav-font-size, |
| + | $active-bg: $sub-nav-active-bg, |
| + | $active-bg-hover: $sub-nav-active-bg-hover) { |
| + | display: block; |
| + | width: auto; |
| + | overflow: hidden; |
| + | margin: $sub-nav-list-margin; |
| + | padding-top: $sub-nav-list-padding-top; |
| + | margin-#{$opposite-direction}: 0; |
| + | margin-#{$default-float}: rem-calc(-12); |
| + | |
| + | dt { |
| + | text-transform: uppercase; |
| + | } |
| + | |
| + | dt, |
| + | dd, |
| + | li { |
| + | float: $default-float; |
| + | display: inline; |
| + | margin-#{$default-float}: rem-calc(16); |
| + | margin-bottom: rem-calc(10); |
| + | font-family: $sub-nav-font-family; |
| + | font-weight: $sub-nav-font-weight; |
| + | font-size: $font-size; |
| + | color: $font-color; |
| + | |
| + | a { |
| + | text-decoration: $sub-nav-text-decoration; |
| + | color: $sub-nav-font-color; |
| + | padding: $sub-nav-padding; |
| + | &:hover { |
| + | color: $sub-nav-font-color-hover; |
| + | } |
| + | } |
| + | |
| + | &.active a { |
| + | @include radius($sub-nav-border-radius); |
| + | font-weight: $sub-nav-active-font-weight; |
| + | background: $active-bg; |
| + | padding: $sub-nav-active-padding; |
| + | cursor: $sub-nav-active-cursor; |
| + | color: $sub-nav-active-color; |
| + | &:hover { |
| + | background: $active-bg-hover; |
| + | } |
| + | } |
| + | @if $sub-nav-item-divider != "" { |
| + | margin-#{$default-float}: 0; |
| + | |
| + | &:before { |
| + | content: "#{$sub-nav-item-divider}"; |
| + | margin: 0 $sub-nav-item-divider-margin; |
| + | } |
| + | |
| + | &:first-child:before { |
| + | content: ""; |
| + | margin: 0; |
| + | } |
| + | } |
| + | } |
| + | } |
| + | |
| + | @include exports("sub-nav") { |
| + | @if $include-html-nav-classes { |
| + | .sub-nav { @include sub-nav; } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_switch.scss
+294
-0
| @@ | @@ -0,0 +1,294 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // @name |
| + | // @dependencies _global.scss |
| + | // |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | |
| + | // NOTE: Switches have been deprecated in Foundation 5 and will be removed in the future. |
| + | |
| + | $include-html-form-classes: $include-html-classes !default; |
| + | |
| + | // Controlling border styles and background colors for the switch container |
| + | $switch-border-color: scale-color(#fff, $lightness: -20%) !default; |
| + | $switch-border-style: solid !default; |
| + | $switch-border-width: 1px !default; |
| + | $switch-bg: #fff !default; |
| + | |
| + | // We use these to control the switch heights for our default classes |
| + | $switch-height-tny: 22px !default; |
| + | $switch-height-sml: 28px !default; |
| + | $switch-height-med: 36px !default; |
| + | $switch-height-lrg: 44px !default; |
| + | $switch-bottom-margin: rem-calc(20) !default; |
| + | |
| + | // We use these to control default font sizes for our classes. |
| + | $switch-font-size-tny: 11px !default; |
| + | $switch-font-size-sml: 12px !default; |
| + | $switch-font-size-med: 14px !default; |
| + | $switch-font-size-lrg: 17px !default; |
| + | $switch-label-side-padding: 6px !default; |
| + | |
| + | // We use these to style the switch-paddle |
| + | $switch-paddle-bg: #fff !default; |
| + | $switch-paddle-fade-to-color: scale-color($switch-paddle-bg, $lightness: -10%) !default; |
| + | $switch-paddle-border-color: scale-color($switch-paddle-bg, $lightness: -35%) !default; |
| + | $switch-paddle-border-width: 1px !default; |
| + | $switch-paddle-border-style: solid !default; |
| + | $switch-paddle-transition-speed: .1s !default; |
| + | $switch-paddle-transition-ease: ease-out !default; |
| + | $switch-positive-color: scale-color($success-color, $lightness: 94%) !default; |
| + | $switch-negative-color: #f5f5f5 !default; |
| + | |
| + | // Outline Style for tabbing through switches |
| + | $switch-label-outline: 1px dotted #888 !default; |
| + | |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | |
| + | // We use this mixin to create the base styles for our switch element. |
| + | // |
| + | // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed. |
| + | // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease. |
| + | @mixin switch-base( |
| + | $transition-speed:$switch-paddle-transition-speed, |
| + | $transition-ease:$switch-paddle-transition-ease) { |
| + | |
| + | // Default position and structure for switch container. |
| + | position: relative; |
| + | padding: 0; |
| + | display: block; |
| + | overflow: hidden; |
| + | border-style: $switch-border-style; |
| + | border-width: $switch-border-width; |
| + | margin-bottom: $switch-bottom-margin; |
| + | |
| + | // Default label styles for type and transition |
| + | label { |
| + | position: relative; |
| + | #{$default-float}: 0; |
| + | z-index: 2; |
| + | float: $default-float; |
| + | width: 50%; |
| + | height: 100%; |
| + | margin: 0; |
| + | font-weight: $font-weight-bold; |
| + | text-align: $default-float; |
| + | |
| + | // Transition for the switch label to follow paddle |
| + | @include single-transition(all, $transition-speed, $transition-ease); |
| + | } |
| + | |
| + | // So that we don't need to recreate the form with any JS, we use the |
| + | // existing radio button, but we cleverly position and hide it. |
| + | input { |
| + | position: absolute; |
| + | z-index: 3; |
| + | opacity: 0; |
| + | width: 100%; |
| + | height: 100%; |
| + | -moz-appearance: none; |
| + | |
| + | // Hover and focus styles for the paddle |
| + | &:hover, |
| + | &:focus { |
| + | cursor: $cursor-pointer-value; |
| + | } |
| + | } |
| + | |
| + | // The toggle area for radio switches. We call is a paddle. |
| + | span:last-child { |
| + | position: absolute; |
| + | top: -1px; |
| + | #{$default-float}: -1px; |
| + | z-index: 1; |
| + | display: block; |
| + | padding: 0; |
| + | border-width: $switch-paddle-border-width; |
| + | border-style: $switch-paddle-border-style; |
| + | |
| + | // Transition for the switch paddle |
| + | @include single-transition(all, $transition-speed, $transition-ease); |
| + | } |
| + | |
| + | // When a label isn't :checked, we hide it as it slides away. |
| + | input:not(:checked) + label { opacity: 0; } |
| + | |
| + | // Controlling the position of the labels as they are toggled. |
| + | input:checked { display: none !important; } |
| + | input { #{$default-float}: 0; display: block !important; } |
| + | |
| + | // Left Label alignment and position changes, including fixes for while inside a custom form |
| + | input:first-of-type + label, |
| + | input:first-of-type + span + label { #{$default-float}: -50%; } |
| + | input:first-of-type:checked + label, |
| + | input:first-of-type:checked + span + label { #{$default-float}: 0%; } |
| + | |
| + | // Right Label alignment and position changes, including fixes for while inside a custom form |
| + | input:last-of-type + label, |
| + | input:last-of-type + span + label {#{$opposite-direction}: -50%; #{$default-float}: auto; text-align: $opposite-direction; } |
| + | input:last-of-type:checked + label, |
| + | input:last-of-type:checked + span + label { #{$opposite-direction}: 0%; #{$default-float}: auto; } |
| + | |
| + | // Hiding custom form spans since we auto-create them |
| + | span.custom { display: none !important; } |
| + | |
| + | form.custom & .hidden-field { |
| + | margin-left: auto; |
| + | position: absolute; |
| + | visibility: visible; |
| + | } |
| + | } |
| + | |
| + | // We use this mixin to create the size styles for switches. |
| + | // |
| + | // $height - Height (in px) of the switch. Default: $switch-height-med. |
| + | // $font-size - Font size of text in switch. Default: $switch-font-size-med. |
| + | // $line-height - Line height of switch. Default: 2.3rem. |
| + | @mixin switch-size( |
| + | $height: $switch-height-med, |
| + | $font-size: $switch-font-size-med, |
| + | $line-height: 2.3rem) { |
| + | |
| + | height: rem-calc($height); |
| + | |
| + | label { |
| + | padding: rem-calc(0, $switch-label-side-padding); |
| + | line-height: $line-height; |
| + | font-size: rem-calc($font-size); |
| + | } |
| + | |
| + | input { |
| + | // Move the paddle to the right position |
| + | &:first-of-type:checked ~ span:last-child { |
| + | #{$default-float}: 100%; |
| + | margin-#{$default-float}: rem-calc(-$height + 1px); |
| + | } |
| + | } |
| + | |
| + | span:last-child { |
| + | width: rem-calc($height); |
| + | height: rem-calc($height); |
| + | } |
| + | |
| + | } |
| + | |
| + | // We use this mixin to add color and other fanciness to the switches. |
| + | // |
| + | // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg. |
| + | // $positive-color - Background color of positive side of switch. Default: $switch-positive-color. |
| + | // $negative-color - Background color of negative side of switch. Default: $switch-negative-color. |
| + | // $radius - Radius to apply to switch. Default: false. |
| + | // $base-style - Apply base styles? Default: true. |
| + | @mixin switch-style( |
| + | $paddle-bg:$switch-paddle-bg, |
| + | $positive-color:$switch-positive-color, |
| + | $negative-color:$switch-negative-color, |
| + | $radius:false, |
| + | $base-style:true) { |
| + | |
| + | @if $base-style { |
| + | background: $switch-bg; |
| + | border-color: $switch-border-color; |
| + | |
| + | span:last-child { |
| + | border-color: scale-color($paddle-bg, $lightness: -30%); |
| + | background: $paddle-bg; |
| + | background: linear-gradient(to bottom, $paddle-bg 0%, scale-color($paddle-bg, $lightness: -5%) 100%); |
| + | |
| + | // Building the alternating colored sides of the switch |
| + | box-shadow: 2px 0 10px 0 rgba(0,0,0,0.07), |
| + | 1000px 0 0 980px $positive-color, |
| + | -2px 0 10px 0 rgba(0,0,0,0.07), |
| + | -1000px 0 0 1000px $negative-color; |
| + | } |
| + | |
| + | &:hover, |
| + | &:focus { |
| + | span:last-child { |
| + | background: $paddle-bg; |
| + | background: linear-gradient(to bottom, $paddle-bg 0%, scale-color($paddle-bg, $lightness: -10%) 100%); |
| + | } |
| + | } |
| + | |
| + | &:active { background: transparent; } |
| + | } |
| + | |
| + | // Setting up the radius for switches |
| + | @if $radius == true { |
| + | @include radius(4px); |
| + | span:last-child { @include radius(3px); } |
| + | } |
| + | @else if $radius { |
| + | @include radius($radius); |
| + | span:last-child { @include radius($radius - 1px); } |
| + | } |
| + | |
| + | } |
| + | |
| + | // We use this to quickly create switches with a single mixin |
| + | // |
| + | // $transition-speed - Time in ms for switch to toggle. Default: $switch-paddle-transition-speed. |
| + | // $transition-ease - Easing function to use for animation (i.e. ease-out). Default: $switch-paddle-transition-ease. |
| + | // $height - Height (in px) of the switch. Default: $switch-height-med. |
| + | // $font-size - Font size of text in switch. Default: $switch-font-size-med. |
| + | // $line-height - Line height of switch. Default: 2.3rem. |
| + | // $paddle-bg - Background of switch paddle. Default: $switch-paddle-bg. |
| + | // $positive-color - Background color of positive side of switch. Default: $switch-positive-color. |
| + | // $negative-color - Background color of negative side of switch. Default: $switch-negative-color. |
| + | // $radius - Radius to apply to switch. Default: false. |
| + | // $base-style - Apply base styles? Default: true. |
| + | @mixin switch( |
| + | $transition-speed: $switch-paddle-transition-speed, |
| + | $transition-ease: $switch-paddle-transition-ease, |
| + | $height: $switch-height-med, |
| + | $font-size: $switch-font-size-med, |
| + | $line-height: 2.3rem, |
| + | $paddle-bg: $switch-paddle-bg, |
| + | $positive-color: $switch-positive-color, |
| + | $negative-color: $switch-negative-color, |
| + | $radius:false, |
| + | $base-style:true) { |
| + | @include switch-base($transition-speed, $transition-ease); |
| + | @include switch-size($height, $font-size, $line-height); |
| + | @include switch-style($paddle-bg, $positive-color, $negative-color, $radius, $base-style); |
| + | } |
| + | |
| + | @include exports("switch") { |
| + | @if $include-html-form-classes { |
| + | div.switch { |
| + | @include switch; |
| + | |
| + | // Large radio switches |
| + | &.large { @include switch-size($switch-height-lrg, $switch-font-size-lrg); } |
| + | |
| + | // Small radio switches |
| + | &.small { @include switch-size($switch-height-sml, $switch-font-size-sml, 2.1rem); } |
| + | |
| + | // Tiny radio switches |
| + | &.tiny { @include switch-size($switch-height-tny, $switch-font-size-tny, 1.9rem); } |
| + | |
| + | // Add a radius to the switch |
| + | &.radius { @include radius(4px); |
| + | span:last-child{ @include radius(3px); } |
| + | } |
| + | |
| + | // Make the switch completely round, like a pill |
| + | &.round { @include radius(1000px); |
| + | span:last-child { @include radius(999px); } |
| + | label { padding: rem-calc(0 $switch-label-side-padding + 3); } |
| + | } |
| + | |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_tables.scss
+129
-0
| @@ | @@ -0,0 +1,129 @@ |
| + | @import "global"; |
| + | |
| + | // |
| + | // @name _tables.scss |
| + | // @dependencies _global.scss |
| + | // |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | |
| + | $include-html-table-classes: $include-html-classes !default; |
| + | |
| + | // These control the background color for the table and even rows |
| + | $table-bg: #fff !default; |
| + | $table-even-row-bg: #f9f9f9 !default; |
| + | |
| + | // These control the table cell border style |
| + | $table-border-style: solid !default; |
| + | $table-border-size: 1px !default; |
| + | $table-border-color: #ddd !default; |
| + | |
| + | // These control the table head styles |
| + | $table-head-bg: #f5f5f5 !default; |
| + | $table-head-font-size: rem-calc(14) !default; |
| + | $table-head-font-color: #222 !default; |
| + | $table-head-font-weight: $font-weight-bold !default; |
| + | $table-head-padding: rem-calc(8 10 10) !default; |
| + | |
| + | // These control the table foot styles |
| + | $table-foot-bg: $table-head-bg !default; |
| + | $table-foot-font-size: $table-head-font-size !default; |
| + | $table-foot-font-color: $table-head-font-color !default; |
| + | $table-foot-font-weight: $table-head-font-weight !default; |
| + | $table-foot-padding: $table-head-padding !default; |
| + | |
| + | // These control the caption |
| + | $table-caption-bg: transparent !default; |
| + | $table-caption-font-color: $table-head-font-color !default; |
| + | $table-caption-font-size: rem-calc(16) !default; |
| + | $table-caption-font-weight: bold !default; |
| + | |
| + | // These control the row padding and font styles |
| + | $table-row-padding: rem-calc(9 10) !default; |
| + | $table-row-font-size: rem-calc(14) !default; |
| + | $table-row-font-color: #222 !default; |
| + | $table-line-height: rem-calc(18) !default; |
| + | |
| + | // These are for controlling the display and margin of tables |
| + | $table-display: table-cell !default; |
| + | $table-margin-bottom: rem-calc(20) !default; |
| + | |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | |
| + | @mixin table { |
| + | background: $table-bg; |
| + | margin-bottom: $table-margin-bottom; |
| + | border: $table-border-style $table-border-size $table-border-color; |
| + | |
| + | caption { |
| + | background: $table-caption-bg; |
| + | color: $table-caption-font-color; |
| + | font: { |
| + | size: $table-caption-font-size; |
| + | weight: $table-caption-font-weight; |
| + | } |
| + | } |
| + | |
| + | thead { |
| + | background: $table-head-bg; |
| + | |
| + | tr { |
| + | th, |
| + | td { |
| + | padding: $table-head-padding; |
| + | font-size: $table-head-font-size; |
| + | font-weight: $table-head-font-weight; |
| + | color: $table-head-font-color; |
| + | } |
| + | } |
| + | } |
| + | |
| + | tfoot { |
| + | background: $table-foot-bg; |
| + | |
| + | tr { |
| + | th, |
| + | td { |
| + | padding: $table-foot-padding; |
| + | font-size: $table-foot-font-size; |
| + | font-weight: $table-foot-font-weight; |
| + | color: $table-foot-font-color; |
| + | } |
| + | } |
| + | } |
| + | |
| + | tr { |
| + | th, |
| + | td { |
| + | padding: $table-row-padding; |
| + | font-size: $table-row-font-size; |
| + | color: $table-row-font-color; |
| + | text-align: $default-float; |
| + | } |
| + | |
| + | &.even, |
| + | &.alt, |
| + | &:nth-of-type(even) { background: $table-even-row-bg; } |
| + | } |
| + | |
| + | thead tr th, |
| + | tfoot tr th, |
| + | tfoot tr td, |
| + | tbody tr th, |
| + | tbody tr td, |
| + | tr td { display: $table-display; line-height: $table-line-height; } |
| + | } |
| + | |
| + | |
| + | @include exports("table") { |
| + | @if $include-html-table-classes { |
| + | table { |
| + | @include table; |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_tabs.scss
+109
-0
| @@ | @@ -0,0 +1,109 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | @import "grid"; |
| + | @import "type"; |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | |
| + | $include-html-tabs-classes: $include-html-classes !default; |
| + | |
| + | $tabs-navigation-padding: rem-calc(16) !default; |
| + | $tabs-navigation-bg-color: #efefef !default; |
| + | $tabs-navigation-active-bg-color: #fff !default; |
| + | $tabs-navigation-hover-bg-color: scale-color($tabs-navigation-bg-color, $lightness: -6%) !default; |
| + | $tabs-navigation-font-color: #222 !default; |
| + | $tabs-navigation-active-font-color: $tabs-navigation-font-color !default; |
| + | $tabs-navigation-font-size: rem-calc(16) !default; |
| + | $tabs-navigation-font-family: $body-font-family !default; |
| + | |
| + | $tabs-content-margin-bottom: rem-calc(24) !default; |
| + | $tabs-content-padding: $column-gutter/2 !default; |
| + | |
| + | $tabs-vertical-navigation-margin-bottom: 1.25rem !default; |
| + | |
| + | @include exports("tab") { |
| + | @if $include-html-tabs-classes { |
| + | .tabs { |
| + | @include clearfix; |
| + | margin-bottom: 0 !important; |
| + | margin-left: 0; |
| + | dd, .tab-title { |
| + | position: relative; |
| + | margin-bottom: 0 !important; |
| + | list-style: none; |
| + | float: $default-float; |
| + | > a { |
| + | display: block; |
| + | background: $tabs-navigation-bg-color; |
| + | color: $tabs-navigation-font-color; |
| + | padding: $tabs-navigation-padding $tabs-navigation-padding * 2; |
| + | font-family: $tabs-navigation-font-family; |
| + | font-size: $tabs-navigation-font-size; |
| + | &:hover { background: $tabs-navigation-hover-bg-color; } |
| + | } |
| + | &.active a { background: $tabs-navigation-active-bg-color; color:$tabs-navigation-active-font-color; } |
| + | } |
| + | &.radius { |
| + | dd:first-child, .tab:first-child { |
| + | a { @include side-radius($default-float, $global-radius); } |
| + | } |
| + | dd:last-child, .tab:last-child { |
| + | a { @include side-radius($opposite-direction, $global-radius); } |
| + | } |
| + | } |
| + | &.vertical { |
| + | dd, .tab-title { |
| + | position: inherit; |
| + | float: none; |
| + | display: block; |
| + | top: auto; |
| + | } |
| + | } |
| + | } |
| + | |
| + | .tabs-content { |
| + | @include clearfix; |
| + | margin-bottom: $tabs-content-margin-bottom; |
| + | width: 100%; |
| + | > .content { |
| + | display: none; |
| + | float: $default-float; |
| + | padding: $tabs-content-padding 0; |
| + | width: 100%; |
| + | &.active { display: block; float: none; } |
| + | &.contained { padding: $tabs-content-padding; } |
| + | } |
| + | &.vertical { |
| + | display: block; |
| + | > .content { padding: 0 $tabs-content-padding; } |
| + | } |
| + | } |
| + | @media #{$medium-up} { |
| + | .tabs { |
| + | &.vertical { |
| + | width: 20%; |
| + | float: $default-float; |
| + | margin-bottom: $tabs-vertical-navigation-margin-bottom; |
| + | } |
| + | } |
| + | .tabs-content { |
| + | &.vertical { |
| + | width: 80%; |
| + | float: $default-float; |
| + | margin-#{$default-float}: -1px; |
| + | } |
| + | } |
| + | } |
| + | .no-js { |
| + | .tabs-content > .content { |
| + | display: block; |
| + | float: none; |
| + | } |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_thumbs.scss
+68
-0
| @@ | @@ -0,0 +1,68 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | |
| + | |
| + | // |
| + | // @name _thumbs.scss |
| + | // @dependencies _globals.scss |
| + | // |
| + | |
| + | // |
| + | // @variables |
| + | // |
| + | |
| + | $include-html-media-classes: $include-html-classes !default; |
| + | |
| + | // We use these to control border styles |
| + | $thumb-border-style: solid !default; |
| + | $thumb-border-width: 4px !default; |
| + | $thumb-border-color: #fff !default; |
| + | $thumb-box-shadow: 0 0 0 1px rgba(#000,.2) !default; |
| + | $thumb-box-shadow-hover: 0 0 6px 1px rgba($primary-color,0.5) !default; |
| + | |
| + | // Radius and transition speed for thumbs |
| + | $thumb-radius: $global-radius !default; |
| + | $thumb-transition-speed: 200ms !default; |
| + | |
| + | // |
| + | // @mixins |
| + | // |
| + | |
| + | // We use this to create image thumbnail styles. |
| + | // |
| + | // $border-width - Width of border around thumbnail. Default: $thumb-border-width. |
| + | // $box-shadow - Box shadow to apply to thumbnail. Default: $thumb-box-shadow. |
| + | // $box-shadow-hover - Box shadow to apply on hover. Default: $thumb-box-shadow-hover. |
| + | @mixin thumb( |
| + | $border-width:$thumb-border-width, |
| + | $box-shadow:$thumb-box-shadow, |
| + | $box-shadow-hover:$thumb-box-shadow-hover) { |
| + | line-height: 0; |
| + | display: inline-block; |
| + | border: $thumb-border-style $border-width $thumb-border-color; |
| + | max-width: 100%; |
| + | box-shadow: $box-shadow; |
| + | |
| + | &:hover, |
| + | &:focus { |
| + | box-shadow: $box-shadow-hover; |
| + | } |
| + | } |
| + | |
| + | |
| + | @include exports("thumb") { |
| + | @if $include-html-media-classes { |
| + | |
| + | /* Image Thumbnails */ |
| + | .th { |
| + | @include thumb; |
| + | @include single-transition(all,$thumb-transition-speed,ease-out); |
| + | |
| + | &.radius { @include radius($thumb-radius); } |
| + | } |
| + | } |
| + | } |
| \ No newline at end of file | |
generators/foundation5/public/stylesheets/foundation/components/_tooltips.scss
+140
-0
| @@ | @@ -0,0 +1,140 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // Tooltip Variables |
| + | // |
| + | $include-html-tooltip-classes: $include-html-classes !default; |
| + | |
| + | $has-tip-border-bottom: dotted 1px #ccc !default; |
| + | $has-tip-font-weight: $font-weight-bold !default; |
| + | $has-tip-font-color: #333 !default; |
| + | $has-tip-border-bottom-hover: dotted 1px scale-color($primary-color, $lightness: -55%) !default; |
| + | $has-tip-font-color-hover: $primary-color !default; |
| + | $has-tip-cursor-type: help !default; |
| + | |
| + | $tooltip-padding: rem-calc(12) !default; |
| + | $tooltip-bg: #333 !default; |
| + | $tooltip-font-size: rem-calc(14) !default; |
| + | $tooltip-font-weight: $font-weight-normal !default; |
| + | $tooltip-font-color: #fff !default; |
| + | $tooltip-line-height: 1.3 !default; |
| + | $tooltip-close-font-size: rem-calc(10) !default; |
| + | $tooltip-close-font-weight: $font-weight-normal !default; |
| + | $tooltip-close-font-color: #777 !default; |
| + | $tooltip-font-size-sml: rem-calc(14) !default; |
| + | $tooltip-radius: $global-radius !default; |
| + | $tooltip-rounded: $global-rounded !default; |
| + | $tooltip-pip-size: 5px !default; |
| + | |
| + | @include exports("tooltip") { |
| + | @if $include-html-tooltip-classes { |
| + | |
| + | /* Tooltips */ |
| + | .has-tip { |
| + | border-bottom: $has-tip-border-bottom; |
| + | cursor: $has-tip-cursor-type; |
| + | font-weight: $has-tip-font-weight; |
| + | color: $has-tip-font-color; |
| + | |
| + | &:hover, |
| + | &:focus { |
| + | border-bottom: $has-tip-border-bottom-hover; |
| + | color: $has-tip-font-color-hover; |
| + | } |
| + | |
| + | &.tip-left, |
| + | &.tip-right { float: none !important; } |
| + | } |
| + | |
| + | .tooltip { |
| + | display: none; |
| + | position: absolute; |
| + | z-index: 999; |
| + | font-weight: $tooltip-font-weight; |
| + | font-size: $tooltip-font-size; |
| + | line-height: $tooltip-line-height; |
| + | padding: $tooltip-padding; |
| + | max-width: 85%; |
| + | #{$default-float}: 50%; |
| + | width: 100%; |
| + | color: $tooltip-font-color; |
| + | background: $tooltip-bg; |
| + | |
| + | &>.nub { |
| + | display: block; |
| + | #{$default-float}: $tooltip-pip-size; |
| + | position: absolute; |
| + | width: 0; |
| + | height: 0; |
| + | border: solid $tooltip-pip-size; |
| + | border-color: transparent transparent $tooltip-bg transparent; |
| + | top: -($tooltip-pip-size * 2); |
| + | |
| + | &.rtl { |
| + | left: auto; |
| + | #{$opposite-direction}: $tooltip-pip-size; |
| + | } |
| + | } |
| + | |
| + | &.radius { |
| + | @include radius($tooltip-radius); |
| + | } |
| + | &.round { |
| + | @include radius($tooltip-rounded); |
| + | &>.nub { |
| + | left: 2rem; |
| + | } |
| + | } |
| + | |
| + | &.opened { |
| + | color: $has-tip-font-color-hover !important; |
| + | border-bottom: $has-tip-border-bottom-hover !important; |
| + | } |
| + | } |
| + | |
| + | .tap-to-close { |
| + | display: block; |
| + | font-size: $tooltip-close-font-size; |
| + | color: $tooltip-close-font-color; |
| + | font-weight: $tooltip-close-font-weight; |
| + | } |
| + | |
| + | @media #{$small} { |
| + | .tooltip { |
| + | &>.nub { |
| + | border-color: transparent transparent $tooltip-bg transparent; |
| + | top: -($tooltip-pip-size * 2); |
| + | } |
| + | &.tip-top>.nub { |
| + | border-color: $tooltip-bg transparent transparent transparent; |
| + | top: auto; |
| + | bottom: -($tooltip-pip-size * 2); |
| + | } |
| + | |
| + | &.tip-left, |
| + | &.tip-right { float: none !important; } |
| + | |
| + | &.tip-left>.nub { |
| + | border-color: transparent transparent transparent $tooltip-bg; |
| + | right: -($tooltip-pip-size * 2); |
| + | left: auto; |
| + | top: 50%; |
| + | margin-top: -$tooltip-pip-size; |
| + | } |
| + | &.tip-right>.nub { |
| + | border-color: transparent $tooltip-bg transparent transparent; |
| + | right: auto; |
| + | left: -($tooltip-pip-size * 2); |
| + | top: 50%; |
| + | margin-top: -$tooltip-pip-size; |
| + | } |
| + | |
| + | } |
| + | } |
| + | |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_top-bar.scss
+659
-0
| @@ | @@ -0,0 +1,659 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | @import "grid"; |
| + | @import "buttons"; |
| + | |
| + | // |
| + | // Top Bar Variables |
| + | // |
| + | $include-html-top-bar-classes: $include-html-classes !default; |
| + | |
| + | // Background color for the top bar |
| + | $topbar-bg-color: #333 !default; |
| + | $topbar-bg: $topbar-bg-color !default; |
| + | |
| + | // Height and margin |
| + | $topbar-height: 45px !default; |
| + | $topbar-margin-bottom: 0 !default; |
| + | |
| + | // Controlling the styles for the title in the top bar |
| + | $topbar-title-weight: $font-weight-normal !default; |
| + | $topbar-title-font-size: rem-calc(17) !default; |
| + | |
| + | // Style the top bar dropdown elements |
| + | $topbar-dropdown-bg: #333 !default; |
| + | $topbar-dropdown-link-color: #fff !default; |
| + | $topbar-dropdown-link-bg: #333 !default; |
| + | $topbar-dropdown-link-weight: $font-weight-normal !default; |
| + | $topbar-dropdown-toggle-size: 5px !default; |
| + | $topbar-dropdown-toggle-color: #fff !default; |
| + | $topbar-dropdown-toggle-alpha: 0.4 !default; |
| + | |
| + | // Set the link colors and styles for top-level nav |
| + | $topbar-link-color: #fff !default; |
| + | $topbar-link-color-hover: #fff !default; |
| + | $topbar-link-color-active: #fff !default; |
| + | $topbar-link-color-active-hover: #fff !default; |
| + | $topbar-link-weight: $font-weight-normal !default; |
| + | $topbar-link-font-size: rem-calc(13) !default; |
| + | $topbar-link-hover-lightness: -10% !default; // Darken by 10% |
| + | $topbar-link-bg: $topbar-bg !default; |
| + | $topbar-link-bg-hover: #272727 !default; |
| + | $topbar-link-bg-color-hover: #555555 !default; |
| + | $topbar-link-bg-active: $primary-color !default; |
| + | $topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%) !default; |
| + | $topbar-link-font-family: $body-font-family !default; |
| + | $topbar-link-text-transform: none !default; |
| + | $topbar-link-padding: $topbar-height / 3 !default; |
| + | |
| + | $topbar-button-font-size: 0.75rem !default; |
| + | $topbar-button-top: 7px !default; |
| + | |
| + | $topbar-dropdown-label-color: #777 !default; |
| + | $topbar-dropdown-label-text-transform: uppercase !default; |
| + | $topbar-dropdown-label-font-weight: $font-weight-bold !default; |
| + | $topbar-dropdown-label-font-size: rem-calc(10) !default; |
| + | $topbar-dropdown-label-bg: #333 !default; |
| + | |
| + | // Top menu icon styles |
| + | $topbar-menu-link-transform: uppercase !default; |
| + | $topbar-menu-link-font-size: rem-calc(13) !default; |
| + | $topbar-menu-link-weight: $font-weight-bold !default; |
| + | $topbar-menu-link-color: #fff !default; |
| + | $topbar-menu-icon-color: #fff !default; |
| + | $topbar-menu-link-color-toggled: #888 !default; |
| + | $topbar-menu-icon-color-toggled: #888 !default; |
| + | |
| + | // Transitions and breakpoint styles |
| + | $topbar-transition-speed: 300ms !default; |
| + | // Using rem-calc for the below breakpoint causes issues with top bar |
| + | $topbar-breakpoint: #{lower-bound($medium-range)} !default; // Change to 9999px for always mobile layout |
| + | $topbar-media-query: $medium-up !default; |
| + | |
| + | // Divider Styles |
| + | $topbar-divider-border-bottom: solid 1px scale-color($topbar-bg-color, $lightness: 13%) !default; |
| + | $topbar-divider-border-top: solid 1px scale-color($topbar-bg-color, $lightness: -50%) !default; |
| + | |
| + | // Sticky Class |
| + | $topbar-sticky-class: ".sticky" !default; |
| + | $topbar-arrows: true !default; //Set false to remove the triangle icon from the menu item |
| + | |
| + | // Accessibility mixins for hiding and showing the menu dropdown items |
| + | @mixin topbar-hide-dropdown { |
| + | // Makes an element visually hidden by default, but visible when focused. |
| + | display: block; |
| + | @include element-invisible(); |
| + | } |
| + | |
| + | @mixin topbar-show-dropdown { |
| + | display: block; |
| + | @include element-invisible-off(); |
| + | position: absolute !important; // Reset the position from static to absolute |
| + | } |
| + | |
| + | @include exports("top-bar") { |
| + | |
| + | @if $include-html-top-bar-classes { |
| + | |
| + | // Used to provide media query values for javascript components. |
| + | // This class is generated despite the value of $include-html-top-bar-classes |
| + | // to ensure width calculations work correctly. |
| + | meta.foundation-mq-topbar { |
| + | font-family: "/" + unquote($topbar-media-query) + "/"; |
| + | width: $topbar-breakpoint; |
| + | } |
| + | |
| + | /* Wrapped around .top-bar to contain to grid width */ |
| + | .contain-to-grid { |
| + | width: 100%; |
| + | background: $topbar-bg; |
| + | |
| + | .top-bar { margin-bottom: $topbar-margin-bottom; } |
| + | } |
| + | |
| + | // Wrapped around .top-bar to make it stick to the top |
| + | .fixed { |
| + | width: 100%; |
| + | #{$default-float}: 0; |
| + | position: fixed; |
| + | top: 0; |
| + | z-index: 99; |
| + | |
| + | &.expanded:not(.top-bar) { |
| + | overflow-y: auto; |
| + | height: auto; |
| + | width: 100%; |
| + | max-height: 100%; |
| + | |
| + | .title-area { |
| + | position: fixed; |
| + | width: 100%; |
| + | z-index: 99; |
| + | } |
| + | // Ensure you can scroll the menu on small screens |
| + | .top-bar-section { |
| + | z-index: 98; |
| + | margin-top: $topbar-height; |
| + | } |
| + | } |
| + | } |
| + | |
| + | .top-bar { |
| + | overflow: hidden; |
| + | height: $topbar-height; |
| + | line-height: $topbar-height; |
| + | position: relative; |
| + | background: $topbar-bg; |
| + | margin-bottom: $topbar-margin-bottom; |
| + | |
| + | // Topbar Global list Styles |
| + | ul { |
| + | margin-bottom: 0; |
| + | list-style: none; |
| + | } |
| + | |
| + | .row { max-width: none; } |
| + | |
| + | form, |
| + | input { margin-bottom: 0; } |
| + | |
| + | input { height: auto; padding-top: .35rem; padding-bottom: .35rem; font-size: $topbar-button-font-size; } |
| + | |
| + | .button, button { |
| + | padding-top: .45rem; |
| + | padding-bottom: .35rem; |
| + | margin-bottom: 0; |
| + | font-size: $topbar-button-font-size; |
| + | // position: relative; |
| + | // top: -1px; |
| + | |
| + | } |
| + | |
| + | // Title Area |
| + | .title-area { |
| + | position: relative; |
| + | margin: 0; |
| + | } |
| + | |
| + | .name { |
| + | height: $topbar-height; |
| + | margin: 0; |
| + | font-size: $rem-base; |
| + | |
| + | h1 { |
| + | line-height: $topbar-height; |
| + | font-size: $topbar-title-font-size; |
| + | margin: 0; |
| + | a { |
| + | font-weight: $topbar-title-weight; |
| + | color: $topbar-link-color; |
| + | width: 75%; |
| + | display: block; |
| + | padding: 0 $topbar-link-padding; |
| + | } |
| + | } |
| + | } |
| + | |
| + | // Menu toggle button on small devices |
| + | .toggle-topbar { |
| + | position: absolute; |
| + | #{$opposite-direction}: 0; |
| + | top: 0; |
| + | |
| + | a { |
| + | color: $topbar-link-color; |
| + | text-transform: $topbar-menu-link-transform; |
| + | font-size: $topbar-menu-link-font-size; |
| + | font-weight: $topbar-menu-link-weight; |
| + | position: relative; |
| + | display: block; |
| + | padding: 0 $topbar-link-padding; |
| + | height: $topbar-height; |
| + | line-height: $topbar-height; |
| + | } |
| + | |
| + | // Adding the class "menu-icon" will add the 3-line icon people love and adore. |
| + | &.menu-icon { |
| + | top: 50%; |
| + | margin-top: -16px; |
| + | |
| + | a { |
| + | @if $text-direction == rtl { |
| + | text-indent: -58px; |
| + | } |
| + | height: 34px; |
| + | line-height: 33px; |
| + | padding: 0 $topbar-link-padding+25 0 $topbar-link-padding; |
| + | color: $topbar-menu-link-color; |
| + | position: relative; |
| + | |
| + | & { |
| + | // @include hamburger icon |
| + | // |
| + | // We use this to create the icon with three lines aka the hamburger icon, the menu-icon or the navicon |
| + | // $width - Width of hamburger icon |
| + | // $left - If false, icon will be centered horizontally || explicitly set value in rem |
| + | // $top - If false, icon will be centered vertically || explicitly set value in rem |
| + | // $thickness - thickness of lines in hamburger icon, set value in px |
| + | // $gap - spacing between the lines in hamburger icon, set value in px |
| + | // $color - icon color |
| + | // $hover-color - icon color during hover, here it is set the same as $color because the values are changed on line 264 |
| + | // $offcanvas - Set to false of @include in topbar |
| + | @include hamburger(16px, false, 0, 1px, 6px, $topbar-menu-icon-color, $topbar-menu-icon-color, false); |
| + | } |
| + | } |
| + | } |
| + | } |
| + | |
| + | // Change things up when the top-bar is expanded |
| + | &.expanded { |
| + | height: auto; |
| + | background: transparent; |
| + | |
| + | .title-area { background: $topbar-bg; } |
| + | |
| + | .toggle-topbar { |
| + | a { color: $topbar-menu-link-color-toggled; |
| + | &::after { |
| + | // Shh, don't tell, but box-shadows create the menu icon :) |
| + | box-shadow: 0 10px 0 1px $topbar-menu-icon-color-toggled, |
| + | 0 16px 0 1px $topbar-menu-icon-color-toggled, |
| + | 0 22px 0 1px $topbar-menu-icon-color-toggled; |
| + | } |
| + | } |
| + | } |
| + | } |
| + | |
| + | |
| + | |
| + | } |
| + | |
| + | // Right and Left Navigation that stacked by default |
| + | .top-bar-section { |
| + | #{$default-float}: 0; |
| + | position: relative; |
| + | width: auto; |
| + | @include single-transition($default-float, $topbar-transition-speed); |
| + | |
| + | ul { |
| + | padding: 0; |
| + | width: 100%; |
| + | height: auto; |
| + | display: block; |
| + | font-size: $rem-base; |
| + | margin: 0; |
| + | } |
| + | |
| + | .divider, |
| + | [role="separator"] { |
| + | border-top: $topbar-divider-border-top; |
| + | clear: both; |
| + | height: 1px; |
| + | width: 100%; |
| + | } |
| + | |
| + | ul li { |
| + | background: $topbar-dropdown-bg; |
| + | & > a { |
| + | display: block; |
| + | width: 100%; |
| + | color: $topbar-link-color; |
| + | padding: 12px 0 12px 0; |
| + | padding-#{$default-float}: $topbar-link-padding; |
| + | font-family: $topbar-link-font-family; |
| + | font-size: $topbar-link-font-size; |
| + | font-weight: $topbar-link-weight; |
| + | text-transform: $topbar-link-text-transform; |
| + | |
| + | |
| + | &.button { |
| + | font-size: $topbar-link-font-size; |
| + | padding-#{$opposite-direction}: $topbar-link-padding; |
| + | padding-#{$default-float}: $topbar-link-padding; |
| + | @include button-style($bg:$primary-color); |
| + | } |
| + | &.button.secondary { @include button-style($bg:$secondary-color); } |
| + | &.button.success { @include button-style($bg:$success-color); } |
| + | &.button.alert { @include button-style($bg:$alert-color); } |
| + | } |
| + | |
| + | > button { |
| + | font-size: $topbar-link-font-size; |
| + | padding-#{$opposite-direction}: $topbar-link-padding; |
| + | padding-#{$default-float}: $topbar-link-padding; |
| + | @include button-style($bg:$primary-color); |
| + | |
| + | &.secondary { @include button-style($bg:$secondary-color); } |
| + | &.success { @include button-style($bg:$success-color); } |
| + | &.alert { @include button-style($bg:$alert-color); } |
| + | } |
| + | |
| + | // Apply the hover link color when it has that class |
| + | &:hover:not(.has-form) > a { |
| + | background-color: $topbar-link-bg-color-hover; |
| + | @if ($topbar-link-bg-hover) { |
| + | background: $topbar-link-bg-hover; |
| + | } |
| + | color: $topbar-link-color-hover; |
| + | |
| + | } |
| + | |
| + | // Apply the active link color when it has that class |
| + | &.active > a { |
| + | background: $topbar-link-bg-active; |
| + | color: $topbar-link-color-active; |
| + | &:hover { |
| + | background: $topbar-link-bg-active-hover; |
| + | color: $topbar-link-color-active-hover; |
| + | } |
| + | } |
| + | } |
| + | |
| + | // Add some extra padding for list items contains buttons |
| + | .has-form { padding: $topbar-link-padding; } |
| + | |
| + | // Styling for list items that have a dropdown within them. |
| + | .has-dropdown { |
| + | position: relative; |
| + | |
| + | & > a { |
| + | &:after { |
| + | @if ($topbar-arrows){ |
| + | @include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), $default-float); |
| + | } |
| + | margin-#{$opposite-direction}: $topbar-link-padding; |
| + | margin-top: -($topbar-dropdown-toggle-size / 2) - 2; |
| + | position: absolute; |
| + | top: 50%; |
| + | #{$opposite-direction}: 0; |
| + | } |
| + | } |
| + | |
| + | &.moved { position: static; |
| + | & > .dropdown { |
| + | @include topbar-show-dropdown(); |
| + | width: 100%; |
| + | } |
| + | & > a:after { |
| + | display: none; |
| + | } |
| + | } |
| + | } |
| + | |
| + | // Styling elements inside of dropdowns |
| + | .dropdown { |
| + | padding: 0; |
| + | position: absolute; |
| + | #{$default-float}: 100%; |
| + | top: 0; |
| + | z-index: 99; |
| + | @include topbar-hide-dropdown(); |
| + | |
| + | li { |
| + | width: 100%; |
| + | height: auto; |
| + | |
| + | a { |
| + | font-weight: $topbar-dropdown-link-weight; |
| + | padding: 8px $topbar-link-padding; |
| + | &.parent-link { |
| + | font-weight: $topbar-link-weight; |
| + | } |
| + | } |
| + | |
| + | &.title h5 { |
| + | margin-bottom: 0; |
| + | margin-top: 0; |
| + | a { |
| + | color: $topbar-link-color; |
| + | line-height: $topbar-height / 2; |
| + | display: block; |
| + | } |
| + | } |
| + | &.has-form { padding: 8px $topbar-link-padding; } |
| + | .button, button { top: auto; } |
| + | } |
| + | |
| + | label { |
| + | padding: 8px $topbar-link-padding 2px; |
| + | margin-bottom: 0; |
| + | text-transform: $topbar-dropdown-label-text-transform; |
| + | color: $topbar-dropdown-label-color; |
| + | font-weight: $topbar-dropdown-label-font-weight; |
| + | font-size: $topbar-dropdown-label-font-size; |
| + | } |
| + | } |
| + | } |
| + | |
| + | .js-generated { display: block; } |
| + | |
| + | |
| + | // Top Bar styles intended for screen sizes above the breakpoint. |
| + | @media #{$topbar-media-query} { |
| + | .top-bar { |
| + | background: $topbar-bg; |
| + | @include clearfix; |
| + | overflow: visible; |
| + | |
| + | .toggle-topbar { display: none; } |
| + | |
| + | .title-area { float: $default-float; } |
| + | .name h1 a { width: auto; } |
| + | |
| + | input, |
| + | .button, |
| + | button { |
| + | font-size: rem-calc(14); |
| + | position: relative; |
| + | top: $topbar-button-top; |
| + | } |
| + | |
| + | &.expanded { background: $topbar-bg; } |
| + | } |
| + | |
| + | .contain-to-grid .top-bar { |
| + | max-width: $row-width; |
| + | margin: 0 auto; |
| + | margin-bottom: $topbar-margin-bottom; |
| + | } |
| + | |
| + | .top-bar-section { |
| + | @include single-transition(none,0,0); |
| + | #{$default-float}: 0 !important; |
| + | |
| + | ul { |
| + | width: auto; |
| + | height: auto !important; |
| + | display: inline; |
| + | |
| + | li { |
| + | float: $default-float; |
| + | .js-generated { display: none; } |
| + | } |
| + | } |
| + | |
| + | li { |
| + | &.hover { |
| + | > a:not(.button) { |
| + | background-color: $topbar-link-bg-color-hover; |
| + | @if ($topbar-link-bg-hover) { |
| + | background: $topbar-link-bg-hover; |
| + | } |
| + | color: $topbar-link-color-hover; |
| + | } |
| + | } |
| + | &:not(.has-form) { |
| + | a:not(.button) { |
| + | padding: 0 $topbar-link-padding; |
| + | line-height: $topbar-height; |
| + | background: $topbar-link-bg; |
| + | &:hover { |
| + | background-color: $topbar-link-bg-color-hover; |
| + | @if ($topbar-link-bg-hover) { |
| + | background: $topbar-link-bg-hover; |
| + | } |
| + | } |
| + | } |
| + | } |
| + | &.active:not(.has-form) { |
| + | a:not(.button) { |
| + | padding: 0 $topbar-link-padding; |
| + | line-height: $topbar-height; |
| + | color: $topbar-link-color-active; |
| + | background: $topbar-link-bg-active; |
| + | &:hover { background: $topbar-link-bg-active-hover; } |
| + | } |
| + | } |
| + | } |
| + | |
| + | .has-dropdown { |
| + | |
| + | @if($topbar-arrows){ |
| + | |
| + | & > a { |
| + | padding-#{$opposite-direction}: $topbar-link-padding + 20 !important; |
| + | &:after { |
| + | @include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), top); |
| + | margin-top: -($topbar-dropdown-toggle-size / 2); |
| + | top: $topbar-height / 2; |
| + | } |
| + | } |
| + | |
| + | } |
| + | |
| + | &.moved { position: relative; |
| + | & > .dropdown { |
| + | @include topbar-hide-dropdown(); |
| + | } |
| + | } |
| + | |
| + | &.hover, &.not-click:hover { |
| + | & > .dropdown { |
| + | @include topbar-show-dropdown(); |
| + | } |
| + | } |
| + | |
| + | .dropdown li.has-dropdown { |
| + | & > a { |
| + | &:after { |
| + | border: none; |
| + | content: "\00bb"; |
| + | top: 1rem; |
| + | margin-top: -1px; |
| + | #{$opposite-direction}: 5px; |
| + | line-height: 1.2; |
| + | } |
| + | } |
| + | } |
| + | |
| + | } |
| + | |
| + | .dropdown { |
| + | #{$default-float}: 0; |
| + | top: auto; |
| + | background: transparent; |
| + | min-width: 100%; |
| + | |
| + | li { |
| + | a { |
| + | color: $topbar-dropdown-link-color; |
| + | line-height: $topbar-height; |
| + | white-space: nowrap; |
| + | padding: 12px $topbar-link-padding; |
| + | background: $topbar-dropdown-link-bg; |
| + | } |
| + | |
| + | &:not(.has-form) a:not(.button) { |
| + | color: $topbar-dropdown-link-color; |
| + | background: $topbar-dropdown-link-bg; |
| + | } |
| + | &:not(.has-form):hover > a:not(.button) { |
| + | color: $topbar-link-color-hover; |
| + | background-color: $topbar-link-bg-color-hover; |
| + | @if ($topbar-link-bg-hover) { |
| + | background: $topbar-link-bg-hover; |
| + | } |
| + | } |
| + | |
| + | label { |
| + | white-space: nowrap; |
| + | background: $topbar-dropdown-label-bg; |
| + | } |
| + | |
| + | // Second Level Dropdowns |
| + | .dropdown { |
| + | #{$default-float}: 100%; |
| + | top: 0; |
| + | } |
| + | } |
| + | } |
| + | |
| + | & > ul > .divider, |
| + | & > ul > [role="separator"] { |
| + | border-bottom: none; |
| + | border-top: none; |
| + | border-#{$opposite-direction}: $topbar-divider-border-bottom; |
| + | clear: none; |
| + | height: $topbar-height; |
| + | width: 0; |
| + | } |
| + | |
| + | .has-form { |
| + | background: $topbar-link-bg; |
| + | padding: 0 $topbar-height / 3; |
| + | height: $topbar-height; |
| + | } |
| + | |
| + | // Position overrides for ul.right and ul.left |
| + | .right { |
| + | li .dropdown { |
| + | #{$default-float}: auto; |
| + | #{$opposite-direction}: 0; |
| + | |
| + | li .dropdown { #{$opposite-direction}: 100%; } |
| + | } |
| + | } |
| + | .left { |
| + | li .dropdown { |
| + | #{$opposite-direction}: auto; |
| + | #{$default-float}: 0; |
| + | |
| + | li .dropdown { #{$default-float}: 100%; } |
| + | } |
| + | } |
| + | } |
| + | |
| + | // Degrade gracefully when Javascript is disabled. Displays dropdown and changes |
| + | // background & text color on hover. |
| + | .no-js .top-bar-section { |
| + | ul li { |
| + | // Apply the hover link color when it has that class |
| + | &:hover > a { |
| + | background-color: $topbar-link-bg-color-hover; |
| + | @if ($topbar-link-bg-hover) { |
| + | background: $topbar-link-bg-hover; |
| + | } |
| + | color: $topbar-link-color-hover; |
| + | } |
| + | |
| + | // Apply the active link color when it has that class |
| + | &:active > a { |
| + | background: $topbar-link-bg-active; |
| + | color: $topbar-link-color-active; |
| + | } |
| + | } |
| + | |
| + | .has-dropdown { |
| + | &:hover { |
| + | & > .dropdown { |
| + | @include topbar-show-dropdown(); |
| + | } |
| + | } |
| + | } |
| + | } |
| + | } |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_type.scss
+513
-0
| @@ | @@ -0,0 +1,513 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | $include-html-type-classes: $include-html-classes !default; |
| + | |
| + | // We use these to control header font styles |
| + | $header-font-family: $body-font-family !default; |
| + | $header-font-weight: $font-weight-normal !default; |
| + | $header-font-style: $font-weight-normal !default; |
| + | $header-font-color: #222 !default; |
| + | $header-line-height: 1.4 !default; |
| + | $header-top-margin: .2rem !default; |
| + | $header-bottom-margin: .5rem !default; |
| + | $header-text-rendering: optimizeLegibility !default; |
| + | |
| + | // We use these to control header font sizes |
| + | $h1-font-size: rem-calc(44) !default; |
| + | $h2-font-size: rem-calc(37) !default; |
| + | $h3-font-size: rem-calc(27) !default; |
| + | $h4-font-size: rem-calc(23) !default; |
| + | $h5-font-size: rem-calc(18) !default; |
| + | $h6-font-size: 1rem !default; |
| + | |
| + | // We use these to control header size reduction on small screens |
| + | $h1-font-reduction: rem-calc(10) !default; |
| + | $h2-font-reduction: rem-calc(10) !default; |
| + | $h3-font-reduction: rem-calc(5) !default; |
| + | $h4-font-reduction: rem-calc(5) !default; |
| + | $h5-font-reduction: 0 !default; |
| + | $h6-font-reduction: 0 !default; |
| + | |
| + | // These control how subheaders are styled. |
| + | $subheader-line-height: 1.4 !default; |
| + | $subheader-font-color: scale-color($header-font-color, $lightness: 35%) !default; |
| + | $subheader-font-weight: $font-weight-normal !default; |
| + | $subheader-top-margin: .2rem !default; |
| + | $subheader-bottom-margin: .5rem !default; |
| + | |
| + | // A general <small> styling |
| + | $small-font-size: 60% !default; |
| + | $small-font-color: scale-color($header-font-color, $lightness: 35%) !default; |
| + | |
| + | // We use these to style paragraphs |
| + | $paragraph-font-family: inherit !default; |
| + | $paragraph-font-weight: $font-weight-normal !default; |
| + | $paragraph-font-size: 1rem !default; |
| + | $paragraph-line-height: 1.6 !default; |
| + | $paragraph-margin-bottom: rem-calc(20) !default; |
| + | $paragraph-aside-font-size: rem-calc(14) !default; |
| + | $paragraph-aside-line-height: 1.35 !default; |
| + | $paragraph-aside-font-style: italic !default; |
| + | $paragraph-text-rendering: optimizeLegibility !default; |
| + | |
| + | // We use these to style <code> tags |
| + | $code-color: scale-color($alert-color, $lightness: -27%) !default; |
| + | $code-font-family: Consolas, 'Liberation Mono', Courier, monospace !default; |
| + | $code-font-weight: $font-weight-bold !default; |
| + | |
| + | // We use these to style anchors |
| + | $anchor-text-decoration: none !default; |
| + | $anchor-text-decoration-hover: none !default; |
| + | $anchor-font-color: $primary-color !default; |
| + | $anchor-font-color-hover: scale-color($anchor-font-color, $lightness: -14%) !default; |
| + | |
| + | // We use these to style the <hr> element |
| + | $hr-border-width: 1px !default; |
| + | $hr-border-style: solid !default; |
| + | $hr-border-color: #ddd !default; |
| + | $hr-margin: rem-calc(20) !default; |
| + | |
| + | // We use these to style lists |
| + | $list-font-family: $paragraph-font-family !default; |
| + | $list-font-size: $paragraph-font-size !default; |
| + | $list-line-height: $paragraph-line-height !default; |
| + | $list-margin-bottom: $paragraph-margin-bottom !default; |
| + | $list-style-position: outside !default; |
| + | $list-side-margin: 1.1rem !default; |
| + | $list-ordered-side-margin: 1.4rem !default; |
| + | $list-side-margin-no-bullet: 0 !default; |
| + | $list-nested-margin: rem-calc(20) !default; |
| + | $definition-list-header-weight: $font-weight-bold !default; |
| + | $definition-list-header-margin-bottom: .3rem !default; |
| + | $definition-list-margin-bottom: rem-calc(12) !default; |
| + | |
| + | // We use these to style blockquotes |
| + | $blockquote-font-color: scale-color($header-font-color, $lightness: 35%) !default; |
| + | $blockquote-padding: rem-calc(9 20 0 19) !default; |
| + | $blockquote-border: 1px solid #ddd !default; |
| + | $blockquote-cite-font-size: rem-calc(13) !default; |
| + | $blockquote-cite-font-color: scale-color($header-font-color, $lightness: 23%) !default; |
| + | $blockquote-cite-link-color: $blockquote-cite-font-color !default; |
| + | |
| + | // Acronym styles |
| + | $acronym-underline: 1px dotted #ddd !default; |
| + | |
| + | // We use these to control padding and margin |
| + | $microformat-padding: rem-calc(10 12) !default; |
| + | $microformat-margin: rem-calc(0 0 20 0) !default; |
| + | |
| + | // We use these to control the border styles |
| + | $microformat-border-width: 1px !default; |
| + | $microformat-border-style: solid !default; |
| + | $microformat-border-color: #ddd !default; |
| + | |
| + | // We use these to control full name font styles |
| + | $microformat-fullname-font-weight: $font-weight-bold !default; |
| + | $microformat-fullname-font-size: rem-calc(15) !default; |
| + | |
| + | // We use this to control the summary font styles |
| + | $microformat-summary-font-weight: $font-weight-bold !default; |
| + | |
| + | // We use this to control abbr padding |
| + | $microformat-abbr-padding: rem-calc(0 1) !default; |
| + | |
| + | // We use this to control abbr font styles |
| + | $microformat-abbr-font-weight: $font-weight-bold !default; |
| + | $microformat-abbr-font-decoration: none !default; |
| + | |
| + | // Text alignment class names |
| + | $align-class-names: |
| + | small-only, |
| + | small, |
| + | medium-only, |
| + | medium, |
| + | large-only, |
| + | large, |
| + | xlarge-only, |
| + | xlarge, |
| + | xxlarge-only, |
| + | xxlarge; |
| + | |
| + | // Text alignment breakpoints |
| + | $align-class-breakpoints: |
| + | $small-only, |
| + | $small-up, |
| + | $medium-only, |
| + | $medium-up, |
| + | $large-only, |
| + | $large-up, |
| + | $xlarge-only, |
| + | $xlarge-up, |
| + | $xxlarge-only, |
| + | $xxlarge-up; |
| + | |
| + | // Generates text align and justify classes |
| + | @mixin align-classes{ |
| + | .text-left { text-align: left !important; } |
| + | .text-right { text-align: right !important; } |
| + | .text-center { text-align: center !important; } |
| + | .text-justify { text-align: justify !important; } |
| + | |
| + | @for $i from 1 through length($align-class-names) { |
| + | @media #{(nth($align-class-breakpoints, $i))} { |
| + | .#{(nth($align-class-names, $i))}-text-left { text-align: left !important; } |
| + | .#{(nth($align-class-names, $i))}-text-right { text-align: right !important; } |
| + | .#{(nth($align-class-names, $i))}-text-center { text-align: center !important; } |
| + | .#{(nth($align-class-names, $i))}-text-justify { text-align: justify !important; } |
| + | } |
| + | } |
| + | } |
| + | |
| + | // |
| + | // Typography Placeholders |
| + | // |
| + | |
| + | // These will throw a deprecation warning if used within a media query. |
| + | @mixin lead { |
| + | font-size: $paragraph-font-size + rem-calc(3.5); |
| + | line-height: 1.6; |
| + | } |
| + | |
| + | @mixin subheader { |
| + | line-height: $subheader-line-height; |
| + | color: $subheader-font-color; |
| + | font-weight: $subheader-font-weight; |
| + | margin-top: $subheader-top-margin; |
| + | margin-bottom: $subheader-bottom-margin; |
| + | } |
| + | @include exports("type") { |
| + | @if $include-html-type-classes { |
| + | // Responsive Text alignment |
| + | @include align-classes; |
| + | |
| + | /* Typography resets */ |
| + | div, |
| + | dl, |
| + | dt, |
| + | dd, |
| + | ul, |
| + | ol, |
| + | li, |
| + | h1, |
| + | h2, |
| + | h3, |
| + | h4, |
| + | h5, |
| + | h6, |
| + | pre, |
| + | form, |
| + | p, |
| + | blockquote, |
| + | th, |
| + | td { |
| + | margin:0; |
| + | padding:0; |
| + | } |
| + | |
| + | /* Default Link Styles */ |
| + | a { |
| + | color: $anchor-font-color; |
| + | text-decoration: $anchor-text-decoration; |
| + | line-height: inherit; |
| + | |
| + | &:hover, |
| + | &:focus { |
| + | color: $anchor-font-color-hover; |
| + | @if $anchor-text-decoration-hover != $anchor-text-decoration { |
| + | text-decoration: $anchor-text-decoration-hover; |
| + | } |
| + | } |
| + | |
| + | img { border:none; } |
| + | } |
| + | |
| + | /* Default paragraph styles */ |
| + | p { |
| + | font-family: $paragraph-font-family; |
| + | font-weight: $paragraph-font-weight; |
| + | font-size: $paragraph-font-size; |
| + | line-height: $paragraph-line-height; |
| + | margin-bottom: $paragraph-margin-bottom; |
| + | text-rendering: $paragraph-text-rendering; |
| + | |
| + | &.lead { @include lead; } |
| + | |
| + | & aside { |
| + | font-size: $paragraph-aside-font-size; |
| + | line-height: $paragraph-aside-line-height; |
| + | font-style: $paragraph-aside-font-style; |
| + | } |
| + | } |
| + | |
| + | /* Default header styles */ |
| + | h1, h2, h3, h4, h5, h6 { |
| + | font-family: $header-font-family; |
| + | font-weight: $header-font-weight; |
| + | font-style: $header-font-style; |
| + | color: $header-font-color; |
| + | text-rendering: $header-text-rendering; |
| + | margin-top: $header-top-margin; |
| + | margin-bottom: $header-bottom-margin; |
| + | line-height: $header-line-height; |
| + | |
| + | small { |
| + | font-size: $small-font-size; |
| + | color: $small-font-color; |
| + | line-height: 0; |
| + | } |
| + | } |
| + | |
| + | h1 { font-size: $h1-font-size - $h1-font-reduction; } |
| + | h2 { font-size: $h2-font-size - $h2-font-reduction; } |
| + | h3 { font-size: $h3-font-size - $h3-font-reduction; } |
| + | h4 { font-size: $h4-font-size - $h4-font-reduction; } |
| + | h5 { font-size: $h5-font-size - $h5-font-reduction; } |
| + | h6 { font-size: $h6-font-size - $h6-font-reduction; } |
| + | |
| + | .subheader { @include subheader; } |
| + | |
| + | hr { |
| + | border: $hr-border-style $hr-border-color; |
| + | border-width: $hr-border-width 0 0; |
| + | clear: both; |
| + | margin: $hr-margin 0 ($hr-margin - rem-calc($hr-border-width)); |
| + | height: 0; |
| + | } |
| + | |
| + | /* Helpful Typography Defaults */ |
| + | em, |
| + | i { |
| + | font-style: italic; |
| + | line-height: inherit; |
| + | } |
| + | |
| + | strong, |
| + | b { |
| + | font-weight: $font-weight-bold; |
| + | line-height: inherit; |
| + | } |
| + | |
| + | small { |
| + | font-size: $small-font-size; |
| + | line-height: inherit; |
| + | } |
| + | |
| + | code { |
| + | font-family: $code-font-family; |
| + | font-weight: $code-font-weight; |
| + | color: $code-color; |
| + | } |
| + | |
| + | /* Lists */ |
| + | ul, |
| + | ol, |
| + | dl { |
| + | font-size: $list-font-size; |
| + | line-height: $list-line-height; |
| + | margin-bottom: $list-margin-bottom; |
| + | list-style-position: $list-style-position; |
| + | font-family: $list-font-family; |
| + | } |
| + | |
| + | ul { |
| + | margin-#{$default-float}: $list-side-margin; |
| + | &.no-bullet { |
| + | margin-#{$default-float}: $list-side-margin-no-bullet; |
| + | li { |
| + | ul, |
| + | ol { |
| + | margin-#{$default-float}: $list-nested-margin; |
| + | margin-bottom: 0; |
| + | list-style: none; |
| + | } |
| + | } |
| + | } |
| + | } |
| + | |
| + | /* Unordered Lists */ |
| + | ul { |
| + | li { |
| + | ul, |
| + | ol { |
| + | margin-#{$default-float}: $list-nested-margin; |
| + | margin-bottom: 0; |
| + | } |
| + | } |
| + | &.square, |
| + | &.circle, |
| + | &.disc { |
| + | li ul { list-style: inherit; } |
| + | } |
| + | |
| + | &.square { list-style-type: square; margin-#{$default-float}: $list-side-margin;} |
| + | &.circle { list-style-type: circle; margin-#{$default-float}: $list-side-margin;} |
| + | &.disc { list-style-type: disc; margin-#{$default-float}: $list-side-margin;} |
| + | &.no-bullet { list-style: none; } |
| + | } |
| + | |
| + | /* Ordered Lists */ |
| + | ol { |
| + | margin-#{$default-float}: $list-ordered-side-margin; |
| + | li { |
| + | ul, |
| + | ol { |
| + | margin-#{$default-float}: $list-nested-margin; |
| + | margin-bottom: 0; |
| + | } |
| + | } |
| + | } |
| + | |
| + | /* Definition Lists */ |
| + | dl { |
| + | dt { |
| + | margin-bottom: $definition-list-header-margin-bottom; |
| + | font-weight: $definition-list-header-weight; |
| + | } |
| + | dd { margin-bottom: $definition-list-margin-bottom; } |
| + | } |
| + | |
| + | /* Abbreviations */ |
| + | abbr, |
| + | acronym { |
| + | text-transform: uppercase; |
| + | font-size: 90%; |
| + | color: $body-font-color; |
| + | border-bottom: $acronym-underline; |
| + | cursor: $cursor-help-value; |
| + | } |
| + | abbr { |
| + | text-transform: none; |
| + | } |
| + | |
| + | /* Blockquotes */ |
| + | blockquote { |
| + | margin: 0 0 $paragraph-margin-bottom; |
| + | padding: $blockquote-padding; |
| + | border-#{$default-float}: $blockquote-border; |
| + | |
| + | cite { |
| + | display: block; |
| + | font-size: $blockquote-cite-font-size; |
| + | color: $blockquote-cite-font-color; |
| + | &:before { |
| + | content: "\2014 \0020"; |
| + | } |
| + | |
| + | a, |
| + | a:visited { |
| + | color: $blockquote-cite-link-color; |
| + | } |
| + | } |
| + | } |
| + | blockquote, |
| + | blockquote p { |
| + | line-height: $paragraph-line-height; |
| + | color: $blockquote-font-color; |
| + | } |
| + | |
| + | /* Microformats */ |
| + | .vcard { |
| + | display: inline-block; |
| + | margin: $microformat-margin; |
| + | border: $microformat-border-width $microformat-border-style $microformat-border-color; |
| + | padding: $microformat-padding; |
| + | |
| + | li { |
| + | margin: 0; |
| + | display: block; |
| + | } |
| + | .fn { |
| + | font-weight: $microformat-fullname-font-weight; |
| + | font-size: $microformat-fullname-font-size; |
| + | } |
| + | } |
| + | |
| + | .vevent { |
| + | .summary { font-weight: $microformat-summary-font-weight; } |
| + | |
| + | abbr { |
| + | cursor: $cursor-default-value; |
| + | text-decoration: $microformat-abbr-font-decoration; |
| + | font-weight: $microformat-abbr-font-weight; |
| + | border: none; |
| + | padding: $microformat-abbr-padding; |
| + | } |
| + | } |
| + | |
| + | |
| + | @media #{$medium-up} { |
| + | h1,h2,h3,h4,h5,h6 { line-height: $header-line-height; } |
| + | h1 { font-size: $h1-font-size; } |
| + | h2 { font-size: $h2-font-size; } |
| + | h3 { font-size: $h3-font-size; } |
| + | h4 { font-size: $h4-font-size; } |
| + | h5 { font-size: $h5-font-size; } |
| + | h6 { font-size: $h6-font-size; } |
| + | } |
| + | |
| + | // Only include these styles if you want them. |
| + | @if $include-print-styles { |
| + | /* |
| + | * Print styles. |
| + | * |
| + | * Inlined to avoid required HTTP connection: www.phpied.com/delay-loading-your-print-css/ |
| + | * Credit to Paul Irish and HTML5 Boilerplate (html5boilerplate.com) |
| + | */ |
| + | .print-only { display: none !important; } |
| + | @media print { |
| + | * { |
| + | background: transparent !important; |
| + | color: #000 !important; /* Black prints faster: h5bp.com/s */ |
| + | box-shadow: none !important; |
| + | text-shadow: none !important; |
| + | } |
| + | |
| + | a, |
| + | a:visited { text-decoration: underline;} |
| + | a[href]:after { content: " (" attr(href) ")"; } |
| + | |
| + | abbr[title]:after { content: " (" attr(title) ")"; } |
| + | |
| + | // Don't show links for images, or javascript/internal links |
| + | .ir a:after, |
| + | a[href^="javascript:"]:after, |
| + | a[href^="#"]:after { content: ""; } |
| + | |
| + | pre, |
| + | blockquote { |
| + | border: 1px solid #999; |
| + | page-break-inside: avoid; |
| + | } |
| + | |
| + | thead { display: table-header-group; /* h5bp.com/t */ } |
| + | |
| + | tr, |
| + | img { page-break-inside: avoid; } |
| + | |
| + | img { max-width: 100% !important; } |
| + | |
| + | @page { margin: 0.5cm; } |
| + | |
| + | p, |
| + | h2, |
| + | h3 { |
| + | orphans: 3; |
| + | widows: 3; |
| + | } |
| + | |
| + | h2, |
| + | h3 { page-break-after: avoid; } |
| + | |
| + | .hide-on-print { display: none !important; } |
| + | .print-only { display: block !important; } |
| + | .hide-for-print { display: none !important; } |
| + | .show-for-print { display: inherit !important; } |
| + | } |
| + | } |
| + | |
| + | } |
| + | } |
generators/foundation5/public/stylesheets/foundation/components/_visibility.scss
+408
-0
| @@ | @@ -0,0 +1,408 @@ |
| + | // Foundation by ZURB |
| + | // foundation.zurb.com |
| + | // Licensed under MIT Open Source |
| + | |
| + | @import "global"; |
| + | |
| + | // |
| + | // Foundation Visibility Classes |
| + | // |
| + | $include-html-visibility-classes: $include-html-classes !default; |
| + | $include-accessibility-classes: true !default; |
| + | $include-table-visibility-classes: true !default; |
| + | $include-legacy-visibility-classes: true !default; |
| + | |
| + | // |
| + | // Media Class Names |
| + | // |
| + | // Visibility Breakpoints |
| + | $visibility-breakpoint-sizes: |
| + | small, |
| + | medium, |
| + | large, |
| + | xlarge, |
| + | xxlarge; |
| + | |
| + | $visibility-breakpoint-queries: |
| + | unquote($small-up), |
| + | unquote($medium-up), |
| + | unquote($large-up), |
| + | unquote($xlarge-up), |
| + | unquote($xxlarge-up); |
| + | |
| + | @mixin visibility-loop { |
| + | @each $current-visibility-breakpoint in $visibility-breakpoint-sizes { |
| + | $visibility-inherit-list: (); |
| + | $visibility-none-list: (); |
| + | |
| + | $visibility-visible-list: (); |
| + | $visibility-hidden-list: (); |
| + | |
| + | $visibility-table-list: (); |
| + | $visibility-table-header-group-list: (); |
| + | $visibility-table-row-group-list: (); |
| + | $visibility-table-row-list: (); |
| + | $visibility-table-cell-list: (); |
| + | |
| + | @each $visibility-comparison-breakpoint in $visibility-breakpoint-sizes { |
| + | @if index($visibility-breakpoint-sizes, $visibility-comparison-breakpoint) < index($visibility-breakpoint-sizes, $current-visibility-breakpoint) { |
| + | // Smaller than current breakpoint |
| + | |
| + | $visibility-inherit-list: append($visibility-inherit-list, unquote( |
| + | '.hide-for-#{$visibility-comparison-breakpoint}-only, .show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-none-list: append($visibility-none-list, unquote( |
| + | '.show-for-#{$visibility-comparison-breakpoint}-only, .hide-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-visible-list: append($visibility-visible-list, unquote( |
| + | '.hidden-for-#{$visibility-comparison-breakpoint}-only, .visible-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-hidden-list: append($visibility-hidden-list, unquote( |
| + | '.visible-for-#{$visibility-comparison-breakpoint}-only, .hidden-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-list: append($visibility-table-list, unquote( |
| + | 'table.hide-for-#{$visibility-comparison-breakpoint}-only, table.show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote( |
| + | 'thead.hide-for-#{$visibility-comparison-breakpoint}-only, thead.show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote( |
| + | 'tbody.hide-for-#{$visibility-comparison-breakpoint}-only, tbody.show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-row-list: append($visibility-table-row-list, unquote( |
| + | 'tr.hide-for-#{$visibility-comparison-breakpoint}-only, tr.show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-cell-list: append($visibility-table-cell-list, unquote( |
| + | 'th.hide-for-#{$visibility-comparison-breakpoint}-only, td.hide-for-#{$visibility-comparison-breakpoint}-only, th.show-for-#{$visibility-comparison-breakpoint}-up, td.show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | |
| + | // Foundation 4 compatibility: |
| + | // Include .show/hide-for-[size] and .show/hide-for-[size]-down classes |
| + | // for small, medium, and large breakpoints only |
| + | @if $include-legacy-visibility-classes and index((small, medium, large), $visibility-comparison-breakpoint) != false { |
| + | $visibility-inherit-list: append($visibility-inherit-list, unquote( |
| + | '.hide-for-#{$visibility-comparison-breakpoint}, .hide-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-none-list: append($visibility-none-list, unquote( |
| + | '.show-for-#{$visibility-comparison-breakpoint}, .show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-visible-list: append($visibility-visible-list, unquote( |
| + | '.hidden-for-#{$visibility-comparison-breakpoint}, .hidden-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-hidden-list: append($visibility-hidden-list, unquote( |
| + | '.visible-for-#{$visibility-comparison-breakpoint}, .visible-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-list: append($visibility-table-list, unquote( |
| + | 'table.hide-for-#{$visibility-comparison-breakpoint}, table.hide-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote( |
| + | 'thead.hide-for-#{$visibility-comparison-breakpoint}, thead.hide-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote( |
| + | 'tbody.hide-for-#{$visibility-comparison-breakpoint}, tbody.hide-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-row-list: append($visibility-table-row-list, unquote( |
| + | 'tr.hide-for-#{$visibility-comparison-breakpoint}, tr.hide-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-cell-list: append($visibility-table-cell-list, unquote( |
| + | 'th.hide-for-#{$visibility-comparison-breakpoint}, td.hide-for-#{$visibility-comparison-breakpoint}, th.hide-for-#{$visibility-comparison-breakpoint}-down, td.hide-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | } |
| + | |
| + | } @else if index($visibility-breakpoint-sizes, $visibility-comparison-breakpoint) > index($visibility-breakpoint-sizes, $current-visibility-breakpoint) { |
| + | // Larger than current breakpoint |
| + | |
| + | $visibility-inherit-list: append($visibility-inherit-list, unquote( |
| + | '.hide-for-#{$visibility-comparison-breakpoint}-only, .hide-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-none-list: append($visibility-none-list, unquote( |
| + | '.show-for-#{$visibility-comparison-breakpoint}-only, .show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-visible-list: append($visibility-visible-list, unquote( |
| + | '.hidden-for-#{$visibility-comparison-breakpoint}-only, .hidden-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-hidden-list: append($visibility-hidden-list, unquote( |
| + | '.visible-for-#{$visibility-comparison-breakpoint}-only, .visible-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-list: append($visibility-table-list, unquote( |
| + | 'table.hide-for-#{$visibility-comparison-breakpoint}-only, table.hide-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote( |
| + | 'thead.hide-for-#{$visibility-comparison-breakpoint}-only, thead.hide-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote( |
| + | 'tbody.hide-for-#{$visibility-comparison-breakpoint}-only, tbody.hide-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-row-list: append($visibility-table-row-list, unquote( |
| + | 'tr.hide-for-#{$visibility-comparison-breakpoint}-only, tr.hide-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-cell-list: append($visibility-table-cell-list, unquote( |
| + | 'th.hide-for-#{$visibility-comparison-breakpoint}-only, td.hide-for-#{$visibility-comparison-breakpoint}-only, th.hide-for-#{$visibility-comparison-breakpoint}-up, td.hide-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | |
| + | // Foundation 4 compatibility: |
| + | // Include .show/hide-for-[size] and .show/hide-for-[size]-down classes |
| + | // for small, medium, and large breakpoints only |
| + | @if $include-legacy-visibility-classes and index((small, medium, large), $visibility-comparison-breakpoint) != false { |
| + | $visibility-inherit-list: append($visibility-inherit-list, unquote( |
| + | '.hide-for-#{$visibility-comparison-breakpoint}, .show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-none-list: append($visibility-none-list, unquote( |
| + | '.show-for-#{$visibility-comparison-breakpoint}, .hide-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-visible-list: append($visibility-visible-list, unquote( |
| + | '.hidden-for-#{$visibility-comparison-breakpoint}, .visible-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-hidden-list: append($visibility-hidden-list, unquote( |
| + | '.visible-for-#{$visibility-comparison-breakpoint}, .hidden-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-list: append($visibility-table-list, unquote( |
| + | 'table.hide-for-#{$visibility-comparison-breakpoint}, table.show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote( |
| + | 'thead.hide-for-#{$visibility-comparison-breakpoint}, thead.show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote( |
| + | 'tbody.hide-for-#{$visibility-comparison-breakpoint}, tbody.show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-row-list: append($visibility-table-row-list, unquote( |
| + | 'tr.hide-for-#{$visibility-comparison-breakpoint}, tr.show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-cell-list: append($visibility-table-cell-list, unquote( |
| + | 'th.hide-for-#{$visibility-comparison-breakpoint}, td.hide-for-#{$visibility-comparison-breakpoint}, th.show-for-#{$visibility-comparison-breakpoint}-down, td.show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | } |
| + | |
| + | } @else { |
| + | // Current breakpoint |
| + | |
| + | $visibility-inherit-list: append($visibility-inherit-list, unquote( |
| + | '.show-for-#{$visibility-comparison-breakpoint}-only, .show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-none-list: append($visibility-none-list, unquote( |
| + | '.hide-for-#{$visibility-comparison-breakpoint}-only, .hide-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-visible-list: append($visibility-visible-list, unquote( |
| + | '.visible-for-#{$visibility-comparison-breakpoint}-only, .visible-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-hidden-list: append($visibility-hidden-list, unquote( |
| + | '.hidden-for-#{$visibility-comparison-breakpoint}-only, .hidden-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-list: append($visibility-table-list, unquote( |
| + | 'table.show-for-#{$visibility-comparison-breakpoint}-only, table.show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote( |
| + | 'thead.show-for-#{$visibility-comparison-breakpoint}-only, thead.show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote( |
| + | 'tbody.show-for-#{$visibility-comparison-breakpoint}-only, tbody.show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-row-list: append($visibility-table-row-list, unquote( |
| + | 'tr.show-for-#{$visibility-comparison-breakpoint}-only, tr.show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | $visibility-table-cell-list: append($visibility-table-cell-list, unquote( |
| + | 'th.show-for-#{$visibility-comparison-breakpoint}-only, td.show-for-#{$visibility-comparison-breakpoint}-only, th.show-for-#{$visibility-comparison-breakpoint}-up, td.show-for-#{$visibility-comparison-breakpoint}-up' |
| + | ), comma); |
| + | |
| + | // Foundation 4 compatibility: |
| + | // Include .show/hide-for-[size] and .show/hide-for-[size]-down classes |
| + | // for small, medium, and large breakpoints only |
| + | @if $include-legacy-visibility-classes and index((small, medium, large), $visibility-comparison-breakpoint) != false { |
| + | $visibility-inherit-list: append($visibility-inherit-list, unquote( |
| + | '.show-for-#{$visibility-comparison-breakpoint}, .show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-none-list: append($visibility-none-list, unquote( |
| + | '.hide-for-#{$visibility-comparison-breakpoint}, .hide-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-visible-list: append($visibility-visible-list, unquote( |
| + | '.visible-for-#{$visibility-comparison-breakpoint}, .visible-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-hidden-list: append($visibility-hidden-list, unquote( |
| + | '.hidden-for-#{$visibility-comparison-breakpoint}, .hidden-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-list: append($visibility-table-list, unquote( |
| + | 'table.show-for-#{$visibility-comparison-breakpoint}, table.show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-header-group-list: append($visibility-table-header-group-list, unquote( |
| + | 'thead.show-for-#{$visibility-comparison-breakpoint}, thead.show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-row-group-list: append($visibility-table-row-group-list, unquote( |
| + | 'tbody.show-for-#{$visibility-comparison-breakpoint}, tbody.show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-row-list: append($visibility-table-row-list, unquote( |
| + | 'tr.show-for-#{$visibility-comparison-breakpoint}, tr.show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | $visibility-table-cell-list: append($visibility-table-cell-list, unquote( |
| + | 'th.show-for-#{$visibility-comparison-breakpoint}, td.show-for-#{$visibility-comparison-breakpoint}, th.show-for-#{$visibility-comparison-breakpoint}-down, td.show-for-#{$visibility-comparison-breakpoint}-down' |
| + | ), comma); |
| + | } |
| + | } |
| + | } |
| + | |
| + | /* #{$current-visibility-breakpoint} displays */ |
| + | @media #{nth($visibility-breakpoint-queries, index($visibility-breakpoint-sizes, $current-visibility-breakpoint))} { |
| + | #{$visibility-inherit-list} { |
| + | display: inherit !important; |
| + | } |
| + | #{$visibility-none-list} { |
| + | display: none !important; |
| + | } |
| + | @if $include-accessibility-classes != false { |
| + | #{$visibility-visible-list} { |
| + | @include element-invisible-off; |
| + | } |
| + | #{$visibility-hidden-list} { |
| + | @include element-invisible; |
| + | } |
| + | } |
| + | @if $include-table-visibility-classes != false { |
| + | #{$visibility-table-list} { |
| + | display: table; |
| + | } |
| + | #{$visibility-table-header-group-list} { |
| + | display: table-header-group !important; |
| + | } |
| + | #{$visibility-table-row-group-list} { |
| + | display: table-row-group !important; |
| + | } |
| + | #{$visibility-table-row-list} { |
| + | display: table-row !important; |
| + | } |
| + | #{$visibility-table-cell-list} { |
| + | display: table-cell !important; |
| + | } |
| + | } |
| + | } |
| + | } |
| + | } |
| + | |
| + | |
| + | @if $include-html-visibility-classes != false { |
| + | |
| + | @include visibility-loop; |
| + | |
| + | /* Orientation targeting */ |
| + | .show-for-landscape, |
| + | .hide-for-portrait { display: inherit !important; } |
| + | .hide-for-landscape, |
| + | .show-for-portrait { display: none !important; } |
| + | |
| + | /* Specific visibility for tables */ |
| + | table { |
| + | &.hide-for-landscape, |
| + | &.show-for-portrait { display: table; } |
| + | } |
| + | thead { |
| + | &.hide-for-landscape, |
| + | &.show-for-portrait { display: table-header-group !important; } |
| + | } |
| + | tbody { |
| + | &.hide-for-landscape, |
| + | &.show-for-portrait { display: table-row-group !important; } |
| + | } |
| + | tr { |
| + | &.hide-for-landscape, |
| + | &.show-for-portrait { display: table-row !important; } |
| + | } |
| + | td, |
| + | th { |
| + | &.hide-for-landscape, |
| + | &.show-for-portrait { display: table-cell !important; } |
| + | } |
| + | |
| + | @media #{$landscape} { |
| + | .show-for-landscape, |
| + | .hide-for-portrait { display: inherit !important; } |
| + | .hide-for-landscape, |
| + | .show-for-portrait { display: none !important; } |
| + | |
| + | /* Specific visibility for tables */ |
| + | table { |
| + | &.show-for-landscape, |
| + | &.hide-for-portrait { display: table; } |
| + | } |
| + | thead { |
| + | &.show-for-landscape, |
| + | &.hide-for-portrait { display: table-header-group !important; } |
| + | } |
| + | tbody { |
| + | &.show-for-landscape, |
| + | &.hide-for-portrait { display: table-row-group !important; } |
| + | } |
| + | tr { |
| + | &.show-for-landscape, |
| + | &.hide-for-portrait { display: table-row !important; } |
| + | } |
| + | td, |
| + | th { |
| + | &.show-for-landscape, |
| + | &.hide-for-portrait { display: table-cell !important; } |
| + | } |
| + | } |
| + | |
| + | @media #{$portrait} { |
| + | .show-for-portrait, |
| + | .hide-for-landscape { display: inherit !important; } |
| + | .hide-for-portrait, |
| + | .show-for-landscape { display: none !important; } |
| + | |
| + | /* Specific visibility for tables */ |
| + | table { |
| + | &.show-for-portrait, |
| + | &.hide-for-landscape { display: table; } |
| + | } |
| + | thead { |
| + | &.show-for-portrait, |
| + | &.hide-for-landscape { display: table-header-group !important; } |
| + | } |
| + | tbody { |
| + | &.show-for-portrait, |
| + | &.hide-for-landscape { display: table-row-group !important; } |
| + | } |
| + | tr { |
| + | &.show-for-portrait, |
| + | &.hide-for-landscape { display: table-row !important; } |
| + | } |
| + | td, |
| + | th { |
| + | &.show-for-portrait, |
| + | &.hide-for-landscape { display: table-cell !important; } |
| + | } |
| + | } |
| + | |
| + | /* Touch-enabled device targeting */ |
| + | .show-for-touch { display: none !important; } |
| + | .hide-for-touch { display: inherit !important; } |
| + | .touch .show-for-touch { display: inherit !important; } |
| + | .touch .hide-for-touch { display: none !important; } |
| + | |
| + | /* Specific visibility for tables */ |
| + | table.hide-for-touch { display: table; } |
| + | .touch table.show-for-touch { display: table; } |
| + | thead.hide-for-touch { display: table-header-group !important; } |
| + | .touch thead.show-for-touch { display: table-header-group !important; } |
| + | tbody.hide-for-touch { display: table-row-group !important; } |
| + | .touch tbody.show-for-touch { display: table-row-group !important; } |
| + | tr.hide-for-touch { display: table-row !important; } |
| + | .touch tr.show-for-touch { display: table-row !important; } |
| + | td.hide-for-touch { display: table-cell !important; } |
| + | .touch td.show-for-touch { display: table-cell !important; } |
| + | th.hide-for-touch { display: table-cell !important; } |
| + | .touch th.show-for-touch { display: table-cell !important; } |
| + | |
| + | |
| + | /* Print visibility */ |
| + | @media print { |
| + | .show-for-print { display: block; } |
| + | .hide-for-print { display: none; } |
| + | |
| + | table.show-for-print { display: table; } |
| + | thead.show-for-print { display: table-header-group !important; } |
| + | tbody.show-for-print { display: table-row-group !important; } |
| + | tr.show-for-print { display: table-row !important; } |
| + | td.show-for-print { display: table-cell !important; } |
| + | th.show-for-print { display: table-cell !important; } |
| + | |
| + | } |
| + | |
| + | } |
generators/foundation5/public/stylesheets/normalize.css
+252
-169
| @@ | @@ -1,10 +1,34 @@ |
| - | /*! normalize.css v2.1.2 | MIT License | git.io/normalize */ |
| - | /* ========================================================================== |
| - | HTML5 display definitions |
| + | /*! normalize.css v3.0.1 | MIT License | git.io/normalize */ |
| + | |
| + | /** |
| + | * 1. Set default font family to sans-serif. |
| + | * 2. Prevent iOS text size adjust after orientation change, without disabling |
| + | * user zoom. |
| + | */ |
| + | |
| + | html { |
| + | font-family: sans-serif; /* 1 */ |
| + | -ms-text-size-adjust: 100%; /* 2 */ |
| + | -webkit-text-size-adjust: 100%; /* 2 */ |
| + | } |
| + | |
| + | /** |
| + | * Remove default margin. |
| + | */ |
| + | |
| + | body { |
| + | margin: 0; |
| + | } |
| + | |
| + | /* HTML5 display definitions |
| ========================================================================== */ | |
| + | |
| /** | |
| - | * Correct `block` display not defined in IE 8/9. |
| + | * Correct `block` display not defined for any HTML5 element in IE 8/9. |
| + | * Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox. |
| + | * Correct `block` display not defined for `main` in IE 11. |
| */ | |
| + | |
| article, | |
| aside, | |
| details, | |
| @@ | @@ -17,246 +41,241 @@ main, |
| nav, | |
| section, | |
| summary { | |
| - | display: block; } |
| + | display: block; |
| + | } |
| /** | |
| - | * Correct `inline-block` display not defined in IE 8/9. |
| + | * 1. Correct `inline-block` display not defined in IE 8/9. |
| + | * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. |
| */ | |
| + | |
| audio, | |
| canvas, | |
| + | progress, |
| video { | |
| - | display: inline-block; } |
| + | display: inline-block; /* 1 */ |
| + | vertical-align: baseline; /* 2 */ |
| + | } |
| /** | |
| * Prevent modern browsers from displaying `audio` without controls. | |
| * Remove excess height in iOS 5 devices. | |
| */ | |
| + | |
| audio:not([controls]) { | |
| display: none; | |
| - | height: 0; } |
| + | height: 0; |
| + | } |
| /** | |
| - | * Address `[hidden]` styling not present in IE 8/9. |
| - | * Hide the `template` element in IE, Safari, and Firefox < 22. |
| + | * Address `[hidden]` styling not present in IE 8/9/10. |
| + | * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. |
| */ | |
| + | |
| [hidden], | |
| template { | |
| - | display: none; } |
| - | |
| - | script { |
| - | display: none !important; } |
| + | display: none; |
| + | } |
| - | /* ========================================================================== |
| - | Base |
| + | /* Links |
| ========================================================================== */ | |
| - | /** |
| - | * 1. Set default font family to sans-serif. |
| - | * 2. Prevent iOS text size adjust after orientation change, without disabling |
| - | * user zoom. |
| - | */ |
| - | html { |
| - | font-family: sans-serif; |
| - | /* 1 */ |
| - | -ms-text-size-adjust: 100%; |
| - | /* 2 */ |
| - | -webkit-text-size-adjust: 100%; |
| - | /* 2 */ } |
| - | /** |
| - | * Remove default margin. |
| - | */ |
| - | body { |
| - | margin: 0; } |
| - | |
| - | /* ========================================================================== |
| - | Links |
| - | ========================================================================== */ |
| /** | |
| * Remove the gray background color from active links in IE 10. | |
| */ | |
| - | a { |
| - | background: transparent; } |
| - | /** |
| - | * Address `outline` inconsistency between Chrome and other browsers. |
| - | */ |
| - | a:focus { |
| - | outline: thin dotted; } |
| + | a { |
| + | background: transparent; |
| + | } |
| /** | |
| * Improve readability when focused and also mouse hovered in all browsers. | |
| */ | |
| + | |
| a:active, | |
| a:hover { | |
| - | outline: 0; } |
| + | outline: 0; |
| + | } |
| - | /* ========================================================================== |
| - | Typography |
| + | /* Text-level semantics |
| ========================================================================== */ | |
| - | /** |
| - | * Address variable `h1` font-size and margin within `section` and `article` |
| - | * contexts in Firefox 4+, Safari 5, and Chrome. |
| - | */ |
| - | h1 { |
| - | font-size: 2em; |
| - | margin: 0.67em 0; } |
| /** | |
| - | * Address styling not present in IE 8/9, Safari 5, and Chrome. |
| + | * Address styling not present in IE 8/9/10/11, Safari, and Chrome. |
| */ | |
| + | |
| abbr[title] { | |
| - | border-bottom: 1px dotted; } |
| + | border-bottom: 1px dotted; |
| + | } |
| /** | |
| - | * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. |
| + | * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. |
| */ | |
| + | |
| b, | |
| strong { | |
| - | font-weight: bold; } |
| + | font-weight: bold; |
| + | } |
| /** | |
| - | * Address styling not present in Safari 5 and Chrome. |
| + | * Address styling not present in Safari and Chrome. |
| */ | |
| + | |
| dfn { | |
| - | font-style: italic; } |
| + | font-style: italic; |
| + | } |
| /** | |
| - | * Address differences between Firefox and other browsers. |
| + | * Address variable `h1` font-size and margin within `section` and `article` |
| + | * contexts in Firefox 4+, Safari, and Chrome. |
| */ | |
| - | hr { |
| - | -moz-box-sizing: content-box; |
| - | box-sizing: content-box; |
| - | height: 0; } |
| + | |
| + | h1 { |
| + | font-size: 2em; |
| + | margin: 0.67em 0; |
| + | } |
| /** | |
| * Address styling not present in IE 8/9. | |
| */ | |
| + | |
| mark { | |
| background: #ff0; | |
| - | color: #000; } |
| - | |
| - | /** |
| - | * Correct font family set oddly in Safari 5 and Chrome. |
| - | */ |
| - | code, |
| - | kbd, |
| - | pre, |
| - | samp { |
| - | font-family: monospace, serif; |
| - | font-size: 1em; } |
| - | |
| - | /** |
| - | * Improve readability of pre-formatted text in all browsers. |
| - | */ |
| - | pre { |
| - | white-space: pre-wrap; } |
| - | |
| - | /** |
| - | * Set consistent quote types. |
| - | */ |
| - | q { |
| - | quotes: "\201C" "\201D" "\2018" "\2019"; } |
| + | color: #000; |
| + | } |
| /** | |
| * Address inconsistent and variable font size in all browsers. | |
| */ | |
| + | |
| small { | |
| - | font-size: 80%; } |
| + | font-size: 80%; |
| + | } |
| /** | |
| * Prevent `sub` and `sup` affecting `line-height` in all browsers. | |
| */ | |
| + | |
| sub, | |
| sup { | |
| font-size: 75%; | |
| line-height: 0; | |
| position: relative; | |
| - | vertical-align: baseline; } |
| + | vertical-align: baseline; |
| + | } |
| sup { | |
| - | top: -0.5em; } |
| + | top: -0.5em; |
| + | } |
| sub { | |
| - | bottom: -0.25em; } |
| + | bottom: -0.25em; |
| + | } |
| - | /* ========================================================================== |
| - | Embedded content |
| + | /* Embedded content |
| ========================================================================== */ | |
| + | |
| /** | |
| - | * Remove border when inside `a` element in IE 8/9. |
| + | * Remove border when inside `a` element in IE 8/9/10. |
| */ | |
| + | |
| img { | |
| - | border: 0; } |
| + | border: 0; |
| + | } |
| /** | |
| - | * Correct overflow displayed oddly in IE 9. |
| + | * Correct overflow not hidden in IE 9/10/11. |
| */ | |
| + | |
| svg:not(:root) { | |
| - | overflow: hidden; } |
| + | overflow: hidden; |
| + | } |
| - | /* ========================================================================== |
| - | Figures |
| + | /* Grouping content |
| ========================================================================== */ | |
| + | |
| /** | |
| - | * Address margin not present in IE 8/9 and Safari 5. |
| + | * Address margin not present in IE 8/9 and Safari. |
| */ | |
| + | |
| figure { | |
| - | margin: 0; } |
| + | margin: 1em 40px; |
| + | } |
| - | /* ========================================================================== |
| - | Forms |
| - | ========================================================================== */ |
| /** | |
| - | * Define consistent border, margin, and padding. |
| + | * Address differences between Firefox and other browsers. |
| */ | |
| - | fieldset { |
| - | border: 1px solid #c0c0c0; |
| - | margin: 0 2px; |
| - | padding: 0.35em 0.625em 0.75em; } |
| + | |
| + | hr { |
| + | -moz-box-sizing: content-box; |
| + | box-sizing: content-box; |
| + | height: 0; |
| + | } |
| /** | |
| - | * 1. Correct `color` not being inherited in IE 8/9. |
| - | * 2. Remove padding so people aren't caught out if they zero out fieldsets. |
| + | * Contain overflow in all browsers. |
| + | */ |
| + | |
| + | pre { |
| + | overflow: auto; |
| + | } |
| + | |
| + | /** |
| + | * Address odd `em`-unit font size rendering in all browsers. |
| + | */ |
| + | |
| + | code, |
| + | kbd, |
| + | pre, |
| + | samp { |
| + | font-family: monospace, monospace; |
| + | font-size: 1em; |
| + | } |
| + | |
| + | /* Forms |
| + | ========================================================================== */ |
| + | |
| + | /** |
| + | * Known limitation: by default, Chrome and Safari on OS X allow very limited |
| + | * styling of `select`, unless a `border` property is set. |
| */ | |
| - | legend { |
| - | border: 0; |
| - | /* 1 */ |
| - | padding: 0; |
| - | /* 2 */ } |
| /** | |
| - | * 1. Correct font family not being inherited in all browsers. |
| - | * 2. Correct font size not being inherited in all browsers. |
| - | * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome. |
| + | * 1. Correct color not being inherited. |
| + | * Known issue: affects color of disabled elements. |
| + | * 2. Correct font properties not being inherited. |
| + | * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. |
| */ | |
| + | |
| button, | |
| input, | |
| + | optgroup, |
| select, | |
| textarea { | |
| - | font-family: inherit; |
| - | /* 1 */ |
| - | font-size: 100%; |
| - | /* 2 */ |
| - | margin: 0; |
| - | /* 3 */ } |
| + | color: inherit; /* 1 */ |
| + | font: inherit; /* 2 */ |
| + | margin: 0; /* 3 */ |
| + | } |
| /** | |
| - | * Address Firefox 4+ setting `line-height` on `input` using `!important` in |
| - | * the UA stylesheet. |
| + | * Address `overflow` set to `hidden` in IE 8/9/10/11. |
| */ | |
| - | button, |
| - | input { |
| - | line-height: normal; } |
| + | |
| + | button { |
| + | overflow: visible; |
| + | } |
| /** | |
| * Address inconsistent `text-transform` inheritance for `button` and `select`. | |
| * All other form control elements do not inherit `text-transform` values. | |
| - | * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+. |
| - | * Correct `select` style inheritance in Firefox 4+ and Opera. |
| + | * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. |
| + | * Correct `select` style inheritance in Firefox. |
| */ | |
| + | |
| button, | |
| select { | |
| - | text-transform: none; } |
| + | text-transform: none; |
| + | } |
| /** | |
| * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` | |
| @@ | @@ -265,78 +284,142 @@ select { |
| * 3. Improve usability and consistency of cursor style between image-type | |
| * `input` and others. | |
| */ | |
| + | |
| button, | |
| - | html input[type="button"], |
| + | html input[type="button"], /* 1 */ |
| input[type="reset"], | |
| input[type="submit"] { | |
| - | -webkit-appearance: button; |
| - | /* 2 */ |
| - | cursor: pointer; |
| - | /* 3 */ } |
| + | -webkit-appearance: button; /* 2 */ |
| + | cursor: pointer; /* 3 */ |
| + | } |
| /** | |
| * Re-set default cursor for disabled elements. | |
| */ | |
| + | |
| button[disabled], | |
| html input[disabled] { | |
| - | cursor: default; } |
| + | cursor: default; |
| + | } |
| + | |
| + | /** |
| + | * Remove inner padding and border in Firefox 4+. |
| + | */ |
| + | |
| + | button::-moz-focus-inner, |
| + | input::-moz-focus-inner { |
| + | border: 0; |
| + | padding: 0; |
| + | } |
| /** | |
| - | * 1. Address box sizing set to `content-box` in IE 8/9. |
| - | * 2. Remove excess padding in IE 8/9. |
| + | * Address Firefox 4+ setting `line-height` on `input` using `!important` in |
| + | * the UA stylesheet. |
| */ | |
| + | |
| + | input { |
| + | line-height: normal; |
| + | } |
| + | |
| + | /** |
| + | * It's recommended that you don't attempt to style these elements. |
| + | * Firefox's implementation doesn't respect box-sizing, padding, or width. |
| + | * |
| + | * 1. Address box sizing set to `content-box` in IE 8/9/10. |
| + | * 2. Remove excess padding in IE 8/9/10. |
| + | */ |
| + | |
| input[type="checkbox"], | |
| input[type="radio"] { | |
| - | box-sizing: border-box; |
| - | /* 1 */ |
| - | padding: 0; |
| - | /* 2 */ } |
| + | box-sizing: border-box; /* 1 */ |
| + | padding: 0; /* 2 */ |
| + | } |
| /** | |
| - | * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. |
| - | * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome |
| + | * Fix the cursor style for Chrome's increment/decrement buttons. For certain |
| + | * `font-size` values of the `input`, it causes the cursor style of the |
| + | * decrement button to change from `default` to `text`. |
| + | */ |
| + | |
| + | input[type="number"]::-webkit-inner-spin-button, |
| + | input[type="number"]::-webkit-outer-spin-button { |
| + | height: auto; |
| + | } |
| + | |
| + | /** |
| + | * 1. Address `appearance` set to `searchfield` in Safari and Chrome. |
| + | * 2. Address `box-sizing` set to `border-box` in Safari and Chrome |
| * (include `-moz` to future-proof). | |
| */ | |
| + | |
| input[type="search"] { | |
| - | -webkit-appearance: textfield; |
| - | /* 1 */ |
| + | -webkit-appearance: textfield; /* 1 */ |
| -moz-box-sizing: content-box; | |
| - | -webkit-box-sizing: content-box; |
| - | /* 2 */ |
| - | box-sizing: content-box; } |
| + | -webkit-box-sizing: content-box; /* 2 */ |
| + | box-sizing: content-box; |
| + | } |
| /** | |
| - | * Remove inner padding and search cancel button in Safari 5 and Chrome |
| - | * on OS X. |
| + | * Remove inner padding and search cancel button in Safari and Chrome on OS X. |
| + | * Safari (but not Chrome) clips the cancel button when the search input has |
| + | * padding (and `textfield` appearance). |
| */ | |
| + | |
| input[type="search"]::-webkit-search-cancel-button, | |
| input[type="search"]::-webkit-search-decoration { | |
| - | -webkit-appearance: none; } |
| + | -webkit-appearance: none; |
| + | } |
| /** | |
| - | * Remove inner padding and border in Firefox 4+. |
| + | * Define consistent border, margin, and padding. |
| */ | |
| - | button::-moz-focus-inner, |
| - | input::-moz-focus-inner { |
| - | border: 0; |
| - | padding: 0; } |
| + | |
| + | fieldset { |
| + | border: 1px solid #c0c0c0; |
| + | margin: 0 2px; |
| + | padding: 0.35em 0.625em 0.75em; |
| + | } |
| /** | |
| - | * 1. Remove default vertical scrollbar in IE 8/9. |
| - | * 2. Improve readability and alignment in all browsers. |
| + | * 1. Correct `color` not being inherited in IE 8/9/10/11. |
| + | * 2. Remove padding so people aren't caught out if they zero out fieldsets. |
| */ | |
| + | |
| + | legend { |
| + | border: 0; /* 1 */ |
| + | padding: 0; /* 2 */ |
| + | } |
| + | |
| + | /** |
| + | * Remove default vertical scrollbar in IE 8/9/10/11. |
| + | */ |
| + | |
| textarea { | |
| overflow: auto; | |
| - | /* 1 */ |
| - | vertical-align: top; |
| - | /* 2 */ } |
| + | } |
| + | |
| + | /** |
| + | * Don't inherit the `font-weight` (applied by a rule above). |
| + | * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. |
| + | */ |
| - | /* ========================================================================== |
| - | Tables |
| + | optgroup { |
| + | font-weight: bold; |
| + | } |
| + | |
| + | /* Tables |
| ========================================================================== */ | |
| + | |
| /** | |
| * Remove most spacing between table cells. | |
| */ | |
| + | |
| table { | |
| border-collapse: collapse; | |
| - | border-spacing: 0; } |
| + | border-spacing: 0; |
| + | } |
| + | |
| + | td, |
| + | th { |
| + | padding: 0; |
| + | } |
generators/foundation5/public/stylesheets/normalize.css.scss
+425
-0
| @@ | @@ -0,0 +1,425 @@ |
| + | /*! normalize.css v3.0.1 | MIT License | git.io/normalize */ |
| + | |
| + | /** |
| + | * 1. Set default font family to sans-serif. |
| + | * 2. Prevent iOS text size adjust after orientation change, without disabling |
| + | * user zoom. |
| + | */ |
| + | |
| + | html { |
| + | font-family: sans-serif; /* 1 */ |
| + | -ms-text-size-adjust: 100%; /* 2 */ |
| + | -webkit-text-size-adjust: 100%; /* 2 */ |
| + | } |
| + | |
| + | /** |
| + | * Remove default margin. |
| + | */ |
| + | |
| + | body { |
| + | margin: 0; |
| + | } |
| + | |
| + | /* HTML5 display definitions |
| + | ========================================================================== */ |
| + | |
| + | /** |
| + | * Correct `block` display not defined for any HTML5 element in IE 8/9. |
| + | * Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox. |
| + | * Correct `block` display not defined for `main` in IE 11. |
| + | */ |
| + | |
| + | article, |
| + | aside, |
| + | details, |
| + | figcaption, |
| + | figure, |
| + | footer, |
| + | header, |
| + | hgroup, |
| + | main, |
| + | nav, |
| + | section, |
| + | summary { |
| + | display: block; |
| + | } |
| + | |
| + | /** |
| + | * 1. Correct `inline-block` display not defined in IE 8/9. |
| + | * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera. |
| + | */ |
| + | |
| + | audio, |
| + | canvas, |
| + | progress, |
| + | video { |
| + | display: inline-block; /* 1 */ |
| + | vertical-align: baseline; /* 2 */ |
| + | } |
| + | |
| + | /** |
| + | * Prevent modern browsers from displaying `audio` without controls. |
| + | * Remove excess height in iOS 5 devices. |
| + | */ |
| + | |
| + | audio:not([controls]) { |
| + | display: none; |
| + | height: 0; |
| + | } |
| + | |
| + | /** |
| + | * Address `[hidden]` styling not present in IE 8/9/10. |
| + | * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22. |
| + | */ |
| + | |
| + | [hidden], |
| + | template { |
| + | display: none; |
| + | } |
| + | |
| + | /* Links |
| + | ========================================================================== */ |
| + | |
| + | /** |
| + | * Remove the gray background color from active links in IE 10. |
| + | */ |
| + | |
| + | a { |
| + | background: transparent; |
| + | } |
| + | |
| + | /** |
| + | * Improve readability when focused and also mouse hovered in all browsers. |
| + | */ |
| + | |
| + | a:active, |
| + | a:hover { |
| + | outline: 0; |
| + | } |
| + | |
| + | /* Text-level semantics |
| + | ========================================================================== */ |
| + | |
| + | /** |
| + | * Address styling not present in IE 8/9/10/11, Safari, and Chrome. |
| + | */ |
| + | |
| + | abbr[title] { |
| + | border-bottom: 1px dotted; |
| + | } |
| + | |
| + | /** |
| + | * Address style set to `bolder` in Firefox 4+, Safari, and Chrome. |
| + | */ |
| + | |
| + | b, |
| + | strong { |
| + | font-weight: bold; |
| + | } |
| + | |
| + | /** |
| + | * Address styling not present in Safari and Chrome. |
| + | */ |
| + | |
| + | dfn { |
| + | font-style: italic; |
| + | } |
| + | |
| + | /** |
| + | * Address variable `h1` font-size and margin within `section` and `article` |
| + | * contexts in Firefox 4+, Safari, and Chrome. |
| + | */ |
| + | |
| + | h1 { |
| + | font-size: 2em; |
| + | margin: 0.67em 0; |
| + | } |
| + | |
| + | /** |
| + | * Address styling not present in IE 8/9. |
| + | */ |
| + | |
| + | mark { |
| + | background: #ff0; |
| + | color: #000; |
| + | } |
| + | |
| + | /** |
| + | * Address inconsistent and variable font size in all browsers. |
| + | */ |
| + | |
| + | small { |
| + | font-size: 80%; |
| + | } |
| + | |
| + | /** |
| + | * Prevent `sub` and `sup` affecting `line-height` in all browsers. |
| + | */ |
| + | |
| + | sub, |
| + | sup { |
| + | font-size: 75%; |
| + | line-height: 0; |
| + | position: relative; |
| + | vertical-align: baseline; |
| + | } |
| + | |
| + | sup { |
| + | top: -0.5em; |
| + | } |
| + | |
| + | sub { |
| + | bottom: -0.25em; |
| + | } |
| + | |
| + | /* Embedded content |
| + | ========================================================================== */ |
| + | |
| + | /** |
| + | * Remove border when inside `a` element in IE 8/9/10. |
| + | */ |
| + | |
| + | img { |
| + | border: 0; |
| + | } |
| + | |
| + | /** |
| + | * Correct overflow not hidden in IE 9/10/11. |
| + | */ |
| + | |
| + | svg:not(:root) { |
| + | overflow: hidden; |
| + | } |
| + | |
| + | /* Grouping content |
| + | ========================================================================== */ |
| + | |
| + | /** |
| + | * Address margin not present in IE 8/9 and Safari. |
| + | */ |
| + | |
| + | figure { |
| + | margin: 1em 40px; |
| + | } |
| + | |
| + | /** |
| + | * Address differences between Firefox and other browsers. |
| + | */ |
| + | |
| + | hr { |
| + | -moz-box-sizing: content-box; |
| + | box-sizing: content-box; |
| + | height: 0; |
| + | } |
| + | |
| + | /** |
| + | * Contain overflow in all browsers. |
| + | */ |
| + | |
| + | pre { |
| + | overflow: auto; |
| + | } |
| + | |
| + | /** |
| + | * Address odd `em`-unit font size rendering in all browsers. |
| + | */ |
| + | |
| + | code, |
| + | kbd, |
| + | pre, |
| + | samp { |
| + | font-family: monospace, monospace; |
| + | font-size: 1em; |
| + | } |
| + | |
| + | /* Forms |
| + | ========================================================================== */ |
| + | |
| + | /** |
| + | * Known limitation: by default, Chrome and Safari on OS X allow very limited |
| + | * styling of `select`, unless a `border` property is set. |
| + | */ |
| + | |
| + | /** |
| + | * 1. Correct color not being inherited. |
| + | * Known issue: affects color of disabled elements. |
| + | * 2. Correct font properties not being inherited. |
| + | * 3. Address margins set differently in Firefox 4+, Safari, and Chrome. |
| + | */ |
| + | |
| + | button, |
| + | input, |
| + | optgroup, |
| + | select, |
| + | textarea { |
| + | color: inherit; /* 1 */ |
| + | font: inherit; /* 2 */ |
| + | margin: 0; /* 3 */ |
| + | } |
| + | |
| + | /** |
| + | * Address `overflow` set to `hidden` in IE 8/9/10/11. |
| + | */ |
| + | |
| + | button { |
| + | overflow: visible; |
| + | } |
| + | |
| + | /** |
| + | * Address inconsistent `text-transform` inheritance for `button` and `select`. |
| + | * All other form control elements do not inherit `text-transform` values. |
| + | * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera. |
| + | * Correct `select` style inheritance in Firefox. |
| + | */ |
| + | |
| + | button, |
| + | select { |
| + | text-transform: none; |
| + | } |
| + | |
| + | /** |
| + | * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` |
| + | * and `video` controls. |
| + | * 2. Correct inability to style clickable `input` types in iOS. |
| + | * 3. Improve usability and consistency of cursor style between image-type |
| + | * `input` and others. |
| + | */ |
| + | |
| + | button, |
| + | html input[type="button"], /* 1 */ |
| + | input[type="reset"], |
| + | input[type="submit"] { |
| + | -webkit-appearance: button; /* 2 */ |
| + | cursor: pointer; /* 3 */ |
| + | } |
| + | |
| + | /** |
| + | * Re-set default cursor for disabled elements. |
| + | */ |
| + | |
| + | button[disabled], |
| + | html input[disabled] { |
| + | cursor: default; |
| + | } |
| + | |
| + | /** |
| + | * Remove inner padding and border in Firefox 4+. |
| + | */ |
| + | |
| + | button::-moz-focus-inner, |
| + | input::-moz-focus-inner { |
| + | border: 0; |
| + | padding: 0; |
| + | } |
| + | |
| + | /** |
| + | * Address Firefox 4+ setting `line-height` on `input` using `!important` in |
| + | * the UA stylesheet. |
| + | */ |
| + | |
| + | input { |
| + | line-height: normal; |
| + | } |
| + | |
| + | /** |
| + | * It's recommended that you don't attempt to style these elements. |
| + | * Firefox's implementation doesn't respect box-sizing, padding, or width. |
| + | * |
| + | * 1. Address box sizing set to `content-box` in IE 8/9/10. |
| + | * 2. Remove excess padding in IE 8/9/10. |
| + | */ |
| + | |
| + | input[type="checkbox"], |
| + | input[type="radio"] { |
| + | box-sizing: border-box; /* 1 */ |
| + | padding: 0; /* 2 */ |
| + | } |
| + | |
| + | /** |
| + | * Fix the cursor style for Chrome's increment/decrement buttons. For certain |
| + | * `font-size` values of the `input`, it causes the cursor style of the |
| + | * decrement button to change from `default` to `text`. |
| + | */ |
| + | |
| + | input[type="number"]::-webkit-inner-spin-button, |
| + | input[type="number"]::-webkit-outer-spin-button { |
| + | height: auto; |
| + | } |
| + | |
| + | /** |
| + | * 1. Address `appearance` set to `searchfield` in Safari and Chrome. |
| + | * 2. Address `box-sizing` set to `border-box` in Safari and Chrome |
| + | * (include `-moz` to future-proof). |
| + | */ |
| + | |
| + | input[type="search"] { |
| + | -webkit-appearance: textfield; /* 1 */ |
| + | -moz-box-sizing: content-box; |
| + | -webkit-box-sizing: content-box; /* 2 */ |
| + | box-sizing: content-box; |
| + | } |
| + | |
| + | /** |
| + | * Remove inner padding and search cancel button in Safari and Chrome on OS X. |
| + | * Safari (but not Chrome) clips the cancel button when the search input has |
| + | * padding (and `textfield` appearance). |
| + | */ |
| + | |
| + | input[type="search"]::-webkit-search-cancel-button, |
| + | input[type="search"]::-webkit-search-decoration { |
| + | -webkit-appearance: none; |
| + | } |
| + | |
| + | /** |
| + | * Define consistent border, margin, and padding. |
| + | */ |
| + | |
| + | fieldset { |
| + | border: 1px solid #c0c0c0; |
| + | margin: 0 2px; |
| + | padding: 0.35em 0.625em 0.75em; |
| + | } |
| + | |
| + | /** |
| + | * 1. Correct `color` not being inherited in IE 8/9/10/11. |
| + | * 2. Remove padding so people aren't caught out if they zero out fieldsets. |
| + | */ |
| + | |
| + | legend { |
| + | border: 0; /* 1 */ |
| + | padding: 0; /* 2 */ |
| + | } |
| + | |
| + | /** |
| + | * Remove default vertical scrollbar in IE 8/9/10/11. |
| + | */ |
| + | |
| + | textarea { |
| + | overflow: auto; |
| + | } |
| + | |
| + | /** |
| + | * Don't inherit the `font-weight` (applied by a rule above). |
| + | * NOTE: the default cannot safely be changed in Chrome and Safari on OS X. |
| + | */ |
| + | |
| + | optgroup { |
| + | font-weight: bold; |
| + | } |
| + | |
| + | /* Tables |
| + | ========================================================================== */ |
| + | |
| + | /** |
| + | * Remove most spacing between table cells. |
| + | */ |
| + | |
| + | table { |
| + | border-collapse: collapse; |
| + | border-spacing: 0; |
| + | } |
| + | |
| + | td, |
| + | th { |
| + | padding: 0; |
| + | } |
locomotive/wagon/cli.rb b/lib/locomotive/wagon/cli.rb
+4
-3
| @@ | @@ -164,12 +164,13 @@ module Locomotive |
| Locomotive::Wagon.authenticate(email, password, shell) | |
| end | |
| - | desc 'init NAME [PATH] [OPTIONS]', 'Create a brand new site' |
| + | desc 'init NAME [PATH] [GENERATOR_OPTIONS]', 'Create a brand new site' |
| method_option :template, aliases: '-t', type: 'string', default: 'blank', desc: 'instead of building from a blank site, you can also have a pre-fetched site from a template (see the templates command)' | |
| method_option :lib, aliases: '-l', type: 'string', desc: 'Path to an external ruby lib or generator' | |
| method_option :skip_bundle, type: 'boolean', default: false, desc: "Don't run bundle install" | |
| method_option :verbose, aliases: '-v', type: 'boolean', default: false, desc: 'display the full error stack trace if an error occurs' | |
| - | def init(name, path = '.', generator_options = nil) |
| + | def init(name, path = '.', *generator_options) |
| + | puts generator_options.inspect |
| force_color_if_asked(options) | |
| require 'locomotive/wagon/generators/site' | |
| require File.expand_path(options[:lib]) if options[:lib] | |
| @@ | @@ -179,7 +180,7 @@ module Locomotive |
| exit(1) | |
| else | |
| begin | |
| - | if Locomotive::Wagon.init(generator.klass, [name, path, options[:skip_bundle].to_s, generator_options], { force_color: options[:force_color] }) |
| + | if Locomotive::Wagon.init(generator.klass, [name, path, options[:skip_bundle].to_s, *generator_options], { force_color: options[:force_color] }) |
| self.print_next_instructions_when_site_created(name, path, options[:skip_bundle]) | |
| end | |
| rescue GeneratorException => e | |
locomotive/wagon/generators/site/base.rb b/lib/locomotive/wagon/generators/site/base.rb
+14
-1
| @@ | @@ -40,6 +40,11 @@ module Locomotive |
| class_option :haml, type: :boolean, default: nil, required: false, desc: 'Use HAML templates?' | |
| end | |
| + | def self.may_use_scss |
| + | puts "youpi...." |
| + | class_option :scss, type: :boolean, default: nil, required: false, desc: 'Use SCSS stylesheets?' |
| + | end |
| + | |
| protected | |
| def destination | |
| @@ | @@ -48,12 +53,20 @@ module Locomotive |
| def haml? | |
| if options[:haml].nil? | |
| - | yes?('Do you prefer HAML templates ?') |
| + | yes?('Do you prefer HAML templates?') |
| else | |
| options[:haml] | |
| end | |
| end | |
| + | def scss? |
| + | if options[:scss].nil? |
| + | yes?('Do you prefer SCSS stylesheets?') |
| + | else |
| + | options[:scss] |
| + | end |
| + | end |
| + | |
| def skip_bundle? | |
| [true, 'true'].include?(skip_bundle) | |
| end | |
locomotive/wagon/generators/site/foundation5.rb b/lib/locomotive/wagon/generators/site/foundation5.rb
+21
-1
| @@ | @@ -6,6 +6,7 @@ module Locomotive |
| class Foundation5 < Base | |
| may_use_haml | |
| + | may_use_scss |
| def choose_haml_over_html | |
| if haml? | |
| @@ | @@ -19,6 +20,25 @@ module Locomotive |
| end | |
| end | |
| + | def choose_scss_over_css |
| + | if scss? |
| + | remove_file File.join(self.destination, 'public/stylesheets/foundation.css') |
| + | remove_file File.join(self.destination, 'public/stylesheets/foundation.min.css') |
| + | remove_file File.join(self.destination, 'public/stylesheets/normalize.css') |
| + | remove_file File.join(self.destination, 'public/stylesheets/normalize.min.css') |
| + | else |
| + | remove_dir File.join(self.destination, 'public/stylesheets/foundation') |
| + | remove_file File.join(self.destination, 'public/stylesheets/app.min.css.scss') |
| + | remove_file File.join(self.destination, 'public/stylesheets/foundation.css.scss') |
| + | remove_file File.join(self.destination, 'public/stylesheets/normalize.css.scss') |
| + | |
| + | copy_file 'public/stylesheets/foundation.css', File.join(self.destination, 'public/stylesheets/app.css') |
| + | remove_file File.join(self.destination, 'public/stylesheets/foundation.css') |
| + | copy_file 'public/stylesheets/foundation.min.css', File.join(self.destination, 'public/stylesheets/app.min.css') |
| + | remove_file File.join(self.destination, 'public/stylesheets/foundation.min.css') |
| + | end |
| + | end |
| + | |
| def bundle_install | |
| super | |
| end | |
| @@ | @@ -26,7 +46,7 @@ module Locomotive |
| end | |
| Locomotive::Wagon::Generators::Site.register(:foundation5, Foundation5, %{ | |
| - | A site powered by Foundation (v5.1.1). |
| + | A site powered by Foundation (v5.2.3.0). |
| }) | |
| end | |
| end | |