Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Commit 83898d5

Browse files
committed
Docs: add a better exemple for custom selectors
1 parent 98652b4 commit 83898d5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/content/features.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,18 @@ Alows you to create your own selectors
101101

102102
```css
103103
@custom-selector :--button button, .button;
104+
@custom-selector :--enter :hover, :focus;
104105

105106
:--button {
106107
/* styles for your buttons */
107108
}
108-
:--button:hover {
109-
/* hover styles for your button */
109+
:--button:--enter {
110+
/*
111+
hover/focus styles for your button
112+
113+
Read more about :enter proposal
114+
http://discourse.specifiction.org/t/a-common-pseudo-class-for-hover-and-focus/877
115+
*/
110116
}
111117
```
112118

0 commit comments

Comments
 (0)