satchel-css
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -30,2 +30,3 @@ declare const clearFix = "\n &::after{\n content: '';\n display: block;\n clear: both;\n }\n"; | ||
declare function normalize({ base, saneEmbeds, hiddenProp, reduceMotion, ...props }: NormalizeProps): string; | ||
declare function lineCrop(lineHeight: number, modifier?: number): string; | ||
type Options = { | ||
@@ -49,2 +50,2 @@ mode: "expandable" | "absolute" | "lite"; | ||
}; | ||
export { clearFix, position, rgba, hex, reset, fluid, subgrid, msGridRows, NormalizeProps, normalize, aspect, fontFace, range }; | ||
export { clearFix, position, rgba, hex, reset, fluid, subgrid, msGridRows, NormalizeProps, normalize, lineCrop, aspect, fontFace, range }; |
@@ -30,2 +30,3 @@ declare const clearFix = "\n &::after{\n content: '';\n display: block;\n clear: both;\n }\n"; | ||
declare function normalize({ base, saneEmbeds, hiddenProp, reduceMotion, ...props }: NormalizeProps): string; | ||
declare function lineCrop(lineHeight: number, modifier?: number): string; | ||
type Options = { | ||
@@ -49,2 +50,2 @@ mode: "expandable" | "absolute" | "lite"; | ||
}; | ||
export { clearFix, position, rgba, hex, reset, fluid, subgrid, msGridRows, NormalizeProps, normalize, aspect, fontFace, range }; | ||
export { clearFix, position, rgba, hex, reset, fluid, subgrid, msGridRows, NormalizeProps, normalize, lineCrop, aspect, fontFace, range }; |
@@ -1,2 +0,2 @@ | ||
var e=" &::after{ content: ''; display: block; clear: both; }";function t(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 n}(t.toString()),o=n.top,r=n.right,i=n.bottom,a=n.left;return" position: ".concat(e,"; top: ").concat(o,"; right: ").concat(r,"; bottom: ").concat(i,"; left: ").concat(a,"; ")}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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"rgba(".concat(n(e),", ").concat(t,")")}function r(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 i={button:" border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inherit; font: inherit; line-height: normal; -webkit-appearance: none; &::-moz-focus-inner { border: 0; padding: 0; } ",input:" margin: 0; border: 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 a(e){return i[e]}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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},l={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 d(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?p(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(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: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(!l.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!l[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);return o=Math.pow(10,parseInt(o)||5),Math.round(l[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,"; } ")}var b=" display: grid; grid-column: 1 / 99; grid: inherit; grid-gap: inherit; grid-template-columns: inherit;";function u(){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 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: 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,a=void 0===i||i,s=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){c(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:a,reduceMotion:void 0===s||s},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("")," ")}var w={expandable:" &::before { content: ''; 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 { content: ''; position: relative; } ",lite:""};function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{mode:"expandable"};return" ".concat(w[n.mode]," &::before { padding-top: ").concat(t/e*100,"%; } ")}function k(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 t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"};function z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["woff2","woff"],o=arguments.length>3?arguments[3]:void 0,r=O({weight:"normal",style:"normal",display:"swap"},o);function i(e,t){var n=Object.keys(x).includes(e);switch(t){case"extension":return n?e:Object.keys(x).find((function(t){return x[t]===e}));case"format":return n?x[e]:e;default:return""}}return' @font-face { font-family: "'.concat(e,'"; src: ').concat(n.map((function(e){return'url("'.concat(t,".").concat(i(e,"extension"),'") format("').concat(i(e,"format"),'")')})).join(",\n"),"; font-weight: ").concat(r.weight,"; font-style: ").concat(r.style,"; font-display: ").concat(r.display,"; } ")}var j={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{v as aspect,e as clearFix,d as fluid,z as fontFace,r as hex,u as msGridRows,y as normalize,t as position,j as range,a as reset,o as rgba,b as subgrid}; | ||
var e=" &::after{ content: ''; display: block; clear: both; }";function t(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 n}(t.toString()),o=n.top,r=n.right,i=n.bottom,a=n.left;return" position: ".concat(e,"; top: ").concat(o,"; right: ").concat(r,"; bottom: ").concat(i,"; left: ").concat(a,"; ")}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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"rgba(".concat(n(e),", ").concat(t,")")}function r(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 i={button:" border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inherit; font: inherit; line-height: normal; -webkit-appearance: none; &::-moz-focus-inner { border: 0; padding: 0; } ",input:" margin: 0; border: 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 a(e){return i[e]}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=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},s={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 d(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?p(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(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:l(e)[0],b:l(t)[0]},o={a:l(e)[1],b:l(t)[1]};return o.a!==o.b&&(n.b=function(e,t,n,o){if(!s.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!s[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);return o=Math.pow(10,parseInt(o)||5),Math.round(s[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,"; } ")}var b=" display: grid; grid-column: 1 / 99; grid: inherit; grid-gap: inherit; grid-template-columns: inherit;";function u(){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 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: 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,a=void 0===i||i,l=e.reduceMotion,s=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){c(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:a,reduceMotion:void 0===l||l},m(e,["base","saneEmbeds","hiddenProp","reduceMotion"]));return" ".concat(n?g[n]:""," ").concat(r&&"remedy"!==n?h.saneEmbeds:""," ").concat(Object.keys(s).map((function(e){return s[e]&&h[e]})).filter(Boolean).join("")," ")}function w(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 v={expandable:" &::before { content: ''; 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 { content: ''; position: relative; } ",lite:""};function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{mode:"expandable"};return" ".concat(v[n.mode]," &::before { padding-top: ").concat(t/e*100,"%; } ")}function x(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 t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var z={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"};function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["woff2","woff"],o=arguments.length>3?arguments[3]:void 0,r=O({weight:"normal",style:"normal",display:"swap"},o);function i(e,t){var n=Object.keys(z).includes(e);switch(t){case"extension":return n?e:Object.keys(z).find((function(t){return z[t]===e}));case"format":return n?z[e]:e;default:return""}}return' @font-face { font-family: "'.concat(e,'"; src: ').concat(n.map((function(e){return'url("'.concat(t,".").concat(i(e,"extension"),'") format("').concat(i(e,"format"),'")')})).join(",\n"),"; font-weight: ").concat(r.weight,"; font-style: ").concat(r.style,"; font-display: ").concat(r.display,"; } ")}var P={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{k as aspect,e as clearFix,d as fluid,j as fontFace,r as hex,w as lineCrop,u as msGridRows,y as normalize,t as position,P as range,a as reset,o as rgba,b 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){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 n={button:" border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inherit; font: inherit; line-height: normal; -webkit-appearance: none; &::-moz-focus-inner { border: 0; padding: 0; } ",input:" margin: 0; border: 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 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){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 l={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}")},p={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 d={expandable:" &::before { content: ''; 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 { content: ''; position: relative; } ",lite:""};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 b(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 m={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"};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," }")}};e.aspect=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{mode:"expandable"};return" ".concat(d[n.mode]," &::before { padding-top: ").concat(t/e*100,"%; } ")},e.clearFix=" &::after{ content: ''; display: block; clear: both; }",e.fluid=function(e,t,n,c){var s=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(s.minScreenSize,") / ").concat(l(s.minScreenSize,s.maxScreenSize),")); @media (max-width: ").concat(s.minScreenSize,") { ").concat(e,": ").concat(t,"; } @media (min-width: ").concat(s.maxScreenSize,") { ").concat(e,": ").concat(n,"; } ")},e.fontFace=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["woff2","woff"],o=arguments.length>3?arguments[3]:void 0,r=b({weight:"normal",style:"normal",display:"swap"},o);function i(e,t){var n=Object.keys(m).includes(e);switch(t){case"extension":return n?e:Object.keys(m).find((function(t){return m[t]===e}));case"format":return n?m[e]:e;default:return""}}return' @font-face { font-family: "'.concat(e,'"; src: ').concat(n.map((function(e){return'url("'.concat(t,".").concat(i(e,"extension"),'") format("').concat(i(e,"format"),'")')})).join(",\n"),"; font-weight: ").concat(r.weight,"; 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.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,d=void 0===a||a,u=e.reduceMotion,b=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:d,reduceMotion:void 0===u||u},c(e,["base","saneEmbeds","hiddenProp","reduceMotion"]));return" ".concat(n?l[n]:""," ").concat(i&&"remedy"!==n?p.saneEmbeds:""," ").concat(Object.keys(b).map((function(e){return b[e]&&p[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 n}(t.toString()),o=n.top,r=n.right,i=n.bottom,a=n.left;return" position: ".concat(e,"; top: ").concat(o,"; right: ").concat(r,"; bottom: ").concat(i,"; left: ").concat(a,"; ")},e.range=f,e.reset=function(e){return n[e]},e.rgba=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"rgba(".concat(t(e),", ").concat(n,")")},e.subgrid=" display: grid; grid-column: 1 / 99; 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){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 n={button:" border: none; margin: 0; padding: 0; width: auto; overflow: visible; background: transparent; color: inherit; font: inherit; line-height: normal; -webkit-appearance: none; &::-moz-focus-inner { border: 0; padding: 0; } ",input:" margin: 0; border: 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 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){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 l={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}")},d={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 p={expandable:" &::before { content: ''; 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 { content: ''; position: relative; } ",lite:""};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 b(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 m={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg"};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," }")}};e.aspect=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{mode:"expandable"};return" ".concat(p[n.mode]," &::before { padding-top: ").concat(t/e*100,"%; } ")},e.clearFix=" &::after{ content: ''; display: block; clear: both; }",e.fluid=function(e,t,n,c){var s=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(s.minScreenSize,") / ").concat(l(s.minScreenSize,s.maxScreenSize),")); @media (max-width: ").concat(s.minScreenSize,") { ").concat(e,": ").concat(t,"; } @media (min-width: ").concat(s.maxScreenSize,") { ").concat(e,": ").concat(n,"; } ")},e.fontFace=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["woff2","woff"],o=arguments.length>3?arguments[3]:void 0,r=b({weight:"normal",style:"normal",display:"swap"},o);function i(e,t){var n=Object.keys(m).includes(e);switch(t){case"extension":return n?e:Object.keys(m).find((function(t){return m[t]===e}));case"format":return n?m[e]:e;default:return""}}return' @font-face { font-family: "'.concat(e,'"; src: ').concat(n.map((function(e){return'url("'.concat(t,".").concat(i(e,"extension"),'") format("').concat(i(e,"format"),'")')})).join(",\n"),"; font-weight: ").concat(r.weight,"; 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,p=void 0===a||a,u=e.reduceMotion,b=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:p,reduceMotion:void 0===u||u},c(e,["base","saneEmbeds","hiddenProp","reduceMotion"]));return" ".concat(n?l[n]:""," ").concat(i&&"remedy"!==n?d.saneEmbeds:""," ").concat(Object.keys(b).map((function(e){return b[e]&&d[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 n}(t.toString()),o=n.top,r=n.right,i=n.bottom,a=n.left;return" position: ".concat(e,"; top: ").concat(o,"; right: ").concat(r,"; bottom: ").concat(i,"; left: ").concat(a,"; ")},e.range=f,e.reset=function(e){return n[e]},e.rgba=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return"rgba(".concat(t(e),", ").concat(n,")")},e.subgrid=" display: grid; grid-column: 1 / 99; grid: inherit; grid-gap: inherit; grid-template-columns: inherit;",Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "satchel-css", | ||
"version": "0.8.1", | ||
"version": "0.8.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
82571
205