diff --git a/docs/assets/polished.js b/docs/assets/polished.js index 55098b1f..52ea595d 100644 --- a/docs/assets/polished.js +++ b/docs/assets/polished.js @@ -168,7 +168,8 @@ var pxtoFactory$1 = function pxtoFactory$1(to) { * } */ -var em = pxtoFactory$1('em'); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var em = /*#__PURE__*/pxtoFactory$1('em'); // @@ -261,7 +262,9 @@ function modularScale(steps) { * 'height': '1rem' * } */ -var rem = pxtoFactory$1('rem'); + +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var rem = /*#__PURE__*/pxtoFactory$1('rem'); var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; @@ -628,140 +631,7 @@ function hiDPI() { return "\n @media only screen and (-webkit-min-device-pixel-ratio: " + ratio + "),\n only screen and (min--moz-device-pixel-ratio: " + ratio + "),\n only screen and (-o-min-device-pixel-ratio: " + ratio + "/1),\n only screen and (min-resolution: " + Math.round(ratio * 96) + "dpi),\n only screen and (min-resolution: " + ratio + "dppx)\n "; } -var _opinionatedRules; -var _unopinionatedRules; - // -var opinionatedRules = (_opinionatedRules = { - 'html': { - 'font-family': 'sans-serif' - }, - - 'body': { - 'margin': '0' - } - -}, defineProperty(_opinionatedRules, 'a:active,\n a:hover', { - 'outline-width': '0' -}), defineProperty(_opinionatedRules, 'button,\n input,\n optgroup,\n select,\n textarea', { - 'font-family': 'sans-serif', - 'font-size': '100%', - 'line-height': '1.15' -}), _opinionatedRules); - -var unopinionatedRules = (_unopinionatedRules = { - 'html': { - 'line-height': '1.15', - '-ms-text-size-adjust': '100%', - '-webkit-text-size-adjust': '100%' - } - -}, defineProperty(_unopinionatedRules, 'article,\n aside,\n footer,\n header,\n nav,\n section', { - 'display': 'block' -}), defineProperty(_unopinionatedRules, 'h1', { - 'font-size': '2em', - 'margin': '0.67em 0' -}), defineProperty(_unopinionatedRules, 'figcaption,\n figure,\n main', { - 'display': 'block' -}), defineProperty(_unopinionatedRules, 'figure', { - 'margin': '1em 40px' -}), defineProperty(_unopinionatedRules, 'hr', { - 'box-sizing': 'content-box', - 'height': '0', - 'overflow': 'visible' -}), defineProperty(_unopinionatedRules, 'pre', { - 'font-family': 'monospace, monospace', - 'font-size': '1em' -}), defineProperty(_unopinionatedRules, 'a', { - 'background-color': 'transparent', - '-webkit-text-decoration-skip': 'objects' -}), defineProperty(_unopinionatedRules, 'abbr[title]', defineProperty({ - 'border-bottom': 'none', - 'text-decoration': 'underline' -}, 'text-decoration', 'underline dotted')), defineProperty(_unopinionatedRules, 'b,\n strong', { - 'font-weight': 'inherit' -}), defineProperty(_unopinionatedRules, 'code,\n kbd,\n samp', { - 'font-family': 'monospace, monospace', - 'font-size': '1em' -}), defineProperty(_unopinionatedRules, 'dfn', { - 'font-style': 'italic' -}), defineProperty(_unopinionatedRules, 'mark', { - 'background-color': '#ff0', - 'color': '#000' -}), defineProperty(_unopinionatedRules, 'small', { - 'font-size': '80%' -}), defineProperty(_unopinionatedRules, 'sub,\n sup', { - 'font-size': '75%', - 'line-height': '0', - 'position': 'relative', - 'vertical-align': 'baseline' -}), defineProperty(_unopinionatedRules, 'sub', { - 'bottom': '-0.25em' -}), defineProperty(_unopinionatedRules, 'sup', { - 'top': '-0.5em' -}), defineProperty(_unopinionatedRules, 'audio,\n video', { - 'display': 'inline-block' -}), defineProperty(_unopinionatedRules, 'audio:not([controls])', { - 'display': 'none', - 'height': '0' -}), defineProperty(_unopinionatedRules, 'img', { - 'border-style': 'none' -}), defineProperty(_unopinionatedRules, 'svg:not(:root)', { - 'overflow': 'hidden' -}), defineProperty(_unopinionatedRules, 'button,\n input,\n optgroup,\n select,\n textarea', { - 'margin': '0' -}), defineProperty(_unopinionatedRules, 'button,\n input', { - 'overflow': 'visible' -}), defineProperty(_unopinionatedRules, 'button,\n select', { - 'text-transform': 'none' -}), defineProperty(_unopinionatedRules, 'button,\n html [type="button"],\n [type="reset"],\n [type="submit"]', { - '-webkit-appearance': 'button' -}), defineProperty(_unopinionatedRules, 'button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner', { - 'border-style': 'none', - 'padding': '0' -}), defineProperty(_unopinionatedRules, 'button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring', { - 'outline': '1px dotted ButtonText' -}), defineProperty(_unopinionatedRules, 'fieldset', { - 'border': '1px solid #c0c0c0', - 'margin': '0 2px', - 'padding': '0.35em 0.625em 0.75em' -}), defineProperty(_unopinionatedRules, 'legend', { - 'box-sizing': 'border-box', - 'color': 'inherit', - 'display': 'table', - 'max-width': '100%', - 'padding': '0', - 'white-space': 'normal' -}), defineProperty(_unopinionatedRules, 'progress', { - 'display': 'inline-block', - 'vertical-align': 'baseline' -}), defineProperty(_unopinionatedRules, 'textarea', { - 'overflow': 'auto' -}), defineProperty(_unopinionatedRules, '[type="checkbox"],\n [type="radio"]', { - 'box-sizing': 'border-box', - 'padding': '0' -}), defineProperty(_unopinionatedRules, '[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button', { - 'height': 'auto' -}), defineProperty(_unopinionatedRules, '[type="search"]', { - '-webkit-appearance': 'textfield', - 'outline-offset': '-2px' -}), defineProperty(_unopinionatedRules, '[type="search"]::-webkit-search-cancel-button,\n [type="search"]::-webkit-search-decoration', { - '-webkit-appearance': 'none' -}), defineProperty(_unopinionatedRules, '::-webkit-file-upload-button', { - '-webkit-appearance': 'button', - 'font': 'inherit' -}), defineProperty(_unopinionatedRules, 'details,\n menu', { - 'display': 'block' -}), defineProperty(_unopinionatedRules, 'summary', { - 'display': 'list-item' -}), defineProperty(_unopinionatedRules, 'canvas', { - 'display': 'inline-block' -}), defineProperty(_unopinionatedRules, 'template', { - 'display': 'none' -}), defineProperty(_unopinionatedRules, '[hidden]', { - 'display': 'none' -}), _unopinionatedRules); - function mergeRules(baseRules, additionalRules) { var mergedRules = _extends({}, baseRules); Object.keys(additionalRules).forEach(function (key) { @@ -797,6 +667,138 @@ function mergeRules(baseRules, additionalRules) { */ function normalize(excludeOpinionated) { + var _opinionatedRules, _unopinionatedRules; + + var opinionatedRules = (_opinionatedRules = { + 'html': { + 'font-family': 'sans-serif' + }, + + 'body': { + 'margin': '0' + } + + }, defineProperty(_opinionatedRules, 'a:active,\n a:hover', { + 'outline-width': '0' + }), defineProperty(_opinionatedRules, 'button,\n input,\n optgroup,\n select,\n textarea', { + 'font-family': 'sans-serif', + 'font-size': '100%', + 'line-height': '1.15' + }), _opinionatedRules); + + var unopinionatedRules = (_unopinionatedRules = { + 'html': { + 'line-height': '1.15', + '-ms-text-size-adjust': '100%', + '-webkit-text-size-adjust': '100%' + } + + }, defineProperty(_unopinionatedRules, 'article,\n aside,\n footer,\n header,\n nav,\n section', { + 'display': 'block' + }), defineProperty(_unopinionatedRules, 'h1', { + 'font-size': '2em', + 'margin': '0.67em 0' + }), defineProperty(_unopinionatedRules, 'figcaption,\n figure,\n main', { + 'display': 'block' + }), defineProperty(_unopinionatedRules, 'figure', { + 'margin': '1em 40px' + }), defineProperty(_unopinionatedRules, 'hr', { + 'box-sizing': 'content-box', + 'height': '0', + 'overflow': 'visible' + }), defineProperty(_unopinionatedRules, 'pre', { + 'font-family': 'monospace, monospace', + 'font-size': '1em' + }), defineProperty(_unopinionatedRules, 'a', { + 'background-color': 'transparent', + '-webkit-text-decoration-skip': 'objects' + }), defineProperty(_unopinionatedRules, 'abbr[title]', defineProperty({ + 'border-bottom': 'none', + 'text-decoration': 'underline' + }, 'text-decoration', 'underline dotted')), defineProperty(_unopinionatedRules, 'b,\n strong', { + 'font-weight': 'inherit' + }), defineProperty(_unopinionatedRules, 'code,\n kbd,\n samp', { + 'font-family': 'monospace, monospace', + 'font-size': '1em' + }), defineProperty(_unopinionatedRules, 'dfn', { + 'font-style': 'italic' + }), defineProperty(_unopinionatedRules, 'mark', { + 'background-color': '#ff0', + 'color': '#000' + }), defineProperty(_unopinionatedRules, 'small', { + 'font-size': '80%' + }), defineProperty(_unopinionatedRules, 'sub,\n sup', { + 'font-size': '75%', + 'line-height': '0', + 'position': 'relative', + 'vertical-align': 'baseline' + }), defineProperty(_unopinionatedRules, 'sub', { + 'bottom': '-0.25em' + }), defineProperty(_unopinionatedRules, 'sup', { + 'top': '-0.5em' + }), defineProperty(_unopinionatedRules, 'audio,\n video', { + 'display': 'inline-block' + }), defineProperty(_unopinionatedRules, 'audio:not([controls])', { + 'display': 'none', + 'height': '0' + }), defineProperty(_unopinionatedRules, 'img', { + 'border-style': 'none' + }), defineProperty(_unopinionatedRules, 'svg:not(:root)', { + 'overflow': 'hidden' + }), defineProperty(_unopinionatedRules, 'button,\n input,\n optgroup,\n select,\n textarea', { + 'margin': '0' + }), defineProperty(_unopinionatedRules, 'button,\n input', { + 'overflow': 'visible' + }), defineProperty(_unopinionatedRules, 'button,\n select', { + 'text-transform': 'none' + }), defineProperty(_unopinionatedRules, 'button,\n html [type="button"],\n [type="reset"],\n [type="submit"]', { + '-webkit-appearance': 'button' + }), defineProperty(_unopinionatedRules, 'button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner', { + 'border-style': 'none', + 'padding': '0' + }), defineProperty(_unopinionatedRules, 'button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring', { + 'outline': '1px dotted ButtonText' + }), defineProperty(_unopinionatedRules, 'fieldset', { + 'border': '1px solid #c0c0c0', + 'margin': '0 2px', + 'padding': '0.35em 0.625em 0.75em' + }), defineProperty(_unopinionatedRules, 'legend', { + 'box-sizing': 'border-box', + 'color': 'inherit', + 'display': 'table', + 'max-width': '100%', + 'padding': '0', + 'white-space': 'normal' + }), defineProperty(_unopinionatedRules, 'progress', { + 'display': 'inline-block', + 'vertical-align': 'baseline' + }), defineProperty(_unopinionatedRules, 'textarea', { + 'overflow': 'auto' + }), defineProperty(_unopinionatedRules, '[type="checkbox"],\n [type="radio"]', { + 'box-sizing': 'border-box', + 'padding': '0' + }), defineProperty(_unopinionatedRules, '[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button', { + 'height': 'auto' + }), defineProperty(_unopinionatedRules, '[type="search"]', { + '-webkit-appearance': 'textfield', + 'outline-offset': '-2px' + }), defineProperty(_unopinionatedRules, '[type="search"]::-webkit-search-cancel-button,\n [type="search"]::-webkit-search-decoration', { + '-webkit-appearance': 'none' + }), defineProperty(_unopinionatedRules, '::-webkit-file-upload-button', { + '-webkit-appearance': 'button', + 'font': 'inherit' + }), defineProperty(_unopinionatedRules, 'details,\n menu', { + 'display': 'block' + }), defineProperty(_unopinionatedRules, 'summary', { + 'display': 'list-item' + }), defineProperty(_unopinionatedRules, 'canvas', { + 'display': 'inline-block' + }), defineProperty(_unopinionatedRules, 'template', { + 'display': 'none' + }), defineProperty(_unopinionatedRules, '[hidden]', { + 'display': 'none' + }), _unopinionatedRules); + if (excludeOpinionated) return unopinionatedRules; return mergeRules(unopinionatedRules, opinionatedRules); } @@ -1869,7 +1871,8 @@ function adjustHue(degree, color) { })); } -var adjustHue$1 = curry(adjustHue); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedAdjustHue = /*#__PURE__*/curry(adjustHue); // @@ -1940,7 +1943,8 @@ function darken(amount, color) { })); } -var darken$1 = curry(darken); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedDarken = /*#__PURE__*/curry(darken); // @@ -1975,7 +1979,8 @@ function desaturate(amount, color) { })); } -var desaturate$1 = curry(desaturate); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedDesaturate = /*#__PURE__*/curry(desaturate); // @@ -2074,7 +2079,8 @@ function lighten(amount, color) { })); } -var lighten$1 = curry(lighten); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedLighten = /*#__PURE__*/curry(lighten); // @@ -2143,7 +2149,8 @@ function mix() { return rgba(mixedColor); } -var mix$1 = curry(mix); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedMix = /*#__PURE__*/curry(mix); // /** @@ -2182,7 +2189,8 @@ function opacify(amount, color) { return rgba(colorWithAlpha); } -var opacify$1 = curry(opacify); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedOpacify = /*#__PURE__*/curry(opacify); // @@ -2218,7 +2226,8 @@ function saturate(amount, color) { })); } -var saturate$1 = curry(saturate); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedSaturate = /*#__PURE__*/curry(saturate); // @@ -2251,7 +2260,8 @@ function setHue(hue, color) { })); } -var setHue$1 = curry(setHue); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedSetHue = /*#__PURE__*/curry(setHue); // @@ -2284,7 +2294,8 @@ function setLightness(lightness, color) { })); } -var setLightness$1 = curry(setLightness); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedSetLightness = /*#__PURE__*/curry(setLightness); // @@ -2317,7 +2328,8 @@ function setSaturation(saturation, color) { })); } -var setSaturation$1 = curry(setSaturation); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedSetSaturation = /*#__PURE__*/curry(setSaturation); // @@ -2347,10 +2359,11 @@ var setSaturation$1 = curry(setSaturation); function shade(percentage, color) { if (typeof percentage !== 'number' || percentage > 1 || percentage < -1) throw new Error('Passed an incorrect argument to shade, please pass a percentage less than or equal to 1 and larger than or equal to -1.'); if (typeof color !== 'string') throw new Error('Passed an incorrect argument to a color function, please pass a string representation of a color.'); - return mix$1(percentage, color, 'rgb(0, 0, 0)'); + return curriedMix(percentage, color, 'rgb(0, 0, 0)'); } -var shade$1 = curry(shade); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedShade = /*#__PURE__*/curry(shade); // @@ -2380,10 +2393,11 @@ var shade$1 = curry(shade); function tint(percentage, color) { if (typeof percentage !== 'number' || percentage > 1 || percentage < -1) throw new Error('Passed an incorrect argument to tint, please pass a percentage less than or equal to 1 and larger than or equal to -1.'); if (typeof color !== 'string') throw new Error('Passed an incorrect argument to a color function, please pass a string representation of a color.'); - return mix$1(percentage, color, 'rgb(255, 255, 255)'); + return curriedMix(percentage, color, 'rgb(255, 255, 255)'); } -var tint$1 = curry(tint); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedTint = /*#__PURE__*/curry(tint); // /** @@ -2422,7 +2436,8 @@ function transparentize(amount, color) { return rgba(colorWithAlpha); } -var transparentize$1 = curry(transparentize); +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +var curriedTransparentize = /*#__PURE__*/curry(transparentize); // @@ -3006,7 +3021,7 @@ function transitions() { // Color // Shorthands -exports.adjustHue = adjustHue$1; +exports.adjustHue = curriedAdjustHue; exports.animation = animation; exports.backgroundImages = backgroundImages; exports.backgrounds = backgrounds; @@ -3017,8 +3032,8 @@ exports.borderWidth = borderWidth; exports.buttons = buttons; exports.clearFix = clearFix; exports.complement = complement; -exports.darken = darken$1; -exports.desaturate = desaturate$1; +exports.darken = curriedDarken; +exports.desaturate = curriedDesaturate; exports.directionalProperty = directionalProperty; exports.ellipsis = ellipsis; exports.em = em; @@ -3029,12 +3044,12 @@ exports.hideText = hideText; exports.hiDPI = hiDPI; exports.hsl = hsl; exports.hsla = hsla; -exports.lighten = lighten$1; +exports.lighten = curriedLighten; exports.margin = margin; -exports.mix = mix$1; +exports.mix = curriedMix; exports.modularScale = modularScale; exports.normalize = normalize; -exports.opacify = opacify$1; +exports.opacify = curriedOpacify; exports.padding = padding; exports.parseToHsl = parseToHsl; exports.parseToRgb = parseToRgb; @@ -3045,20 +3060,20 @@ exports.rem = rem; exports.retinaImage = retinaImage; exports.rgb = rgb; exports.rgba = rgba; -exports.saturate = saturate$1; +exports.saturate = curriedSaturate; exports.selection = selection; -exports.setHue = setHue$1; -exports.setLightness = setLightness$1; -exports.setSaturation = setSaturation$1; -exports.shade = shade$1; +exports.setHue = curriedSetHue; +exports.setLightness = curriedSetLightness; +exports.setSaturation = curriedSetSaturation; +exports.shade = curriedShade; exports.size = size; exports.stripUnit = stripUnit; exports.textInputs = textInputs; exports.timingFunctions = timingFunctions; -exports.tint = tint$1; +exports.tint = curriedTint; exports.toColorString = toColorString; exports.transitions = transitions; -exports.transparentize = transparentize$1; +exports.transparentize = curriedTransparentize; exports.triangle = triangle; exports.wordWrap = wordWrap; diff --git a/docs/docs/index.html b/docs/docs/index.html index 0349c66f..f37cbb20 100644 --- a/docs/docs/index.html +++ b/docs/docs/index.html @@ -845,7 +845,7 @@

- + src/mixins/clearFix.js @@ -931,7 +931,7 @@

- + src/mixins/ellipsis.js @@ -1020,7 +1020,7 @@

- + src/mixins/fontFace.js @@ -1182,7 +1182,7 @@

- + src/mixins/hiDPI.js @@ -1274,7 +1274,7 @@

- + src/mixins/hideText.js @@ -1349,7 +1349,7 @@

- + src/mixins/normalize.js @@ -1433,7 +1433,7 @@

- + src/mixins/placeholder.js @@ -1536,7 +1536,7 @@

- + src/mixins/radialGradient.js @@ -1676,7 +1676,7 @@

- + src/mixins/retinaImage.js @@ -1801,7 +1801,7 @@

- + src/mixins/selection.js @@ -1900,7 +1900,7 @@

- + src/mixins/timingFunctions.js @@ -1983,7 +1983,7 @@

- + src/mixins/triangle.js @@ -2090,6 +2090,7 @@

// CSS as JS Output + div: { 'border-color': 'transparent', 'border-left-color': 'red !important', @@ -2121,7 +2122,7 @@

- + src/mixins/wordWrap.js @@ -2219,7 +2220,7 @@

- + src/color/adjustHue.js @@ -2319,7 +2320,7 @@

- + src/color/complement.js @@ -2409,7 +2410,7 @@

- + src/color/darken.js @@ -2508,7 +2509,7 @@

- + src/color/desaturate.js @@ -2608,7 +2609,7 @@

- + src/color/grayscale.js @@ -2698,7 +2699,7 @@

- + src/color/hsl.js @@ -2805,7 +2806,7 @@

- + src/color/hsla.js @@ -2923,7 +2924,7 @@

- + src/color/invert.js @@ -3014,7 +3015,7 @@

- + src/color/lighten.js @@ -3113,7 +3114,7 @@

- + src/color/mix.js @@ -3228,7 +3229,7 @@

- + src/color/opacify.js @@ -3325,7 +3326,7 @@

- + src/color/parseToHsl.js @@ -3404,7 +3405,7 @@

- + src/color/parseToRgb.js @@ -3483,7 +3484,7 @@

- + src/color/rgb.js @@ -3590,7 +3591,7 @@

- + src/color/rgba.js @@ -3715,7 +3716,7 @@

- + src/color/saturate.js @@ -3816,7 +3817,7 @@

- + src/color/setHue.js @@ -3915,7 +3916,7 @@

- + src/color/setLightness.js @@ -4014,7 +4015,7 @@

- + src/color/setSaturation.js @@ -4113,7 +4114,7 @@

- + src/color/shade.js @@ -4206,7 +4207,7 @@

- + src/color/tint.js @@ -4299,7 +4300,7 @@

- + src/color/transparentize.js @@ -4408,7 +4409,7 @@

- + src/shorthands/animation.js @@ -4509,7 +4510,7 @@

- + src/shorthands/backgroundImages.js @@ -4592,7 +4593,7 @@

- + src/shorthands/backgrounds.js @@ -4675,7 +4676,7 @@

- + src/shorthands/borderColor.js @@ -4761,7 +4762,7 @@

- + src/shorthands/borderRadius.js @@ -4853,7 +4854,7 @@

- + src/shorthands/borderStyle.js @@ -4939,7 +4940,7 @@

- + src/shorthands/borderWidth.js @@ -5025,7 +5026,7 @@

- + src/shorthands/buttons.js @@ -5115,7 +5116,7 @@

- + src/shorthands/margin.js @@ -5201,7 +5202,7 @@

- + src/shorthands/padding.js @@ -5287,7 +5288,7 @@

- + src/shorthands/position.js @@ -5401,7 +5402,7 @@

- + src/shorthands/size.js @@ -5494,7 +5495,7 @@

- + src/shorthands/textInputs.js @@ -5596,7 +5597,7 @@

- + src/shorthands/transitions.js @@ -5691,7 +5692,7 @@

- + src/helpers/directionalProperty.js @@ -5785,7 +5786,7 @@

- + src/helpers/em.js @@ -5878,7 +5879,7 @@

- + src/helpers/modularScale.js @@ -5981,7 +5982,7 @@

- + src/helpers/rem.js @@ -6074,7 +6075,7 @@

- + src/helpers/stripUnit.js @@ -6174,7 +6175,7 @@

- + src/shorthands/animation.js @@ -6228,7 +6229,7 @@

- + src/shorthands/buttons.js @@ -6282,7 +6283,7 @@

- + src/mixins/fontFace.js @@ -6395,7 +6396,7 @@

- + src/types/color.js @@ -6472,7 +6473,7 @@

- + src/types/color.js @@ -6555,7 +6556,7 @@

- + src/shorthands/textInputs.js @@ -6609,7 +6610,7 @@

- + src/mixins/triangle.js @@ -6663,7 +6664,7 @@

- + src/mixins/radialGradient.js @@ -6752,7 +6753,7 @@

- + src/helpers/modularScale.js @@ -6806,7 +6807,7 @@

- + src/types/color.js @@ -6889,7 +6890,7 @@

- + src/types/color.js @@ -6966,7 +6967,7 @@

- + src/mixins/timingFunctions.js @@ -7020,7 +7021,7 @@

- + src/color/toColorString.js diff --git a/src/color/adjustHue.js b/src/color/adjustHue.js index c3a44235..cf6fab31 100644 --- a/src/color/adjustHue.js +++ b/src/color/adjustHue.js @@ -36,4 +36,6 @@ function adjustHue(degree: number, color: string): string { }) } -export default curry(adjustHue) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedAdjustHue = /*#__PURE__*/curry(adjustHue) // eslint-disable-line spaced-comment +export default curriedAdjustHue diff --git a/src/color/darken.js b/src/color/darken.js index 42a81aed..6801d7c0 100644 --- a/src/color/darken.js +++ b/src/color/darken.js @@ -36,4 +36,6 @@ function darken(amount: number, color: string): string { }) } -export default curry(darken) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedDarken = /*#__PURE__*/curry(darken) // eslint-disable-line spaced-comment +export default curriedDarken diff --git a/src/color/desaturate.js b/src/color/desaturate.js index b9576e64..06d2b9ff 100644 --- a/src/color/desaturate.js +++ b/src/color/desaturate.js @@ -37,4 +37,6 @@ function desaturate(amount: number, color: string): string { }) } -export default curry(desaturate) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedDesaturate = /*#__PURE__*/curry(desaturate) // eslint-disable-line spaced-comment +export default curriedDesaturate diff --git a/src/color/lighten.js b/src/color/lighten.js index d1f9d9fc..e37f153d 100644 --- a/src/color/lighten.js +++ b/src/color/lighten.js @@ -36,4 +36,6 @@ function lighten(amount: number, color: string): string { }) } -export default curry(lighten) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedLighten = /*#__PURE__*/curry(lighten) // eslint-disable-line spaced-comment +export default curriedLighten diff --git a/src/color/mix.js b/src/color/mix.js index 5ec20706..3be9d335 100644 --- a/src/color/mix.js +++ b/src/color/mix.js @@ -67,4 +67,6 @@ function mix(weight: number = 0.5, color: string, otherColor: string): string { return rgba(mixedColor) } -export default curry(mix) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedMix = /*#__PURE__*/curry(mix) // eslint-disable-line spaced-comment +export default curriedMix diff --git a/src/color/opacify.js b/src/color/opacify.js index a200a4df..57a0fb6a 100644 --- a/src/color/opacify.js +++ b/src/color/opacify.js @@ -43,4 +43,6 @@ function opacify(amount: number, color: string) { return rgba(colorWithAlpha) } -export default curry(opacify) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedOpacify = /*#__PURE__*/curry(opacify) // eslint-disable-line spaced-comment +export default curriedOpacify diff --git a/src/color/saturate.js b/src/color/saturate.js index cfbe28be..378ea794 100644 --- a/src/color/saturate.js +++ b/src/color/saturate.js @@ -38,4 +38,6 @@ function saturate(amount: number, color: string): string { }) } -export default curry(saturate) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedSaturate = /*#__PURE__*/curry(saturate) // eslint-disable-line spaced-comment +export default curriedSaturate diff --git a/src/color/setHue.js b/src/color/setHue.js index db75b32b..8e6fe904 100644 --- a/src/color/setHue.js +++ b/src/color/setHue.js @@ -34,4 +34,6 @@ function setHue(hue: number, color: string): string { }) } -export default curry(setHue) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedSetHue = /*#__PURE__*/curry(setHue) // eslint-disable-line spaced-comment +export default curriedSetHue diff --git a/src/color/setLightness.js b/src/color/setLightness.js index ffbdc793..d0f92daa 100644 --- a/src/color/setLightness.js +++ b/src/color/setLightness.js @@ -34,4 +34,6 @@ function setLightness(lightness: number, color: string): string { }) } -export default curry(setLightness) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedSetLightness = /*#__PURE__*/curry(setLightness) // eslint-disable-line spaced-comment +export default curriedSetLightness diff --git a/src/color/setSaturation.js b/src/color/setSaturation.js index b9d48c08..cb18d116 100644 --- a/src/color/setSaturation.js +++ b/src/color/setSaturation.js @@ -34,4 +34,6 @@ function setSaturation(saturation: number, color: string): string { }) } -export default curry(setSaturation) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedSetSaturation = /*#__PURE__*/curry(setSaturation) // eslint-disable-line spaced-comment +export default curriedSetSaturation diff --git a/src/color/shade.js b/src/color/shade.js index f4744d1b..6b9fc761 100644 --- a/src/color/shade.js +++ b/src/color/shade.js @@ -32,4 +32,6 @@ function shade(percentage: number, color: string) { return mix(percentage, color, 'rgb(0, 0, 0)') } -export default curry(shade) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedShade = /*#__PURE__*/curry(shade) // eslint-disable-line spaced-comment +export default curriedShade diff --git a/src/color/tint.js b/src/color/tint.js index b6a29144..84263369 100644 --- a/src/color/tint.js +++ b/src/color/tint.js @@ -32,4 +32,6 @@ function tint(percentage: number, color: string) { return mix(percentage, color, 'rgb(255, 255, 255)') } -export default curry(tint) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedTint = /*#__PURE__*/curry(tint) // eslint-disable-line spaced-comment +export default curriedTint diff --git a/src/color/transparentize.js b/src/color/transparentize.js index 1507a3b4..5ea287a0 100644 --- a/src/color/transparentize.js +++ b/src/color/transparentize.js @@ -43,4 +43,6 @@ function transparentize(amount: number, color: string) { return rgba(colorWithAlpha) } -export default curry(transparentize) +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const curriedTransparentize = /*#__PURE__*/curry(transparentize) // eslint-disable-line spaced-comment +export default curriedTransparentize diff --git a/src/helpers/em.js b/src/helpers/em.js index 55783059..cdcee0bb 100644 --- a/src/helpers/em.js +++ b/src/helpers/em.js @@ -26,4 +26,6 @@ import pixelsto from '../internalHelpers/_pxto' * } */ -export default pixelsto('em') +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const em = /*#__PURE__*/pixelsto('em') // eslint-disable-line spaced-comment +export default em diff --git a/src/helpers/rem.js b/src/helpers/rem.js index b7a2aaba..85b453ce 100644 --- a/src/helpers/rem.js +++ b/src/helpers/rem.js @@ -25,4 +25,7 @@ import pixelsto from '../internalHelpers/_pxto' * 'height': '1rem' * } */ -export default pixelsto('rem') + +// Don’t inline this variable into export because Rollup will remove the /*#__PURE__*/ comment +const rem = /*#__PURE__*/pixelsto('rem') // eslint-disable-line spaced-comment +export default rem diff --git a/src/mixins/normalize.js b/src/mixins/normalize.js index cee61999..37438c8d 100644 --- a/src/mixins/normalize.js +++ b/src/mixins/normalize.js @@ -1,256 +1,4 @@ // @flow -const opinionatedRules = { - 'html': { - 'font-family': 'sans-serif', - }, - - 'body': { - 'margin': '0', - }, - - [`a:active, - a:hover`]: { - 'outline-width': '0', - }, - - [`button, - input, - optgroup, - select, - textarea`]: { - 'font-family': 'sans-serif', - 'font-size': '100%', - 'line-height': '1.15', - }, - -} - -const unopinionatedRules = { - 'html': { - 'line-height': '1.15', - '-ms-text-size-adjust': '100%', - '-webkit-text-size-adjust': '100%', - }, - - [`article, - aside, - footer, - header, - nav, - section`]: { - 'display': 'block', - }, - - 'h1': { - 'font-size': '2em', - 'margin': '0.67em 0', - }, - - [`figcaption, - figure, - main`]: { - 'display': 'block', - }, - - 'figure': { - 'margin': '1em 40px', - }, - - 'hr': { - 'box-sizing': 'content-box', - 'height': '0', - 'overflow': 'visible', - }, - - 'pre': { - 'font-family': 'monospace, monospace', - 'font-size': '1em', - }, - - 'a': { - 'background-color': 'transparent', - '-webkit-text-decoration-skip': 'objects', - }, - - 'abbr[title]': { - 'border-bottom': 'none', - 'text-decoration': 'underline', - // eslint-disable-next-line no-dupe-keys - 'text-decoration': 'underline dotted', - }, - - [`b, - strong`]: { - 'font-weight': 'inherit', - }, - - [`code, - kbd, - samp`]: { - 'font-family': 'monospace, monospace', - 'font-size': '1em', - }, - - 'dfn': { - 'font-style': 'italic', - }, - - 'mark': { - 'background-color': '#ff0', - 'color': '#000', - }, - - 'small': { - 'font-size': '80%', - }, - - [`sub, - sup`]: { - 'font-size': '75%', - 'line-height': '0', - 'position': 'relative', - 'vertical-align': 'baseline', - }, - - 'sub': { - 'bottom': '-0.25em', - }, - - 'sup': { - 'top': '-0.5em', - }, - - [`audio, - video`]: { - 'display': 'inline-block', - }, - - 'audio:not([controls])': { - 'display': 'none', - 'height': '0', - }, - - 'img': { - 'border-style': 'none', - }, - - 'svg:not(:root)': { - 'overflow': 'hidden', - }, - - [`button, - input, - optgroup, - select, - textarea`]: { - 'margin': '0', - }, - - [`button, - input`]: { - 'overflow': 'visible', - }, - - [`button, - select`]: { - 'text-transform': 'none', - }, - - [`button, - html [type="button"], - [type="reset"], - [type="submit"]`]: { - '-webkit-appearance': 'button', - }, - - [`button::-moz-focus-inner, - [type="button"]::-moz-focus-inner, - [type="reset"]::-moz-focus-inner, - [type="submit"]::-moz-focus-inner`]: { - 'border-style': 'none', - 'padding': '0', - }, - - [`button:-moz-focusring, - [type="button"]:-moz-focusring, - [type="reset"]:-moz-focusring, - [type="submit"]:-moz-focusring`]: { - 'outline': '1px dotted ButtonText', - }, - - 'fieldset': { - 'border': '1px solid #c0c0c0', - 'margin': '0 2px', - 'padding': '0.35em 0.625em 0.75em', - }, - - 'legend': { - 'box-sizing': 'border-box', - 'color': 'inherit', - 'display': 'table', - 'max-width': '100%', - 'padding': '0', - 'white-space': 'normal', - }, - - 'progress': { - 'display': 'inline-block', - 'vertical-align': 'baseline', - }, - - 'textarea': { - 'overflow': 'auto', - }, - - [`[type="checkbox"], - [type="radio"]`]: { - 'box-sizing': 'border-box', - 'padding': '0', - }, - - [`[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-cancel-button, - [type="search"]::-webkit-search-decoration`]: { - '-webkit-appearance': 'none', - }, - - '::-webkit-file-upload-button': { - '-webkit-appearance': 'button', - 'font': 'inherit', - }, - - [`details, - menu`]: { - 'display': 'block', - }, - - 'summary': { - 'display': 'list-item', - }, - - 'canvas': { - 'display': 'inline-block', - }, - - 'template': { - 'display': 'none', - }, - - '[hidden]': { - 'display': 'none', - }, - -} - function mergeRules(baseRules: Object, additionalRules: Object) { const mergedRules = { ...baseRules } Object.keys(additionalRules).forEach((key) => { @@ -291,6 +39,257 @@ function mergeRules(baseRules: Object, additionalRules: Object) { */ function normalize(excludeOpinionated?: boolean) { + const opinionatedRules = { + 'html': { + 'font-family': 'sans-serif', + }, + + 'body': { + 'margin': '0', + }, + + [`a:active, + a:hover`]: { + 'outline-width': '0', + }, + + [`button, + input, + optgroup, + select, + textarea`]: { + 'font-family': 'sans-serif', + 'font-size': '100%', + 'line-height': '1.15', + }, + + } + + const unopinionatedRules = { + 'html': { + 'line-height': '1.15', + '-ms-text-size-adjust': '100%', + '-webkit-text-size-adjust': '100%', + }, + + [`article, + aside, + footer, + header, + nav, + section`]: { + 'display': 'block', + }, + + 'h1': { + 'font-size': '2em', + 'margin': '0.67em 0', + }, + + [`figcaption, + figure, + main`]: { + 'display': 'block', + }, + + 'figure': { + 'margin': '1em 40px', + }, + + 'hr': { + 'box-sizing': 'content-box', + 'height': '0', + 'overflow': 'visible', + }, + + 'pre': { + 'font-family': 'monospace, monospace', + 'font-size': '1em', + }, + + 'a': { + 'background-color': 'transparent', + '-webkit-text-decoration-skip': 'objects', + }, + + 'abbr[title]': { + 'border-bottom': 'none', + 'text-decoration': 'underline', + // eslint-disable-next-line no-dupe-keys + 'text-decoration': 'underline dotted', + }, + + [`b, + strong`]: { + 'font-weight': 'inherit', + }, + + [`code, + kbd, + samp`]: { + 'font-family': 'monospace, monospace', + 'font-size': '1em', + }, + + 'dfn': { + 'font-style': 'italic', + }, + + 'mark': { + 'background-color': '#ff0', + 'color': '#000', + }, + + 'small': { + 'font-size': '80%', + }, + + [`sub, + sup`]: { + 'font-size': '75%', + 'line-height': '0', + 'position': 'relative', + 'vertical-align': 'baseline', + }, + + 'sub': { + 'bottom': '-0.25em', + }, + + 'sup': { + 'top': '-0.5em', + }, + + [`audio, + video`]: { + 'display': 'inline-block', + }, + + 'audio:not([controls])': { + 'display': 'none', + 'height': '0', + }, + + 'img': { + 'border-style': 'none', + }, + + 'svg:not(:root)': { + 'overflow': 'hidden', + }, + + [`button, + input, + optgroup, + select, + textarea`]: { + 'margin': '0', + }, + + [`button, + input`]: { + 'overflow': 'visible', + }, + + [`button, + select`]: { + 'text-transform': 'none', + }, + + [`button, + html [type="button"], + [type="reset"], + [type="submit"]`]: { + '-webkit-appearance': 'button', + }, + + [`button::-moz-focus-inner, + [type="button"]::-moz-focus-inner, + [type="reset"]::-moz-focus-inner, + [type="submit"]::-moz-focus-inner`]: { + 'border-style': 'none', + 'padding': '0', + }, + + [`button:-moz-focusring, + [type="button"]:-moz-focusring, + [type="reset"]:-moz-focusring, + [type="submit"]:-moz-focusring`]: { + 'outline': '1px dotted ButtonText', + }, + + 'fieldset': { + 'border': '1px solid #c0c0c0', + 'margin': '0 2px', + 'padding': '0.35em 0.625em 0.75em', + }, + + 'legend': { + 'box-sizing': 'border-box', + 'color': 'inherit', + 'display': 'table', + 'max-width': '100%', + 'padding': '0', + 'white-space': 'normal', + }, + + 'progress': { + 'display': 'inline-block', + 'vertical-align': 'baseline', + }, + + 'textarea': { + 'overflow': 'auto', + }, + + [`[type="checkbox"], + [type="radio"]`]: { + 'box-sizing': 'border-box', + 'padding': '0', + }, + + [`[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-cancel-button, + [type="search"]::-webkit-search-decoration`]: { + '-webkit-appearance': 'none', + }, + + '::-webkit-file-upload-button': { + '-webkit-appearance': 'button', + 'font': 'inherit', + }, + + [`details, + menu`]: { + 'display': 'block', + }, + + 'summary': { + 'display': 'list-item', + }, + + 'canvas': { + 'display': 'inline-block', + }, + + 'template': { + 'display': 'none', + }, + + '[hidden]': { + 'display': 'none', + }, + } + if (excludeOpinionated) return unopinionatedRules return mergeRules(unopinionatedRules, opinionatedRules) } diff --git a/src/mixins/test/__snapshots__/normalize.test.js.snap b/src/mixins/test/__snapshots__/normalize.test.js.snap index 9831f0fe..9520cc0d 100644 --- a/src/mixins/test/__snapshots__/normalize.test.js.snap +++ b/src/mixins/test/__snapshots__/normalize.test.js.snap @@ -8,12 +8,12 @@ Object { "display": "none", }, "[type=\"checkbox\"], - [type=\"radio\"]": Object { + [type=\"radio\"]": Object { "box-sizing": "border-box", "padding": "0", }, "[type=\"number\"]::-webkit-inner-spin-button, - [type=\"number\"]::-webkit-outer-spin-button": Object { + [type=\"number\"]::-webkit-outer-spin-button": Object { "height": "auto", }, "[type=\"search\"]": Object { @@ -21,7 +21,7 @@ Object { "outline-offset": "-2px", }, "[type=\"search\"]::-webkit-search-cancel-button, - [type=\"search\"]::-webkit-search-decoration": Object { + [type=\"search\"]::-webkit-search-decoration": Object { "-webkit-appearance": "none", }, "a": Object { @@ -29,7 +29,7 @@ Object { "background-color": "transparent", }, "a:active, - a:hover": Object { + a:hover": Object { "outline-width": "0", }, "abbr[title]": Object { @@ -37,15 +37,15 @@ Object { "text-decoration": "underline dotted", }, "article, - aside, - footer, - header, - nav, - section": Object { + aside, + footer, + header, + nav, + section": Object { "display": "block", }, "audio, - video": Object { + video": Object { "display": "inline-block", }, "audio:not([controls])": Object { @@ -53,46 +53,46 @@ Object { "height": "0", }, "b, - strong": Object { + strong": Object { "font-weight": "inherit", }, "body": Object { "margin": "0", }, "button, - html [type=\"button\"], - [type=\"reset\"], - [type=\"submit\"]": Object { + html [type=\"button\"], + [type=\"reset\"], + [type=\"submit\"]": Object { "-webkit-appearance": "button", }, "button, - input": Object { + input": Object { "overflow": "visible", }, "button, - input, - optgroup, - select, - textarea": Object { + input, + optgroup, + select, + textarea": Object { "font-family": "sans-serif", "font-size": "100%", "line-height": "1.15", "margin": "0", }, "button, - select": Object { + select": Object { "text-transform": "none", }, "button:-moz-focusring, - [type=\"button\"]:-moz-focusring, - [type=\"reset\"]:-moz-focusring, - [type=\"submit\"]:-moz-focusring": Object { + [type=\"button\"]:-moz-focusring, + [type=\"reset\"]:-moz-focusring, + [type=\"submit\"]:-moz-focusring": Object { "outline": "1px dotted ButtonText", }, "button::-moz-focus-inner, - [type=\"button\"]::-moz-focus-inner, - [type=\"reset\"]::-moz-focus-inner, - [type=\"submit\"]::-moz-focus-inner": Object { + [type=\"button\"]::-moz-focus-inner, + [type=\"reset\"]::-moz-focus-inner, + [type=\"submit\"]::-moz-focus-inner": Object { "border-style": "none", "padding": "0", }, @@ -100,13 +100,13 @@ Object { "display": "inline-block", }, "code, - kbd, - samp": Object { + kbd, + samp": Object { "font-family": "monospace, monospace", "font-size": "1em", }, "details, - menu": Object { + menu": Object { "display": "block", }, "dfn": Object { @@ -118,8 +118,8 @@ Object { "padding": "0.35em 0.625em 0.75em", }, "figcaption, - figure, - main": Object { + figure, + main": Object { "display": "block", }, "figure": Object { @@ -170,7 +170,7 @@ Object { "bottom": "-0.25em", }, "sub, - sup": Object { + sup": Object { "font-size": "75%", "line-height": "0", "position": "relative", @@ -204,12 +204,12 @@ Object { "display": "none", }, "[type=\"checkbox\"], - [type=\"radio\"]": Object { + [type=\"radio\"]": Object { "box-sizing": "border-box", "padding": "0", }, "[type=\"number\"]::-webkit-inner-spin-button, - [type=\"number\"]::-webkit-outer-spin-button": Object { + [type=\"number\"]::-webkit-outer-spin-button": Object { "height": "auto", }, "[type=\"search\"]": Object { @@ -217,7 +217,7 @@ Object { "outline-offset": "-2px", }, "[type=\"search\"]::-webkit-search-cancel-button, - [type=\"search\"]::-webkit-search-decoration": Object { + [type=\"search\"]::-webkit-search-decoration": Object { "-webkit-appearance": "none", }, "a": Object { @@ -229,15 +229,15 @@ Object { "text-decoration": "underline dotted", }, "article, - aside, - footer, - header, - nav, - section": Object { + aside, + footer, + header, + nav, + section": Object { "display": "block", }, "audio, - video": Object { + video": Object { "display": "inline-block", }, "audio:not([controls])": Object { @@ -245,40 +245,40 @@ Object { "height": "0", }, "b, - strong": Object { + strong": Object { "font-weight": "inherit", }, "button, - html [type=\"button\"], - [type=\"reset\"], - [type=\"submit\"]": Object { + html [type=\"button\"], + [type=\"reset\"], + [type=\"submit\"]": Object { "-webkit-appearance": "button", }, "button, - input": Object { + input": Object { "overflow": "visible", }, "button, - input, - optgroup, - select, - textarea": Object { + input, + optgroup, + select, + textarea": Object { "margin": "0", }, "button, - select": Object { + select": Object { "text-transform": "none", }, "button:-moz-focusring, - [type=\"button\"]:-moz-focusring, - [type=\"reset\"]:-moz-focusring, - [type=\"submit\"]:-moz-focusring": Object { + [type=\"button\"]:-moz-focusring, + [type=\"reset\"]:-moz-focusring, + [type=\"submit\"]:-moz-focusring": Object { "outline": "1px dotted ButtonText", }, "button::-moz-focus-inner, - [type=\"button\"]::-moz-focus-inner, - [type=\"reset\"]::-moz-focus-inner, - [type=\"submit\"]::-moz-focus-inner": Object { + [type=\"button\"]::-moz-focus-inner, + [type=\"reset\"]::-moz-focus-inner, + [type=\"submit\"]::-moz-focus-inner": Object { "border-style": "none", "padding": "0", }, @@ -286,13 +286,13 @@ Object { "display": "inline-block", }, "code, - kbd, - samp": Object { + kbd, + samp": Object { "font-family": "monospace, monospace", "font-size": "1em", }, "details, - menu": Object { + menu": Object { "display": "block", }, "dfn": Object { @@ -304,8 +304,8 @@ Object { "padding": "0.35em 0.625em 0.75em", }, "figcaption, - figure, - main": Object { + figure, + main": Object { "display": "block", }, "figure": Object { @@ -355,7 +355,7 @@ Object { "bottom": "-0.25em", }, "sub, - sup": Object { + sup": Object { "font-size": "75%", "line-height": "0", "position": "relative", diff --git a/yarn.lock b/yarn.lock index 9279c286..e4adb7a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1013,7 +1013,7 @@ babel-template@^6.24.1: babylon "^6.17.2" lodash "^4.2.0" -babel-traverse@^6.16.0, babel-traverse@^6.18.0, babel-traverse@^6.22.0, babel-traverse@^6.23.0, babel-traverse@^6.23.1: +babel-traverse@^6.16.0, babel-traverse@^6.18.0, babel-traverse@^6.23.0, babel-traverse@^6.23.1: version "6.23.1" resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.23.1.tgz#d3cb59010ecd06a97d81310065f966b699e14f48" dependencies: @@ -1027,7 +1027,7 @@ babel-traverse@^6.16.0, babel-traverse@^6.18.0, babel-traverse@^6.22.0, babel-tr invariant "^2.2.0" lodash "^4.2.0" -babel-traverse@^6.24.1, babel-traverse@^6.25.0: +babel-traverse@^6.22.0, babel-traverse@^6.24.1, babel-traverse@^6.25.0: version "6.25.0" resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.25.0.tgz#2257497e2fcd19b89edc13c4c91381f9512496f1" dependencies: