It's easy to combine the OpenWeb Icons Font with Twitters Bootstrap, or even use it as "standalone".
Install and manage OpenWeb Icons Font- and CSS-Files using Bower, NPM, Components or Composer.
$ bower install openwebicons
$ component install pfefferle/openwebicons
$ npm install openwebicons
To install the OpenWeb Icons with Composer, you have to add the following code to your composer.json file and then run php composer.phar install.
{
"require": {
"pfefferle/openwebicons": "*"
}
}
It's easy to combine the OpenWeb Icons Font with Twitters Bootstrap, or even use it as "standalone".
Add OpenWeb Icons support to one of your CSS files
@font-face {
font-family: 'OpenWeb Icons';
src: url('../font/openwebicons.eot');
src: url('../font/openwebicons.eot?#iefix') format('embedded-opentype'),
url('../font/openwebicons.woff2') format('woff2'),
url('../font/openwebicons.woff') format('woff'),
url('../font/openwebicons.ttf') format('truetype'),
url('../font/openwebicons.svg#OpenWebIconsRegular') format('svg');
font-weight: normal;
font-style: normal;
}
<i style="font-family: 'OpenWeb Icons'"></i> (OAuth Icon)weloveiconfonts.com "is a free & open source icon-fonts
hosting service (like Google Web Fonts, but icon fonts only)
" by Tim Pietrusky
@import url(http://weloveiconfonts.com/api/?family=openwebicons);
/* openwebicons */
[class*="openwebicons-"]:before {
font-family: 'OpenWeb Icons', sans-serif;
}
Be sure to use openwebicons- instead of icons-. To display the RSS-icon, use <i class="openwebicons-feed"></i> for example.
Use this method if you want to use the OpenWeb-Icons with Twitters Bootstrap or Font Awesome.
openwebicons-bootstrap.css into your project.openwebicons-bootstrap.css and edit the font url to ensure it points to the right place (see above example).<head> of your html, reference the location to your openwebicons-bootstrap.css.
<link rel="stylesheet" href="../css/bootstrap.css" />
<link rel="stylesheet" href="../css/openwebicons-bootstrap.css" />
OpenWeb Icons works with any CSS.
openwebicons.css into your project.openwebicons.css and edit the font url to ensure it points to the right place (see above example).