Skip to content

Commit aef2fee

Browse files
authored
docs: improve snake docs
1 parent 0adc7ef commit aef2fee

1 file changed

Lines changed: 11 additions & 21 deletions

File tree

docs/snake.md

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -47,31 +47,21 @@ The `.s(key, value)` method allows you to do nesting.
4747

4848
```js
4949
nano.s.s(':hover'. nano.s.bgWhite)
50+
// {
51+
// ':hover': {
52+
// backgroundColor: '#fff'
53+
// }
54+
// }
5055
```
5156

52-
Result:
53-
54-
```js
55-
{
56-
':hover': {
57-
backgroundColor: '#fff'
58-
}
59-
}
60-
```
61-
62-
`.s(obj)` can also accept an object.
63-
64-
```js
65-
nano.s.u.s({color: 'red'}).obj
66-
```
67-
68-
Result:
57+
`.s` can also accept an object.
6958

7059
```js
71-
{
72-
textDecoration: 'underline',
73-
color: 'red'
74-
}
60+
nano.s.u.s({color: 'red'})
61+
// {
62+
// textDecoration: 'underline',
63+
// color: 'red'
64+
// }
7565
```
7666

7767
There are also built in `.hover()` and `.focus()` pseudo-selectors.

0 commit comments

Comments
 (0)