GitXplorerGitXplorer
n

css3-facebook-buttons

public
576 stars
109 forks
2 issues

Commits

List of commits on branch master.
Unverified
cf4f190f8365f72f6e09deb000854daa2f15fa36

README: unmaintained

nnecolas committed 9 years ago
Unverified
e4650d4810635a8b403fdc4e3b9b865ac9d6452b

Tidy up README

nnecolas committed 12 years ago
Unverified
6018c277f0296ed8bc181f9b663d28ebb1c22f3b

Update CHANGELOG

nnecolas committed 12 years ago
Unverified
a28e07714fb3f453e5d7cdf71bd4e3343d4fc100

Optimize icons image

nnecolas committed 12 years ago
Unverified
4427dbc084bc062c8313e9b021c9e8c00cb0dbbf

Add a test file

nnecolas committed 12 years ago
Unverified
4290497e79b86023944c1a35df632932e051d86f

Override any `a:visited` color style

nnecolas committed 12 years ago

README

The README file for this repository.

CSS3 Facebook-style Buttons

unmaintained

Facebook-style buttons and button groups. Default and large sizes.

Buttons

To create the default "button" add a class of uibutton to any appropriate element. To create the blue variant include the additional class confirm. To create the green variant include an additional class special.

<a class="uibutton" href="#">Button</a>
<button class="uibutton" type="submit">Button</button>
<input class="uibutton" type="submit" value="Button">

Larger buttons

To create larger buttons include an additional class of large

<a class="uibutton large" href="#button">Search</a>

Grouped buttons

To created grouped buttons wrap them in an element, or use a list, given the class uibutton-group.

<div class="uibutton-group">
    <a href="#button" class="uibutton">Dashboard</a>
    <a href="#button" class="uibutton">Inbox</a>
    <a href="#button" class="uibutton">Account</a>
    <a href="#button" class="uibutton">Logout</a>
</div>

<ul class="uibutton-group">
    <li><a href="#button" class="uibutton">Dashboard</a></li>
    <li><a href="#button" class="uibutton">Inbox</a></li>
    <li><a href="#button" class="uibutton">Account</a></li>
    <li><a href="#button" class="uibutton">Logout</a></li>
</ul>

Mixed groups

To display a toolbar of buttons and grouped buttons, use a wrapping element given the class uibutton-toolbar.

<div class="uibutton-toolbar">
    <a href="#button" class="uibutton">Mark as unread</a>

    <div class="uibutton-group">
        <a href="#button" class="uibutton">Report spam</a>
        <a href="#button" class="uibutton">Delete</a>
    </div>

    <a href="#button" class="uibutton">Unsubscribe</a>
</div>

Buttons with icons

A range of icons can be added (only for links and buttons) by adding a class of icon and any one of the provided icon classes.

<a href="#" class="button icon add">New message</a>

Browser support

  • Firefox 3.5+
  • Google Chrome
  • Safari 4+
  • IE 6+
  • Opera 11.10+

Note: Some CSS3 enhancements are not supported in older versions of Opera and IE. The use of icons is not supported in IE 6 or IE 7.