flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
30
VISUALIZACION/node_modules/postcss-merge-longhand/dist/lib/canMerge.js
generated
vendored
Executable file
30
VISUALIZACION/node_modules/postcss-merge-longhand/dist/lib/canMerge.js
generated
vendored
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
var important = function important(node) {
|
||||
return node.important;
|
||||
};
|
||||
var unimportant = function unimportant(node) {
|
||||
return !node.important;
|
||||
};
|
||||
var hasInherit = function hasInherit(node) {
|
||||
return ~node.value.indexOf('inherit');
|
||||
};
|
||||
var hasInitial = function hasInitial(node) {
|
||||
return ~node.value.indexOf('initial');
|
||||
};
|
||||
|
||||
exports['default'] = function () {
|
||||
for (var _len = arguments.length, props = Array(_len), _key = 0; _key < _len; _key++) {
|
||||
props[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
if (props.some(hasInherit) || props.some(hasInitial)) {
|
||||
return false;
|
||||
}
|
||||
return props.every(important) || props.every(unimportant);
|
||||
};
|
||||
|
||||
module.exports = exports['default'];
|
||||
Loading…
Add table
Add a link
Reference in a new issue