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.

439 lines
14 KiB

  1. /*!
  2. * Angular Material Design
  3. * https://github.com/angular/material
  4. * @license MIT
  5. * v1.1.1
  6. */
  7. @-webkit-keyframes sliderFocusThumb {
  8. 0% {
  9. -webkit-transform: scale(0.7);
  10. transform: scale(0.7); }
  11. 30% {
  12. -webkit-transform: scale(1);
  13. transform: scale(1); }
  14. 100% {
  15. -webkit-transform: scale(0.7);
  16. transform: scale(0.7); } }
  17. @keyframes sliderFocusThumb {
  18. 0% {
  19. -webkit-transform: scale(0.7);
  20. transform: scale(0.7); }
  21. 30% {
  22. -webkit-transform: scale(1);
  23. transform: scale(1); }
  24. 100% {
  25. -webkit-transform: scale(0.7);
  26. transform: scale(0.7); } }
  27. @-webkit-keyframes sliderDiscreteFocusThumb {
  28. 0% {
  29. -webkit-transform: scale(0.7);
  30. transform: scale(0.7); }
  31. 50% {
  32. -webkit-transform: scale(0.8);
  33. transform: scale(0.8); }
  34. 100% {
  35. -webkit-transform: scale(0);
  36. transform: scale(0); } }
  37. @keyframes sliderDiscreteFocusThumb {
  38. 0% {
  39. -webkit-transform: scale(0.7);
  40. transform: scale(0.7); }
  41. 50% {
  42. -webkit-transform: scale(0.8);
  43. transform: scale(0.8); }
  44. 100% {
  45. -webkit-transform: scale(0);
  46. transform: scale(0); } }
  47. @-webkit-keyframes sliderDiscreteFocusRing {
  48. 0% {
  49. -webkit-transform: scale(0.7);
  50. transform: scale(0.7);
  51. opacity: 0; }
  52. 50% {
  53. -webkit-transform: scale(1);
  54. transform: scale(1);
  55. opacity: 1; }
  56. 100% {
  57. -webkit-transform: scale(0);
  58. transform: scale(0); } }
  59. @keyframes sliderDiscreteFocusRing {
  60. 0% {
  61. -webkit-transform: scale(0.7);
  62. transform: scale(0.7);
  63. opacity: 0; }
  64. 50% {
  65. -webkit-transform: scale(1);
  66. transform: scale(1);
  67. opacity: 1; }
  68. 100% {
  69. -webkit-transform: scale(0);
  70. transform: scale(0); } }
  71. md-slider {
  72. height: 48px;
  73. min-width: 128px;
  74. position: relative;
  75. margin-left: 4px;
  76. margin-right: 4px;
  77. padding: 0;
  78. display: block;
  79. -webkit-box-orient: horizontal;
  80. -webkit-box-direction: normal;
  81. -webkit-flex-direction: row;
  82. flex-direction: row;
  83. /**
  84. * Track
  85. */
  86. /**
  87. * Slider thumb
  88. */
  89. /* The sign that's focused in discrete mode */
  90. /**
  91. * The border/background that comes in when focused in non-discrete mode
  92. */
  93. /* Don't animate left/right while panning */ }
  94. md-slider *, md-slider *:after {
  95. box-sizing: border-box; }
  96. md-slider .md-slider-wrapper {
  97. outline: none;
  98. width: 100%;
  99. height: 100%; }
  100. md-slider .md-slider-content {
  101. position: relative; }
  102. md-slider .md-track-container {
  103. width: 100%;
  104. position: absolute;
  105. top: 23px;
  106. height: 2px; }
  107. md-slider .md-track {
  108. position: absolute;
  109. left: 0;
  110. right: 0;
  111. height: 100%; }
  112. md-slider .md-track-fill {
  113. -webkit-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  114. transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  115. -webkit-transition-property: width, height;
  116. transition-property: width, height; }
  117. md-slider .md-track-ticks {
  118. position: absolute;
  119. left: 0;
  120. right: 0;
  121. height: 100%; }
  122. md-slider .md-track-ticks canvas {
  123. width: 100%;
  124. height: 100%; }
  125. md-slider .md-thumb-container {
  126. position: absolute;
  127. left: 0;
  128. top: 50%;
  129. -webkit-transform: translate3d(-50%, -50%, 0);
  130. transform: translate3d(-50%, -50%, 0);
  131. -webkit-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  132. transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  133. -webkit-transition-property: left, right, bottom;
  134. transition-property: left, right, bottom; }
  135. [dir=rtl] md-slider .md-thumb-container {
  136. left: auto;
  137. right: 0; }
  138. md-slider .md-thumb {
  139. z-index: 1;
  140. position: absolute;
  141. left: -10px;
  142. top: 14px;
  143. width: 20px;
  144. height: 20px;
  145. border-radius: 20px;
  146. -webkit-transform: scale(0.7);
  147. transform: scale(0.7);
  148. -webkit-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  149. transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
  150. [dir=rtl] md-slider .md-thumb {
  151. left: auto;
  152. right: -10px; }
  153. md-slider .md-thumb:after {
  154. content: '';
  155. position: absolute;
  156. width: 20px;
  157. height: 20px;
  158. border-radius: 20px;
  159. border-width: 3px;
  160. border-style: solid;
  161. -webkit-transition: inherit;
  162. transition: inherit; }
  163. md-slider .md-sign {
  164. /* Center the children (slider-thumb-text) */
  165. display: -webkit-box;
  166. display: -webkit-flex;
  167. display: flex;
  168. -webkit-box-align: center;
  169. -webkit-align-items: center;
  170. align-items: center;
  171. -webkit-box-pack: center;
  172. -webkit-justify-content: center;
  173. justify-content: center;
  174. position: absolute;
  175. left: -14px;
  176. top: -17px;
  177. width: 28px;
  178. height: 28px;
  179. border-radius: 28px;
  180. -webkit-transform: scale(0.4) translate3d(0, 67.5px, 0);
  181. transform: scale(0.4) translate3d(0, 67.5px, 0);
  182. -webkit-transition: all 0.3s cubic-bezier(0.35, 0, 0.25, 1);
  183. transition: all 0.3s cubic-bezier(0.35, 0, 0.25, 1);
  184. /* The arrow pointing down under the sign */ }
  185. md-slider .md-sign:after {
  186. position: absolute;
  187. content: '';
  188. left: 0px;
  189. border-radius: 16px;
  190. top: 19px;
  191. border-left: 14px solid transparent;
  192. border-right: 14px solid transparent;
  193. border-top-width: 16px;
  194. border-top-style: solid;
  195. opacity: 0;
  196. -webkit-transform: translate3d(0, -8px, 0);
  197. transform: translate3d(0, -8px, 0);
  198. -webkit-transition: all 0.2s cubic-bezier(0.35, 0, 0.25, 1);
  199. transition: all 0.2s cubic-bezier(0.35, 0, 0.25, 1); }
  200. [dir=rtl] md-slider .md-sign:after {
  201. left: auto;
  202. right: 0px; }
  203. md-slider .md-sign .md-thumb-text {
  204. z-index: 1;
  205. font-size: 12px;
  206. font-weight: bold; }
  207. md-slider .md-focus-ring {
  208. position: absolute;
  209. left: -17px;
  210. top: 7px;
  211. width: 34px;
  212. height: 34px;
  213. border-radius: 34px;
  214. -webkit-transform: scale(0.7);
  215. transform: scale(0.7);
  216. opacity: 0;
  217. -webkit-transition: all 0.35s cubic-bezier(0.35, 0, 0.25, 1);
  218. transition: all 0.35s cubic-bezier(0.35, 0, 0.25, 1); }
  219. [dir=rtl] md-slider .md-focus-ring {
  220. left: auto;
  221. right: -17px; }
  222. md-slider .md-disabled-thumb {
  223. position: absolute;
  224. left: -14px;
  225. top: 10px;
  226. width: 28px;
  227. height: 28px;
  228. border-radius: 28px;
  229. -webkit-transform: scale(0.5);
  230. transform: scale(0.5);
  231. border-width: 4px;
  232. border-style: solid;
  233. display: none; }
  234. [dir=rtl] md-slider .md-disabled-thumb {
  235. left: auto;
  236. right: -14px; }
  237. md-slider.md-min .md-sign {
  238. opacity: 0; }
  239. md-slider:focus {
  240. outline: none; }
  241. md-slider.md-dragging .md-thumb-container,
  242. md-slider.md-dragging .md-track-fill {
  243. -webkit-transition: none;
  244. transition: none; }
  245. md-slider:not([md-discrete]) {
  246. /* Hide the sign and ticks in non-discrete mode */ }
  247. md-slider:not([md-discrete]) .md-track-ticks,
  248. md-slider:not([md-discrete]) .md-sign {
  249. display: none; }
  250. md-slider:not([md-discrete]):not([disabled]) .md-slider-wrapper .md-thumb:hover {
  251. -webkit-transform: scale(0.8);
  252. transform: scale(0.8); }
  253. md-slider:not([md-discrete]):not([disabled]) .md-slider-wrapper.md-focused .md-focus-ring {
  254. -webkit-transform: scale(1);
  255. transform: scale(1);
  256. opacity: 1; }
  257. md-slider:not([md-discrete]):not([disabled]) .md-slider-wrapper.md-focused .md-thumb {
  258. -webkit-animation: sliderFocusThumb 0.7s cubic-bezier(0.35, 0, 0.25, 1);
  259. animation: sliderFocusThumb 0.7s cubic-bezier(0.35, 0, 0.25, 1); }
  260. md-slider:not([md-discrete]):not([disabled]).md-active .md-slider-wrapper .md-thumb {
  261. -webkit-transform: scale(1);
  262. transform: scale(1); }
  263. md-slider[md-discrete]:not([disabled]) .md-slider-wrapper.md-focused .md-focus-ring {
  264. -webkit-transform: scale(0);
  265. transform: scale(0);
  266. -webkit-animation: sliderDiscreteFocusRing 0.5s cubic-bezier(0.35, 0, 0.25, 1);
  267. animation: sliderDiscreteFocusRing 0.5s cubic-bezier(0.35, 0, 0.25, 1); }
  268. md-slider[md-discrete]:not([disabled]) .md-slider-wrapper.md-focused .md-thumb {
  269. -webkit-animation: sliderDiscreteFocusThumb 0.5s cubic-bezier(0.35, 0, 0.25, 1);
  270. animation: sliderDiscreteFocusThumb 0.5s cubic-bezier(0.35, 0, 0.25, 1); }
  271. md-slider[md-discrete]:not([disabled]) .md-slider-wrapper.md-focused .md-thumb, md-slider[md-discrete]:not([disabled]).md-active .md-thumb {
  272. -webkit-transform: scale(0);
  273. transform: scale(0); }
  274. md-slider[md-discrete]:not([disabled]) .md-slider-wrapper.md-focused .md-sign,
  275. md-slider[md-discrete]:not([disabled]) .md-slider-wrapper.md-focused .md-sign:after, md-slider[md-discrete]:not([disabled]).md-active .md-sign,
  276. md-slider[md-discrete]:not([disabled]).md-active .md-sign:after {
  277. opacity: 1;
  278. -webkit-transform: translate3d(0, 0, 0) scale(1);
  279. transform: translate3d(0, 0, 0) scale(1); }
  280. md-slider[md-discrete][disabled][readonly] .md-thumb {
  281. -webkit-transform: scale(0);
  282. transform: scale(0); }
  283. md-slider[md-discrete][disabled][readonly] .md-sign,
  284. md-slider[md-discrete][disabled][readonly] .md-sign:after {
  285. opacity: 1;
  286. -webkit-transform: translate3d(0, 0, 0) scale(1);
  287. transform: translate3d(0, 0, 0) scale(1); }
  288. md-slider[disabled] .md-track-fill {
  289. display: none; }
  290. md-slider[disabled] .md-track-ticks {
  291. opacity: 0; }
  292. md-slider[disabled]:not([readonly]) .md-sign {
  293. opacity: 0; }
  294. md-slider[disabled] .md-thumb {
  295. -webkit-transform: scale(0.5);
  296. transform: scale(0.5); }
  297. md-slider[disabled] .md-disabled-thumb {
  298. display: block; }
  299. md-slider[md-vertical] {
  300. -webkit-box-orient: vertical;
  301. -webkit-box-direction: normal;
  302. -webkit-flex-direction: column;
  303. flex-direction: column;
  304. min-height: 128px;
  305. min-width: 0; }
  306. md-slider[md-vertical] .md-slider-wrapper {
  307. -webkit-box-flex: 1;
  308. -webkit-flex: 1;
  309. flex: 1;
  310. padding-top: 12px;
  311. padding-bottom: 12px;
  312. width: 48px;
  313. -webkit-align-self: center;
  314. align-self: center;
  315. display: -webkit-box;
  316. display: -webkit-flex;
  317. display: flex;
  318. -webkit-box-pack: center;
  319. -webkit-justify-content: center;
  320. justify-content: center; }
  321. md-slider[md-vertical] .md-track-container {
  322. height: 100%;
  323. width: 2px;
  324. top: 0;
  325. left: calc(50% - (2px / 2)); }
  326. md-slider[md-vertical] .md-thumb-container {
  327. top: auto;
  328. margin-bottom: 23px;
  329. left: calc(50% - 1px);
  330. bottom: 0; }
  331. md-slider[md-vertical] .md-thumb-container .md-thumb:after {
  332. left: 1px; }
  333. md-slider[md-vertical] .md-thumb-container .md-focus-ring {
  334. left: -16px; }
  335. md-slider[md-vertical] .md-track-fill {
  336. bottom: 0; }
  337. md-slider[md-vertical][md-discrete] .md-sign {
  338. left: -40px;
  339. top: 9.5px;
  340. -webkit-transform: scale(0.4) translate3d(67.5px, 0, 0);
  341. transform: scale(0.4) translate3d(67.5px, 0, 0);
  342. /* The arrow pointing left next the sign */ }
  343. md-slider[md-vertical][md-discrete] .md-sign:after {
  344. top: 9.5px;
  345. left: 19px;
  346. border-top: 14px solid transparent;
  347. border-right: 0;
  348. border-bottom: 14px solid transparent;
  349. border-left-width: 16px;
  350. border-left-style: solid;
  351. opacity: 0;
  352. -webkit-transform: translate3d(0, -8px, 0);
  353. transform: translate3d(0, -8px, 0);
  354. -webkit-transition: all 0.2s ease-in-out;
  355. transition: all 0.2s ease-in-out; }
  356. md-slider[md-vertical][md-discrete] .md-sign .md-thumb-text {
  357. z-index: 1;
  358. font-size: 12px;
  359. font-weight: bold; }
  360. md-slider[md-vertical][md-discrete].md-active .md-sign:after,
  361. md-slider[md-vertical][md-discrete] .md-focused .md-sign:after, md-slider[md-vertical][md-discrete][disabled][readonly] .md-sign:after {
  362. top: 0; }
  363. md-slider[md-vertical][disabled][readonly] .md-thumb {
  364. -webkit-transform: scale(0);
  365. transform: scale(0); }
  366. md-slider[md-vertical][disabled][readonly] .md-sign,
  367. md-slider[md-vertical][disabled][readonly] .md-sign:after {
  368. opacity: 1;
  369. -webkit-transform: translate3d(0, 0, 0) scale(1);
  370. transform: translate3d(0, 0, 0) scale(1); }
  371. md-slider[md-invert]:not([md-vertical]) .md-track-fill {
  372. left: auto;
  373. right: 0; }
  374. [dir=rtl] md-slider[md-invert]:not([md-vertical]) .md-track-fill {
  375. left: 0; }
  376. [dir=rtl] md-slider[md-invert]:not([md-vertical]) .md-track-fill {
  377. right: auto; }
  378. md-slider[md-invert][md-vertical] .md-track-fill {
  379. bottom: auto;
  380. top: 0; }
  381. md-slider-container {
  382. display: -webkit-box;
  383. display: -webkit-flex;
  384. display: flex;
  385. -webkit-box-align: center;
  386. -webkit-align-items: center;
  387. align-items: center;
  388. -webkit-box-orient: horizontal;
  389. -webkit-box-direction: normal;
  390. -webkit-flex-direction: row;
  391. flex-direction: row; }
  392. md-slider-container > *:first-child:not(md-slider),
  393. md-slider-container > *:last-child:not(md-slider) {
  394. min-width: 25px;
  395. max-width: 42px;
  396. height: 25px;
  397. -webkit-transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  398. transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  399. -webkit-transition-property: color, max-width;
  400. transition-property: color, max-width; }
  401. md-slider-container > *:first-child:not(md-slider) {
  402. margin-right: 16px; }
  403. [dir=rtl] md-slider-container > *:first-child:not(md-slider) {
  404. margin-right: auto;
  405. margin-left: 16px; }
  406. md-slider-container > *:last-child:not(md-slider) {
  407. margin-left: 16px; }
  408. [dir=rtl] md-slider-container > *:last-child:not(md-slider) {
  409. margin-left: auto;
  410. margin-right: 16px; }
  411. md-slider-container[md-vertical] {
  412. -webkit-box-orient: vertical;
  413. -webkit-box-direction: normal;
  414. -webkit-flex-direction: column;
  415. flex-direction: column; }
  416. md-slider-container[md-vertical] > *:first-child:not(md-slider),
  417. md-slider-container[md-vertical] > *:last-child:not(md-slider) {
  418. margin-right: 0;
  419. margin-left: 0;
  420. text-align: center; }
  421. md-slider-container md-input-container input[type="number"] {
  422. text-align: center;
  423. padding-left: 15px;
  424. height: 50px;
  425. margin-top: -25px; }
  426. [dir=rtl] md-slider-container md-input-container input[type="number"] {
  427. padding-left: 0;
  428. padding-right: 15px; }
  429. @media screen and (-ms-high-contrast: active) {
  430. md-slider.md-default-theme .md-track {
  431. border-bottom: 1px solid #fff; } }