select.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. /*!
  2. * Angular Material Design
  3. * https://github.com/angular/material
  4. * @license MIT
  5. * v0.11.4
  6. */
  7. .md-select-menu-container {
  8. position: fixed;
  9. left: 0;
  10. top: 0;
  11. z-index: 99;
  12. opacity: 0; }
  13. .md-select-menu-container:not(.md-clickable) {
  14. pointer-events: none; }
  15. .md-select-menu-container md-progress-circular {
  16. display: table;
  17. margin: 24px auto !important; }
  18. .md-select-menu-container.md-active {
  19. opacity: 1; }
  20. .md-select-menu-container.md-active md-select-menu {
  21. transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  22. transition-duration: 150ms; }
  23. .md-select-menu-container.md-active md-select-menu > * {
  24. opacity: 1;
  25. transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
  26. transition-duration: 150ms;
  27. transition-delay: 100ms; }
  28. .md-select-menu-container.md-leave {
  29. opacity: 0;
  30. transition: all 0.3s cubic-bezier(0.55, 0, 0.55, 0.2);
  31. transition-duration: 250ms; }
  32. md-input-container > md-select {
  33. margin: 0;
  34. -webkit-order: 2;
  35. -ms-flex-order: 2;
  36. order: 2; }
  37. md-select {
  38. display: -webkit-flex;
  39. display: -ms-flexbox;
  40. display: flex;
  41. margin: 20px 0 26px 0; }
  42. md-select[disabled] .md-select-value {
  43. background-position: 0 bottom;
  44. background-size: 4px 1px;
  45. background-repeat: repeat-x;
  46. margin-bottom: -1px; }
  47. md-select:focus {
  48. outline: none; }
  49. md-select[disabled]:hover {
  50. cursor: default; }
  51. md-select:not([disabled]):hover {
  52. cursor: pointer; }
  53. md-select:not([disabled]).ng-invalid.ng-dirty .md-select-value {
  54. border-bottom: 2px solid;
  55. padding-bottom: 0; }
  56. md-select:not([disabled]):focus .md-select-value {
  57. border-bottom-width: 2px;
  58. border-bottom-style: solid;
  59. padding-bottom: 0; }
  60. .md-select-value {
  61. display: -webkit-flex;
  62. display: -ms-flexbox;
  63. display: flex;
  64. -webkit-align-items: center;
  65. -ms-flex-align: center;
  66. align-items: center;
  67. padding: 2px 2px 1px;
  68. border-bottom-width: 1px;
  69. border-bottom-style: solid;
  70. background-color: transparent;
  71. position: relative;
  72. box-sizing: content-box;
  73. min-width: 64px;
  74. min-height: 26px;
  75. -webkit-flex-grow: 1;
  76. -ms-flex-positive: 1;
  77. flex-grow: 1; }
  78. .md-select-value *:first-child {
  79. -webkit-flex: 1;
  80. -ms-flex: 1;
  81. flex: 1;
  82. text-overflow: ellipsis;
  83. white-space: nowrap;
  84. overflow: hidden;
  85. max-width: calc(100% - 2*8px);
  86. -webkit-transform: translate3d(0, 2px, 0);
  87. transform: translate3d(0, 2px, 0); }
  88. .md-select-value .md-select-icon {
  89. display: block;
  90. -webkit-align-items: flex-end;
  91. -ms-flex-align: end;
  92. align-items: flex-end;
  93. text-align: end;
  94. width: 24px;
  95. margin: 0 4px;
  96. -webkit-transform: translate3d(0, 1px, 0);
  97. transform: translate3d(0, 1px, 0); }
  98. .md-select-value .md-select-icon:after {
  99. display: block;
  100. content: '\25BC';
  101. position: relative;
  102. top: 2px;
  103. speak: none;
  104. -webkit-transform: scaleY(0.6) scaleX(1);
  105. transform: scaleY(0.6) scaleX(1); }
  106. .md-select-value.md-select-placeholder {
  107. display: -webkit-flex;
  108. display: -ms-flexbox;
  109. display: flex;
  110. -webkit-order: 1;
  111. -ms-flex-order: 1;
  112. order: 1;
  113. pointer-events: none;
  114. -webkit-font-smoothing: antialiased;
  115. padding-left: 2px;
  116. z-index: 1; }
  117. md-select-menu {
  118. display: -webkit-flex;
  119. display: -ms-flexbox;
  120. display: flex;
  121. -webkit-flex-direction: column;
  122. -ms-flex-direction: column;
  123. flex-direction: column;
  124. box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 2px 1px -1px rgba(0, 0, 0, 0.12);
  125. max-height: 256px;
  126. min-height: 48px;
  127. overflow-y: hidden;
  128. -webkit-transform-origin: left top;
  129. transform-origin: left top;
  130. -webkit-transform: scale(1);
  131. transform: scale(1); }
  132. md-select-menu.md-reverse {
  133. -webkit-flex-direction: column-reverse;
  134. -ms-flex-direction: column-reverse;
  135. flex-direction: column-reverse; }
  136. md-select-menu:not(.md-overflow) md-content {
  137. padding-top: 8px;
  138. padding-bottom: 8px; }
  139. html[dir=rtl] md-select-menu {
  140. -webkit-transform-origin: right top;
  141. transform-origin: right top;
  142. unicode-bidi: embed; }
  143. body[dir=rtl] md-select-menu {
  144. -webkit-transform-origin: right top;
  145. transform-origin: right top;
  146. unicode-bidi: embed; }
  147. md-select-menu bdo[dir=rtl] {
  148. direction: rtl;
  149. unicode-bidi: bidi-override; }
  150. md-select-menu bdo[dir=ltr] {
  151. direction: ltr;
  152. unicode-bidi: bidi-override; }
  153. md-select-menu md-content {
  154. min-width: 136px;
  155. min-height: 48px;
  156. max-height: 256px;
  157. overflow-y: auto; }
  158. md-select-menu > * {
  159. opacity: 0; }
  160. md-option {
  161. cursor: pointer;
  162. position: relative;
  163. display: -webkit-flex;
  164. display: -ms-flexbox;
  165. display: flex;
  166. -webkit-align-items: center;
  167. -ms-flex-align: center;
  168. align-items: center;
  169. width: auto;
  170. padding: 0 16px 0 16px;
  171. height: 48px; }
  172. md-option:focus {
  173. outline: none; }
  174. md-option .md-text {
  175. -webkit-touch-callout: none;
  176. -webkit-user-select: none;
  177. -khtml-user-select: none;
  178. -moz-user-select: none;
  179. -ms-user-select: none;
  180. user-select: none;
  181. width: auto;
  182. white-space: nowrap;
  183. overflow: hidden;
  184. text-overflow: ellipsis;
  185. font-size: 16px; }
  186. md-optgroup {
  187. display: block; }
  188. md-optgroup label {
  189. display: block;
  190. font-size: 14px;
  191. text-transform: uppercase;
  192. padding: 16px;
  193. font-weight: 500; }
  194. md-optgroup md-option {
  195. padding-left: 32px;
  196. padding-right: 32px; }
  197. @media screen and (-ms-high-contrast: active) {
  198. .md-select-backdrop {
  199. background-color: transparent; }
  200. md-select-menu {
  201. border: 1px solid #fff; } }