-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* merge the slider pages by omitting JavaScript API a daring play by ggray just lists the two components and takes advantage of documentalist's support for multiple tags per section! * move components usage instructions to styleguide they relate to all the packages so belong in a shared location, not inside Core Components. now the Core package is completely empty... * remove redundant UI icons heading in Icons as it was the only subheading. also refine the example a bit, using some handlebars!
- Loading branch information
Showing
5 changed files
with
209 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
@# Icons | ||
|
||
@## UI icons | ||
|
||
Blueprint UI icons are implemented via an icon font. They can be used anywhere text is | ||
used. It's easy to change their color or apply effects like text shadows via standard CSS | ||
properties. | ||
Blueprint provides over 300 UI icons in an icon font. They come in two sizes, 16px and 20px, and can | ||
be used anywhere text is used. It's easy to change their color or apply effects like text shadows | ||
via standard CSS properties. | ||
|
||
To use Blueprint UI icons, you need to apply two classes to a `<span>` element: | ||
- a __sizing class__, either `pt-icon-standard` (16px) or `pt-icon-large` (20px) | ||
- an icon __identifier class__, such as `pt-icon-projects` | ||
- an __icon name class__, such as `pt-icon-projects` | ||
|
||
```html | ||
<span class="pt-icon-{{size}} pt-icon-{{name}}"></span> | ||
|
||
<span class="pt-icon-standard pt-icon-projects"></span> | ||
<span class="pt-icon-large pt-icon-geosearch"></span> | ||
``` | ||
|
||
Many Blueprint [components](#core/components) provide an `iconName` prop, which supports both the | ||
full name `pt-icon-projects` and the short name `projects`. | ||
|
||
<div class="pt-callout pt-intent-primary pt-icon-info-sign"> | ||
<h5>Non-standard sizes</h5> | ||
Generally, icons should only be used at either 16px or 20px. However if a non-standard size is | ||
necessary, set a `font-size` that is whole multiple of 16 or 20 with the relevant size class. | ||
You can instead use the class `pt-icon` to make the icon inherit its size from surrounding text. | ||
<h5>Non-standard sizes</h5> | ||
Generally, icons should only be used at either 16px or 20px. However if a non-standard size is | ||
necessary, set a `font-size` that is whole multiple of 16 or 20 with the relevant size class. | ||
You can instead use the class `pt-icon` to make the icon inherit its size from surrounding text. | ||
</div> | ||
|
||
@reactDocs Icons |
Oops, something went wrong.