postcss-nesting

WebJar for postcss-nesting

Лицензия

Лицензия

Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

postcss-nesting
Последняя версия

Последняя версия

4.2.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

postcss-nesting
WebJar for postcss-nesting
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/jonathantneal/postcss-nesting

Скачать postcss-nesting

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/postcss-nesting/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>postcss-nesting</artifactId>
    <version>4.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/postcss-nesting/
implementation 'org.webjars.npm:postcss-nesting:4.2.1'
// https://jarcasting.com/artifacts/org.webjars.npm/postcss-nesting/
implementation ("org.webjars.npm:postcss-nesting:4.2.1")
'org.webjars.npm:postcss-nesting:jar:4.2.1'
<dependency org="org.webjars.npm" name="postcss-nesting" rev="4.2.1">
  <artifact name="postcss-nesting" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='postcss-nesting', version='4.2.1')
)
libraryDependencies += "org.webjars.npm" % "postcss-nesting" % "4.2.1"
[org.webjars.npm/postcss-nesting "4.2.1"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : postcss jar [6.0.11,7)

Модули Проекта

Данный проект не имеет модулей.

PostCSS Nesting PostCSS

NPM Version CSS Standard Status Build Status Support Chat

PostCSS Nesting lets you nest style rules inside each other, following the CSS Nesting specification.

a, b {
  color: red;

  & c, & d {
    color: white;
  }
}

/* becomes */

a, b {
  color: red;
}

a c, a d, b c, b d {
  color: white;
}

NOTICE: In a future version of this project, nesting at-rules like @media may be deprecated, as they are not part of the nesting proposal. In a comment, a CSSWG member expressed interest in handling nested @media while handling selector nesting. So deprecating nested at-rules has been temporarily delayed.

Usage

Add PostCSS Nesting to your project:

npm install postcss-nesting --save-dev

Use PostCSS Nesting to process your CSS:

import postcssNesting from 'postcss-nesting';

postcssNesting.process(YOUR_CSS /*, processOptions, pluginOptions */);

Or use it as a PostCSS plugin:

import postcss from 'postcss';
import postcssNesting from 'postcss-nesting';

postcss([
  postcssNesting(/* pluginOptions */)
]).process(YOUR_CSS /*, processOptions */);

PostCSS Nesting runs in all Node environments, with special instructions for:

Node Webpack Create React App Gulp Grunt

Версии библиотеки

Версия
4.2.1