diff options
author | Alexander Madyankin <alexander@madyankin.name> | 2015-06-05 12:30:14 +0300 |
---|---|---|
committer | Alexander Madyankin <alexander@madyankin.name> | 2015-06-05 12:30:14 +0300 |
commit | 96bbaaffc5ce75463e5dcfe192b437bf3577f6d2 (patch) | |
tree | ecd5f0765852aea97d429cdf3c7c78f9debf54be | |
parent | 2828551083d61d3a3293f0842f7a848095484076 (diff) |
Update README.md
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -181,14 +181,14 @@ Use the [React component](https://github.com/saulhoward/react-evil-icons). ### Styling -Every icon has the `.icon` class and its modifier including the icon name. For example, the facebook icon has the `.icon--ei-sc-facebook` modifier. +Every icon has the `.icon` class and its modifier including the icon name. For example, the Facebook icon has the `.icon--ei-sc-facebook` modifier. -In addition, an icon may have a size modifier. But we do recommend to change the size using helper's `size` parameter instead. Evil Icons have some predefined sizes: `s` (25x25, default), `m` (50×50), `l` (100×100), `xl` (150×150) and `xxl` (200×200). You may want to add more sizes, we recommend to keep the sizes multiple to 25. +Also, an icon may have a size modifier. But we do recommend to change the size using helper's `size` parameter instead. Evil Icons have some predefined sizes: `s` (25x25, default), `m` (50×50), `l` (100×100), `xl` (150×150) and `xxl` (200×200). You may want to add more sizes, we recommend keeping the sizes multiple to 25. ```js icons.icon("ei-arrow-right", {size: "m"}) ``` -Also you may want to add a custom class for an icon. +Also, you may want to add a custom class for an icon. You can do this using the `class` parameter: ```js icons.icon("ei-envelope", {class: "custom-class"}) |