Advertisement
Guest User

Untitled

a guest
Jul 15th, 2017
514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.50 KB | None | 0 0
  1. /**
  2. * mdl-stepper - A Material Design Lite Stepper component polyfill.
  3. * @version v1.1.6
  4. * @author Alexandre Thebaldi <ahlechandre@gmail.com>.
  5. * @link https://github.com/ahlechandre/mdl-stepper
  6. *
  7. */
  8. /* MDL Stepper */
  9. /**
  10. * mdl-stepper - A Material Design Lite Stepper component polyfill.
  11. * @version v1.1.6
  12. * @author Alexandre Thebaldi <ahlechandre@gmail.com>.
  13. * @link https://github.com/ahlechandre/mdl-stepper
  14. *
  15. */
  16. /* STEPPER */
  17. /* GRID */
  18. /* SHADOWS */
  19. /**
  20. * mdl-stepper - A Material Design Lite Stepper component polyfill.
  21. * @version v1.1.6
  22. * @author Alexandre Thebaldi <ahlechandre@gmail.com>.
  23. * @link https://github.com/ahlechandre/mdl-stepper
  24. *
  25. */
  26. /* Animation */
  27. /* KEYFRAMES */
  28. /* DISPLAY FLEX */
  29. /* Shadows */
  30. /**
  31. * mdl-stepper - A Material Design Lite Stepper component polyfill.
  32. * @version v1.1.6
  33. * @author Alexandre Thebaldi <ahlechandre@gmail.com>.
  34. * @link https://github.com/ahlechandre/mdl-stepper
  35. *
  36. * @contributor Michael Haschke <http://michael.haschke.biz/>
  37. */
  38. /**
  39. * mdl-stepper - A Material Design Lite Stepper component polyfill.
  40. * @version v1.1.6
  41. * @author Alexandre Thebaldi <ahlechandre@gmail.com>.
  42. * @link https://github.com/ahlechandre/mdl-stepper
  43. *
  44. */
  45. /* STEPPER */
  46. /* GRID */
  47. /* SHADOWS */
  48. /**
  49. * mdl-stepper - A Material Design Lite Stepper component polyfill.
  50. * @version v1.1.6
  51. * @author Alexandre Thebaldi <ahlechandre@gmail.com>.
  52. * @link https://github.com/ahlechandre/mdl-stepper
  53. *
  54. */
  55. /* Animation */
  56. /* KEYFRAMES */
  57. /* DISPLAY FLEX */
  58. /* Shadows */
  59. /**
  60. * mdl-stepper - A Material Design Lite Stepper component polyfill.
  61. * @version v1.1.6
  62. * @author Alexandre Thebaldi <ahlechandre@gmail.com>.
  63. * @link https://github.com/ahlechandre/mdl-stepper
  64. *
  65. */
  66. @-webkit-keyframes FadeIn {
  67. 0% {
  68. opacity: 0; }
  69. 100% {
  70. opacity: 100; } }
  71. @-moz-keyframes FadeIn {
  72. 0% {
  73. opacity: 0; }
  74. 100% {
  75. opacity: 100; } }
  76. @-o-keyframes FadeIn {
  77. 0% {
  78. opacity: 0; }
  79. 100% {
  80. opacity: 100; } }
  81. @keyframes FadeIn {
  82. 0% {
  83. opacity: 0; }
  84. 100% {
  85. opacity: 100; } }
  86. @-webkit-keyframes FadeInFromBottom {
  87. 0% {
  88. height: 0;
  89. padding-top: 84px;
  90. background-color: white;
  91. color: white; }
  92. 25% {
  93. color: white; } }
  94. @-moz-keyframes FadeInFromBottom {
  95. 0% {
  96. height: 0;
  97. padding-top: 84px;
  98. background-color: white;
  99. color: white; }
  100. 25% {
  101. color: white; } }
  102. @-o-keyframes FadeInFromBottom {
  103. 0% {
  104. height: 0;
  105. padding-top: 84px;
  106. background-color: white;
  107. color: white; }
  108. 25% {
  109. color: white; } }
  110. @keyframes FadeInFromBottom {
  111. 0% {
  112. height: 0;
  113. padding-top: 84px;
  114. background-color: white;
  115. color: white; }
  116. 25% {
  117. color: white; } }
  118. /* STEPPER */
  119. .mdl-stepper {
  120. position: relative;
  121. font-family: "Roboto", sans-serif;
  122. background-color: white;
  123. display: block;
  124. box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  125. padding: 24px 0;
  126. max-width: 720px;
  127. width: 100%;
  128. border-radius: 2px; }
  129. .mdl-stepper > li {
  130. list-style: none; }
  131.  
  132. /* STEPPER ON SMALL SCREENS */
  133. @media only screen and (max-width: 375px) {
  134. .mdl-stepper {
  135. width: 100vw; }
  136.  
  137. .mdl-grid .mdl-cell .mdl-stepper {
  138. margin-left: -16px; } }
  139. /* STEPPER VERTICAL ONLY */
  140. .mdl-stepper:not(.mdl-stepper--horizontal) > .mdl-step:not(:last-child):after {
  141. content: '';
  142. position: absolute;
  143. top: 50px;
  144. left: 37px;
  145. width: 1px;
  146. height: calc(100% - 24px);
  147. background-color: rgba(0, 0, 0, 0.1); }
  148. .mdl-stepper:not(.mdl-stepper--horizontal) > .mdl-step:not(:last-child).is-active:after {
  149. height: calc(100% - 12px); }
  150. .mdl-stepper:not(.mdl-stepper--horizontal) .mdl-step__label:hover, .mdl-stepper:not(.mdl-stepper--horizontal) .mdl-step__label:active, .mdl-stepper:not(.mdl-stepper--horizontal) .mdl-step__label:focus {
  151. background-color: rgba(0, 0, 0, 0.06); }
  152.  
  153. /* STEP */
  154. .mdl-step {
  155. position: relative;
  156. height: 460px; }
  157. .mdl-step:not(.is-active) {
  158. height: initial !important; }
  159. .mdl-step:not(:last-child) {
  160. margin-bottom: 24px; }
  161. .mdl-step:not(:last-child).is-active {
  162. margin-bottom: 36px; }
  163. .mdl-step .mdl-step-error-message {
  164. display: none; }
  165. .mdl-step > * {
  166. -webkit-animation: FadeIn 0.5s ease-in-out;
  167. -moz-animation: FadeIn 0.5s ease-in-out;
  168. -ms-animation: FadeIn 0.5s ease-in-out;
  169. animation: FadeIn 0.5s ease-in-out; }
  170.  
  171. /* STEP ACTIVE */
  172. .mdl-step.is-active .mdl-step__title {
  173. font-weight: bold; }
  174. .mdl-step.is-active .mdl-step__content {
  175. display: block; }
  176. .mdl-step.is-active .mdl-step__label-indicator {
  177. background-color: #2196F3;
  178. color: white; }
  179. .mdl-step.is-active .mdl-step__actions {
  180. -webkit-display: flex;
  181. -moz-display: flex;
  182. -ms-display: flex;
  183. display: flex;
  184. justify-content: flex-start; }
  185. .mdl-step.is-active .mdl-step__actions [data-stepper-next] {
  186. order: 1;
  187. margin-right: 8px; }
  188. .mdl-step.is-active .mdl-step__actions [data-stepper-cancel] {
  189. order: 2; }
  190. .mdl-step.is-active .mdl-step__actions [data-stepper-skip] {
  191. order: 3;
  192. margin-left: auto; }
  193. .mdl-step.is-active .mdl-step__actions [data-stepper-back] {
  194. order: 4;
  195. margin-left: auto; }
  196.  
  197. /* STEP MOD COMPLETED */
  198. .mdl-step--completed .mdl-step__label-indicator {
  199. background-color: #2196F3; }
  200.  
  201. /* STEP MOD ERROR */
  202. .mdl-step--error .mdl-step__title {
  203. color: #F44336; }
  204. .mdl-step--error .mdl-step-error-message {
  205. display: block;
  206. color: #F44336;
  207. font-weight: normal; }
  208. .mdl-step--error .mdl-step__label-indicator {
  209. background-color: #F44336 !important;
  210. font-weight: bold; }
  211.  
  212. /* STEP MOD OPTIONAL */
  213. /* STEP MOD TRANSIENT */
  214. .mdl-step--transient .mdl-step__content {
  215. overflow: hidden !important; }
  216.  
  217. .mdl-step__label {
  218. position: relative;
  219. -webkit-display: flex;
  220. -moz-display: flex;
  221. -ms-display: flex;
  222. display: flex;
  223. cursor: pointer;
  224. margin-bottom: 8px;
  225. padding: 12px 24px 24px 24px;
  226. align-items: center; }
  227.  
  228. /* STEP LABEL MOD WITH SUBLABEL */
  229. .mdl-step__label--with-sublabel {
  230. align-items: baseline; }
  231.  
  232. /* STEP TITLE */
  233. .mdl-step__title {
  234. -webkit-display: flex;
  235. -moz-display: flex;
  236. -ms-display: flex;
  237. display: flex;
  238. flex-flow: column nowrap;
  239. order: 2;
  240. width: 100%; }
  241.  
  242. /* STEP TITLE MESSAGE */
  243. .mdl-step__title-message {
  244. position: absolute;
  245. font-size: 12px;
  246. opacity: .7;
  247. font-weight: 400;
  248. top: 28px; }
  249.  
  250. /* STEP LABEL INDICATOR */
  251. .mdl-step__label-indicator {
  252. -webkit-display: flex;
  253. -moz-display: flex;
  254. -ms-display: flex;
  255. display: flex;
  256. order: 1;
  257. background-color: rgba(0, 0, 0, 0.3);
  258. border-radius: 100%;
  259. color: white;
  260. margin-right: 12px;
  261. margin-bottom: auto; }
  262. .mdl-step__label-indicator > :first-child {
  263. -webkit-display: flex;
  264. -moz-display: flex;
  265. -ms-display: flex;
  266. display: flex;
  267. font-size: 15px;
  268. width: 28px;
  269. height: 28px;
  270. align-items: center;
  271. justify-content: center; }
  272.  
  273. /* STEP CONTENT */
  274. .mdl-step__content {
  275. display: none;
  276. height: calc(100% - 132px);
  277. width: inherit;
  278. overflow: auto;
  279. margin-left: 64px;
  280. margin-right: 24px; }
  281.  
  282. /* STEP ACTIONS */
  283. .mdl-step__actions {
  284. display: none;
  285. padding-top: 16px;
  286. height: 48px;
  287. margin-left: 64px;
  288. margin-right: 24px; }
  289. .mdl-step__actions [data-stepper-next].mdl-button--raised.mdl-button--colored {
  290. background-color: #2196F3;
  291. box-shadow: none; }
  292.  
  293. /* STEP TRANSIENT */
  294. .mdl-step__transient {
  295. position: absolute;
  296. top: 72px;
  297. left: 64px;
  298. z-index: 2;
  299. -webkit-display: flex;
  300. -moz-display: flex;
  301. -ms-display: flex;
  302. display: flex;
  303. width: calc(100% - 88px);
  304. height: calc(100% - 132px);
  305. transition: 0.3s all ease-in-out; }
  306.  
  307. /* STEP TRANSIENT OVERLAY */
  308. .mdl-step__transient-overlay {
  309. content: '';
  310. position: absolute;
  311. z-index: 3;
  312. width: 100%;
  313. height: 100%;
  314. top: 0;
  315. background-color: rgba(255, 255, 255, 0.8); }
  316.  
  317. /* STEP TRANSIENT LOADER */
  318. .mdl-step__transient-loader {
  319. z-index: 4;
  320. margin: auto; }
  321.  
  322. /* STEPPER MOD HORIZONTAL */
  323. @media only screen and (min-width: 841px) {
  324. .mdl-stepper--horizontal {
  325. -webkit-display: flex;
  326. -moz-display: flex;
  327. -ms-display: flex;
  328. display: flex;
  329. flex-direction: row;
  330. align-items: baseline;
  331. max-width: 840px;
  332. padding: 0;
  333. min-height: 576px;
  334. /* HORIZONTAL STEP */
  335. /* HORIZONTAL STEP LABEL */
  336. /* HORIZONTAL STEP CONTENT */
  337. /* HORIZONTAL STEP ACTIONS */
  338. /* STEPPER MOD HORIZONTAL + MOD LINEAR */ }
  339. .mdl-stepper--horizontal:before {
  340. content: '';
  341. background-color: transparent;
  342. width: 100%;
  343. min-height: 84px;
  344. box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  345. position: absolute;
  346. top: 0;
  347. left: 0; }
  348. .mdl-stepper--horizontal > .mdl-step {
  349. position: static;
  350. -webkit-display: flex;
  351. -moz-display: flex;
  352. -ms-display: flex;
  353. display: flex;
  354. justify-content: center;
  355. align-items: initial;
  356. margin-top: 0 !important;
  357. margin-bottom: 0 !important;
  358. height: initial;
  359. max-height: 84px;
  360. overflow: hidden;
  361. /* STEP MOD COMPLETED */ }
  362. .mdl-stepper--horizontal > .mdl-step.is-active.mdl-step--transient:before {
  363. content: attr(data-step-transient-message);
  364. -webkit-animation: FadeInFromBottom 0.3s cubic-bezier(0, 0, 0, 0.99);
  365. -moz-animation: FadeInFromBottom 0.3s cubic-bezier(0, 0, 0, 0.99);
  366. -ms-animation: FadeInFromBottom 0.3s cubic-bezier(0, 0, 0, 0.99);
  367. animation: FadeInFromBottom 0.3s cubic-bezier(0, 0, 0, 0.99);
  368. position: absolute;
  369. padding-left: 24px;
  370. display: flex;
  371. font-size: 16px;
  372. justify-content: flex-start;
  373. align-items: center;
  374. width: calc(100% - 24px);
  375. height: 84px;
  376. background-color: white;
  377. top: 0;
  378. left: 0;
  379. z-index: 9; }
  380. .mdl-stepper--horizontal > .mdl-step .mdl-step__transient {
  381. top: 0;
  382. left: 0;
  383. width: 100%;
  384. height: 100%; }
  385. .mdl-stepper--horizontal > .mdl-step:not(:first-child):not(:last-child) {
  386. margin: auto auto; }
  387. .mdl-stepper--horizontal > .mdl-step:not(:last-child) {
  388. flex: 1; }
  389. .mdl-stepper--horizontal > .mdl-step:not(:last-child):after {
  390. content: '';
  391. position: relative;
  392. flex: 1;
  393. top: 42px;
  394. width: 168px;
  395. margin-left: -12px;
  396. height: 1px;
  397. background-color: rgba(0, 0, 0, 0.1); }
  398. .mdl-stepper--horizontal > .mdl-step.mdl-step--completed .mdl-step__title > .mdl-step__title-text {
  399. font-weight: bold; }
  400. .mdl-stepper--horizontal .mdl-step__label {
  401. top: -48px;
  402. flex: initial;
  403. margin: 0;
  404. padding: 24px;
  405. min-height: 132px;
  406. transition: 0.025s border-radius linear; }
  407. .mdl-stepper--horizontal .mdl-step__label:hover {
  408. background-color: rgba(0, 0, 0, 0.06); }
  409. .mdl-stepper--horizontal .mdl-step__label:active {
  410. padding: 12px;
  411. margin: 12px;
  412. border-radius: 100%; }
  413. .mdl-stepper--horizontal .mdl-step__label > .mdl-step__title {
  414. width: initial; }
  415. .mdl-stepper--horizontal .mdl-step__label > .mdl-step__title > * {
  416. max-width: 120px;
  417. white-space: nowrap;
  418. overflow: hidden;
  419. text-overflow: ellipsis; }
  420. .mdl-stepper--horizontal .mdl-step__label > .mdl-step__title > .mdl-step__title-message {
  421. position: relative;
  422. top: 0;
  423. line-height: 14px; }
  424. .mdl-stepper--horizontal .mdl-step__label > .mdl-step__label-indicator {
  425. margin-top: auto; }
  426. .mdl-stepper--horizontal .mdl-step > .mdl-step__content {
  427. position: absolute;
  428. top: 84px;
  429. left: 0;
  430. width: calc(100% - 48px);
  431. height: calc(100% - 192px);
  432. margin: 24px; }
  433. .mdl-stepper--horizontal .mdl-step > .mdl-step__actions {
  434. position: absolute;
  435. top: calc(100% - 84px);
  436. left: 0;
  437. margin: 0;
  438. padding: 24px;
  439. width: calc(100% - 48px); }
  440. .mdl-stepper--horizontal .mdl-step > .mdl-step__actions [data-stepper-next] {
  441. order: 4;
  442. margin-left: 8px;
  443. margin-right: 0;
  444. color: #2196F3;
  445. background-color: transparent; }
  446. .mdl-stepper--horizontal .mdl-step > .mdl-step__actions [data-stepper-cancel] {
  447. order: 3;
  448. margin-left: auto; }
  449. .mdl-stepper--horizontal .mdl-step > .mdl-step__actions [data-stepper-skip] {
  450. order: 2;
  451. margin-left: auto; }
  452. .mdl-stepper--horizontal .mdl-step > .mdl-step__actions [data-stepper-back] {
  453. order: 1;
  454. margin-left: 0;
  455. margin-right: auto; }
  456. .mdl-stepper--horizontal.mdl-stepper--linear > .mdl-step:not(.mdl-step--completed):not(.is-active) .mdl-step__title > .mdl-step__title-text {
  457. opacity: .5; } }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement