satchel-css
Advanced tools
Comparing version 0.9.3 to 0.9.4
@@ -1,2 +0,2 @@ | ||
var e=" &::after{ content: ''; display: block; clear: both; }";function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function o(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?n(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function r(e,t){var n=function(e){var t=e.match(/(([\+\-]?[0-9\.]+)(%|px|pt|em|rem|in|cm|mm|ex|pc|vw)?)|(calc\(([^\)]+)\)|null|false|undefined|auto)/g),n={top:"auto",right:"auto",bottom:"auto",left:"auto"};if(!t)return n;switch(t.length){case 1:Object.keys(n).forEach((function(e){return n[e]=t[0]}));break;case 2:Object.keys(n).forEach((function(e,o){return n[e]=t[(o+1)%2?0:1]}));break;case 3:Object.keys(n).forEach((function(e,o){return n[e]=t[3===o?1:o]}));break;case 4:Object.keys(n).forEach((function(e,o){return n[e]=t[o]}))}return o(o({},n),{},{important:/!important$/.test(e)})}(t.toString()),r=n.top,i=n.right,a=n.bottom,c=n.left,p=n.important;return" position: ".concat(e).concat(p?" !important":"","; top: ").concat(r,"; right: ").concat(i,"; bottom: ").concat(a,"; left: ").concat(c,"; ")}function i(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?n.slice(1).map((function(e){return parseInt(e,16)})):[]}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"rgba(".concat(i(e),", ").concat(t,")")}function c(e,t,n){return function(e,t,n){return"#".concat(((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1))}(e,t,n)}var p={button:" font: inherit; color: inherit; border: 0; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; line-height: normal; -webkit-appearance: none; cursor: pointer; &::-moz-focus-inner { border: 0; padding: 0; } ",input:" font: inherit; color: inherit; border: 0; margin: 0; padding: 0; display: inline-block; vertical-align: middle; white-space: normal; background: none; line-height: 1; overflow: auto; -webkit-appearance: none; ",list:" list-style: none; padding: 0; margin: 0; ",blockquote:" margin: 0; padding: 0; vertical-align: baseline; &::before, &::after { content: ''; } ",fieldset:" border: 0; padding: 0.01em 0 0 0; margin: 0; min-width: 0; body:not(:-moz-handler-blocked) & { display: table-cell; } ",legend:" padding: 0; display: table; "};function l(e){return p[e]}var s=function(e,t){t||(t=[0,""]),e=String(e);var n=parseFloat(e,10);return t[0]=n,t[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t},d={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e,n,o,r){var i=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?b(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({minScreenSize:"480px",maxScreenSize:"1280px"},r);function a(e,t){var n={a:s(e)[0],b:s(t)[0]},o={a:s(e)[1],b:s(t)[1]};return o.a!==o.b&&(n.b=function(e,t,n,o){if(!d.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!d[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);return o=Math.pow(10,parseInt(o)||5),Math.round(d[n][t]*e*o)/o}(n.b,o.b,o.a)),n.b-n.a}return" ".concat(e,": calc(").concat(n," + ").concat(a(n,o)," * ((100vw - ").concat(i.minScreenSize,") / ").concat(a(i.minScreenSize,i.maxScreenSize),")); @media (max-width: ").concat(i.minScreenSize,") { ").concat(e,": ").concat(n,"; } @media (min-width: ").concat(i.maxScreenSize,") { ").concat(e,": ").concat(o,"; } ")}var m=" display: grid; grid-column: 1 / 99 !important; grid: inherit; grid-gap: inherit; grid-template-columns: inherit;";function f(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],n=1;n<=e;n++)t.push("& > :nth-of-type(".concat(n,") { -ms-grid-row: ").concat(n,"; }"));return"".concat(t.join("\n"))}function g(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var y={normalize:"".concat("/*! modern-normalize v0.6.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:after,:before{box-sizing:border-box}:root{-moz-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}hr{height:0}abbr[title]{text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{padding:0}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}"),"normalize-legacy":"".concat("html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}h1{font-size:2em;margin:.67em 0}dl dl,dl ol,dl ul,ol dl,ol ol,ol ul,ul dl,ul ol,ul ul{margin:0}hr{box-sizing:content-box;height:0;overflow:visible}main{display:block}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,select{margin:0}button{overflow:visible;text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}fieldset{padding:.35em .75em .625em}input{overflow:visible}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;white-space:normal}progress{display:inline-block;vertical-align:baseline}select{text-transform:none}textarea{margin:0;overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}details,dialog{display:block}dialog{background-color:#fff;border:solid;color:#000;height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;left:0;margin:auto;padding:1em;position:absolute;right:0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content}dialog:not([open]){display:none}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}"),remedy:"".concat("*,:after,:before{box-sizing:border-box}html{line-sizing:normal}body{margin:0}h1{font-size:2rem}h2{font-size:1.5rem}h3{font-size:1.17rem}h4{font-size:1rem}h5{font-size:.83rem}h6{font-size:.67rem}h1{margin:.67em 0}pre{white-space:pre-wrap}hr{border-style:solid;border-width:1px 0 0;color:inherit;height:0;overflow:visible}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle;max-width:100%}canvas,img,svg,video{height:auto}audio{width:100%}img{border-style:none}svg{overflow:hidden}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}")},w={saneEmbeds:" img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; max-width: 100%; } img, svg, video, canvas { height: auto; } ",hiddenProp:" [hidden] { display: none !important; } ",reduceMotion:" @media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation-delay: -1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; background-attachment: initial !important; scroll-behavior: auto !important; transition-delay: 0s !important; transition-duration: 0s !important; } } ",fontSmoothing:" html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } ",resetMargins:" blockquote, dl, dd, h1, h2, h3, h4, h5, h6, figure, pre { margin: 0; } ",resetHeadings:" h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; } "};function v(e){var n=e.base,o=void 0===n?"normalize":n,r=e.saneEmbeds,i=void 0===r||r,a=e.hiddenProp,c=void 0===a||a,p=e.reduceMotion,l=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?h(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({hiddenProp:c,reduceMotion:void 0===p||p},g(e,["base","saneEmbeds","hiddenProp","reduceMotion"]));return" ".concat(o?y[o]:""," ").concat(i&&"remedy"!==o?w.saneEmbeds:""," ").concat(Object.keys(l).map((function(e){return l[e]&&w[e]})).filter(Boolean).join("")," ")}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t>1?(console.warn("The modifier given to lineCrop() must be <=1, you gave ".concat(t)),""):" &::before { content: ''; display: block; height: 0; width: 0; margin-top: calc(".concat(+(t-e).toFixed(2)," * 0.5em); } ")}var k={expandable:" &::before { width: 1px; margin-left: -1px; float: left; } &::after { content: ''; display: table; clear: both; }",absolute:" position: relative; & > * { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } &::before { position: relative; } ",lite:""};function x(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{mode:"expandable"};return" ".concat(k[n.mode]," &::before { content: ''; display: block; padding-top: ").concat(t/e*100,"%; } ")}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var j={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"};function P(e,n,o){var r=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?z(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):z(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({display:"swap"},o);return' @font-face { font-family: "'.concat(e,'"; src: ').concat(n.map((function(e){return e&&'url("'.concat(e,'") format("').concat(j[e.split(".").pop()],'")')})).filter(Boolean).join(",\n"),"; ").concat(r.weight?"font-weight: ".concat(r.weight,";"):""," ").concat(r.style?"font-style: ".concat(r.style,";"):""," font-display: ").concat(r.display,"; } ")}var S={track:function(e){var t="string"==typeof e?e:e.join();return" -webkit-appearance: none; &::-moz-focus-outer { border: 0; } &::-webkit-slider-runnable-track { -webkit-appearance: none; ".concat(t," } &::-moz-range-track { -moz-appearance: none; ").concat(t," } &::-ms-track { ").concat(t," }")},thumb:function(e){var t="string"==typeof e?e:e.join();return" -webkit-appearance: none; &::-webkit-slider-thumb { -webkit-appearance: none; ".concat(t," } &::-moz-range-thumb { -moz-appearance: none; ").concat(t," } &::-ms-thumb { ").concat(t," }")}};export{x as aspect,e as clearFix,u as fluid,P as fontFace,c as hex,O as lineCrop,f as msGridRows,v as normalize,r as position,S as range,l as reset,a as rgba,m as subgrid}; | ||
var e=" &::after{ content: ''; display: block; clear: both; }";function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function o(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?n(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function r(e,t){var n=function(e){var t=e.match(/(([\+\-]?[0-9\.]+)(%|px|pt|em|rem|in|cm|mm|ex|pc|vw)?)|(calc\(([^\)]+)\)|null|false|undefined|auto)/g),n={top:"auto",right:"auto",bottom:"auto",left:"auto"};if(!t)return n;switch(t.length){case 1:Object.keys(n).forEach((function(e){return n[e]=t[0]}));break;case 2:Object.keys(n).forEach((function(e,o){return n[e]=t[(o+1)%2?0:1]}));break;case 3:Object.keys(n).forEach((function(e,o){return n[e]=t[3===o?1:o]}));break;case 4:Object.keys(n).forEach((function(e,o){return n[e]=t[o]}))}return o(o({},n),{},{important:/!important$/.test(e)})}(t.toString()),r=n.top,i=n.right,a=n.bottom,c=n.left,p=n.important;return" position: ".concat(e).concat(p?" !important":"","; top: ").concat(r,"; right: ").concat(i,"; bottom: ").concat(a,"; left: ").concat(c,"; ")}function i(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?n.slice(1).map((function(e){return parseInt(e,16)})):[]}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"rgba(".concat(i(e),", ").concat(t,")")}function c(e,t,n){return function(e,t,n){return"#".concat(((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1))}(e,t,n)}var p={button:" font: inherit; color: inherit; border: 0; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; line-height: normal; -webkit-appearance: none; cursor: pointer; &::-moz-focus-inner { border: 0; padding: 0; } ",input:" font: inherit; color: inherit; border: 0; margin: 0; padding: 0; display: inline-block; vertical-align: middle; white-space: normal; background: none; line-height: 1; overflow: auto; -webkit-appearance: none; ",list:" list-style: none; padding: 0; margin: 0; ",blockquote:" margin: 0; padding: 0; vertical-align: baseline; &::before, &::after { content: ''; } ",fieldset:" border: 0; padding: 0.01em 0 0 0; margin: 0; min-width: 0; body:not(:-moz-handler-blocked) & { display: table-cell; } ",legend:" padding: 0; display: table; "};function l(e){return p[e]}var s=function(e,t){t||(t=[0,""]),e=String(e);var n=parseFloat(e,10);return t[0]=n,t[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t},d={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function u(e,n,o,r){var i=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?b(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):b(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({minScreenSize:"480px",maxScreenSize:"1280px"},r);function a(e,t){var n={a:s(e)[0],b:s(t)[0]},o={a:s(e)[1],b:s(t)[1]};return o.a!==o.b&&(n.b=function(e,t,n,o){if(!d.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!d[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);return o=Math.pow(10,parseInt(o)||5),Math.round(d[n][t]*e*o)/o}(n.b,o.b,o.a)),n.b-n.a}return" ".concat(e,": calc(").concat(n," + ").concat(a(n,o)," * ((100vw - ").concat(i.minScreenSize,") / ").concat(a(i.minScreenSize,i.maxScreenSize),")); @media (max-width: ").concat(i.minScreenSize,") { ").concat(e,": ").concat(n,"; } @media (min-width: ").concat(i.maxScreenSize,") { ").concat(e,": ").concat(o,"; } ")}var m=" display: grid; grid-column: 1 / 99 !important; grid: inherit; grid-gap: inherit; grid-template-columns: inherit;";function f(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],n=1;n<=e;n++)t.push("& > :nth-of-type(".concat(n,") { -ms-grid-row: ").concat(n,"; }"));return"".concat(t.join("\n"))}function g(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var y={normalize:"".concat("/*! modern-normalize v0.6.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:after,:before{box-sizing:border-box}:root{-moz-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}hr{height:0}abbr[title]{text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{padding:0}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}"),"normalize-legacy":"".concat("html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}h1{font-size:2em;margin:.67em 0}dl dl,dl ol,dl ul,ol dl,ol ol,ol ul,ul dl,ul ol,ul ul{margin:0}hr{box-sizing:content-box;height:0;overflow:visible}main{display:block}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,select{margin:0}button{overflow:visible;text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}fieldset{padding:.35em .75em .625em}input{overflow:visible}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;white-space:normal}progress{display:inline-block;vertical-align:baseline}select{text-transform:none}textarea{margin:0;overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}details,dialog{display:block}dialog{background-color:#fff;border:solid;color:#000;height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;left:0;margin:auto;padding:1em;position:absolute;right:0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content}dialog:not([open]){display:none}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}"),remedy:"".concat("*,:after,:before{box-sizing:border-box}html{line-sizing:normal}body{margin:0}h1{font-size:2rem}h2{font-size:1.5rem}h3{font-size:1.17rem}h4{font-size:1rem}h5{font-size:.83rem}h6{font-size:.67rem}h1{margin:.67em 0}pre{white-space:pre-wrap}hr{border-style:solid;border-width:1px 0 0;color:inherit;height:0;overflow:visible}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle;max-width:100%}canvas,img,svg,video{height:auto}audio{width:100%}img{border-style:none}svg{overflow:hidden}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}")},w={saneEmbeds:" img, svg, video, canvas, audio, iframe, embed, object { display: inline-block; vertical-align: middle; max-width: 100%; } img, svg, video, canvas { height: auto; } ",hiddenProp:" [hidden] { display: none !important; } ",reduceMotion:" @media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation-delay: -1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; background-attachment: initial !important; scroll-behavior: auto !important; transition-delay: 0s !important; transition-duration: 0s !important; } } ",fontSmoothing:" html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } ",resetMargins:" blockquote, dl, dd, h1, h2, h3, h4, h5, h6, figure, pre { margin: 0; } ",resetHeadings:" h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; } "};function v(e){var n=e.base,o=void 0===n?"normalize":n,r=e.saneEmbeds,i=void 0===r||r,a=e.hiddenProp,c=void 0===a||a,p=e.reduceMotion,l=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?h(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):h(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({hiddenProp:c,reduceMotion:void 0===p||p},g(e,["base","saneEmbeds","hiddenProp","reduceMotion"]));return" ".concat(o?y[o]:""," ").concat(i&&"remedy"!==o?w.saneEmbeds:""," ").concat(Object.keys(l).map((function(e){return l[e]&&w[e]})).filter(Boolean).join("")," ")}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t>1?(console.warn("The modifier given to lineCrop() must be <=1, you gave ".concat(t)),""):" &::before { content: ''; display: block; height: 0; width: 0; margin-top: calc(".concat(+(t-e).toFixed(2)," * 0.5em); } ")}var k={expandable:" &::before { width: 1px; margin-left: -1px; float: left; } &::after { content: ''; display: table; clear: both; }",absolute:" position: relative; & > * { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } &::before { position: relative; } ",lite:""};function x(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{mode:"expandable"};return" ".concat(k[n.mode]," &::before { content: ''; display: block; padding-top: ").concat(t/e*100,"%; } ")}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var j={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"};function P(e,n,o){var r=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?z(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):z(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({display:"swap"},o);return' @font-face { font-family: "'.concat(e,'"; src: ').concat(n.map((function(e){return e&&'url("'.concat(e,'") format("').concat(j[e.split(".").pop()],'")')})).filter(Boolean).join(",\n"),"; ").concat(r.weight?"font-weight: ".concat(r.weight,";"):""," ").concat(r.style?"font-style: ".concat(r.style,";"):""," font-display: ").concat(r.display,"; } ")}var S={track:function(e){var t="string"==typeof e?e:e.join();return" -webkit-appearance: none; &::-moz-focus-outer { border: 0; } &::-webkit-slider-runnable-track { -webkit-appearance: none; ".concat(t," } &::-moz-range-track { -moz-appearance: none; ").concat(t," } &::-ms-track { ").concat(t," }")},thumb:function(e){var t="string"==typeof e?e:e.join();return" -webkit-appearance: none; &::-webkit-slider-thumb { -webkit-appearance: none; ".concat(t," } &::-moz-range-thumb { -moz-appearance: none; ").concat(t," } &::-ms-thumb { ").concat(t," }")}};export{x as aspect,e as clearFix,u as fluid,P as fontFace,c as hex,O as lineCrop,f as msGridRows,v as normalize,r as position,S as range,l as reset,a as rgba,m as subgrid}; | ||
//# sourceMappingURL=index.es.js.map |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self)["satchel-css"]={})}(this,(function(e){"use strict";function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function o(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?n(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function r(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?n.slice(1).map((function(e){return parseInt(e,16)})):[]}var i={button:" font: inherit; color: inherit; border: 0; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; line-height: normal; -webkit-appearance: none; cursor: pointer; &::-moz-focus-inner { border: 0; padding: 0; } ",input:" font: inherit; color: inherit; border: 0; margin: 0; padding: 0; display: inline-block; vertical-align: middle; white-space: normal; background: none; line-height: 1; overflow: auto; -webkit-appearance: none; ",list:" list-style: none; padding: 0; margin: 0; ",blockquote:" margin: 0; padding: 0; vertical-align: baseline; &::before, &::after { content: ''; } ",fieldset:" border: 0; padding: 0.01em 0 0 0; margin: 0; min-width: 0; body:not(:-moz-handler-blocked) & { display: table-cell; } ",legend:" padding: 0; display: table; "};var a=function(e,t){t||(t=[0,""]),e=String(e);var n=parseFloat(e,10);return t[0]=n,t[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t},c={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var d={normalize:"".concat("/*! modern-normalize v0.6.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:after,:before{box-sizing:border-box}:root{-moz-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}hr{height:0}abbr[title]{text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{padding:0}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}"),"normalize-legacy":"".concat("html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}h1{font-size:2em;margin:.67em 0}dl dl,dl ol,dl ul,ol dl,ol ol,ol ul,ul dl,ul ol,ul ul{margin:0}hr{box-sizing:content-box;height:0;overflow:visible}main{display:block}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,select{margin:0}button{overflow:visible;text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}fieldset{padding:.35em .75em .625em}input{overflow:visible}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;white-space:normal}progress{display:inline-block;vertical-align:baseline}select{text-transform:none}textarea{margin:0;overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}details,dialog{display:block}dialog{background-color:#fff;border:solid;color:#000;height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;left:0;margin:auto;padding:1em;position:absolute;right:0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content}dialog:not([open]){display:none}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}"),remedy:"".concat("*,:after,:before{box-sizing:border-box}html{line-sizing:normal}body{margin:0}h1{font-size:2rem}h2{font-size:1.5rem}h3{font-size:1.17rem}h4{font-size:1rem}h5{font-size:.83rem}h6{font-size:.67rem}h1{margin:.67em 0}pre{white-space:pre-wrap}hr{border-style:solid;border-width:1px 0 0;color:inherit;height:0;overflow:visible}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle;max-width:100%}canvas,img,svg,video{height:auto}audio{width:100%}img{border-style:none}svg{overflow:hidden}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}")},b={saneEmbeds:" img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; max-width: 100%; } img, svg, video, canvas { height: auto; } ",hiddenProp:" [hidden] { display: none !important; } ",reduceMotion:" @media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation-delay: -1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; background-attachment: initial !important; scroll-behavior: auto !important; transition-delay: 0s !important; transition-duration: 0s !important; } } ",fontSmoothing:" html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } ",resetMargins:" blockquote, dl, dd, h1, h2, h3, h4, h5, h6, figure, pre { margin: 0; } ",resetHeadings:" h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; } "};var u={expandable:" &::before { width: 1px; margin-left: -1px; float: left; } &::after { content: ''; display: table; clear: both; }",absolute:" position: relative; & > * { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } &::before { position: relative; } ",lite:""};function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var f={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"};var g={track:function(e){var t="string"==typeof e?e:e.join();return" -webkit-appearance: none; &::-moz-focus-outer { border: 0; } &::-webkit-slider-runnable-track { -webkit-appearance: none; ".concat(t," } &::-moz-range-track { -moz-appearance: none; ").concat(t," } &::-ms-track { ").concat(t," }")},thumb:function(e){var t="string"==typeof e?e:e.join();return" -webkit-appearance: none; &::-webkit-slider-thumb { -webkit-appearance: none; ".concat(t," } &::-moz-range-thumb { -moz-appearance: none; ").concat(t," } &::-ms-thumb { ").concat(t," }")}};e.aspect=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{mode:"expandable"};return" ".concat(u[n.mode]," &::before { content: ''; display: block; padding-top: ").concat(t/e*100,"%; } ")},e.clearFix=" &::after{ content: ''; display: block; clear: both; }",e.fluid=function(e,n,o,r){var i=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?p(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({minScreenSize:"480px",maxScreenSize:"1280px"},r);function s(e,t){var n={a:a(e)[0],b:a(t)[0]},o={a:a(e)[1],b:a(t)[1]};return o.a!==o.b&&(n.b=function(e,t,n,o){if(!c.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!c[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);return o=Math.pow(10,parseInt(o)||5),Math.round(c[n][t]*e*o)/o}(n.b,o.b,o.a)),n.b-n.a}return" ".concat(e,": calc(").concat(n," + ").concat(s(n,o)," * ((100vw - ").concat(i.minScreenSize,") / ").concat(s(i.minScreenSize,i.maxScreenSize),")); @media (max-width: ").concat(i.minScreenSize,") { ").concat(e,": ").concat(n,"; } @media (min-width: ").concat(i.maxScreenSize,") { ").concat(e,": ").concat(o,"; } ")},e.fontFace=function(e,n,o){var r=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?m(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({display:"swap"},o);return' @font-face { font-family: "'.concat(e,'"; src: ').concat(n.map((function(e){return e&&'url("'.concat(e,'") format("').concat(f[e.split(".").pop()],'")')})).filter(Boolean).join(",\n"),"; ").concat(r.weight?"font-weight: ".concat(r.weight,";"):""," ").concat(r.style?"font-style: ".concat(r.style,";"):""," font-display: ").concat(r.display,"; } ")},e.hex=function(e,t,n){return function(e,t,n){return"#".concat(((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1))}(e,t,n)},e.lineCrop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t>1?(console.warn("The modifier given to lineCrop() must be <=1, you gave ".concat(t)),""):" &::before { content: ''; display: block; height: 0; width: 0; margin-top: calc(".concat(+(t-e).toFixed(2)," * 0.5em); } ")},e.msGridRows=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],n=1;n<=e;n++)t.push("& > :nth-of-type(".concat(n,") { -ms-grid-row: ").concat(n,"; }"));return"".concat(t.join("\n"))},e.normalize=function(e){var n=e.base,o=void 0===n?"normalize":n,r=e.saneEmbeds,i=void 0===r||r,a=e.hiddenProp,c=void 0===a||a,p=e.reduceMotion,u=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?l(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({hiddenProp:c,reduceMotion:void 0===p||p},s(e,["base","saneEmbeds","hiddenProp","reduceMotion"]));return" ".concat(o?d[o]:""," ").concat(i&&"remedy"!==o?b.saneEmbeds:""," ").concat(Object.keys(u).map((function(e){return u[e]&&b[e]})).filter(Boolean).join("")," ")},e.position=function(e,t){var n=function(e){var t=e.match(/(([\+\-]?[0-9\.]+)(%|px|pt|em|rem|in|cm|mm|ex|pc|vw)?)|(calc\(([^\)]+)\)|null|false|undefined|auto)/g),n={top:"auto",right:"auto",bottom:"auto",left:"auto"};if(!t)return n;switch(t.length){case 1:Object.keys(n).forEach((function(e){return n[e]=t[0]}));break;case 2:Object.keys(n).forEach((function(e,o){return n[e]=t[(o+1)%2?0:1]}));break;case 3:Object.keys(n).forEach((function(e,o){return n[e]=t[3===o?1:o]}));break;case 4:Object.keys(n).forEach((function(e,o){return n[e]=t[o]}))}return o(o({},n),{},{important:/!important$/.test(e)})}(t.toString()),r=n.top,i=n.right,a=n.bottom,c=n.left,p=n.important;return" position: ".concat(e).concat(p?" !important":"","; top: ").concat(r,"; right: ").concat(i,"; bottom: ").concat(a,"; left: ").concat(c,"; ")},e.range=g,e.reset=function(e){return i[e]},e.rgba=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"rgba(".concat(r(e),", ").concat(t,")")},e.subgrid=" display: grid; grid-column: 1 / 99 !important; grid: inherit; grid-gap: inherit; grid-template-columns: inherit;",Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self)["satchel-css"]={})}(this,(function(e){"use strict";function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function o(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?n(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function r(e){var t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,n,o){return t+t+n+n+o+o})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?n.slice(1).map((function(e){return parseInt(e,16)})):[]}var i={button:" font: inherit; color: inherit; border: 0; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; line-height: normal; -webkit-appearance: none; cursor: pointer; &::-moz-focus-inner { border: 0; padding: 0; } ",input:" font: inherit; color: inherit; border: 0; margin: 0; padding: 0; display: inline-block; vertical-align: middle; white-space: normal; background: none; line-height: 1; overflow: auto; -webkit-appearance: none; ",list:" list-style: none; padding: 0; margin: 0; ",blockquote:" margin: 0; padding: 0; vertical-align: baseline; &::before, &::after { content: ''; } ",fieldset:" border: 0; padding: 0.01em 0 0 0; margin: 0; min-width: 0; body:not(:-moz-handler-blocked) & { display: table-cell; } ",legend:" padding: 0; display: table; "};var a=function(e,t){t||(t=[0,""]),e=String(e);var n=parseFloat(e,10);return t[0]=n,t[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t},c={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}};function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function s(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},i=Object.keys(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var d={normalize:"".concat("/*! modern-normalize v0.6.0 | MIT License | https://github.com/sindresorhus/modern-normalize */*,:after,:before{box-sizing:border-box}:root{-moz-tab-size:4;tab-size:4}html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji}hr{height:0}abbr[title]{text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{padding:0}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}"),"normalize-legacy":"".concat("html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}h1{font-size:2em;margin:.67em 0}dl dl,dl ol,dl ul,ol dl,ol ol,ol ul,ul dl,ul ol,ul ul{margin:0}hr{box-sizing:content-box;height:0;overflow:visible}main{display:block}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,select{margin:0}button{overflow:visible;text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}fieldset{padding:.35em .75em .625em}input{overflow:visible}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;white-space:normal}progress{display:inline-block;vertical-align:baseline}select{text-transform:none}textarea{margin:0;overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-input-placeholder{color:inherit;opacity:.54}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}::-moz-focus-inner{border-style:none;padding:0}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}details,dialog{display:block}dialog{background-color:#fff;border:solid;color:#000;height:-moz-fit-content;height:-webkit-fit-content;height:fit-content;left:0;margin:auto;padding:1em;position:absolute;right:0;width:-moz-fit-content;width:-webkit-fit-content;width:fit-content}dialog:not([open]){display:none}summary{display:list-item}canvas{display:inline-block}[hidden],template{display:none}"),remedy:"".concat("*,:after,:before{box-sizing:border-box}html{line-sizing:normal}body{margin:0}h1{font-size:2rem}h2{font-size:1.5rem}h3{font-size:1.17rem}h4{font-size:1rem}h5{font-size:.83rem}h6{font-size:.67rem}h1{margin:.67em 0}pre{white-space:pre-wrap}hr{border-style:solid;border-width:1px 0 0;color:inherit;height:0;overflow:visible}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle;max-width:100%}canvas,img,svg,video{height:auto}audio{width:100%}img{border-style:none}svg{overflow:hidden}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}")},b={saneEmbeds:" img, svg, video, canvas, audio, iframe, embed, object { display: inline-block; vertical-align: middle; max-width: 100%; } img, svg, video, canvas { height: auto; } ",hiddenProp:" [hidden] { display: none !important; } ",reduceMotion:" @media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation-delay: -1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; background-attachment: initial !important; scroll-behavior: auto !important; transition-delay: 0s !important; transition-duration: 0s !important; } } ",fontSmoothing:" html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } ",resetMargins:" blockquote, dl, dd, h1, h2, h3, h4, h5, h6, figure, pre { margin: 0; } ",resetHeadings:" h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; } "};var u={expandable:" &::before { width: 1px; margin-left: -1px; float: left; } &::after { content: ''; display: table; clear: both; }",absolute:" position: relative; & > * { position: absolute; top: 0; right: 0; bottom: 0; left: 0; } &::before { position: relative; } ",lite:""};function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}var f={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"};var g={track:function(e){var t="string"==typeof e?e:e.join();return" -webkit-appearance: none; &::-moz-focus-outer { border: 0; } &::-webkit-slider-runnable-track { -webkit-appearance: none; ".concat(t," } &::-moz-range-track { -moz-appearance: none; ").concat(t," } &::-ms-track { ").concat(t," }")},thumb:function(e){var t="string"==typeof e?e:e.join();return" -webkit-appearance: none; &::-webkit-slider-thumb { -webkit-appearance: none; ".concat(t," } &::-moz-range-thumb { -moz-appearance: none; ").concat(t," } &::-ms-thumb { ").concat(t," }")}};e.aspect=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{mode:"expandable"};return" ".concat(u[n.mode]," &::before { content: ''; display: block; padding-top: ").concat(t/e*100,"%; } ")},e.clearFix=" &::after{ content: ''; display: block; clear: both; }",e.fluid=function(e,n,o,r){var i=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?p(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):p(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({minScreenSize:"480px",maxScreenSize:"1280px"},r);function s(e,t){var n={a:a(e)[0],b:a(t)[0]},o={a:a(e)[1],b:a(t)[1]};return o.a!==o.b&&(n.b=function(e,t,n,o){if(!c.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!c[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);return o=Math.pow(10,parseInt(o)||5),Math.round(c[n][t]*e*o)/o}(n.b,o.b,o.a)),n.b-n.a}return" ".concat(e,": calc(").concat(n," + ").concat(s(n,o)," * ((100vw - ").concat(i.minScreenSize,") / ").concat(s(i.minScreenSize,i.maxScreenSize),")); @media (max-width: ").concat(i.minScreenSize,") { ").concat(e,": ").concat(n,"; } @media (min-width: ").concat(i.maxScreenSize,") { ").concat(e,": ").concat(o,"; } ")},e.fontFace=function(e,n,o){var r=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?m(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({display:"swap"},o);return' @font-face { font-family: "'.concat(e,'"; src: ').concat(n.map((function(e){return e&&'url("'.concat(e,'") format("').concat(f[e.split(".").pop()],'")')})).filter(Boolean).join(",\n"),"; ").concat(r.weight?"font-weight: ".concat(r.weight,";"):""," ").concat(r.style?"font-style: ".concat(r.style,";"):""," font-display: ").concat(r.display,"; } ")},e.hex=function(e,t,n){return function(e,t,n){return"#".concat(((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1))}(e,t,n)},e.lineCrop=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t>1?(console.warn("The modifier given to lineCrop() must be <=1, you gave ".concat(t)),""):" &::before { content: ''; display: block; height: 0; width: 0; margin-top: calc(".concat(+(t-e).toFixed(2)," * 0.5em); } ")},e.msGridRows=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5,t=[],n=1;n<=e;n++)t.push("& > :nth-of-type(".concat(n,") { -ms-grid-row: ").concat(n,"; }"));return"".concat(t.join("\n"))},e.normalize=function(e){var n=e.base,o=void 0===n?"normalize":n,r=e.saneEmbeds,i=void 0===r||r,a=e.hiddenProp,c=void 0===a||a,p=e.reduceMotion,u=function(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?l(Object(o),!0).forEach((function(n){t(e,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({hiddenProp:c,reduceMotion:void 0===p||p},s(e,["base","saneEmbeds","hiddenProp","reduceMotion"]));return" ".concat(o?d[o]:""," ").concat(i&&"remedy"!==o?b.saneEmbeds:""," ").concat(Object.keys(u).map((function(e){return u[e]&&b[e]})).filter(Boolean).join("")," ")},e.position=function(e,t){var n=function(e){var t=e.match(/(([\+\-]?[0-9\.]+)(%|px|pt|em|rem|in|cm|mm|ex|pc|vw)?)|(calc\(([^\)]+)\)|null|false|undefined|auto)/g),n={top:"auto",right:"auto",bottom:"auto",left:"auto"};if(!t)return n;switch(t.length){case 1:Object.keys(n).forEach((function(e){return n[e]=t[0]}));break;case 2:Object.keys(n).forEach((function(e,o){return n[e]=t[(o+1)%2?0:1]}));break;case 3:Object.keys(n).forEach((function(e,o){return n[e]=t[3===o?1:o]}));break;case 4:Object.keys(n).forEach((function(e,o){return n[e]=t[o]}))}return o(o({},n),{},{important:/!important$/.test(e)})}(t.toString()),r=n.top,i=n.right,a=n.bottom,c=n.left,p=n.important;return" position: ".concat(e).concat(p?" !important":"","; top: ").concat(r,"; right: ").concat(i,"; bottom: ").concat(a,"; left: ").concat(c,"; ")},e.range=g,e.reset=function(e){return i[e]},e.rgba=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"rgba(".concat(r(e),", ").concat(t,")")},e.subgrid=" display: grid; grid-column: 1 / 99 !important; grid: inherit; grid-gap: inherit; grid-template-columns: inherit;",Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "satchel-css", | ||
"version": "0.9.3", | ||
"version": "0.9.4", | ||
"description": "A little bag of CSS-in-JS superpowers", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
81907