On top of the scaffolding, basic HTML elements are styled and enhanced with extensible classes to provide a fresh, consistent look and feel.
:after.
In the docs, we show a light red background color on hover to highlight the icon's
size.
Instead of making every icon an extra request, we've compiled them into a sprite—a
bunch of images in one file that uses CSS to position the images with background-position.
This is the same method we use on Twitter.com and it has worked well for us.
All icons classes are prefixed with .icon- for proper namespacing and
scoping, much like our other components. This will help avoid conflicts with other
tools.
Glyphicons has granted us use of the Halflings set in our open-source toolkit so long as we provide a link and credit here in the docs. Please consider doing the same in your projects.
With v2.0.1, we have opted to use an <i> tag for all our icons,
but they have no case class—only a shared prefix. To use, place the following code
just about anywhere:
- <i class="icon-search"></i>
There are also styles available for inverted (white) icons, made ready with one extra class:
- <i class="icon-search icon-white"></i>
There are 120 classes to choose from for your icons. Just add an <i>
tag with the right classes and you're set. You can find the full list in sprites.less
or right here in this document.
Icons are great, but where would one use them? Here are a few ideas:
Essentially, anywhere you can put an <i> tag, you can put an
icon.
Use them in buttons, button groups for a toolbar, navigation, or prepended form inputs.
When it comes to colour, there is a lot to think about as you develop or design your WordPress Theme. It's like painting a house. Which colour will cover the entire exterior? What colour do you want the door? Or the window trim? Accents and complementary colours or contrasting colours?
The colours that go into a website are not limited to the colour of the background and text. You have to consider all the colours used together. For example the links on your site can have three colour choices:
It's important to make sure everything is in harmony. Your header or masthead may be filled with colour while the rest of the site may be less colourful. Titles, headings, and lists, all can be in colour. And don't forget about the bullets on your lists - they are often coloured, too. With so many colour choices, finding a colour scheme or theme can be a challenge.
To help you pick your website colours, here is a list of colour tools and resources to get you started.
Thumbnail caption right here...
Thumbnail caption right here...
Thumbnail caption right here...
Thumbnail caption right here...