You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.6 KiB

4 years ago
  1. "use strict";
  2. function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
  3. function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
  4. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  5. var Declaration = require('../declaration');
  6. var GridColumnAlign =
  7. /*#__PURE__*/
  8. function (_Declaration) {
  9. _inheritsLoose(GridColumnAlign, _Declaration);
  10. function GridColumnAlign() {
  11. return _Declaration.apply(this, arguments) || this;
  12. }
  13. var _proto = GridColumnAlign.prototype;
  14. /**
  15. * Do not prefix flexbox values
  16. */
  17. _proto.check = function check(decl) {
  18. return !decl.value.includes('flex-') && decl.value !== 'baseline';
  19. }
  20. /**
  21. * Change property name for IE
  22. */
  23. ;
  24. _proto.prefixed = function prefixed(prop, prefix) {
  25. return prefix + 'grid-column-align';
  26. }
  27. /**
  28. * Change IE property back
  29. */
  30. ;
  31. _proto.normalize = function normalize() {
  32. return 'justify-self';
  33. };
  34. return GridColumnAlign;
  35. }(Declaration);
  36. _defineProperty(GridColumnAlign, "names", ['grid-column-align']);
  37. module.exports = GridColumnAlign;