Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial commit

  • Loading branch information...
commit a998290b43ff45850fa4e074e63ca58f654e912a 0 parents
michenriksen authored
24 LICENSE.txt
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org/>
118 README.md
@@ -0,0 +1,118 @@
+# CSS3 Buttons #
+
+## What is this? ##
+
+[CSS3 buttons](http://css3buttons.michaelhenriksen.dk) is a simple *framework* to create good-looking GitHub style button links.
+
+## Buttons ##
+
+To create a button, the only thing you have to do is this:
+
+ <a href="#" class="button">This is a Button</a>
+
+If you prefer a pill-like button with more rounded corners, you can add a `.pill` class to the button
+
+ <a href="#" class="pill button">This is a Pill Button</a>
+
+Sometimes when you have multiple buttons, it's a good thing to highlight the button with the primary action
+in order to give the user a visual clue of what action to take if in doubt. This can be accomplished by adding
+a `.primary` class to the button
+
+ <a href="#" class="primary button">Publish Post</a> or <a href="#" class="button">Save as Draft</a>
+
+## Buttons with negative actions ##
+
+If you have a button that triggers a negative action, like deleting data, it's good practice to warn the user
+by styling the button differently than the normal buttons. Give a button the class `.negative` and the
+hover-state will change from blue to red
+
+ <a href="#" class="negative button">Divide by Zero</a>
+
+## Grouped buttons ##
+
+You can create grouped buttons that are linked together, like seen at Gmail and other places,
+by using the `.left`, `.middle` and `.right` classes:
+
+ <a href="#" class="left primary button">Archive</a>
+ <a href="#" class="middle button">Report Spam</a>
+ <a href="#" class="right negative button">Delete</a>
+
+You can also add the pill class to grouped buttons if preferred:
+
+ <a href="#" class="left primary pill button">Archive</a>
+ <a href="#" class="middle pill button">Report Spam</a>
+ <a href="#" class="right negative pill button">Delete</a>
+
+## Buttons with icons ##
+
+CSS3 Buttons supports a wide range of icons that can easily be added to any button by adding a span tag inside the anchor
+tag with the class of `.icon` and any one of the provided icon classes:
+
+ <a href="#" class="button"><span class="magnifier icon"></span>Search</a>
+
+Here is a list of all the supported icon classes:
+
+ * `.calendar`
+ * `.chat`
+ * `.check`
+ * `.cog`
+ * `.comment`
+ * `.cross`
+ * `.heart`
+ * `.home`
+ * `.key`
+ * `.loop`
+ * `.magnifier`
+ * `.mail`
+ * `.pen`
+ * `.plus`
+ * `.reload`
+ * `.rss`
+ * `.tag`
+ * `.trash`
+ * `.user`
+
+## Big buttons ##
+
+If you wish to emphasize a specific action you can add the `.big` class to make a more prominent *call-to-action* button:
+
+ <a href="#" class="big button">Create Project</a>
+
+## Browser compatibility ##
+
+CSS3 Buttons works in all major browsers
+
+**Note:** Some CSS3 features used in CSS3 Buttons is not supported in Internet Explorer browsers!
+
+## Installation ##
+
+ 1. Drop `css3buttons.css` in your stylesheets folder
+ 2. Drop `css3buttons_backgrounds.png` and `css3buttons_icons.png` in your images folder
+ 3. Link to `css3buttons.css` in the head section of your HTML page
+
+## License ##
+
+### The [Unlicense](http://unlicense.org): ###
+
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
+
+In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org/>
+
+## Shout-Outs ##
+
+ * Thanks to [GitHub](http://github.com) and [David Walsh](http://davidwalsh.name/github-css) for inspiration!
+ * Icons used in CSS3 Buttons are from the excellent [Iconic pack](http://somerandomdude.com/projects/iconic/) by [some random dude](http://somerandomdude.com/)!
+
+## Contact ##
+
+### Found a Bug? ###
+Please create a [ticket on GitHub](https://github.com/michenriksen/css3buttons/issues) With a description of the problem, browser and operating system information and how to reproduce the problem.
+
+### Need Help? ###
+You can send me a private message on [GitHub](http://github.com/michenriksen/) and I'll do my best to help you.
363 demo.html
@@ -0,0 +1,363 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>CSS3 Buttons | Simple CSS3 framework for creating button links</title>
+ <meta name="description" content="Simple CSS3 framework for creating button links">
+ <meta name="author" content="Michael Henriksen">
+ <link rel="stylesheet" href="stylesheets/reset.css" media="screen">
+ <link rel="stylesheet" href="stylesheets/demo.css" media="screen">
+ <link rel="stylesheet" href="stylesheets/css3buttons.css" media="screen">
+</head>
+<body>
+ <div class="container">
+ <header>
+ <h1 id="title">CSS3 Buttons</h1>
+ </header>
+
+ <div id="main">
+ <section class="odd">
+ <h2>What is this?</h2>
+
+ <p>
+ <a href="http://github.com/michenriksen/css3buttons" title="Go to GitHub repository">CSS3 buttons</a> is a simple <em>framework</em>
+ to create good-looking GitHub style button links.
+ </p>
+ </section>
+
+ <section class="even">
+ <h2>Buttons</h2>
+
+ <p>To create a button, the only thing you have to do is this:</p>
+
+ <article class="example">
+ <h3>Code:</h3>
+ <pre class="code"><span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"button"</span><span style='color:#ff8906; '>></span>This is a Button<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span>
+ </pre>
+
+ <h3>Result:</h3>
+ <div class="result">
+ <a href="javascript:void(false)" class="button">This is a Button</a>
+ </div>
+ </article>
+
+ <p>If you prefer a pill-like button with more rounded corners, you can add a <code>.pill</code> class to the button</p>
+
+ <article class="example">
+ <h3>Code:</h3>
+ <pre class="code"><span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"pill button"</span><span style='color:#ff8906; '>></span>This is a Pill Button<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span>
+ </pre>
+
+ <h3>Result:</h3>
+ <div class="result">
+ <a href="javascript:void(false)" class="pill button">This is a Pill Button</a>
+ </div>
+ </article>
+
+ <p>
+ Sometimes when you have multiple buttons, it's considered good practice to highlight the button with the primary action in order to give
+ the user a visual clue of what action to take if in doubt. This can be accomplished by adding a <code>.primary</code> class
+ to the button
+ </p>
+
+ <article class="example">
+ <h3>Code:</h3>
+ <pre class="code"><span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"primary button"</span><span style='color:#ff8906; '>></span>Publish Post<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span> or <span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"button"</span><span style='color:#ff8906; '>></span>Save as Draft<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span>
+ </pre>
+
+ <h3>Result:</h3>
+ <div class="result">
+ <a href="javascript:void(false)" class="primary button">Publish Post</a> or <a href="javascript:void(false)" class="button">Save as Draft</a>
+ </div>
+ </article>
+ </section>
+
+ <section class="odd">
+ <h2>Buttons with negative actions</h2>
+
+ <p>
+ If you have a button that triggers a <em>negative</em> action, like deleting data, it's good practice to warn the user by
+ styling the button differently than the normal buttons. Give a button the class <code>.negative</code> and the hover-state
+ will change from blue to red
+ </p>
+
+ <article class="example">
+ <h3>Code:</h3>
+ <pre class="code"><span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"negative button"</span><span style='color:#ff8906; '>></span>Divide by Zero<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span>
+ </pre>
+
+ <h3>Result:</h3>
+ <div class="result">
+ <a href="javascript:alert('You son of a bitch!\n\nYou just divided by zero, didn\'t you?')" class="negative button">Divide by Zero</a>
+ </div>
+ </article>
+
+ </section>
+
+ <section class="even">
+ <h2>Grouped buttons</h2>
+
+ <p>
+ You can create grouped buttons that are linked together, like seen at <a href="http://www.gmail.com">Gmail</a> and other places, by using the <code>.left</code>, <code>.middle</code> and <code>.right</code> classes:
+ </p>
+
+ <article class="example">
+ <h3>Code:</h3>
+<pre class="code"><span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"left primary button"</span><span style='color:#ff8906; '>></span>Archive<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span>
+<span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"middle button"</span><span style='color:#ff8906; '>></span>Report Spam<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span>
+<span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"right negative button"</span><span style='color:#ff8906; '>></span>Delete<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span>
+</pre>
+
+ <h3>Result:</h3>
+ <a href="javascript:void(false)" class="left primary button">Archive</a><a href="javascript:void(false)" class="middle button">Report Spam</a><a href="javascript:void(false)" class="right negative button">Delete</a>
+ </article>
+
+ <p>
+ You can also add the pill class to grouped buttons if preferred:
+ </p>
+
+ <article class="example">
+ <h3>Code:</h3>
+<pre class="code"><span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"left primary pill button"</span><span style='color:#ff8906; '>></span>Archive<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span>
+<span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"middle pill button"</span><span style='color:#ff8906; '>></span>Report Spam<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span>
+<span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"right negative pill button"</span><span style='color:#ff8906; '>></span>Delete<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span>
+</pre>
+
+ <h3>Result:</h3>
+ <a href="javascript:void(false)" class="left primary pill button">Archive</a><a href="javascript:void(false)" class="middle pill button">Report Spam</a><a href="javascript:void(false)" class="right negative pill button">Delete</a>
+ </article>
+ </section>
+
+ <section class="odd">
+ <h2>Buttons with icons</h2>
+
+ <p>
+ CSS3 Buttons supports a wide range of icons that can easily be added to any button by adding a <code>span</code> tag inside the anchor tag
+ with the class of <code>.icon</code> and any one of the provided icon classes:
+ </p>
+
+ <article class="example">
+ <h3>Code:</h3>
+ <pre class="code"><span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"button"</span><span style='color:#ff8906; '>></span><span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>span</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"magnifier icon"</span><span style='color:#ff8906; '>></span><span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>span</span><span style='color:#ff8906; '>></span>Search<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span>
+ </pre>
+
+ <h3>Result:</h3>
+ <a href="javascript:void(false)" class="button"><span class="magnifier icon"></span>Search</a>
+ </article>
+
+ <p>Here is a list of all the supported icon classes:</p>
+
+ <article class="example">
+ <table>
+ <thead>
+ <tr>
+ <th>Class</th>
+ <th>Example</th>
+ </tr>
+ </thead>
+ <tr>
+ <td><code>.calendar</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="calendar icon"></span>Add to Calendar</a></td>
+ </tr>
+ <tr>
+ <td><code>.chat</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="chat icon"></span>Start Chat</a></td>
+ </tr>
+ <tr>
+ <td><code>.check</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="check icon"></span>Approve Registration</a></td>
+ </tr>
+ <tr>
+ <td><code>.cog</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="cog icon"></span>Settings</a></td>
+ </tr>
+ <tr>
+ <td><code>.comment</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="comment icon"></span>Add Comment</a></td>
+ </tr>
+ <tr>
+ <td><code>.cross</code></td>
+ <td><a href="javascript:void(false)" class="negative button"><span class="cross icon"></span>Remove Item</a></td>
+ </tr>
+ <tr>
+ <td><code>.heart</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="heart icon"></span>Add to Favorites</a></td>
+ </tr>
+ <tr>
+ <td><code>.home</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="home icon"></span>Back to Frontpage</a></td>
+ </tr>
+ <tr>
+ <td><code>.key</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="key icon"></span>Password Protect</a></td>
+ </tr>
+ <tr>
+ <td><code>.loop</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="loop icon"></span>Resend Message</a></td>
+ </tr>
+ <tr>
+ <td><code>.magnifier</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="magnifier icon"></span>Search</a></td>
+ </tr>
+ <tr>
+ <td><code>.mail</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="mail icon"></span>Send Newsletter</a></td>
+ </tr>
+ <tr>
+ <td><code>.pen</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="pen icon"></span>Edit Post</a></td>
+ </tr>
+ <tr>
+ <td><code>.plus</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="plus icon"></span>Add Post</a></td>
+ </tr>
+ <tr>
+ <td><code>.reload</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="reload icon"></span>Reload Page</a></td>
+ </tr>
+ <tr>
+ <td><code>.rss</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="rss icon"></span>Subscribe to RSS Feed</a></td>
+ </tr>
+ <tr>
+ <td><code>.tag</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="tag icon"></span>Add Tag</a></td>
+ </tr>
+ <tr>
+ <td><code>.trash</code></td>
+ <td><a href="javascript:void(false)" class="negative button"><span class="trash icon"></span>Delete Post</a></td>
+ </tr>
+ <tr>
+ <td><code>.user</code></td>
+ <td><a href="javascript:void(false)" class="button"><span class="user icon"></span>Add New User</a></td>
+ </tr>
+ </table>
+ </article>
+ </section>
+
+ <section class="even">
+ <h2>Big buttons</h2>
+
+ <p>
+ If you wish to emphasize a specific action you can add the <code>.big</code> class to make a more prominent <em>call-to-action</em>
+ button:
+ </p>
+
+ <article class="example">
+ <h3>Code:</h3>
+ <pre class="code"><span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>a</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"#"</span> class<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"big button"</span><span style='color:#ff8906; '>></span>Create Project<span style='color:#ff8906; '>&lt;/</span><span style='color:#e66170; font-weight:bold; '>a</span><span style='color:#ff8906; '>></span>
+ </pre>
+
+ <h3>Result:</h3>
+ <a href="javascript:void(false)" class="big button">Create Project</a>
+ </article>
+
+ </section>
+
+ <section class="odd">
+ <h2>Browser compatibility</h2>
+
+ <p>
+ CSS3 Buttons works in all major browsers
+ </p>
+
+ <p class="notice">
+ <strong>Note:</strong> Some CSS3 features used in CSS3 Buttons is not supported in Internet Explorer browsers!
+ </p>
+ </section>
+
+ <section class="even">
+ <h2>Installation</h2>
+
+ <ol>
+ <li>Drop <code>css3buttons.css</code> in your stylesheets folder</li>
+ <li>Drop <code>css3buttons_backgrounds.png</code> and <code>css3buttons_icons.png</code> in your images folder</li>
+ <li>Link to <code>css3buttons.css</code> in the head section of your HTML page (<em>see code example below</em>)</li>
+ </ol>
+
+ <article class="example">
+ <h3>Code:</h3>
+ <pre class="code"><span style='color:#ff8906; '>&lt;</span><span style='color:#e66170; font-weight:bold; '>link</span> rel<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"stylesheet"</span> href<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"stylesheets/css3buttons.css"</span> media<span style='color:#d2cd86; '>=</span><span style='color:#00c4c4; '>"screen"</span><span style='color:#ff8906; '>></span>
+ </pre>
+ </article>
+
+ <p class="notice">
+ CSS3 Buttons expects that some kind of CSS reset is in place in your project, otherwise the look might not be, as seen here
+ </p>
+ </section>
+
+ <section class="odd">
+ <h2>License</h2>
+
+ <h3>The <a href="http://unlicense.org/">Unlicense</a>:</h3>
+
+ <blockquote>
+ <p>
+ This is free and unencumbered software released into the public domain.
+ </p>
+
+ <p>
+ Anyone is free to copy, modify, publish, use, compile, sell, or
+ distribute this software, either in source code form or as a compiled
+ binary, for any purpose, commercial or non-commercial, and by any
+ means.
+ </p>
+
+ <p>
+ In jurisdictions that recognize copyright laws, the author or authors
+ of this software dedicate any and all copyright interest in the
+ software to the public domain. We make this dedication for the benefit
+ of the public at large and to the detriment of our heirs and
+ successors. We intend this dedication to be an overt act of
+ relinquishment in perpetuity of all present and future rights to this
+ software under copyright law.
+ </p>
+
+ <p>
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ OTHER DEALINGS IN THE SOFTWARE.
+ </p>
+
+ <p>
+ For more information, please refer to &lt;<a href="http://unlicense.org/">http://unlicense.org/</a>&gt;
+ </p>
+ </blockquote>
+ </section>
+
+ <section class="even">
+ <h2>Shout-Outs</h2>
+
+ <ul>
+ <li>Thanks to <a href="http://github.com">GitHub</a> and <a href="http://davidwalsh.name/github-css">David Walsh</a> for inspiration!</li>
+ <li>Icons used in CSS3 Buttons are from the excellent <a href="http://somerandomdude.com/projects/iconic/">Iconic pack</a> by <a href="http://somerandomdude.com/">some random dude</a>!</li>
+ </ul>
+ </section>
+
+ <section class="odd">
+ <h2>Contact</h2>
+
+ <h3>Found a Bug?</h3>
+ <p>
+ Please create a <a href="https://github.com/michenriksen/css3buttons/issues" target="_blank">ticket on GitHub</a> With a description of the problem, browser and operating system information and how to reproduce the problem.
+ </p>
+
+ <h3>Need Help?</h3>
+ <p>
+ You can send me a private message on <a href="http://github.com/michenriksen/" target="_blank">GitHub</a> and I'll do my best to help you.
+ </p>
+ </section>
+ </div>
+
+ <footer>
+ <a href="http://github.com/michenriksen/css3buttons">CSS3 Buttons</a> is created by <a href="http://michaelhenriksen.dk" title="Website of Michael Henriksen">Michael Henriksen</a>
+ </footer>
+ </div>
+
+ <a href="http://github.com/michenriksen" target="_blank" title="Michael Henriksen on GitHub"><img class="ribbon" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" /></a>
+</body>
+</html>
BIN  images/css3buttons_backgrounds.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN  images/css3buttons_icons.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 stylesheets/css3buttons.css
@@ -0,0 +1,61 @@
+a.button { display: inline-block; padding: 3px 5px 3px 5px; font-family: 'lucida grande', tahoma, verdana, arial, sans-serif; font-size: 12px; color: #3C3C3D; text-shadow: 1px 1px 0 #FFFFFF; background: #ECECEC url('../images/css3buttons_backgrounds.png') 0 0 no-repeat; white-space: nowrap; overflow: visible; cursor: pointer; text-decoration: none; border: 1px solid #CACACA; -webkit-border-radius: 2px; -moz-border-radius: 2px; -webkit-background-clip: padding-box; border-radius: 2px; outline: none; position: relative; zoom: 1; *display: inline; }
+a.button.primary { font-weight: bold }
+a.button:hover { color: #FFFFFF; border-color: #388AD4; text-decoration: none; text-shadow: -1px -1px 0 rgba(0,0,0,0.3); background-position: 0 -40px; background-color: #2D7DC5; }
+a.button:active,
+a.button.active { background-position: 0 -81px; border-color: #347BBA; background-color: #0F5EA2; color: #FFFFFF; text-shadow: none; }
+a.button:active { top: 1px }
+a.button.negative:hover { color: #FFFFFF; background-position: 0 -121px; background-color: #D84743; border-color: #911D1B; }
+a.button.negative:active,
+a.button.negative.active { background-position: 0 -161px; background-color: #A5211E; border-color: #911D1B; }
+a.button.pill { -webkit-border-radius: 19px; -moz-border-radius: 19px; border-radius: 19px; padding: 2px 10px 2px 10px; }
+a.button.left { -webkit-border-bottom-right-radius: 0px; -webkit-border-top-right-radius: 0px; -moz-border-radius-bottomright: 0px; -moz-border-radius-topright: 0px; border-bottom-right-radius: 0px; border-top-right-radius: 0px; margin-right: 0px; }
+a.button.middle { margin-right: 0px; margin-left: 0px; -webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; border-right: none; border-left: none; }
+a.button.right { -webkit-border-bottom-left-radius: 0px; -webkit-border-top-left-radius: 0px; -moz-border-radius-bottomleft: 0px; -moz-border-radius-topleft: 0px; border-top-left-radius: 0px; border-bottom-left-radius: 0px; margin-left: 0px; }
+a.button.left:active,
+a.button.middle:active,
+a.button.right:active { top: 0px }
+a.button.big { font-size: 16px; padding-left: 17px; padding-right: 17px; }
+a.button span.icon { display: inline-block; width: 14px; height: 12px; margin: auto 7px auto auto; position: relative; top: 2px; background-image: url('../images/css3buttons_icons.png'); background-repeat: no-repeat; }
+a.big.button span.icon { top: 0px }
+a.button span.icon.magnifier { background-position: -1px 0px }
+a.button:hover span.icon.magnifier { background-position: -17px 0px }
+a.button span.icon.mail { background-position: -37px 0px }
+a.button:hover span.icon.mail { background-position: -55px 0px }
+a.button span.icon.loop { background-position: -74px 0px }
+a.button:hover span.icon.loop { background-position: -89px 0px }
+a.button span.icon.reload { background-position: -105px 0px }
+a.button:hover span.icon.reload { background-position: -124px 0px }
+a.button span.icon.calendar { background-position: -144px 0px }
+a.button:hover span.icon.calendar { background-position: -163px 0px }
+a.button span.icon.rss { background-position: -182px 0px }
+a.button:hover span.icon.rss { background-position: -200px 0px }
+a.button span.icon.chat { background-position: -220px 0px }
+a.button:hover span.icon.chat { background-position: -240px 0px }
+a.button span.icon.pen { background-position: -259px 0px }
+a.button:hover span.icon.pen { background-position: -277px 0px }
+a.button span.icon.key { background-position: -298px 0px }
+a.button:hover span.icon.key { background-position: -315px 0px }
+a.button span.icon.cog { background-position: -336px 0px }
+a.button:hover span.icon.cog { background-position: -354px 0px }
+a.button span.icon.user { background-position: -372px 0px }
+a.button:hover span.icon.user { background-position: -388px 0px }
+a.button span.icon.trash { background-position: 1px -19px }
+a.button:hover span.icon.trash { background-position: -17px -19px }
+a.button span.icon.lock { background-position: -38px -19px }
+a.button:hover span.icon.lock { background-position: -55px -19px }
+a.button span.icon.unlock { background-position: -74px -19px }
+a.button:hover span.icon.unlock { background-position: -90px -19px }
+a.button span.icon.comment { background-position: -107px -19px }
+a.button:hover span.icon.comment { background-position: -124px -19px }
+a.button span.icon.plus { background-position: -145px -19px }
+a.button:hover span.icon.plus { background-position: -164px -19px }
+a.button span.icon.cross { background-position: -183px -19px }
+a.button:hover span.icon.cross { background-position: -201px -19px }
+a.button span.icon.check { background-position: -243px -19px }
+a.button:hover span.icon.check { background-position: -223px -19px }
+a.button span.icon.tag { background-position: -262px -19px }
+a.button:hover span.icon.tag { background-position: -279px -20px }
+a.button span.icon.heart { background-position: -296px -19px }
+a.button:hover span.icon.heart { background-position: -315px -19px }
+a.button span.icon.home { background-position: -337px -19px }
+a.button:hover span.icon.home { background-position: -356px -19px }
30 stylesheets/demo.css
@@ -0,0 +1,30 @@
+/**
+ * This is styling for the demo page and is not necessary to include in your projects
+ */
+ body { font-family: Helvetica, Arial, sans-serif; line-height: 1.5em; font-size: 14px; color: #444; background-color: #D5E9F6; }
+ h1#title { font-size: 37px; margin-bottom: 50px; color: #666; }
+ h2 { font-size: 21px; margin-bottom: 20px; }
+ h3 { font-size: 16px }
+ p { margin-bottom: 20px }
+ section { margin-bottom: 20px; padding: 10px; }
+ section.even { background-color: #EEE; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; }
+ article.example { margin: 20px 0px 20px 0px; padding: 10px 0px 10px 0px; border-top: 1px dotted #CCCCCC; border-bottom: 1px dotted #CCCCCC; }
+ footer { font-size: 11px; color: #666; text-align: center; margin-top: 20px; }
+ footer a { color: #666 }
+ a { color: #980905 }
+ em { font-style: italic }
+ ul,
+ ol { margin: 20px auto 20px auto; padding-left: 30px; }
+ table { margin: 20px auto 20px auto }
+ th { font-weight: bold }
+ th,
+ td { padding: 5px }
+ blockquote { margin: 20px 0px 20px 0px }
+ .container { margin: 50px auto 100px auto; width: 750px; }
+ #main { padding: 10px; background-color: #FFFFFF; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; }
+ code,
+ blockquote,
+ .code { font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif }
+ .code { color: #d1d1d1; background-color: #3F3F3F; margin: 0px 0px 20px 0px; padding: 5px; font-size: 13px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; }
+ .notice { background-color: #FFF9D8; margin-top: 20px; padding: 10px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; }
+ .ribbon { position: absolute; top: 0; right: 0; border: 0; }
67 stylesheets/reset.css
@@ -0,0 +1,67 @@
+/* --------------------------------------------------------------
+
+ reset.css
+ * Resets default browser CSS.
+
+-------------------------------------------------------------- */
+
+html {
+ margin:0;
+ padding:0;
+ border:0;
+}
+
+body, div, span, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, code,
+del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td,
+article, aside, dialog, figure, footer, header,
+hgroup, nav, section {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-weight: inherit;
+ font-style: inherit;
+ font-size: 100%;
+ font-family: inherit;
+ vertical-align: baseline;
+}
+
+/* This helps to make newer HTML5 elements behave like DIVs in older browers */
+article, aside, dialog, figure, footer, header,
+hgroup, nav, section {
+ display:block;
+}
+
+/* Line-height should always be unitless! */
+body {
+ line-height: 1.5;
+ background: white;
+}
+
+/* Tables still need 'cellspacing="0"' in the markup. */
+table {
+ border-collapse: separate;
+ border-spacing: 0;
+}
+/* float:none prevents the span-x classes from breaking table-cell display */
+caption, th, td {
+ text-align: left;
+ font-weight: normal;
+ float:none !important;
+}
+table, th, td {
+ vertical-align: middle;
+}
+
+/* Remove possible quote marks (") from <q>, <blockquote>. */
+blockquote:before, blockquote:after, q:before, q:after { content: ''; }
+blockquote, q { quotes: "" ""; }
+
+/* Remove annoying border on linked images. */
+a img { border: none; }
+
+/* Remember to define your own focus styles! */
+:focus { outline: 0; }
Please sign in to comment.
Something went wrong with that request. Please try again.