Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

62 lines
927 B
Markdown

# media-feature-colon-space-after
Require a single space or disallow whitespace after the colon in media features.
```css
@media (max-width: 600px) {}
/** ↑
* The space after this colon */
```
## Options
`string`: `"always"|"never"`
### `"always"`
There *must always* be a single space after the colon.
The following patterns are considered warnings:
```css
@media (max-width:600px) {}
```
```css
@media (max-width :600px) {}
```
The following patterns are *not* considered warnings:
```css
@media (max-width: 600px) {}
```
```css
@media (max-width : 600px) {}
```
### `"never"`
There *must never* be whitespace after the colon.
The following patterns are considered warnings:
```css
@media (max-width: 600px) {}
```
```css
@media (max-width : 600px) {}
```
The following patterns are *not* considered warnings:
```css
@media (max-width:600px) {}
```
```css
@media (max-width :600px) {}
```