You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

205 lines
7.3 KiB

7 years ago
  1. /*!
  2. * Angular Material Design
  3. * https://github.com/angular/material
  4. * @license MIT
  5. * v1.1.3
  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-icon-button .md-ripple-container {
  80. border-radius: 50%;
  81. background-clip: padding-box;
  82. overflow: hidden;
  83. -webkit-mask-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC"); }
  84. .md-button.md-fab {
  85. z-index: 20;
  86. line-height: 56px;
  87. min-width: 0;
  88. width: 56px;
  89. height: 56px;
  90. vertical-align: middle;
  91. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  92. border-radius: 50%;
  93. background-clip: padding-box;
  94. overflow: hidden;
  95. -webkit-transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
  96. transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
  97. -webkit-transition-property: background-color, box-shadow, -webkit-transform;
  98. transition-property: background-color, box-shadow, -webkit-transform;
  99. transition-property: background-color, box-shadow, transform;
  100. transition-property: background-color, box-shadow, transform, -webkit-transform; }
  101. .md-button.md-fab.md-fab-bottom-right {
  102. top: auto;
  103. right: 20px;
  104. bottom: 20px;
  105. left: auto;
  106. position: absolute; }
  107. .md-button.md-fab.md-fab-bottom-left {
  108. top: auto;
  109. right: auto;
  110. bottom: 20px;
  111. left: 20px;
  112. position: absolute; }
  113. .md-button.md-fab.md-fab-top-right {
  114. top: 20px;
  115. right: 20px;
  116. bottom: auto;
  117. left: auto;
  118. position: absolute; }
  119. .md-button.md-fab.md-fab-top-left {
  120. top: 20px;
  121. right: auto;
  122. bottom: auto;
  123. left: 20px;
  124. position: absolute; }
  125. .md-button.md-fab .md-ripple-container {
  126. border-radius: 50%;
  127. background-clip: padding-box;
  128. overflow: hidden;
  129. -webkit-mask-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC"); }
  130. .md-button.md-fab.md-mini {
  131. line-height: 40px;
  132. width: 40px;
  133. height: 40px; }
  134. .md-button.md-fab.ng-hide, .md-button.md-fab.ng-leave {
  135. -webkit-transition: none;
  136. transition: none; }
  137. .md-button:not([disabled]).md-raised.md-focused, .md-button:not([disabled]).md-fab.md-focused {
  138. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26); }
  139. .md-button:not([disabled]).md-raised:active, .md-button:not([disabled]).md-fab:active {
  140. box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.4); }
  141. .md-button .md-ripple-container {
  142. border-radius: 2px;
  143. background-clip: padding-box;
  144. overflow: hidden;
  145. -webkit-mask-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC"); }
  146. .md-button.md-icon-button md-icon,
  147. button.md-button.md-fab md-icon {
  148. display: block; }
  149. .md-toast-open-top .md-button.md-fab-top-left,
  150. .md-toast-open-top .md-button.md-fab-top-right {
  151. -webkit-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  152. transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  153. -webkit-transform: translate3d(0, 42px, 0);
  154. transform: translate3d(0, 42px, 0); }
  155. .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,
  156. .md-toast-open-top .md-button.md-fab-top-right:not([disabled]).md-focused,
  157. .md-toast-open-top .md-button.md-fab-top-right:not([disabled]):hover {
  158. -webkit-transform: translate3d(0, 41px, 0);
  159. transform: translate3d(0, 41px, 0); }
  160. .md-toast-open-bottom .md-button.md-fab-bottom-left,
  161. .md-toast-open-bottom .md-button.md-fab-bottom-right {
  162. -webkit-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  163. transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  164. -webkit-transform: translate3d(0, -42px, 0);
  165. transform: translate3d(0, -42px, 0); }
  166. .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,
  167. .md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]).md-focused,
  168. .md-toast-open-bottom .md-button.md-fab-bottom-right:not([disabled]):hover {
  169. -webkit-transform: translate3d(0, -43px, 0);
  170. transform: translate3d(0, -43px, 0); }
  171. .md-button-group {
  172. display: -webkit-box;
  173. display: -webkit-flex;
  174. display: flex;
  175. -webkit-box-flex: 1;
  176. -webkit-flex: 1;
  177. flex: 1;
  178. width: 100%; }
  179. .md-button-group > .md-button {
  180. -webkit-box-flex: 1;
  181. -webkit-flex: 1;
  182. flex: 1;
  183. display: block;
  184. overflow: hidden;
  185. width: 0;
  186. border-width: 1px 0px 1px 1px;
  187. border-radius: 0;
  188. text-align: center;
  189. text-overflow: ellipsis;
  190. white-space: nowrap; }
  191. .md-button-group > .md-button:first-child {
  192. border-radius: 2px 0px 0px 2px; }
  193. .md-button-group > .md-button:last-child {
  194. border-right-width: 1px;
  195. border-radius: 0px 2px 2px 0px; }
  196. @media screen and (-ms-high-contrast: active) {
  197. .md-button.md-raised,
  198. .md-button.md-fab {
  199. border: 1px solid #fff; } }