jquery.ui.button.css 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*!
  2. * jQuery UI Button 1.9.2
  3. * http://jqueryui.com
  4. *
  5. * Copyright 2012 jQuery Foundation and other contributors
  6. * Released under the MIT license.
  7. * http://jquery.org/license
  8. *
  9. * http://docs.jquery.com/UI/Button#theming
  10. */
  11. .ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
  12. .ui-button, .ui-button:link, .ui-button:visited, .ui-button:hover, .ui-button:active { text-decoration: none; }
  13. .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
  14. button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
  15. .ui-button-icons-only { width: 3.4em; }
  16. button.ui-button-icons-only { width: 3.7em; }
  17. /*button text element */
  18. .ui-button .ui-button-text { display: block; line-height: 1.4; }
  19. .ui-button-text-only .ui-button-text { padding: .4em 1em; }
  20. .ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
  21. .ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
  22. .ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
  23. .ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
  24. /* no icon support for input elements, provide padding by default */
  25. input.ui-button { padding: .4em 1em; }
  26. /*button icon element(s) */
  27. .ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
  28. .ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
  29. .ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
  30. .ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
  31. .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
  32. /*button sets*/
  33. .ui-buttonset { margin-right: 7px; }
  34. .ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
  35. /* workarounds */
  36. button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */