button.css

Same filename in this branch
  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
Same filename in other branches
  1. 9 core/profiles/demo_umami/themes/umami/css/classy/components/button.css
  2. 9 core/themes/olivero/css/components/button.css
  3. 9 core/themes/seven/css/classy/components/button.css
  4. 9 core/themes/claro/css/components/button.css
  5. 9 core/themes/bartik/css/classy/components/button.css
  6. 9 core/themes/starterkit_theme/css/components/button.css
  7. 9 core/themes/classy/css/components/button.css
  8. 9 core/assets/vendor/jquery.ui/themes/base/button.css
  9. 10 core/profiles/demo_umami/themes/umami/css/classy/components/button.css
  10. 10 core/misc/dialog/off-canvas/css/button.css
  11. 10 core/themes/olivero/css/components/button.css
  12. 10 core/themes/claro/css/components/button.css
  13. 10 core/themes/starterkit_theme/css/components/button.css
  14. 10 core/assets/vendor/jquery.ui/themes/base/button.css
  15. 11.x core/profiles/demo_umami/themes/umami/css/classy/components/button.css
  16. 11.x core/misc/dialog/off-canvas/css/button.css
  17. 11.x core/themes/olivero/css/components/button.css
  18. 11.x core/themes/claro/css/components/button.css
  19. 11.x core/themes/starterkit_theme/css/components/button.css
  20. 11.x core/assets/vendor/jquery.ui/themes/base/button.css
/*!
 * jQuery UI Button 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/button/#theming
 */
.ui-button {
	padding: .4em 1em;
	display: inline-block;
	position: relative;
	line-height: normal;
	margin-right: .1em;
	cursor: pointer;
	vertical-align: middle;
	text-align: center;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;

	/* Support: IE <= 11 */
	overflow: visible;
}

.ui-button,
.ui-button:link,
.ui-button:visited,
.ui-button:hover,
.ui-button:active {
	text-decoration: none;
}

/* to make room for the icon, a width needs to be set here */
.ui-button-icon-only {
	width: 2em;
	box-sizing: border-box;
	text-indent: -9999px;
	white-space: nowrap;
}

/* no icon support for input elements */
input.ui-button.ui-button-icon-only {
	text-indent: 0;
}

/* button icon element(s) */
.ui-button-icon-only .ui-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -8px;
	margin-left: -8px;
}

.ui-button.ui-icon-notext .ui-icon {
	padding: 0;
	width: 2.1em;
	height: 2.1em;
	text-indent: -9999px;
	white-space: nowrap;

}

input.ui-button.ui-icon-notext .ui-icon {
	width: auto;
	height: auto;
	text-indent: 0;
	white-space: normal;
	padding: .4em 1em;
}

/* workarounds */
/* Support: Firefox 5 - 40 */
input.ui-button::-moz-focus-inner,
button.ui-button::-moz-focus-inner {
	border: 0;
	padding: 0;
}

File

core/assets/vendor/jquery.ui/themes/base/button.css

View source
  1. /*!
  2. * jQuery UI Button 1.12.1
  3. * http://jqueryui.com
  4. *
  5. * Copyright jQuery Foundation and other contributors
  6. * Released under the MIT license.
  7. * http://jquery.org/license
  8. *
  9. * http://api.jqueryui.com/button/#theming
  10. */
  11. .ui-button {
  12. padding: .4em 1em;
  13. display: inline-block;
  14. position: relative;
  15. line-height: normal;
  16. margin-right: .1em;
  17. cursor: pointer;
  18. vertical-align: middle;
  19. text-align: center;
  20. -webkit-user-select: none;
  21. -moz-user-select: none;
  22. -ms-user-select: none;
  23. user-select: none;
  24. /* Support: IE <= 11 */
  25. overflow: visible;
  26. }
  27. .ui-button,
  28. .ui-button:link,
  29. .ui-button:visited,
  30. .ui-button:hover,
  31. .ui-button:active {
  32. text-decoration: none;
  33. }
  34. /* to make room for the icon, a width needs to be set here */
  35. .ui-button-icon-only {
  36. width: 2em;
  37. box-sizing: border-box;
  38. text-indent: -9999px;
  39. white-space: nowrap;
  40. }
  41. /* no icon support for input elements */
  42. input.ui-button.ui-button-icon-only {
  43. text-indent: 0;
  44. }
  45. /* button icon element(s) */
  46. .ui-button-icon-only .ui-icon {
  47. position: absolute;
  48. top: 50%;
  49. left: 50%;
  50. margin-top: -8px;
  51. margin-left: -8px;
  52. }
  53. .ui-button.ui-icon-notext .ui-icon {
  54. padding: 0;
  55. width: 2.1em;
  56. height: 2.1em;
  57. text-indent: -9999px;
  58. white-space: nowrap;
  59. }
  60. input.ui-button.ui-icon-notext .ui-icon {
  61. width: auto;
  62. height: auto;
  63. text-indent: 0;
  64. white-space: normal;
  65. padding: .4em 1em;
  66. }
  67. /* workarounds */
  68. /* Support: Firefox 5 - 40 */
  69. input.ui-button::-moz-focus-inner,
  70. button.ui-button::-moz-focus-inner {
  71. border: 0;
  72. padding: 0;
  73. }

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