component.css 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  1. /* General styles for the modal */
  2. /*
  3. Styles for the html/body for special modal where we want 3d effects
  4. Note that we need a container wrapping all content on the page for the
  5. perspective effects (not including the modals and the overlay).
  6. */
  7. .mode-head{
  8. padding: 30px 40px !important;
  9. font-weight: normal;
  10. color: #FFF;
  11. background-color: #1170ff;
  12. font-size: 15px;
  13. text-align: center;
  14. position: relative;
  15. }
  16. .mode-head img{
  17. position: absolute;
  18. right: 20px;
  19. top: 28px;
  20. width: 24px;
  21. height: 24px;
  22. cursor: pointer;
  23. }
  24. .mode-foot{
  25. padding: 0 0 30px !important;
  26. }
  27. .content-img{
  28. display: flex;
  29. flex-direction: column;
  30. align-items: center;
  31. justify-content: center;
  32. /* background-color: rgba(0,0,0,.1); */
  33. }
  34. .mode-content{
  35. display: flex;
  36. flex-direction: column;
  37. align-items: center;
  38. justify-content: center;
  39. padding: 40px 20px;
  40. }
  41. .mode-content img{
  42. width: 224px;
  43. height: 224px;
  44. border-radius: 3px;
  45. box-shadow: 0 10px 20px rgba(0,0,0,.05);
  46. }
  47. .md-content {
  48. background: #FFF;
  49. position: relative;
  50. border-radius: 6px;
  51. margin: 0 auto;
  52. overflow: hidden;
  53. }
  54. /* .md-close {
  55. border: none;
  56. padding: 10px 20px;
  57. background-color:#1170ff;
  58. color: #fff;
  59. font-family: 'Lato', Calibri, Arial, sans-serif;
  60. font-size: 14px;
  61. letter-spacing: 1px;
  62. text-transform: uppercase;
  63. cursor: pointer;
  64. display: inline-block;
  65. border-radius: 6px;
  66. } */
  67. .md-perspective,
  68. .md-perspective body {
  69. height: 100%;
  70. overflow: hidden;
  71. }
  72. .md-perspective body {
  73. background: #222;
  74. -webkit-perspective: 600px;
  75. -moz-perspective: 600px;
  76. perspective: 600px;
  77. }
  78. .container {
  79. background: #e74c3c;
  80. min-height: 100%;
  81. }
  82. .md-modal {
  83. position: fixed;
  84. top: 50%;
  85. left: 50%;
  86. /* width: 50%; */
  87. max-width: 630px;
  88. min-width: 320px;
  89. height: auto;
  90. z-index: 2000;
  91. visibility: hidden;
  92. -webkit-backface-visibility: hidden;
  93. -moz-backface-visibility: hidden;
  94. backface-visibility: hidden;
  95. -webkit-transform: translateX(-50%) translateY(-50%);
  96. -moz-transform: translateX(-50%) translateY(-50%);
  97. -ms-transform: translateX(-50%) translateY(-50%);
  98. transform: translateX(-50%) translateY(-50%);
  99. }
  100. .md-show {
  101. visibility: visible;
  102. }
  103. .md-overlay {
  104. position: fixed;
  105. width: 100%;
  106. height: 100%;
  107. visibility: hidden;
  108. top: 0;
  109. left: 0;
  110. z-index: 1000;
  111. opacity: 0;
  112. background: rgba(0, 0, 0, 0.5);
  113. -webkit-transition: all 0.3s;
  114. -moz-transition: all 0.3s;
  115. transition: all 0.3s;
  116. }
  117. .md-show~.md-overlay {
  118. opacity: 1;
  119. visibility: visible;
  120. }
  121. /* Content styles */
  122. .md-content>div p {
  123. margin: 0;
  124. padding: 10px 0;
  125. }
  126. .md-content>div ul {
  127. margin: 0;
  128. padding: 0 0 30px 20px;
  129. }
  130. .md-content>div ul li {
  131. padding: 5px 0;
  132. }
  133. .md-content button {
  134. display: block;
  135. margin: 0 auto;
  136. font-size: 0.8em;
  137. }
  138. /* Individual modal styles with animations/transitions */
  139. /* Effect 1: Fade in and scale up */
  140. .md-effect-1 .md-content {
  141. -webkit-transform: scale(0.7);
  142. -moz-transform: scale(0.7);
  143. -ms-transform: scale(0.7);
  144. transform: scale(0.7);
  145. opacity: 0;
  146. -webkit-transition: all 0.3s;
  147. -moz-transition: all 0.3s;
  148. transition: all 0.3s;
  149. }
  150. .md-show.md-effect-1 .md-content {
  151. -webkit-transform: scale(1);
  152. -moz-transform: scale(1);
  153. -ms-transform: scale(1);
  154. transform: scale(1);
  155. opacity: 1;
  156. }
  157. /* Effect 2: Slide from the right */
  158. .md-effect-2 .md-content {
  159. -webkit-transform: translateX(20%);
  160. -moz-transform: translateX(20%);
  161. -ms-transform: translateX(20%);
  162. transform: translateX(20%);
  163. opacity: 0;
  164. -webkit-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  165. -moz-transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  166. transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  167. }
  168. .md-show.md-effect-2 .md-content {
  169. -webkit-transform: translateX(0);
  170. -moz-transform: translateX(0);
  171. -ms-transform: translateX(0);
  172. transform: translateX(0);
  173. opacity: 1;
  174. }
  175. /* Effect 3: Slide from the bottom */
  176. .md-effect-3 .md-content {
  177. -webkit-transform: translateY(20%);
  178. -moz-transform: translateY(20%);
  179. -ms-transform: translateY(20%);
  180. transform: translateY(20%);
  181. opacity: 0;
  182. -webkit-transition: all 0.3s;
  183. -moz-transition: all 0.3s;
  184. transition: all 0.3s;
  185. }
  186. .md-show.md-effect-3 .md-content {
  187. -webkit-transform: translateY(0);
  188. -moz-transform: translateY(0);
  189. -ms-transform: translateY(0);
  190. transform: translateY(0);
  191. opacity: 1;
  192. }
  193. /* Effect 4: Newspaper */
  194. .md-effect-4 .md-content {
  195. -webkit-transform: scale(0) rotate(720deg);
  196. -moz-transform: scale(0) rotate(720deg);
  197. -ms-transform: scale(0) rotate(720deg);
  198. transform: scale(0) rotate(720deg);
  199. opacity: 0;
  200. }
  201. .md-show.md-effect-4~.md-overlay,
  202. .md-effect-4 .md-content {
  203. -webkit-transition: all 0.5s;
  204. -moz-transition: all 0.5s;
  205. transition: all 0.5s;
  206. }
  207. .md-show.md-effect-4 .md-content {
  208. -webkit-transform: scale(1) rotate(0deg);
  209. -moz-transform: scale(1) rotate(0deg);
  210. -ms-transform: scale(1) rotate(0deg);
  211. transform: scale(1) rotate(0deg);
  212. opacity: 1;
  213. }
  214. /* Effect 5: fall */
  215. .md-effect-5.md-modal {
  216. -webkit-perspective: 1300px;
  217. -moz-perspective: 1300px;
  218. perspective: 1300px;
  219. }
  220. .md-effect-5 .md-content {
  221. -webkit-transform-style: preserve-3d;
  222. -moz-transform-style: preserve-3d;
  223. transform-style: preserve-3d;
  224. -webkit-transform: translateZ(600px) rotateX(20deg);
  225. -moz-transform: translateZ(600px) rotateX(20deg);
  226. -ms-transform: translateZ(600px) rotateX(20deg);
  227. transform: translateZ(600px) rotateX(20deg);
  228. opacity: 0;
  229. }
  230. .md-show.md-effect-5 .md-content {
  231. -webkit-transition: all 0.3s ease-in;
  232. -moz-transition: all 0.3s ease-in;
  233. transition: all 0.3s ease-in;
  234. -webkit-transform: translateZ(0px) rotateX(0deg);
  235. -moz-transform: translateZ(0px) rotateX(0deg);
  236. -ms-transform: translateZ(0px) rotateX(0deg);
  237. transform: translateZ(0px) rotateX(0deg);
  238. opacity: 1;
  239. }
  240. /* Effect 6: side fall */
  241. .md-effect-6.md-modal {
  242. -webkit-perspective: 1300px;
  243. -moz-perspective: 1300px;
  244. perspective: 1300px;
  245. }
  246. .md-effect-6 .md-content {
  247. -webkit-transform-style: preserve-3d;
  248. -moz-transform-style: preserve-3d;
  249. transform-style: preserve-3d;
  250. -webkit-transform: translate(30%) translateZ(600px) rotate(10deg);
  251. -moz-transform: translate(30%) translateZ(600px) rotate(10deg);
  252. -ms-transform: translate(30%) translateZ(600px) rotate(10deg);
  253. transform: translate(30%) translateZ(600px) rotate(10deg);
  254. opacity: 0;
  255. }
  256. .md-show.md-effect-6 .md-content {
  257. -webkit-transition: all 0.3s ease-in;
  258. -moz-transition: all 0.3s ease-in;
  259. transition: all 0.3s ease-in;
  260. -webkit-transform: translate(0%) translateZ(0) rotate(0deg);
  261. -moz-transform: translate(0%) translateZ(0) rotate(0deg);
  262. -ms-transform: translate(0%) translateZ(0) rotate(0deg);
  263. transform: translate(0%) translateZ(0) rotate(0deg);
  264. opacity: 1;
  265. }
  266. /* Effect 7: slide and stick to top */
  267. .md-effect-7 {
  268. top: 0;
  269. -webkit-transform: translateX(-50%);
  270. -moz-transform: translateX(-50%);
  271. -ms-transform: translateX(-50%);
  272. transform: translateX(-50%);
  273. }
  274. .md-effect-7 .md-content {
  275. -webkit-transform: translateY(-200%);
  276. -moz-transform: translateY(-200%);
  277. -ms-transform: translateY(-200%);
  278. transform: translateY(-200%);
  279. -webkit-transition: all .3s;
  280. -moz-transition: all .3s;
  281. transition: all .3s;
  282. opacity: 0;
  283. }
  284. .md-show.md-effect-7 .md-content {
  285. -webkit-transform: translateY(0%);
  286. -moz-transform: translateY(0%);
  287. -ms-transform: translateY(0%);
  288. transform: translateY(0%);
  289. border-radius: 0 0 3px 3px;
  290. opacity: 1;
  291. }
  292. /* Effect 8: 3D flip horizontal */
  293. .md-effect-8.md-modal {
  294. -webkit-perspective: 1300px;
  295. -moz-perspective: 1300px;
  296. perspective: 1300px;
  297. }
  298. .md-effect-8 .md-content {
  299. -webkit-transform-style: preserve-3d;
  300. -moz-transform-style: preserve-3d;
  301. transform-style: preserve-3d;
  302. -webkit-transform: rotateY(-70deg);
  303. -moz-transform: rotateY(-70deg);
  304. -ms-transform: rotateY(-70deg);
  305. transform: rotateY(-70deg);
  306. -webkit-transition: all 0.3s;
  307. -moz-transition: all 0.3s;
  308. transition: all 0.3s;
  309. opacity: 0;
  310. }
  311. .md-show.md-effect-8 .md-content {
  312. -webkit-transform: rotateY(0deg);
  313. -moz-transform: rotateY(0deg);
  314. -ms-transform: rotateY(0deg);
  315. transform: rotateY(0deg);
  316. opacity: 1;
  317. }
  318. /* Effect 9: 3D flip vertical */
  319. .md-effect-9.md-modal {
  320. -webkit-perspective: 1300px;
  321. -moz-perspective: 1300px;
  322. perspective: 1300px;
  323. }
  324. .md-effect-9 .md-content {
  325. -webkit-transform-style: preserve-3d;
  326. -moz-transform-style: preserve-3d;
  327. transform-style: preserve-3d;
  328. -webkit-transform: rotateX(-70deg);
  329. -moz-transform: rotateX(-70deg);
  330. -ms-transform: rotateX(-70deg);
  331. transform: rotateX(-70deg);
  332. -webkit-transition: all 0.3s;
  333. -moz-transition: all 0.3s;
  334. transition: all 0.3s;
  335. opacity: 0;
  336. }
  337. .md-show.md-effect-9 .md-content {
  338. -webkit-transform: rotateX(0deg);
  339. -moz-transform: rotateX(0deg);
  340. -ms-transform: rotateX(0deg);
  341. transform: rotateX(0deg);
  342. opacity: 1;
  343. }
  344. /* Effect 10: 3D sign */
  345. .md-effect-10.md-modal {
  346. -webkit-perspective: 1300px;
  347. -moz-perspective: 1300px;
  348. perspective: 1300px;
  349. }
  350. .md-effect-10 .md-content {
  351. -webkit-transform-style: preserve-3d;
  352. -moz-transform-style: preserve-3d;
  353. transform-style: preserve-3d;
  354. -webkit-transform: rotateX(-60deg);
  355. -moz-transform: rotateX(-60deg);
  356. -ms-transform: rotateX(-60deg);
  357. transform: rotateX(-60deg);
  358. -webkit-transform-origin: 50% 0;
  359. -moz-transform-origin: 50% 0;
  360. transform-origin: 50% 0;
  361. opacity: 0;
  362. -webkit-transition: all 0.3s;
  363. -moz-transition: all 0.3s;
  364. transition: all 0.3s;
  365. }
  366. .md-show.md-effect-10 .md-content {
  367. -webkit-transform: rotateX(0deg);
  368. -moz-transform: rotateX(0deg);
  369. -ms-transform: rotateX(0deg);
  370. transform: rotateX(0deg);
  371. opacity: 1;
  372. }
  373. /* Effect 11: Super scaled */
  374. .md-effect-11 .md-content {
  375. -webkit-transform: scale(2);
  376. -moz-transform: scale(2);
  377. -ms-transform: scale(2);
  378. transform: scale(2);
  379. opacity: 0;
  380. -webkit-transition: all 0.3s;
  381. -moz-transition: all 0.3s;
  382. transition: all 0.3s;
  383. }
  384. .md-show.md-effect-11 .md-content {
  385. -webkit-transform: scale(1);
  386. -moz-transform: scale(1);
  387. -ms-transform: scale(1);
  388. transform: scale(1);
  389. opacity: 1;
  390. }
  391. /* Effect 12: Just me */
  392. .md-effect-12 .md-content {
  393. -webkit-transform: scale(0.8);
  394. -moz-transform: scale(0.8);
  395. -ms-transform: scale(0.8);
  396. transform: scale(0.8);
  397. opacity: 0;
  398. -webkit-transition: all 0.3s;
  399. -moz-transition: all 0.3s;
  400. transition: all 0.3s;
  401. }
  402. .md-show.md-effect-12~.md-overlay {
  403. background: #e74c3c;
  404. }
  405. .md-effect-12 .md-content h3,
  406. .md-effect-12 .md-content {
  407. background: transparent;
  408. }
  409. .md-show.md-effect-12 .md-content {
  410. -webkit-transform: scale(1);
  411. -moz-transform: scale(1);
  412. -ms-transform: scale(1);
  413. transform: scale(1);
  414. opacity: 1;
  415. }
  416. /* Effect 13: 3D slit */
  417. .md-effect-13.md-modal {
  418. -webkit-perspective: 1300px;
  419. -moz-perspective: 1300px;
  420. perspective: 1300px;
  421. }
  422. .md-effect-13 .md-content {
  423. -webkit-transform-style: preserve-3d;
  424. -moz-transform-style: preserve-3d;
  425. transform-style: preserve-3d;
  426. -webkit-transform: translateZ(-3000px) rotateY(90deg);
  427. -moz-transform: translateZ(-3000px) rotateY(90deg);
  428. -ms-transform: translateZ(-3000px) rotateY(90deg);
  429. transform: translateZ(-3000px) rotateY(90deg);
  430. opacity: 0;
  431. }
  432. .md-show.md-effect-13 .md-content {
  433. -webkit-animation: slit .7s forwards ease-out;
  434. -moz-animation: slit .7s forwards ease-out;
  435. animation: slit .7s forwards ease-out;
  436. }
  437. @-webkit-keyframes slit {
  438. 50% {
  439. -webkit-transform: translateZ(-250px) rotateY(89deg);
  440. opacity: .5;
  441. -webkit-animation-timing-function: ease-out;
  442. }
  443. 100% {
  444. -webkit-transform: translateZ(0) rotateY(0deg);
  445. opacity: 1;
  446. }
  447. }
  448. @-moz-keyframes slit {
  449. 50% {
  450. -moz-transform: translateZ(-250px) rotateY(89deg);
  451. opacity: .5;
  452. -moz-animation-timing-function: ease-out;
  453. }
  454. 100% {
  455. -moz-transform: translateZ(0) rotateY(0deg);
  456. opacity: 1;
  457. }
  458. }
  459. @keyframes slit {
  460. 50% {
  461. transform: translateZ(-250px) rotateY(89deg);
  462. opacity: 1;
  463. animation-timing-function: ease-in;
  464. }
  465. 100% {
  466. transform: translateZ(0) rotateY(0deg);
  467. opacity: 1;
  468. }
  469. }
  470. /* Effect 14: 3D Rotate from bottom */
  471. .md-effect-14.md-modal {
  472. -webkit-perspective: 1300px;
  473. -moz-perspective: 1300px;
  474. perspective: 1300px;
  475. }
  476. .md-effect-14 .md-content {
  477. -webkit-transform-style: preserve-3d;
  478. -moz-transform-style: preserve-3d;
  479. transform-style: preserve-3d;
  480. -webkit-transform: translateY(100%) rotateX(90deg);
  481. -moz-transform: translateY(100%) rotateX(90deg);
  482. -ms-transform: translateY(100%) rotateX(90deg);
  483. transform: translateY(100%) rotateX(90deg);
  484. -webkit-transform-origin: 0 100%;
  485. -moz-transform-origin: 0 100%;
  486. transform-origin: 0 100%;
  487. opacity: 0;
  488. -webkit-transition: all 0.3s ease-out;
  489. -moz-transition: all 0.3s ease-out;
  490. transition: all 0.3s ease-out;
  491. }
  492. .md-show.md-effect-14 .md-content {
  493. -webkit-transform: translateY(0%) rotateX(0deg);
  494. -moz-transform: translateY(0%) rotateX(0deg);
  495. -ms-transform: translateY(0%) rotateX(0deg);
  496. transform: translateY(0%) rotateX(0deg);
  497. opacity: 1;
  498. }
  499. /* Effect 15: 3D Rotate in from left */
  500. .md-effect-15.md-modal {
  501. -webkit-perspective: 1300px;
  502. -moz-perspective: 1300px;
  503. perspective: 1300px;
  504. }
  505. .md-effect-15 .md-content {
  506. -webkit-transform-style: preserve-3d;
  507. -moz-transform-style: preserve-3d;
  508. transform-style: preserve-3d;
  509. -webkit-transform: translateZ(100px) translateX(-30%) rotateY(90deg);
  510. -moz-transform: translateZ(100px) translateX(-30%) rotateY(90deg);
  511. -ms-transform: translateZ(100px) translateX(-30%) rotateY(90deg);
  512. transform: translateZ(100px) translateX(-30%) rotateY(90deg);
  513. -webkit-transform-origin: 0 100%;
  514. -moz-transform-origin: 0 100%;
  515. transform-origin: 0 100%;
  516. opacity: 0;
  517. -webkit-transition: all 0.3s;
  518. -moz-transition: all 0.3s;
  519. transition: all 0.3s;
  520. }
  521. .md-show.md-effect-15 .md-content {
  522. -webkit-transform: translateZ(0px) translateX(0%) rotateY(0deg);
  523. -moz-transform: translateZ(0px) translateX(0%) rotateY(0deg);
  524. -ms-transform: translateZ(0px) translateX(0%) rotateY(0deg);
  525. transform: translateZ(0px) translateX(0%) rotateY(0deg);
  526. opacity: 1;
  527. }
  528. /* Effect 16: Blur */
  529. .md-show.md-effect-16~.md-overlay {
  530. background: rgba(180, 46, 32, 0.5);
  531. }
  532. .md-show.md-effect-16~.container {
  533. -webkit-filter: blur(3px);
  534. -moz-filter: blur(3px);
  535. filter: blur(3px);
  536. }
  537. .md-effect-16 .md-content {
  538. -webkit-transform: translateY(-5%);
  539. -moz-transform: translateY(-5%);
  540. -ms-transform: translateY(-5%);
  541. transform: translateY(-5%);
  542. opacity: 0;
  543. }
  544. .md-show.md-effect-16~.container,
  545. .md-effect-16 .md-content {
  546. -webkit-transition: all 0.3s;
  547. -moz-transition: all 0.3s;
  548. transition: all 0.3s;
  549. }
  550. .md-show.md-effect-16 .md-content {
  551. -webkit-transform: translateY(0);
  552. -moz-transform: translateY(0);
  553. -ms-transform: translateY(0);
  554. transform: translateY(0);
  555. opacity: 1;
  556. }
  557. /* Effect 17: Slide in from bottom with perspective on container */
  558. .md-show.md-effect-17~.container {
  559. height: 100%;
  560. overflow: hidden;
  561. -webkit-transition: -webkit-transform 0.3s;
  562. -moz-transition: -moz-transform 0.3s;
  563. transition: transform 0.3s;
  564. }
  565. .md-show.md-effect-17~.container,
  566. .md-show.md-effect-17~.md-overlay {
  567. -webkit-transform: rotateX(-2deg);
  568. -moz-transform: rotateX(-2deg);
  569. -ms-transform: rotateX(-2deg);
  570. transform: rotateX(-2deg);
  571. -webkit-transform-origin: 50% 0%;
  572. -moz-transform-origin: 50% 0%;
  573. transform-origin: 50% 0%;
  574. -webkit-transform-style: preserve-3d;
  575. -moz-transform-style: preserve-3d;
  576. transform-style: preserve-3d;
  577. }
  578. .md-effect-17 .md-content {
  579. opacity: 0;
  580. -webkit-transform: translateY(200%);
  581. -moz-transform: translateY(200%);
  582. -ms-transform: translateY(200%);
  583. transform: translateY(200%);
  584. }
  585. .md-show.md-effect-17 .md-content {
  586. -webkit-transform: translateY(0);
  587. -moz-transform: translateY(0);
  588. -ms-transform: translateY(0);
  589. transform: translateY(0);
  590. opacity: 1;
  591. -webkit-transition: all 0.3s 0.2s;
  592. -moz-transition: all 0.3s 0.2s;
  593. transition: all 0.3s 0.2s;
  594. }
  595. /* Effect 18: Slide from right with perspective on container */
  596. .md-show.md-effect-18~.container {
  597. height: 100%;
  598. overflow: hidden;
  599. }
  600. .md-show.md-effect-18~.md-overlay {
  601. background: rgba(143, 27, 15, 0.8);
  602. -webkit-transition: all 0.5s;
  603. -moz-transition: all 0.5s;
  604. transition: all 0.5s;
  605. }
  606. .md-show.md-effect-18~.container,
  607. .md-show.md-effect-18~.md-overlay {
  608. -webkit-transform-style: preserve-3d;
  609. -webkit-transform-origin: 0% 50%;
  610. -webkit-animation: rotateRightSideFirst 0.5s forwards ease-in;
  611. -moz-transform-style: preserve-3d;
  612. -moz-transform-origin: 0% 50%;
  613. -moz-animation: rotateRightSideFirst 0.5s forwards ease-in;
  614. transform-style: preserve-3d;
  615. transform-origin: 0% 50%;
  616. animation: rotateRightSideFirst 0.5s forwards ease-in;
  617. }
  618. @-webkit-keyframes rotateRightSideFirst {
  619. 50% {
  620. -webkit-transform: translateZ(-50px) rotateY(5deg);
  621. -webkit-animation-timing-function: ease-out;
  622. }
  623. 100% {
  624. -webkit-transform: translateZ(-200px);
  625. }
  626. }
  627. @-moz-keyframes rotateRightSideFirst {
  628. 50% {
  629. -moz-transform: translateZ(-50px) rotateY(5deg);
  630. -moz-animation-timing-function: ease-out;
  631. }
  632. 100% {
  633. -moz-transform: translateZ(-200px);
  634. }
  635. }
  636. @keyframes rotateRightSideFirst {
  637. 50% {
  638. transform: translateZ(-50px) rotateY(5deg);
  639. animation-timing-function: ease-out;
  640. }
  641. 100% {
  642. transform: translateZ(-200px);
  643. }
  644. }
  645. .md-effect-18 .md-content {
  646. -webkit-transform: translateX(200%);
  647. -moz-transform: translateX(200%);
  648. -ms-transform: translateX(200%);
  649. transform: translateX(200%);
  650. opacity: 0;
  651. }
  652. .md-show.md-effect-18 .md-content {
  653. -webkit-transform: translateX(0);
  654. -moz-transform: translateX(0);
  655. -ms-transform: translateX(0);
  656. transform: translateX(0);
  657. opacity: 1;
  658. -webkit-transition: all 0.5s 0.1s;
  659. -moz-transition: all 0.5s 0.1s;
  660. transition: all 0.5s 0.1s;
  661. }
  662. /* Effect 19: Slip in from the top with perspective on container */
  663. .md-show.md-effect-19~.container {
  664. height: 100%;
  665. overflow: hidden;
  666. }
  667. .md-show.md-effect-19~.md-overlay {
  668. -webkit-transition: all 0.5s;
  669. -moz-transition: all 0.5s;
  670. transition: all 0.5s;
  671. }
  672. .md-show.md-effect-19~.container,
  673. .md-show.md-effect-19~.md-overlay {
  674. -webkit-transform-style: preserve-3d;
  675. -webkit-transform-origin: 50% 100%;
  676. -webkit-animation: OpenTop 0.5s forwards ease-in;
  677. -moz-transform-style: preserve-3d;
  678. -moz-transform-origin: 50% 100%;
  679. -moz-animation: OpenTop 0.5s forwards ease-in;
  680. transform-style: preserve-3d;
  681. transform-origin: 50% 100%;
  682. animation: OpenTop 0.5s forwards ease-in;
  683. }
  684. @-webkit-keyframes OpenTop {
  685. 50% {
  686. -webkit-transform: rotateX(10deg);
  687. -webkit-animation-timing-function: ease-out;
  688. }
  689. }
  690. @-moz-keyframes OpenTop {
  691. 50% {
  692. -moz-transform: rotateX(10deg);
  693. -moz-animation-timing-function: ease-out;
  694. }
  695. }
  696. @keyframes OpenTop {
  697. 50% {
  698. transform: rotateX(10deg);
  699. animation-timing-function: ease-out;
  700. }
  701. }
  702. .md-effect-19 .md-content {
  703. -webkit-transform: translateY(-200%);
  704. -moz-transform: translateY(-200%);
  705. -ms-transform: translateY(-200%);
  706. transform: translateY(-200%);
  707. opacity: 0;
  708. }
  709. .md-show.md-effect-19 .md-content {
  710. -webkit-transform: translateY(0);
  711. -moz-transform: translateY(0);
  712. -ms-transform: translateY(0);
  713. transform: translateY(0);
  714. opacity: 1;
  715. -webkit-transition: all 0.5s 0.1s;
  716. -moz-transition: all 0.5s 0.1s;
  717. transition: all 0.5s 0.1s;
  718. }
  719. @media screen and (max-width: 32em) {
  720. body {
  721. font-size: 75%;
  722. }
  723. }