satchel-css
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -1,2 +0,2 @@ | ||
var e={expandable:" &::before { width: 1px; margin-left: -1px; float: left; } &::after { content: ''; display: table; clear: both; }",absolute:" position: relative; & > * { position: absolute !important; top: 0; right: 0; bottom: 0; left: 0; } &::before { position: relative; } ",lite:""};function t(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{mode:"expandable"};return" ".concat(e[o.mode]," &::before { content: ''; display: block; padding-top: ").concat(n/t*100,"%; } ")}var n=" &::after{ content: ''; display: block; clear: both; }";function o(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 r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"rgba(".concat(o(e),", ").concat(t,")")}function i(e,t,n){return function(e,t,n){return"#".concat(((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1))}(e,t,n)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=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},p={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 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}function s(e,t,n,o){var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({minScreenSize:"480px",maxScreenSize:"1280px"},o);function i(e,t){var n={a:c(e)[0],b:c(t)[0]},o={a:c(e)[1],b:c(t)[1]};return o.a!==o.b&&(n.b=function(e,t,n,o){if(!p.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!p[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);return o=Math.pow(10,parseInt(o)||5),Math.round(p[n][t]*e*o)/o}(n.b,o.b,o.a)),n.b-n.a}return" ".concat(e,": calc(").concat(t," + ").concat(i(t,n)," * ((100vw - ").concat(r.minScreenSize,") / ").concat(i(r.minScreenSize,r.maxScreenSize),")); @media (max-width: ").concat(r.minScreenSize,") { ").concat(e,": ").concat(t,"; } @media (min-width: ").concat(r.maxScreenSize,") { ").concat(e,": ").concat(n,"; } ")}function d(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 b={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"};function u(e,t,n){var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({display:"swap"},n);return' @font-face { font-family: "'.concat(e,'"; src: ').concat(t.map((function(e){return e?e&&'url("'.concat(e,'") format("').concat(b[e.split(".").pop()],'")'):null})).filter(Boolean).join(",\n"),"; ").concat(o.weight?"font-weight: ".concat(o.weight,";"):""," ").concat(o.style?"font-style: ".concat(o.style,";"):""," font-display: ").concat(o.display,"; } ")}function m(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 f(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 g={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}")},h={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 y(e){var t=e.base,n=void 0===t?"normalize":t,o=e.saneEmbeds,r=void 0===o||o,i=e.hiddenProp,c=void 0===i||i,p=e.reduceMotion,l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hiddenProp:c,reduceMotion:void 0===p||p},m(e,["base","saneEmbeds","hiddenProp","reduceMotion"]));return" ".concat(n?g[n]:""," ").concat(r&&"remedy"!==n?h.saneEmbeds:""," ").concat(Object.keys(l).map((function(e){return l[e]&&h[e]})).filter(Boolean).join("")," ")}function w(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(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 v(v({},n),{},{important:/!important$/.test(e)})}(t.toString()),o=n.top,r=n.right,i=n.bottom,a=n.left,c=n.important;return" position: ".concat(e).concat(c?" !important":"","; top: ").concat(o,"; right: ").concat(r,"; bottom: ").concat(i,"; left: ").concat(a,"; ")}var k={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," }")}},x={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 z(e){return x[e]}function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"2rem";return" display: flex; flex-wrap: wrap; margin: calc(0px - (".concat(e," / 2)); & > * { padding: calc(").concat(e," / 2); } ")}var P=" display: grid; grid-column: 1 / -1 !important; grid: inherit; grid-gap: inherit; grid-template-columns: inherit; -ms-grid-column: 1; -ms-grid-column-span: 99;";function S(){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 E(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); } ")}export{t as aspect,n as clearFix,j as flexGrid,s as fluid,u as fontFace,i as hex,E as lineCrop,S as msGridRows,y as normalize,O as position,k as range,z as reset,r as rgba,P as subgrid}; | ||
const e={expandable:" &::before { width: 1px; margin-left: -1px; float: left; } &::after { content: ''; display: table; clear: both; }",absolute:" position: relative; & > * { position: absolute !important; top: 0; right: 0; bottom: 0; left: 0; } &::before { position: relative; } ",lite:""};function t(t,n,o={mode:"absolute"}){return` ${e[o.mode]} &::before { content: ''; display: block; padding-top: ${n/t*100}%; } `}const n=" &::after{ content: ''; display: block; clear: both; }";function o(e,t=1){return`rgba(${function(e){const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,n,o)=>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(e=>parseInt(e,16)):[]}(e)}, ${t})`}function i(e,t,n){return function(e,t,n){return"#"+((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)}(e,t,n)}var r=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},a={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 s(e,t,n,o){const i={minScreenSize:"480px",maxScreenSize:"1280px",...o};function s(e,t){const n={a:r(e)[0],b:r(t)[0]},o={a:r(e)[1],b:r(t)[1]};return o.a!==o.b&&(n.b=function(e,t,n,o){if(!a.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!a[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var i=a[n][t]*e;return!1!==o?(o=Math.pow(10,parseInt(o)||5),Math.round(i*o)/o):i}(n.b,o.b,o.a)),n.b-n.a}return` ${e}: calc(${t} + ${s(t,n)} * ((100vw - ${i.minScreenSize}) / ${s(i.minScreenSize,i.maxScreenSize)})); @media (max-width: ${i.minScreenSize}) { ${e}: ${t}; } @media (min-width: ${i.maxScreenSize}) { ${e}: ${n}; } `}const d={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"};function l(e,t,n){const o={display:"swap",...n};return` @font-face { font-family: "${e}"; src: ${t.map((function(e){return e?e&&`url("${e}") format("${d[e.split(".").pop()]}")`:null})).filter(Boolean).join(",\n")}; ${o.weight?`font-weight: ${o.weight};`:""} ${o.style?`font-style: ${o.style};`:""} font-display: ${o.display}; } `}const p={normalize:"/*! 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":"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:"*,: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}"},m={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 c({base:e="normalize",saneEmbeds:t=!0,hiddenProp:n=!0,reduceMotion:o=!0,...i}){const r={hiddenProp:n,reduceMotion:o,...i};return` ${e?p[e]:""} ${t&&"remedy"!==e?m.saneEmbeds:""} ${Object.keys(r).map(e=>r[e]&&m[e]).filter(Boolean).join("")} `}function b(e,t){const{top:n,right:o,bottom:i,left:r,important:a}=function(e){const 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(e=>n[e]=t[0]);break;case 2:Object.keys(n).forEach((e,o)=>n[e]=t[(o+1)%2?0:1]);break;case 3:Object.keys(n).forEach((e,o)=>n[e]=t[3===o?1:o]);break;case 4:Object.keys(n).forEach((e,o)=>n[e]=t[o])}return{...n,important:/!important$/.test(e)}}(t.toString());return` position: ${e}${a?" !important":""}; top: ${n}; right: ${o}; bottom: ${i}; left: ${r}; `}const u={track:function(e){const t="string"==typeof e?e:e.join();return` -webkit-appearance: none; &::-moz-focus-outer { border: 0; } &::-webkit-slider-runnable-track { -webkit-appearance: none; ${t} } &::-moz-range-track { -moz-appearance: none; ${t} } &::-ms-track { ${t} }`},thumb:function(e){const t="string"==typeof e?e:e.join();return` -webkit-appearance: none; &::-webkit-slider-thumb { -webkit-appearance: none; ${t} } &::-moz-range-thumb { -moz-appearance: none; ${t} } &::-ms-thumb { ${t} }`}},f={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; -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 h(e){return f[e]}function g(e="2rem"){return` display: flex; flex-wrap: wrap; margin: calc(0px - (${e} / 2)); & > * { padding: calc(${e} / 2); } `}const y=" display: grid; grid-column: 1 / -1 !important; grid: inherit; grid-gap: inherit; grid-template-columns: inherit; -ms-grid-column: 1; -ms-grid-column-span: 99;";function w(e=5){const t=[];for(let n=1;n<=e;n++)t.push(`& > :nth-of-type(${n}) { -ms-grid-row: ${n}; }`);return""+t.join("\n")}function k(e,t=1){return t>1?(console.warn("The modifier given to lineCrop() must be <=1, you gave "+t),""):` &::before { content: ''; display: block; height: 0; width: 0; margin-top: calc(${+(t-e).toFixed(2)} * 0.5em); } `}export{t as aspect,n as clearFix,g as flexGrid,s as fluid,l as fontFace,i as hex,k as lineCrop,w as msGridRows,c as normalize,b as position,u as range,h as reset,o as rgba,y 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";var t={expandable:" &::before { width: 1px; margin-left: -1px; float: left; } &::after { content: ''; display: table; clear: both; }",absolute:" position: relative; & > * { position: absolute !important; top: 0; right: 0; bottom: 0; left: 0; } &::before { position: relative; } ",lite:""};function n(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 o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=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},i={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 a(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 c(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 p={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"};function l(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 s(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; } "};function u(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f={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," }")}},g={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; "};e.aspect=function(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{mode:"expandable"};return" ".concat(t[o.mode]," &::before { content: ''; display: block; padding-top: ").concat(n/e*100,"%; } ")},e.clearFix=" &::after{ content: ''; display: block; clear: both; }",e.flexGrid=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"2rem";return" display: flex; flex-wrap: wrap; margin: calc(0px - (".concat(e," / 2)); & > * { padding: calc(").concat(e," / 2); } ")},e.fluid=function(e,t,n,c){var p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({minScreenSize:"480px",maxScreenSize:"1280px"},c);function l(e,t){var n={a:r(e)[0],b:r(t)[0]},o={a:r(e)[1],b:r(t)[1]};return o.a!==o.b&&(n.b=function(e,t,n,o){if(!i.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!i[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);return o=Math.pow(10,parseInt(o)||5),Math.round(i[n][t]*e*o)/o}(n.b,o.b,o.a)),n.b-n.a}return" ".concat(e,": calc(").concat(t," + ").concat(l(t,n)," * ((100vw - ").concat(p.minScreenSize,") / ").concat(l(p.minScreenSize,p.maxScreenSize),")); @media (max-width: ").concat(p.minScreenSize,") { ").concat(e,": ").concat(t,"; } @media (min-width: ").concat(p.maxScreenSize,") { ").concat(e,": ").concat(n,"; } ")},e.fontFace=function(e,t,n){var r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({display:"swap"},n);return' @font-face { font-family: "'.concat(e,'"; src: ').concat(t.map((function(e){return e?e&&'url("'.concat(e,'") format("').concat(p[e.split(".").pop()],'")'):null})).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 t=e.base,n=void 0===t?"normalize":t,r=e.saneEmbeds,i=void 0===r||r,a=e.hiddenProp,c=void 0===a||a,p=e.reduceMotion,u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({hiddenProp:c,reduceMotion:void 0===p||p},l(e,["base","saneEmbeds","hiddenProp","reduceMotion"]));return" ".concat(n?d[n]:""," ").concat(i&&"remedy"!==n?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 m(m({},n),{},{important:/!important$/.test(e)})}(t.toString()),o=n.top,r=n.right,i=n.bottom,a=n.left,c=n.important;return" position: ".concat(e).concat(c?" !important":"","; top: ").concat(o,"; right: ").concat(r,"; bottom: ").concat(i,"; left: ").concat(a,"; ")},e.range=f,e.reset=function(e){return g[e]},e.rgba=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"rgba(".concat(n(e),", ").concat(t,")")},e.subgrid=" display: grid; grid-column: 1 / -1 !important; grid: inherit; grid-gap: inherit; grid-template-columns: inherit; -ms-grid-column: 1; -ms-grid-column-span: 99;",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="undefined"!=typeof globalThis?globalThis:e||self)["satchel-css"]={})}(this,(function(e){"use strict";const t={expandable:" &::before { width: 1px; margin-left: -1px; float: left; } &::after { content: ''; display: table; clear: both; }",absolute:" position: relative; & > * { position: absolute !important; top: 0; right: 0; bottom: 0; left: 0; } &::before { position: relative; } ",lite:""};var n=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},o={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}};const i={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"};const r={normalize:"/*! 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":"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:"*,: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}"},a={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; } "};const s={track:function(e){const t="string"==typeof e?e:e.join();return` -webkit-appearance: none; &::-moz-focus-outer { border: 0; } &::-webkit-slider-runnable-track { -webkit-appearance: none; ${t} } &::-moz-range-track { -moz-appearance: none; ${t} } &::-ms-track { ${t} }`},thumb:function(e){const t="string"==typeof e?e:e.join();return` -webkit-appearance: none; &::-webkit-slider-thumb { -webkit-appearance: none; ${t} } &::-moz-range-thumb { -moz-appearance: none; ${t} } &::-ms-thumb { ${t} }`}},d={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; -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; "};e.aspect=function(e,n,o={mode:"absolute"}){return` ${t[o.mode]} &::before { content: ''; display: block; padding-top: ${n/e*100}%; } `},e.clearFix=" &::after{ content: ''; display: block; clear: both; }",e.flexGrid=function(e="2rem"){return` display: flex; flex-wrap: wrap; margin: calc(0px - (${e} / 2)); & > * { padding: calc(${e} / 2); } `},e.fluid=function(e,t,i,r){const a={minScreenSize:"480px",maxScreenSize:"1280px",...r};function s(e,t){const i={a:n(e)[0],b:n(t)[0]},r={a:n(e)[1],b:n(t)[1]};return r.a!==r.b&&(i.b=function(e,t,n,i){if(!o.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!o[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var r=o[n][t]*e;return!1!==i?(i=Math.pow(10,parseInt(i)||5),Math.round(r*i)/i):r}(i.b,r.b,r.a)),i.b-i.a}return` ${e}: calc(${t} + ${s(t,i)} * ((100vw - ${a.minScreenSize}) / ${s(a.minScreenSize,a.maxScreenSize)})); @media (max-width: ${a.minScreenSize}) { ${e}: ${t}; } @media (min-width: ${a.maxScreenSize}) { ${e}: ${i}; } `},e.fontFace=function(e,t,n){const o={display:"swap",...n};return` @font-face { font-family: "${e}"; src: ${t.map((function(e){return e?e&&`url("${e}") format("${i[e.split(".").pop()]}")`:null})).filter(Boolean).join(",\n")}; ${o.weight?`font-weight: ${o.weight};`:""} ${o.style?`font-style: ${o.style};`:""} font-display: ${o.display}; } `},e.hex=function(e,t,n){return function(e,t,n){return"#"+((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)}(e,t,n)},e.lineCrop=function(e,t=1){return t>1?(console.warn("The modifier given to lineCrop() must be <=1, you gave "+t),""):` &::before { content: ''; display: block; height: 0; width: 0; margin-top: calc(${+(t-e).toFixed(2)} * 0.5em); } `},e.msGridRows=function(e=5){const t=[];for(let n=1;n<=e;n++)t.push(`& > :nth-of-type(${n}) { -ms-grid-row: ${n}; }`);return""+t.join("\n")},e.normalize=function({base:e="normalize",saneEmbeds:t=!0,hiddenProp:n=!0,reduceMotion:o=!0,...i}){const s={hiddenProp:n,reduceMotion:o,...i};return` ${e?r[e]:""} ${t&&"remedy"!==e?a.saneEmbeds:""} ${Object.keys(s).map(e=>s[e]&&a[e]).filter(Boolean).join("")} `},e.position=function(e,t){const{top:n,right:o,bottom:i,left:r,important:a}=function(e){const 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(e=>n[e]=t[0]);break;case 2:Object.keys(n).forEach((e,o)=>n[e]=t[(o+1)%2?0:1]);break;case 3:Object.keys(n).forEach((e,o)=>n[e]=t[3===o?1:o]);break;case 4:Object.keys(n).forEach((e,o)=>n[e]=t[o])}return{...n,important:/!important$/.test(e)}}(t.toString());return` position: ${e}${a?" !important":""}; top: ${n}; right: ${o}; bottom: ${i}; left: ${r}; `},e.range=s,e.reset=function(e){return d[e]},e.rgba=function(e,t=1){return`rgba(${function(e){const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,t,n,o)=>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(e=>parseInt(e,16)):[]}(e)}, ${t})`},e.subgrid=" display: grid; grid-column: 1 / -1 !important; grid: inherit; grid-gap: inherit; grid-template-columns: inherit; -ms-grid-column: 1; -ms-grid-column-span: 99;",Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
Copyright 2020 Radioactive Pesto | ||
Copyright 2020 Peppercorn Studio | ||
@@ -3,0 +3,0 @@ 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: |
{ | ||
"name": "satchel-css", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"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
72577
189