dropbutton.css

Same filename in this branch
  1. 9 core/profiles/demo_umami/themes/umami/css/classy/components/dropbutton.css
  2. 9 core/misc/dropbutton/dropbutton.css
  3. 9 core/themes/stable9/css/core/dropbutton/dropbutton.css
  4. 9 core/themes/seven/css/classy/components/dropbutton.css
  5. 9 core/themes/claro/css/components/dropbutton.css
  6. 9 core/themes/bartik/css/classy/components/dropbutton.css
  7. 9 core/themes/stable/css/core/dropbutton/dropbutton.css
  8. 9 core/themes/starterkit_theme/css/components/dropbutton.css
  9. 9 core/themes/classy/css/components/dropbutton.css
Same filename in other branches
  1. 8.9.x core/profiles/demo_umami/themes/umami/css/classy/components/dropbutton.css
  2. 8.9.x core/misc/dropbutton/dropbutton.css
  3. 8.9.x core/themes/seven/css/classy/components/dropbutton.css
  4. 8.9.x core/themes/claro/css/components/dropbutton.css
  5. 8.9.x core/themes/bartik/css/classy/components/dropbutton.css
  6. 8.9.x core/themes/stable/css/core/dropbutton/dropbutton.css
  7. 8.9.x core/themes/classy/css/components/dropbutton.css
  8. 10 core/profiles/demo_umami/themes/umami/css/classy/components/dropbutton.css
  9. 10 core/misc/dialog/off-canvas/css/dropbutton.css
  10. 10 core/misc/dropbutton/dropbutton.css
  11. 10 core/themes/olivero/css/components/dropbutton.css
  12. 10 core/themes/stable9/css/core/dropbutton/dropbutton.css
  13. 10 core/themes/claro/css/components/dropbutton.css
  14. 10 core/themes/starterkit_theme/css/components/dropbutton.css
  15. 11.x core/profiles/demo_umami/themes/umami/css/classy/components/dropbutton.css
  16. 11.x core/misc/dialog/off-canvas/css/dropbutton.css
  17. 11.x core/misc/dropbutton/dropbutton.css
  18. 11.x core/themes/olivero/css/components/dropbutton.css
  19. 11.x core/themes/stable9/css/core/dropbutton/dropbutton.css
  20. 11.x core/themes/claro/css/components/dropbutton.css
  21. 11.x core/themes/starterkit_theme/css/components/dropbutton.css

Dropbutton styles.

File

core/themes/olivero/css/components/dropbutton.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Dropbutton styles.
  10. */
  11. .dropbutton-wrapper.open {
  12. position: relative;
  13. z-index: 100; /* Ensure this appears above all other dropbuttons. */
  14. filter: drop-shadow(0 2px 2px #e3e3e5);
  15. }
  16. [dir="ltr"] .dropbutton-widget {
  17. padding-right: 1.6875rem;
  18. }
  19. [dir="rtl"] .dropbutton-widget {
  20. padding-left: 1.6875rem;
  21. }
  22. .dropbutton-widget {
  23. position: relative;
  24. width: 12.5rem;
  25. height: 1.6875rem;
  26. border-radius: 0.1875rem;
  27. }
  28. @supports (width: max-content) {
  29. .dropbutton-widget {
  30. width: max-content;
  31. }
  32. }
  33. [dir="ltr"] .dropbutton-single .dropbutton-widget {
  34. padding-right: 0;
  35. }
  36. [dir="rtl"] .dropbutton-single .dropbutton-widget {
  37. padding-left: 0;
  38. }
  39. [dir="ltr"] .dropbutton {
  40. margin-left: 0;
  41. }
  42. [dir="rtl"] .dropbutton {
  43. margin-right: 0;
  44. }
  45. [dir="ltr"] .dropbutton {
  46. padding-left: 0;
  47. }
  48. [dir="rtl"] .dropbutton {
  49. padding-right: 0;
  50. }
  51. .dropbutton {
  52. height: 1.6875rem;
  53. margin-top: 0;
  54. margin-bottom: 0;
  55. list-style: none;
  56. font-size: 0.875rem;
  57. }
  58. [dir="ltr"] .dropbutton-toggle button {
  59. right: 0;
  60. }
  61. [dir="rtl"] .dropbutton-toggle button {
  62. left: 0;
  63. }
  64. .dropbutton-toggle button {
  65. position: absolute;
  66. top: 0;
  67. display: flex;
  68. align-items: center;
  69. justify-content: center;
  70. width: 1.6875rem;
  71. height: 1.6875rem;
  72. padding: 0;
  73. cursor: pointer;
  74. border-color: transparent;
  75. border-radius: 0 0.1875rem 0.1875rem 0; /* LTR */
  76. background: #e3e3e5;
  77. }
  78. .dropbutton-toggle button:focus {
  79. outline: solid 2px #0d77b5;
  80. outline-offset: -2px;
  81. }
  82. .dropbutton-toggle button:before {
  83. display: block;
  84. width: 0.5625rem;
  85. height: 0.5625rem;
  86. content: "";
  87. transform: translateY(-25%) rotate(45deg);
  88. border-right: solid 2px #0d77b5;
  89. border-bottom: solid 2px #0d77b5;
  90. }
  91. [dir="rtl"] .dropbutton-toggle button {
  92. border-radius: 0.1875rem 0 0 0.1875rem;
  93. }
  94. [dir="ltr"] .dropbutton-action:first-child {
  95. margin-right: 2px;
  96. }
  97. [dir="rtl"] .dropbutton-action:first-child {
  98. margin-left: 2px;
  99. }
  100. .dropbutton-action:first-child {
  101. border: solid 1px transparent;
  102. border-radius: 0.1875rem 0 0 0.1875rem; /* LTR */
  103. background: #e3e3e5;
  104. }
  105. .dropbutton-action a {
  106. display: flex;
  107. align-items: center;
  108. margin-bottom: -2px; /* Account for borders. */
  109. padding: 0 0.5625rem;
  110. text-decoration: none;
  111. color: #313637;
  112. font-weight: 600;
  113. }
  114. .dropbutton-action a:focus {
  115. border: solid 2px #0d77b5;
  116. outline: 0;
  117. /* Negate specific IE rules. */
  118. }
  119. @supports (outline-offset: -2px) {
  120. .dropbutton-action a:focus {
  121. border: 0;
  122. outline: solid 2px #0d77b5;
  123. outline-offset: -1px; /* Overlap parent container by 1px. */
  124. }
  125. }
  126. .dropbutton-single .dropbutton-action:first-child {
  127. border-right: solid 1px transparent; /* LTR */
  128. border-radius: 0.1875rem;
  129. }
  130. .dropbutton-single .dropbutton-action a {
  131. justify-content: center;
  132. }
  133. [dir="rtl"] .dropbutton-action:first-child {
  134. border: solid 1px transparent;
  135. border-radius: 0 0.1875rem 0.1875rem 0;
  136. }
  137. [dir="rtl"] .dropbutton-single .dropbutton-action:first-child {
  138. border: solid 1px transparent;
  139. }
  140. .secondary-action {
  141. visibility: hidden;
  142. width: calc(100% + 1.6875rem);
  143. border-right: 1px solid #e3e3e5;
  144. border-left: 1px solid #e3e3e5;
  145. background: #fff;
  146. }
  147. .secondary-action:last-child {
  148. border-bottom: 1px solid #e3e3e5;
  149. }
  150. .dropbutton-wrapper.open .dropbutton-toggle button:before {
  151. transform: translateY(25%) rotate(225deg);
  152. }
  153. .dropbutton-wrapper.open .dropbutton-widget {
  154. border-radius: 0.1875rem 0.1875rem 0 0;
  155. }
  156. .dropbutton-wrapper.open .secondary-action {
  157. visibility: visible;
  158. }

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