mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-08 13:01:22 -06:00
62 lines
927 B
Markdown
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) {}
|
|
```
|