button.css

Same filename in this branch
  1. 9 core/profiles/demo_umami/themes/umami/css/classy/components/button.css
  2. 9 core/themes/seven/css/classy/components/button.css
  3. 9 core/themes/claro/css/components/button.css
  4. 9 core/themes/bartik/css/classy/components/button.css
  5. 9 core/themes/starterkit_theme/css/components/button.css
  6. 9 core/themes/classy/css/components/button.css
  7. 9 core/assets/vendor/jquery.ui/themes/base/button.css
Same filename in other branches
  1. 8.9.x core/profiles/demo_umami/themes/umami/css/classy/components/button.css
  2. 8.9.x core/themes/seven/css/classy/components/button.css
  3. 8.9.x core/themes/claro/css/components/button.css
  4. 8.9.x core/themes/bartik/css/classy/components/button.css
  5. 8.9.x core/themes/classy/css/components/button.css
  6. 8.9.x core/assets/vendor/jquery.ui/themes/base/button.css
  7. 10 core/profiles/demo_umami/themes/umami/css/classy/components/button.css
  8. 10 core/misc/dialog/off-canvas/css/button.css
  9. 10 core/themes/olivero/css/components/button.css
  10. 10 core/themes/claro/css/components/button.css
  11. 10 core/themes/starterkit_theme/css/components/button.css
  12. 10 core/assets/vendor/jquery.ui/themes/base/button.css
  13. 11.x core/profiles/demo_umami/themes/umami/css/classy/components/button.css
  14. 11.x core/misc/dialog/off-canvas/css/button.css
  15. 11.x core/themes/olivero/css/components/button.css
  16. 11.x core/themes/claro/css/components/button.css
  17. 11.x core/themes/starterkit_theme/css/components/button.css
  18. 11.x core/assets/vendor/jquery.ui/themes/base/button.css

Buttons.

File

core/themes/olivero/css/components/button.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. * Buttons.
  10. */
  11. [dir="ltr"] .button {
  12. margin-left: 0;
  13. }
  14. [dir="rtl"] .button {
  15. margin-right: 0;
  16. }
  17. [dir="ltr"] .button {
  18. margin-right: 1.125rem;
  19. }
  20. [dir="rtl"] .button {
  21. margin-left: 1.125rem;
  22. }
  23. .button {
  24. display: inline-block;
  25. height: 3.375rem;
  26. margin-top: 1.125rem;
  27. margin-bottom: 1.125rem;
  28. padding-top: 1.125rem;
  29. padding-right: 1.6875rem;
  30. padding-bottom: 1.125rem;
  31. padding-left: 1.6875rem;
  32. cursor: pointer;
  33. text-align: center;
  34. text-decoration: none;
  35. color: #0d77b5;
  36. border: solid 2px #0d77b5;
  37. border-radius: 0.1875rem;
  38. background-color: #fff;
  39. font-family: metropolis, sans-serif;
  40. font-size: 1.125rem;
  41. font-weight: 700;
  42. -webkit-appearance: none;
  43. appearance: none;
  44. -webkit-font-smoothing: antialiased;
  45. }
  46. .button:hover,
  47. .button:focus {
  48. text-decoration: none;
  49. color: #0f6292;
  50. border: solid 2px #0f6292;
  51. background: none;
  52. font-weight: 700;
  53. }
  54. .button:focus {
  55. outline: 2px solid #53b0eb;
  56. outline-offset: 2px;
  57. }
  58. .button:active {
  59. color: #0d77b5;
  60. border-color: #0d77b5;
  61. }
  62. .button:disabled,
  63. .button.is-disabled {
  64. cursor: default;
  65. color: #d7e1e8;
  66. border-color: #d7e1e8;
  67. }
  68. /*
  69. IE11 doesn't work properly on button elements so we only do
  70. inline-flex on modern browsers.
  71. */
  72. @supports (display: inline-flex) {
  73. .button {
  74. display: inline-flex;
  75. align-items: center;
  76. /* Top padding accounts for font not being vertically centered within line-height. */
  77. padding-top: 1px;
  78. padding-right: 1.6875rem;
  79. padding-bottom: 0;
  80. padding-left: 1.6875rem;
  81. line-height: 1.125rem;
  82. }
  83. }
  84. /* No margin if is part of a menu. */
  85. [dir="ltr"] .menu .button {
  86. margin-left: 0;
  87. }
  88. [dir="rtl"] .menu .button {
  89. margin-right: 0;
  90. }
  91. [dir="ltr"] .menu .button {
  92. margin-right: 0;
  93. }
  94. [dir="rtl"] .menu .button {
  95. margin-left: 0;
  96. }
  97. .menu .button {
  98. margin-top: 0;
  99. margin-bottom: 0;
  100. }
  101. .button--small {
  102. height: 2.8125rem;
  103. padding-top: 0.84375rem;
  104. padding-right: 1.125rem;
  105. padding-bottom: 0.84375rem;
  106. padding-left: 1.125rem;
  107. font-size: 1rem;
  108. line-height: normal;
  109. }
  110. .button--primary {
  111. color: #fff;
  112. background-color: #0d77b5;
  113. }
  114. .button--primary:hover,
  115. .button--primary:focus {
  116. color: #fff;
  117. border-color: #0f6292;
  118. background-color: #0f6292;
  119. }
  120. .button--primary:active {
  121. color: #fff;
  122. background-color: #0d77b5;
  123. }
  124. .button--primary:disabled,
  125. .button--primary.is-disabled {
  126. color: #fff;
  127. background-color: #d7e1e8;
  128. }
  129. .button--icon-back {
  130. display: inline-flex;
  131. align-items: center;
  132. }
  133. [dir="ltr"] .button--icon-back:before {
  134. margin-right: 0.5em;
  135. }
  136. [dir="rtl"] .button--icon-back:before {
  137. margin-left: 0.5em;
  138. }
  139. [dir="ltr"] .button--icon-back:before {
  140. border-left: solid 2px currentColor;
  141. }
  142. [dir="rtl"] .button--icon-back:before {
  143. border-right: solid 2px currentColor;
  144. }
  145. .button--icon-back:before {
  146. display: block;
  147. width: 0.5em;
  148. height: 0.5em;
  149. content: "";
  150. transform: rotate(45deg); /* LTR */
  151. border-bottom: solid 2px currentColor;
  152. }
  153. [dir="rtl"] .button--icon-back:before {
  154. transform: rotate(-45deg);
  155. }
  156. .shepherd-cancel-icon {
  157. font-size: 1.5em;
  158. }

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