Skip to content

Commit 9816a79

Browse files
committed
Inlining the features in README
1 parent 2aa6a38 commit 9816a79

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

β€ŽREADME.md

+10-22
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,39 @@ export default class Hello extends React.Component {
1717

1818
/* css constructor */
1919
@css`
20+
/* πŸ”’ Isolated and co-located */
21+
22+
/* πŸŽ€ Supports the entirety of CSS */
2023
font-size: 16px;
2124
text-align: center;
2225
23-
/* Use props in your CSS */
26+
/* πŸ”₯ Use props in css */
2427
color: {this.props.color};
2528
26-
/* Adds vendor prefixes */
29+
/* πŸ’» Built in vendor prefixing */
2730
display: flex;
2831
29-
/* Pseudo selectors */
32+
/* πŸŒ€ Pseudo selectors */
3033
&:hover {
3134
color: #FFF;
3235
}
3336
34-
/* Nested elements */
37+
/* πŸ‘ͺ Nested css */
3538
img {
3639
border-radius: 50%;
3740
}
3841
#handle {
3942
margin-top: 20px;
4043
}
4144
42-
/* Media queries */
45+
/* πŸ“± Media queries support */
4346
@media (max-width: 600px) {
4447
& {font-size: 18px;}
4548
}
4649
`
4750

4851
render () {
52+
/* πŸ”Ό Attaches styles to the highest element in your component */
4953
return (<div>
5054
<img src="https://github.com/siddharthkp.png"/>
5155
<div id="handle">@siddharthkp</div>
@@ -59,26 +63,10 @@ export default class Hello extends React.Component {
5963

6064
--
6165

62-
**Features:**
63-
64-
πŸŽ€ Supports the entirety of CSS
65-
66-
πŸ”₯ Use props in css
67-
68-
πŸ”Ό Attaches styles to the highest element in your component
66+
**Other features**
6967

7068
πŸ™‹ Uses classes instead of inline styles
7169

72-
πŸ”’ Isolated and co-located
73-
74-
πŸŒ€ pseudo selectors
75-
76-
πŸ“± media queries support
77-
78-
πŸ‘ͺ nested css
79-
80-
πŸ’» built in vendor prefixes
81-
8270
πŸ”§ Editable in developer tools
8371

8472
πŸ‘Ά Super tiny: only 1.2K gzipped!

0 commit comments

Comments
Β (0)