css3button.css 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * Copyright 2010 The Closure Library Authors. All Rights Reserved.
  3. *
  4. * Use of this source code is governed by the Apache License, Version 2.0.
  5. * See the COPYING file for details.
  6. */
  7. /* Author: slightlyoff@google.com (Alex Russell) */
  8. /* Author: eae@google.com (Emil A Eklund) */
  9. /* Imageless button styles. */
  10. .goog-css3-button {
  11. margin: 0 2px;
  12. padding: 3px 6px;
  13. text-align: center;
  14. vertical-align: middle;
  15. white-space: nowrap;
  16. cursor: default;
  17. outline: none;
  18. font-family: Arial, sans-serif;
  19. color: #000;
  20. border: 1px solid #bbb;
  21. -webkit-border-radius: 3px;
  22. -moz-border-radius: 3px;
  23. /* TODO(eae): Change this to -webkit-linear-gradient once
  24. https://bugs.webkit.org/show_bug.cgi?id=28152 is resolved. */
  25. background: -webkit-gradient(linear, 0% 40%, 0% 70%, from(#f9f9f9),
  26. to(#e3e3e3));
  27. /* @alternate */ background: -moz-linear-gradient(top, #f9f9f9, #e3e3e3);
  28. }
  29. /* Styles for different states (hover, active, focused, open, checked). */
  30. .goog-css3-button-hover {
  31. border-color: #939393 !important;
  32. }
  33. .goog-css3-button-focused {
  34. border-color: #444;
  35. }
  36. .goog-css3-button-active, .goog-css3-button-open, .goog-css3-button-checked {
  37. border-color: #444 !important;
  38. background: -webkit-gradient(linear, 0% 40%, 0% 70%, from(#e3e3e3),
  39. to(#f9f9f9));
  40. /* @alternate */ background: -moz-linear-gradient(top, #e3e3e3, #f9f9f9);
  41. }
  42. .goog-css3-button-disabled {
  43. color: #888;
  44. }
  45. .goog-css3-button-primary {
  46. font-weight: bold;
  47. }
  48. /*
  49. * Pill (collapsed border) styles.
  50. */
  51. .goog-css3-button-collapse-right {
  52. margin-right: 0 !important;
  53. border-right: 1px solid #bbb;
  54. -webkit-border-top-right-radius: 0px;
  55. -webkit-border-bottom-right-radius: 0px;
  56. -moz-border-radius-topright: 0px;
  57. -moz-border-radius-bottomright: 0px;
  58. }
  59. .goog-css3-button-collapse-left {
  60. border-left: 1px solid #f9f9f9;
  61. margin-left: 0 !important;
  62. -webkit-border-top-left-radius: 0px;
  63. -webkit-border-bottom-left-radius: 0px;
  64. -moz-border-radius-topleft: 0px;
  65. -moz-border-radius-bottomleft: 0px;
  66. }