Sha256: b8f9c794aa2f08b1d8719a8db16741719911097280d9712ac69403b0ac0dbf11

Contents?: true

Size: 638 Bytes

Versions: 23

Compression:

Stored size: 638 Bytes

Contents

# custom-media-pattern

Specify a pattern for custom media query names.

<!-- prettier-ignore -->
```css
@custom-media --foo (max-width: 30em);
/**             ↑
 * The pattern of this */
```

## Options

`regex|string`

A string will be translated into a RegExp like so `new RegExp(yourString)` — so be sure to escape properly.

Given the string:

```js
"foo-.+";
```

The following patterns are considered violations:

<!-- prettier-ignore -->
```css
@custom-media --bar (min-width: 30em);
```

The following patterns are _not_ considered violations:

<!-- prettier-ignore -->
```css
@custom-media --foo-bar (min-width: 30em);
```

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trusty-cms-4.1.7 node_modules/stylelint/lib/rules/custom-media-pattern/README.md
trusty-cms-4.1.6 node_modules/stylelint/lib/rules/custom-media-pattern/README.md
trusty-cms-4.1.5 node_modules/stylelint/lib/rules/custom-media-pattern/README.md