BLUE
PHP 7.4.33
Path:
/var/www/cvr-leads.bitkit.dk/httpdocs/node_modules/postcss-ordered-values/src/rules
Run
Logout
Edit File
Size: 1.92 KB
Close
/var/www/cvr-leads.bitkit.dk/httpdocs/node_modules/postcss-ordered-values/src/rules/transition.js
Text
Base64
'use strict'; const { unit } = require('postcss-value-parser'); const { getArguments } = require('cssnano-utils'); const addSpace = require('../lib/addSpace'); const getValue = require('../lib/getValue'); // transition: [ none | <single-transition-property> ] || <time> || <single-transition-timing-function> || <time> const timingFunctions = new Set([ 'ease', 'linear', 'ease-in', 'ease-out', 'ease-in-out', 'step-start', 'step-end', ]); /** * @param {import('postcss-value-parser').Node[][]} args * @return {import('postcss-value-parser').Node[][]} */ function normalize(args) { const list = []; for (const arg of args) { /** @type {Record<string, import('postcss-value-parser').Node[]>} */ let state = { timingFunction: [], property: [], time1: [], time2: [], }; arg.forEach((node) => { const { type, value } = node; if (type === 'space') { return; } if ( type === 'function' && new Set(['steps', 'cubic-bezier']).has(value.toLowerCase()) ) { state.timingFunction = [...state.timingFunction, node, addSpace()]; } else if (unit(value)) { if (!state.time1.length) { state.time1 = [...state.time1, node, addSpace()]; } else { state.time2 = [...state.time2, node, addSpace()]; } } else if (timingFunctions.has(value.toLowerCase())) { state.timingFunction = [...state.timingFunction, node, addSpace()]; } else { state.property = [...state.property, node, addSpace()]; } }); list.push([ ...state.property, ...state.time1, ...state.timingFunction, ...state.time2, ]); } return list; } /** * @param {import('postcss-value-parser').ParsedValue} parsed * @return {string} */ module.exports = function normalizeTransition(parsed) { const values = normalize(getArguments(parsed)); return getValue(values); };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
animation.js
3.54 KB
lrw-r--r--
2025-03-11 10:11:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
border.js
1.45 KB
lrw-r--r--
2025-03-11 10:11:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
boxShadow.js
1.77 KB
lrw-r--r--
2025-03-11 10:11:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
columns.js
902 B
lrw-r--r--
2025-03-11 10:11:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
flexFlow.js
710 B
lrw-r--r--
2025-03-11 10:11:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
grid.js
2.92 KB
lrw-r--r--
2025-03-11 10:11:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
listStyle.js
1.34 KB
lrw-r--r--
2025-03-11 10:11:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
listStyleTypes.json
2.01 KB
lrw-r--r--
2025-03-11 10:11:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
transition.js
1.92 KB
lrw-r--r--
2025-03-11 10:11:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).