border-radius.js 916 B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.borderBottomLeftRadius = exports.borderBottomRightRadius = exports.borderTopRightRadius = exports.borderTopLeftRadius = void 0;
  4. var length_percentage_1 = require("../types/length-percentage");
  5. var borderRadiusForSide = function (side) { return ({
  6. name: "border-radius-" + side,
  7. initialValue: '0 0',
  8. prefix: false,
  9. type: 1 /* LIST */,
  10. parse: function (_context, tokens) {
  11. return length_percentage_1.parseLengthPercentageTuple(tokens.filter(length_percentage_1.isLengthPercentage));
  12. }
  13. }); };
  14. exports.borderTopLeftRadius = borderRadiusForSide('top-left');
  15. exports.borderTopRightRadius = borderRadiusForSide('top-right');
  16. exports.borderBottomRightRadius = borderRadiusForSide('bottom-right');
  17. exports.borderBottomLeftRadius = borderRadiusForSide('bottom-left');
  18. //# sourceMappingURL=border-radius.js.map