Uname: Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.31.145
Your Ip: 216.73.216.182
User: homesquasz (91404) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : index.js
const postcss = require('postcss');

const createExpectedPropertiesOrder = require('../createExpectedPropertiesOrder');
const getComments = require('../getComments');
const getPropertiesOrderData = require('../getPropertiesOrderData');
const getContainingNode = require('../getContainingNode');
const isCustomProperty = require('../isCustomProperty');
const isRuleWithNodes = require('../isRuleWithNodes');
const isStandardSyntaxProperty = require('../isStandardSyntaxProperty');
const sorting = require('../sorting');

module.exports = function(css, opts) {
	const isAlphabetical = opts['properties-order'] === 'alphabetical';
	const expectedOrder = isAlphabetical
		? null
		: createExpectedPropertiesOrder(opts['properties-order']);
	let unspecifiedPropertiesPosition = opts['unspecified-properties-position'];

	if (!unspecifiedPropertiesPosition) {
		unspecifiedPropertiesPosition = 'bottom';
	}

	css.walk(function(input) {
		const node = getContainingNode(input);

		if (isRuleWithNodes(node)) {
			const allRuleNodes = [];
			let declarations = [];

			node.each(function(childNode, index) {
				if (
					childNode.type === 'decl' &&
					isStandardSyntaxProperty(childNode.prop) &&
					!isCustomProperty(childNode.prop)
				) {
					let unprefixedPropName = postcss.vendor.unprefixed(childNode.prop);

					// Hack to allow -moz-osx-font-smoothing to be understood
					// just like -webkit-font-smoothing
					if (unprefixedPropName.indexOf('osx-') === 0) {
						unprefixedPropName = unprefixedPropName.slice(4);
					}

					const propData = {
						name: childNode.prop,
						unprefixedName: unprefixedPropName,
						orderData: isAlphabetical
							? null
							: getPropertiesOrderData(expectedOrder, unprefixedPropName),
						node: childNode,
						initialIndex: index,
						unspecifiedPropertiesPosition,
					};

					// add a marker
					childNode.sortProperty = true;

					// If comment on separate line before node, use node's indexes for comment
					const commentsBefore = getComments.beforeDeclaration([], childNode.prev(), propData);

					// If comment on same line with the node and node, use node's indexes for comment
					const commentsAfter = getComments.afterDeclaration([], childNode.next(), propData);

					declarations = declarations.concat(commentsBefore, propData, commentsAfter);
				}
			});

			if (isAlphabetical) {
				declarations.sort(sorting.sortDeclarationsAlphabetically);
			} else {
				declarations.sort(sorting.sortDeclarations);
			}

			let foundDeclarations = false;

			node.each(function(childNode) {
				if (childNode.sortProperty) {
					if (!foundDeclarations) {
						foundDeclarations = true;

						declarations.forEach(item => {
							allRuleNodes.push(item.node);
						});
					}
				} else {
					allRuleNodes.push(childNode);
				}
			});

			node.removeAll();
			node.append(allRuleNodes);
		}
	});
};
© 2026 GrazzMean
Page non trouvée – APK Comptoir Hammami
Jannah Theme License is not validated, Go to the theme options page to validate the license, You need a single license for each domain name.

404 :(

Oups ! Cette page est introuvable.

Il semble que nous ne puissions pas trouver ce que vous cherchez. Peut-être qu'une recherche pourrait vous aider.

Bouton retour en haut de la page