PHP 7.4.33
Preview: flexFlow.js Size: 710 B
/var/www/cvr-leads.bitkit.dk/httpdocs/node_modules/postcss-ordered-values/src/rules/flexFlow.js
'use strict';
// flex-flow: <flex-direction> || <flex-wrap>

const flexDirection = new Set([
  'row',
  'row-reverse',
  'column',
  'column-reverse',
]);

const flexWrap = new Set(['nowrap', 'wrap', 'wrap-reverse']);

/**
 * @param {import('postcss-value-parser').ParsedValue} flexFlow
 * @return {string}
 */
module.exports = function normalizeFlexFlow(flexFlow) {
  let order = {
    direction: '',
    wrap: '',
  };

  flexFlow.walk(({ value }) => {
    if (flexDirection.has(value.toLowerCase())) {
      order.direction = value;
      return;
    }

    if (flexWrap.has(value.toLowerCase())) {
      order.wrap = value;
      return;
    }
  });

  return `${order.direction} ${order.wrap}`.trim();
};

Directory Contents

Dirs: 0 × Files: 9
Name Size Perms Modified Actions
3.54 KB lrw-r--r-- 2025-03-11 10:11:50
Edit Download
1.45 KB lrw-r--r-- 2025-03-11 10:11:50
Edit Download
1.77 KB lrw-r--r-- 2025-03-11 10:11:50
Edit Download
902 B lrw-r--r-- 2025-03-11 10:11:49
Edit Download
710 B lrw-r--r-- 2025-03-11 10:11:50
Edit Download
2.92 KB lrw-r--r-- 2025-03-11 10:11:50
Edit Download
1.34 KB lrw-r--r-- 2025-03-11 10:11:50
Edit Download
2.01 KB lrw-r--r-- 2025-03-11 10:11:49
Edit Download
1.92 KB lrw-r--r-- 2025-03-11 10:11:50
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).