button.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. /*!
  2. * AngularJS Material Design
  3. * https://github.com/angular/material
  4. * @license MIT
  5. * v1.1.8-master-aba7b2b
  6. */
  7. button.md-button::-moz-focus-inner {
  8. border: 0; }
  9. .md-button {
  10. display: inline-block;
  11. position: relative;
  12. cursor: pointer;
  13. /** Alignment adjustments */
  14. min-height: 36px;
  15. min-width: 88px;
  16. line-height: 36px;
  17. vertical-align: middle;
  18. -webkit-box-align: center;
  19. -webkit-align-items: center;
  20. align-items: center;
  21. text-align: center;
  22. border-radius: 2px;
  23. box-sizing: border-box;
  24. /* Reset default button appearance */
  25. -webkit-user-select: none;
  26. -moz-user-select: none;
  27. -ms-user-select: none;
  28. user-select: none;
  29. outline: none;
  30. border: 0;
  31. /** Custom styling for button */
  32. padding: 0 6px;
  33. margin: 6px 8px;
  34. background: transparent;
  35. color: currentColor;
  36. white-space: nowrap;
  37. /* Uppercase text content */
  38. text-transform: uppercase;
  39. font-weight: 500;
  40. font-size: 14px;
  41. font-style: inherit;
  42. font-variant: inherit;
  43. font-family: inherit;
  44. text-decoration: none;
  45. overflow: hidden;
  46. -webkit-transition: box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  47. transition: box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
  48. .md-dense > .md-button:not(.md-dense-disabled),
  49. .md-dense :not(.md-dense-disabled) .md-button:not(.md-dense-disabled) {
  50. min-height: 32px; }
  51. .md-dense > .md-button:not(.md-dense-disabled),
  52. .md-dense :not(.md-dense-disabled) .md-button:not(.md-dense-disabled) {
  53. line-height: 32px; }
  54. .md-dense > .md-button:not(.md-dense-disabled),
  55. .md-dense :not(.md-dense-disabled) .md-button:not(.md-dense-disabled) {
  56. font-size: 13px; }
  57. .md-button:focus {
  58. outline: none; }
  59. .md-button:hover, .md-button:focus {
  60. text-decoration: none; }
  61. .md-button.ng-hide, .md-button.ng-leave {
  62. -webkit-transition: none;
  63. transition: none; }
  64. .md-button.md-cornered {
  65. border-radius: 0; }
  66. .md-button.md-icon {
  67. padding: 0;
  68. background: none; }
  69. .md-button.md-raised:not([disabled]) {
  70. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26); }
  71. .md-button.md-icon-button {
  72. margin: 0 6px;
  73. height: 40px;
  74. min-width: 0;
  75. line-height: 24px;
  76. padding: 8px;
  77. width: 40px;
  78. border-radius: 50%; }
  79. .md-button.md-fab {
  80. z-index: 20;
  81. line-height: 56px;
  82. min-width: 0;
  83. width: 56px;
  84. height: 56px;
  85. vertical-align: middle;
  86. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  87. border-radius: 50%;
  88. background-clip: padding-box;
  89. overflow: hidden;
  90. -webkit-transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
  91. transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
  92. -webkit-transition-property: background-color, box-shadow, -webkit-transform;
  93. transition-property: background-color, box-shadow, -webkit-transform;
  94. transition-property: background-color, box-shadow, transform;
  95. transition-property: background-color, box-shadow, transform, -webkit-transform; }
  96. .md-button.md-fab.md-fab-bottom-right {
  97. top: auto;
  98. right: 20px;
  99. bottom: 20px;
  100. left: auto;
  101. position: absolute; }
  102. .md-button.md-fab.md-fab-bottom-left {
  103. top: auto;
  104. right: auto;
  105. bottom: 20px;
  106. left: 20px;
  107. position: absolute; }
  108. .md-button.md-fab.md-fab-top-right {
  109. top: 20px;
  110. right: 20px;
  111. bottom: auto;
  112. left: auto;
  113. position: absolute; }
  114. .md-button.md-fab.md-fab-top-left {
  115. top: 20px;
  116. right: auto;
  117. bottom: auto;
  118. left: 20px;
  119. position: absolute; }
  120. .md-button.md-fab.md-mini {
  121. line-height: 40px;
  122. width: 40px;
  123. height: 40px; }
  124. .md-button.md-fab.ng-hide, .md-button.md-fab.ng-leave {
  125. -webkit-transition: none;
  126. transition: none; }
  127. .md-button:not([disabled]).md-raised.md-focused, .md-button:not([disabled]).md-fab.md-focused {
  128. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26); }
  129. .md-button:not([disabled]).md-raised:active, .md-button:not([disabled]).md-fab:active {
  130. box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4); }
  131. .md-button .md-ripple-container {
  132. border-radius: inherit;
  133. background-clip: padding-box;
  134. overflow: hidden;
  135. -webkit-transform: translateZ(0); }
  136. .md-button.md-icon-button md-icon,
  137. button.md-button.md-fab md-icon {
  138. display: block; }
  139. .md-toast-open-top .md-button.md-fab-top-left,
  140. .md-toast-open-top .md-button.md-fab-top-right {
  141. -webkit-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  142. transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  143. -webkit-transform: translate3d(0, 42px, 0);
  144. transform: translate3d(0, 42px, 0); }
  145. .md-toast-open-top .md-button.md-fab-top-left:not([disabled]).md-focused, .md-toast-open-top .md-button.md-fab-top-left:not([disabled]):hover,
  146. .md-toast-open-top .md-button.md-fab-top-right:not([disabled]).md-focused,
  147. .md-toast-open-top .md-button.md-fab-top-right:not([disabled]):hover {
  148. -webkit-transform: translate3d(0, 41px, 0);
  149. transform: translate3d(0, 41px, 0); }
  150. .md-toast-open-bottom .md-button.md-fab-bottom-left,
  151. .md-toast-open-bottom .md-button.md-fab-bottom-right {
  152. -webkit-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  153. transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  154. -webkit-transform: translate3d(0, -42px, 0);
  155. transform: translate3d(0, -42px, 0); }
  156. .md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]).md-focused, .md-toast-open-bottom .md-button.md-fab-bottom-left:not([disabled]):hover,
  157. .md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]).md-focused,
  158. .md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]):hover {
  159. -webkit-transform: translate3d(0, -43px, 0);
  160. transform: translate3d(0, -43px, 0); }
  161. .md-button-group {
  162. display: -webkit-box;
  163. display: -webkit-flex;
  164. display: flex;
  165. -webkit-box-flex: 1;
  166. -webkit-flex: 1;
  167. flex: 1;
  168. width: 100%; }
  169. .md-button-group > .md-button {
  170. -webkit-box-flex: 1;
  171. -webkit-flex: 1;
  172. flex: 1;
  173. display: block;
  174. overflow: hidden;
  175. width: 0;
  176. border-width: 1px 0px 1px 1px;
  177. border-radius: 0;
  178. text-align: center;
  179. text-overflow: ellipsis;
  180. white-space: nowrap; }
  181. .md-button-group > .md-button:first-child {
  182. border-radius: 2px 0px 0px 2px; }
  183. .md-button-group > .md-button:last-child {
  184. border-right-width: 1px;
  185. border-radius: 0px 2px 2px 0px; }
  186. @media screen and (-ms-high-contrast: active) {
  187. .md-button.md-raised,
  188. .md-button.md-fab {
  189. border: 1px solid #fff; } }