mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-14 05:43:33 -06:00
Initial commit
This commit is contained in:
71
node_modules/stylelint-scss/src/rules/dollar-variable-colon-space-before/README.md
generated
vendored
Normal file
71
node_modules/stylelint-scss/src/rules/dollar-variable-colon-space-before/README.md
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
# dollar-variable-colon-space-before
|
||||
|
||||
Require a single space or disallow whitespace before the colon in `$`-variable declarations.
|
||||
|
||||
```scss
|
||||
$variable: 10px;
|
||||
/** ↑
|
||||
* The space before this colon */
|
||||
```
|
||||
|
||||
## Options
|
||||
|
||||
`string`: `"always"|"never"
|
||||
|
||||
### `"always"`
|
||||
|
||||
There *must always* be a single space before the colon.
|
||||
|
||||
The following patterns are considered warnings:
|
||||
|
||||
```scss
|
||||
a { $var: 10px }
|
||||
```
|
||||
|
||||
```scss
|
||||
$var:10px;
|
||||
```
|
||||
|
||||
```scss
|
||||
$var :10px;
|
||||
```
|
||||
|
||||
```scss
|
||||
$var
|
||||
:10px;
|
||||
```
|
||||
|
||||
The following patterns are *not* considered warnings:
|
||||
|
||||
```scss
|
||||
a { $var : 10px }
|
||||
```
|
||||
|
||||
```scss
|
||||
$var :10px;
|
||||
```
|
||||
|
||||
### `"never"`
|
||||
|
||||
There *must never* be whitespace before the colon.
|
||||
|
||||
The following patterns are considered warnings:
|
||||
|
||||
```scss
|
||||
$var :10px;
|
||||
```
|
||||
|
||||
```scss
|
||||
a { $var
|
||||
:10px }
|
||||
```
|
||||
|
||||
The following patterns are *not* considered warnings:
|
||||
|
||||
```scss
|
||||
$var:10px;
|
||||
```
|
||||
|
||||
```scss
|
||||
a { $var: 10px }
|
||||
```
|
Reference in New Issue
Block a user