├── LICENSE.txt ├── README.md ├── demo.html ├── images ├── css3buttons_backgrounds.png └── css3buttons_icons.png └── stylesheets ├── css3buttons.css ├── demo.css └── reset.css /LICENSE.txt: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | -------------------- 2 | -------------------- 3 | -------------------- 4 | 5 | #### Not Maintained 6 | 7 | This project is no longer maintained. Consider using [Twitter Bootstrap](http://getbootstrap.com/) instead. 8 | 9 | -------------------- 10 | -------------------- 11 | -------------------- 12 | 13 | # CSS3 Buttons # 14 | 15 | ## What is this? ## 16 | 17 | [CSS3 buttons](http://css3buttons.michaelhenriksen.dk) is a simple *framework* for creating good-looking GitHub style button links. 18 | 19 | ## Buttons ## 20 | 21 | To create a button, the only thing you have to do is this: 22 | 23 | This is a Button 24 | 25 | You can also use the button tag: 26 | 27 | 28 | 29 | If you prefer a pill-like button with more rounded corners, you can add a `.pill` class to the button 30 | 31 | This is a Pill Button 32 | 33 | Sometimes when you have multiple buttons, it's a good thing to highlight the button with the primary action 34 | in order to give the user a visual clue of what action to take if in doubt. This can be accomplished by adding 35 | a `.primary` class to the button 36 | 37 | Publish Post or Save as Draft 38 | 39 | ## Buttons with negative actions ## 40 | 41 | If you have a button that triggers a negative action, like deleting data, it's good practice to warn the user 42 | by styling the button differently than the normal buttons. Give a button the class `.negative` and the 43 | hover-state will change to red 44 | 45 | Divide by Zero 46 | 47 | ## Buttons with positive actions ## 48 | 49 | If you have a button that triggers an action you want to encourage your users to do, you can give a button a `.positive` class and the hover-state will change to green 50 | 51 | Save the World 52 | 53 | ## Grouped buttons ## 54 | 55 | You can create grouped buttons that are linked together, like seen at Gmail and other places, 56 | by using the `.left`, `.middle` and `.right` classes: 57 | 58 | Archive 59 | Report Spam 60 | Delete 61 | 62 | You can also add the pill class to grouped buttons if preferred: 63 | 64 | Archive 65 | Report Spam 66 | Delete 67 | 68 | ## Buttons with icons ## 69 | 70 | CSS3 Buttons supports a wide range of icons that can easily be added to any button by adding a span tag inside the anchor 71 | tag with the class of `.icon` and any one of the provided icon classes: 72 | ) 73 | Search 74 | 75 | Here is a list of all the supported icon classes: 76 | 77 | * `.book` 78 | * `.calendar` 79 | * `.chat` 80 | * `.check` 81 | * `.clock` 82 | * `.cog` 83 | * `.comment` 84 | * `.cross` 85 | * `.downarrow` 86 | * `.fork` 87 | * `.heart` 88 | * `.home` 89 | * `.key` 90 | * `.leftarrow` 91 | * `.lock` 92 | * `.loop` 93 | * `.magnifier` 94 | * `.mail` 95 | * `.move` 96 | * `.pen` 97 | * `.pin` 98 | * `.plus` 99 | * `.reload` 100 | * `.rightarrow` 101 | * `.rss` 102 | * `.tag` 103 | * `.trash` 104 | * `.unlock` 105 | * `.uparrow` 106 | * `.user` 107 | 108 | ## Big buttons ## 109 | 110 | If you wish to emphasize a specific action you can add the `.big` class to make a more prominent *call-to-action* button: 111 | 112 | Create Project 113 | 114 | ## Browser compatibility ## 115 | 116 | CSS3 Buttons works in all major browsers 117 | 118 | **Note:** Some CSS3 features used in CSS3 Buttons is not supported in Internet Explorer browsers! (IE 8 and under) 119 | 120 | ## Installation ## 121 | 122 | 1. Drop `css3buttons.css` in your stylesheets folder 123 | 2. Drop `css3buttons_backgrounds.png` and `css3buttons_icons.png` in your images folder 124 | 3. Link to `css3buttons.css` in the head section of your HTML page 125 | 126 | ## License ## 127 | 128 | ### The [Unlicense](http://unlicense.org): ### 129 | 130 | This is free and unencumbered software released into the public domain. 131 | 132 | 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. 133 | 134 | 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. 135 | 136 | 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. 137 | 138 | For more information, please refer to 139 | 140 | ## Shout-Outs ## 141 | 142 | * Thanks to [GitHub](http://github.com) and [David Walsh](http://davidwalsh.name/github-css) for inspiration! 143 | * Icons used in CSS3 Buttons are from the excellent [Iconic pack](http://somerandomdude.com/projects/iconic/) by [some random dude](http://somerandomdude.com/)! 144 | 145 | ## Contact ## 146 | 147 | ### Found a Bug? ### 148 | 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. 149 | 150 | ### Need Help? ### 151 | You can send me a private message on [GitHub](http://github.com/michenriksen/) and I'll do my best to help you. 152 | -------------------------------------------------------------------------------- /demo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CSS3 Buttons | Simple CSS3 framework for creating GitHub style button links 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 |
18 |

CSS3 Buttons

19 |
20 | 21 |
22 |
23 |

What is this?

24 | 25 |

26 | CSS3 Buttons is a simple framework for creating good-looking GitHub style button links. 27 |

28 | 29 |

30 | UPDATE 19th of Mar. Now you can also indicate a positive action by using the .positive class, which 31 | will change the hover-state to green. 32 |

33 | 34 |

35 | UPDATE 19th of Mar. It is now possible to use <button> tags to easily submit forms. 36 |

37 | 38 |

39 | UPDATE 26th of Feb. The icon sprite has been optimized and additional icons has been added. Scroll down to 40 | see what's new! 41 |

42 | 43 | 47 |
48 | 49 |
50 |

Buttons

51 | 52 |

To create a button, the only thing you have to do is this:

53 | 54 |
55 |

Code:

56 |
<a href="#" class="button">This is a Button</a> 
 57 | 					
58 | 59 |

Result:

60 |
61 | This is a Button 62 |
63 |
64 | 65 |

You can also use the button tag:

66 | 67 |
68 |

Code:

69 |
<button class="button">This is a Button</button> 
 70 | 				    
71 | 72 |

Result:

73 |
74 | 75 |
76 |
77 | 78 |

If you prefer a pill-like button with more rounded corners, you can add a .pill class to the button

79 | 80 |
81 |

Code:

82 |
<a href="#" class="pill button">This is a Pill Button</a> 
 83 | 					
84 | 85 |

Result:

86 | 89 |
90 | 91 |

92 | Sometimes when you have multiple buttons, it's considered good practice to highlight the button with the primary action in order to give 93 | the user a visual clue of what action to take if in doubt. This can be accomplished by adding a .primary class 94 | to the button 95 |

96 | 97 |
98 |

Code:

99 |
<a href="#" class="primary button">Publish Post</a> or <a href="#" class="button">Save as Draft</a> 
100 | 					
101 | 102 |

Result:

103 |
104 | Publish Post or Save as Draft 105 |
106 |
107 |
108 | 109 |
110 |

Buttons with negative actions

111 | 112 |

113 | If you have a button that triggers a negative action, like deleting data, it's good practice to warn the user by 114 | styling the button differently than the normal buttons. Give a button the class .negative and the hover-state 115 | will change to red 116 |

117 | 118 |
119 |

Code:

120 |
<a href="#" class="negative button">Divide by Zero</a> 
121 | 					
122 | 123 |

Result:

124 |
125 | Divide by Zero 126 |
127 |
128 | 129 |
130 | 131 |
132 |

Buttons with positive actions

133 | 134 |

135 | If you have a button that triggers an action you want to encourage your users to do, you can give a button a .positive class 136 | and the hover-state will change to green 137 |

138 | 139 |
140 |

Code:

141 |
<a href="#" class="positive button">Save the World</a> 
142 | 			        
143 | 144 |

Result:

145 |
146 | Save the World 147 |
148 |
149 |
150 | 151 |
152 |

Grouped buttons

153 | 154 |

155 | You can create grouped buttons that are linked together, like seen at Gmail and other places, by using the .left, .middle and .right classes: 156 |

157 | 158 |
159 |

Code:

160 |
<a href="#" class="left primary button">Archive</a> 
161 | <a href="#" class="middle button">Report Spam</a> 
162 | <a href="#" class="right negative button">Delete</a> 
163 | 
164 | 165 |

Result:

166 | ArchiveReport SpamDelete 167 |
168 | 169 |

170 | You can also add the pill class to grouped buttons if preferred: 171 |

172 | 173 |
174 |

Code:

175 |
<a href="#" class="left primary pill button">Archive</a> 
176 | <a href="#" class="middle pill button">Report Spam</a> 
177 | <a href="#" class="right negative pill button">Delete</a> 
178 | 
179 | 180 |

Result:

181 | ArchiveReport SpamDelete 182 |
183 |
184 | 185 |
186 |

Buttons with icons

187 | 188 |

189 | 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 190 | with the class of .icon and any one of the provided icon classes: 191 |

192 | 193 |
194 |

Code:

195 |
<a href="#" class="button"><span class="magnifier icon"></span>Search</a> 
196 | 					
197 | 198 |

Result:

199 | Search 200 |
201 | 202 |

Here is a list of all the supported icon classes:

203 | 204 |
205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 |
ClassExample
.bookView Log
.calendarAdd to Calendar
.chatStart Chat
.checkApprove Registration
.clockRegister Work Time
.cogSettings
.commentAdd Comment
.crossRemove Item
.downarrowMove Down
.forkCreate Branch
.heartAdd to Favorites
.homeBack to Frontpage
.keyPassword Protect
.leftarrowMove Left
.lockLock Article
.loopResend Message
.magnifierSearch
.mailSend Newsletter
.moveMove
.penEdit Post
.pinPin to Map
.plusAdd Post
.reloadReload Page
.rightarrowMove Right
.rssSubscribe to RSS Feed
.tagAdd Tag
.trashDelete Post
.unlockUnlock Article
.uparrowMove Up
.userAdd New User
333 |
334 |
335 | 336 |
337 |

Big buttons

338 | 339 |

340 | If you wish to emphasize a specific action you can add the .big class to make a more prominent call-to-action 341 | button: 342 |

343 | 344 |
345 |

Code:

346 |
<a href="#" class="big button">Create Project</a> 
347 | 					
348 | 349 |

Result:

350 | Create Project 351 |
352 | 353 |
354 | 355 |
356 |

Browser compatibility

357 | 358 |

359 | CSS3 Buttons works in all major browsers 360 |

361 | 362 |

363 | Note: Some CSS3 features used in CSS3 Buttons is not supported in Internet Explorer browsers! (IE 8 and under) 364 |

365 |
366 | 367 |
368 |

Installation

369 | 370 |
    371 |
  1. Drop css3buttons.css in your stylesheets folder
  2. 372 |
  3. Drop css3buttons_backgrounds.png and css3buttons_icons.png in your images folder
  4. 373 |
  5. Link to css3buttons.css in the head section of your HTML page (see code example below)
  6. 374 |
375 | 376 |
377 |

Code:

378 |
<link rel="stylesheet" href="stylesheets/css3buttons.css" media="screen"> 
379 | 					
380 |
381 | 382 |

383 | CSS3 Buttons expects that some kind of CSS reset is in place in your project, otherwise the look might not be, as seen here 384 |

385 |
386 | 387 |
388 |

License

389 | 390 |

The Unlicense:

391 | 392 |
393 |

394 | This is free and unencumbered software released into the public domain. 395 |

396 | 397 |

398 | Anyone is free to copy, modify, publish, use, compile, sell, or 399 | distribute this software, either in source code form or as a compiled 400 | binary, for any purpose, commercial or non-commercial, and by any 401 | means. 402 |

403 | 404 |

405 | In jurisdictions that recognize copyright laws, the author or authors 406 | of this software dedicate any and all copyright interest in the 407 | software to the public domain. We make this dedication for the benefit 408 | of the public at large and to the detriment of our heirs and 409 | successors. We intend this dedication to be an overt act of 410 | relinquishment in perpetuity of all present and future rights to this 411 | software under copyright law. 412 |

413 | 414 |

415 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 416 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 417 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 418 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 419 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 420 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 421 | OTHER DEALINGS IN THE SOFTWARE. 422 |

423 | 424 |

425 | For more information, please refer to <http://unlicense.org/> 426 |

427 |
428 |
429 | 430 |
431 |

Shout-Outs

432 | 433 | 437 |
438 | 439 |
440 |

Contact

441 | 442 |

Found a Bug?

443 |

444 | Please create a ticket on GitHub With a description of the problem, browser and operating system information and how to reproduce the problem. 445 |

446 | 447 |

Need Help?

448 |

449 | You can send me a private message on GitHub and I'll do my best to help you. 450 |

451 |
452 |
453 | 454 | 457 |
458 | 459 | Fork me on GitHub 460 | 461 | 474 | 475 | -------------------------------------------------------------------------------- /images/css3buttons_backgrounds.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michenriksen/css3buttons/450f8c1b6dd71e42e4993fdf518fb7474da3c455/images/css3buttons_backgrounds.png -------------------------------------------------------------------------------- /images/css3buttons_icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michenriksen/css3buttons/450f8c1b6dd71e42e4993fdf518fb7474da3c455/images/css3buttons_icons.png -------------------------------------------------------------------------------- /stylesheets/css3buttons.css: -------------------------------------------------------------------------------- 1 | a.button, button { display: inline-block; padding: 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; border-radius: 2px; outline: none; position: relative; zoom: 1; line-height: 1.11; *display: inline; *vertical-align: middle; } 2 | button { margin-left: 0; margin-right: 0; *padding: 5px 5px 3px 5px; } 3 | a.button { -moz-user-select: none; -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-user-select: none; -webkit-touch-callout: none;} 4 | button::-moz-focus-inner { border: 0; padding:0px; } 5 | a.button.primary, button.primary { font-weight: bold } 6 | button:focus,a.button:hover, 7 | 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; } 8 | a.button:active, button:active, 9 | a.button.active, button.active { background-position: 0 -81px; border-color: #347BBA; background-color: #0F5EA2; color: #FFFFFF; text-shadow: none; } 10 | a.button:active, button:active { top: 1px } 11 | a.button.negative:hover, button.negative:hover { color: #FFFFFF; background-position: 0 -121px; background-color: #D84743; border-color: #911D1B; } 12 | a.button.negative:active, button.negative:active, 13 | a.button.negative.active, button.negative.active { background-position: 0 -161px; background-color: #A5211E; border-color: #911D1B; } 14 | a.button.positive:hover, button.positive:hover { background-position: 0 -280px; background-color: #96ED89; border-color: #45BF55; } 15 | a.button.positive:active, button.positive:active, 16 | a.button.positive.active, button.positive.active { background-position: 0 -320px; background-color: #45BF55; } 17 | a.button.pill, button.pill { -webkit-border-radius: 19px; -moz-border-radius: 19px; border-radius: 19px; padding: 5px 10px 4px 10px; *padding: 4px 10px; } 18 | a.button.left, 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; border-right: none; } 19 | a.button.middle, button.middle { margin-right: 0px; margin-left: 0px; -webkit-border-radius: 0px; -moz-border-radius: 0px; border-radius: 0px; border-right: none; } 20 | a.button.right, 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; } 21 | a.button.left:active, button.left:active, 22 | a.button.middle:active, button.middle:active, 23 | a.button.right:active, button.right:active { top: 0px } 24 | a.button.big, button.big { font-size: 16px; padding-left: 14px; padding-right: 17px; } 25 | button.big { *padding: 4px 17px 2px 17px; } 26 | a.button span.icon, button span.icon { display: inline-block; width: 14px; height: 12px; margin: auto 7px auto auto; position: relative; top: 0; *top: 0px; background-image: url('../images/css3buttons_icons.png'); background-repeat: no-repeat; } 27 | a.big.button span.icon, button.big span.icon { top: 0px } 28 | a.button span.icon.book, button span.icon.book { background-position: 0 0 } 29 | a.button:hover span.icon.book, button:hover span.icon.book { background-position: 0 -15px } 30 | a.button span.icon.calendar, button span.icon.calendar { background-position: 0 -30px } 31 | a.button:hover span.icon.calendar, button:hover span.icon.calendar { background-position: 0 -45px } 32 | a.button span.icon.chat, button span.icon.chat { background-position: 0 -60px } 33 | a.button:hover span.icon.chat, button:hover span.icon.chat { background-position: 0 -75px } 34 | a.button span.icon.check, button span.icon.check { background-position: 0 -90px } 35 | a.button:hover span.icon.check, button:hover span.icon.check { background-position: 0 -103px } 36 | a.button span.icon.clock, button span.icon.clock { background-position: 0 -116px } 37 | a.button:hover span.icon.clock, button:hover span.icon.clock { background-position: 0 -131px } 38 | a.button span.icon.cog, button span.icon.cog { background-position: 0 -146px } 39 | a.button:hover span.icon.cog, button:hover span.icon.cog { background-position: 0 -161px } 40 | a.button span.icon.comment, button span.icon.comment { background-position: 0 -176px } 41 | a.button:hover span.icon.comment, button:hover span.icon.comment { background-position: 0 -190px } 42 | a.button span.icon.cross, button span.icon.cross { background-position: 0 -204px } 43 | a.button:hover span.icon.cross, button:hover span.icon.cross { background-position: 0 -219px } 44 | a.button span.icon.downarrow, button span.icon.downarrow { background-position: 0 -234px } 45 | a.button:hover span.icon.downarrow, button:hover span.icon.downarrow { background-position: 0 -249px } 46 | a.button span.icon.fork, button span.icon.fork { background-position: 0 -264px } 47 | a.button:hover span.icon.fork, button:hover span.icon.fork { background-position: 0 -279px } 48 | a.button span.icon.heart, button span.icon.heart { background-position: 0 -294px } 49 | a.button:hover span.icon.heart, button:hover span.icon.heart { background-position: 0 -308px } 50 | a.button span.icon.home, button span.icon.home { background-position: 0 -322px } 51 | a.button:hover span.icon.home, button:hover span.icon.home { background-position: 0 -337px } 52 | a.button span.icon.key, button span.icon.key { background-position: 0 -352px } 53 | a.button:hover span.icon.key, button:hover span.icon.key { background-position: 0 -367px } 54 | a.button span.icon.leftarrow, button span.icon.leftarrow { background-position: 0 -382px } 55 | a.button:hover span.icon.leftarrow, button:hover span.icon.leftarrow { background-position: 0 -397px } 56 | a.button span.icon.lock, button span.icon.lock { background-position: 0 -412px } 57 | a.button:hover span.icon.lock, button:hover span.icon.lock { background-position: 0 -427px } 58 | a.button span.icon.loop, button span.icon.loop { background-position: 0 -442px } 59 | a.button:hover span.icon.loop, button:hover span.icon.loop { background-position: 0 -457px } 60 | a.button span.icon.magnifier, button span.icon.magnifier { background-position: 0 -472px } 61 | a.button:hover span.icon.magnifier, button:hover span.icon.magnifier { background-position: 0 -487px } 62 | a.button span.icon.mail, button span.icon.mail { background-position: 0 -502px } 63 | a.button:hover span.icon.mail, button:hover span.icon.mail { background-position: 0 -514px } 64 | a.button span.icon.move, button span.icon.move { background-position: 0 -526px } 65 | a.button:hover span.icon.move, button:hover span.icon.move { background-position: 0 -541px } 66 | a.button span.icon.pen, button span.icon.pen { background-position: 0 -556px } 67 | a.button:hover span.icon.pen, button:hover span.icon.pen { background-position: 0 -571px } 68 | a.button span.icon.pin, button span.icon.pin { background-position: 0 -586px } 69 | a.button:hover span.icon.pin, button:hover span.icon.pin { background-position: 0 -601px } 70 | a.button span.icon.plus, button span.icon.plus { background-position: 0 -616px } 71 | a.button:hover span.icon.plus, button:hover span.icon.plus { background-position: 0 -631px } 72 | a.button span.icon.reload, button span.icon.reload { background-position: 0 -646px } 73 | a.button:hover span.icon.reload, button:hover span.icon.reload { background-position: 0 -660px } 74 | a.button span.icon.rightarrow, button span.icon.rightarrow { background-position: 0 -674px } 75 | a.button:hover span.icon.rightarrow, button:hover span.icon.rightarrow { background-position: 0 -689px } 76 | a.button span.icon.rss, button span.icon.rss { background-position: 0 -704px } 77 | a.button:hover span.icon.rss, button:hover span.icon.rss { background-position: 0 -719px } 78 | a.button span.icon.tag, button span.icon.tag { background-position: 0 -734px } 79 | a.button:hover span.icon.tag, button:hover span.icon.tag { background-position: 0 -749px } 80 | a.button span.icon.trash, button span.icon.trash { background-position: 0 -764px } 81 | a.button:hover span.icon.trash, button:hover span.icon.trash { background-position: 0 -779px } 82 | a.button span.icon.unlock, button span.icon.unlock { background-position: 0 -794px } 83 | a.button:hover span.icon.unlock, button:hover span.icon.unlock { background-position: 0 -809px } 84 | a.button span.icon.uparrow, button span.icon.uparrow { background-position: 0 -824px } 85 | a.button:hover span.icon.uparrow, button:hover span.icon.uparrow { background-position: 0 -839px } 86 | a.button span.icon.user, button span.icon.user { background-position: 0 -854px } 87 | a.button:hover span.icon.user, button:hover span.icon.user { background-position: 0 -869px } 88 | -------------------------------------------------------------------------------- /stylesheets/demo.css: -------------------------------------------------------------------------------- 1 | /** 2 | * This is styling for the demo page and is not necessary to include in your projects 3 | */ 4 | body { font-family: Helvetica, Arial, sans-serif; line-height: 1.5em; font-size: 14px; color: #444; background-color: #D5E9F6; } 5 | h1#title { font-size: 37px; margin-bottom: 50px; color: #666; } 6 | h2 { font-size: 21px; margin-bottom: 20px; } 7 | h3 { font-size: 16px } 8 | p { margin-bottom: 20px } 9 | section { margin-bottom: 20px; padding: 10px; } 10 | section.even { background-color: #EEE; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } 11 | article.example { margin: 20px 0px 20px 0px; padding: 10px 0px 10px 0px; border-top: 1px dotted #CCCCCC; border-bottom: 1px dotted #CCCCCC; } 12 | footer { font-size: 11px; color: #666; text-align: center; margin-top: 20px; } 13 | footer a { color: #666 } 14 | a { color: #980905 } 15 | em { font-style: italic } 16 | ul, 17 | ol { margin: 20px auto 20px auto; padding-left: 30px; } 18 | table { margin: 20px auto 20px auto } 19 | th { font-weight: bold } 20 | th, 21 | td { padding: 5px } 22 | blockquote { margin: 20px 0px 20px 0px } 23 | .container { margin: 50px auto 100px auto; width: 750px; } 24 | #main { padding: 10px; background-color: #FFFFFF; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } 25 | code, 26 | blockquote, 27 | .code { font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif } 28 | .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; } 29 | .notice { background-color: #FFF9D8; margin-top: 20px; padding: 10px; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; } 30 | .ribbon { position: absolute; top: 0; right: 0; border: 0; } -------------------------------------------------------------------------------- /stylesheets/reset.css: -------------------------------------------------------------------------------- 1 | /* -------------------------------------------------------------- 2 | 3 | reset.css 4 | * Resets default browser CSS. 5 | 6 | -------------------------------------------------------------- */ 7 | 8 | html { 9 | margin:0; 10 | padding:0; 11 | border:0; 12 | } 13 | 14 | body, div, span, object, iframe, 15 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 16 | a, abbr, acronym, address, code, 17 | del, dfn, em, img, q, dl, dt, dd, ol, ul, li, 18 | fieldset, form, label, legend, 19 | table, caption, tbody, tfoot, thead, tr, th, td, 20 | article, aside, dialog, figure, footer, header, 21 | hgroup, nav, section { 22 | margin: 0; 23 | padding: 0; 24 | border: 0; 25 | font-weight: inherit; 26 | font-style: inherit; 27 | font-size: 100%; 28 | font-family: inherit; 29 | vertical-align: baseline; 30 | } 31 | 32 | /* This helps to make newer HTML5 elements behave like DIVs in older browers */ 33 | article, aside, dialog, figure, footer, header, 34 | hgroup, nav, section { 35 | display:block; 36 | } 37 | 38 | /* Line-height should always be unitless! */ 39 | body { 40 | line-height: 1.5; 41 | background: white; 42 | } 43 | 44 | /* Tables still need 'cellspacing="0"' in the markup. */ 45 | table { 46 | border-collapse: separate; 47 | border-spacing: 0; 48 | } 49 | /* float:none prevents the span-x classes from breaking table-cell display */ 50 | caption, th, td { 51 | text-align: left; 52 | font-weight: normal; 53 | float:none !important; 54 | } 55 | table, th, td { 56 | vertical-align: middle; 57 | } 58 | 59 | /* Remove possible quote marks (") from ,
. */ 60 | blockquote:before, blockquote:after, q:before, q:after { content: ''; } 61 | blockquote, q { quotes: "" ""; } 62 | 63 | /* Remove annoying border on linked images. */ 64 | a img { border: none; } 65 | 66 | /* Remember to define your own focus styles! */ 67 | :focus { outline: 0; } --------------------------------------------------------------------------------