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.

305 lines
9.1 KiB

  1. /*!
  2. * Angular Material Design
  3. * https://github.com/angular/material
  4. * @license MIT
  5. * v1.1.1
  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. padding-right: 18px;
  115. margin-right: -18px;
  116. vertical-align: middle; }
  117. [dir=rtl] md-datepicker {
  118. padding-right: 0;
  119. padding-left: 18px; }
  120. [dir=rtl] md-datepicker {
  121. margin-right: auto;
  122. margin-left: -18px; }
  123. .md-inline-form md-datepicker {
  124. margin-top: 12px; }
  125. .md-datepicker-button {
  126. display: inline-block;
  127. box-sizing: border-box;
  128. background: none;
  129. vertical-align: middle;
  130. position: relative; }
  131. .md-datepicker-button:before {
  132. top: 0;
  133. left: 0;
  134. bottom: 0;
  135. right: 0;
  136. position: absolute;
  137. content: '';
  138. speak: none; }
  139. .md-datepicker-input {
  140. font-size: 14px;
  141. box-sizing: border-box;
  142. border: none;
  143. box-shadow: none;
  144. outline: none;
  145. background: transparent;
  146. min-width: 120px;
  147. max-width: 328px;
  148. padding: 0 0 5px; }
  149. .md-datepicker-input::-ms-clear {
  150. display: none; }
  151. ._md-datepicker-floating-label > md-datepicker {
  152. overflow: visible; }
  153. ._md-datepicker-floating-label > md-datepicker .md-datepicker-input-container {
  154. border: none; }
  155. ._md-datepicker-floating-label > md-datepicker .md-datepicker-button {
  156. float: left;
  157. margin-top: -2.5px; }
  158. [dir=rtl] ._md-datepicker-floating-label > md-datepicker .md-datepicker-button {
  159. float: right; }
  160. ._md-datepicker-floating-label._md-datepicker-has-calendar-icon > label:not(.md-no-float):not(.md-container-ignore) {
  161. right: 18px;
  162. left: auto;
  163. width: calc(100% - 84px); }
  164. [dir=rtl] ._md-datepicker-floating-label._md-datepicker-has-calendar-icon > label:not(.md-no-float):not(.md-container-ignore) {
  165. right: auto; }
  166. [dir=rtl] ._md-datepicker-floating-label._md-datepicker-has-calendar-icon > label:not(.md-no-float):not(.md-container-ignore) {
  167. left: 18px; }
  168. ._md-datepicker-floating-label._md-datepicker-has-calendar-icon .md-input-message-animation {
  169. margin-left: 64px; }
  170. [dir=rtl] ._md-datepicker-floating-label._md-datepicker-has-calendar-icon .md-input-message-animation {
  171. margin-left: auto;
  172. margin-right: 64px; }
  173. .md-datepicker-input-container {
  174. position: relative;
  175. border-bottom-width: 1px;
  176. border-bottom-style: solid;
  177. display: inline-block;
  178. width: auto; }
  179. .md-icon-button + .md-datepicker-input-container {
  180. margin-left: 12px; }
  181. [dir=rtl] .md-icon-button + .md-datepicker-input-container {
  182. margin-left: auto;
  183. margin-right: 12px; }
  184. .md-datepicker-input-container.md-datepicker-focused {
  185. border-bottom-width: 2px; }
  186. .md-datepicker-is-showing .md-scroll-mask {
  187. z-index: 99; }
  188. .md-datepicker-calendar-pane {
  189. position: absolute;
  190. top: 0;
  191. left: -100%;
  192. z-index: 100;
  193. border-width: 1px;
  194. border-style: solid;
  195. background: transparent;
  196. -webkit-transform: scale(0);
  197. transform: scale(0);
  198. -webkit-transform-origin: 0 0;
  199. transform-origin: 0 0;
  200. -webkit-transition: -webkit-transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  201. transition: -webkit-transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  202. transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  203. 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); }
  204. .md-datepicker-calendar-pane.md-pane-open {
  205. -webkit-transform: scale(1);
  206. transform: scale(1); }
  207. .md-datepicker-input-mask {
  208. height: 40px;
  209. width: 340px;
  210. position: relative;
  211. overflow: hidden;
  212. background: transparent;
  213. pointer-events: none;
  214. cursor: text; }
  215. .md-datepicker-calendar {
  216. opacity: 0;
  217. -webkit-transition: opacity 0.2s cubic-bezier(0.5, 0, 0.25, 1);
  218. transition: opacity 0.2s cubic-bezier(0.5, 0, 0.25, 1); }
  219. .md-pane-open .md-datepicker-calendar {
  220. opacity: 1; }
  221. .md-datepicker-calendar md-calendar:focus {
  222. outline: none; }
  223. .md-datepicker-expand-triangle {
  224. position: absolute;
  225. top: 50%;
  226. left: 50%;
  227. -webkit-transform: translate(-50%, -50%);
  228. transform: translate(-50%, -50%);
  229. width: 0;
  230. height: 0;
  231. border-left: 5px solid transparent;
  232. border-right: 5px solid transparent;
  233. border-top: 5px solid; }
  234. .md-datepicker-triangle-button {
  235. position: absolute;
  236. right: 0;
  237. top: 5px;
  238. -webkit-transform: translateY(-25%) translateX(45%);
  239. transform: translateY(-25%) translateX(45%); }
  240. [dir=rtl] .md-datepicker-triangle-button {
  241. right: auto;
  242. left: 0; }
  243. [dir=rtl] .md-datepicker-triangle-button {
  244. -webkit-transform: translateY(-25%) translateX(-45%);
  245. transform: translateY(-25%) translateX(-45%); }
  246. .md-datepicker-triangle-button.md-button.md-icon-button {
  247. height: 36px;
  248. width: 36px;
  249. position: absolute;
  250. padding: 8px; }
  251. md-datepicker[disabled] .md-datepicker-input-container {
  252. border-bottom-color: transparent; }
  253. md-datepicker[disabled] .md-datepicker-triangle-button {
  254. display: none; }
  255. .md-datepicker-open {
  256. overflow: hidden; }
  257. .md-datepicker-open .md-datepicker-input-container,
  258. .md-datepicker-open input.md-input {
  259. border-bottom-color: transparent; }
  260. .md-datepicker-open .md-datepicker-triangle-button,
  261. .md-datepicker-open.md-input-has-value > label,
  262. .md-datepicker-open.md-input-has-placeholder > label {
  263. display: none; }
  264. .md-datepicker-pos-adjusted .md-datepicker-input-mask {
  265. display: none; }
  266. .md-datepicker-calendar-pane .md-calendar {
  267. -webkit-transform: translateY(-85px);
  268. transform: translateY(-85px);
  269. -webkit-transition: -webkit-transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  270. transition: -webkit-transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  271. transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  272. 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);
  273. -webkit-transition-delay: 0.125s;
  274. transition-delay: 0.125s; }
  275. .md-datepicker-calendar-pane.md-pane-open .md-calendar {
  276. -webkit-transform: translateY(0);
  277. transform: translateY(0); }