dropbutton.component.css 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /**
  2. * @file
  3. * Visual styles for Bartik's dropbutton component.
  4. */
  5. .js .dropbutton-widget {
  6. border: 1px solid;
  7. border-color: #e4e4e4 #d2d2d2 #b4b4b4 #d2d2d2;
  8. background-color: #fff;
  9. background-image: -webkit-linear-gradient(top, #f3f3f3, #e8e8e8);
  10. background-image: linear-gradient(to bottom, #f3f3f3, #e8e8e8);
  11. color: #3a3a3a;
  12. cursor: pointer;
  13. text-align: center;
  14. margin: 0.125em 0;
  15. border-radius: 1em;
  16. overflow: hidden;
  17. }
  18. .js .dropbutton-widget:hover {
  19. border-color: #e4e4e4 #d2d2d2 #b4b4b4 #d2d2d2;
  20. }
  21. .js .dropbutton-widget .button {
  22. border: none;
  23. margin: 0;
  24. padding: 0.32em 1em;
  25. background: transparent none;
  26. }
  27. .js .dropbutton-multiple .dropbutton-widget,
  28. .js[dir="rtl"] .dropbutton-multiple .dropbutton-widget {
  29. padding: 0;
  30. }
  31. .js .dropbutton-multiple .dropbutton-widget .dropbutton {
  32. padding-right: 2em; /* LTR */
  33. position: relative;
  34. }
  35. .js[dir="rtl"] .dropbutton-multiple .dropbutton-widget .dropbutton {
  36. padding-right: 0;
  37. padding-left: 2em;
  38. }
  39. .js .dropbutton-multiple .dropbutton-widget .dropbutton-action a {
  40. margin-right: 0; /* LTR */
  41. }
  42. [dir="rtl"].js .dropbutton-multiple .dropbutton-widget .dropbutton-action a {
  43. margin-left: 0;
  44. }
  45. .js .dropbutton .secondary-action {
  46. border-top-color: #ccc;
  47. }
  48. .js .dropbutton-toggle button {
  49. background-color: #e8e8e8;
  50. background-image: -webkit-linear-gradient(top, #e8e8e8, #d2d2d2);
  51. background-image: linear-gradient(to bottom, #e8e8e8, #d2d2d2);
  52. }
  53. .js .dropbutton-toggle .dropbutton-arrow:hover {
  54. background: #ccc;
  55. }
  56. .js .dropbutton a {
  57. color: #3a3a3a;
  58. border-bottom: 0 none;
  59. }
  60. .js .dropbutton .dropbutton-action:hover,
  61. .js .dropbutton a:hover {
  62. background: #dedede;
  63. border-bottom: 0 none;
  64. }