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.

311 lines
9.2 KiB

7 years ago
  1. /*!
  2. * Angular Material Design
  3. * https://github.com/angular/material
  4. * @license MIT
  5. * v1.1.3
  6. */
  7. /** Styles for mdCalendar. */
  8. md-calendar {
  9. font-size: 13px;
  10. -webkit-user-select: none;
  11. -moz-user-select: none;
  12. -ms-user-select: none;
  13. user-select: none; }
  14. .md-calendar-scroll-mask {
  15. display: inline-block;
  16. overflow: hidden;
  17. height: 308px; }
  18. .md-calendar-scroll-mask .md-virtual-repeat-scroller {
  19. overflow-y: scroll;
  20. -webkit-overflow-scrolling: touch; }
  21. .md-calendar-scroll-mask .md-virtual-repeat-scroller::-webkit-scrollbar {
  22. display: none; }
  23. .md-calendar-scroll-mask .md-virtual-repeat-offsetter {
  24. width: 100%; }
  25. .md-calendar-scroll-container {
  26. box-shadow: inset -3px 3px 6px rgba(0, 0, 0, 0.2);
  27. display: inline-block;
  28. height: 308px;
  29. width: 346px; }
  30. .md-calendar-date {
  31. height: 44px;
  32. width: 44px;
  33. text-align: center;
  34. padding: 0;
  35. border: none;
  36. box-sizing: content-box; }
  37. .md-calendar-date:first-child {
  38. padding-left: 16px; }
  39. [dir=rtl] .md-calendar-date:first-child {
  40. padding-left: 0;
  41. padding-right: 16px; }
  42. .md-calendar-date:last-child {
  43. padding-right: 16px; }
  44. [dir=rtl] .md-calendar-date:last-child {
  45. padding-right: 0;
  46. padding-left: 16px; }
  47. .md-calendar-date.md-calendar-date-disabled {
  48. cursor: default; }
  49. .md-calendar-date-selection-indicator {
  50. -webkit-transition: background-color, color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  51. transition: background-color, color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  52. border-radius: 50%;
  53. display: inline-block;
  54. width: 40px;
  55. height: 40px;
  56. line-height: 40px; }
  57. .md-calendar-date:not(.md-disabled) .md-calendar-date-selection-indicator {
  58. cursor: pointer; }
  59. .md-calendar-month-label {
  60. height: 44px;
  61. font-size: 14px;
  62. font-weight: 500;
  63. padding: 0 0 0 24px; }
  64. [dir=rtl] .md-calendar-month-label {
  65. padding: 0 24px 0 0; }
  66. md-calendar-month .md-calendar-month-label:not(.md-calendar-month-label-disabled) {
  67. cursor: pointer; }
  68. .md-calendar-month-label md-icon {
  69. -webkit-transform: rotate(180deg);
  70. transform: rotate(180deg); }
  71. [dir=rtl] .md-calendar-month-label md-icon {
  72. -webkit-transform: none;
  73. transform: none; }
  74. .md-calendar-month-label span {
  75. vertical-align: middle; }
  76. .md-calendar-day-header {
  77. table-layout: fixed;
  78. border-spacing: 0;
  79. border-collapse: collapse; }
  80. .md-calendar-day-header th {
  81. height: 40px;
  82. width: 44px;
  83. text-align: center;
  84. padding: 0;
  85. border: none;
  86. box-sizing: content-box;
  87. font-weight: normal; }
  88. .md-calendar-day-header th:first-child {
  89. padding-left: 16px; }
  90. [dir=rtl] .md-calendar-day-header th:first-child {
  91. padding-left: 0;
  92. padding-right: 16px; }
  93. .md-calendar-day-header th:last-child {
  94. padding-right: 16px; }
  95. [dir=rtl] .md-calendar-day-header th:last-child {
  96. padding-right: 0;
  97. padding-left: 16px; }
  98. .md-calendar {
  99. table-layout: fixed;
  100. border-spacing: 0;
  101. border-collapse: collapse; }
  102. .md-calendar tr:last-child td {
  103. border-bottom-width: 1px;
  104. border-bottom-style: solid; }
  105. .md-calendar:first-child {
  106. border-top: 1px solid transparent; }
  107. .md-calendar tbody, .md-calendar td, .md-calendar tr {
  108. vertical-align: middle;
  109. box-sizing: content-box; }
  110. /** Styles for mdDatepicker. */
  111. md-datepicker {
  112. white-space: nowrap;
  113. overflow: hidden;
  114. vertical-align: middle; }
  115. .md-inline-form md-datepicker {
  116. margin-top: 12px; }
  117. .md-datepicker-button {
  118. display: inline-block;
  119. box-sizing: border-box;
  120. background: none;
  121. vertical-align: middle;
  122. position: relative; }
  123. .md-datepicker-button:before {
  124. top: 0;
  125. left: 0;
  126. bottom: 0;
  127. right: 0;
  128. position: absolute;
  129. content: '';
  130. speak: none; }
  131. .md-datepicker-input {
  132. font-size: 14px;
  133. box-sizing: border-box;
  134. border: none;
  135. box-shadow: none;
  136. outline: none;
  137. background: transparent;
  138. min-width: 120px;
  139. max-width: 328px;
  140. padding: 0 0 5px; }
  141. .md-datepicker-input::-ms-clear {
  142. display: none; }
  143. ._md-datepicker-floating-label > md-datepicker {
  144. overflow: visible; }
  145. ._md-datepicker-floating-label > md-datepicker .md-datepicker-input-container {
  146. border: none; }
  147. ._md-datepicker-floating-label > md-datepicker .md-datepicker-button {
  148. float: left;
  149. margin-top: -12px;
  150. top: 9.5px; }
  151. [dir=rtl] ._md-datepicker-floating-label > md-datepicker .md-datepicker-button {
  152. float: right; }
  153. ._md-datepicker-floating-label .md-input {
  154. float: none; }
  155. ._md-datepicker-floating-label._md-datepicker-has-calendar-icon > label:not(.md-no-float):not(.md-container-ignore) {
  156. right: 18px;
  157. left: auto;
  158. width: calc(100% - 84px); }
  159. [dir=rtl] ._md-datepicker-floating-label._md-datepicker-has-calendar-icon > label:not(.md-no-float):not(.md-container-ignore) {
  160. right: auto; }
  161. [dir=rtl] ._md-datepicker-floating-label._md-datepicker-has-calendar-icon > label:not(.md-no-float):not(.md-container-ignore) {
  162. left: 18px; }
  163. ._md-datepicker-floating-label._md-datepicker-has-calendar-icon .md-input-message-animation {
  164. margin-left: 64px; }
  165. [dir=rtl] ._md-datepicker-floating-label._md-datepicker-has-calendar-icon .md-input-message-animation {
  166. margin-left: auto;
  167. margin-right: 64px; }
  168. ._md-datepicker-has-triangle-icon {
  169. padding-right: 18px;
  170. margin-right: -18px; }
  171. [dir=rtl] ._md-datepicker-has-triangle-icon {
  172. padding-right: 0;
  173. padding-left: 18px; }
  174. [dir=rtl] ._md-datepicker-has-triangle-icon {
  175. margin-right: auto;
  176. margin-left: -18px; }
  177. .md-datepicker-input-container {
  178. position: relative;
  179. border-bottom-width: 1px;
  180. border-bottom-style: solid;
  181. display: inline-block;
  182. width: auto; }
  183. .md-icon-button + .md-datepicker-input-container {
  184. margin-left: 12px; }
  185. [dir=rtl] .md-icon-button + .md-datepicker-input-container {
  186. margin-left: auto;
  187. margin-right: 12px; }
  188. .md-datepicker-input-container.md-datepicker-focused {
  189. border-bottom-width: 2px; }
  190. .md-datepicker-is-showing .md-scroll-mask {
  191. z-index: 99; }
  192. .md-datepicker-calendar-pane {
  193. position: absolute;
  194. top: 0;
  195. left: -100%;
  196. z-index: 100;
  197. border-width: 1px;
  198. border-style: solid;
  199. background: transparent;
  200. -webkit-transform: scale(0);
  201. transform: scale(0);
  202. -webkit-transform-origin: 0 0;
  203. transform-origin: 0 0;
  204. -webkit-transition: -webkit-transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  205. transition: -webkit-transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  206. transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  207. transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); }
  208. .md-datepicker-calendar-pane.md-pane-open {
  209. -webkit-transform: scale(1);
  210. transform: scale(1); }
  211. .md-datepicker-input-mask {
  212. height: 40px;
  213. width: 340px;
  214. position: relative;
  215. overflow: hidden;
  216. background: transparent;
  217. pointer-events: none;
  218. cursor: text; }
  219. .md-datepicker-calendar {
  220. opacity: 0;
  221. -webkit-transition: opacity 0.2s cubic-bezier(0.5, 0, 0.25, 1);
  222. transition: opacity 0.2s cubic-bezier(0.5, 0, 0.25, 1); }
  223. .md-pane-open .md-datepicker-calendar {
  224. opacity: 1; }
  225. .md-datepicker-calendar md-calendar:focus {
  226. outline: none; }
  227. .md-datepicker-expand-triangle {
  228. position: absolute;
  229. top: 50%;
  230. left: 50%;
  231. -webkit-transform: translate(-50%, -50%);
  232. transform: translate(-50%, -50%);
  233. width: 0;
  234. height: 0;
  235. border-left: 5px solid transparent;
  236. border-right: 5px solid transparent;
  237. border-top: 5px solid; }
  238. .md-datepicker-triangle-button {
  239. position: absolute;
  240. right: 0;
  241. bottom: -2.5px;
  242. -webkit-transform: translateX(45%);
  243. transform: translateX(45%); }
  244. [dir=rtl] .md-datepicker-triangle-button {
  245. right: auto;
  246. left: 0; }
  247. [dir=rtl] .md-datepicker-triangle-button {
  248. -webkit-transform: translateX(-45%);
  249. transform: translateX(-45%); }
  250. .md-datepicker-triangle-button.md-button.md-icon-button {
  251. height: 36px;
  252. width: 36px;
  253. position: absolute;
  254. padding: 8px; }
  255. md-datepicker[disabled] .md-datepicker-input-container {
  256. border-bottom-color: transparent; }
  257. md-datepicker[disabled] .md-datepicker-triangle-button {
  258. display: none; }
  259. .md-datepicker-open {
  260. overflow: hidden; }
  261. .md-datepicker-open .md-datepicker-input-container,
  262. .md-datepicker-open input.md-input {
  263. border-bottom-color: transparent; }
  264. .md-datepicker-open .md-datepicker-triangle-button,
  265. .md-datepicker-open.md-input-has-value > label,
  266. .md-datepicker-open.md-input-has-placeholder > label {
  267. display: none; }
  268. .md-datepicker-pos-adjusted .md-datepicker-input-mask {
  269. display: none; }
  270. .md-datepicker-calendar-pane .md-calendar {
  271. -webkit-transform: translateY(-85px);
  272. transform: translateY(-85px);
  273. -webkit-transition: -webkit-transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  274. transition: -webkit-transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  275. transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  276. transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  277. -webkit-transition-delay: 0.125s;
  278. transition-delay: 0.125s; }
  279. .md-datepicker-calendar-pane.md-pane-open .md-calendar {
  280. -webkit-transform: translateY(0);
  281. transform: translateY(0); }