- Timestamp:
- 11/25/21 22:08:24 (3 years ago)
- Branches:
- master
- Children:
- 8d391a1
- Parents:
- 59329aa
- Location:
- trip-planner-front/node_modules/postcss-merge-longhand/dist/lib
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/node_modules/postcss-merge-longhand/dist/lib/canMerge.js
r59329aa re29cc2e 13 13 14 14 const unimportant = node => !node.important; 15 /* Cannot be combined with other values in shorthand 16 https://www.w3.org/TR/css-cascade-5/#shorthand */ 15 17 16 const hasInherit = node => node.value.toLowerCase() === 'inherit';17 18 18 const hasInitial = node => node.value.toLowerCase() === 'initial'; 19 20 const hasUnset = node => node.value.toLowerCase() === 'unset'; 19 const cssWideKeywords = ['inherit', 'initial', 'unset', 'revert']; 21 20 22 21 var _default = (props, includeCustomProps = true) => { 23 if (props.some(hasInherit) && !props.every(hasInherit)) { 24 return false; 25 } 22 const uniqueProps = new Set(props.map(node => node.value.toLowerCase())); 26 23 27 if ( props.some(hasInitial) && !props.every(hasInitial)) {28 return false;29 }30 31 if (props.some(hasUnset) && !props.every(hasUnset)) {32 return false;24 if (uniqueProps.size > 1) { 25 for (const unmergeable of cssWideKeywords) { 26 if (uniqueProps.has(unmergeable)) { 27 return false; 28 } 29 } 33 30 } 34 31 -
trip-planner-front/node_modules/postcss-merge-longhand/dist/lib/decl/borders.js
r59329aa re29cc2e 113 113 const diff = diffingProps(values, nextValues); 114 114 115 if (diff.length >1) {115 if (diff.length !== 1) { 116 116 return; 117 117 } -
trip-planner-front/node_modules/postcss-merge-longhand/dist/lib/validateWsc.js
r59329aa re29cc2e 9 9 exports.isValidWsc = isValidWsc; 10 10 11 var _c ssColorNames = _interopRequireDefault(require("css-color-names"));11 var _colornames = _interopRequireDefault(require("./colornames.js")); 12 12 13 13 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } … … 15 15 const widths = ['thin', 'medium', 'thick']; 16 16 const styles = ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset']; 17 const colors = Object.keys(_cssColorNames.default);18 17 19 18 function isStyle(value) { … … 52 51 } 53 52 54 return !!~ colors.indexOf(value);53 return !!~_colornames.default.indexOf(value); 55 54 } 56 55
Note:
See TracChangeset
for help on using the changeset viewer.