dropbutton.component.css

Same filename in this branch
  1. 8.9.x core/themes/seven/css/components/dropbutton.component.css
Same filename in other branches
  1. 9 core/themes/seven/css/components/dropbutton.component.css
  2. 9 core/themes/bartik/css/components/dropbutton.component.css

Visual styles for Bartik's dropbutton component.

File

core/themes/bartik/css/components/dropbutton.component.css

View source
  1. /**
  2. * @file
  3. * Visual styles for Bartik's dropbutton component.
  4. */
  5. .js .dropbutton-widget {
  6. overflow: hidden;
  7. margin: 0.125em 0;
  8. cursor: pointer;
  9. text-align: center;
  10. color: #3a3a3a;
  11. border: 1px solid;
  12. border-color: #e4e4e4 #d2d2d2 #b4b4b4 #d2d2d2;
  13. border-radius: 1em;
  14. background-color: #fff;
  15. background-image: -webkit-linear-gradient(top, #f3f3f3, #e8e8e8);
  16. background-image: linear-gradient(to bottom, #f3f3f3, #e8e8e8);
  17. }
  18. .js .dropbutton-widget:hover {
  19. border-color: #e4e4e4 #d2d2d2 #b4b4b4 #d2d2d2;
  20. }
  21. .js .dropbutton-widget .button {
  22. margin: 0;
  23. padding: 0.32em 1em;
  24. border: none;
  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. position: relative;
  33. padding-right: 2em; /* LTR */
  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. border-bottom: 0 none;
  63. background: #dedede;
  64. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.