From 528f6b1eca9ac411c81bb6d622a0962869d2ae82 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Fri, 18 Sep 2015 05:08:47 +1000 Subject: [PATCH] Improve icon docs --- modules/system/assets/ui/docs/icon.md | 34 +++++++++++++-------------- 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/modules/system/assets/ui/docs/icon.md b/modules/system/assets/ui/docs/icon.md index 4354d05fa..f2e679667 100644 --- a/modules/system/assets/ui/docs/icon.md +++ b/modules/system/assets/ui/docs/icon.md @@ -1,22 +1,22 @@ -Provides icons of various descriptions +# Icon library -## Usage +October provides an icon library with icons of various descriptions, based on the popular [Font Awesome collection](http://fortawesome.github.io/Font-Awesome/). -### Inline icon +### Inline icons -Place Font Autumn icons just about anywhere with the `` tag. +Place icons just about anywhere with the `` tag or to an existing element using the `oc-` prefix. -
- icon-camera-retro -
+```html + icon-camera-retro -You can also inject an icon to an existing element using the `oc-` prefix. +oc-icon-flag-checkered +``` -
- You win! -
- -> **Note**: Icon classes are echoed via CSS :before. +
+ icon-camera-retro +
+ oc-icon-flag-checkered +
### Icon sizes @@ -28,9 +28,9 @@ To increase icon sizes relative to their container, use the `icon-lg` (33% incre icon-2x icon-lg -> If your icons are getting chopped off on top and bottom, make sure you have sufficient line-height. +### Icon buttons -### With buttons +Feel free to use them alongside your buttons. Refresh @@ -940,7 +940,6 @@ To increase icon sizes relative to their container, use the `icon-lg` (33% incre float: left; } .category-icons > ul > li { - cursor: pointer; line-height: 42px; height: 42px; padding: 0; @@ -962,9 +961,8 @@ To increase icon sizes relative to their container, use the `icon-lg` (33% incre } .category-icons > ul > li:hover [class^="icon-"]:before, .category-icons > ul > li:hover [class*=" icon-"]:before { - font-size: 24px; + font-size: 28px; vertical-align: middle; - line-height: 20px; }